]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
New Serbian translations for various binutils sub-directories.
[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
50ad1254
L
619RANLIB_PLUGIN_OPTION
620AR_PLUGIN_OPTION
de83289e 621PKG_CONFIG_PATH
b121d7d4 622READELF
81ecdfbb
RW
623OBJDUMP
624OBJCOPY
625WINDMC
626WINDRES
627STRIP
628RANLIB
629NM
630LIPO
631LD
632DLLTOOL
633AS
634AR
635RUNTEST
636EXPECT
637MAKEINFO
638FLEX
639LEX
640M4
641BISON
642YACC
81ecdfbb
RW
643WINDRES_FOR_BUILD
644WINDMC_FOR_BUILD
645RANLIB_FOR_BUILD
646NM_FOR_BUILD
647LD_FOR_BUILD
648LDFLAGS_FOR_BUILD
e552509b 649GOC_FOR_BUILD
81ecdfbb 650GFORTRAN_FOR_BUILD
81ecdfbb
RW
651DLLTOOL_FOR_BUILD
652CXX_FOR_BUILD
653CXXFLAGS_FOR_BUILD
654CFLAGS_FOR_BUILD
655CC_FOR_BUILD
656AS_FOR_BUILD
657AR_FOR_BUILD
911e63d0 658target_configdirs
81ecdfbb 659configdirs
81ecdfbb 660build_configdirs
81ecdfbb
RW
661INSTALL_GDB_TK
662GDB_TK
663CONFIGURE_GDB_TK
664build_tooldir
665tooldir
666GCC_SHLIB_SUBDIR
667RPATH_ENVVAR
4074d5f2
RW
668target_configargs
669host_configargs
670build_configargs
96655cc4 671BUILD_CONFIG
91c1f14c 672LDFLAGS_FOR_TARGET
81ecdfbb
RW
673CXXFLAGS_FOR_TARGET
674CFLAGS_FOR_TARGET
675DEBUG_PREFIX_CFLAGS_FOR_TARGET
676SYSROOT_CFLAGS_FOR_TARGET
bf41f30d 677get_gcc_base_ver
e81d5d05 678extra_host_zlib_configure_flags
700d40ca 679extra_host_libiberty_configure_flags
1b6c0831 680stage1_languages
bf41f30d 681host_shared
1b6c0831
L
682extra_linker_plugin_flags
683extra_linker_plugin_configure_flags
7ec59b9e 684islinc
1b6c0831 685isllibs
81ecdfbb 686poststage1_ldflags
143754cd 687poststage1_libs
81ecdfbb 688stage1_ldflags
b3676d82 689stage1_libs
7ec59b9e 690extra_isl_gmp_configure_flags
81ecdfbb
RW
691extra_mpc_mpfr_configure_flags
692extra_mpc_gmp_configure_flags
693extra_mpfr_configure_flags
694gmpinc
695gmplibs
af019bfd
L
696PGO_BUILD_LTO_CFLAGS
697PGO_BUILD_USE_CFLAGS
698PGO_BUILD_GEN_CFLAGS
81ecdfbb
RW
699do_compare
700GNATMAKE
701GNATBIND
702ac_ct_CXX
703CXXFLAGS
704CXX
705OBJEXT
706EXEEXT
707ac_ct_CC
708CPPFLAGS
709LDFLAGS
710CFLAGS
711CC
1b6c0831 712extra_liboffloadmic_configure_flags
81ecdfbb
RW
713target_subdir
714host_subdir
715build_subdir
716build_libsubdir
8e957354
PB
717AWK
718SED
81ecdfbb
RW
719LN_S
720LN
721INSTALL_DATA
722INSTALL_SCRIPT
723INSTALL_PROGRAM
724target_os
725target_vendor
726target_cpu
727target
728host_os
729host_vendor
730host_cpu
731host
732target_noncanonical
733host_noncanonical
734build_noncanonical
735build_os
736build_vendor
737build_cpu
738build
739TOPLEVEL_CONFIGURE_ARGUMENTS
740target_alias
741host_alias
742build_alias
743LIBS
744ECHO_T
745ECHO_N
746ECHO_C
747DEFS
748mandir
749localedir
750libdir
751psdir
752pdfdir
753dvidir
754htmldir
755infodir
756docdir
757oldincludedir
758includedir
759localstatedir
760sharedstatedir
761sysconfdir
762datadir
763datarootdir
764libexecdir
765sbindir
766bindir
767program_transform_name
768prefix
769exec_prefix
770PACKAGE_URL
771PACKAGE_BUGREPORT
772PACKAGE_STRING
773PACKAGE_VERSION
774PACKAGE_TARNAME
775PACKAGE_NAME
776PATH_SEPARATOR
777SHELL'
778ac_subst_files='serialization_dependencies
779host_makefile_frag
780target_makefile_frag
781alphaieee_frag
782ospace_frag'
783ac_user_opts='
784enable_option_checking
785with_build_libsubdir
cf39cfc5 786with_system_zlib
1b6c0831
L
787enable_as_accelerator_for
788enable_offload_targets
81ecdfbb 789enable_gold
c7791212 790enable_ld
bb368aad 791enable_gprofng
edeefb67 792enable_compressed_debug_sections
e5f2f7d9 793enable_year2038
89a1e9c3
PB
794enable_libquadmath
795enable_libquadmath_support
81ecdfbb
RW
796enable_libada
797enable_libssp
f66a9a70 798enable_libstdcxx
1b6c0831 799enable_liboffloadmic
ffdd6afc 800enable_bootstrap
af019bfd 801enable_pgo_build
81ecdfbb
RW
802with_mpc
803with_mpc_include
804with_mpc_lib
805with_mpfr_dir
806with_mpfr
807with_mpfr_include
808with_mpfr_lib
809with_gmp_dir
810with_gmp
811with_gmp_include
812with_gmp_lib
81ecdfbb 813with_stage1_libs
c1a5d03a 814with_static_standard_libraries
b3676d82 815with_stage1_ldflags
81ecdfbb 816with_boot_libs
143754cd 817with_boot_ldflags
7ec59b9e
L
818with_isl
819with_isl_include
820with_isl_lib
821enable_isl_version_check
700d40ca 822enable_lto
1b6c0831
L
823enable_linker_plugin_configure_flags
824enable_linker_plugin_flags
bf41f30d 825enable_host_shared
81ecdfbb
RW
826enable_stage1_languages
827enable_objc_gc
05a13254
NC
828with_target_bdw_gc
829with_target_bdw_gc_include
830with_target_bdw_gc_lib
bf41f30d 831with_gcc_major_version_only
81ecdfbb
RW
832with_build_sysroot
833with_debug_prefix_map
96655cc4 834with_build_config
730af8ee 835enable_vtable_verify
81ecdfbb
RW
836enable_serial_configure
837with_build_time_tools
838enable_maintainer_mode
839enable_stage1_checking
840enable_werror
81ecdfbb
RW
841'
842 ac_precious_vars='build_alias
843host_alias
844target_alias
845CC
846CFLAGS
847LDFLAGS
848LIBS
849CPPFLAGS
850CXX
851CXXFLAGS
852CCC
4074d5f2
RW
853build_configargs
854host_configargs
855target_configargs
81ecdfbb
RW
856AR
857AS
858DLLTOOL
859LD
860LIPO
861NM
862RANLIB
863STRIP
864WINDRES
865WINDMC
866OBJCOPY
867OBJDUMP
b121d7d4 868READELF
81ecdfbb
RW
869CC_FOR_TARGET
870CXX_FOR_TARGET
871GCC_FOR_TARGET
81ecdfbb 872GFORTRAN_FOR_TARGET
e552509b 873GOC_FOR_TARGET
81ecdfbb
RW
874AR_FOR_TARGET
875AS_FOR_TARGET
876DLLTOOL_FOR_TARGET
877LD_FOR_TARGET
878LIPO_FOR_TARGET
879NM_FOR_TARGET
6b91c541 880OBJCOPY_FOR_TARGET
81ecdfbb
RW
881OBJDUMP_FOR_TARGET
882RANLIB_FOR_TARGET
b121d7d4 883READELF_FOR_TARGET
81ecdfbb
RW
884STRIP_FOR_TARGET
885WINDRES_FOR_TARGET
886WINDMC_FOR_TARGET'
887
a0da8069
NN
888
889# Initialize some variables set by options.
c6b750e1
DJ
890ac_init_help=
891ac_init_version=false
81ecdfbb
RW
892ac_unrecognized_opts=
893ac_unrecognized_sep=
a0da8069
NN
894# The variables have the same names as the options, with
895# dashes changed to underlines.
c6b750e1 896cache_file=/dev/null
a0da8069 897exec_prefix=NONE
a0da8069 898no_create=
a0da8069
NN
899no_recursion=
900prefix=NONE
901program_prefix=NONE
902program_suffix=NONE
903program_transform_name=s,x,x,
904silent=
905site=
906srcdir=
a0da8069
NN
907verbose=
908x_includes=NONE
909x_libraries=NONE
c6b750e1
DJ
910
911# Installation directory options.
912# These are left unexpanded so users can "make install exec_prefix=/foo"
913# and all the variables that are supposed to be based on exec_prefix
914# by default will actually change.
915# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 916# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
917bindir='${exec_prefix}/bin'
918sbindir='${exec_prefix}/sbin'
919libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
920datarootdir='${prefix}/share'
921datadir='${datarootdir}'
a0da8069
NN
922sysconfdir='${prefix}/etc'
923sharedstatedir='${prefix}/com'
924localstatedir='${prefix}/var'
a0da8069
NN
925includedir='${prefix}/include'
926oldincludedir='/usr/include'
81ecdfbb
RW
927docdir='${datarootdir}/doc/${PACKAGE}'
928infodir='${datarootdir}/info'
929htmldir='${docdir}'
930dvidir='${docdir}'
931pdfdir='${docdir}'
932psdir='${docdir}'
933libdir='${exec_prefix}/lib'
934localedir='${datarootdir}/locale'
935mandir='${datarootdir}/man'
252b5132 936
a0da8069 937ac_prev=
81ecdfbb 938ac_dashdash=
a0da8069
NN
939for ac_option
940do
a0da8069
NN
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
81ecdfbb 943 eval $ac_prev=\$ac_option
a0da8069
NN
944 ac_prev=
945 continue
946 fi
252b5132 947
81ecdfbb 948 case $ac_option in
d0ac1c44
SM
949 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950 *=) ac_optarg= ;;
951 *) ac_optarg=yes ;;
81ecdfbb 952 esac
a0da8069
NN
953
954 # Accept the important Cygnus configure options, so we can diagnose typos.
955
81ecdfbb
RW
956 case $ac_dashdash$ac_option in
957 --)
958 ac_dashdash=yes ;;
a0da8069
NN
959
960 -bindir | --bindir | --bindi | --bind | --bin | --bi)
961 ac_prev=bindir ;;
962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 963 bindir=$ac_optarg ;;
a0da8069
NN
964
965 -build | --build | --buil | --bui | --bu)
c6b750e1 966 ac_prev=build_alias ;;
a0da8069 967 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 968 build_alias=$ac_optarg ;;
a0da8069
NN
969
970 -cache-file | --cache-file | --cache-fil | --cache-fi \
971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972 ac_prev=cache_file ;;
973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
975 cache_file=$ac_optarg ;;
976
977 --config-cache | -C)
978 cache_file=config.cache ;;
a0da8069 979
81ecdfbb 980 -datadir | --datadir | --datadi | --datad)
a0da8069 981 ac_prev=datadir ;;
81ecdfbb 982 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 983 datadir=$ac_optarg ;;
a0da8069 984
81ecdfbb
RW
985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986 | --dataroo | --dataro | --datar)
987 ac_prev=datarootdir ;;
988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990 datarootdir=$ac_optarg ;;
991
a0da8069 992 -disable-* | --disable-*)
81ecdfbb 993 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 994 # Reject names that are not valid shell variable names.
81ecdfbb 995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 996 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1000 *"
1001"enable_$ac_useropt"
1002"*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval enable_$ac_useropt=no ;;
1007
1008 -docdir | --docdir | --docdi | --doc | --do)
1009 ac_prev=docdir ;;
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1012
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014 ac_prev=dvidir ;;
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
a0da8069
NN
1017
1018 -enable-* | --enable-*)
81ecdfbb 1019 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 1020 # Reject names that are not valid shell variable names.
81ecdfbb 1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1022 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027"enable_$ac_useropt"
1028"*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
a0da8069 1031 esac
81ecdfbb 1032 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1033
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
c6b750e1 1041 exec_prefix=$ac_optarg ;;
a0da8069
NN
1042
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1046
c6b750e1
DJ
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
a0da8069
NN
1053
1054 -host | --host | --hos | --ho)
c6b750e1 1055 ac_prev=host_alias ;;
a0da8069 1056 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1057 host_alias=$ac_optarg ;;
a0da8069 1058
81ecdfbb
RW
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1064
a0da8069
NN
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1070 includedir=$ac_optarg ;;
a0da8069
NN
1071
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1075 infodir=$ac_optarg ;;
a0da8069
NN
1076
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1080 libdir=$ac_optarg ;;
a0da8069
NN
1081
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1087 libexecdir=$ac_optarg ;;
a0da8069 1088
81ecdfbb
RW
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1093
a0da8069 1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1095 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1099 localstatedir=$ac_optarg ;;
a0da8069
NN
1100
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1104 mandir=$ac_optarg ;;
a0da8069
NN
1105
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1109
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1111 | --no-cr | --no-c | -n)
a0da8069
NN
1112 no_create=yes ;;
1113
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1117
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1125 oldincludedir=$ac_optarg ;;
a0da8069
NN
1126
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1130 prefix=$ac_optarg ;;
a0da8069
NN
1131
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1137 program_prefix=$ac_optarg ;;
a0da8069
NN
1138
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1144 program_suffix=$ac_optarg ;;
a0da8069
NN
1145
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1161 program_transform_name=$ac_optarg ;;
a0da8069 1162
81ecdfbb
RW
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1167
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1172
a0da8069
NN
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1176
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
c6b750e1 1181 sbindir=$ac_optarg ;;
a0da8069
NN
1182
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
c6b750e1 1192 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1193
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
c6b750e1 1197 site=$ac_optarg ;;
a0da8069
NN
1198
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1202 srcdir=$ac_optarg ;;
a0da8069
NN
1203
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1209 sysconfdir=$ac_optarg ;;
a0da8069
NN
1210
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1212 ac_prev=target_alias ;;
a0da8069 1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1214 target_alias=$ac_optarg ;;
a0da8069
NN
1215
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1218
c6b750e1
DJ
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
a0da8069
NN
1221
1222 -with-* | --with-*)
81ecdfbb 1223 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1224 # Reject names that are not valid shell variable names.
81ecdfbb 1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1226 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231"with_$ac_useropt"
1232"*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
a0da8069 1235 esac
81ecdfbb 1236 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1237
1238 -without-* | --without-*)
81ecdfbb 1239 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1240 # Reject names that are not valid shell variable names.
81ecdfbb 1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1242 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1246 *"
1247"with_$ac_useropt"
1248"*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=no ;;
a0da8069
NN
1253
1254 --x)
1255 # Obsolete; use --with-x.
1256 with_x=yes ;;
1257
1258 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259 | --x-incl | --x-inc | --x-in | --x-i)
1260 ac_prev=x_includes ;;
1261 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1263 x_includes=$ac_optarg ;;
a0da8069
NN
1264
1265 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267 ac_prev=x_libraries ;;
1268 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1270 x_libraries=$ac_optarg ;;
a0da8069 1271
d0ac1c44
SM
1272 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1273Try \`$0 --help' for more information"
a0da8069
NN
1274 ;;
1275
c6b750e1
DJ
1276 *=*)
1277 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1279 case $ac_envvar in #(
1280 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1281 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1282 esac
1283 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1284 export $ac_envvar ;;
1285
a0da8069 1286 *)
c6b750e1 1287 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1288 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1290 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1291 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
a0da8069
NN
1292 ;;
1293
1294 esac
1295done
1296
1297if test -n "$ac_prev"; then
c6b750e1 1298 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1299 as_fn_error $? "missing argument to $ac_option"
a0da8069 1300fi
a0da8069 1301
81ecdfbb
RW
1302if test -n "$ac_unrecognized_opts"; then
1303 case $enable_option_checking in
1304 no) ;;
d0ac1c44 1305 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1306 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1307 esac
81ecdfbb 1308fi
a0da8069 1309
81ecdfbb
RW
1310# Check all directory arguments for consistency.
1311for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1312 datadir sysconfdir sharedstatedir localstatedir includedir \
1313 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1314 libdir localedir mandir
a0da8069 1315do
81ecdfbb
RW
1316 eval ac_val=\$$ac_var
1317 # Remove trailing slashes.
1318 case $ac_val in
1319 */ )
1320 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1321 eval $ac_var=\$ac_val;;
1322 esac
1323 # Be sure to have absolute directory names.
c6b750e1 1324 case $ac_val in
81ecdfbb
RW
1325 [\\/$]* | ?:[\\/]* ) continue;;
1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1327 esac
d0ac1c44 1328 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1329done
1330
c6b750e1
DJ
1331# There might be people who depend on the old broken behavior: `$host'
1332# used to hold the argument of --host etc.
1333# FIXME: To remove some day.
1334build=$build_alias
1335host=$host_alias
1336target=$target_alias
376a0e54 1337
c6b750e1
DJ
1338# FIXME: To remove some day.
1339if test "x$host_alias" != x; then
1340 if test "x$build_alias" = x; then
1341 cross_compiling=maybe
c6b750e1
DJ
1342 elif test "x$build_alias" != "x$host_alias"; then
1343 cross_compiling=yes
1344 fi
1345fi
1346
1347ac_tool_prefix=
1348test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349
1350test "$silent" = yes && exec 6>/dev/null
a0da8069 1351
a0da8069 1352
81ecdfbb
RW
1353ac_pwd=`pwd` && test -n "$ac_pwd" &&
1354ac_ls_di=`ls -di .` &&
1355ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1356 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1357test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1358 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1359
1360
a0da8069
NN
1361# Find the source files, if location was not specified.
1362if test -z "$srcdir"; then
1363 ac_srcdir_defaulted=yes
81ecdfbb
RW
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir=`$as_dirname -- "$as_myself" ||
1366$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$as_myself" : 'X\(//\)[^/]' \| \
1368 X"$as_myself" : 'X\(//\)$' \| \
1369 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370$as_echo X"$as_myself" |
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\/\)[^/].*/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\/\)$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\).*/{
1384 s//\1/
1385 q
1386 }
1387 s/.*/./; q'`
a0da8069 1388 srcdir=$ac_confdir
81ecdfbb 1389 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1390 srcdir=..
1391 fi
1392else
1393 ac_srcdir_defaulted=no
1394fi
81ecdfbb
RW
1395if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1397 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1398fi
1399ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400ac_abs_confdir=`(
d0ac1c44 1401 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1402 pwd)`
1403# When building in place, set srcdir=.
1404if test "$ac_abs_confdir" = "$ac_pwd"; then
1405 srcdir=.
1406fi
1407# Remove unnecessary trailing slashes from srcdir.
1408# Double slashes in file names in object file debugging info
1409# mess up M-x gdb in Emacs.
1410case $srcdir in
1411*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412esac
6d0cd39e
AM
1413case $srcdir in
1414 *" "*)
d0ac1c44 1415 as_fn_error $? "path to source, $srcdir, contains spaces"
6d0cd39e
AM
1416 ;;
1417esac
9cc8ae67
PB
1418ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1419
81ecdfbb
RW
1420for ac_var in $ac_precious_vars; do
1421 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_env_${ac_var}_value=\$${ac_var}
1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425done
c6b750e1
DJ
1426
1427#
1428# Report the --help message.
1429#
1430if test "$ac_init_help" = "long"; then
1431 # Omit some internal or obsolete options to make the list less imposing.
1432 # This message is too long to be a string in the A/UX 3.1 sh.
1433 cat <<_ACEOF
1434\`configure' configures this package to adapt to many kinds of systems.
1435
1436Usage: $0 [OPTION]... [VAR=VALUE]...
1437
1438To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439VAR=VALUE. See below for descriptions of some of the useful variables.
1440
1441Defaults for the options are specified in brackets.
1442
1443Configuration:
1444 -h, --help display this help and exit
1445 --help=short display options specific to this package
1446 --help=recursive display the short help of all the included packages
1447 -V, --version display version information and exit
d0ac1c44 1448 -q, --quiet, --silent do not print \`checking ...' messages
c6b750e1
DJ
1449 --cache-file=FILE cache test results in FILE [disabled]
1450 -C, --config-cache alias for \`--cache-file=config.cache'
1451 -n, --no-create do not create output files
1452 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1453
c6b750e1
DJ
1454Installation directories:
1455 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1456 [$ac_default_prefix]
c6b750e1 1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1458 [PREFIX]
c6b750e1
DJ
1459
1460By default, \`make install' will install all the files in
1461\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463for instance \`--prefix=\$HOME'.
1464
1465For better control, use the options below.
1466
1467Fine tuning of the installation directories:
81ecdfbb
RW
1468 --bindir=DIR user executables [EPREFIX/bin]
1469 --sbindir=DIR system admin executables [EPREFIX/sbin]
1470 --libexecdir=DIR program executables [EPREFIX/libexec]
1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1487_ACEOF
1488
1489 cat <<\_ACEOF
1490
1491Program names:
1492 --program-prefix=PREFIX prepend PREFIX to installed program names
1493 --program-suffix=SUFFIX append SUFFIX to installed program names
1494 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1495
1496System types:
1497 --build=BUILD configure for building on BUILD [guessed]
1498 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1499 --target=TARGET configure for building compilers for TARGET [HOST]
1500_ACEOF
a0da8069 1501fi
a0da8069 1502
c6b750e1
DJ
1503if test -n "$ac_init_help"; then
1504
1505 cat <<\_ACEOF
1506
1507Optional Features:
81ecdfbb 1508 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1509 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1510 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1b6c0831
L
1511 --enable-as-accelerator-for=ARG
1512 build as offload target compiler. Specify offload
1513 host triple by ARG
1514 --enable-offload-targets=LIST
1515 enable offloading to devices from comma-separated
1516 LIST of TARGET[=DIR]. Use optional path to find
1517 offload target compiler during the build
c7791212 1518 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1519 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
bb368aad 1520 --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
6c3bc0f8 1521 --enable-compressed-debug-sections={all,gas,gold,ld,none}
edeefb67
L
1522 Enable compressed debug sections for gas, gold or ld
1523 by default
e5f2f7d9 1524 --enable-year2038 enable support for timestamps past the year 2038
89a1e9c3
PB
1525 --disable-libquadmath do not build libquadmath directory
1526 --disable-libquadmath-support
1527 disable libquadmath support for Fortran
521ec477
DD
1528 --enable-libada build libada directory
1529 --enable-libssp build libssp directory
f66a9a70 1530 --disable-libstdcxx do not build libstdc++-v3 directory
1b6c0831
L
1531 --enable-liboffloadmic=ARG
1532 build liboffloadmic [ARG={no,host,target}]
ffdd6afc 1533 --enable-bootstrap enable bootstrapping [yes if native build]
af019bfd
L
1534 --enable-pgo-build[=lto]
1535 enable the PGO build
7ec59b9e 1536 --disable-isl-version-check
4849dfd8 1537 disable check for isl version
700d40ca 1538 --enable-lto enable link time optimization support
1b6c0831
L
1539 --enable-linker-plugin-configure-flags=FLAGS
1540 additional flags for configuring linker plugins
1541 [none]
1542 --enable-linker-plugin-flags=FLAGS
1543 additional flags for configuring and building linker
1544 plugins [none]
bf41f30d 1545 --enable-host-shared build host code as shared libraries
7837304f
AS
1546 --enable-stage1-languages[=all]
1547 choose additional languages to build during stage1.
1548 Mostly useful for compiler development
1549 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1550 Objective-C runtime
ce6c656d 1551 --enable-vtable-verify Enable vtable verification feature
521ec477 1552 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1553 force sequential configuration of sub-packages for
1554 the host, target or build machine, or all
1555 sub-packages
1556 --enable-maintainer-mode
1557 enable make rules and dependencies not useful (and
1558 sometimes confusing) to the casual installer
1559 --enable-stage1-checking[=all]
1560 choose additional checking for stage1 of the
1561 compiler
c6b750e1
DJ
1562 --enable-werror enable -Werror in bootstrap stage2 and later
1563
1564Optional Packages:
1565 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1566 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1567 --with-build-libsubdir=DIR Directory where to find libraries for build system
cf39cfc5 1568 --with-system-zlib use installed libz
7837304f
AS
1569 --with-mpc=PATH specify prefix directory for installed MPC package.
1570 Equivalent to --with-mpc-include=PATH/include plus
1571 --with-mpc-lib=PATH/lib
1572 --with-mpc-include=PATH specify directory for installed MPC include files
1573 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1574 --with-mpfr-dir=PATH this option has been REMOVED
1575 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1576 Equivalent to --with-mpfr-include=PATH/include plus
1577 --with-mpfr-lib=PATH/lib
c6b750e1 1578 --with-mpfr-include=PATH
521ec477
DD
1579 specify directory for installed MPFR include files
1580 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1581 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1582 --with-gmp=PATH specify prefix directory for the installed GMP
1583 package. Equivalent to
1584 --with-gmp-include=PATH/include plus
1585 --with-gmp-lib=PATH/lib
521ec477
DD
1586 --with-gmp-include=PATH specify directory for installed GMP include files
1587 --with-gmp-lib=PATH specify directory for the installed GMP library
b3676d82 1588 --with-stage1-libs=LIBS libraries for stage1
c1a5d03a
TT
1589 --with-static-standard-libraries
1590 use -static-libstdc++ and -static-libgcc
1591 (default=auto)
7837304f
AS
1592 --with-stage1-ldflags=FLAGS
1593 linker flags for stage1
7837304f
AS
1594 --with-boot-libs=LIBS libraries for stage2 and later
1595 --with-boot-ldflags=FLAGS
1596 linker flags for stage2 and later
4849dfd8 1597 --with-isl=PATH Specify prefix directory for the installed isl
7837304f 1598 package. Equivalent to
7ec59b9e
L
1599 --with-isl-include=PATH/include plus
1600 --with-isl-lib=PATH/lib
4849dfd8
NC
1601 --with-isl-include=PATH Specify directory for installed isl include files
1602 --with-isl-lib=PATH Specify the directory for the installed isl library
05a13254
NC
1603 --with-target-bdw-gc=PATHLIST
1604 specify prefix directory for installed bdw-gc
1605 package. Equivalent to
1606 --with-target-bdw-gc-include=PATH/include plus
1607 --with-target-bdw-gc-lib=PATH/lib
1608 --with-target-bdw-gc-include=PATHLIST
1609 specify directories for installed bdw-gc include
1610 files
1611 --with-target-bdw-gc-lib=PATHLIST
1612 specify directories for installed bdw-gc library
bf41f30d
NC
1613 --with-gcc-major-version-only
1614 use only GCC major number in filesystem paths
521ec477 1615 --with-build-sysroot=SYSROOT
c6b750e1 1616 use sysroot as the system root during the build
8a6ee3ab 1617 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1618 map A to B, C to D ... in debug information
1619 --with-build-config='NAME NAME2...'
1620 use config/NAME.mk build configuration
521ec477 1621 --with-build-time-tools=PATH
c6b750e1 1622 use given path to find target tools during the build
c6b750e1
DJ
1623
1624Some influential environment variables:
1625 CC C compiler command
1626 CFLAGS C compiler flags
1627 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1628 nonstandard directory <lib dir>
81ecdfbb 1629 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1630 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1631 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1632 CXX C++ compiler command
1633 CXXFLAGS C++ compiler flags
4074d5f2
RW
1634 build_configargs
1635 additional configure arguments for build directories
1636 host_configargs
1637 additional configure arguments for host directories
1638 target_configargs
1639 additional configure arguments for target directories
9a819804
AO
1640 AR AR for the host
1641 AS AS for the host
1642 DLLTOOL DLLTOOL for the host
1643 LD LD for the host
1644 LIPO LIPO for the host
1645 NM NM for the host
1646 RANLIB RANLIB for the host
1647 STRIP STRIP for the host
1648 WINDRES WINDRES for the host
0c24b341 1649 WINDMC WINDMC for the host
9a819804
AO
1650 OBJCOPY OBJCOPY for the host
1651 OBJDUMP OBJDUMP for the host
b121d7d4 1652 READELF READELF for the host
9a819804
AO
1653 CC_FOR_TARGET
1654 CC for the target
1655 CXX_FOR_TARGET
1656 CXX for the target
1657 GCC_FOR_TARGET
1658 GCC for the target
9a819804
AO
1659 GFORTRAN_FOR_TARGET
1660 GFORTRAN for the target
e552509b
ILT
1661 GOC_FOR_TARGET
1662 GOC for the target
9a819804
AO
1663 AR_FOR_TARGET
1664 AR for the target
1665 AS_FOR_TARGET
1666 AS for the target
1667 DLLTOOL_FOR_TARGET
1668 DLLTOOL for the target
1669 LD_FOR_TARGET
1670 LD for the target
1671 LIPO_FOR_TARGET
1672 LIPO for the target
1673 NM_FOR_TARGET
1674 NM for the target
6b91c541
AP
1675 OBJCOPY_FOR_TARGET
1676 OBJCOPY for the target
9a819804
AO
1677 OBJDUMP_FOR_TARGET
1678 OBJDUMP for the target
1679 RANLIB_FOR_TARGET
1680 RANLIB for the target
b121d7d4
DD
1681 READELF_FOR_TARGET
1682 READELF for the target
9a819804
AO
1683 STRIP_FOR_TARGET
1684 STRIP for the target
1685 WINDRES_FOR_TARGET
1686 WINDRES for the target
0c24b341
NC
1687 WINDMC_FOR_TARGET
1688 WINDMC for the target
c6b750e1
DJ
1689
1690Use these variables to override the choices made by `configure' or to help
1691it to find libraries and programs with nonstandard names/locations.
1692
81ecdfbb 1693Report bugs to the package provider.
c6b750e1 1694_ACEOF
81ecdfbb 1695ac_status=$?
c6b750e1
DJ
1696fi
1697
1698if test "$ac_init_help" = "recursive"; then
1699 # If there are subdirs, report their specific --help.
c6b750e1 1700 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1701 test -d "$ac_dir" ||
1702 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1703 continue
c6b750e1
DJ
1704 ac_builddir=.
1705
81ecdfbb
RW
1706case "$ac_dir" in
1707.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1708*)
1709 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1710 # A ".." for each directory in $ac_dir_suffix.
1711 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1712 case $ac_top_builddir_sub in
1713 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1714 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1715 esac ;;
1716esac
1717ac_abs_top_builddir=$ac_pwd
1718ac_abs_builddir=$ac_pwd$ac_dir_suffix
1719# for backward compatibility:
1720ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1721
1722case $srcdir in
81ecdfbb 1723 .) # We are building in place.
c6b750e1 1724 ac_srcdir=.
81ecdfbb
RW
1725 ac_top_srcdir=$ac_top_builddir_sub
1726 ac_abs_top_srcdir=$ac_pwd ;;
1727 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1728 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1729 ac_top_srcdir=$srcdir
1730 ac_abs_top_srcdir=$srcdir ;;
1731 *) # Relative name.
1732 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1733 ac_top_srcdir=$ac_top_build_prefix$srcdir
1734 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1735esac
81ecdfbb
RW
1736ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1737
1738 cd "$ac_dir" || { ac_status=$?; continue; }
1739 # Check for guested configure.
1740 if test -f "$ac_srcdir/configure.gnu"; then
1741 echo &&
1742 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1743 elif test -f "$ac_srcdir/configure"; then
1744 echo &&
1745 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1746 else
81ecdfbb
RW
1747 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1748 fi || ac_status=$?
1749 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1750 done
1751fi
1752
81ecdfbb 1753test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1754if $ac_init_version; then
1755 cat <<\_ACEOF
81ecdfbb 1756configure
d0ac1c44 1757generated by GNU Autoconf 2.69
c6b750e1 1758
d0ac1c44 1759Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
1760This configure script is free software; the Free Software Foundation
1761gives unlimited permission to copy, distribute and modify it.
1762_ACEOF
81ecdfbb 1763 exit
c6b750e1 1764fi
81ecdfbb
RW
1765
1766## ------------------------ ##
1767## Autoconf initialization. ##
1768## ------------------------ ##
1769
1770# ac_fn_c_try_compile LINENO
1771# --------------------------
1772# Try to compile conftest.$ac_ext, and return whether this succeeded.
1773ac_fn_c_try_compile ()
1774{
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 rm -f conftest.$ac_objext
1777 if { { ac_try="$ac_compile"
1778case "(($ac_try" in
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1781esac
1782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783$as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_compile") 2>conftest.err
1785 ac_status=$?
1786 if test -s conftest.err; then
1787 grep -v '^ *+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1790 fi
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && {
1793 test -z "$ac_c_werror_flag" ||
1794 test ! -s conftest.err
1795 } && test -s conftest.$ac_objext; then :
1796 ac_retval=0
1797else
1798 $as_echo "$as_me: failed program was:" >&5
1799sed 's/^/| /' conftest.$ac_ext >&5
1800
1801 ac_retval=1
1802fi
d0ac1c44
SM
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status $ac_retval
81ecdfbb
RW
1805
1806} # ac_fn_c_try_compile
1807
1808# ac_fn_cxx_try_compile LINENO
1809# ----------------------------
1810# Try to compile conftest.$ac_ext, and return whether this succeeded.
1811ac_fn_cxx_try_compile ()
1812{
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext
1815 if { { ac_try="$ac_compile"
1816case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819esac
1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821$as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_compile") 2>conftest.err
1823 ac_status=$?
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1828 fi
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_cxx_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest.$ac_objext; then :
1834 ac_retval=0
1835else
1836 $as_echo "$as_me: failed program was:" >&5
1837sed 's/^/| /' conftest.$ac_ext >&5
1838
1839 ac_retval=1
1840fi
d0ac1c44
SM
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status $ac_retval
81ecdfbb
RW
1843
1844} # ac_fn_cxx_try_compile
1845
b3676d82
EB
1846# ac_fn_cxx_try_link LINENO
1847# -------------------------
1848# Try to link conftest.$ac_ext, and return whether this succeeded.
1849ac_fn_cxx_try_link ()
1850{
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext conftest$ac_exeext
1853 if { { ac_try="$ac_link"
1854case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857esac
1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859$as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>conftest.err
1861 ac_status=$?
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1866 fi
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_cxx_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest$ac_exeext && {
1872 test "$cross_compiling" = yes ||
d0ac1c44 1873 test -x conftest$ac_exeext
b3676d82
EB
1874 }; then :
1875 ac_retval=0
1876else
1877 $as_echo "$as_me: failed program was:" >&5
1878sed 's/^/| /' conftest.$ac_ext >&5
1879
1880 ac_retval=1
1881fi
1882 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1883 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1884 # interfere with the next link command; also delete a directory that is
1885 # left behind by Apple's compiler. We do this before executing the actions.
1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status $ac_retval
b3676d82
EB
1889
1890} # ac_fn_cxx_try_link
1891
81ecdfbb
RW
1892# ac_fn_c_try_link LINENO
1893# -----------------------
1894# Try to link conftest.$ac_ext, and return whether this succeeded.
1895ac_fn_c_try_link ()
1896{
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext conftest$ac_exeext
1899 if { { ac_try="$ac_link"
1900case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903esac
1904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905$as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_link") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1912 fi
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_c_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest$ac_exeext && {
1918 test "$cross_compiling" = yes ||
d0ac1c44 1919 test -x conftest$ac_exeext
81ecdfbb
RW
1920 }; then :
1921 ac_retval=0
1922else
1923 $as_echo "$as_me: failed program was:" >&5
1924sed 's/^/| /' conftest.$ac_ext >&5
1925
1926 ac_retval=1
1927fi
1928 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1929 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1930 # interfere with the next link command; also delete a directory that is
1931 # left behind by Apple's compiler. We do this before executing the actions.
1932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
81ecdfbb
RW
1935
1936} # ac_fn_c_try_link
1937cat >config.log <<_ACEOF
c6b750e1
DJ
1938This file contains any messages produced by compilers while
1939running configure, to aid debugging if configure makes a mistake.
1940
1941It was created by $as_me, which was
d0ac1c44 1942generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
1943
1944 $ $0 $@
1945
1946_ACEOF
81ecdfbb 1947exec 5>>config.log
c6b750e1
DJ
1948{
1949cat <<_ASUNAME
1950## --------- ##
1951## Platform. ##
1952## --------- ##
1953
1954hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1955uname -m = `(uname -m) 2>/dev/null || echo unknown`
1956uname -r = `(uname -r) 2>/dev/null || echo unknown`
1957uname -s = `(uname -s) 2>/dev/null || echo unknown`
1958uname -v = `(uname -v) 2>/dev/null || echo unknown`
1959
1960/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1961/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1962
1963/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1964/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1965/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1966/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1967/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1968/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1969/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1970
1971_ASUNAME
1972
1973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974for as_dir in $PATH
1975do
1976 IFS=$as_save_IFS
1977 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1978 $as_echo "PATH: $as_dir"
1979 done
1980IFS=$as_save_IFS
c6b750e1
DJ
1981
1982} >&5
1983
1984cat >&5 <<_ACEOF
1985
1986
1987## ----------- ##
1988## Core tests. ##
1989## ----------- ##
1990
1991_ACEOF
1992
1993
1994# Keep a trace of the command line.
1995# Strip out --no-create and --no-recursion so they do not pile up.
1996# Strip out --silent because we don't want to record it for future runs.
1997# Also quote any args containing shell meta-characters.
1998# Make two passes to allow for proper duplicate-argument suppression.
1999ac_configure_args=
2000ac_configure_args0=
2001ac_configure_args1=
c6b750e1
DJ
2002ac_must_keep_next=false
2003for ac_pass in 1 2
2004do
2005 for ac_arg
2006 do
2007 case $ac_arg in
2008 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2010 | -silent | --silent | --silen | --sile | --sil)
2011 continue ;;
81ecdfbb
RW
2012 *\'*)
2013 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2014 esac
2015 case $ac_pass in
81ecdfbb 2016 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 2017 2)
81ecdfbb 2018 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
2019 if test $ac_must_keep_next = true; then
2020 ac_must_keep_next=false # Got value, back to normal.
2021 else
2022 case $ac_arg in
2023 *=* | --config-cache | -C | -disable-* | --disable-* \
2024 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2025 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2026 | -with-* | --with-* | -without-* | --without-* | --x)
2027 case "$ac_configure_args0 " in
2028 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2029 esac
2030 ;;
2031 -* ) ac_must_keep_next=true ;;
2032 esac
2033 fi
81ecdfbb 2034 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
2035 ;;
2036 esac
2037 done
2038done
81ecdfbb
RW
2039{ ac_configure_args0=; unset ac_configure_args0;}
2040{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
2041
2042# When interrupted or exit'd, cleanup temporary files, and complete
2043# config.log. We remove comments because anyway the quotes in there
2044# would cause problems or look ugly.
81ecdfbb
RW
2045# WARNING: Use '\'' to represent an apostrophe within the trap.
2046# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
2047trap 'exit_status=$?
2048 # Save into config.log some information that might help in debugging.
2049 {
2050 echo
2051
d0ac1c44 2052 $as_echo "## ---------------- ##
c6b750e1 2053## Cache variables. ##
d0ac1c44 2054## ---------------- ##"
c6b750e1
DJ
2055 echo
2056 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2057(
2058 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2059 eval ac_val=\$$ac_var
2060 case $ac_val in #(
2061 *${as_nl}*)
2062 case $ac_var in #(
2063 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2064$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2065 esac
2066 case $ac_var in #(
2067 _ | IFS | as_nl) ;; #(
2068 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2069 *) { eval $ac_var=; unset $ac_var;} ;;
2070 esac ;;
2071 esac
2072 done
c6b750e1 2073 (set) 2>&1 |
81ecdfbb
RW
2074 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2075 *${as_nl}ac_space=\ *)
c6b750e1 2076 sed -n \
81ecdfbb
RW
2077 "s/'\''/'\''\\\\'\'''\''/g;
2078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2079 ;; #(
c6b750e1 2080 *)
81ecdfbb 2081 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2082 ;;
81ecdfbb
RW
2083 esac |
2084 sort
2085)
c6b750e1
DJ
2086 echo
2087
d0ac1c44 2088 $as_echo "## ----------------- ##
c6b750e1 2089## Output variables. ##
d0ac1c44 2090## ----------------- ##"
c6b750e1
DJ
2091 echo
2092 for ac_var in $ac_subst_vars
2093 do
81ecdfbb
RW
2094 eval ac_val=\$$ac_var
2095 case $ac_val in
2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2097 esac
2098 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2099 done | sort
2100 echo
2101
2102 if test -n "$ac_subst_files"; then
d0ac1c44 2103 $as_echo "## ------------------- ##
81ecdfbb 2104## File substitutions. ##
d0ac1c44 2105## ------------------- ##"
c6b750e1
DJ
2106 echo
2107 for ac_var in $ac_subst_files
2108 do
81ecdfbb
RW
2109 eval ac_val=\$$ac_var
2110 case $ac_val in
2111 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112 esac
2113 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2114 done | sort
2115 echo
2116 fi
2117
2118 if test -s confdefs.h; then
d0ac1c44 2119 $as_echo "## ----------- ##
c6b750e1 2120## confdefs.h. ##
d0ac1c44 2121## ----------- ##"
c6b750e1 2122 echo
81ecdfbb 2123 cat confdefs.h
c6b750e1
DJ
2124 echo
2125 fi
2126 test "$ac_signal" != 0 &&
81ecdfbb
RW
2127 $as_echo "$as_me: caught signal $ac_signal"
2128 $as_echo "$as_me: exit $exit_status"
c6b750e1 2129 } >&5
81ecdfbb
RW
2130 rm -f core *.core core.conftest.* &&
2131 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2132 exit $exit_status
81ecdfbb 2133' 0
c6b750e1 2134for ac_signal in 1 2 13 15; do
81ecdfbb 2135 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2136done
2137ac_signal=0
2138
2139# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2140rm -f -r conftest* confdefs.h
2141
2142$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2143
2144# Predefined preprocessor variables.
2145
2146cat >>confdefs.h <<_ACEOF
2147#define PACKAGE_NAME "$PACKAGE_NAME"
2148_ACEOF
2149
c6b750e1
DJ
2150cat >>confdefs.h <<_ACEOF
2151#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2152_ACEOF
2153
c6b750e1
DJ
2154cat >>confdefs.h <<_ACEOF
2155#define PACKAGE_VERSION "$PACKAGE_VERSION"
2156_ACEOF
2157
c6b750e1
DJ
2158cat >>confdefs.h <<_ACEOF
2159#define PACKAGE_STRING "$PACKAGE_STRING"
2160_ACEOF
2161
c6b750e1
DJ
2162cat >>confdefs.h <<_ACEOF
2163#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2164_ACEOF
2165
81ecdfbb
RW
2166cat >>confdefs.h <<_ACEOF
2167#define PACKAGE_URL "$PACKAGE_URL"
2168_ACEOF
2169
c6b750e1
DJ
2170
2171# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2172# Prefer an explicitly selected file to automatically selected ones.
2173ac_site_file1=NONE
2174ac_site_file2=NONE
2175if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2176 # We do not want a PATH search for config.site.
2177 case $CONFIG_SITE in #((
2178 -*) ac_site_file1=./$CONFIG_SITE;;
2179 */*) ac_site_file1=$CONFIG_SITE;;
2180 *) ac_site_file1=./$CONFIG_SITE;;
2181 esac
81ecdfbb
RW
2182elif test "x$prefix" != xNONE; then
2183 ac_site_file1=$prefix/share/config.site
2184 ac_site_file2=$prefix/etc/config.site
2185else
2186 ac_site_file1=$ac_default_prefix/share/config.site
2187 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2188fi
81ecdfbb
RW
2189for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2190do
2191 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2192 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2194$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2195 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2196 . "$ac_site_file" \
2197 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2199as_fn_error $? "failed to load site script $ac_site_file
2200See \`config.log' for more details" "$LINENO" 5; }
a0da8069
NN
2201 fi
2202done
2203
2204if test -r "$cache_file"; then
d0ac1c44
SM
2205 # Some versions of bash will fail to source /dev/null (special files
2206 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2207 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2209$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2210 case $cache_file in
81ecdfbb
RW
2211 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2212 *) . "./$cache_file";;
c6b750e1
DJ
2213 esac
2214 fi
a0da8069 2215else
81ecdfbb
RW
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2217$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2218 >$cache_file
2219fi
2220
2221# Check that the precious variables saved in the cache have kept the same
2222# value.
2223ac_cache_corrupted=false
81ecdfbb 2224for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2225 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2226 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2227 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2228 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2229 case $ac_old_set,$ac_new_set in
2230 set,)
81ecdfbb
RW
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2232$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2233 ac_cache_corrupted=: ;;
2234 ,set)
81ecdfbb
RW
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2236$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2237 ac_cache_corrupted=: ;;
2238 ,);;
2239 *)
2240 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2241 # differences in whitespace do not lead to failure.
2242 ac_old_val_w=`echo x $ac_old_val`
2243 ac_new_val_w=`echo x $ac_new_val`
2244 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2246$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2247 ac_cache_corrupted=:
2248 else
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2250$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2251 eval $ac_var=\$ac_old_val
2252 fi
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2254$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2256$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2257 fi;;
2258 esac
2259 # Pass precious variables to config.status.
2260 if test "$ac_new_set" = set; then
2261 case $ac_new_val in
81ecdfbb 2262 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2263 *) ac_arg=$ac_var=$ac_new_val ;;
2264 esac
2265 case " $ac_configure_args " in
2266 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2267 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2268 esac
2269 fi
2270done
2271if $ac_cache_corrupted; then
81ecdfbb
RW
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2275$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2276 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2277fi
81ecdfbb
RW
2278## -------------------- ##
2279## Main body of script. ##
2280## -------------------- ##
a0da8069
NN
2281
2282ac_ext=c
a0da8069 2283ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286ac_compiler_gnu=$ac_cv_c_compiler_gnu
2287
2288
2289
2290
c6b750e1
DJ
2291
2292
34a0f3cf 2293
c6b750e1 2294
5b553f7e
RW
2295progname=$0
2296# if PWD already has a value, it is probably wrong.
2297if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2298
2299# Export original configure arguments for use by sub-configures.
2300# Quote arguments with shell meta charatcers.
2301TOPLEVEL_CONFIGURE_ARGUMENTS=
2302set -- "$progname" "$@"
2303for ac_arg
2304do
2305 case "$ac_arg" in
2306 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2307 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2308 # if the argument is of the form -foo=baz, quote the baz part only
2309 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2310 *) ;;
2311 esac
2312 # Add the quoted argument to the list.
2313 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2314done
2315if test "$silent" = yes; then
2316 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2317fi
2318# Remove the initial space we just introduced and, as these will be
2319# expanded by make, quote '$'.
2320TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2321
c6b750e1
DJ
2322
2323# Find the build, host, and target systems.
a0da8069 2324ac_aux_dir=
81ecdfbb 2325for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2326 if test -f "$ac_dir/install-sh"; then
2327 ac_aux_dir=$ac_dir
2328 ac_install_sh="$ac_aux_dir/install-sh -c"
2329 break
2330 elif test -f "$ac_dir/install.sh"; then
2331 ac_aux_dir=$ac_dir
2332 ac_install_sh="$ac_aux_dir/install.sh -c"
2333 break
2334 elif test -f "$ac_dir/shtool"; then
2335 ac_aux_dir=$ac_dir
2336 ac_install_sh="$ac_aux_dir/shtool install -c"
2337 break
2338 fi
a0da8069
NN
2339done
2340if test -z "$ac_aux_dir"; then
d0ac1c44 2341 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2342fi
81ecdfbb
RW
2343
2344# These three variables are undocumented and unsupported,
2345# and are intended to be withdrawn in a future Autoconf release.
2346# They can cause serious problems if a builder's source tree is in a directory
2347# whose full name contains unusual characters.
2348ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2349ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2350ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2351
a0da8069 2352
c6b750e1 2353# Make sure we can run config.sub.
81ecdfbb 2354$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2355 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2356
2357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2358$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2359if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2360 $as_echo_n "(cached) " >&6
2361else
2362 ac_build_alias=$build_alias
2363test "x$ac_build_alias" = x &&
2364 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2365test "x$ac_build_alias" = x &&
d0ac1c44 2366 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2367ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2368 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2369
2370fi
2371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2372$as_echo "$ac_cv_build" >&6; }
2373case $ac_cv_build in
2374*-*-*) ;;
d0ac1c44 2375*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2376esac
c6b750e1 2377build=$ac_cv_build
81ecdfbb
RW
2378ac_save_IFS=$IFS; IFS='-'
2379set x $ac_cv_build
2380shift
2381build_cpu=$1
2382build_vendor=$2
2383shift; shift
2384# Remember, the first character of IFS is used to create $*,
2385# except with old shells:
2386build_os=$*
2387IFS=$ac_save_IFS
2388case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2389
a0da8069 2390
c6b750e1
DJ
2391 case ${build_alias} in
2392 "") build_noncanonical=${build} ;;
2393 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2394esac
2395
2396
cac3d6c4 2397
c6b750e1
DJ
2398 case ${host_alias} in
2399 "") host_noncanonical=${build_noncanonical} ;;
2400 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2401esac
2402
cac3d6c4 2403
c6b750e1
DJ
2404
2405 case ${target_alias} in
2406 "") target_noncanonical=${host_noncanonical} ;;
2407 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2408esac
2409
cac3d6c4 2410
c6b750e1
DJ
2411
2412
2413test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2414 test "$program_prefix$program_suffix$program_transform_name" = \
2415 NONENONEs,x,x, &&
c6b750e1 2416 program_transform_name=s,y,y,
cac3d6c4 2417
81ecdfbb
RW
2418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2419$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2420if ${ac_cv_host+:} false; then :
81ecdfbb 2421 $as_echo_n "(cached) " >&6
cac3d6c4 2422else
81ecdfbb
RW
2423 if test "x$host_alias" = x; then
2424 ac_cv_host=$ac_cv_build
2425else
2426 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2427 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2428fi
c6b750e1
DJ
2429
2430fi
81ecdfbb
RW
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2432$as_echo "$ac_cv_host" >&6; }
2433case $ac_cv_host in
2434*-*-*) ;;
d0ac1c44 2435*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2436esac
c6b750e1 2437host=$ac_cv_host
81ecdfbb
RW
2438ac_save_IFS=$IFS; IFS='-'
2439set x $ac_cv_host
2440shift
2441host_cpu=$1
2442host_vendor=$2
2443shift; shift
2444# Remember, the first character of IFS is used to create $*,
2445# except with old shells:
2446host_os=$*
2447IFS=$ac_save_IFS
2448case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2449
2450
81ecdfbb
RW
2451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2452$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2453if ${ac_cv_target+:} false; then :
81ecdfbb 2454 $as_echo_n "(cached) " >&6
c6b750e1 2455else
81ecdfbb
RW
2456 if test "x$target_alias" = x; then
2457 ac_cv_target=$ac_cv_host
2458else
2459 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2460 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2461fi
c6b750e1 2462
cac3d6c4 2463fi
81ecdfbb
RW
2464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2465$as_echo "$ac_cv_target" >&6; }
2466case $ac_cv_target in
2467*-*-*) ;;
d0ac1c44 2468*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2469esac
c6b750e1 2470target=$ac_cv_target
81ecdfbb
RW
2471ac_save_IFS=$IFS; IFS='-'
2472set x $ac_cv_target
2473shift
2474target_cpu=$1
2475target_vendor=$2
2476shift; shift
2477# Remember, the first character of IFS is used to create $*,
2478# except with old shells:
2479target_os=$*
2480IFS=$ac_save_IFS
2481case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2482
2483
2484# The aliases save the names the user supplied, while $host etc.
2485# will get canonicalized.
2486test -n "$target_alias" &&
2487 test "$program_prefix$program_suffix$program_transform_name" = \
2488 NONENONEs,x,x, &&
2489 program_prefix=${target_alias}-
81ecdfbb 2490
a0da8069 2491test "$program_prefix" != NONE &&
81ecdfbb 2492 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2493# Use a double $ so make ignores it.
2494test "$program_suffix" != NONE &&
81ecdfbb
RW
2495 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2496# Double any \ or $.
c6b750e1 2497# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2498ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2499program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2500
a0da8069
NN
2501
2502
e5c3f801
NN
2503# Get 'install' or 'install-sh' and its variants.
2504# Find a good install program. We prefer a C program (faster),
2505# so one script is as good as another. But avoid the broken or
2506# incompatible versions:
2507# SysV /etc/install, /usr/sbin/install
2508# SunOS /usr/etc/install
2509# IRIX /sbin/install
2510# AIX /bin/install
c6b750e1 2511# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2512# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2513# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2514# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2515# OS/2's system install, which has a completely different semantic
e5c3f801 2516# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2517# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2519$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2520if test -z "$INSTALL"; then
d0ac1c44 2521if ${ac_cv_path_install+:} false; then :
81ecdfbb 2522 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2523else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525for as_dir in $PATH
2526do
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2529 # Account for people who put trailing slashes in PATH elements.
2530case $as_dir/ in #((
2531 ./ | .// | /[cC]/* | \
c6b750e1 2532 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2533 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2534 /usr/ucb/* ) ;;
2535 *)
2536 # OSF1 and SCO ODT 3.0 have their own names for install.
2537 # Don't use installbsd from OSF since it installs stuff as root
2538 # by default.
2539 for ac_prog in ginstall scoinst install; do
2540 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2541 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 2542 if test $ac_prog = install &&
c6b750e1 2543 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2544 # AIX install. It has an incompatible calling convention.
2545 :
c6b750e1
DJ
2546 elif test $ac_prog = install &&
2547 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2548 # program-specific install script used by HP pwplus--don't use.
2549 :
e5c3f801 2550 else
58c85be7
RW
2551 rm -rf conftest.one conftest.two conftest.dir
2552 echo one > conftest.one
2553 echo two > conftest.two
2554 mkdir conftest.dir
2555 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2556 test -s conftest.one && test -s conftest.two &&
2557 test -s conftest.dir/conftest.one &&
2558 test -s conftest.dir/conftest.two
2559 then
2560 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2561 break 3
2562 fi
e5c3f801
NN
2563 fi
2564 fi
2565 done
c6b750e1
DJ
2566 done
2567 ;;
2568esac
81ecdfbb
RW
2569
2570 done
2571IFS=$as_save_IFS
c6b750e1 2572
58c85be7 2573rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2574
2575fi
2576 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2577 INSTALL=$ac_cv_path_install
e5c3f801 2578 else
58c85be7
RW
2579 # As a last resort, use the slow shell script. Don't cache a
2580 # value for INSTALL within a source directory, because that will
e5c3f801 2581 # break other packages using the cache if that directory is
58c85be7 2582 # removed, or if the value is a relative name.
c6b750e1 2583 INSTALL=$ac_install_sh
e5c3f801
NN
2584 fi
2585fi
81ecdfbb
RW
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2587$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2588
2589# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2590# It thinks the first close brace ends the variable substitution.
2591test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2592
c6b750e1 2593test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2594
2595test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2596
81ecdfbb
RW
2597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2598$as_echo_n "checking whether ln works... " >&6; }
d0ac1c44 2599if ${acx_cv_prog_LN+:} false; then :
81ecdfbb 2600 $as_echo_n "(cached) " >&6
656fdd47
PB
2601else
2602 rm -f conftestdata_t
2603echo >conftestdata_f
2604if ln conftestdata_f conftestdata_t 2>/dev/null
2605then
2606 acx_cv_prog_LN=ln
2607else
2608 acx_cv_prog_LN=no
2609fi
2610rm -f conftestdata_f conftestdata_t
2611
2612fi
2613if test $acx_cv_prog_LN = no; then
2614 LN="cp"
81ecdfbb
RW
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2616$as_echo "no, using $LN" >&6; }
656fdd47
PB
2617else
2618 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2620$as_echo "yes" >&6; }
656fdd47
PB
2621fi
2622
81ecdfbb
RW
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2624$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2625LN_S=$as_ln_s
2626if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2628$as_echo "yes" >&6; }
cac3d6c4 2629else
81ecdfbb
RW
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2631$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2632fi
2633
8e957354
PB
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2635$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 2636if ${ac_cv_path_SED+:} false; then :
8e957354
PB
2637 $as_echo_n "(cached) " >&6
2638else
2639 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2640 for ac_i in 1 2 3 4 5 6 7; do
2641 ac_script="$ac_script$as_nl$ac_script"
2642 done
2643 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2644 { ac_script=; unset ac_script;}
2645 if test -z "$SED"; then
2646 ac_path_SED_found=false
2647 # Loop through the user's path and test for each of PROGNAME-LIST
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649for as_dir in $PATH
2650do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_prog in sed gsed; do
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 2656 as_fn_executable_p "$ac_path_SED" || continue
8e957354
PB
2657# Check for GNU ac_path_SED and select it if it is found.
2658 # Check for GNU $ac_path_SED
2659case `"$ac_path_SED" --version 2>&1` in
2660*GNU*)
2661 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2662*)
2663 ac_count=0
2664 $as_echo_n 0123456789 >"conftest.in"
2665 while :
2666 do
2667 cat "conftest.in" "conftest.in" >"conftest.tmp"
2668 mv "conftest.tmp" "conftest.in"
2669 cp "conftest.in" "conftest.nl"
2670 $as_echo '' >> "conftest.nl"
2671 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2673 as_fn_arith $ac_count + 1 && ac_count=$as_val
2674 if test $ac_count -gt ${ac_path_SED_max-0}; then
2675 # Best one so far, save it but keep looking for a better one
2676 ac_cv_path_SED="$ac_path_SED"
2677 ac_path_SED_max=$ac_count
2678 fi
2679 # 10*(2^10) chars as input seems more than enough
2680 test $ac_count -gt 10 && break
2681 done
2682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2683esac
2684
2685 $ac_path_SED_found && break 3
2686 done
2687 done
2688 done
2689IFS=$as_save_IFS
2690 if test -z "$ac_cv_path_SED"; then
d0ac1c44 2691 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8e957354
PB
2692 fi
2693else
2694 ac_cv_path_SED=$SED
2695fi
2696
2697fi
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2699$as_echo "$ac_cv_path_SED" >&6; }
2700 SED="$ac_cv_path_SED"
2701 rm -f conftest.sed
2702
2703for ac_prog in gawk mawk nawk awk
2704do
2705 # Extract the first word of "$ac_prog", so it can be a program name with args.
2706set dummy $ac_prog; ac_word=$2
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2709if ${ac_cv_prog_AWK+:} false; then :
8e957354
PB
2710 $as_echo_n "(cached) " >&6
2711else
2712 if test -n "$AWK"; then
2713 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2714else
2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716for as_dir in $PATH
2717do
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8e957354
PB
2722 ac_cv_prog_AWK="$ac_prog"
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 break 2
2725 fi
2726done
2727 done
2728IFS=$as_save_IFS
2729
2730fi
2731fi
2732AWK=$ac_cv_prog_AWK
2733if test -n "$AWK"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2735$as_echo "$AWK" >&6; }
2736else
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738$as_echo "no" >&6; }
2739fi
2740
2741
2742 test -n "$AWK" && break
2743done
2744
e5c3f801 2745
0fdbe983
DJ
2746srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2747
2748# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2749# a relative path.
2750if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2751 INSTALL="${srcpwd}/install-sh -c"
2752fi
2753
a0da8069
NN
2754# Set srcdir to "." if that's what it is.
2755# This is important for multilib support.
2756pwd=`${PWDCMD-pwd}`
a0da8069
NN
2757if test "${pwd}" = "${srcpwd}" ; then
2758 srcdir=.
252b5132
RH
2759fi
2760
a0da8069 2761topsrcdir=$srcpwd
252b5132 2762
a0da8069 2763extra_host_args=
afefada0 2764
a0da8069
NN
2765### To add a new directory to the tree, first choose whether it is a target
2766### or a host dependent tool. Then put it into the appropriate list
2767### (library or tools, host or target), doing a dependency sort.
252b5132 2768
c6b750e1 2769# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2770# configdirs, or target_configdirs; see the serialization section below.
252b5132 2771
c6b750e1
DJ
2772# Dependency sorting is only needed when *configuration* must be done in
2773# a particular order. In all cases a dependency should be specified in
a0da8069 2774# the Makefile, whether or not it's implicitly specified here.
252b5132 2775
a0da8069
NN
2776# Double entries in build_configdirs, configdirs, or target_configdirs may
2777# cause circular dependencies and break everything horribly.
252b5132 2778
6a9cf61e
PB
2779# these library is used by various programs built for the build
2780# environment
2781#
1b6c0831 2782build_libs="build-libiberty build-libcpp"
6a9cf61e
PB
2783
2784# these tools are built for the build environment
a90ef4bf 2785build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2786
a0da8069 2787# these libraries are used by various programs built for the host environment
1b6c0831 2788#f
0e65dfba 2789host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
a0da8069 2790
a0da8069
NN
2791# these tools are built for the host environment
2792# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2793# know that we are building the simulator.
2794# binutils, gas and ld appear in that order because it makes sense to run
2795# "make check" in that particular order.
e6de499b 2796# If --enable-gold is used, "gold" may replace "ld".
919adfe8 2797host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
a0da8069 2798
a0da8069
NN
2799# these libraries are built for the target environment, and are built after
2800# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2801# Note that libiberty is not a target library.
b1299c4e 2802target_libraries="target-libgcc \
2bf680c4 2803 target-libbacktrace \
a0da8069
NN
2804 target-libgloss \
2805 target-newlib \
cff87f51 2806 target-libgomp \
1b6c0831 2807 target-liboffloadmic \
bf41f30d 2808 target-libhsail-rt \
7ec59b9e 2809 target-libatomic \
d32e2926 2810 target-libitm \
b9459e83 2811 target-libstdc++-v3 \
5286fdef 2812 target-libsanitizer \
95e43135 2813 target-libvtv \
bb780410 2814 target-libssp \
e552509b 2815 target-libquadmath \
4b1cb4fe 2816 target-libgfortran \
05a13254 2817 target-libffi \
a2592b1b 2818 target-libobjc \
e552509b 2819 target-libada \
e3f56a99 2820 target-libgo"
a0da8069 2821
9c14acb8
NN
2822# these tools are built using the target libraries, and are intended to
2823# run only in the target environment
a0da8069 2824#
9c14acb8 2825# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2826# list belongs in this list.
a0da8069 2827#
a90ef4bf 2828target_tools="target-rda"
252b5132 2829
a0da8069 2830################################################################################
252b5132 2831
a0da8069
NN
2832## All tools belong in one of the four categories, and are assigned above
2833## We assign ${configdirs} this way to remove all embedded newlines. This
2834## is important because configure will choke if they ever get through.
2835## ${configdirs} is directories we build using the host tools.
2836## ${target_configdirs} is directories we build using the target tools.
a0da8069 2837configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2838target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2839build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2840
9cc8ae67
PB
2841
2842
a0da8069 2843################################################################################
252b5132 2844
a0da8069 2845srcname="gnu development package"
252b5132 2846
a0da8069
NN
2847# This gets set non-empty for some net releases of packages.
2848appdirs=""
252b5132 2849
a0da8069
NN
2850# Define is_cross_compiler to save on calls to 'test'.
2851is_cross_compiler=
2852if test x"${host}" = x"${target}" ; then
2853 is_cross_compiler=no
252b5132 2854else
a0da8069 2855 is_cross_compiler=yes
c6b750e1 2856fi
252b5132 2857
9175bfc0 2858# Find the build and target subdir names.
dd12c3a8 2859
66a79c16
DJ
2860# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2861# have matching libraries, they should use host libraries: Makefile.tpl
2862# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2863# However, they still use the build modules, because the corresponding
2864# host modules (e.g. bison) are only built for the host when bootstrap
2865# finishes. So:
2866# - build_subdir is where we find build modules, and never changes.
2867# - build_libsubdir is where we find build libraries, and can be overridden.
2868
2869# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2870build_subdir="build-${build_noncanonical}"
c6b750e1 2871
81ecdfbb
RW
2872# Check whether --with-build-libsubdir was given.
2873if test "${with_build_libsubdir+set}" = set; then :
2874 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2875else
2876 build_libsubdir="$build_subdir"
81ecdfbb
RW
2877fi
2878
b00612cc
PB
2879# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2880if ( test $srcdir = . && test -d gcc ) \
2881 || test -d $srcdir/../host-${host_noncanonical}; then
2882 host_subdir="host-${host_noncanonical}"
2883else
2884 host_subdir=.
2885fi
dd12c3a8
NN
2886# No prefix.
2887target_subdir=${target_noncanonical}
c6b750e1 2888
2fd0b40b
RW
2889# Be sure to cover against remnants of an in-tree build.
2890if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
d0ac1c44 2891 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2fd0b40b
RW
2892Use a pristine source tree when building in a separate tree" "$LINENO" 5
2893fi
252b5132 2894
a0da8069
NN
2895# Skipdirs are removed silently.
2896skipdirs=
2897# Noconfigdirs are removed loudly.
2898noconfigdirs=""
252b5132 2899
a0da8069
NN
2900use_gnu_ld=
2901# Make sure we don't let GNU ld be added if we didn't want it.
2902if test x$with_gnu_ld = xno ; then
2903 use_gnu_ld=no
93f9b408 2904 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2905fi
2906
a0da8069
NN
2907use_gnu_as=
2908# Make sure we don't let GNU as be added if we didn't want it.
2909if test x$with_gnu_as = xno ; then
2910 use_gnu_as=no
2911 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2912fi
2913
700d40ca 2914use_included_zlib=
cf39cfc5
L
2915
2916# Check whether --with-system-zlib was given.
2917if test "${with_system_zlib+set}" = set; then :
2918 withval=$with_system_zlib;
2919fi
2920
700d40ca
ILT
2921# Make sure we don't let ZLIB be added if we didn't want it.
2922if test x$with_system_zlib = xyes ; then
2923 use_included_zlib=no
2924 noconfigdirs="$noconfigdirs zlib"
2925fi
2926
69961a84
ДП
2927# Don't compile the bundled readline/libreadline.a if --with-system-readline
2928# is provided.
2929if test x$with_system_readline = xyes ; then
2930 noconfigdirs="$noconfigdirs readline"
2931fi
2932
c6b750e1 2933# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2934# it's not even worth trying to configure, much less build, that tool.
252b5132 2935
a0da8069
NN
2936case ${with_x} in
2937 yes | "") ;; # the default value for this tree is that X11 is available
2938 no)
675c6968 2939 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2940 # We won't be able to build gdbtk without X.
c6b750e1 2941 enable_gdbtk=no
a0da8069
NN
2942 ;;
2943 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2944esac
252b5132 2945
0377a422 2946# Some are only suitable for cross toolchains.
a0da8069
NN
2947# Remove these if host=target.
2948cross_only="target-libgloss target-newlib target-opcodes"
2949
2950case $is_cross_compiler in
2951 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2952esac
252b5132 2953
a0da8069
NN
2954# If both --with-headers and --with-libs are specified, default to
2955# --without-newlib.
32be62b5
RS
2956if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2957 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2958 if test x"${with_newlib}" = x ; then
2959 with_newlib=no
2960 fi
252b5132
RH
2961fi
2962
a0da8069
NN
2963# Recognize --with-newlib/--without-newlib.
2964case ${with_newlib} in
2965 no) skipdirs="${skipdirs} target-newlib" ;;
2966 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2967esac
252b5132 2968
1b6c0831
L
2969# Check whether --enable-as-accelerator-for was given.
2970if test "${enable_as_accelerator_for+set}" = set; then :
2971 enableval=$enable_as_accelerator_for;
2972fi
2973
2974
2975# Check whether --enable-offload-targets was given.
2976if test "${enable_offload_targets+set}" = set; then :
2977 enableval=$enable_offload_targets;
2978 if test x"$enable_offload_targets" = x; then
d0ac1c44 2979 as_fn_error $? "no offload targets specified" "$LINENO" 5
1b6c0831
L
2980 fi
2981
2982else
2983 enable_offload_targets=
2984fi
2985
2986
c7791212
NC
2987# Handle --enable-gold, --enable-ld.
2988# --disable-gold [--enable-ld]
2989# Build only ld. Default option.
d3b50760
L
2990# --enable-gold [--enable-ld]
2991# Build both gold and ld. Install gold as "ld.gold", install ld
2992# as "ld.bfd" and "ld".
2993# --enable-gold=default [--enable-ld]
c7791212
NC
2994# Build both gold and ld. Install gold as "ld.gold" and "ld",
2995# install ld as "ld.bfd".
2996# --enable-gold[=default] --disable-ld
2997# Build only gold, which is then installed as both "ld.gold" and "ld".
2998# --enable-gold --enable-ld=default
d3b50760
L
2999# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3000# and ld.bfd).
c7791212
NC
3001# In other words, ld is default
3002# --enable-gold=default --enable-ld=default
3003# Error.
3004
3005default_ld=
81ecdfbb
RW
3006# Check whether --enable-gold was given.
3007if test "${enable_gold+set}" = set; then :
3008 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
3009else
3010 ENABLE_GOLD=no
81ecdfbb
RW
3011fi
3012
c7791212
NC
3013case "${ENABLE_GOLD}" in
3014 yes|default)
e6de499b
NC
3015 # Check for ELF target.
3016 is_elf=no
3017 case "${target}" in
3018 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2344b8da 3019 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 3020 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
d85e70a3 3021 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
e6de499b
NC
3022 case "${target}" in
3023 *-*-linux*aout* | *-*-linux*oldld*)
3024 ;;
3025 *)
3026 is_elf=yes
3027 ;;
3028 esac
3029 esac
3030
3031 if test "$is_elf" = "yes"; then
3032 # Check for target supported by gold.
93f9b408 3033 case "${target}" in
6d26190c 3034 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
ea016470 3035 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
c7791212
NC
3036 configdirs="$configdirs gold"
3037 if test x${ENABLE_GOLD} = xdefault; then
3038 default_ld=gold
3039 fi
e6de499b 3040 ENABLE_GOLD=yes
93f9b408
ILT
3041 ;;
3042 esac
e6de499b
NC
3043 fi
3044 ;;
3045 no)
3046 ;;
3047 *)
d0ac1c44 3048 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
e6de499b 3049 ;;
c7791212
NC
3050esac
3051
3052# Check whether --enable-ld was given.
3053if test "${enable_ld+set}" = set; then :
3054 enableval=$enable_ld; ENABLE_LD=$enableval
3055else
3056 ENABLE_LD=yes
3057fi
3058
3059
3060case "${ENABLE_LD}" in
3061 default)
d3b50760 3062 if test x${default_ld} != x; then
d0ac1c44 3063 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
c7791212
NC
3064 fi
3065 ;;
3066 yes)
3067 ;;
3068 no)
3069 if test x${ENABLE_GOLD} != xyes; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3071$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3072 fi
3073 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3074 ;;
3075 *)
d0ac1c44 3076 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
c7791212
NC
3077 ;;
3078esac
93f9b408 3079
bb368aad
VM
3080# Check whether --enable-gprofng was given.
3081if test "${enable_gprofng+set}" = set; then :
3082 enableval=$enable_gprofng; enable_gprofng=$enableval
3083else
3084 enable_gprofng=yes
3085fi
3086
3087if test "$enable_gprofng" = "yes"; then
3088 case "${target}" in
3089 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3090 configdirs="$configdirs gprofng"
3091 ;;
3092 esac
3093fi
3094
3095
edeefb67
L
3096# PR gas/19109
3097# Decide the default method for compressing debug sections.
3098# Provide a configure time option to override our default.
3099# Check whether --enable-compressed_debug_sections was given.
3100if test "${enable_compressed_debug_sections+set}" = set; then :
3101 enableval=$enable_compressed_debug_sections;
3102 if test x"$enable_compressed_debug_sections" = xyes; then
d0ac1c44 3103 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
edeefb67
L
3104 fi
3105
3106else
3107 enable_compressed_debug_sections=
3108fi
3109
3110
a0da8069 3111# Configure extra directories which are host specific
252b5132 3112
a0da8069
NN
3113case "${host}" in
3114 *-cygwin*)
3115 configdirs="$configdirs libtermcap" ;;
3116esac
252b5132 3117
59f7ec45
HPN
3118# A target can indicate whether a language isn't supported for some reason.
3119# Only spaces may be used in this macro; not newlines or tabs.
3120unsupported_languages=
3121
c6b750e1 3122# Remove more programs from consideration, based on the host or
a0da8069
NN
3123# target this usually means that a port of the program doesn't
3124# exist yet.
252b5132 3125
a0da8069 3126case "${host}" in
3516a403 3127 i[3456789]86-*-msdosdjgpp*)
6a608608 3128 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3129 ;;
a0da8069 3130esac
252b5132 3131
e5f2f7d9
LM
3132# Default to --disable-year2038 until we can handle differences between
3133# projects that use gnulib (which understands year 2038) and projects that
3134# do not (like BFD).
3135# Check whether --enable-year2038 was given.
3136if test "${enable_year2038+set}" = set; then :
3137 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3138else
3139 ENABLE_YEAR2038=no
3140fi
3141
3142enable_year2038=
3143if test "${ENABLE_YEAR2038}" = "no" ; then
3144 enable_year2038=no
3145fi
4b1cb4fe 3146
89a1e9c3
PB
3147# Check whether --enable-libquadmath was given.
3148if test "${enable_libquadmath+set}" = set; then :
3149 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3150else
3151 ENABLE_LIBQUADMATH=yes
3152fi
3153
3154if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3155 noconfigdirs="$noconfigdirs target-libquadmath"
3156fi
3157
3158
3159# Check whether --enable-libquadmath-support was given.
3160if test "${enable_libquadmath_support+set}" = set; then :
3161 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3162else
3163 ENABLE_LIBQUADMATH_SUPPORT=yes
3164fi
3165
3166enable_libquadmath_support=
3167if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3168 enable_libquadmath_support=no
3169fi
3170
3171
81ecdfbb
RW
3172# Check whether --enable-libada was given.
3173if test "${enable_libada+set}" = set; then :
3174 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3175else
3176 ENABLE_LIBADA=yes
81ecdfbb
RW
3177fi
3178
a2592b1b 3179if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3180 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3181fi
3182
81ecdfbb
RW
3183# Check whether --enable-libssp was given.
3184if test "${enable_libssp+set}" = set; then :
3185 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3186else
3187 ENABLE_LIBSSP=yes
81ecdfbb
RW
3188fi
3189
5f128533 3190
f66a9a70
L
3191# Check whether --enable-libstdcxx was given.
3192if test "${enable_libstdcxx+set}" = set; then :
3193 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3194else
3195 ENABLE_LIBSTDCXX=default
3196fi
3197
3198if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1b6c0831
L
3199 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3200fi
3201
3202# If this is accelerator compiler and its target is intelmic we enable
3203# target liboffloadmic by default. If this is compiler with offloading
3204# for intelmic we enable host liboffloadmic by default. Otherwise
3205# liboffloadmic is disabled by default.
3206# Check whether --enable-liboffloadmic was given.
3207if test "${enable_liboffloadmic+set}" = set; then :
3208 enableval=$enable_liboffloadmic; case "$enableval" in
3209 no | host | target)
3210 enable_liboffloadmic=$enableval ;;
3211 *)
d0ac1c44 3212 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
1b6c0831
L
3213esac
3214else
3215 if test x"$enable_as_accelerator_for" != x; then
3216 case "${target}" in
3217 *-intelmic-* | *-intelmicemul-*)
3218 enable_liboffloadmic=target
3219 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3220 ;;
3221 *)
3222 enable_liboffloadmic=no
3223 ;;
3224 esac
3225else
3226 case "${enable_offload_targets}" in
3227 *-intelmic-* | *-intelmicemul-*)
3228 enable_liboffloadmic=host
3229 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3230 ;;
3231 *)
3232 enable_liboffloadmic=no
3233 ;;
3234 esac
3235fi
f66a9a70
L
3236fi
3237
1b6c0831
L
3238
3239
68996839 3240# Enable libgomp by default on hosted POSIX systems, and a few others.
a6df5a19 3241if test x$enable_libgomp = x ; then
b3ded179 3242 case "${target}" in
29383458 3243 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3244 ;;
5b806d27 3245 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3246 ;;
2479f722 3247 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3248 ;;
3249 *-*-darwin* | *-*-aix*)
3250 ;;
68996839
NC
3251 nvptx*-*-*)
3252 ;;
b3ded179
PB
3253 *)
3254 noconfigdirs="$noconfigdirs target-libgomp"
3255 ;;
3256 esac
a6df5a19 3257fi
b3ded179 3258
7ec59b9e
L
3259# Disable libatomic on unsupported systems.
3260if test -d ${srcdir}/libatomic; then
3261 if test x$enable_libatomic = x; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3263$as_echo_n "checking for libatomic support... " >&6; }
3264 if (srcdir=${srcdir}/libatomic; \
3265 . ${srcdir}/configure.tgt; \
3266 test -n "$UNSUPPORTED")
3267 then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269$as_echo "no" >&6; }
3270 noconfigdirs="$noconfigdirs target-libatomic"
3271 else
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3273$as_echo "yes" >&6; }
3274 fi
3275 fi
3276fi
3277
1b6c0831
L
3278# Disable liboffloadmic on unsupported systems.
3279if test -d ${srcdir}/liboffloadmic; then
3280 if test x$enable_liboffloadmic != xno; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3282$as_echo_n "checking for liboffloadmic support... " >&6; }
3283 if (srcdir=${srcdir}/liboffloadmic; \
3284 . ${srcdir}/configure.tgt; \
3285 test -n "$UNSUPPORTED")
3286 then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288$as_echo "no" >&6; }
3289 noconfigdirs="$noconfigdirs target-liboffloadmic"
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3292$as_echo "yes" >&6; }
3293 fi
3294 fi
3295fi
3296
d32e2926
RH
3297# Disable libitm on unsupported systems.
3298if test -d ${srcdir}/libitm; then
3299 if test x$enable_libitm = x; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3301$as_echo_n "checking for libitm support... " >&6; }
3302 if (srcdir=${srcdir}/libitm; \
3303 . ${srcdir}/configure.tgt; \
3304 test -n "$UNSUPPORTED")
3305 then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307$as_echo "no" >&6; }
3308 noconfigdirs="$noconfigdirs target-libitm"
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311$as_echo "yes" >&6; }
3312 fi
3313 fi
3314fi
3315
5286fdef
L
3316# Disable libsanitizer on unsupported systems.
3317if test -d ${srcdir}/libsanitizer; then
3318 if test x$enable_libsanitizer = x; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3320$as_echo_n "checking for libsanitizer support... " >&6; }
3321 if (srcdir=${srcdir}/libsanitizer; \
3322 . ${srcdir}/configure.tgt; \
3323 test -n "$UNSUPPORTED")
3324 then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326$as_echo "no" >&6; }
3327 noconfigdirs="$noconfigdirs target-libsanitizer"
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3330$as_echo "yes" >&6; }
3331 fi
3332 fi
3333fi
3334
95e43135
JBG
3335# Disable libvtv on unsupported systems.
3336if test -d ${srcdir}/libvtv; then
3337 if test x$enable_libvtv = x; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3339$as_echo_n "checking for libvtv support... " >&6; }
3340 if (srcdir=${srcdir}/libvtv; \
3341 . ${srcdir}/configure.tgt; \
3342 test "$VTV_SUPPORTED" != "yes")
3343 then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345$as_echo "no" >&6; }
3346 noconfigdirs="$noconfigdirs target-libvtv"
3347 else
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3349$as_echo "yes" >&6; }
3350 fi
3351 fi
3352fi
3353
1b6c0831 3354
bf41f30d
NC
3355# Disable libhsail-rt on unsupported systems.
3356if test -d ${srcdir}/libhsail-rt; then
3357 if test x$enable_libhsail_rt = x; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3359$as_echo_n "checking for libhsail-rt support... " >&6; }
3360 if (srcdir=${srcdir}/libhsail-rt; \
3361 . ${srcdir}/configure.tgt; \
3362 test -n "$UNSUPPORTED")
3363 then
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365$as_echo "no" >&6; }
3366 unsupported_languages="$unsupported_languages brig"
3367 # This implicitly disables also target-libhsail-rt as it won't
3368 # get added to the build without BRIG FE.
3369 else
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3371$as_echo "yes" >&6; }
3372 fi
3373 fi
3374fi
1b6c0831
L
3375
3376
1488e230
DE
3377# Disable libquadmath for some systems.
3378case "${target}" in
5286fdef
L
3379 avr-*-*)
3380 noconfigdirs="$noconfigdirs target-libquadmath"
3381 ;;
1488e230
DE
3382 # libquadmath is unused on AIX and libquadmath build process use of
3383 # LD_LIBRARY_PATH can break AIX bootstrap.
3384 powerpc-*-aix* | rs6000-*-aix*)
3385 noconfigdirs="$noconfigdirs target-libquadmath"
3386 ;;
3387esac
3388
065a5627
JM
3389# Disable libssp for some systems.
3390case "${target}" in
3391 avr-*-*)
c5f5c3c2 3392 # No hosted I/O support.
065a5627
JM
3393 noconfigdirs="$noconfigdirs target-libssp"
3394 ;;
3395 powerpc-*-aix* | rs6000-*-aix*)
3396 noconfigdirs="$noconfigdirs target-libssp"
3397 ;;
99c513f6 3398 rl78-*-*)
202e2356
NC
3399 # libssp uses a misaligned load to trigger a fault, but the RL78
3400 # doesn't fault for those - instead, it gives a build-time error
3401 # for explicit misaligned loads.
99c513f6
DD
3402 noconfigdirs="$noconfigdirs target-libssp"
3403 ;;
1b6c0831
L
3404 visium-*-*)
3405 # No hosted I/O support.
3406 noconfigdirs="$noconfigdirs target-libssp"
3407 ;;
065a5627
JM
3408esac
3409
065a5627 3410# Disable libstdc++-v3 for some systems.
f66a9a70
L
3411# Allow user to override this if they pass --enable-libstdc++-v3
3412if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3413 case "${target}" in
3414 *-*-vxworks*)
3415 # VxWorks uses the Dinkumware C++ library.
3416 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3417 ;;
3418 arm*-wince-pe*)
3419 # the C++ libraries don't build on top of CE's C libraries
3420 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3421 ;;
3422 avr-*-*)
3423 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3424 ;;
969b1713
L
3425 ft32-*-*)
3426 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3427 ;;
f66a9a70
L
3428 esac
3429fi
065a5627
JM
3430
3431# Disable Fortran for some systems.
3432case "${target}" in
3433 mmix-*-*)
3434 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3435 unsupported_languages="$unsupported_languages fortran"
3436 ;;
3437esac
3438
05a13254 3439# Disable libffi for some systems.
0827f9a6 3440case "${target}" in
9863d716
JM
3441 powerpc-*-darwin*)
3442 ;;
3443 i[3456789]86-*-darwin*)
3444 ;;
3445 x86_64-*-darwin[912]*)
3446 ;;
3447 *-*-darwin*)
05a13254 3448 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3449 ;;
9863d716 3450 *-*-netware*)
05a13254
NC
3451 noconfigdirs="$noconfigdirs target-libffi"
3452 ;;
3453 *-*-phoenix*)
3454 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3455 ;;
3456 *-*-rtems*)
05a13254 3457 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3458 ;;
3459 *-*-tpf*)
05a13254 3460 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3461 ;;
3462 *-*-uclinux*)
05a13254 3463 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3464 ;;
3465 *-*-vxworks*)
05a13254
NC
3466 noconfigdirs="$noconfigdirs target-libffi"
3467 ;;
3468 aarch64*-*-freebsd*)
3469 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3470 ;;
9863d716 3471 alpha*-*-*vms*)
05a13254 3472 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3473 ;;
1b6c0831 3474 arm*-*-freebsd*)
05a13254 3475 noconfigdirs="$noconfigdirs target-libffi"
1b6c0831 3476 ;;
0827f9a6 3477 arm-wince-pe)
05a13254 3478 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3479 ;;
9863d716 3480 cris-*-* | crisv32-*-*)
9863d716
JM
3481 case "${target}" in
3482 *-*-linux*)
3483 ;;
3484 *) # See PR46792 regarding target-libffi.
05a13254 3485 noconfigdirs="$noconfigdirs target-libffi";;
9863d716
JM
3486 esac
3487 ;;
82ae827f 3488 hppa*64*-*-hpux*)
05a13254 3489 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3490 ;;
3491 hppa*-hp-hpux11*)
3492 ;;
82ae827f 3493 hppa*-*-hpux*)
05a13254 3494 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3495 ;;
9863d716 3496 ia64*-*-*vms*)
05a13254 3497 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3498 ;;
9863d716 3499 i[3456789]86-w64-mingw*)
05a13254 3500 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3501 ;;
3502 i[3456789]86-*-mingw*)
05a13254 3503 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3504 ;;
3505 x86_64-*-mingw*)
05a13254 3506 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3507 ;;
9863d716 3508 mmix-*-*)
05a13254 3509 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3510 ;;
3511 powerpc-*-aix*)
9863d716 3512 ;;
9863d716 3513 rs6000-*-aix*)
9863d716 3514 ;;
3f8107ab 3515 ft32-*-*)
05a13254 3516 noconfigdirs="$noconfigdirs target-libffi"
3f8107ab 3517 ;;
9863d716 3518 *-*-lynxos*)
05a13254 3519 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3520 ;;
9863d716
JM
3521esac
3522
1b6c0831
L
3523# Disable the go frontend on systems where it is known to not work. Please keep
3524# this in sync with contrib/config-list.mk.
3525case "${target}" in
bf41f30d 3526*-*-darwin* | *-*-cygwin* | *-*-mingw*)
1b6c0831
L
3527 unsupported_languages="$unsupported_languages go"
3528 ;;
3529esac
3530
919adfe8
TT
3531# Only allow gdbserver on some systems.
3532if test -d ${srcdir}/gdbserver; then
3533 if test x$enable_gdbserver = x; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3535$as_echo_n "checking for gdbserver support... " >&6; }
3536 if (srcdir=${srcdir}/gdbserver; \
3537 . ${srcdir}/configure.srv; \
3538 test -n "$UNSUPPORTED")
3539 then
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541$as_echo "no" >&6; }
3542 noconfigdirs="$noconfigdirs gdbserver"
3543 else
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3545$as_echo "yes" >&6; }
3546 fi
3547 fi
3548fi
3549
a413f71a
ILT
3550# Disable libgo for some systems where it is known to not work.
3551# For testing, you can easily override this with --enable-libgo.
3552if test x$enable_libgo = x; then
3553 case "${target}" in
3554 *-*-darwin*)
3555 # PR 46986
3556 noconfigdirs="$noconfigdirs target-libgo"
3557 ;;
3558 *-*-cygwin* | *-*-mingw*)
3559 noconfigdirs="$noconfigdirs target-libgo"
3560 ;;
a413f71a
ILT
3561 esac
3562fi
3563
691bb5a1
DD
3564# Default libgloss CPU subdirectory.
3565libgloss_dir="$target_cpu"
4b1cb4fe 3566
ff46fb8f
JM
3567case "${target}" in
3568 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3569 libgloss_dir=wince
3570 ;;
f1dd87fc
YZ
3571 aarch64*-*-* )
3572 libgloss_dir=aarch64
3573 ;;
ff46fb8f
JM
3574 arm*-*-*)
3575 libgloss_dir=arm
3576 ;;
3577 cris-*-* | crisv32-*-*)
3578 libgloss_dir=cris
3579 ;;
3580 hppa*-*-*)
3581 libgloss_dir=pa
3582 ;;
3583 i[3456789]86-*-*)
3584 libgloss_dir=i386
3585 ;;
3586 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3587 libgloss_dir=m68hc11
3588 ;;
3589 m68*-*-* | fido-*-*)
3590 libgloss_dir=m68k
3591 ;;
3592 mips*-*-*)
3593 libgloss_dir=mips
3594 ;;
3595 powerpc*-*-*)
3596 libgloss_dir=rs6000
3597 ;;
3598 sparc*-*-*)
3599 libgloss_dir=sparc
3600 ;;
3601esac
3602
c7e4b184 3603# Disable newlib and libgloss for various target OSes.
a0da8069 3604case "${target}" in
c7e4b184
JM
3605 alpha*-dec-osf*)
3606 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3607 ;;
3608 i[3456789]86-*-linux*)
3609 # This section makes it possible to build newlib natively on linux.
3610 # If we are using a cross compiler then don't configure newlib.
3611 if test x${is_cross_compiler} != xno ; then
3612 noconfigdirs="$noconfigdirs target-newlib"
3613 fi
3614 noconfigdirs="$noconfigdirs target-libgloss"
3615 # If we are not using a cross compiler, do configure newlib.
3616 # Note however, that newlib will only be configured in this situation
3617 # if the --with-newlib option has been given, because otherwise
3618 # 'target-newlib' will appear in skipdirs.
3619 ;;
3620 i[3456789]86-*-rdos*)
3621 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3622 ;;
3623 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3624 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3625 ;;
3626 sparc-*-sunos4*)
3627 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3628 ;;
3629 *-*-aix*)
3630 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3631 ;;
3632 *-*-beos*)
3633 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3634 ;;
a0da8069 3635 *-*-chorusos)
b2f14e4a 3636 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3637 ;;
c7e4b184
JM
3638 *-*-dragonfly*)
3639 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3640 ;;
3641 *-*-freebsd*)
3642 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3643 ;;
3644 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3645 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3646 ;;
3647 *-*-lynxos*)
3648 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3649 ;;
3650 *-*-mingw*)
3651 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3652 ;;
3653 *-*-netbsd*)
3654 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3655 ;;
3656 *-*-netware*)
3657 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3658 ;;
3659 *-*-tpf*)
3660 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3661 ;;
3662 *-*-uclinux*)
3663 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3664 ;;
3665 *-*-vxworks*)
3666 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3667 ;;
3668esac
3669
3670case "${target}" in
3671 *-*-chorusos)
3672 ;;
f075eb5e
TG
3673 aarch64-*-darwin*)
3674 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3675 noconfigdirs="$noconfigdirs sim target-rda"
3676 ;;
3677 arm-*-darwin*)
3678 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3679 noconfigdirs="$noconfigdirs sim target-rda"
3680 ;;
24741ab2 3681 powerpc-*-darwin*)
9d39db92 3682 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3683 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3684 ;;
85bd1942
TG
3685 i[3456789]86-*-darwin*)
3686 noconfigdirs="$noconfigdirs ld gprof"
3687 noconfigdirs="$noconfigdirs sim target-rda"
3688 ;;
e8a5fa9c 3689 x86_64-*-darwin[912]*)
652dec25
TG
3690 noconfigdirs="$noconfigdirs ld gas gprof"
3691 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3692 ;;
04d1ab34 3693 *-*-darwin*)
d320aacb 3694 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3695 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3696 ;;
5b806d27 3697 *-*-dragonfly*)
5b806d27 3698 ;;
de0b4a87 3699 *-*-freebsd*)
4b1cb4fe
DD
3700 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3701 && test -f /usr/local/include/gmp.h; then
3702 with_gmp=/usr/local
3703 fi
4b1cb4fe 3704 ;;
f8a495c8
NC
3705 *-*-kaos*)
3706 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3707 noconfigdirs="$noconfigdirs target-libgloss"
3708 ;;
a0da8069 3709 *-*-netbsd*)
a0da8069 3710 ;;
2a3124ca 3711 *-*-netware*)
a0da8069 3712 ;;
05a13254
NC
3713 *-*-phoenix*)
3714 noconfigdirs="$noconfigdirs target-libgloss"
3715 ;;
a0da8069 3716 *-*-rtems*)
9863d716 3717 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3718 ;;
1587117a
EC
3719 # The tpf target doesn't support gdb yet.
3720 *-*-tpf*)
c7e4b184 3721 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3722 ;;
c1968181 3723 *-*-uclinux*)
c7e4b184 3724 noconfigdirs="$noconfigdirs target-rda"
c1968181 3725 ;;
a0da8069 3726 *-*-vxworks*)
a0da8069
NN
3727 ;;
3728 alpha*-dec-osf*)
3729 # ld works, but does not support shared libraries.
a0da8069 3730 # gas doesn't generate exception information.
c7e4b184 3731 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3732 ;;
3733 alpha*-*-*vms*)
9863d716 3734 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3735 ;;
a0da8069
NN
3736 alpha*-*-*)
3737 # newlib is not 64 bit ready
9863d716 3738 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3739 ;;
a0da8069 3740 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3741 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3742 ;;
05a13254
NC
3743 arc*-*-*)
3744 noconfigdirs="$noconfigdirs sim"
a0da8069 3745 ;;
a0da8069 3746 arm-*-pe*)
9863d716 3747 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3748 ;;
a0da8069 3749 arm-*-riscix*)
b2f14e4a 3750 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3751 ;;
8e71395b
L
3752 avr-*-*)
3753 if test x${with_avrlibc} != xno; then
3754 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3755 fi
3756 ;;
a0da8069 3757 c4x-*-* | tic4x-*-*)
b2f14e4a 3758 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3759 ;;
b2f14e4a
JM
3760 tic54x-*-*)
3761 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3762 ;;
a0da8069 3763 d10v-*-*)
b2f14e4a 3764 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3765 ;;
3766 d30v-*-*)
b2f14e4a 3767 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3768 ;;
3769 fr30-*-elf*)
9863d716 3770 noconfigdirs="$noconfigdirs gdb"
a0da8069 3771 ;;
3f8107ab
AM
3772 ft32-*-*)
3773 noconfigdirs="$noconfigdirs target-rda gprof"
3774 ;;
20135e4c 3775 moxie-*-*)
10b8fe5e 3776 noconfigdirs="$noconfigdirs"
20135e4c 3777 ;;
a0da8069 3778 h8300*-*-*)
9863d716 3779 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3780 ;;
3781 h8500-*-*)
b2f14e4a 3782 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3783 ;;
caeba88f 3784 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3785 ;;
5569a85f
JDA
3786 hppa*64*-*-hpux*)
3787 noconfigdirs="$noconfigdirs gdb"
3788 ;;
3789 hppa*-*-hpux11*)
3790 noconfigdirs="$noconfigdirs gdb ld"
3791 ;;
93cc359e 3792 hppa*64*-*-linux*)
a0da8069 3793 ;;
f0ff0f90 3794 hppa*-*-linux*)
5dcac624 3795 ;;
a0da8069 3796 hppa*-*-*elf* | \
a0da8069
NN
3797 hppa*-*-lites* | \
3798 hppa*-*-openbsd* | \
3799 hppa*64*-*-*)
4f0ef2d8 3800 ;;
691bb5a1 3801 hppa*-*-pro*)
691bb5a1 3802 ;;
a0da8069 3803 hppa*-*-*)
9863d716 3804 noconfigdirs="$noconfigdirs ld"
a0da8069 3805 ;;
b07c2aad 3806 i960-*-*)
b2f14e4a 3807 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3808 ;;
a0da8069
NN
3809 ia64*-*-elf*)
3810 # No gdb support yet.
0377a422 3811 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3812 ;;
3813 ia64*-**-hpux*)
92c9a463 3814 # No ld support yet.
5569a85f 3815 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
a0da8069 3816 ;;
19e99079 3817 ia64*-*-*vms*)
7ec59b9e
L
3818 # No ld support yet.
3819 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3820 ;;
1f53ca9a 3821 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3822 ;;
3823 i[3456789]86-*-mingw*)
45055374 3824 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3825 ;;
a0da8069
NN
3826 *-*-cygwin*)
3827 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3828 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3829 # always build newlib if winsup directory is present.
45055374 3830 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3831 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3832 elif test -d "$srcdir/newlib"; then
45055374 3833 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3834 fi
c6b750e1 3835 ;;
ec11bdc6 3836 i[3456789]86-*-pe)
782cb41f 3837 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3838 ;;
ec11bdc6 3839 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3840 # The linker does not yet know about weak symbols in COFF,
3841 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3842 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3843 ;;
ec11bdc6 3844 i[3456789]86-*-sco*)
b2f14e4a 3845 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3846 ;;
cff32a7c 3847 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3848 noconfigdirs="$noconfigdirs target-libgloss"
3849 ;;
ec11bdc6 3850 i[3456789]86-*-sysv4*)
b2f14e4a 3851 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3852 ;;
ec11bdc6 3853 i[3456789]86-*-beos*)
c7e4b184 3854 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3855 ;;
b59bea8a 3856 i[3456789]86-*-rdos*)
c7e4b184 3857 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3858 ;;
a0da8069 3859 mmix-*-*)
9863d716 3860 noconfigdirs="$noconfigdirs gdb"
a0da8069 3861 ;;
4970f871 3862 mt-*-*)
cdb9b172
AH
3863 noconfigdirs="$noconfigdirs sim"
3864 ;;
1063beb5
FT
3865 nfp-*-*)
3866 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3867 noconfigdirs="$noconfigdirs $target_libraries"
3868 ;;
11104e42
SC
3869 pdp11-*-*)
3870 noconfigdirs="$noconfigdirs gdb gprof"
3871 ;;
a0da8069
NN
3872 powerpc-*-aix*)
3873 # copied from rs6000-*-* entry
c7e4b184 3874 noconfigdirs="$noconfigdirs gprof"
a0da8069 3875 ;;
93cc359e 3876 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3877 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3878 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3879 # always build newlib.
3880 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3881 ;;
3882 # This is temporary until we can link against shared libraries
3883 powerpcle-*-solaris*)
b2f14e4a 3884 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3885 ;;
3886 powerpc-*-beos*)
c7e4b184 3887 noconfigdirs="$noconfigdirs gdb"
a0da8069 3888 ;;
a0da8069 3889 rs6000-*-lynxos*)
c7e4b184 3890 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3891 ;;
3892 rs6000-*-aix*)
c7e4b184 3893 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3894 ;;
3895 rs6000-*-*)
9863d716 3896 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3897 ;;
3898 m68k-apollo-*)
b2f14e4a 3899 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3900 ;;
25a07265 3901 microblaze*)
9863d716 3902 noconfigdirs="$noconfigdirs gprof"
25a07265 3903 ;;
a9d58c06 3904 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
5bd8be13
RS
3905 if test x$with_newlib = xyes; then
3906 noconfigdirs="$noconfigdirs gprof"
3907 fi
5bd8be13 3908 ;;
a0da8069 3909 mips*-*-irix5*)
b2f14e4a 3910 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3911 ;;
3912 mips*-*-irix6*)
9863d716 3913 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3914 ;;
a0da8069 3915 mips*-*-bsd*)
e8044f35 3916 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 3917 ;;
a0da8069 3918 mips*-*-linux*)
a0da8069 3919 ;;
e8044f35
RS
3920 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3921 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3922 noconfigdirs="$noconfigdirs ld gas gprof"
3923 ;;
a0da8069 3924 mips*-*-*)
9863d716 3925 noconfigdirs="$noconfigdirs gprof"
a0da8069 3926 ;;
1b6c0831 3927 nvptx*-*-*)
1b6c0831
L
3928 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3929 ;;
05a13254 3930 sh-*-*)
e8a5fa9c
RW
3931 case "${target}" in
3932 sh*-*-elf)
9863d716 3933 ;;
e8a5fa9c 3934 *)
9863d716 3935 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3936 esac
a0da8069 3937 ;;
a0da8069 3938 sparc-*-sunos4*)
c7e4b184 3939 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3940 use_gnu_ld=no
3941 fi
3942 ;;
619a3713 3943 tic6x-*-*)
40ae9136 3944 noconfigdirs="$noconfigdirs sim"
619a3713 3945 ;;
05a13254 3946 tilepro*-*-* | tilegx*-*-*)
eb4b2452
NC
3947 noconfigdirs="$noconfigdirs sim"
3948 ;;
a0da8069 3949 v810-*-*)
b2f14e4a 3950 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3951 ;;
3952 vax-*-*)
9863d716 3953 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3954 ;;
b29d2641
MR
3955 wasm32-*-*)
3956 noconfigdirs="$noconfigdirs ld"
3957 ;;
a0da8069 3958esac
252b5132 3959
a0da8069
NN
3960# If we aren't building newlib, then don't build libgloss, since libgloss
3961# depends upon some newlib header files.
3962case "${noconfigdirs}" in
3963 *target-libgloss*) ;;
3964 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3965esac
3966
a0da8069 3967# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3968host_makefile_frag=/dev/null
3969if test -d ${srcdir}/config ; then
3970case "${host}" in
ec11bdc6 3971 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3972 host_makefile_frag="config/mh-djgpp"
3973 ;;
3974 *-cygwin*)
e33b51a6 3975
81ecdfbb
RW
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3977$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3978echo a >cygwin-cat-check
1f53ca9a 3979if test `cat cygwin-cat-check` = a ; then
8ade07e9 3980 rm cygwin-cat-check
81ecdfbb
RW
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3982$as_echo "yes" >&6; }
e33b51a6 3983else
8ade07e9 3984 rm cygwin-cat-check
81ecdfbb
RW
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986$as_echo "no" >&6; }
d0ac1c44 3987 as_fn_error $? "The cat command does not ignore carriage return characters.
e33b51a6
NC
3988 Please either mount the build directory in binary mode or run the following
3989 commands before running any configure script:
3990set -o igncr
3991export SHELLOPTS
81ecdfbb 3992 " "$LINENO" 5
e33b51a6 3993fi
e33b51a6 3994
a0da8069
NN
3995 host_makefile_frag="config/mh-cygwin"
3996 ;;
8a1599ab 3997 *-mingw*)
84e7906e 3998 host_makefile_frag="config/mh-mingw"
2d1e8239 3999 ;;
ce6c656d
L
4000 alpha*-linux*)
4001 host_makefile_frag="config/mh-alpha-linux"
4002 ;;
da888c87 4003 hppa*-hp-hpux10*)
da888c87 4004 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 4005 ;;
3516a403 4006 hppa*-hp-hpux*)
da888c87
PB
4007 host_makefile_frag="config/mh-pa"
4008 ;;
4009 hppa*-*)
4010 host_makefile_frag="config/mh-pa"
4011 ;;
e552509b
ILT
4012 *-*-darwin*)
4013 host_makefile_frag="config/mh-darwin"
0df3d27f 4014 ;;
f6d183c0
PB
4015 powerpc-*-aix*)
4016 host_makefile_frag="config/mh-ppc-aix"
4017 ;;
4018 rs6000-*-aix*)
4019 host_makefile_frag="config/mh-ppc-aix"
4020 ;;
a0da8069
NN
4021esac
4022fi
4023
9e07f89d 4024if test "${build}" != "${host}" ; then
1576798e
PB
4025 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4026 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 4027 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e 4028 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
1576798e 4029 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 4030 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
4031 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4032 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4033 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4034 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4035 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4036 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4037else
4038 AR_FOR_BUILD="\$(AR)"
4039 AS_FOR_BUILD="\$(AS)"
512b7dfb 4040 CC_FOR_BUILD="\$(CC)"
1576798e 4041 CXX_FOR_BUILD="\$(CXX)"
1576798e 4042 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 4043 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
4044 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4045 LD_FOR_BUILD="\$(LD)"
4046 NM_FOR_BUILD="\$(NM)"
4047 RANLIB_FOR_BUILD="\$(RANLIB)"
4048 WINDRES_FOR_BUILD="\$(WINDRES)"
4049 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
4050fi
4051
4052ac_ext=c
c6b750e1
DJ
4053ac_cpp='$CPP $CPPFLAGS'
4054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056ac_compiler_gnu=$ac_cv_c_compiler_gnu
4057if test -n "$ac_tool_prefix"; then
4058 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4059set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4061$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4062if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4063 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4064else
4065 if test -n "$CC"; then
4066 ac_cv_prog_CC="$CC" # Let the user override the test.
4067else
4068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069for as_dir in $PATH
4070do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
81ecdfbb 4073 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4075 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4077 break 2
4078 fi
4079done
81ecdfbb
RW
4080 done
4081IFS=$as_save_IFS
c6b750e1
DJ
4082
4083fi
4084fi
4085CC=$ac_cv_prog_CC
4086if test -n "$CC"; then
81ecdfbb
RW
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4088$as_echo "$CC" >&6; }
c6b750e1 4089else
81ecdfbb
RW
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091$as_echo "no" >&6; }
c6b750e1
DJ
4092fi
4093
81ecdfbb 4094
c6b750e1
DJ
4095fi
4096if test -z "$ac_cv_prog_CC"; then
4097 ac_ct_CC=$CC
6a9cf61e 4098 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 4099set dummy gcc; ac_word=$2
81ecdfbb
RW
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4101$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4102if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4103 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4104else
4105 if test -n "$ac_ct_CC"; then
4106 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4107else
4108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109for as_dir in $PATH
4110do
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
81ecdfbb 4113 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4115 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4117 break 2
4118 fi
4119done
81ecdfbb
RW
4120 done
4121IFS=$as_save_IFS
c6b750e1
DJ
4122
4123fi
4124fi
4125ac_ct_CC=$ac_cv_prog_ac_ct_CC
4126if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4128$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4129else
81ecdfbb
RW
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131$as_echo "no" >&6; }
c6b750e1
DJ
4132fi
4133
81ecdfbb
RW
4134 if test "x$ac_ct_CC" = x; then
4135 CC=""
4136 else
4137 case $cross_compiling:$ac_tool_warned in
4138yes:)
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4141ac_tool_warned=yes ;;
4142esac
4143 CC=$ac_ct_CC
4144 fi
c6b750e1
DJ
4145else
4146 CC="$ac_cv_prog_CC"
4147fi
4148
4149if test -z "$CC"; then
81ecdfbb
RW
4150 if test -n "$ac_tool_prefix"; then
4151 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4152set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4155if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4156 $as_echo_n "(cached) " >&6
9e07f89d
NN
4157else
4158 if test -n "$CC"; then
4159 ac_cv_prog_CC="$CC" # Let the user override the test.
4160else
c6b750e1
DJ
4161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162for as_dir in $PATH
4163do
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
81ecdfbb 4166 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4168 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4170 break 2
4171 fi
4172done
81ecdfbb
RW
4173 done
4174IFS=$as_save_IFS
c6b750e1 4175
9e07f89d
NN
4176fi
4177fi
c6b750e1 4178CC=$ac_cv_prog_CC
9e07f89d 4179if test -n "$CC"; then
81ecdfbb
RW
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4181$as_echo "$CC" >&6; }
c6b750e1 4182else
81ecdfbb
RW
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184$as_echo "no" >&6; }
c6b750e1
DJ
4185fi
4186
c6b750e1 4187
81ecdfbb 4188 fi
c6b750e1 4189fi
9e07f89d
NN
4190if test -z "$CC"; then
4191 # Extract the first word of "cc", so it can be a program name with args.
4192set dummy cc; ac_word=$2
81ecdfbb
RW
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4194$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4195if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4196 $as_echo_n "(cached) " >&6
9e07f89d
NN
4197else
4198 if test -n "$CC"; then
4199 ac_cv_prog_CC="$CC" # Let the user override the test.
4200else
9e07f89d 4201 ac_prog_rejected=no
c6b750e1
DJ
4202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203for as_dir in $PATH
4204do
4205 IFS=$as_save_IFS
4206 test -z "$as_dir" && as_dir=.
81ecdfbb 4207 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1
DJ
4209 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4210 ac_prog_rejected=yes
4211 continue
4212 fi
4213 ac_cv_prog_CC="cc"
81ecdfbb 4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4215 break 2
4216 fi
4217done
81ecdfbb
RW
4218 done
4219IFS=$as_save_IFS
c6b750e1 4220
9e07f89d
NN
4221if test $ac_prog_rejected = yes; then
4222 # We found a bogon in the path, so make sure we never use it.
4223 set dummy $ac_cv_prog_CC
4224 shift
c6b750e1 4225 if test $# != 0; then
9e07f89d
NN
4226 # We chose a different compiler from the bogus one.
4227 # However, it has the same basename, so the bogon will be chosen
4228 # first if we set CC to just the basename; use the full file name.
4229 shift
c6b750e1 4230 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4231 fi
4232fi
4233fi
4234fi
c6b750e1 4235CC=$ac_cv_prog_CC
9e07f89d 4236if test -n "$CC"; then
81ecdfbb
RW
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4238$as_echo "$CC" >&6; }
9e07f89d 4239else
81ecdfbb
RW
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241$as_echo "no" >&6; }
9e07f89d
NN
4242fi
4243
81ecdfbb 4244
c6b750e1
DJ
4245fi
4246if test -z "$CC"; then
4247 if test -n "$ac_tool_prefix"; then
81ecdfbb 4248 for ac_prog in cl.exe
c6b750e1
DJ
4249 do
4250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4251set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4254if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4255 $as_echo_n "(cached) " >&6
9e07f89d
NN
4256else
4257 if test -n "$CC"; then
4258 ac_cv_prog_CC="$CC" # Let the user override the test.
4259else
c6b750e1
DJ
4260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261for as_dir in $PATH
4262do
4263 IFS=$as_save_IFS
4264 test -z "$as_dir" && as_dir=.
81ecdfbb 4265 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4267 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4269 break 2
376a0e54 4270 fi
c6b750e1 4271done
81ecdfbb
RW
4272 done
4273IFS=$as_save_IFS
cac3d6c4 4274
c6b750e1
DJ
4275fi
4276fi
4277CC=$ac_cv_prog_CC
4278if test -n "$CC"; then
81ecdfbb
RW
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4280$as_echo "$CC" >&6; }
cac3d6c4 4281else
81ecdfbb
RW
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283$as_echo "no" >&6; }
9e07f89d 4284fi
cac3d6c4 4285
81ecdfbb 4286
c6b750e1
DJ
4287 test -n "$CC" && break
4288 done
cac3d6c4 4289fi
c6b750e1
DJ
4290if test -z "$CC"; then
4291 ac_ct_CC=$CC
81ecdfbb 4292 for ac_prog in cl.exe
c6b750e1
DJ
4293do
4294 # Extract the first word of "$ac_prog", so it can be a program name with args.
4295set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4298if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4299 $as_echo_n "(cached) " >&6
cac3d6c4 4300else
c6b750e1
DJ
4301 if test -n "$ac_ct_CC"; then
4302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4303else
c6b750e1
DJ
4304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305for as_dir in $PATH
4306do
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
81ecdfbb 4309 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4311 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4313 break 2
4314 fi
4315done
81ecdfbb
RW
4316 done
4317IFS=$as_save_IFS
c6b750e1 4318
cac3d6c4
CM
4319fi
4320fi
c6b750e1
DJ
4321ac_ct_CC=$ac_cv_prog_ac_ct_CC
4322if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4324$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4325else
81ecdfbb
RW
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327$as_echo "no" >&6; }
cac3d6c4 4328fi
376a0e54 4329
81ecdfbb 4330
c6b750e1
DJ
4331 test -n "$ac_ct_CC" && break
4332done
4333
81ecdfbb
RW
4334 if test "x$ac_ct_CC" = x; then
4335 CC=""
4336 else
4337 case $cross_compiling:$ac_tool_warned in
4338yes:)
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4341ac_tool_warned=yes ;;
4342esac
4343 CC=$ac_ct_CC
4344 fi
c6b750e1
DJ
4345fi
4346
4347fi
4348
4349
81ecdfbb
RW
4350test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4352as_fn_error $? "no acceptable C compiler found in \$PATH
4353See \`config.log' for more details" "$LINENO" 5; }
c6b750e1
DJ
4354
4355# Provide some information about the compiler.
81ecdfbb
RW
4356$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4357set X $ac_compile
4358ac_compiler=$2
4359for ac_option in --version -v -V -qversion; do
4360 { { ac_try="$ac_compiler $ac_option >&5"
4361case "(($ac_try" in
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4364esac
4365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4366$as_echo "$ac_try_echo"; } >&5
4367 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4368 ac_status=$?
81ecdfbb
RW
4369 if test -s conftest.err; then
4370 sed '10a\
4371... rest of stderr output deleted ...
4372 10q' conftest.err >conftest.er1
4373 cat conftest.er1 >&5
81ecdfbb 4374 fi
d0ac1c44 4375 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4377 test $ac_status = 0; }
4378done
c6b750e1 4379
81ecdfbb 4380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4381/* end confdefs.h. */
4382
4383int
4384main ()
4385{
4386
4387 ;
4388 return 0;
4389}
4390_ACEOF
4391ac_clean_files_save=$ac_clean_files
d0ac1c44 4392ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
c6b750e1
DJ
4393# Try to create an executable without -o first, disregard a.out.
4394# It will help us diagnose broken compilers, and finding out an intuition
4395# of exeext.
d0ac1c44
SM
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4397$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
4398ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4399
4400# The possible output files:
4401ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4402
4403ac_rmfiles=
4404for ac_file in $ac_files
4405do
4406 case $ac_file in
4407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4408 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4409 esac
4410done
4411rm -f $ac_rmfiles
4412
4413if { { ac_try="$ac_link_default"
4414case "(($ac_try" in
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4417esac
4418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4419$as_echo "$ac_try_echo"; } >&5
4420 (eval "$ac_link_default") 2>&5
c6b750e1 4421 ac_status=$?
81ecdfbb
RW
4422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4423 test $ac_status = 0; }; then :
4424 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4425# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4426# in a Makefile. We should not override ac_cv_exeext if it was cached,
4427# so that the user can short-circuit this test for compilers unknown to
4428# Autoconf.
4429for ac_file in $ac_files ''
c6b750e1
DJ
4430do
4431 test -f "$ac_file" || continue
4432 case $ac_file in
81ecdfbb 4433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4434 ;;
4435 [ab].out )
4436 # We found the default executable, but exeext='' is most
4437 # certainly right.
4438 break;;
4439 *.* )
81ecdfbb
RW
4440 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4441 then :; else
4442 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4443 fi
4444 # We set ac_cv_exeext here because the later test for it is not
4445 # safe: cross compilers may not add the suffix if given an `-o'
4446 # argument, so we may need to know it at that point already.
4447 # Even if this section looks crufty: it has the advantage of
4448 # actually working.
c6b750e1
DJ
4449 break;;
4450 * )
4451 break;;
4452 esac
4453done
81ecdfbb
RW
4454test "$ac_cv_exeext" = no && ac_cv_exeext=
4455
c6b750e1 4456else
81ecdfbb
RW
4457 ac_file=''
4458fi
81ecdfbb 4459if test -z "$ac_file"; then :
d0ac1c44
SM
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461$as_echo "no" >&6; }
4462$as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4463sed 's/^/| /' conftest.$ac_ext >&5
4464
81ecdfbb
RW
4465{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4467as_fn_error 77 "C compiler cannot create executables
4468See \`config.log' for more details" "$LINENO" 5; }
4469else
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4471$as_echo "yes" >&6; }
c6b750e1 4472fi
d0ac1c44
SM
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4474$as_echo_n "checking for C compiler default output file name... " >&6; }
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4476$as_echo "$ac_file" >&6; }
c6b750e1 4477ac_exeext=$ac_cv_exeext
c6b750e1 4478
d0ac1c44 4479rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
c6b750e1 4480ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4482$as_echo_n "checking for suffix of executables... " >&6; }
4483if { { ac_try="$ac_link"
4484case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487esac
4488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489$as_echo "$ac_try_echo"; } >&5
4490 (eval "$ac_link") 2>&5
c6b750e1 4491 ac_status=$?
81ecdfbb
RW
4492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; }; then :
c6b750e1
DJ
4494 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4495# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4496# work properly (i.e., refer to `conftest.exe'), while it won't with
4497# `rm'.
4498for ac_file in conftest.exe conftest conftest.*; do
4499 test -f "$ac_file" || continue
4500 case $ac_file in
81ecdfbb 4501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4502 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4503 break;;
4504 * ) break;;
4505 esac
4506done
4507else
81ecdfbb
RW
4508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4510as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4511See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4512fi
d0ac1c44 4513rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4515$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4516
4517rm -f conftest.$ac_ext
4518EXEEXT=$ac_cv_exeext
4519ac_exeext=$EXEEXT
d0ac1c44
SM
4520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521/* end confdefs.h. */
4522#include <stdio.h>
4523int
4524main ()
4525{
4526FILE *f = fopen ("conftest.out", "w");
4527 return ferror (f) || fclose (f) != 0;
4528
4529 ;
4530 return 0;
4531}
4532_ACEOF
4533ac_clean_files="$ac_clean_files conftest.out"
4534# Check that the compiler produces executables we can run. If not, either
4535# the compiler is broken, or we cross compile.
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4537$as_echo_n "checking whether we are cross compiling... " >&6; }
4538if test "$cross_compiling" != yes; then
4539 { { ac_try="$ac_link"
4540case "(($ac_try" in
4541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542 *) ac_try_echo=$ac_try;;
4543esac
4544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4545$as_echo "$ac_try_echo"; } >&5
4546 (eval "$ac_link") 2>&5
4547 ac_status=$?
4548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4549 test $ac_status = 0; }
4550 if { ac_try='./conftest$ac_cv_exeext'
4551 { { case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4554esac
4555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4556$as_echo "$ac_try_echo"; } >&5
4557 (eval "$ac_try") 2>&5
4558 ac_status=$?
4559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4560 test $ac_status = 0; }; }; then
4561 cross_compiling=no
4562 else
4563 if test "$cross_compiling" = maybe; then
4564 cross_compiling=yes
4565 else
4566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4568as_fn_error $? "cannot run C compiled programs.
4569If you meant to cross compile, use \`--host'.
4570See \`config.log' for more details" "$LINENO" 5; }
4571 fi
4572 fi
4573fi
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4575$as_echo "$cross_compiling" >&6; }
4576
4577rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4578ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4580$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 4581if ${ac_cv_objext+:} false; then :
81ecdfbb 4582 $as_echo_n "(cached) " >&6
c6b750e1 4583else
81ecdfbb 4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4585/* end confdefs.h. */
4586
4587int
4588main ()
4589{
4590
4591 ;
4592 return 0;
4593}
4594_ACEOF
4595rm -f conftest.o conftest.obj
81ecdfbb
RW
4596if { { ac_try="$ac_compile"
4597case "(($ac_try" in
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4600esac
4601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4602$as_echo "$ac_try_echo"; } >&5
4603 (eval "$ac_compile") 2>&5
c6b750e1 4604 ac_status=$?
81ecdfbb
RW
4605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4606 test $ac_status = 0; }; then :
4607 for ac_file in conftest.o conftest.obj conftest.*; do
4608 test -f "$ac_file" || continue;
c6b750e1 4609 case $ac_file in
81ecdfbb 4610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4611 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4612 break;;
4613 esac
4614done
cac3d6c4 4615else
81ecdfbb 4616 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4617sed 's/^/| /' conftest.$ac_ext >&5
4618
81ecdfbb
RW
4619{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4621as_fn_error $? "cannot compute suffix of object files: cannot compile
4622See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4623fi
c6b750e1
DJ
4624rm -f conftest.$ac_cv_objext conftest.$ac_ext
4625fi
81ecdfbb
RW
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4627$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4628OBJEXT=$ac_cv_objext
4629ac_objext=$OBJEXT
81ecdfbb
RW
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4631$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4632if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 4633 $as_echo_n "(cached) " >&6
c6b750e1 4634else
81ecdfbb 4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4636/* end confdefs.h. */
4637
4638int
4639main ()
4640{
4641#ifndef __GNUC__
4642 choke me
4643#endif
4644
4645 ;
4646 return 0;
4647}
4648_ACEOF
81ecdfbb 4649if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4650 ac_compiler_gnu=yes
4651else
81ecdfbb 4652 ac_compiler_gnu=no
c6b750e1 4653fi
81ecdfbb 4654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4655ac_cv_c_compiler_gnu=$ac_compiler_gnu
4656
4657fi
81ecdfbb
RW
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4659$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4660if test $ac_compiler_gnu = yes; then
4661 GCC=yes
4662else
4663 GCC=
4664fi
c6b750e1
DJ
4665ac_test_CFLAGS=${CFLAGS+set}
4666ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4668$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4669if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
4670 $as_echo_n "(cached) " >&6
4671else
4672 ac_save_c_werror_flag=$ac_c_werror_flag
4673 ac_c_werror_flag=yes
4674 ac_cv_prog_cc_g=no
4675 CFLAGS="-g"
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4677/* end confdefs.h. */
4678
4679int
4680main ()
4681{
4682
4683 ;
4684 return 0;
4685}
4686_ACEOF
81ecdfbb 4687if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4688 ac_cv_prog_cc_g=yes
4689else
81ecdfbb
RW
4690 CFLAGS=""
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692/* end confdefs.h. */
4693
4694int
4695main ()
4696{
4697
4698 ;
4699 return 0;
4700}
4701_ACEOF
4702if ac_fn_c_try_compile "$LINENO"; then :
4703
4704else
4705 ac_c_werror_flag=$ac_save_c_werror_flag
4706 CFLAGS="-g"
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708/* end confdefs.h. */
cac3d6c4 4709
81ecdfbb
RW
4710int
4711main ()
4712{
4713
4714 ;
4715 return 0;
4716}
4717_ACEOF
4718if ac_fn_c_try_compile "$LINENO"; then :
4719 ac_cv_prog_cc_g=yes
4720fi
4721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4722fi
81ecdfbb 4723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4724fi
81ecdfbb
RW
4725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 ac_c_werror_flag=$ac_save_c_werror_flag
4727fi
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4729$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4730if test "$ac_test_CFLAGS" = set; then
c6b750e1 4731 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4732elif test $ac_cv_prog_cc_g = yes; then
4733 if test "$GCC" = yes; then
4734 CFLAGS="-g -O2"
4735 else
4736 CFLAGS="-g"
4737 fi
4738else
4739 if test "$GCC" = yes; then
4740 CFLAGS="-O2"
4741 else
4742 CFLAGS=
4743 fi
4744fi
81ecdfbb
RW
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4746$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4747if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 4748 $as_echo_n "(cached) " >&6
c6b750e1 4749else
81ecdfbb 4750 ac_cv_prog_cc_c89=no
c6b750e1 4751ac_save_CC=$CC
81ecdfbb 4752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4753/* end confdefs.h. */
4754#include <stdarg.h>
4755#include <stdio.h>
d0ac1c44 4756struct stat;
c6b750e1
DJ
4757/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4758struct buf { int x; };
4759FILE * (*rcsopen) (struct buf *, struct stat *, int);
4760static char *e (p, i)
4761 char **p;
4762 int i;
4763{
4764 return p[i];
4765}
4766static char *f (char * (*g) (char **, int), char **p, ...)
4767{
4768 char *s;
4769 va_list v;
4770 va_start (v,p);
4771 s = g (p, va_arg (v,int));
4772 va_end (v);
4773 return s;
4774}
4775
4776/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4777 function prototypes and stuff, but not '\xHH' hex character constants.
4778 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4779 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4780 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4781 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4782 that's true only with -std. */
c6b750e1
DJ
4783int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4784
81ecdfbb
RW
4785/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4786 inside strings and character constants. */
4787#define FOO(x) 'x'
4788int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4789
c6b750e1
DJ
4790int test (int i, double x);
4791struct s1 {int (*f) (int a);};
4792struct s2 {int (*f) (double a);};
4793int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4794int argc;
4795char **argv;
4796int
4797main ()
4798{
4799return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4800 ;
4801 return 0;
4802}
4803_ACEOF
81ecdfbb
RW
4804for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4805 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4806do
4807 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4808 if ac_fn_c_try_compile "$LINENO"; then :
4809 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4810fi
81ecdfbb
RW
4811rm -f core conftest.err conftest.$ac_objext
4812 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4813done
81ecdfbb 4814rm -f conftest.$ac_ext
c6b750e1
DJ
4815CC=$ac_save_CC
4816
4817fi
81ecdfbb
RW
4818# AC_CACHE_VAL
4819case "x$ac_cv_prog_cc_c89" in
4820 x)
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4822$as_echo "none needed" >&6; } ;;
4823 xno)
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4825$as_echo "unsupported" >&6; } ;;
c6b750e1 4826 *)
81ecdfbb
RW
4827 CC="$CC $ac_cv_prog_cc_c89"
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4829$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4830esac
81ecdfbb 4831if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4832
c6b750e1
DJ
4833fi
4834
c6b750e1
DJ
4835ac_ext=c
4836ac_cpp='$CPP $CPPFLAGS'
4837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4840
a8d6316b
NC
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4842$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4843if ${ac_cv_prog_cc_c99+:} false; then :
4844 $as_echo_n "(cached) " >&6
4845else
4846 ac_cv_prog_cc_c99=no
4847ac_save_CC=$CC
4848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849/* end confdefs.h. */
4850#include <stdarg.h>
4851#include <stdbool.h>
4852#include <stdlib.h>
4853#include <wchar.h>
4854#include <stdio.h>
4855
4856// Check varargs macros. These examples are taken from C99 6.10.3.5.
4857#define debug(...) fprintf (stderr, __VA_ARGS__)
4858#define showlist(...) puts (#__VA_ARGS__)
4859#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4860static void
4861test_varargs_macros (void)
4862{
4863 int x = 1234;
4864 int y = 5678;
4865 debug ("Flag");
4866 debug ("X = %d\n", x);
4867 showlist (The first, second, and third items.);
4868 report (x>y, "x is %d but y is %d", x, y);
4869}
4870
4871// Check long long types.
4872#define BIG64 18446744073709551615ull
4873#define BIG32 4294967295ul
4874#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4875#if !BIG_OK
4876 your preprocessor is broken;
4877#endif
4878#if BIG_OK
4879#else
4880 your preprocessor is broken;
4881#endif
4882static long long int bignum = -9223372036854775807LL;
4883static unsigned long long int ubignum = BIG64;
4884
4885struct incomplete_array
4886{
4887 int datasize;
4888 double data[];
4889};
4890
4891struct named_init {
4892 int number;
4893 const wchar_t *name;
4894 double average;
4895};
4896
4897typedef const char *ccp;
4898
4899static inline int
4900test_restrict (ccp restrict text)
4901{
4902 // See if C++-style comments work.
4903 // Iterate through items via the restricted pointer.
4904 // Also check for declarations in for loops.
4905 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4906 continue;
4907 return 0;
4908}
4909
4910// Check varargs and va_copy.
4911static void
4912test_varargs (const char *format, ...)
4913{
4914 va_list args;
4915 va_start (args, format);
4916 va_list args_copy;
4917 va_copy (args_copy, args);
4918
4919 const char *str;
4920 int number;
4921 float fnumber;
4922
4923 while (*format)
4924 {
4925 switch (*format++)
4926 {
4927 case 's': // string
4928 str = va_arg (args_copy, const char *);
4929 break;
4930 case 'd': // int
4931 number = va_arg (args_copy, int);
4932 break;
4933 case 'f': // float
4934 fnumber = va_arg (args_copy, double);
4935 break;
4936 default:
4937 break;
4938 }
4939 }
4940 va_end (args_copy);
4941 va_end (args);
4942}
4943
4944int
4945main ()
4946{
4947
4948 // Check bool.
4949 _Bool success = false;
4950
4951 // Check restrict.
4952 if (test_restrict ("String literal") == 0)
4953 success = true;
4954 char *restrict newvar = "Another string";
4955
4956 // Check varargs.
4957 test_varargs ("s, d' f .", "string", 65, 34.234);
4958 test_varargs_macros ();
4959
4960 // Check flexible array members.
4961 struct incomplete_array *ia =
4962 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4963 ia->datasize = 10;
4964 for (int i = 0; i < ia->datasize; ++i)
4965 ia->data[i] = i * 1.234;
4966
4967 // Check named initializers.
4968 struct named_init ni = {
4969 .number = 34,
4970 .name = L"Test wide string",
4971 .average = 543.34343,
4972 };
4973
4974 ni.number = 58;
4975
4976 int dynamic_array[ni.number];
4977 dynamic_array[ni.number - 1] = 543;
4978
4979 // work around unused variable warnings
4980 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4981 || dynamic_array[ni.number - 1] != 543);
4982
4983 ;
4984 return 0;
4985}
4986_ACEOF
4987for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4988do
4989 CC="$ac_save_CC $ac_arg"
4990 if ac_fn_c_try_compile "$LINENO"; then :
4991 ac_cv_prog_cc_c99=$ac_arg
4992fi
4993rm -f core conftest.err conftest.$ac_objext
4994 test "x$ac_cv_prog_cc_c99" != "xno" && break
4995done
4996rm -f conftest.$ac_ext
4997CC=$ac_save_CC
4998
4999fi
5000# AC_CACHE_VAL
5001case "x$ac_cv_prog_cc_c99" in
5002 x)
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5004$as_echo "none needed" >&6; } ;;
5005 xno)
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5007$as_echo "unsupported" >&6; } ;;
5008 *)
5009 CC="$CC $ac_cv_prog_cc_c99"
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5011$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5012esac
5013if test "x$ac_cv_prog_cc_c99" != xno; then :
5014
5015fi
5016
5017
81ecdfbb 5018ac_ext=cpp
18f6b6ee
PB
5019ac_cpp='$CXXCPP $CPPFLAGS'
5020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
5023if test -z "$CXX"; then
5024 if test -n "$CCC"; then
5025 CXX=$CCC
5026 else
5027 if test -n "$ac_tool_prefix"; then
5028 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
5029 do
5030 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5031set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5033$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5034if ${ac_cv_prog_CXX+:} false; then :
81ecdfbb 5035 $as_echo_n "(cached) " >&6
18f6b6ee
PB
5036else
5037 if test -n "$CXX"; then
5038 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5039else
5040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041for as_dir in $PATH
5042do
5043 IFS=$as_save_IFS
5044 test -z "$as_dir" && as_dir=.
81ecdfbb 5045 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 5047 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 5048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
5049 break 2
5050 fi
5051done
81ecdfbb
RW
5052 done
5053IFS=$as_save_IFS
512b7dfb 5054
18f6b6ee
PB
5055fi
5056fi
5057CXX=$ac_cv_prog_CXX
5058if test -n "$CXX"; then
81ecdfbb
RW
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5060$as_echo "$CXX" >&6; }
18f6b6ee 5061else
81ecdfbb
RW
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063$as_echo "no" >&6; }
18f6b6ee
PB
5064fi
5065
81ecdfbb 5066
18f6b6ee
PB
5067 test -n "$CXX" && break
5068 done
5069fi
5070if test -z "$CXX"; then
5071 ac_ct_CXX=$CXX
81ecdfbb 5072 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
5073do
5074 # Extract the first word of "$ac_prog", so it can be a program name with args.
5075set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5078if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 5079 $as_echo_n "(cached) " >&6
18f6b6ee
PB
5080else
5081 if test -n "$ac_ct_CXX"; then
5082 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5083else
5084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085for as_dir in $PATH
5086do
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
81ecdfbb 5089 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 5091 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 5093 break 2
512b7dfb 5094 fi
18f6b6ee 5095done
81ecdfbb
RW
5096 done
5097IFS=$as_save_IFS
512b7dfb 5098
18f6b6ee
PB
5099fi
5100fi
5101ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5102if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5104$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 5105else
81ecdfbb
RW
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107$as_echo "no" >&6; }
18f6b6ee
PB
5108fi
5109
81ecdfbb 5110
18f6b6ee
PB
5111 test -n "$ac_ct_CXX" && break
5112done
18f6b6ee 5113
81ecdfbb
RW
5114 if test "x$ac_ct_CXX" = x; then
5115 CXX="g++"
5116 else
5117 case $cross_compiling:$ac_tool_warned in
5118yes:)
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5121ac_tool_warned=yes ;;
5122esac
5123 CXX=$ac_ct_CXX
5124 fi
18f6b6ee
PB
5125fi
5126
81ecdfbb
RW
5127 fi
5128fi
18f6b6ee 5129# Provide some information about the compiler.
81ecdfbb
RW
5130$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5131set X $ac_compile
5132ac_compiler=$2
5133for ac_option in --version -v -V -qversion; do
5134 { { ac_try="$ac_compiler $ac_option >&5"
5135case "(($ac_try" in
5136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5137 *) ac_try_echo=$ac_try;;
5138esac
5139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5140$as_echo "$ac_try_echo"; } >&5
5141 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 5142 ac_status=$?
81ecdfbb
RW
5143 if test -s conftest.err; then
5144 sed '10a\
5145... rest of stderr output deleted ...
5146 10q' conftest.err >conftest.er1
5147 cat conftest.er1 >&5
81ecdfbb 5148 fi
d0ac1c44 5149 rm -f conftest.er1 conftest.err
81ecdfbb
RW
5150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5151 test $ac_status = 0; }
5152done
18f6b6ee 5153
81ecdfbb
RW
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5155$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 5156if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 5157 $as_echo_n "(cached) " >&6
18f6b6ee 5158else
81ecdfbb 5159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
5160/* end confdefs.h. */
5161
5162int
5163main ()
5164{
5165#ifndef __GNUC__
5166 choke me
5167#endif
5168
5169 ;
5170 return 0;
5171}
5172_ACEOF
81ecdfbb 5173if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
5174 ac_compiler_gnu=yes
5175else
81ecdfbb 5176 ac_compiler_gnu=no
18f6b6ee 5177fi
81ecdfbb 5178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
5179ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5180
5181fi
81ecdfbb
RW
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5183$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5184if test $ac_compiler_gnu = yes; then
5185 GXX=yes
5186else
5187 GXX=
5188fi
18f6b6ee
PB
5189ac_test_CXXFLAGS=${CXXFLAGS+set}
5190ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5192$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 5193if ${ac_cv_prog_cxx_g+:} false; then :
81ecdfbb
RW
5194 $as_echo_n "(cached) " >&6
5195else
5196 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5197 ac_cxx_werror_flag=yes
5198 ac_cv_prog_cxx_g=no
5199 CXXFLAGS="-g"
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
5201/* end confdefs.h. */
5202
5203int
5204main ()
5205{
5206
5207 ;
5208 return 0;
5209}
5210_ACEOF
81ecdfbb 5211if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
5212 ac_cv_prog_cxx_g=yes
5213else
81ecdfbb
RW
5214 CXXFLAGS=""
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5216/* end confdefs.h. */
81ecdfbb 5217
18f6b6ee
PB
5218int
5219main ()
5220{
81ecdfbb 5221
18f6b6ee
PB
5222 ;
5223 return 0;
5224}
5225_ACEOF
81ecdfbb 5226if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 5227
81ecdfbb
RW
5228else
5229 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5230 CXXFLAGS="-g"
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5232/* end confdefs.h. */
81ecdfbb 5233
18f6b6ee
PB
5234int
5235main ()
5236{
81ecdfbb 5237
18f6b6ee
PB
5238 ;
5239 return 0;
5240}
5241_ACEOF
81ecdfbb
RW
5242if ac_fn_cxx_try_compile "$LINENO"; then :
5243 ac_cv_prog_cxx_g=yes
18f6b6ee 5244fi
81ecdfbb
RW
5245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246fi
5247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5248fi
5249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5250 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5251fi
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5253$as_echo "$ac_cv_prog_cxx_g" >&6; }
5254if test "$ac_test_CXXFLAGS" = set; then
5255 CXXFLAGS=$ac_save_CXXFLAGS
5256elif test $ac_cv_prog_cxx_g = yes; then
5257 if test "$GXX" = yes; then
5258 CXXFLAGS="-g -O2"
5259 else
5260 CXXFLAGS="-g"
5261 fi
5262else
5263 if test "$GXX" = yes; then
5264 CXXFLAGS="-O2"
5265 else
5266 CXXFLAGS=
5267 fi
18f6b6ee 5268fi
18f6b6ee
PB
5269ac_ext=c
5270ac_cpp='$CPP $CPPFLAGS'
5271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5273ac_compiler_gnu=$ac_cv_c_compiler_gnu
5274
5275
5276# We must set the default linker to the linker used by gcc for the correct
5277# operation of libtool. If LD is not defined and we are using gcc, try to
5278# set the LD default to the ld used by gcc.
5279if test -z "$LD"; then
5280 if test "$GCC" = yes; then
5281 case $build in
5282 *-*-mingw*)
5283 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5284 *)
5285 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5286 esac
5287 case $gcc_prog_ld in
5288 # Accept absolute paths.
5289 [\\/]* | [A-Za-z]:[\\/]*)
5290 LD="$gcc_prog_ld" ;;
5291 esac
5292 fi
512b7dfb
PB
5293fi
5294
b3676d82
EB
5295# Check whether -static-libstdc++ -static-libgcc is supported.
5296have_static_libs=no
5297if test "$GCC" = yes; then
5298 saved_LDFLAGS="$LDFLAGS"
5299
5300 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5302$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5303 ac_ext=cpp
5304ac_cpp='$CXXCPP $CPPFLAGS'
5305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5308
5309
5310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311/* end confdefs.h. */
a882be68
EB
5312
5313#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5314#error -static-libstdc++ not implemented
5315#endif
b3676d82
EB
5316int main() {}
5317_ACEOF
5318if ac_fn_cxx_try_link "$LINENO"; then :
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5320$as_echo "yes" >&6; }; have_static_libs=yes
5321else
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323$as_echo "no" >&6; }
5324fi
5325rm -f core conftest.err conftest.$ac_objext \
5326 conftest$ac_exeext conftest.$ac_ext
5327 ac_ext=c
5328ac_cpp='$CPP $CPPFLAGS'
5329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5331ac_compiler_gnu=$ac_cv_c_compiler_gnu
5332
5333
5334 LDFLAGS="$saved_LDFLAGS"
5335fi
5336
512b7dfb
PB
5337
5338
5339
c6b750e1 5340if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5341 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5342set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5344$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5345if ${ac_cv_prog_GNATBIND+:} false; then :
81ecdfbb 5346 $as_echo_n "(cached) " >&6
9e07f89d 5347else
512b7dfb
PB
5348 if test -n "$GNATBIND"; then
5349 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5350else
c6b750e1
DJ
5351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352for as_dir in $PATH
5353do
5354 IFS=$as_save_IFS
5355 test -z "$as_dir" && as_dir=.
81ecdfbb 5356 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5358 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5360 break 2
5361 fi
5362done
81ecdfbb
RW
5363 done
5364IFS=$as_save_IFS
c6b750e1 5365
9e07f89d
NN
5366fi
5367fi
512b7dfb
PB
5368GNATBIND=$ac_cv_prog_GNATBIND
5369if test -n "$GNATBIND"; then
81ecdfbb
RW
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5371$as_echo "$GNATBIND" >&6; }
9e07f89d 5372else
81ecdfbb
RW
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374$as_echo "no" >&6; }
9e07f89d
NN
5375fi
5376
81ecdfbb 5377
c6b750e1 5378fi
512b7dfb
PB
5379if test -z "$ac_cv_prog_GNATBIND"; then
5380 ac_ct_GNATBIND=$GNATBIND
5381 # Extract the first word of "gnatbind", so it can be a program name with args.
5382set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5384$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5385if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
81ecdfbb 5386 $as_echo_n "(cached) " >&6
9e07f89d 5387else
512b7dfb
PB
5388 if test -n "$ac_ct_GNATBIND"; then
5389 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5390else
c6b750e1
DJ
5391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392for as_dir in $PATH
5393do
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
81ecdfbb 5396 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5398 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5400 break 2
5401 fi
5402done
81ecdfbb
RW
5403 done
5404IFS=$as_save_IFS
c6b750e1 5405
9e07f89d
NN
5406fi
5407fi
512b7dfb
PB
5408ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5409if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5411$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5412else
81ecdfbb
RW
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414$as_echo "no" >&6; }
9e07f89d
NN
5415fi
5416
81ecdfbb
RW
5417 if test "x$ac_ct_GNATBIND" = x; then
5418 GNATBIND="no"
5419 else
5420 case $cross_compiling:$ac_tool_warned in
5421yes:)
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424ac_tool_warned=yes ;;
5425esac
5426 GNATBIND=$ac_ct_GNATBIND
5427 fi
24ff9987 5428else
512b7dfb 5429 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5430fi
5431
7df2cd5d 5432if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5433 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5434set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5437if ${ac_cv_prog_GNATMAKE+:} false; then :
81ecdfbb 5438 $as_echo_n "(cached) " >&6
7df2cd5d 5439else
512b7dfb
PB
5440 if test -n "$GNATMAKE"; then
5441 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5442else
5443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444for as_dir in $PATH
5445do
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
81ecdfbb 5448 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5450 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5452 break 2
5453 fi
5454done
81ecdfbb
RW
5455 done
5456IFS=$as_save_IFS
7df2cd5d
PB
5457
5458fi
5459fi
512b7dfb
PB
5460GNATMAKE=$ac_cv_prog_GNATMAKE
5461if test -n "$GNATMAKE"; then
81ecdfbb
RW
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5463$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5464else
81ecdfbb
RW
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466$as_echo "no" >&6; }
7df2cd5d
PB
5467fi
5468
81ecdfbb 5469
7df2cd5d 5470fi
512b7dfb
PB
5471if test -z "$ac_cv_prog_GNATMAKE"; then
5472 ac_ct_GNATMAKE=$GNATMAKE
5473 # Extract the first word of "gnatmake", so it can be a program name with args.
5474set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5477if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
81ecdfbb 5478 $as_echo_n "(cached) " >&6
7df2cd5d 5479else
512b7dfb
PB
5480 if test -n "$ac_ct_GNATMAKE"; then
5481 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5482else
5483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484for as_dir in $PATH
5485do
5486 IFS=$as_save_IFS
5487 test -z "$as_dir" && as_dir=.
81ecdfbb 5488 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5490 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5492 break 2
5493 fi
5494done
81ecdfbb
RW
5495 done
5496IFS=$as_save_IFS
7df2cd5d 5497
7df2cd5d
PB
5498fi
5499fi
512b7dfb
PB
5500ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5501if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5503$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5504else
81ecdfbb
RW
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506$as_echo "no" >&6; }
7df2cd5d
PB
5507fi
5508
81ecdfbb
RW
5509 if test "x$ac_ct_GNATMAKE" = x; then
5510 GNATMAKE="no"
5511 else
5512 case $cross_compiling:$ac_tool_warned in
5513yes:)
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5516ac_tool_warned=yes ;;
5517esac
5518 GNATMAKE=$ac_ct_GNATMAKE
5519 fi
7df2cd5d 5520else
512b7dfb 5521 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5522fi
5523
81ecdfbb
RW
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5525$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
d0ac1c44 5526if ${acx_cv_cc_gcc_supports_ada+:} false; then :
81ecdfbb 5527 $as_echo_n "(cached) " >&6
9e07f89d
NN
5528else
5529 cat >conftest.adb <<EOF
5530procedure conftest is begin null; end conftest;
5531EOF
5532acx_cv_cc_gcc_supports_ada=no
5533# There is a bug in old released versions of GCC which causes the
5534# driver to exit successfully when the appropriate language module
5535# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5536# Therefore we must check for the error message as well as an
5537# unsuccessful exit.
b8908782
DD
5538# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5539# given a .adb file, but produce no object file. So we must check
5540# if an object file was really produced to guard against this.
9e07f89d 5541errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5542if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5543 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5544fi
5545rm -f conftest.*
5546fi
81ecdfbb
RW
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5548$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5549
64b986c0 5550if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5551 have_gnat=yes
5552else
5553 have_gnat=no
5554fi
5555
81ecdfbb
RW
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5557$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
d0ac1c44 5558if ${gcc_cv_prog_cmp_skip+:} false; then :
81ecdfbb 5559 $as_echo_n "(cached) " >&6
b8908782
DD
5560else
5561 echo abfoo >t1
5562 echo cdfoo >t2
da17fe9d 5563 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5564 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5565 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5566 :
5567 else
5568 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5569 fi
5570 fi
b8908782
DD
5571 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5572 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5573 :
b8908782
DD
5574 else
5575 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5576 fi
5577 fi
5578 rm t1 t2
5579
5580fi
81ecdfbb
RW
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5582$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5583do_compare="$gcc_cv_prog_cmp_skip"
5584
5585
9e07f89d 5586
ffdd6afc
ILT
5587# Check whether --enable-bootstrap was given.
5588if test "${enable_bootstrap+set}" = set; then :
5589 enableval=$enable_bootstrap;
5590else
5591 enable_bootstrap=default
5592fi
5593
5594
5595# Issue errors and warnings for invalid/strange bootstrap combinations.
5596if test -r $srcdir/gcc/configure; then
5597 have_compiler=yes
5598else
5599 have_compiler=no
5600fi
5601
5602case "$have_compiler:$host:$target:$enable_bootstrap" in
5603 *:*:*:no) ;;
5604
5605 # Default behavior. Enable bootstrap if we have a compiler
5606 # and we are in a native configuration.
5607 yes:$build:$build:default)
5608 enable_bootstrap=yes ;;
5609
5610 *:*:*:default)
5611 enable_bootstrap=no ;;
5612
5613 # We have a compiler and we are in a native configuration, bootstrap is ok
5614 yes:$build:$build:yes)
5615 ;;
5616
5617 # Other configurations, but we have a compiler. Assume the user knows
5618 # what he's doing.
5619 yes:*:*:yes)
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5621$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5622 ;;
5623
5624 # No compiler: if they passed --enable-bootstrap explicitly, fail
5625 no:*:*:yes)
d0ac1c44 5626 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ffdd6afc
ILT
5627
5628 # Fail if wrong command line
5629 *)
d0ac1c44 5630 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ffdd6afc
ILT
5631 ;;
5632esac
5633
ce6c656d
L
5634# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5635# C++98 compiler can still start the bootstrap.
5636if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5637 CXX="$CXX -std=gnu++98"
5638fi
5639
af019bfd
L
5640# Check whether --enable-pgo-build was given.
5641if test "${enable_pgo_build+set}" = set; then :
5642 enableval=$enable_pgo_build; enable_pgo_build=$enableval
5643else
5644 enable_pgo_build=no
5645fi
5646
5647
5648# Issue errors and warnings for invalid/strange PGO build combinations.
5649case "$have_compiler:$host:$target:$enable_pgo_build" in
5650 *:*:*:no) ;;
5651
5652 # Allow the PGO build only if we aren't building a compiler and
5653 # we are in a native configuration.
5654 no:$build:$build:yes | no:$build:$build:lto) ;;
5655
5656 # Disallow the PGO bootstrap if we are building a compiler.
5657 yes:*:*:yes | yes:*:*:lto)
5658 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
5659
5660 *)
5661 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
5662 ;;
5663esac
5664
5665if test "$enable_pgo_build" != "no"; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
5667$as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
5668 old_CFLAGS="$CFLAGS"
5669 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
5670 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
5671
5672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673/* end confdefs.h. */
5674int foo;
5675_ACEOF
5676if ac_fn_c_try_compile "$LINENO"; then :
5677
5678else
5679 PGO_BUILD_GEN_CFLAGS=
5680fi
5681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 CFLAGS="$old_CFLAGS"
5683 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5685$as_echo "yes" >&6; }
5686 PGO_BUILD_USE_CFLAGS="-fprofile-use"
5687 else
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689$as_echo "no" >&6; }
5690 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
5691 fi
5692
5693 if test "$enable_pgo_build" = "lto"; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
5695$as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
5696 old_CFLAGS="$CFLAGS"
5697 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
5698 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700/* end confdefs.h. */
5701int foo;
5702_ACEOF
5703if ac_fn_c_try_compile "$LINENO"; then :
5704
5705else
5706 PGO_BUILD_LTO_CFLAGS=
5707fi
5708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5709 CFLAGS="$old_CFLAGS"
5710 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5712$as_echo "yes" >&6; }
5713 else
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715$as_echo "no" >&6; }
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
5717$as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
5718 fi
5719 fi
5720fi
5721
5722
5723
5724
d5f2ee2e
KG
5725# Used for setting $lt_cv_objdir
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5727$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 5728if ${lt_cv_objdir+:} false; then :
d5f2ee2e
KG
5729 $as_echo_n "(cached) " >&6
5730else
5731 rm -f .libs 2>/dev/null
5732mkdir .libs 2>/dev/null
5733if test -d .libs; then
5734 lt_cv_objdir=.libs
5735else
5736 # MS-DOS does not allow filenames that begin with a dot.
5737 lt_cv_objdir=_libs
5738fi
5739rmdir .libs 2>/dev/null
5740fi
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5742$as_echo "$lt_cv_objdir" >&6; }
5743objdir=$lt_cv_objdir
5744
5745
5746
5747
5748
5749cat >>confdefs.h <<_ACEOF
5750#define LT_OBJDIR "$lt_cv_objdir/"
5751_ACEOF
5752
5753
5754
e8a5fa9c 5755# Check for GMP, MPFR and MPC
d9b76ff9 5756gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5757gmpinc=
4b900473 5758have_gmp=no
e8a5fa9c
RW
5759
5760# Specify a location for mpc
5761# check for this first so it ends up on the link line before mpfr.
5762
81ecdfbb
RW
5763# Check whether --with-mpc was given.
5764if test "${with_mpc+set}" = set; then :
5765 withval=$with_mpc;
5766fi
e8a5fa9c 5767
e8a5fa9c 5768
e552509b 5769# Check whether --with-mpc-include was given.
81ecdfbb
RW
5770if test "${with_mpc_include+set}" = set; then :
5771 withval=$with_mpc_include;
5772fi
e8a5fa9c 5773
e8a5fa9c 5774
e552509b 5775# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5776if test "${with_mpc_lib+set}" = set; then :
5777 withval=$with_mpc_lib;
5778fi
e8a5fa9c 5779
e8a5fa9c
RW
5780
5781if test "x$with_mpc" != x; then
d9b76ff9
KG
5782 gmplibs="-L$with_mpc/lib $gmplibs"
5783 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5784fi
5785if test "x$with_mpc_include" != x; then
d9b76ff9 5786 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5787fi
5788if test "x$with_mpc_lib" != x; then
d9b76ff9 5789 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5790fi
5791if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5792 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5793 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5794 # Do not test the mpc version. Assume that it is sufficient, since
5795 # it is in the source tree, and the library has not been built yet
5796 # but it would be included on the link line in the version check below
5797 # hence making the test fail.
d9b76ff9 5798 have_gmp=yes
e8a5fa9c 5799fi
4b900473 5800
11b04d1f
DD
5801# Specify a location for mpfr
5802# check for this first so it ends up on the link line before gmp.
c6b750e1 5803
81ecdfbb
RW
5804# Check whether --with-mpfr-dir was given.
5805if test "${with_mpfr_dir+set}" = set; then :
d0ac1c44 5806 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
81ecdfbb
RW
5807Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5808fi
5809
11b04d1f
DD
5810
5811
81ecdfbb
RW
5812# Check whether --with-mpfr was given.
5813if test "${with_mpfr+set}" = set; then :
5814 withval=$with_mpfr;
5815fi
c6b750e1 5816
11b04d1f 5817
e552509b 5818# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5819if test "${with_mpfr_include+set}" = set; then :
5820 withval=$with_mpfr_include;
5821fi
c6b750e1 5822
8a0d8a5c 5823
e552509b 5824# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5825if test "${with_mpfr_lib+set}" = set; then :
5826 withval=$with_mpfr_lib;
5827fi
8a0d8a5c 5828
11b04d1f
DD
5829
5830if test "x$with_mpfr" != x; then
5831 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5832 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5833fi
8a0d8a5c 5834if test "x$with_mpfr_include" != x; then
d9b76ff9 5835 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5836fi
5837if test "x$with_mpfr_lib" != x; then
5838 gmplibs="-L$with_mpfr_lib $gmplibs"
5839fi
4b900473 5840if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21 5841 # MPFR v3.1.0 moved the sources into a src sub-directory.
05a13254 5842 if ! test -d ${srcdir}/mpfr/src; then
d0ac1c44 5843 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
58b1dd21 5844 fi
05a13254
NC
5845 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5846 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5847 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
4b900473
PB
5848 # Do not test the mpfr version. Assume that it is sufficient, since
5849 # it is in the source tree, and the library has not been built yet
5850 # but it would be included on the link line in the version check below
5851 # hence making the test fail.
5852 have_gmp=yes
5853fi
11b04d1f 5854
4b1cb4fe 5855# Specify a location for gmp
c6b750e1 5856
81ecdfbb
RW
5857# Check whether --with-gmp-dir was given.
5858if test "${with_gmp_dir+set}" = set; then :
d0ac1c44 5859 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
81ecdfbb
RW
5860Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5861fi
5862
4b1cb4fe
DD
5863
5864
81ecdfbb
RW
5865# Check whether --with-gmp was given.
5866if test "${with_gmp+set}" = set; then :
5867 withval=$with_gmp;
5868fi
c6b750e1 5869
4b1cb4fe 5870
e552509b 5871# Check whether --with-gmp-include was given.
81ecdfbb
RW
5872if test "${with_gmp_include+set}" = set; then :
5873 withval=$with_gmp_include;
5874fi
c6b750e1 5875
8a0d8a5c 5876
e552509b 5877# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5878if test "${with_gmp_lib+set}" = set; then :
5879 withval=$with_gmp_lib;
5880fi
8a0d8a5c
PB
5881
5882
4b1cb4fe 5883
11b04d1f
DD
5884if test "x$with_gmp" != x; then
5885 gmplibs="-L$with_gmp/lib $gmplibs"
5886 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5887fi
8a0d8a5c
PB
5888if test "x$with_gmp_include" != x; then
5889 gmpinc="-I$with_gmp_include $gmpinc"
5890fi
5891if test "x$with_gmp_lib" != x; then
5892 gmplibs="-L$with_gmp_lib $gmplibs"
5893fi
4b900473 5894if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5895 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5896 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5897 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5898 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5899 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5900 # Do not test the gmp version. Assume that it is sufficient, since
5901 # it is in the source tree, and the library has not been built yet
5902 # but it would be included on the link line in the version check below
5903 # hence making the test fail.
5904 have_gmp=yes
5905fi
4b1cb4fe 5906
ceb92e78 5907if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5908 have_gmp=yes
5909 saved_CFLAGS="$CFLAGS"
5910 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5911 # Check for the recommended and required versions of GMP.
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5913$as_echo_n "checking for the correct version of gmp.h... " >&6; }
af019bfd 5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5915/* end confdefs.h. */
5916#include "gmp.h"
5917int
5918main ()
5919{
5920
5921 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5922 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5923 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5924 choke me
5925 #endif
5926
5927 ;
5928 return 0;
5929}
5930_ACEOF
5931if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5933/* end confdefs.h. */
a6b5846e 5934#include <gmp.h>
c6b750e1
DJ
5935int
5936main ()
5937{
4b1cb4fe 5938
a6b5846e
KG
5939 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5940 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5941 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5942 choke me
5943 #endif
c6b750e1
DJ
5944
5945 ;
5946 return 0;
5947}
5948_ACEOF
81ecdfbb
RW
5949if ac_fn_c_try_compile "$LINENO"; then :
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5951$as_echo "yes" >&6; }
a6b5846e
KG
5952else
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5954$as_echo "buggy but acceptable" >&6; }
5955fi
5956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5957else
81ecdfbb
RW
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5960fi
81ecdfbb 5961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5962
e8a5fa9c 5963 # If we have GMP, check the MPFR version.
4b900473 5964 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5965 # Check for the recommended and required versions of MPFR.
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5967$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5969/* end confdefs.h. */
9b134994 5970#include <gmp.h>
4b900473 5971 #include <mpfr.h>
c6b750e1
DJ
5972int
5973main ()
5974{
9b134994 5975
7ec59b9e 5976 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5977 choke me
5978 #endif
c6b750e1
DJ
5979
5980 ;
5981 return 0;
5982}
5983_ACEOF
81ecdfbb
RW
5984if ac_fn_c_try_compile "$LINENO"; then :
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5986/* end confdefs.h. */
4b1cb4fe 5987#include <gmp.h>
4b900473 5988 #include <mpfr.h>
c6b750e1
DJ
5989int
5990main ()
5991{
9dbaa842 5992
a6b5846e 5993 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5994 choke me
5995 #endif
e8a5fa9c
RW
5996
5997 ;
5998 return 0;
5999}
6000_ACEOF
81ecdfbb
RW
6001if ac_fn_c_try_compile "$LINENO"; then :
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6003$as_echo "yes" >&6; }
e8a5fa9c 6004else
81ecdfbb
RW
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6006$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 6007fi
81ecdfbb 6008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 6009else
81ecdfbb
RW
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6011$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 6012fi
81ecdfbb 6013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
6014 fi
6015
6016 # Check for the MPC header version.
d9b76ff9 6017 if test x"$have_gmp" = xyes ; then
a6b5846e 6018 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
6020$as_echo_n "checking for the correct version of mpc.h... " >&6; }
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
6022/* end confdefs.h. */
6023#include <mpc.h>
6024int
6025main ()
6026{
6027
a6b5846e
KG
6028 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
6029 choke me
6030 #endif
6031
6032 ;
6033 return 0;
6034}
6035_ACEOF
6036if ac_fn_c_try_compile "$LINENO"; then :
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038/* end confdefs.h. */
6039#include <mpc.h>
6040int
6041main ()
6042{
6043
6044 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
6045 choke me
6046 #endif
6047
6048 ;
6049 return 0;
6050}
6051_ACEOF
81ecdfbb
RW
6052if ac_fn_c_try_compile "$LINENO"; then :
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 6054$as_echo "yes" >&6; }
a6b5846e
KG
6055else
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6057$as_echo "buggy but acceptable" >&6; }
6058fi
6059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 6060else
81ecdfbb 6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 6062$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 6063fi
81ecdfbb 6064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
6065 fi
6066
6067 # Now check the MPFR library.
6068 if test x"$have_gmp" = xyes; then
6069 saved_LIBS="$LIBS"
6070 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
6072$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 6074/* end confdefs.h. */
d9b76ff9 6075#include <mpc.h>
e8a5fa9c
RW
6076int
6077main ()
6078{
6079
6080 mpfr_t n;
6081 mpfr_t x;
d9b76ff9 6082 mpc_t c;
e8a5fa9c
RW
6083 int t;
6084 mpfr_init (n);
6085 mpfr_init (x);
6086 mpfr_atan2 (n, n, x, GMP_RNDN);
6087 mpfr_erfc (n, x, GMP_RNDN);
6088 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
6089 mpfr_clear(n);
6090 mpfr_clear(x);
6091 mpc_init2 (c, 53);
6092 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
6093 mpc_cosh (c, c, MPC_RNDNN);
6094 mpc_pow (c, c, c, MPC_RNDNN);
6095 mpc_acosh (c, c, MPC_RNDNN);
6096 mpc_clear (c);
c6b750e1
DJ
6097
6098 ;
6099 return 0;
6100}
6101_ACEOF
81ecdfbb
RW
6102if ac_fn_c_try_link "$LINENO"; then :
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6104$as_echo "yes" >&6; }
c6b750e1 6105else
81ecdfbb
RW
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107$as_echo "no" >&6; }; have_gmp=no
c6b750e1 6108fi
81ecdfbb
RW
6109rm -f core conftest.err conftest.$ac_objext \
6110 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
6111 LIBS="$saved_LIBS"
6112 fi
6113
4b900473 6114 CFLAGS="$saved_CFLAGS"
4b1cb4fe 6115
a6b5846e
KG
6116# The library versions listed in the error message below should match
6117# the HARD-minimums enforced above.
4b900473 6118 if test x$have_gmp != xyes; then
d0ac1c44 6119 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
6120Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
6121their locations. Source code for these libraries can be found at
6122their respective hosting sites as well as at
6123ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
6124http://gcc.gnu.org/install/prerequisites.html for additional info. If
6125you obtained GMP, MPFR and/or MPC from a vendor distribution package,
6126make sure that you have installed both the libraries and the header
6127files. They may be located in separate packages." "$LINENO" 5
4b900473 6128 fi
9dbaa842
DD
6129fi
6130
e8a5fa9c
RW
6131# Flags needed for both GMP, MPFR and/or MPC.
6132
6133
6134
4b1cb4fe
DD
6135
6136
6137
7ec59b9e 6138
b3676d82 6139# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 6140
b3676d82
EB
6141# Check whether --with-stage1-libs was given.
6142if test "${with_stage1_libs+set}" = set; then :
6143 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6144 stage1_libs=
e8a5fa9c 6145 else
b3676d82 6146 stage1_libs=$withval
e8a5fa9c
RW
6147 fi
6148else
68996839 6149 stage1_libs=
81ecdfbb
RW
6150fi
6151
e8a5fa9c
RW
6152
6153
c1a5d03a
TT
6154# Whether or not to use -static-libstdc++ and -static-libgcc. The
6155# default is yes if gcc is being built; no otherwise. The reason for
6156# this default is that gdb is sometimes linked against GNU Source
6157# Highlight, which is a shared library that uses C++ exceptions. In
6158# this case, -static-libstdc++ will cause crashes.
6159
6160# Check whether --with-static-standard-libraries was given.
6161if test "${with_static_standard_libraries+set}" = set; then :
6162 withval=$with_static_standard_libraries;
6163else
6164 with_static_standard_libraries=auto
6165fi
6166
6167if test "$with_static_standard_libraries" = auto; then
6168 with_static_standard_libraries=$have_compiler
6169fi
6170
b3676d82 6171# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 6172
b3676d82
EB
6173# Check whether --with-stage1-ldflags was given.
6174if test "${with_stage1_ldflags+set}" = set; then :
6175 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6176 stage1_ldflags=
e8a5fa9c 6177 else
b3676d82 6178 stage1_ldflags=$withval
e8a5fa9c
RW
6179 fi
6180else
b3676d82
EB
6181 stage1_ldflags=
6182 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
6183 # if supported. But if the user explicitly specified the libraries to use,
6184 # trust that they are doing what they want.
c1a5d03a
TT
6185 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
6186 -a "$have_static_libs" = yes; then
b3676d82
EB
6187 stage1_ldflags="-static-libstdc++ -static-libgcc"
6188 fi
81ecdfbb
RW
6189fi
6190
e8a5fa9c
RW
6191
6192
68996839 6193# Libraries to use for stage2 and later builds.
e8a5fa9c 6194
81ecdfbb
RW
6195# Check whether --with-boot-libs was given.
6196if test "${with_boot_libs+set}" = set; then :
6197 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
6198 poststage1_libs=
6199 else
6200 poststage1_libs=$withval
6201 fi
6202else
68996839 6203 poststage1_libs=
81ecdfbb
RW
6204fi
6205
e8a5fa9c
RW
6206
6207
143754cd
NC
6208# Linker flags to use for stage2 and later builds.
6209
6210# Check whether --with-boot-ldflags was given.
6211if test "${with_boot_ldflags+set}" = set; then :
6212 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6213 poststage1_ldflags=
6214 else
6215 poststage1_ldflags=$withval
6216 fi
6217else
6218 poststage1_ldflags=
4f11b223
ILT
6219 # In stages 2 and 3, default to linking libstdc++ and libgcc
6220 # statically. But if the user explicitly specified the libraries to
6221 # use, trust that they are doing what they want.
6222 if test "$poststage1_libs" = ""; then
143754cd
NC
6223 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6224 fi
6225fi
6226
6227
6228
4849dfd8 6229# GCC GRAPHITE dependency isl.
1b6c0831 6230# Basic setup is inlined here, actual checks are in config/isl.m4
e28c595f
JM
6231
6232
7ec59b9e
L
6233# Check whether --with-isl was given.
6234if test "${with_isl+set}" = set; then :
6235 withval=$with_isl;
81ecdfbb 6236fi
e28c595f 6237
e28c595f 6238
1b6c0831 6239# Treat --without-isl as a request to disable
8e71395b 6240# GRAPHITE support and skip all following checks.
1b6c0831 6241if test "x$with_isl" != "xno"; then
4849dfd8 6242 # Check for isl
8e71395b
L
6243
6244
7ec59b9e
L
6245# Check whether --with-isl-include was given.
6246if test "${with_isl_include+set}" = set; then :
6247 withval=$with_isl_include;
81ecdfbb
RW
6248fi
6249
e28c595f 6250
7ec59b9e
L
6251# Check whether --with-isl-lib was given.
6252if test "${with_isl_lib+set}" = set; then :
6253 withval=$with_isl_lib;
81ecdfbb 6254fi
e28c595f 6255
e28c595f 6256
7ec59b9e
L
6257 # Check whether --enable-isl-version-check was given.
6258if test "${enable_isl_version_check+set}" = set; then :
6259 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6260else
6261 ENABLE_ISL_CHECK=yes
b123da99
SP
6262fi
6263
6264
7ec59b9e
L
6265 # Initialize isllibs and islinc.
6266 case $with_isl in
6267 no)
6268 isllibs=
6269 islinc=
6270 ;;
6271 "" | yes)
6272 ;;
6273 *)
6274 isllibs="-L$with_isl/lib"
6275 islinc="-I$with_isl/include"
6276 ;;
6277 esac
6278 if test "x${with_isl_include}" != x ; then
6279 islinc="-I$with_isl_include"
6280 fi
6281 if test "x${with_isl_lib}" != x; then
6282 isllibs="-L$with_isl_lib"
6283 fi
6284 if test "x${islinc}" = x && test "x${isllibs}" = x \
6285 && test -d ${srcdir}/isl; then
6286 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6287 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6288 ENABLE_ISL_CHECK=no
4849dfd8
NC
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6290$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
7ec59b9e 6291 fi
b123da99 6292
1b6c0831 6293 isllibs="${isllibs} -lisl"
b123da99 6294
e28c595f 6295
b3fc79f8
JBG
6296
6297 if test "${ENABLE_ISL_CHECK}" = yes ; then
6298 _isl_saved_CFLAGS=$CFLAGS
6299 _isl_saved_LDFLAGS=$LDFLAGS
6300 _isl_saved_LIBS=$LIBS
6301
6302 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
4849dfd8
NC
6303 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6304 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
b3fc79f8 6305
bf41f30d
NC
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6307$as_echo_n "checking for isl 0.15 or later... " >&6; }
1b6c0831 6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3fc79f8 6309/* end confdefs.h. */
bf41f30d 6310#include <isl/schedule.h>
b3fc79f8
JBG
6311int
6312main ()
6313{
bf41f30d 6314isl_options_set_schedule_serialize_sccs (NULL, 0);
b3fc79f8
JBG
6315 ;
6316 return 0;
6317}
6318_ACEOF
1b6c0831 6319if ac_fn_c_try_link "$LINENO"; then :
b3fc79f8
JBG
6320 gcc_cv_isl=yes
6321else
6322 gcc_cv_isl=no
6323fi
1b6c0831
L
6324rm -f core conftest.err conftest.$ac_objext \
6325 conftest$ac_exeext conftest.$ac_ext
b3fc79f8
JBG
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6327$as_echo "$gcc_cv_isl" >&6; }
6328
4849dfd8 6329 if test "${gcc_cv_isl}" = no ; then
bf41f30d
NC
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6331$as_echo "required isl version is 0.15 or later" >&6; }
4849dfd8
NC
6332 fi
6333
b3fc79f8
JBG
6334 CFLAGS=$_isl_saved_CFLAGS
6335 LDFLAGS=$_isl_saved_LDFLAGS
6336 LIBS=$_isl_saved_LIBS
6337 fi
6338
6339
e28c595f 6340
e28c595f 6341
7ec59b9e
L
6342
6343
7ec59b9e
L
6344 if test "x${with_isl}" = xno; then
6345 graphite_requested=no
6346 elif test "x${with_isl}" != x \
6347 || test "x${with_isl_include}" != x \
6348 || test "x${with_isl_lib}" != x ; then
6349 graphite_requested=yes
6350 else
6351 graphite_requested=no
b123da99 6352 fi
e28c595f 6353
e28c595f
JM
6354
6355
7ec59b9e
L
6356 if test "${gcc_cv_isl}" = no ; then
6357 isllibs=
6358 islinc=
6359 fi
e28c595f 6360
7ec59b9e
L
6361 if test "${graphite_requested}" = yes \
6362 && test "x${isllibs}" = x \
6363 && test "x${islinc}" = x ; then
e28c595f 6364
d0ac1c44 6365 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
7ec59b9e 6366 fi
e552509b 6367
e28c595f 6368
e552509b
ILT
6369fi
6370
4849dfd8 6371# If the isl check failed, disable builds of in-tree variant of isl
8e71395b 6372if test "x$with_isl" = xno ||
8e71395b 6373 test "x$gcc_cv_isl" = xno; then
1b6c0831 6374 noconfigdirs="$noconfigdirs isl"
8e71395b 6375 islinc=
7ec59b9e
L
6376fi
6377
8e71395b
L
6378
6379
6380
700d40ca
ILT
6381# Check for LTO support.
6382# Check whether --enable-lto was given.
6383if test "${enable_lto+set}" = set; then :
6384 enableval=$enable_lto; enable_lto=$enableval
6385else
6386 enable_lto=yes; default_enable_lto=yes
6387fi
6388
6389
143754cd 6390
e49e5c92
DK
6391
6392
6393target_elf=no
6394case $target in
6395 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 6396 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
1b6c0831
L
6397 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6398 nvptx-*-none)
e49e5c92
DK
6399 target_elf=no
6400 ;;
6401 *)
6402 target_elf=yes
6403 ;;
6404esac
6405
6406if test $target_elf = yes; then :
74cea91b
DK
6407 # ELF platforms build the lto-plugin always.
6408 build_lto_plugin=yes
e49e5c92 6409
e49e5c92
DK
6410else
6411 if test x"$default_enable_lto" = x"yes" ; then
29821356 6412 case $target in
bf41f30d 6413 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
74cea91b 6414 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6415 *) enable_lto=no ;;
6416 esac
e49e5c92 6417 else
29821356
RW
6418 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6419 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6420 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6421 # warn during gcc/ subconfigure; unless you're bootstrapping with
6422 # -flto it won't be needed until after installation anyway.
6423 case $target in
52cf9762 6424 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
e49e5c92 6425 *) if test x"$enable_lto" = x"yes"; then
d0ac1c44 6426 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
e49e5c92
DK
6427 fi
6428 ;;
6429 esac
6430 fi
a8eb3f0a 6431 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6432 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6433 case $target in
74cea91b 6434 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6435 *) ;;
6436 esac
74cea91b 6437
e49e5c92
DK
6438fi
6439
700d40ca 6440
1b6c0831
L
6441# Check whether --enable-linker-plugin-configure-flags was given.
6442if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6443 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6444else
6445 extra_linker_plugin_configure_flags=
6446fi
6447
6448
6449# Check whether --enable-linker-plugin-flags was given.
6450if test "${enable_linker_plugin_flags+set}" = set; then :
6451 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6452else
6453 extra_linker_plugin_flags=
6454fi
6455
6456
6457
bf41f30d
NC
6458# Enable --enable-host-shared.
6459# Checked early to determine whether jit is an 'all' language
6460# Check whether --enable-host-shared was given.
6461if test "${enable_host_shared+set}" = set; then :
6462 enableval=$enable_host_shared; host_shared=$enableval
6463else
6464 host_shared=no
6465fi
6466
6467
e28c595f 6468
7ec59b9e 6469# By default, C and C++ are the only stage 1 languages.
9b134994 6470stage1_languages=,c,
1d39f329 6471
e8a5fa9c 6472# Target libraries that we bootstrap.
2aa2364a 6473bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6474
9e07f89d
NN
6475# Figure out what language subdirectories are present.
6476# Look if the user specified --enable-languages="..."; if not, use
6477# the environment variable $LANGUAGES if defined. $LANGUAGES might
6478# go away some day.
6479# NB: embedded tabs in this IF block -- do not untabify
6480if test -d ${srcdir}/gcc; then
6481 if test x"${enable_languages+set}" != xset; then
6482 if test x"${LANGUAGES+set}" = xset; then
6483 enable_languages="${LANGUAGES}"
136bb21f 6484 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9e07f89d 6485 else
bf41f30d 6486 enable_languages=default
9e07f89d
NN
6487 fi
6488 else
6489 if test x"${enable_languages}" = x ||
6490 test x"${enable_languages}" = xyes;
6491 then
136bb21f 6492 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9e07f89d
NN
6493 exit 1
6494 fi
6495 fi
6496 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6497
096f7d00
DE
6498 # 'f95' is the old name for the 'fortran' language. We issue a warning
6499 # and make the substitution.
6500 case ,${enable_languages}, in
6501 *,f95,*)
136bb21f 6502 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
096f7d00
DE
6503 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6504 ;;
6505 esac
6506
7ec59b9e
L
6507 # If bootstrapping, C++ must be enabled.
6508 case ",$enable_languages,:$enable_bootstrap" in
6509 *,c++,*:*) ;;
6510 *:yes)
ffdd6afc
ILT
6511 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6512 enable_languages="${enable_languages},c++"
6513 else
d0ac1c44 6514 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6515 fi
6516 ;;
6517 esac
6518
9e07f89d
NN
6519 # First scan to see if an enabled language requires some other language.
6520 # We assume that a given config-lang.in will list all the language
6521 # front ends it requires, even if some are required indirectly.
6522 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6523 case ${lang_frag} in
6524 ..) ;;
6525 # The odd quoting in the next line works around
6526 # an apparent bug in bash 1.12 on linux.
6527 ${srcdir}/gcc/[*]/config-lang.in) ;;
6528 *)
e552509b
ILT
6529 # From the config-lang.in, get $language, $lang_requires, and
6530 # $lang_requires_boot_languages.
9e07f89d
NN
6531 language=
6532 lang_requires=
e552509b 6533 lang_requires_boot_languages=
bf41f30d
NC
6534 # set srcdir during sourcing lang_frag to the gcc dir.
6535 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6536 # polutes this shell
6537 saved_srcdir=${srcdir}
6538 srcdir=${srcdir}/gcc . ${lang_frag}
6539 srcdir=${saved_srcdir}
e552509b 6540 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6541 case ,${enable_languages}, in
6542 *,$other,*) ;;
bf41f30d 6543 *,default,*) ;;
9e07f89d
NN
6544 *,all,*) ;;
6545 *,$language,*)
6546 echo " \`$other' language required by \`$language'; enabling" 1>&2
6547 enable_languages="${enable_languages},${other}"
6548 ;;
6549 esac
6550 done
e552509b
ILT
6551 for other in ${lang_requires_boot_languages} ; do
6552 if test "$other" != "c"; then
6553 case ,${enable_stage1_languages}, in
6554 *,$other,*) ;;
bf41f30d 6555 *,default,*) ;;
e552509b
ILT
6556 *,all,*) ;;
6557 *)
6558 case ,${enable_languages}, in
6559 *,$language,*)
6560 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6561 enable_stage1_languages="$enable_stage1_languages,${other}"
6562 ;;
6563 esac
6564 ;;
6565 esac
6566 fi
6567 done
9e07f89d
NN
6568 ;;
6569 esac
6570 done
6571
9b134994 6572 new_enable_languages=,c,
700d40ca
ILT
6573
6574 # If LTO is enabled, add the LTO front end.
700d40ca 6575 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6576 case ,${enable_languages}, in
6577 *,lto,*) ;;
6578 *) enable_languages="${enable_languages},lto" ;;
6579 esac
a8eb3f0a 6580 if test "${build_lto_plugin}" = "yes" ; then
700d40ca 6581 configdirs="$configdirs lto-plugin"
700d40ca
ILT
6582 fi
6583 fi
6584
1b6c0831
L
6585 # If we're building an offloading compiler, add the LTO front end.
6586 if test x"$enable_as_accelerator_for" != x ; then
6587 case ,${enable_languages}, in
6588 *,lto,*) ;;
6589 *) enable_languages="${enable_languages},lto" ;;
6590 esac
6591 fi
700d40ca 6592
bf41f30d 6593 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6594 potential_languages=,c,
9e07f89d 6595
9e1a94f4
ILT
6596 enabled_target_libs=
6597 disabled_target_libs=
6598
9e07f89d
NN
6599 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6600 case ${lang_frag} in
6601 ..) ;;
6602 # The odd quoting in the next line works around
6603 # an apparent bug in bash 1.12 on linux.
6604 ${srcdir}/gcc/[*]/config-lang.in) ;;
6605 *)
c6b750e1 6606 # From the config-lang.in, get $language, $target_libs,
1d39f329 6607 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6608 language=
6609 target_libs=
6610 lang_dirs=
64ce424c 6611 subdir_requires=
9b134994
PB
6612 boot_language=no
6613 build_by_default=yes
bf41f30d
NC
6614 # set srcdir during sourcing. See above about save & restore
6615 saved_srcdir=${srcdir}
6616 srcdir=${srcdir}/gcc . ${lang_frag}
6617 srcdir=${saved_srcdir}
9b134994
PB
6618 if test x${language} = x; then
6619 echo "${lang_frag} doesn't set \$language." 1>&2
6620 exit 1
6621 fi
6622
ffdd6afc 6623 if test "$language" = "c++"; then
7ec59b9e 6624 boot_language=yes
e8a5fa9c
RW
6625 fi
6626
8e71395b 6627 add_this_lang=no
bf41f30d
NC
6628 # C is always enabled, so no need to add it again
6629 if test "$language" != "c"; then
6630 case ,${enable_languages}, in
6631 *,${language},*)
6632 # Language was explicitly selected; include it
7ec59b9e 6633 add_this_lang=yes
bf41f30d
NC
6634 ;;
6635 *,all,*)
6636 # All languages are enabled
6637 add_this_lang=all
6638 ;;
6639 *,default,*)
6640 # 'default' was selected, select it if it is a default language
8e71395b 6641 add_this_lang=${build_by_default}
bf41f30d
NC
6642 ;;
6643 esac
6644 fi
4b1cb4fe 6645
64ce424c 6646 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6647 for i in $subdir_requires; do
3d3adb43 6648 test -f "$srcdir/gcc/$i/config-lang.in" && continue
bf41f30d
NC
6649 case ${add_this_lang} in
6650 yes)
64ce424c 6651 # Specifically requested language; tell them.
d0ac1c44 6652 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c 6653 ;;
bf41f30d
NC
6654 all)
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6656$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6657 add_this_lang=unsupported
6658 ;;
64ce424c
PB
6659 *)
6660 # Silently disable.
9b134994 6661 add_this_lang=unsupported
64ce424c
PB
6662 ;;
6663 esac
6664 done
6665
9b134994 6666 # Disable Ada if no preexisting GNAT is available.
bf41f30d
NC
6667 case ${add_this_lang}:${language}:${have_gnat} in
6668 yes:ada:no)
9b134994 6669 # Specifically requested language; tell them.
d0ac1c44 6670 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9b134994 6671 ;;
bf41f30d
NC
6672 all:ada:no)
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6674$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6675 add_this_lang=unsupported
6676 ;;
9b134994
PB
6677 *:ada:no)
6678 # Silently disable.
6679 add_this_lang=unsupported
6680 ;;
6681 esac
6682
bf41f30d
NC
6683 # Disable jit if -enable-host-shared not specified
6684 case ${add_this_lang}:${language}:${host_shared} in
6685 yes:jit:no)
6686 # PR jit/64780: explicitly specify --enable-host-shared
d0ac1c44 6687 as_fn_error $? "
bf41f30d
NC
6688Enabling language \"jit\" requires --enable-host-shared.
6689
6690--enable-host-shared typically slows the rest of the compiler down by
6691a few %, so you must explicitly enable it.
6692
6693If you want to build both the jit and the regular compiler, it is often
6694best to do this via two separate configure/builds, in separate
6695directories, to avoid imposing the performance cost of
6696--enable-host-shared on the regular compiler." "$LINENO" 5
6697 ;;
6698 all:jit:no)
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6700$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6701 add_this_lang=unsupported
6702 ;;
6703 *:jit:no)
6704 # Silently disable.
6705 add_this_lang=unsupported
6706 ;;
6707 esac
6708
6709 # Disable a language that is unsupported by the target.
6710 case "${add_this_lang}: $unsupported_languages " in
6711 no:*) ;;
6712 unsupported:*) ;;
6713 *:*" $language "*)
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6715$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9b134994 6716 add_this_lang=unsupported
59f7ec45
HPN
6717 ;;
6718 esac
6719
4b1cb4fe 6720 case $add_this_lang in
9b134994 6721 unsupported)
9e07f89d 6722 # Remove language-dependent dirs.
9e1a94f4
ILT
6723 disabled_target_libs="$disabled_target_libs $target_libs"
6724 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6725 ;;
9b134994
PB
6726 no)
6727 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6728 disabled_target_libs="$disabled_target_libs $target_libs"
6729 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6730 potential_languages="${potential_languages}${language},"
6731 ;;
bf41f30d 6732 all|yes)
9b134994
PB
6733 new_enable_languages="${new_enable_languages}${language},"
6734 potential_languages="${potential_languages}${language},"
1d39f329 6735 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6736 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6737 case "${boot_language}:,$enable_stage1_languages," in
6738 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6739 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6740 case ",$stage1_languages," in
6741 *,$language,* | ,yes, | ,all,) ;;
6742 *) stage1_languages="${stage1_languages}${language}," ;;
6743 esac
e8a5fa9c
RW
6744 # We need to bootstrap any supporting libraries.
6745 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6746 ;;
6747 esac
6748 ;;
9e07f89d
NN
6749 esac
6750 ;;
6751 esac
6752 done
6753
9e1a94f4
ILT
6754 # Add target libraries which are only needed for disabled languages
6755 # to noconfigdirs.
6756 if test -n "$disabled_target_libs"; then
6757 for dir in $disabled_target_libs; do
6758 case " $enabled_target_libs " in
6759 *" ${dir} "*) ;;
6760 *) noconfigdirs="$noconfigdirs $dir" ;;
6761 esac
6762 done
6763 fi
6764
81ecdfbb
RW
6765 # Check whether --enable-stage1-languages was given.
6766if test "${enable_stage1_languages+set}" = set; then :
6767 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6768 ,no,|,,)
6769 # Set it to something that will have no effect in the loop below
6770 enable_stage1_languages=c ;;
6771 ,yes,)
6772 enable_stage1_languages=`echo $new_enable_languages | \
6773 sed -e "s/^,//" -e "s/,$//" ` ;;
6774 *,all,*)
6775 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6776 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6777 esac
6778
6779 # Add "good" languages from enable_stage1_languages to stage1_languages,
6780 # while "bad" languages go in missing_languages. Leave no duplicates.
6781 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6782 case $potential_languages in
6783 *,$i,*)
6784 case $stage1_languages in
6785 *,$i,*) ;;
6786 *) stage1_languages="$stage1_languages$i," ;;
6787 esac ;;
6788 *)
6789 case $missing_languages in
6790 *,$i,*) ;;
6791 *) missing_languages="$missing_languages$i," ;;
6792 esac ;;
6793 esac
6794 done
81ecdfbb
RW
6795fi
6796
9b134994
PB
6797
6798 # Remove leading/trailing commas that were added for simplicity
6799 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6800 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6801 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6802 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6803
9e07f89d 6804 if test "x$missing_languages" != x; then
d0ac1c44 6805 as_fn_error $? "
27258dd4 6806The following requested languages could not be built: ${missing_languages}
81ecdfbb 6807Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6808 fi
9e07f89d
NN
6809 if test "x$new_enable_languages" != "x$enable_languages"; then
6810 echo The following languages will be built: ${new_enable_languages}
9b134994 6811 enable_languages="$new_enable_languages"
9e07f89d 6812 fi
9b134994 6813
c6b750e1 6814
81ec575a 6815 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6816fi
6817
a6df5a19
PB
6818# Handle --disable-<component> generically.
6819for dir in $configdirs $build_configdirs $target_configdirs ; do
6820 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6821 varname=`echo $dirname | sed -e s/+/_/g`
6822 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6823 noconfigdirs="$noconfigdirs $dir"
6824 fi
6825done
6826
4f0ef2d8 6827# Check for Boehm's garbage collector
81ecdfbb
RW
6828# Check whether --enable-objc-gc was given.
6829if test "${enable_objc_gc+set}" = set; then :
05a13254 6830 enableval=$enable_objc_gc;
81ecdfbb
RW
6831fi
6832
4f0ef2d8 6833
05a13254
NC
6834# Check whether --with-target-bdw-gc was given.
6835if test "${with_target_bdw_gc+set}" = set; then :
6836 withval=$with_target_bdw_gc;
6837fi
6838
6839
6840# Check whether --with-target-bdw-gc-include was given.
6841if test "${with_target_bdw_gc_include+set}" = set; then :
6842 withval=$with_target_bdw_gc_include;
6843fi
6844
6845
6846# Check whether --with-target-bdw-gc-lib was given.
6847if test "${with_target_bdw_gc_lib+set}" = set; then :
6848 withval=$with_target_bdw_gc_lib;
6849fi
6850
6851
6852case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6854$as_echo_n "checking for bdw garbage collector... " >&6; }
6855 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6857$as_echo "using bdw-gc in default locations" >&6; }
6858 else
6859 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
d0ac1c44 6860 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
05a13254 6861 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
d0ac1c44 6862 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
05a13254
NC
6863 else
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6865$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
d42c4017 6866 fi
05a13254 6867 fi
4f0ef2d8
CD
6868esac
6869
bf41f30d 6870# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
7ec59b9e 6871case ,${enable_languages}, in
1b6c0831 6872 *,c++,*)
bf41f30d 6873 # Disable libitm, libsanitizer if we're not building libstdc++
1b6c0831
L
6874 case "${noconfigdirs}" in
6875 *target-libstdc++-v3*)
bf41f30d 6876 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1b6c0831
L
6877 ;;
6878 *) ;;
6879 esac
6880 ;;
7ec59b9e 6881 *)
bf41f30d 6882 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
6883 ;;
6884esac
6885
d33228c9
AB
6886# If gcc/ is not in the source tree then we'll not be building a
6887# target compiler, assume in that case we don't want to build any
6888# target libraries or tools.
6889#
6890# This was added primarily for the benefit for binutils-gdb who reuse
6891# this configure script, but don't always have target tools available.
6892if test ! -d ${srcdir}/gcc; then
6893 skipdirs="${skipdirs} ${target_configdirs}"
6894fi
6895
caeba88f
AL
6896# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6897# $build_configdirs and $target_configdirs.
9e07f89d
NN
6898# If we have the source for $noconfigdirs entries, add them to $notsupp.
6899
6900notsupp=""
6901for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6902 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6903 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6904 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6905 if test -r $srcdir/$dirname/configure ; then
6906 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6907 true
6908 else
6909 notsupp="$notsupp $dir"
6910 fi
6911 fi
6912 fi
caeba88f
AL
6913 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6914 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6915 if test -r $srcdir/$dirname/configure ; then
6916 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6917 true
6918 else
6919 notsupp="$notsupp $dir"
6920 fi
6921 fi
6922 fi
9e07f89d
NN
6923 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6924 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6925 if test -r $srcdir/$dirname/configure ; then
6926 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6927 true
6928 else
6929 notsupp="$notsupp $dir"
6930 fi
6931 fi
6932 fi
6933done
6934
9e07f89d
NN
6935# Quietly strip out all directories which aren't configurable in this tree.
6936# This relies on all configurable subdirectories being autoconfiscated, which
6937# is now the case.
6a9cf61e
PB
6938build_configdirs_all="$build_configdirs"
6939build_configdirs=
6940for i in ${build_configdirs_all} ; do
c6b750e1 6941 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6942 if test -f ${srcdir}/$j/configure ; then
6943 build_configdirs="${build_configdirs} $i"
6944 fi
6945done
6946
9e07f89d
NN
6947configdirs_all="$configdirs"
6948configdirs=
6949for i in ${configdirs_all} ; do
6950 if test -f ${srcdir}/$i/configure ; then
6951 configdirs="${configdirs} $i"
6952 fi
6953done
6a9cf61e 6954
9e07f89d
NN
6955target_configdirs_all="$target_configdirs"
6956target_configdirs=
6957for i in ${target_configdirs_all} ; do
c6b750e1 6958 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6959 if test -f ${srcdir}/$j/configure ; then
6960 target_configdirs="${target_configdirs} $i"
6961 fi
6962done
6963
1b6c0831
L
6964# libiberty-linker-plugin is special: it doesn't have its own source directory,
6965# so we have to add it after the preceding checks.
6966if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6967then
6968 case " $configdirs " in
6969 *" libiberty "*)
6970 # If we can build libiberty, we can also build libiberty-linker-plugin.
6971 configdirs="$configdirs libiberty-linker-plugin"
6972 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6973 --with-libiberty=../libiberty-linker-plugin";;
6974 *)
d0ac1c44 6975 as_fn_error $? "libiberty missing" "$LINENO" 5;;
1b6c0831
L
6976 esac
6977fi
6978
6979# Sometimes we have special requirements for the host libiberty.
6980extra_host_libiberty_configure_flags=
6981case " $configdirs " in
a08bdb15 6982 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
1b6c0831
L
6983 # When these are to be built as shared libraries, the same applies to
6984 # libiberty.
6985 extra_host_libiberty_configure_flags=--enable-shared
6986 ;;
95127faf
TV
6987esac
6988
6989
6990# Sometimes we have special requirements for the host zlib.
6991extra_host_zlib_configure_flags=
6992case " $configdirs " in
e81d5d05
L
6993 *" bfd "*)
6994 # When bfd is to be built as a shared library, the same applies to
6995 # zlib.
6996 if test "$enable_shared" = "yes"; then
6997 extra_host_zlib_configure_flags=--enable-host-shared
6998 fi
6999 ;;
1b6c0831
L
7000esac
7001
7002
9e07f89d
NN
7003# Produce a warning message for the subdirs we can't configure.
7004# This isn't especially interesting in the Cygnus tree, but in the individual
7005# FSF releases, it's important to let people know when their machine isn't
7006# supported by the one or two programs in a package.
7007
7008if test -n "${notsupp}" && test -z "${norecursion}" ; then
7009 # If $appdirs is non-empty, at least one of those directories must still
7010 # be configured, or we error out. (E.g., if the gas release supports a
7011 # specified target in some subdirs but not the gas subdir, we shouldn't
7012 # pretend that all is well.)
7013 if test -n "$appdirs" ; then
7014 for dir in $appdirs ; do
7015 if test -r $dir/Makefile.in ; then
7016 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7017 appdirs=""
7018 break
7019 fi
6a9cf61e 7020 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
7021 appdirs=""
7022 break
7023 fi
7024 fi
7025 done
7026 if test -n "$appdirs" ; then
7027 echo "*** This configuration is not supported by this package." 1>&2
7028 exit 1
7029 fi
7030 fi
7031 # Okay, some application will build, or we don't care to check. Still
7032 # notify of subdirs not getting built.
7033 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
7034 echo " ${notsupp}" 1>&2
7035 echo " (Any other directories should still work fine.)" 1>&2
7036fi
7037
7038case "$host" in
7039 *msdosdjgpp*)
7040 enable_gdbtk=no ;;
7041esac
7042
18f6b6ee
PB
7043# To find our prefix, in gcc_cv_tool_prefix.
7044
7045# The user is always right.
7046if test "${PATH_SEPARATOR+set}" != set; then
7047 echo "#! /bin/sh" >conf$$.sh
7048 echo "exit 0" >>conf$$.sh
7049 chmod +x conf$$.sh
7050 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7051 PATH_SEPARATOR=';'
7052 else
7053 PATH_SEPARATOR=:
7054 fi
7055 rm -f conf$$.sh
7056fi
7057
7058
bf41f30d
NC
7059 get_gcc_base_ver="cat"
7060
7061# Check whether --with-gcc-major-version-only was given.
7062if test "${with_gcc_major_version_only+set}" = set; then :
7063 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
37f980dc 7064 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
bf41f30d
NC
7065 fi
7066
7067fi
7068
7069
7070
7071
7072
18f6b6ee
PB
7073
7074if test "x$exec_prefix" = xNONE; then
7075 if test "x$prefix" = xNONE; then
7076 gcc_cv_tool_prefix=$ac_default_prefix
7077 else
7078 gcc_cv_tool_prefix=$prefix
7079 fi
7080else
7081 gcc_cv_tool_prefix=$exec_prefix
7082fi
7083
7084# If there is no compiler in the tree, use the PATH only. In any
7085# case, if there is no compiler in the tree nobody should use
7086# AS_FOR_TARGET and LD_FOR_TARGET.
7087if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
bf41f30d
NC
7088 if test x$with_gcc_major_version_only = xyes ; then
7089 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
7090 else
7091 gcc_version=`cat $srcdir/gcc/BASE-VER`
7092 fi
18f6b6ee
PB
7093 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7094 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7095 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7096 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7097 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7098 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7099else
7100 gcc_cv_tool_dirs=
7101fi
7102
7103if test x$build = x$target && test -n "$md_exec_prefix"; then
7104 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7105fi
7106
7107
7108
9e07f89d
NN
7109copy_dirs=
7110
c6b750e1 7111
81ecdfbb
RW
7112# Check whether --with-build-sysroot was given.
7113if test "${with_build_sysroot+set}" = set; then :
7114 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
7115 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7116 fi
7117else
7118 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 7119fi
a19b6204
MM
7120
7121
8a6ee3ab 7122
81ecdfbb
RW
7123
7124# Check whether --with-debug-prefix-map was given.
7125if test "${with_debug_prefix_map+set}" = set; then :
7126 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
7127 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7128 for debug_map in $withval; do
7129 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7130 done
7131 fi
7132else
7133 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
7134fi
7135
8a6ee3ab
JM
7136
7137
7f6ef0c0
PB
7138# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7139# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
7140# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7141# We want to ensure that TARGET libraries (which we know are built with
7142# gcc) are built with "-O2 -g", so include those options when setting
7143# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7144if test "x$CFLAGS_FOR_TARGET" = x; then
1b6c0831
L
7145 if test "x${is_cross_compiler}" = xyes; then
7146 CFLAGS_FOR_TARGET="-g -O2"
7147 else
7148 CFLAGS_FOR_TARGET=$CFLAGS
7149 case " $CFLAGS " in
7150 *" -O2 "*) ;;
7151 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
7152 esac
7153 case " $CFLAGS " in
7154 *" -g "* | *" -g3 "*) ;;
7155 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
7156 esac
7157 fi
7f6ef0c0
PB
7158fi
7159
7160
7161if test "x$CXXFLAGS_FOR_TARGET" = x; then
1b6c0831
L
7162 if test "x${is_cross_compiler}" = xyes; then
7163 CXXFLAGS_FOR_TARGET="-g -O2"
7164 else
7165 CXXFLAGS_FOR_TARGET=$CXXFLAGS
7166 case " $CXXFLAGS " in
7167 *" -O2 "*) ;;
7168 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7169 esac
7170 case " $CXXFLAGS " in
7171 *" -g "* | *" -g3 "*) ;;
7172 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7173 esac
7174 fi
7f6ef0c0
PB
7175fi
7176
7177
91c1f14c
DK
7178
7179
9e07f89d
NN
7180# Handle --with-headers=XXX. If the value is not "yes", the contents of
7181# the named directory are copied to $(tooldir)/sys-include.
7182if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7183 if test x${is_cross_compiler} = xno ; then
7184 echo 1>&2 '***' --with-headers is only supported when cross compiling
7185 exit 1
7186 fi
7187 if test x"${with_headers}" != xyes ; then
18f6b6ee 7188 x=${gcc_cv_tool_prefix}
c6b750e1 7189 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
7190 fi
7191fi
7192
7193# Handle --with-libs=XXX. If the value is not "yes", the contents of
7194# the name directories are copied to $(tooldir)/lib. Multiple directories
7195# are permitted.
7196if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7197 if test x${is_cross_compiler} = xno ; then
7198 echo 1>&2 '***' --with-libs is only supported when cross compiling
7199 exit 1
7200 fi
7201 if test x"${with_libs}" != xyes ; then
7202 # Copy the libraries in reverse order, so that files in the first named
7203 # library override files in subsequent libraries.
18f6b6ee 7204 x=${gcc_cv_tool_prefix}
9e07f89d 7205 for l in ${with_libs}; do
c6b750e1 7206 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
7207 done
7208 fi
7209fi
7210
700d40ca 7211# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
7212#
7213# This is done by determining whether or not the appropriate directory
7214# is available, and by checking whether or not specific configurations
7215# have requested that this magic not happen.
c6b750e1
DJ
7216#
7217# The command line options always override the explicit settings in
136bb21f 7218# configure.ac, and the settings in configure.ac override this magic.
2429c060 7219#
c6b750e1 7220# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 7221# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
7222# --without-gnu-ld options for the configure script. Similarly, if
7223# the default is to use the included zlib and you don't want to do that,
7224# you should use the --with-system-zlib option for the configure script.
2429c060
PB
7225
7226if test x${use_gnu_as} = x &&
7227 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7228 with_gnu_as=yes
7229 extra_host_args="$extra_host_args --with-gnu-as"
7230fi
7231
7232if test x${use_gnu_ld} = x &&
93f9b408 7233 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
7234 with_gnu_ld=yes
7235 extra_host_args="$extra_host_args --with-gnu-ld"
7236fi
7237
700d40ca
ILT
7238if test x${use_included_zlib} = x &&
7239 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7240 :
7241else
7242 with_system_zlib=yes
7243 extra_host_args="$extra_host_args --with-system-zlib"
7244fi
7245
2429c060
PB
7246# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7247# can detect this case.
7248
7249if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7250 with_newlib=yes
7251 extra_host_args="$extra_host_args --with-newlib"
7252fi
7253
9e07f89d
NN
7254# Handle ${copy_dirs}
7255set fnord ${copy_dirs}
7256shift
7257while test $# != 0 ; do
7258 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7259 :
7260 else
7261 echo Copying $1 to $2
7262
7263 # Use the install script to create the directory and all required
7264 # parent directories.
7265 if test -d $2 ; then
7266 :
7267 else
7268 echo >config.temp
7269 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7270 fi
7271
7272 # Copy the directory, assuming we have tar.
7273 # FIXME: Should we use B in the second tar? Not all systems support it.
7274 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7275
7276 # It is the responsibility of the user to correctly adjust all
7277 # symlinks. If somebody can figure out how to handle them correctly
7278 # here, feel free to add the code.
7279
7280 echo $1 > $2/COPIED
7281 fi
7282 shift; shift
7283done
7284
2429c060
PB
7285# Determine a target-dependent exec_prefix that the installed
7286# gcc will search in. Keep this list sorted by triplet, with
7287# the *-*-osname triplets last.
7288md_exec_prefix=
7289case "${target}" in
521ec477 7290 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
7291 md_exec_prefix=/dev/env/DJDIR/bin
7292 ;;
2429c060 7293 *-*-hpux* | \
2429c060 7294 *-*-nto-qnx* | \
1f111696 7295 *-*-solaris2*)
2429c060
PB
7296 md_exec_prefix=/usr/ccs/bin
7297 ;;
7298esac
7299
a0da8069
NN
7300extra_arflags_for_target=
7301extra_nmflags_for_target=
7302extra_ranlibflags_for_target=
7303target_makefile_frag=/dev/null
7304case "${target}" in
77d7106f
AM
7305 spu-*-*)
7306 target_makefile_frag="config/mt-spu"
7307 ;;
a9d58c06 7308 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
7309 target_makefile_frag="config/mt-sde"
7310 ;;
f3b1e08e
RS
7311 mipsisa*-*-elfoabi*)
7312 target_makefile_frag="config/mt-mips-elfoabi"
7313 ;;
e7c8859c
RS
7314 mips*-*-*linux* | mips*-*-gnu*)
7315 target_makefile_frag="config/mt-mips-gnu"
7316 ;;
d9e042ac
SL
7317 nios2-*-elf*)
7318 target_makefile_frag="config/mt-nios2-elf"
7319 ;;
bf41f30d
NC
7320 *-*-linux-android*)
7321 target_makefile_frag="config/mt-android"
7322 ;;
29383458 7323 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 7324 target_makefile_frag="config/mt-gnu"
a0da8069
NN
7325 ;;
7326 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 7327 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
7328 # commands to handle both 32-bit and 64-bit objects. These flags are
7329 # harmless if we're using GNU nm or ar.
7330 extra_arflags_for_target=" -X32_64"
7331 extra_nmflags_for_target=" -B -X32_64"
7332 ;;
a0da8069
NN
7333esac
7334
7335alphaieee_frag=/dev/null
7336case $target in
7337 alpha*-*-*)
7338 # This just makes sure to use the -mieee option to build target libs.
7339 # This should probably be set individually by each library.
7340 alphaieee_frag="config/mt-alphaieee"
7341 ;;
7342esac
7343
7344# If --enable-target-optspace always use -Os instead of -O2 to build
7345# the target libraries, similarly if it is not specified, use -Os
7346# on selected platforms.
7347ospace_frag=/dev/null
7348case "${enable_target_optspace}:${target}" in
7349 yes:*)
7350 ospace_frag="config/mt-ospace"
7351 ;;
7352 :d30v-*)
7353 ospace_frag="config/mt-d30v"
7354 ;;
16beab3d 7355 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
a0da8069
NN
7356 ospace_frag="config/mt-ospace"
7357 ;;
7358 no:* | :*)
7359 ;;
7360 *)
7361 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7362 ;;
7363esac
7364
a0da8069
NN
7365# Some systems (e.g., one of the i386-aix systems the gas testers are
7366# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 7367tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
7368build_tooldir=${tooldir}
7369
a0da8069
NN
7370# Create a .gdbinit file which runs the one in srcdir
7371# and tells GDB to look there for source files.
7372
7373if test -r ${srcdir}/.gdbinit ; then
7374 case ${srcdir} in
7375 .) ;;
7376 *) cat > ./.gdbinit <<EOF
7377# ${NO_EDIT}
7378dir ${srcdir}
7379dir .
7380source ${srcdir}/.gdbinit
7381EOF
7382 ;;
7383 esac
7384fi
7385
a0da8069
NN
7386# Make sure that the compiler is able to generate an executable. If it
7387# can't, we are probably in trouble. We don't care whether we can run the
7388# executable--we might be using a cross compiler--we only care whether it
7389# can be created. At this point the main configure script has set CC.
7390we_are_ok=no
7391echo "int main () { return 0; }" > conftest.c
7392${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7393if test $? = 0 ; then
7394 if test -s conftest || test -s conftest.exe ; then
7395 we_are_ok=yes
7396 fi
c6b750e1 7397fi
a0da8069
NN
7398case $we_are_ok in
7399 no)
7400 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7401 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7402 rm -f conftest*
7403 exit 1
7404 ;;
7405esac
7406rm -f conftest*
7407
3bbd2f8f 7408# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
7409case "${host}" in
7410 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 7411 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 7412 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
7413 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7414esac
7415
3bbd2f8f 7416# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7417# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7418# built executables to PATH.
3bbd2f8f
AL
7419if test "$RPATH_ENVVAR" = PATH; then
7420 GCC_SHLIB_SUBDIR=/shlib
7421else
7422 GCC_SHLIB_SUBDIR=
7423fi
7424
730af8ee 7425# Adjust the toplevel makefile according to whether bootstrap was selected.
7426case $enable_bootstrap in
7427 yes)
7428 bootstrap_suffix=bootstrap
7429 BUILD_CONFIG=bootstrap-debug
7430 ;;
7431 no)
7432 bootstrap_suffix=no-bootstrap
7433 BUILD_CONFIG=
7434 ;;
7435esac
7436
7437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7438$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7439
7440
7441# Check whether --with-build-config was given.
7442if test "${with_build_config+set}" = set; then :
7443 withval=$with_build_config; case $with_build_config in
7444 yes) with_build_config= ;;
7445 no) with_build_config= BUILD_CONFIG= ;;
7446 esac
7447fi
7448
7449
7450if test "x${with_build_config}" != x; then
7451 BUILD_CONFIG=$with_build_config
7452else
7453 case $BUILD_CONFIG in
7454 bootstrap-debug)
7455 if echo "int f (void) { return 0; }" > conftest.c &&
7456 ${CC} -c conftest.c &&
7457 mv conftest.o conftest.o.g0 &&
7458 ${CC} -c -g conftest.c &&
7459 mv conftest.o conftest.o.g &&
7460 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7461 :
7462 else
7463 BUILD_CONFIG=
7464 fi
7465 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7466 ;;
7467 esac
7468fi
7469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7470$as_echo "$BUILD_CONFIG" >&6; }
7471
7472
7473# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7475$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7476# Check whether --enable-vtable-verify was given.
7477if test "${enable_vtable_verify+set}" = set; then :
7478 enableval=$enable_vtable_verify; case "$enableval" in
7479 yes) enable_vtable_verify=yes ;;
7480 no) enable_vtable_verify=no ;;
7481 *) enable_vtable_verify=no;;
7482 esac
7483else
7484 enable_vtable_verify=no
7485fi
7486
7487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7488$as_echo "$enable_vtable_verify" >&6; }
7489
a0da8069
NN
7490# Record target_configdirs and the configure arguments for target and
7491# build configuration in Makefile.
7492target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7493build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 7494bootstrap_fixincludes=no
a0da8069 7495
2aa2364a
JR
7496# If we are building libgomp, bootstrap it.
7497if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7498 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7499fi
7500
730af8ee 7501# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7502# or bootstrap-ubsan, bootstrap it.
7503if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7504 case "$BUILD_CONFIG" in
7505 *bootstrap-asan* | *bootstrap-ubsan* )
7506 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 7507 bootstrap_fixincludes=yes
730af8ee 7508 ;;
7509 esac
5eb08693
L
7510fi
7511
730af8ee 7512# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7513if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7514 test "$enable_vtable_verify" != no; then
95e43135
JBG
7515 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7516fi
7517
a0da8069
NN
7518# Determine whether gdb needs tk/tcl or not.
7519# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7520# and in that case we want gdb to be built without tk. Ugh!
7521# In fact I believe gdb is the *only* package directly dependent on tk,
7522# so we should be able to put the 'maybe's in unconditionally and
7523# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7524# 100% sure that that's safe though.
c180f501 7525
675c6968 7526gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7527case "$enable_gdbtk" in
7528 no)
7529 GDB_TK="" ;;
c180f501
AC
7530 yes)
7531 GDB_TK="${gdb_tk}" ;;
a0da8069 7532 *)
c180f501
AC
7533 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7534 # distro. Eventually someone will fix this and move Insight, nee
7535 # gdbtk to a separate directory.
7536 if test -d ${srcdir}/gdb/gdbtk ; then
7537 GDB_TK="${gdb_tk}"
7538 else
7539 GDB_TK=""
7540 fi
7541 ;;
a0da8069 7542esac
907be67c
DJ
7543CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7544INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7545
b6f9caee
TT
7546# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7547# else does, only include them if one of these is built. The Makefile
7548# provides the ordering, so it's enough here to add to the list.
7549case " ${configdirs} " in
7550 *\ gdb\ *)
7551 configdirs="${configdirs} gnulib gdbsupport"
7552 ;;
7553 *\ gdbserver\ *)
7554 configdirs="${configdirs} gnulib gdbsupport"
7555 ;;
5c9e84c2
MF
7556 *\ sim\ *)
7557 configdirs="${configdirs} gnulib"
7558 ;;
b6f9caee 7559esac
73cc7272 7560
6bd3dfaa 7561# Strip out unwanted targets.
dd12c3a8
NN
7562
7563# While at that, we remove Makefiles if we were started for recursive
7564# configuration, so that the top-level Makefile reconfigures them,
7565# like we used to do when configure itself was recursive.
dd12c3a8 7566
06a51eac
RW
7567# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7568# but now we're fixing up the Makefile ourselves with the additional
7569# commands passed to AC_CONFIG_FILES. Use separate variables
7570# extrasub-{build,host,target} not because there is any reason to split
7571# the substitutions up that way, but only to remain below the limit of
7572# 99 commands in a script, for HP-UX sed.
4119873a
AO
7573
7574# Do not nest @if/@endif or @unless/@endunless pairs, because
7575# configure will not warn you at all.
dd12c3a8 7576
16b1ad29
RW
7577case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7578 yes:yes:*\ gold\ *:*,c++,*) ;;
7579 yes:yes:*\ gold\ *:*)
d0ac1c44 7580 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
16b1ad29
RW
7581 ;;
7582esac
7583
06a51eac 7584extrasub_build=
6a9cf61e 7585for module in ${build_configdirs} ; do
498d4a71
CF
7586 if test -z "${no_recursion}" \
7587 && test -f ${build_subdir}/${module}/Makefile; then
7588 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7589 rm -f ${build_subdir}/${module}/Makefile
7590 fi
06a51eac 7591 extrasub_build="$extrasub_build
498d4a71
CF
7592/^@if build-$module\$/d
7593/^@endif build-$module\$/d
4119873a 7594/^@unless build-$module\$/,/^@endunless build-$module\$/d
498d4a71 7595/^@if build-$module-$bootstrap_suffix\$/d
4119873a
AO
7596/^@endif build-$module-$bootstrap_suffix\$/d
7597/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
498d4a71 7598done
06a51eac 7599extrasub_host=
498d4a71 7600for module in ${configdirs} ; do
80911fe1 7601 if test -z "${no_recursion}"; then
8cf39b1b 7602 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7603 if test -f ${file}; then
7604 echo 1>&2 "*** removing ${file} to force reconfigure"
7605 rm -f ${file}
7606 fi
7607 done
498d4a71 7608 fi
201f096f 7609 case ${module},${bootstrap_fixincludes} in
7610 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7611 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7612 esac
06a51eac 7613 extrasub_host="$extrasub_host
498d4a71
CF
7614/^@if $module\$/d
7615/^@endif $module\$/d
4119873a 7616/^@unless $module\$/,/^@endunless $module\$/d
201f096f 7617/^@if $module-$host_bootstrap_suffix\$/d
4119873a
AO
7618/^@endif $module-$host_bootstrap_suffix\$/d
7619/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
498d4a71 7620done
06a51eac 7621extrasub_target=
498d4a71
CF
7622for module in ${target_configdirs} ; do
7623 if test -z "${no_recursion}" \
7624 && test -f ${target_subdir}/${module}/Makefile; then
7625 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7626 rm -f ${target_subdir}/${module}/Makefile
7627 fi
e8a5fa9c
RW
7628
7629 # We only bootstrap target libraries listed in bootstrap_target_libs.
7630 case $bootstrap_target_libs in
7631 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7632 *) target_bootstrap_suffix=no-bootstrap ;;
7633 esac
7634
06a51eac 7635 extrasub_target="$extrasub_target
498d4a71
CF
7636/^@if target-$module\$/d
7637/^@endif target-$module\$/d
4119873a 7638/^@unless target-$module\$/,/^@endunless target-$module\$/d
e8a5fa9c 7639/^@if target-$module-$target_bootstrap_suffix\$/d
4119873a
AO
7640/^@endif target-$module-$target_bootstrap_suffix\$/d
7641/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7642done
7643
06a51eac
RW
7644# Do the final fixup along with target modules.
7645extrasub_target="$extrasub_target
4119873a
AO
7646/^@if /,/^@endif /d
7647/^@unless /d
7648/^@endunless /d"
a0da8069 7649
af019bfd
L
7650if test "$enable_pgo_build" != "no"; then
7651 extrasub_build="$extrasub_build
7652/^@if pgo-build\$/d
7653/^@endif pgo-build\$/d"
7654fi
7655
a0da8069
NN
7656# Create the serialization dependencies. This uses a temporary file.
7657
81ecdfbb
RW
7658# Check whether --enable-serial-configure was given.
7659if test "${enable_serial_configure+set}" = set; then :
7660 enableval=$enable_serial_configure;
7661fi
e6bfb94a
AO
7662
7663
1047cb91
DD
7664case ${enable_serial_configure} in
7665 yes)
7666 enable_serial_build_configure=yes
7667 enable_serial_host_configure=yes
7668 enable_serial_target_configure=yes
7669 ;;
7670esac
7671
a0da8069
NN
7672# These force 'configure's to be done one at a time, to avoid problems
7673# with contention over a shared config.cache.
7674rm -f serdep.tmp
e6bfb94a 7675echo '# serdep.tmp' > serdep.tmp
a0da8069 7676olditem=
1047cb91 7677test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7678for item in ${build_configdirs} ; do
7679 case ${olditem} in
7680 "") ;;
e6bfb94a 7681 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7682 esac
7683 olditem=${item}
7684done
7685olditem=
1047cb91 7686test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7687for item in ${configdirs} ; do
7688 case ${olditem} in
7689 "") ;;
e6bfb94a 7690 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7691 esac
7692 olditem=${item}
7693done
7694olditem=
1047cb91 7695test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7696for item in ${target_configdirs} ; do
7697 case ${olditem} in
7698 "") ;;
e6bfb94a 7699 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7700 esac
7701 olditem=${item}
7702done
7703serialization_dependencies=serdep.tmp
7704
7705
e6bfb94a 7706# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7707# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7708# might not want to pass down to subconfigures. The exception being
7709# --cache-file=/dev/null, which is used to turn off the use of cache
7710# files altogether, and which should be passed on to subconfigures.
7711# Also strip program-prefix, program-suffix, and program-transform-name,
7712# so that we can pass down a consistent program-transform-name.
c6b750e1 7713baseargs=
65b4571a 7714tbaseargs=
c6b750e1
DJ
7715keep_next=no
7716skip_next=no
7717eval "set -- $ac_configure_args"
18f6b6ee
PB
7718for ac_arg
7719do
c6b750e1
DJ
7720 if test X"$skip_next" = X"yes"; then
7721 skip_next=no
7722 continue
7723 fi
7724 if test X"$keep_next" = X"yes"; then
7725 case $ac_arg in
7726 *\'*)
7727 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7728 esac
7729 baseargs="$baseargs '$ac_arg'"
65b4571a 7730 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7731 keep_next=no
7732 continue
7733 fi
7734
7735 # Handle separated arguments. Based on the logic generated by
7736 # autoconf 2.59.
7737 case $ac_arg in
7738 *=* | --config-cache | -C | -disable-* | --disable-* \
7739 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7740 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7741 | -with-* | --with-* | -without-* | --without-* | --x)
7742 separate_arg=no
7743 ;;
7744 -*)
7745 separate_arg=yes
7746 ;;
7747 *)
7748 separate_arg=no
7749 ;;
7750 esac
7751
65b4571a
AO
7752 skip_targ=no
7753 case $ac_arg in
7754
7755 --with-* | --without-*)
7756 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7757
7758 case $libopt in
7759 *[-_]include)
7760 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7761 ;;
7762 *[-_]lib)
7763 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7764 ;;
7765 *)
7766 lib=$libopt
7767 ;;
7768 esac
7769
7770
7771 case $lib in
1b6c0831 7772 mpc | mpfr | gmp | isl)
65b4571a
AO
7773 # If we're processing --with-$lib, --with-$lib-include or
7774 # --with-$lib-lib, for one of the libs above, and target is
7775 # different from host, don't pass the current argument to any
7776 # target library's configure.
7777 if test x$is_cross_compiler = xyes; then
7778 skip_targ=yes
7779 fi
7780 ;;
7781 esac
7782 ;;
7783 esac
7784
c6b750e1 7785 case "$ac_arg" in
30167e0a
NC
7786 --cache-file=/dev/null | \
7787 -cache-file=/dev/null )
7788 # Handled here to avoid the test to skip args below.
7789 baseargs="$baseargs '$ac_arg'"
65b4571a 7790 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7791 # Assert: $separate_arg should always be no.
7792 keep_next=$separate_arg
7793 ;;
c6b750e1
DJ
7794 --no*)
7795 continue
7796 ;;
7797 --c* | \
7798 --sr* | \
7799 --ho* | \
7800 --bu* | \
7801 --t* | \
7802 --program-* | \
7803 -cache_file* | \
7804 -srcdir* | \
7805 -host* | \
7806 -build* | \
7807 -target* | \
7808 -program-prefix* | \
7809 -program-suffix* | \
7810 -program-transform-name* )
7811 skip_next=$separate_arg
7812 continue
7813 ;;
7814 -*)
7815 # An option. Add it.
7816 case $ac_arg in
7817 *\'*)
7818 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7819 esac
7820 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7821 if test X"$skip_targ" = Xno; then
7822 tbaseargs="$tbaseargs '$ac_arg'"
7823 fi
c6b750e1
DJ
7824 keep_next=$separate_arg
7825 ;;
7826 *)
7827 # Either a variable assignment, or a nonopt (triplet). Don't
7828 # pass it down; let the Makefile handle this.
7829 continue
7830 ;;
7831 esac
7832done
7833# Remove the initial space we just introduced and, as these will be
7834# expanded by make, quote '$'.
7835baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7836
f27d4f92
DJ
7837# Add in --program-transform-name, after --program-prefix and
7838# --program-suffix have been applied to it. Autoconf has already
7839# doubled dollar signs and backslashes in program_transform_name; we want
7840# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7841# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7842# Also, because we want to override the logic in subdir configure scripts to
7843# choose program_transform_name, replace any s,x,x, with s,y,y,.
7844sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7845${program_transform_name}
7846EOF_SED
7847gcc_transform_name=`cat conftestsed.out`
7848rm -f conftestsed.out
7849baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7850tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7851if test "$silent" = yes; then
7852 baseargs="$baseargs --silent"
65b4571a 7853 tbaseargs="$tbaseargs --silent"
2444379b 7854fi
e5f2f7d9 7855
34a0f3cf 7856baseargs="$baseargs --disable-option-checking"
65b4571a 7857tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7858
e5f2f7d9
LM
7859if test "$enable_year2038" = no; then
7860 baseargs="$baseargs --disable-year2038"
7861 tbaseargs="$tbaseargs --disable-year2038"
7862fi
7863
4074d5f2
RW
7864# Record and document user additions to sub configure arguments.
7865
7866
7867
7868
a0da8069
NN
7869# For the build-side libraries, we just need to pretend we're native,
7870# and not use the same cache file. Multilibs are neither needed nor
1b6c0831
L
7871# desired. We can't even use the same cache file for all build-side
7872# libraries, as they're compiled differently; some with C, some with
7873# C++ or with different feature-enabling options.
7874build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
a0da8069
NN
7875
7876# For host modules, accept cache file option, or specification as blank.
7877case "${cache_file}" in
7878"") # empty
7879 cache_file_option="" ;;
7880/* | [A-Za-z]:[\\/]* ) # absolute path
7881 cache_file_option="--cache-file=${cache_file}" ;;
7882*) # relative path
7883 cache_file_option="--cache-file=../${cache_file}" ;;
7884esac
7885
82252c06
NN
7886# Host dirs don't like to share a cache file either, horribly enough.
7887# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7888host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7889
65b4571a 7890target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7891
7892# Passing a --with-cross-host argument lets the target libraries know
7893# whether they are being built with a cross-compiler or being built
7894# native. However, it would be better to use other mechanisms to make the
7895# sorts of decisions they want to make on this basis. Please consider
7896# this option to be deprecated. FIXME.
7897if test x${is_cross_compiler} = xyes ; then
c6b750e1 7898 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7899fi
7900
afc0578d 7901# Special user-friendly check for native x86_64-linux build, if
7902# multilib is not explicitly enabled.
7903case "$target:$have_compiler:$host:$target:$enable_multilib" in
7904 x86_64-*linux*:yes:$build:$build:)
ce6c656d 7905 # Make sure we have a development environment that handles 32-bit
afc0578d 7906 dev64=no
7907 echo "int main () { return 0; }" > conftest.c
7908 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7909 if test $? = 0 ; then
7910 if test -s conftest || test -s conftest.exe ; then
7911 dev64=yes
7912 fi
7913 fi
7914 rm -f conftest*
7915 if test x${dev64} != xyes ; then
d0ac1c44 7916 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 7917 fi
7918 ;;
7919esac
7920
938d2b74
RW
7921# Default to --enable-multilib.
7922if test x${enable_multilib} = x ; then
a0da8069 7923 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7924fi
a0da8069
NN
7925
7926# Pass --with-newlib if appropriate. Note that target_configdirs has
7927# changed from the earlier setting of with_newlib.
7928if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7929 target_configargs="--with-newlib ${target_configargs}"
7930fi
7931
95036d20
NN
7932# Different target subdirs use different values of certain variables
7933# (notably CXX). Worse, multilibs use *lots* of different values.
7934# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7935# it doesn't automatically accept command-line overrides of them.
7936# This means it's not safe for target subdirs to share a cache file,
7937# which is disgusting, but there you have it. Hopefully this can be
7938# fixed in future. It's still worthwhile to use a cache file for each
7939# directory. I think.
7940
ae380b45
MS
7941# Pass the appropriate --build, --host, --target and --cache-file arguments.
7942# We need to pass --target, as newer autoconf's requires consistency
7943# for target_alias and gcc doesn't manage it consistently.
4b900473 7944target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7945
a0da8069
NN
7946FLAGS_FOR_TARGET=
7947case " $target_configdirs " in
7948 *" newlib "*)
7949 case " $target_configargs " in
7950 *" --with-newlib "*)
7951 case "$target" in
1f53ca9a 7952 *-cygwin*)
6d94c122 7953 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 7954 ;;
a0da8069
NN
7955 esac
7956
7957 # If we're not building GCC, don't discard standard headers.
7958 if test -d ${srcdir}/gcc; then
7959 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7960
7961 if test "${build}" != "${host}"; then
7962 # On Canadian crosses, CC_FOR_TARGET will have already been set
7963 # by `configure', so we won't have an opportunity to add -Bgcc/
7964 # to it. This is right: we don't want to search that directory
7965 # for binaries, but we want the header files in there, so add
7966 # them explicitly.
e552509b 7967 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7968
7969 # Someone might think of using the pre-installed headers on
7970 # Canadian crosses, in case the installed compiler is not fully
7971 # compatible with the compiler being built. In this case, it
7972 # would be better to flag an error than risking having
7973 # incompatible object files being constructed. We can't
7974 # guarantee that an error will be flagged, but let's hope the
7975 # compiler will do it, when presented with incompatible header
7976 # files.
7977 fi
7978 fi
7979
7980 case "${target}-${is_cross_compiler}" in
ec11bdc6 7981 i[3456789]86-*-linux*-no)
a0da8069
NN
7982 # Here host == target, so we don't need to build gcc,
7983 # so we don't want to discard standard headers.
7984 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7985 ;;
7986 *)
7987 # If we're building newlib, use its generic headers last, but search
7988 # for any libc-related directories first (so make it the last -B
7989 # switch).
7990 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
7991
7992 # If we're building libgloss, find the startup file, simulator library
7993 # and linker script.
7994 case " $target_configdirs " in
7995 *" libgloss "*)
7996 # Look for startup file, simulator library and maybe linker script.
7997 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7998 # Look for libnosys.a in case the target needs it.
7999 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
8000 # Most targets have the linker script in the source directory.
8001 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
8002 ;;
8003 esac
a0da8069
NN
8004 ;;
8005 esac
8006 ;;
8007 esac
8008 ;;
8009esac
1f53ca9a 8010
45055374 8011case "$target" in
1f53ca9a
AO
8012 x86_64-*mingw* | *-w64-mingw*)
8013 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
8014 # however, use a symlink named 'mingw' in ${prefix} .
8015 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
8016 ;;
8017 *-mingw*)
8018 # MinGW can't be handled as Cygwin above since it does not use newlib.
8019 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'
8020 ;;
45055374 8021esac
a0da8069 8022
5fbad20a
DD
8023# Allow the user to override the flags for
8024# our build compiler if desired.
c66487f8
NC
8025if test x"${build}" = x"${host}" ; then
8026 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
8027 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
8028 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
8029fi
5fbad20a 8030
a0da8069
NN
8031# On Canadian crosses, we'll be searching the right directories for
8032# the previously-installed cross compiler, so don't bother to add
8033# flags for directories within the install tree of the compiler
8034# being built; programs in there won't even run.
8035if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
8036 # Search for pre-installed headers if nothing else fits.
bba45b8b 8037 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
8038fi
8039
8040if test "x${use_gnu_ld}" = x &&
8041 echo " ${configdirs} " | grep " ld " > /dev/null ; then
8042 # Arrange for us to find uninstalled linker scripts.
b00612cc 8043 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
8044fi
8045
a481dbb7
DD
8046# Search for other target-specific linker scripts and such.
8047case "${target}" in
4e206d7e
DB
8048 mep*)
8049 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
8050 ;;
8051esac
8052
a0da8069 8053# Makefile fragments.
3e707e94
PB
8054for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
8055do
8056 eval fragval=\$$frag
8057 if test $fragval != /dev/null; then
8058 eval $frag=${srcdir}/$fragval
8059 fi
8060done
a0da8069
NN
8061
8062
8063
8064
8065
8066# Miscellanea: directories, flags, etc.
8067
8068
8069
8070
8071
8072
8073
3bbd2f8f 8074
6a9cf61e 8075# Build module lists & subconfigure args.
a0da8069
NN
8076
8077
8078
be01d343
PB
8079# Host module lists & subconfigure args.
8080
8081
8082
911e63d0 8083
be01d343
PB
8084# Target module lists & subconfigure args.
8085
8086
8087
8088# Build tools.
8089
8090
8091
1576798e
PB
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
be01d343
PB
8105# Generate default definitions for YACC, M4, LEX and other programs that run
8106# on the build machine. These are used if the Makefile can't locate these
8107# programs in objdir.
8108MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8109
8110for ac_prog in 'bison -y' byacc yacc
8111do
c6b750e1 8112 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8113set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8116if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 8117 $as_echo_n "(cached) " >&6
be01d343
PB
8118else
8119 if test -n "$YACC"; then
8120 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8121else
c6b750e1
DJ
8122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123for as_dir in $PATH
8124do
8125 IFS=$as_save_IFS
8126 test -z "$as_dir" && as_dir=.
81ecdfbb 8127 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8129 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 8130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8131 break 2
8132 fi
8133done
81ecdfbb
RW
8134 done
8135IFS=$as_save_IFS
c6b750e1 8136
be01d343
PB
8137fi
8138fi
c6b750e1 8139YACC=$ac_cv_prog_YACC
be01d343 8140if test -n "$YACC"; then
81ecdfbb
RW
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8142$as_echo "$YACC" >&6; }
be01d343 8143else
81ecdfbb
RW
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145$as_echo "no" >&6; }
be01d343
PB
8146fi
8147
81ecdfbb 8148
c6b750e1 8149 test -n "$YACC" && break
be01d343
PB
8150done
8151test -n "$YACC" || YACC="$MISSING bison -y"
8152
8153case " $build_configdirs " in
8154 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
8155esac
8156
8157for ac_prog in bison
8158do
c6b750e1 8159 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8160set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8163if ${ac_cv_prog_BISON+:} false; then :
81ecdfbb 8164 $as_echo_n "(cached) " >&6
be01d343
PB
8165else
8166 if test -n "$BISON"; then
8167 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8168else
c6b750e1
DJ
8169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170for as_dir in $PATH
8171do
8172 IFS=$as_save_IFS
8173 test -z "$as_dir" && as_dir=.
81ecdfbb 8174 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8176 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 8177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8178 break 2
8179 fi
8180done
81ecdfbb
RW
8181 done
8182IFS=$as_save_IFS
c6b750e1 8183
be01d343
PB
8184fi
8185fi
c6b750e1 8186BISON=$ac_cv_prog_BISON
be01d343 8187if test -n "$BISON"; then
81ecdfbb
RW
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8189$as_echo "$BISON" >&6; }
be01d343 8190else
81ecdfbb
RW
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192$as_echo "no" >&6; }
be01d343
PB
8193fi
8194
81ecdfbb 8195
c6b750e1 8196 test -n "$BISON" && break
be01d343
PB
8197done
8198test -n "$BISON" || BISON="$MISSING bison"
8199
8200case " $build_configdirs " in
8201 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8202esac
8203
8204for ac_prog in gm4 gnum4 m4
8205do
c6b750e1 8206 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8207set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8209$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8210if ${ac_cv_prog_M4+:} false; then :
81ecdfbb 8211 $as_echo_n "(cached) " >&6
be01d343
PB
8212else
8213 if test -n "$M4"; then
8214 ac_cv_prog_M4="$M4" # Let the user override the test.
8215else
c6b750e1
DJ
8216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217for as_dir in $PATH
8218do
8219 IFS=$as_save_IFS
8220 test -z "$as_dir" && as_dir=.
81ecdfbb 8221 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8223 ac_cv_prog_M4="$ac_prog"
81ecdfbb 8224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8225 break 2
8226 fi
8227done
81ecdfbb
RW
8228 done
8229IFS=$as_save_IFS
c6b750e1 8230
be01d343
PB
8231fi
8232fi
c6b750e1 8233M4=$ac_cv_prog_M4
be01d343 8234if test -n "$M4"; then
81ecdfbb
RW
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8236$as_echo "$M4" >&6; }
be01d343 8237else
81ecdfbb
RW
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239$as_echo "no" >&6; }
be01d343
PB
8240fi
8241
81ecdfbb 8242
c6b750e1 8243 test -n "$M4" && break
be01d343
PB
8244done
8245test -n "$M4" || M4="$MISSING m4"
8246
8247case " $build_configdirs " in
8248 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8249esac
8250
8251for ac_prog in flex lex
8252do
c6b750e1 8253 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8254set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8257if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 8258 $as_echo_n "(cached) " >&6
be01d343
PB
8259else
8260 if test -n "$LEX"; then
8261 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8262else
c6b750e1
DJ
8263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264for as_dir in $PATH
8265do
8266 IFS=$as_save_IFS
8267 test -z "$as_dir" && as_dir=.
81ecdfbb 8268 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8270 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 8271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8272 break 2
8273 fi
8274done
81ecdfbb
RW
8275 done
8276IFS=$as_save_IFS
c6b750e1 8277
be01d343
PB
8278fi
8279fi
c6b750e1 8280LEX=$ac_cv_prog_LEX
be01d343 8281if test -n "$LEX"; then
81ecdfbb
RW
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8283$as_echo "$LEX" >&6; }
be01d343 8284else
81ecdfbb
RW
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286$as_echo "no" >&6; }
be01d343
PB
8287fi
8288
81ecdfbb 8289
c6b750e1 8290 test -n "$LEX" && break
be01d343
PB
8291done
8292test -n "$LEX" || LEX="$MISSING flex"
8293
8294case " $build_configdirs " in
8295 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8296 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8297esac
8298
8299for ac_prog in flex
8300do
c6b750e1 8301 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8302set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8305if ${ac_cv_prog_FLEX+:} false; then :
81ecdfbb 8306 $as_echo_n "(cached) " >&6
be01d343
PB
8307else
8308 if test -n "$FLEX"; then
8309 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8310else
c6b750e1
DJ
8311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312for as_dir in $PATH
8313do
8314 IFS=$as_save_IFS
8315 test -z "$as_dir" && as_dir=.
81ecdfbb 8316 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8318 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 8319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8320 break 2
8321 fi
8322done
81ecdfbb
RW
8323 done
8324IFS=$as_save_IFS
c6b750e1 8325
be01d343
PB
8326fi
8327fi
c6b750e1 8328FLEX=$ac_cv_prog_FLEX
be01d343 8329if test -n "$FLEX"; then
81ecdfbb
RW
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8331$as_echo "$FLEX" >&6; }
be01d343 8332else
81ecdfbb
RW
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334$as_echo "no" >&6; }
be01d343
PB
8335fi
8336
81ecdfbb 8337
c6b750e1 8338 test -n "$FLEX" && break
be01d343
PB
8339done
8340test -n "$FLEX" || FLEX="$MISSING flex"
8341
8342case " $build_configdirs " in
8343 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8344esac
8345
8346for ac_prog in makeinfo
8347do
c6b750e1 8348 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8349set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8352if ${ac_cv_prog_MAKEINFO+:} false; then :
81ecdfbb 8353 $as_echo_n "(cached) " >&6
be01d343
PB
8354else
8355 if test -n "$MAKEINFO"; then
8356 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8357else
c6b750e1
DJ
8358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359for as_dir in $PATH
8360do
8361 IFS=$as_save_IFS
8362 test -z "$as_dir" && as_dir=.
81ecdfbb 8363 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8365 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 8366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8367 break 2
8368 fi
8369done
81ecdfbb
RW
8370 done
8371IFS=$as_save_IFS
c6b750e1 8372
be01d343
PB
8373fi
8374fi
c6b750e1 8375MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 8376if test -n "$MAKEINFO"; then
81ecdfbb
RW
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8378$as_echo "$MAKEINFO" >&6; }
be01d343 8379else
81ecdfbb
RW
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381$as_echo "no" >&6; }
be01d343
PB
8382fi
8383
81ecdfbb 8384
c6b750e1 8385 test -n "$MAKEINFO" && break
be01d343
PB
8386done
8387test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8388
8389case " $build_configdirs " in
8390 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8391 *)
8392
10ad8ef3 8393 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
8394 # higher, else we use the "missing" dummy.
8395 if ${MAKEINFO} --version \
10ad8ef3 8396 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
8397 :
8398 else
8399 MAKEINFO="$MISSING makeinfo"
8400 fi
8401 ;;
8402
8403esac
a0da8069 8404
be01d343 8405# FIXME: expect and dejagnu may become build tools?
a0da8069 8406
be01d343
PB
8407for ac_prog in expect
8408do
c6b750e1 8409 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8410set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8413if ${ac_cv_prog_EXPECT+:} false; then :
81ecdfbb 8414 $as_echo_n "(cached) " >&6
be01d343
PB
8415else
8416 if test -n "$EXPECT"; then
8417 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8418else
c6b750e1
DJ
8419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420for as_dir in $PATH
8421do
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
81ecdfbb 8424 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8426 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8428 break 2
8429 fi
8430done
81ecdfbb
RW
8431 done
8432IFS=$as_save_IFS
c6b750e1 8433
be01d343
PB
8434fi
8435fi
c6b750e1 8436EXPECT=$ac_cv_prog_EXPECT
be01d343 8437if test -n "$EXPECT"; then
81ecdfbb
RW
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8439$as_echo "$EXPECT" >&6; }
be01d343 8440else
81ecdfbb
RW
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442$as_echo "no" >&6; }
be01d343 8443fi
a0da8069 8444
81ecdfbb 8445
c6b750e1 8446 test -n "$EXPECT" && break
be01d343
PB
8447done
8448test -n "$EXPECT" || EXPECT="expect"
a0da8069 8449
be01d343
PB
8450case " $configdirs " in
8451 *" expect "*)
8452 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8453 ;;
8454esac
a0da8069 8455
be01d343
PB
8456for ac_prog in runtest
8457do
c6b750e1 8458 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8459set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8462if ${ac_cv_prog_RUNTEST+:} false; then :
81ecdfbb 8463 $as_echo_n "(cached) " >&6
be01d343
PB
8464else
8465 if test -n "$RUNTEST"; then
8466 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8467else
c6b750e1
DJ
8468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469for as_dir in $PATH
8470do
8471 IFS=$as_save_IFS
8472 test -z "$as_dir" && as_dir=.
81ecdfbb 8473 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8475 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 8476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8477 break 2
8478 fi
8479done
81ecdfbb
RW
8480 done
8481IFS=$as_save_IFS
c6b750e1 8482
be01d343
PB
8483fi
8484fi
c6b750e1 8485RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8486if test -n "$RUNTEST"; then
81ecdfbb
RW
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8488$as_echo "$RUNTEST" >&6; }
be01d343 8489else
81ecdfbb
RW
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491$as_echo "no" >&6; }
be01d343 8492fi
a0da8069 8493
81ecdfbb 8494
c6b750e1 8495 test -n "$RUNTEST" && break
be01d343
PB
8496done
8497test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8498
be01d343
PB
8499case " $configdirs " in
8500 *" dejagnu "*)
6b89cc21 8501 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8502 ;;
8503esac
a0da8069
NN
8504
8505
a0da8069 8506# Host tools.
859789af
AC
8507ncn_tool_prefix=
8508test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8509ncn_target_tool_prefix=
8510test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8511
9a819804
AO
8512
8513
8514if test -n "$AR"; then
8515 ac_cv_prog_AR=$AR
8516elif test -n "$ac_cv_prog_AR"; then
8517 AR=$ac_cv_prog_AR
8518fi
8519
8520if test -n "$ac_cv_prog_AR"; then
8521 for ncn_progname in ar; do
8522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8523set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8525$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8526if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8527 $as_echo_n "(cached) " >&6
9a819804
AO
8528else
8529 if test -n "$AR"; then
8530 ac_cv_prog_AR="$AR" # Let the user override the test.
8531else
8532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533for as_dir in $PATH
8534do
8535 IFS=$as_save_IFS
8536 test -z "$as_dir" && as_dir=.
81ecdfbb 8537 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8539 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8541 break 2
8542 fi
8543done
81ecdfbb
RW
8544 done
8545IFS=$as_save_IFS
9a819804
AO
8546
8547fi
8548fi
8549AR=$ac_cv_prog_AR
8550if test -n "$AR"; then
81ecdfbb
RW
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8552$as_echo "$AR" >&6; }
9a819804 8553else
81ecdfbb
RW
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8555$as_echo "no" >&6; }
9a819804
AO
8556fi
8557
81ecdfbb 8558
9a819804
AO
8559 done
8560fi
8561
8562for ncn_progname in ar; do
05cbd757
PB
8563 if test -n "$ncn_tool_prefix"; then
8564 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8565set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8567$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8568if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8569 $as_echo_n "(cached) " >&6
859789af
AC
8570else
8571 if test -n "$AR"; then
8572 ac_cv_prog_AR="$AR" # Let the user override the test.
8573else
c6b750e1
DJ
8574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575for as_dir in $PATH
8576do
8577 IFS=$as_save_IFS
8578 test -z "$as_dir" && as_dir=.
81ecdfbb 8579 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8581 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8583 break 2
8584 fi
8585done
81ecdfbb
RW
8586 done
8587IFS=$as_save_IFS
c6b750e1 8588
859789af
AC
8589fi
8590fi
c6b750e1 8591AR=$ac_cv_prog_AR
859789af 8592if test -n "$AR"; then
81ecdfbb
RW
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8594$as_echo "$AR" >&6; }
859789af 8595else
81ecdfbb
RW
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597$as_echo "no" >&6; }
859789af
AC
8598fi
8599
81ecdfbb 8600
05cbd757
PB
8601 fi
8602 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8603 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8604set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8606$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8607if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8608 $as_echo_n "(cached) " >&6
859789af 8609else
05cbd757
PB
8610 if test -n "$AR"; then
8611 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8612else
c6b750e1
DJ
8613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614for as_dir in $PATH
8615do
8616 IFS=$as_save_IFS
8617 test -z "$as_dir" && as_dir=.
81ecdfbb 8618 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8620 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8622 break 2
8623 fi
8624done
81ecdfbb
RW
8625 done
8626IFS=$as_save_IFS
c6b750e1 8627
859789af
AC
8628fi
8629fi
c6b750e1 8630AR=$ac_cv_prog_AR
05cbd757 8631if test -n "$AR"; then
81ecdfbb
RW
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8633$as_echo "$AR" >&6; }
859789af 8634else
81ecdfbb
RW
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636$as_echo "no" >&6; }
859789af 8637fi
c6b750e1 8638
81ecdfbb 8639
05cbd757
PB
8640 fi
8641 test -n "$ac_cv_prog_AR" && break
8642done
8643
8644if test -z "$ac_cv_prog_AR" ; then
8645 set dummy ar
8646 if test $build = $host ; then
8647 AR="$2"
859789af 8648 else
05cbd757 8649 AR="${ncn_tool_prefix}$2"
859789af 8650 fi
859789af
AC
8651fi
8652
9a819804
AO
8653
8654
8655if test -n "$AS"; then
8656 ac_cv_prog_AS=$AS
8657elif test -n "$ac_cv_prog_AS"; then
8658 AS=$ac_cv_prog_AS
8659fi
8660
8661if test -n "$ac_cv_prog_AS"; then
8662 for ncn_progname in as; do
8663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8664set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8666$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8667if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8668 $as_echo_n "(cached) " >&6
9a819804
AO
8669else
8670 if test -n "$AS"; then
8671 ac_cv_prog_AS="$AS" # Let the user override the test.
8672else
8673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674for as_dir in $PATH
8675do
8676 IFS=$as_save_IFS
8677 test -z "$as_dir" && as_dir=.
81ecdfbb 8678 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8680 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8682 break 2
8683 fi
8684done
81ecdfbb
RW
8685 done
8686IFS=$as_save_IFS
9a819804
AO
8687
8688fi
8689fi
8690AS=$ac_cv_prog_AS
8691if test -n "$AS"; then
81ecdfbb
RW
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8693$as_echo "$AS" >&6; }
9a819804 8694else
81ecdfbb
RW
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696$as_echo "no" >&6; }
9a819804
AO
8697fi
8698
81ecdfbb 8699
9a819804
AO
8700 done
8701fi
8702
8703for ncn_progname in as; do
05cbd757
PB
8704 if test -n "$ncn_tool_prefix"; then
8705 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8706set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8709if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8710 $as_echo_n "(cached) " >&6
859789af
AC
8711else
8712 if test -n "$AS"; then
8713 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8714else
8715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716for as_dir in $PATH
8717do
8718 IFS=$as_save_IFS
8719 test -z "$as_dir" && as_dir=.
81ecdfbb 8720 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8722 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8724 break 2
8725 fi
8726done
81ecdfbb
RW
8727 done
8728IFS=$as_save_IFS
c6b750e1 8729
859789af
AC
8730fi
8731fi
c6b750e1 8732AS=$ac_cv_prog_AS
859789af 8733if test -n "$AS"; then
81ecdfbb
RW
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8735$as_echo "$AS" >&6; }
859789af 8736else
81ecdfbb
RW
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738$as_echo "no" >&6; }
859789af
AC
8739fi
8740
81ecdfbb 8741
05cbd757
PB
8742 fi
8743 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8745set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8747$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8748if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8749 $as_echo_n "(cached) " >&6
859789af 8750else
05cbd757
PB
8751 if test -n "$AS"; then
8752 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8753else
c6b750e1
DJ
8754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755for as_dir in $PATH
8756do
8757 IFS=$as_save_IFS
8758 test -z "$as_dir" && as_dir=.
81ecdfbb 8759 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8761 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8763 break 2
8764 fi
8765done
81ecdfbb
RW
8766 done
8767IFS=$as_save_IFS
c6b750e1 8768
859789af
AC
8769fi
8770fi
c6b750e1 8771AS=$ac_cv_prog_AS
05cbd757 8772if test -n "$AS"; then
81ecdfbb
RW
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8774$as_echo "$AS" >&6; }
859789af 8775else
81ecdfbb
RW
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777$as_echo "no" >&6; }
859789af 8778fi
c6b750e1 8779
81ecdfbb 8780
05cbd757
PB
8781 fi
8782 test -n "$ac_cv_prog_AS" && break
8783done
8784
8785if test -z "$ac_cv_prog_AS" ; then
8786 set dummy as
8787 if test $build = $host ; then
8788 AS="$2"
859789af 8789 else
05cbd757 8790 AS="${ncn_tool_prefix}$2"
859789af 8791 fi
859789af
AC
8792fi
8793
9a819804
AO
8794
8795
8796if test -n "$DLLTOOL"; then
8797 ac_cv_prog_DLLTOOL=$DLLTOOL
8798elif test -n "$ac_cv_prog_DLLTOOL"; then
8799 DLLTOOL=$ac_cv_prog_DLLTOOL
8800fi
8801
8802if test -n "$ac_cv_prog_DLLTOOL"; then
8803 for ncn_progname in dlltool; do
8804 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8805set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8808if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8809 $as_echo_n "(cached) " >&6
9a819804
AO
8810else
8811 if test -n "$DLLTOOL"; then
8812 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8813else
8814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815for as_dir in $PATH
8816do
8817 IFS=$as_save_IFS
8818 test -z "$as_dir" && as_dir=.
81ecdfbb 8819 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8821 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8823 break 2
8824 fi
8825done
81ecdfbb
RW
8826 done
8827IFS=$as_save_IFS
9a819804
AO
8828
8829fi
8830fi
8831DLLTOOL=$ac_cv_prog_DLLTOOL
8832if test -n "$DLLTOOL"; then
81ecdfbb
RW
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8834$as_echo "$DLLTOOL" >&6; }
9a819804 8835else
81ecdfbb
RW
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837$as_echo "no" >&6; }
9a819804
AO
8838fi
8839
81ecdfbb 8840
9a819804
AO
8841 done
8842fi
8843
8844for ncn_progname in dlltool; do
05cbd757
PB
8845 if test -n "$ncn_tool_prefix"; then
8846 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8847set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8849$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8850if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8851 $as_echo_n "(cached) " >&6
859789af
AC
8852else
8853 if test -n "$DLLTOOL"; then
8854 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8855else
c6b750e1
DJ
8856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857for as_dir in $PATH
8858do
8859 IFS=$as_save_IFS
8860 test -z "$as_dir" && as_dir=.
81ecdfbb 8861 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8863 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8865 break 2
8866 fi
8867done
81ecdfbb
RW
8868 done
8869IFS=$as_save_IFS
c6b750e1 8870
859789af
AC
8871fi
8872fi
c6b750e1 8873DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8874if test -n "$DLLTOOL"; then
81ecdfbb
RW
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8876$as_echo "$DLLTOOL" >&6; }
859789af 8877else
81ecdfbb
RW
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8879$as_echo "no" >&6; }
859789af
AC
8880fi
8881
81ecdfbb 8882
05cbd757
PB
8883 fi
8884 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8885 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8886set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8888$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8889if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8890 $as_echo_n "(cached) " >&6
859789af 8891else
05cbd757
PB
8892 if test -n "$DLLTOOL"; then
8893 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8894else
c6b750e1
DJ
8895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896for as_dir in $PATH
8897do
8898 IFS=$as_save_IFS
8899 test -z "$as_dir" && as_dir=.
81ecdfbb 8900 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8902 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8904 break 2
8905 fi
8906done
81ecdfbb
RW
8907 done
8908IFS=$as_save_IFS
c6b750e1 8909
859789af
AC
8910fi
8911fi
c6b750e1 8912DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8913if test -n "$DLLTOOL"; then
81ecdfbb
RW
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8915$as_echo "$DLLTOOL" >&6; }
859789af 8916else
81ecdfbb
RW
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918$as_echo "no" >&6; }
859789af 8919fi
c6b750e1 8920
81ecdfbb 8921
05cbd757
PB
8922 fi
8923 test -n "$ac_cv_prog_DLLTOOL" && break
8924done
8925
8926if test -z "$ac_cv_prog_DLLTOOL" ; then
8927 set dummy dlltool
8928 if test $build = $host ; then
8929 DLLTOOL="$2"
859789af 8930 else
05cbd757 8931 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8932 fi
859789af
AC
8933fi
8934
9a819804
AO
8935
8936
8937if test -n "$LD"; then
8938 ac_cv_prog_LD=$LD
8939elif test -n "$ac_cv_prog_LD"; then
8940 LD=$ac_cv_prog_LD
8941fi
8942
8943if test -n "$ac_cv_prog_LD"; then
8944 for ncn_progname in ld; do
8945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8946set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8948$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8949if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8950 $as_echo_n "(cached) " >&6
9a819804
AO
8951else
8952 if test -n "$LD"; then
8953 ac_cv_prog_LD="$LD" # Let the user override the test.
8954else
8955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8956for as_dir in $PATH
8957do
8958 IFS=$as_save_IFS
8959 test -z "$as_dir" && as_dir=.
81ecdfbb 8960 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8962 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8964 break 2
8965 fi
8966done
81ecdfbb
RW
8967 done
8968IFS=$as_save_IFS
9a819804
AO
8969
8970fi
8971fi
8972LD=$ac_cv_prog_LD
8973if test -n "$LD"; then
81ecdfbb
RW
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8975$as_echo "$LD" >&6; }
9a819804 8976else
81ecdfbb
RW
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8978$as_echo "no" >&6; }
9a819804
AO
8979fi
8980
81ecdfbb 8981
9a819804
AO
8982 done
8983fi
8984
8985for ncn_progname in ld; do
05cbd757
PB
8986 if test -n "$ncn_tool_prefix"; then
8987 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8988set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8991if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8992 $as_echo_n "(cached) " >&6
859789af
AC
8993else
8994 if test -n "$LD"; then
8995 ac_cv_prog_LD="$LD" # Let the user override the test.
8996else
c6b750e1
DJ
8997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998for as_dir in $PATH
8999do
9000 IFS=$as_save_IFS
9001 test -z "$as_dir" && as_dir=.
81ecdfbb 9002 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9004 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9006 break 2
9007 fi
9008done
81ecdfbb
RW
9009 done
9010IFS=$as_save_IFS
c6b750e1 9011
859789af
AC
9012fi
9013fi
c6b750e1 9014LD=$ac_cv_prog_LD
859789af 9015if test -n "$LD"; then
81ecdfbb
RW
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9017$as_echo "$LD" >&6; }
859789af 9018else
81ecdfbb
RW
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020$as_echo "no" >&6; }
859789af
AC
9021fi
9022
81ecdfbb 9023
05cbd757
PB
9024 fi
9025 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
9026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9027set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9029$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9030if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 9031 $as_echo_n "(cached) " >&6
859789af 9032else
05cbd757
PB
9033 if test -n "$LD"; then
9034 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 9035else
c6b750e1
DJ
9036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037for as_dir in $PATH
9038do
9039 IFS=$as_save_IFS
9040 test -z "$as_dir" && as_dir=.
81ecdfbb 9041 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9043 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 9044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9045 break 2
9046 fi
9047done
81ecdfbb
RW
9048 done
9049IFS=$as_save_IFS
c6b750e1 9050
859789af
AC
9051fi
9052fi
c6b750e1 9053LD=$ac_cv_prog_LD
05cbd757 9054if test -n "$LD"; then
81ecdfbb
RW
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9056$as_echo "$LD" >&6; }
859789af 9057else
81ecdfbb
RW
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059$as_echo "no" >&6; }
859789af 9060fi
c6b750e1 9061
81ecdfbb 9062
05cbd757
PB
9063 fi
9064 test -n "$ac_cv_prog_LD" && break
9065done
9066
9067if test -z "$ac_cv_prog_LD" ; then
9068 set dummy ld
9069 if test $build = $host ; then
9070 LD="$2"
859789af 9071 else
05cbd757 9072 LD="${ncn_tool_prefix}$2"
859789af 9073 fi
859789af
AC
9074fi
9075
9a819804
AO
9076
9077
9078if test -n "$LIPO"; then
9079 ac_cv_prog_LIPO=$LIPO
9080elif test -n "$ac_cv_prog_LIPO"; then
9081 LIPO=$ac_cv_prog_LIPO
9082fi
9083
9084if test -n "$ac_cv_prog_LIPO"; then
9085 for ncn_progname in lipo; do
9086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9087set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9089$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9090if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 9091 $as_echo_n "(cached) " >&6
9a819804
AO
9092else
9093 if test -n "$LIPO"; then
9094 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9095else
9096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097for as_dir in $PATH
9098do
9099 IFS=$as_save_IFS
9100 test -z "$as_dir" && as_dir=.
81ecdfbb 9101 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9103 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 9104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9105 break 2
9106 fi
9107done
81ecdfbb
RW
9108 done
9109IFS=$as_save_IFS
9a819804
AO
9110
9111fi
9112fi
9113LIPO=$ac_cv_prog_LIPO
9114if test -n "$LIPO"; then
81ecdfbb
RW
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9116$as_echo "$LIPO" >&6; }
9a819804 9117else
81ecdfbb
RW
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119$as_echo "no" >&6; }
9a819804
AO
9120fi
9121
81ecdfbb 9122
9a819804
AO
9123 done
9124fi
9125
9126for ncn_progname in lipo; do
be01d343
PB
9127 if test -n "$ncn_tool_prefix"; then
9128 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9129set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9131$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9132if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 9133 $as_echo_n "(cached) " >&6
be01d343
PB
9134else
9135 if test -n "$LIPO"; then
9136 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9137else
c6b750e1
DJ
9138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9139for as_dir in $PATH
9140do
9141 IFS=$as_save_IFS
9142 test -z "$as_dir" && as_dir=.
81ecdfbb 9143 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9145 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9147 break 2
9148 fi
9149done
81ecdfbb
RW
9150 done
9151IFS=$as_save_IFS
c6b750e1 9152
be01d343
PB
9153fi
9154fi
c6b750e1 9155LIPO=$ac_cv_prog_LIPO
be01d343 9156if test -n "$LIPO"; then
81ecdfbb
RW
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9158$as_echo "$LIPO" >&6; }
be01d343 9159else
81ecdfbb
RW
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9161$as_echo "no" >&6; }
be01d343
PB
9162fi
9163
81ecdfbb 9164
be01d343
PB
9165 fi
9166 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9167 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9168set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9170$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9171if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 9172 $as_echo_n "(cached) " >&6
be01d343
PB
9173else
9174 if test -n "$LIPO"; then
9175 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9176else
c6b750e1
DJ
9177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9178for as_dir in $PATH
9179do
9180 IFS=$as_save_IFS
9181 test -z "$as_dir" && as_dir=.
81ecdfbb 9182 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9184 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 9185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9186 break 2
9187 fi
9188done
81ecdfbb
RW
9189 done
9190IFS=$as_save_IFS
c6b750e1 9191
be01d343
PB
9192fi
9193fi
c6b750e1 9194LIPO=$ac_cv_prog_LIPO
be01d343 9195if test -n "$LIPO"; then
81ecdfbb
RW
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9197$as_echo "$LIPO" >&6; }
be01d343 9198else
81ecdfbb
RW
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9200$as_echo "no" >&6; }
be01d343 9201fi
c6b750e1 9202
81ecdfbb 9203
be01d343
PB
9204 fi
9205 test -n "$ac_cv_prog_LIPO" && break
9206done
9207
9208if test -z "$ac_cv_prog_LIPO" ; then
9209 set dummy lipo
9210 if test $build = $host ; then
9211 LIPO="$2"
9212 else
9213 LIPO="${ncn_tool_prefix}$2"
9214 fi
9215fi
9216
9a819804
AO
9217
9218
9219if test -n "$NM"; then
9220 ac_cv_prog_NM=$NM
9221elif test -n "$ac_cv_prog_NM"; then
9222 NM=$ac_cv_prog_NM
9223fi
9224
9225if test -n "$ac_cv_prog_NM"; then
9226 for ncn_progname in nm; do
9227 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9228set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9230$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9231if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 9232 $as_echo_n "(cached) " >&6
859789af
AC
9233else
9234 if test -n "$NM"; then
9235 ac_cv_prog_NM="$NM" # Let the user override the test.
9236else
c6b750e1
DJ
9237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9238for as_dir in $PATH
9239do
9240 IFS=$as_save_IFS
9241 test -z "$as_dir" && as_dir=.
81ecdfbb 9242 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9244 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 9245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9246 break 2
9247 fi
9248done
81ecdfbb
RW
9249 done
9250IFS=$as_save_IFS
c6b750e1 9251
859789af
AC
9252fi
9253fi
c6b750e1 9254NM=$ac_cv_prog_NM
859789af 9255if test -n "$NM"; then
81ecdfbb
RW
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9257$as_echo "$NM" >&6; }
859789af 9258else
81ecdfbb
RW
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9260$as_echo "no" >&6; }
859789af
AC
9261fi
9262
81ecdfbb 9263
9a819804
AO
9264 done
9265fi
9266
9267for ncn_progname in nm; do
9268 if test -n "$ncn_tool_prefix"; then
9269 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9270set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9272$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9273if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 9274 $as_echo_n "(cached) " >&6
859789af 9275else
05cbd757
PB
9276 if test -n "$NM"; then
9277 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 9278else
c6b750e1
DJ
9279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9280for as_dir in $PATH
9281do
9282 IFS=$as_save_IFS
9283 test -z "$as_dir" && as_dir=.
81ecdfbb 9284 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9286 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9288 break 2
9289 fi
9290done
81ecdfbb
RW
9291 done
9292IFS=$as_save_IFS
c6b750e1 9293
859789af
AC
9294fi
9295fi
c6b750e1 9296NM=$ac_cv_prog_NM
05cbd757 9297if test -n "$NM"; then
81ecdfbb
RW
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9299$as_echo "$NM" >&6; }
859789af 9300else
81ecdfbb
RW
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9302$as_echo "no" >&6; }
859789af 9303fi
c6b750e1 9304
81ecdfbb 9305
05cbd757 9306 fi
9a819804
AO
9307 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9309set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9311$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9312if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 9313 $as_echo_n "(cached) " >&6
9a819804
AO
9314else
9315 if test -n "$NM"; then
9316 ac_cv_prog_NM="$NM" # Let the user override the test.
9317else
9318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9319for as_dir in $PATH
9320do
9321 IFS=$as_save_IFS
9322 test -z "$as_dir" && as_dir=.
81ecdfbb 9323 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9325 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 9326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9327 break 2
9328 fi
9329done
81ecdfbb
RW
9330 done
9331IFS=$as_save_IFS
9a819804
AO
9332
9333fi
9334fi
9335NM=$ac_cv_prog_NM
9336if test -n "$NM"; then
81ecdfbb
RW
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9338$as_echo "$NM" >&6; }
9a819804 9339else
81ecdfbb
RW
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9341$as_echo "no" >&6; }
9a819804
AO
9342fi
9343
81ecdfbb 9344
9a819804
AO
9345 fi
9346 test -n "$ac_cv_prog_NM" && break
9347done
9348
9349if test -z "$ac_cv_prog_NM" ; then
9350 set dummy nm
9351 if test $build = $host ; then
9352 NM="$2"
9353 else
9354 NM="${ncn_tool_prefix}$2"
9355 fi
9356fi
9357
9358
9359
9360if test -n "$RANLIB"; then
9361 ac_cv_prog_RANLIB=$RANLIB
9362elif test -n "$ac_cv_prog_RANLIB"; then
9363 RANLIB=$ac_cv_prog_RANLIB
9364fi
9365
9366if test -n "$ac_cv_prog_RANLIB"; then
9367 for ncn_progname in ranlib; do
9368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9369set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9371$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9372if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9373 $as_echo_n "(cached) " >&6
9a819804
AO
9374else
9375 if test -n "$RANLIB"; then
9376 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9377else
9378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9379for as_dir in $PATH
9380do
9381 IFS=$as_save_IFS
9382 test -z "$as_dir" && as_dir=.
81ecdfbb 9383 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9385 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9387 break 2
9388 fi
9389done
81ecdfbb
RW
9390 done
9391IFS=$as_save_IFS
9a819804
AO
9392
9393fi
9394fi
9395RANLIB=$ac_cv_prog_RANLIB
9396if test -n "$RANLIB"; then
81ecdfbb
RW
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9398$as_echo "$RANLIB" >&6; }
9a819804 9399else
81ecdfbb
RW
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401$as_echo "no" >&6; }
9a819804
AO
9402fi
9403
81ecdfbb 9404
9a819804
AO
9405 done
9406fi
859789af 9407
9a819804 9408for ncn_progname in ranlib; do
05cbd757
PB
9409 if test -n "$ncn_tool_prefix"; then
9410 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9411set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9413$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9414if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9415 $as_echo_n "(cached) " >&6
859789af
AC
9416else
9417 if test -n "$RANLIB"; then
9418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9419else
c6b750e1
DJ
9420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9421for as_dir in $PATH
9422do
9423 IFS=$as_save_IFS
9424 test -z "$as_dir" && as_dir=.
81ecdfbb 9425 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9427 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9429 break 2
9430 fi
9431done
81ecdfbb
RW
9432 done
9433IFS=$as_save_IFS
c6b750e1 9434
859789af
AC
9435fi
9436fi
c6b750e1 9437RANLIB=$ac_cv_prog_RANLIB
859789af 9438if test -n "$RANLIB"; then
81ecdfbb
RW
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9440$as_echo "$RANLIB" >&6; }
859789af 9441else
81ecdfbb
RW
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9443$as_echo "no" >&6; }
859789af
AC
9444fi
9445
81ecdfbb 9446
05cbd757
PB
9447 fi
9448 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9450set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9452$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9453if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9454 $as_echo_n "(cached) " >&6
859789af 9455else
05cbd757
PB
9456 if test -n "$RANLIB"; then
9457 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 9458else
c6b750e1
DJ
9459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460for as_dir in $PATH
9461do
9462 IFS=$as_save_IFS
9463 test -z "$as_dir" && as_dir=.
81ecdfbb 9464 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9466 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9468 break 2
9469 fi
9470done
81ecdfbb
RW
9471 done
9472IFS=$as_save_IFS
c6b750e1 9473
859789af
AC
9474fi
9475fi
c6b750e1 9476RANLIB=$ac_cv_prog_RANLIB
05cbd757 9477if test -n "$RANLIB"; then
81ecdfbb
RW
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9479$as_echo "$RANLIB" >&6; }
859789af 9480else
81ecdfbb
RW
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9482$as_echo "no" >&6; }
859789af 9483fi
c6b750e1 9484
81ecdfbb 9485
859789af 9486 fi
05cbd757
PB
9487 test -n "$ac_cv_prog_RANLIB" && break
9488done
9489
9490if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9491 RANLIB="true"
859789af
AC
9492fi
9493
9a819804
AO
9494
9495
9496if test -n "$STRIP"; then
9497 ac_cv_prog_STRIP=$STRIP
9498elif test -n "$ac_cv_prog_STRIP"; then
9499 STRIP=$ac_cv_prog_STRIP
9500fi
9501
9502if test -n "$ac_cv_prog_STRIP"; then
9503 for ncn_progname in strip; do
9504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9505set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9507$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9508if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9509 $as_echo_n "(cached) " >&6
9a819804
AO
9510else
9511 if test -n "$STRIP"; then
9512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9513else
9514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9515for as_dir in $PATH
9516do
9517 IFS=$as_save_IFS
9518 test -z "$as_dir" && as_dir=.
81ecdfbb 9519 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9521 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9523 break 2
9524 fi
9525done
81ecdfbb
RW
9526 done
9527IFS=$as_save_IFS
9a819804
AO
9528
9529fi
9530fi
9531STRIP=$ac_cv_prog_STRIP
9532if test -n "$STRIP"; then
81ecdfbb
RW
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9534$as_echo "$STRIP" >&6; }
9a819804 9535else
81ecdfbb
RW
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9537$as_echo "no" >&6; }
9a819804
AO
9538fi
9539
81ecdfbb 9540
9a819804
AO
9541 done
9542fi
9543
9544for ncn_progname in strip; do
be01d343
PB
9545 if test -n "$ncn_tool_prefix"; then
9546 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9547set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9549$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9550if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9551 $as_echo_n "(cached) " >&6
be01d343
PB
9552else
9553 if test -n "$STRIP"; then
9554 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9555else
c6b750e1
DJ
9556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557for as_dir in $PATH
9558do
9559 IFS=$as_save_IFS
9560 test -z "$as_dir" && as_dir=.
81ecdfbb 9561 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9563 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9565 break 2
9566 fi
9567done
81ecdfbb
RW
9568 done
9569IFS=$as_save_IFS
c6b750e1 9570
be01d343
PB
9571fi
9572fi
c6b750e1 9573STRIP=$ac_cv_prog_STRIP
be01d343 9574if test -n "$STRIP"; then
81ecdfbb
RW
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9576$as_echo "$STRIP" >&6; }
be01d343 9577else
81ecdfbb
RW
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9579$as_echo "no" >&6; }
be01d343
PB
9580fi
9581
81ecdfbb 9582
be01d343
PB
9583 fi
9584 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9586set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9588$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9589if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9590 $as_echo_n "(cached) " >&6
be01d343
PB
9591else
9592 if test -n "$STRIP"; then
9593 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9594else
c6b750e1
DJ
9595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9596for as_dir in $PATH
9597do
9598 IFS=$as_save_IFS
9599 test -z "$as_dir" && as_dir=.
81ecdfbb 9600 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9602 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9604 break 2
9605 fi
9606done
81ecdfbb
RW
9607 done
9608IFS=$as_save_IFS
c6b750e1 9609
be01d343
PB
9610fi
9611fi
c6b750e1 9612STRIP=$ac_cv_prog_STRIP
be01d343 9613if test -n "$STRIP"; then
81ecdfbb
RW
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9615$as_echo "$STRIP" >&6; }
be01d343 9616else
81ecdfbb
RW
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9618$as_echo "no" >&6; }
be01d343 9619fi
c6b750e1 9620
81ecdfbb 9621
be01d343
PB
9622 fi
9623 test -n "$ac_cv_prog_STRIP" && break
9624done
9625
9626if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9627 STRIP="true"
be01d343
PB
9628fi
9629
9a819804
AO
9630
9631
9632if test -n "$WINDRES"; then
9633 ac_cv_prog_WINDRES=$WINDRES
9634elif test -n "$ac_cv_prog_WINDRES"; then
9635 WINDRES=$ac_cv_prog_WINDRES
9636fi
9637
9638if test -n "$ac_cv_prog_WINDRES"; then
9639 for ncn_progname in windres; do
9640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9641set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9643$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9644if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9645 $as_echo_n "(cached) " >&6
9a819804
AO
9646else
9647 if test -n "$WINDRES"; then
9648 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9649else
9650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651for as_dir in $PATH
9652do
9653 IFS=$as_save_IFS
9654 test -z "$as_dir" && as_dir=.
81ecdfbb 9655 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9657 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9659 break 2
9660 fi
9661done
81ecdfbb
RW
9662 done
9663IFS=$as_save_IFS
9a819804
AO
9664
9665fi
9666fi
9667WINDRES=$ac_cv_prog_WINDRES
9668if test -n "$WINDRES"; then
81ecdfbb
RW
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9670$as_echo "$WINDRES" >&6; }
9a819804 9671else
81ecdfbb
RW
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9673$as_echo "no" >&6; }
9a819804
AO
9674fi
9675
81ecdfbb 9676
9a819804
AO
9677 done
9678fi
9679
9680for ncn_progname in windres; do
05cbd757
PB
9681 if test -n "$ncn_tool_prefix"; then
9682 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9683set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9685$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9686if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9687 $as_echo_n "(cached) " >&6
859789af
AC
9688else
9689 if test -n "$WINDRES"; then
9690 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9691else
c6b750e1
DJ
9692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9693for as_dir in $PATH
9694do
9695 IFS=$as_save_IFS
9696 test -z "$as_dir" && as_dir=.
81ecdfbb 9697 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9699 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9701 break 2
9702 fi
9703done
81ecdfbb
RW
9704 done
9705IFS=$as_save_IFS
c6b750e1 9706
859789af
AC
9707fi
9708fi
c6b750e1 9709WINDRES=$ac_cv_prog_WINDRES
859789af 9710if test -n "$WINDRES"; then
81ecdfbb
RW
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9712$as_echo "$WINDRES" >&6; }
859789af 9713else
81ecdfbb
RW
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9715$as_echo "no" >&6; }
859789af
AC
9716fi
9717
81ecdfbb 9718
05cbd757
PB
9719 fi
9720 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9722set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9724$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9725if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9726 $as_echo_n "(cached) " >&6
859789af 9727else
05cbd757
PB
9728 if test -n "$WINDRES"; then
9729 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9730else
c6b750e1
DJ
9731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732for as_dir in $PATH
9733do
9734 IFS=$as_save_IFS
9735 test -z "$as_dir" && as_dir=.
81ecdfbb 9736 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9738 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9740 break 2
9741 fi
9742done
81ecdfbb
RW
9743 done
9744IFS=$as_save_IFS
c6b750e1 9745
859789af
AC
9746fi
9747fi
c6b750e1 9748WINDRES=$ac_cv_prog_WINDRES
05cbd757 9749if test -n "$WINDRES"; then
81ecdfbb
RW
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9751$as_echo "$WINDRES" >&6; }
859789af 9752else
81ecdfbb
RW
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9754$as_echo "no" >&6; }
859789af 9755fi
c6b750e1 9756
81ecdfbb 9757
05cbd757
PB
9758 fi
9759 test -n "$ac_cv_prog_WINDRES" && break
9760done
9761
9762if test -z "$ac_cv_prog_WINDRES" ; then
9763 set dummy windres
9764 if test $build = $host ; then
9765 WINDRES="$2"
859789af 9766 else
05cbd757 9767 WINDRES="${ncn_tool_prefix}$2"
859789af 9768 fi
859789af
AC
9769fi
9770
9a819804
AO
9771
9772
0c24b341
NC
9773if test -n "$WINDMC"; then
9774 ac_cv_prog_WINDMC=$WINDMC
9775elif test -n "$ac_cv_prog_WINDMC"; then
9776 WINDMC=$ac_cv_prog_WINDMC
9777fi
9778
9779if test -n "$ac_cv_prog_WINDMC"; then
9780 for ncn_progname in windmc; do
9781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9782set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9784$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9785if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9786 $as_echo_n "(cached) " >&6
0c24b341
NC
9787else
9788 if test -n "$WINDMC"; then
9789 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9790else
9791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9792for as_dir in $PATH
9793do
9794 IFS=$as_save_IFS
9795 test -z "$as_dir" && as_dir=.
81ecdfbb 9796 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9798 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9800 break 2
9801 fi
9802done
81ecdfbb
RW
9803 done
9804IFS=$as_save_IFS
0c24b341
NC
9805
9806fi
9807fi
9808WINDMC=$ac_cv_prog_WINDMC
9809if test -n "$WINDMC"; then
81ecdfbb
RW
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9811$as_echo "$WINDMC" >&6; }
0c24b341 9812else
81ecdfbb
RW
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9814$as_echo "no" >&6; }
0c24b341
NC
9815fi
9816
81ecdfbb 9817
0c24b341
NC
9818 done
9819fi
9820
9821for ncn_progname in windmc; do
9822 if test -n "$ncn_tool_prefix"; then
9823 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9824set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9826$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9827if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9828 $as_echo_n "(cached) " >&6
0c24b341
NC
9829else
9830 if test -n "$WINDMC"; then
9831 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9832else
9833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9834for as_dir in $PATH
9835do
9836 IFS=$as_save_IFS
9837 test -z "$as_dir" && as_dir=.
81ecdfbb 9838 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9840 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9842 break 2
9843 fi
9844done
81ecdfbb
RW
9845 done
9846IFS=$as_save_IFS
0c24b341
NC
9847
9848fi
9849fi
9850WINDMC=$ac_cv_prog_WINDMC
9851if test -n "$WINDMC"; then
81ecdfbb
RW
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9853$as_echo "$WINDMC" >&6; }
0c24b341 9854else
81ecdfbb
RW
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9856$as_echo "no" >&6; }
0c24b341
NC
9857fi
9858
81ecdfbb 9859
0c24b341
NC
9860 fi
9861 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9863set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9865$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9866if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9867 $as_echo_n "(cached) " >&6
0c24b341
NC
9868else
9869 if test -n "$WINDMC"; then
9870 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9871else
9872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873for as_dir in $PATH
9874do
9875 IFS=$as_save_IFS
9876 test -z "$as_dir" && as_dir=.
81ecdfbb 9877 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9879 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9881 break 2
9882 fi
9883done
81ecdfbb
RW
9884 done
9885IFS=$as_save_IFS
0c24b341
NC
9886
9887fi
9888fi
9889WINDMC=$ac_cv_prog_WINDMC
9890if test -n "$WINDMC"; then
81ecdfbb
RW
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9892$as_echo "$WINDMC" >&6; }
0c24b341 9893else
81ecdfbb
RW
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9895$as_echo "no" >&6; }
0c24b341
NC
9896fi
9897
81ecdfbb 9898
0c24b341
NC
9899 fi
9900 test -n "$ac_cv_prog_WINDMC" && break
9901done
9902
9903if test -z "$ac_cv_prog_WINDMC" ; then
9904 set dummy windmc
9905 if test $build = $host ; then
9906 WINDMC="$2"
9907 else
9908 WINDMC="${ncn_tool_prefix}$2"
9909 fi
9910fi
9911
9912
9913
9a819804
AO
9914if test -n "$OBJCOPY"; then
9915 ac_cv_prog_OBJCOPY=$OBJCOPY
9916elif test -n "$ac_cv_prog_OBJCOPY"; then
9917 OBJCOPY=$ac_cv_prog_OBJCOPY
9918fi
9919
9920if test -n "$ac_cv_prog_OBJCOPY"; then
9921 for ncn_progname in objcopy; do
9922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9923set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9925$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9926if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9927 $as_echo_n "(cached) " >&6
9a819804
AO
9928else
9929 if test -n "$OBJCOPY"; then
9930 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9931else
9932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9933for as_dir in $PATH
9934do
9935 IFS=$as_save_IFS
9936 test -z "$as_dir" && as_dir=.
81ecdfbb 9937 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9939 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9941 break 2
9942 fi
9943done
81ecdfbb
RW
9944 done
9945IFS=$as_save_IFS
9a819804
AO
9946
9947fi
9948fi
9949OBJCOPY=$ac_cv_prog_OBJCOPY
9950if test -n "$OBJCOPY"; then
81ecdfbb
RW
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9952$as_echo "$OBJCOPY" >&6; }
9a819804 9953else
81ecdfbb
RW
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955$as_echo "no" >&6; }
9a819804
AO
9956fi
9957
81ecdfbb 9958
9a819804
AO
9959 done
9960fi
9961
9962for ncn_progname in objcopy; do
05cbd757
PB
9963 if test -n "$ncn_tool_prefix"; then
9964 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9965set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9967$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9968if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9969 $as_echo_n "(cached) " >&6
859789af
AC
9970else
9971 if test -n "$OBJCOPY"; then
9972 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9973else
c6b750e1
DJ
9974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9975for as_dir in $PATH
9976do
9977 IFS=$as_save_IFS
9978 test -z "$as_dir" && as_dir=.
81ecdfbb 9979 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9981 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9983 break 2
9984 fi
9985done
81ecdfbb
RW
9986 done
9987IFS=$as_save_IFS
c6b750e1 9988
859789af
AC
9989fi
9990fi
c6b750e1 9991OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9992if test -n "$OBJCOPY"; then
81ecdfbb
RW
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9994$as_echo "$OBJCOPY" >&6; }
859789af 9995else
81ecdfbb
RW
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997$as_echo "no" >&6; }
859789af
AC
9998fi
9999
81ecdfbb 10000
05cbd757
PB
10001 fi
10002 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
10003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10004set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10006$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10007if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 10008 $as_echo_n "(cached) " >&6
859789af 10009else
05cbd757
PB
10010 if test -n "$OBJCOPY"; then
10011 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 10012else
c6b750e1
DJ
10013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10014for as_dir in $PATH
10015do
10016 IFS=$as_save_IFS
10017 test -z "$as_dir" && as_dir=.
81ecdfbb 10018 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10020 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 10021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10022 break 2
10023 fi
10024done
81ecdfbb
RW
10025 done
10026IFS=$as_save_IFS
c6b750e1 10027
859789af
AC
10028fi
10029fi
c6b750e1 10030OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 10031if test -n "$OBJCOPY"; then
81ecdfbb
RW
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10033$as_echo "$OBJCOPY" >&6; }
859789af 10034else
81ecdfbb
RW
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10036$as_echo "no" >&6; }
859789af 10037fi
c6b750e1 10038
81ecdfbb 10039
05cbd757
PB
10040 fi
10041 test -n "$ac_cv_prog_OBJCOPY" && break
10042done
10043
10044if test -z "$ac_cv_prog_OBJCOPY" ; then
10045 set dummy objcopy
10046 if test $build = $host ; then
10047 OBJCOPY="$2"
859789af 10048 else
05cbd757 10049 OBJCOPY="${ncn_tool_prefix}$2"
859789af 10050 fi
859789af
AC
10051fi
10052
9a819804
AO
10053
10054
10055if test -n "$OBJDUMP"; then
10056 ac_cv_prog_OBJDUMP=$OBJDUMP
10057elif test -n "$ac_cv_prog_OBJDUMP"; then
10058 OBJDUMP=$ac_cv_prog_OBJDUMP
10059fi
10060
10061if test -n "$ac_cv_prog_OBJDUMP"; then
10062 for ncn_progname in objdump; do
10063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10064set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10066$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10067if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 10068 $as_echo_n "(cached) " >&6
9a819804
AO
10069else
10070 if test -n "$OBJDUMP"; then
10071 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10072else
10073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10074for as_dir in $PATH
10075do
10076 IFS=$as_save_IFS
10077 test -z "$as_dir" && as_dir=.
81ecdfbb 10078 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10080 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 10081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10082 break 2
10083 fi
10084done
81ecdfbb
RW
10085 done
10086IFS=$as_save_IFS
9a819804
AO
10087
10088fi
10089fi
10090OBJDUMP=$ac_cv_prog_OBJDUMP
10091if test -n "$OBJDUMP"; then
81ecdfbb
RW
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10093$as_echo "$OBJDUMP" >&6; }
9a819804 10094else
81ecdfbb
RW
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10096$as_echo "no" >&6; }
9a819804
AO
10097fi
10098
81ecdfbb 10099
9a819804
AO
10100 done
10101fi
10102
10103for ncn_progname in objdump; do
05cbd757
PB
10104 if test -n "$ncn_tool_prefix"; then
10105 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10106set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10108$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10109if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 10110 $as_echo_n "(cached) " >&6
859789af
AC
10111else
10112 if test -n "$OBJDUMP"; then
10113 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10114else
c6b750e1
DJ
10115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10116for as_dir in $PATH
10117do
10118 IFS=$as_save_IFS
10119 test -z "$as_dir" && as_dir=.
81ecdfbb 10120 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10122 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 10123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10124 break 2
10125 fi
10126done
81ecdfbb
RW
10127 done
10128IFS=$as_save_IFS
c6b750e1 10129
859789af
AC
10130fi
10131fi
c6b750e1 10132OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 10133if test -n "$OBJDUMP"; then
81ecdfbb
RW
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10135$as_echo "$OBJDUMP" >&6; }
859789af 10136else
81ecdfbb
RW
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10138$as_echo "no" >&6; }
859789af
AC
10139fi
10140
81ecdfbb 10141
05cbd757
PB
10142 fi
10143 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10145set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10147$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10148if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 10149 $as_echo_n "(cached) " >&6
859789af 10150else
05cbd757
PB
10151 if test -n "$OBJDUMP"; then
10152 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 10153else
c6b750e1
DJ
10154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155for as_dir in $PATH
10156do
10157 IFS=$as_save_IFS
10158 test -z "$as_dir" && as_dir=.
81ecdfbb 10159 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10161 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 10162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10163 break 2
10164 fi
10165done
81ecdfbb
RW
10166 done
10167IFS=$as_save_IFS
c6b750e1 10168
859789af
AC
10169fi
10170fi
c6b750e1 10171OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 10172if test -n "$OBJDUMP"; then
81ecdfbb
RW
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10174$as_echo "$OBJDUMP" >&6; }
859789af 10175else
81ecdfbb
RW
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177$as_echo "no" >&6; }
859789af 10178fi
c6b750e1 10179
81ecdfbb 10180
05cbd757
PB
10181 fi
10182 test -n "$ac_cv_prog_OBJDUMP" && break
10183done
10184
10185if test -z "$ac_cv_prog_OBJDUMP" ; then
10186 set dummy objdump
10187 if test $build = $host ; then
10188 OBJDUMP="$2"
859789af 10189 else
05cbd757 10190 OBJDUMP="${ncn_tool_prefix}$2"
859789af 10191 fi
859789af
AC
10192fi
10193
a0da8069
NN
10194
10195
b121d7d4
DD
10196if test -n "$READELF"; then
10197 ac_cv_prog_READELF=$READELF
10198elif test -n "$ac_cv_prog_READELF"; then
10199 READELF=$ac_cv_prog_READELF
10200fi
10201
10202if test -n "$ac_cv_prog_READELF"; then
10203 for ncn_progname in readelf; do
10204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10205set dummy ${ncn_progname}; ac_word=$2
10206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10207$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10208if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
10209 $as_echo_n "(cached) " >&6
10210else
10211 if test -n "$READELF"; then
10212 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10213else
10214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10215for as_dir in $PATH
10216do
10217 IFS=$as_save_IFS
10218 test -z "$as_dir" && as_dir=.
10219 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
10221 ac_cv_prog_READELF="${ncn_progname}"
10222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10223 break 2
10224 fi
10225done
10226 done
10227IFS=$as_save_IFS
10228
10229fi
10230fi
10231READELF=$ac_cv_prog_READELF
10232if test -n "$READELF"; then
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10234$as_echo "$READELF" >&6; }
10235else
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10237$as_echo "no" >&6; }
10238fi
10239
10240
10241 done
10242fi
10243
10244for ncn_progname in readelf; do
10245 if test -n "$ncn_tool_prefix"; then
10246 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10247set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10249$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10250if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
10251 $as_echo_n "(cached) " >&6
10252else
10253 if test -n "$READELF"; then
10254 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10255else
10256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10257for as_dir in $PATH
10258do
10259 IFS=$as_save_IFS
10260 test -z "$as_dir" && as_dir=.
10261 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
10263 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10265 break 2
10266 fi
10267done
10268 done
10269IFS=$as_save_IFS
10270
10271fi
10272fi
10273READELF=$ac_cv_prog_READELF
10274if test -n "$READELF"; then
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10276$as_echo "$READELF" >&6; }
10277else
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10279$as_echo "no" >&6; }
10280fi
10281
10282
10283 fi
10284 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10286set dummy ${ncn_progname}; ac_word=$2
10287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10289if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
10290 $as_echo_n "(cached) " >&6
10291else
10292 if test -n "$READELF"; then
10293 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10294else
10295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296for as_dir in $PATH
10297do
10298 IFS=$as_save_IFS
10299 test -z "$as_dir" && as_dir=.
10300 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
10302 ac_cv_prog_READELF="${ncn_progname}"
10303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10304 break 2
10305 fi
10306done
10307 done
10308IFS=$as_save_IFS
10309
10310fi
10311fi
10312READELF=$ac_cv_prog_READELF
10313if test -n "$READELF"; then
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10315$as_echo "$READELF" >&6; }
10316else
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318$as_echo "no" >&6; }
10319fi
10320
10321
10322 fi
10323 test -n "$ac_cv_prog_READELF" && break
10324done
10325
10326if test -z "$ac_cv_prog_READELF" ; then
10327 set dummy readelf
10328 if test $build = $host ; then
10329 READELF="$2"
10330 else
10331 READELF="${ncn_tool_prefix}$2"
10332 fi
10333fi
10334
10335
10336
a0da8069
NN
10337
10338
10339
de83289e 10340
50ad1254
L
10341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
10342$as_echo_n "checking for -plugin option... " >&6; }
10343
10344plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
10345plugin_option=
10346for plugin in $plugin_names; do
10347 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
10348 if test x$plugin_so = x$plugin; then
10349 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
10350 fi
10351 if test x$plugin_so != x$plugin; then
10352 plugin_option="--plugin $plugin_so"
10353 break
10354 fi
10355done
03c02f31
L
10356if test -n "$ac_tool_prefix"; then
10357 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10358set dummy ${ac_tool_prefix}ar; ac_word=$2
10359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10360$as_echo_n "checking for $ac_word... " >&6; }
10361if ${ac_cv_prog_AR+:} false; then :
10362 $as_echo_n "(cached) " >&6
10363else
10364 if test -n "$AR"; then
10365 ac_cv_prog_AR="$AR" # Let the user override the test.
10366else
10367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10368for as_dir in $PATH
10369do
10370 IFS=$as_save_IFS
10371 test -z "$as_dir" && as_dir=.
10372 for ac_exec_ext in '' $ac_executable_extensions; do
10373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10374 ac_cv_prog_AR="${ac_tool_prefix}ar"
10375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10376 break 2
10377 fi
10378done
10379 done
10380IFS=$as_save_IFS
10381
10382fi
10383fi
10384AR=$ac_cv_prog_AR
10385if test -n "$AR"; then
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10387$as_echo "$AR" >&6; }
10388else
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10390$as_echo "no" >&6; }
10391fi
10392
10393
10394fi
10395if test -z "$ac_cv_prog_AR"; then
10396 ac_ct_AR=$AR
10397 # Extract the first word of "ar", so it can be a program name with args.
10398set dummy ar; ac_word=$2
10399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10400$as_echo_n "checking for $ac_word... " >&6; }
10401if ${ac_cv_prog_ac_ct_AR+:} false; then :
10402 $as_echo_n "(cached) " >&6
10403else
10404 if test -n "$ac_ct_AR"; then
10405 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10406else
10407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10408for as_dir in $PATH
10409do
10410 IFS=$as_save_IFS
10411 test -z "$as_dir" && as_dir=.
10412 for ac_exec_ext in '' $ac_executable_extensions; do
10413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10414 ac_cv_prog_ac_ct_AR="ar"
10415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10416 break 2
10417 fi
10418done
10419 done
10420IFS=$as_save_IFS
10421
10422fi
10423fi
10424ac_ct_AR=$ac_cv_prog_ac_ct_AR
10425if test -n "$ac_ct_AR"; then
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10427$as_echo "$ac_ct_AR" >&6; }
10428else
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10430$as_echo "no" >&6; }
10431fi
10432
10433 if test "x$ac_ct_AR" = x; then
10434 AR=""
10435 else
10436 case $cross_compiling:$ac_tool_warned in
10437yes:)
10438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10440ac_tool_warned=yes ;;
10441esac
10442 AR=$ac_ct_AR
10443 fi
10444else
10445 AR="$ac_cv_prog_AR"
10446fi
10447
10448if test "${AR}" = "" ; then
10449 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
10450fi
10451touch conftest.c
10452${AR} $plugin_option rc conftest.a conftest.c
10453if test "$?" != 0; then
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
10455$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
10456 plugin_option=
10457fi
10458rm -f conftest.*
50ad1254
L
10459if test -n "$plugin_option"; then
10460 PLUGIN_OPTION="$plugin_option"
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
10462$as_echo "$plugin_option" >&6; }
10463else
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465$as_echo "no" >&6; }
10466fi
10467
10468AR_PLUGIN_OPTION=
10469RANLIB_PLUGIN_OPTION=
10470if test -n "$PLUGIN_OPTION"; then
10471 if $AR --help 2>&1 | grep -q "\--plugin"; then
10472 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
10473 fi
10474 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
10475 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
10476 fi
44124a46
L
10477else
10478 if test "$enable_pgo_build" != "no"; then
10479 as_fn_error $? "AR with --plugin and rc is required for LTO build" "$LINENO" 5
10480 fi
50ad1254
L
10481fi
10482
10483
10484
be01d343 10485# Target tools.
c6b750e1 10486
81ecdfbb
RW
10487# Check whether --with-build-time-tools was given.
10488if test "${with_build_time_tools+set}" = set; then :
10489 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
10490 x/*) ;;
10491 *)
10492 with_build_time_tools=
81ecdfbb
RW
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10494$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
10495 ;;
10496 esac
859789af 10497else
2429c060 10498 with_build_time_tools=
81ecdfbb
RW
10499fi
10500
859789af 10501
9a819804
AO
10502
10503
10504if test -n "$CC_FOR_TARGET"; then
10505 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10506elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10507 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10508fi
10509
10510if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10511 for ncn_progname in cc gcc; do
10512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10513set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10516if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10517 $as_echo_n "(cached) " >&6
9a819804
AO
10518else
10519 if test -n "$CC_FOR_TARGET"; then
10520 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10521else
10522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10523for as_dir in $PATH
10524do
10525 IFS=$as_save_IFS
10526 test -z "$as_dir" && as_dir=.
81ecdfbb 10527 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10529 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10531 break 2
10532 fi
10533done
81ecdfbb
RW
10534 done
10535IFS=$as_save_IFS
9a819804
AO
10536
10537fi
10538fi
10539CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10540if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10542$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 10543else
81ecdfbb
RW
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545$as_echo "no" >&6; }
9a819804
AO
10546fi
10547
81ecdfbb 10548
9a819804
AO
10549 done
10550fi
10551
10552if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10553 for ncn_progname in cc gcc; do
81ecdfbb
RW
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10555$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10556 if test -x $with_build_time_tools/${ncn_progname}; then
10557 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10559$as_echo "yes" >&6; }
cac3d6c4 10560 break
2429c060 10561 else
81ecdfbb
RW
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563$as_echo "no" >&6; }
cac3d6c4
CM
10564 fi
10565 done
55db4b87
PB
10566fi
10567
2429c060
PB
10568if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10569 for ncn_progname in cc gcc; do
10570 if test -n "$ncn_target_tool_prefix"; then
10571 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10572set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10574$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10575if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10576 $as_echo_n "(cached) " >&6
55db4b87
PB
10577else
10578 if test -n "$CC_FOR_TARGET"; then
10579 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10580else
c6b750e1
DJ
10581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582for as_dir in $PATH
10583do
10584 IFS=$as_save_IFS
10585 test -z "$as_dir" && as_dir=.
81ecdfbb 10586 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10588 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10590 break 2
10591 fi
10592done
81ecdfbb
RW
10593 done
10594IFS=$as_save_IFS
c6b750e1 10595
55db4b87
PB
10596fi
10597fi
c6b750e1 10598CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 10599if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10601$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10602else
81ecdfbb
RW
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10604$as_echo "no" >&6; }
55db4b87
PB
10605fi
10606
81ecdfbb 10607
2429c060
PB
10608 fi
10609 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10611set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10613$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10614if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10615 $as_echo_n "(cached) " >&6
55db4b87 10616else
05cbd757
PB
10617 if test -n "$CC_FOR_TARGET"; then
10618 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 10619else
c6b750e1
DJ
10620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10621for as_dir in $PATH
10622do
10623 IFS=$as_save_IFS
10624 test -z "$as_dir" && as_dir=.
81ecdfbb 10625 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10627 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10629 break 2
10630 fi
10631done
81ecdfbb
RW
10632 done
10633IFS=$as_save_IFS
c6b750e1 10634
55db4b87
PB
10635fi
10636fi
c6b750e1 10637CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 10638if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10640$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10641else
81ecdfbb
RW
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10643$as_echo "no" >&6; }
55db4b87 10644fi
c6b750e1 10645
81ecdfbb 10646
2429c060
PB
10647 fi
10648 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10649 done
10650fi
c6b750e1 10651
05cbd757
PB
10652if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10653 set dummy cc gcc
10654 if test $build = $target ; then
10655 CC_FOR_TARGET="$2"
55db4b87 10656 else
05cbd757 10657 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10658 fi
d3f5afc4
MS
10659else
10660 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10661fi
10662
9a819804
AO
10663
10664
10665if test -n "$CXX_FOR_TARGET"; then
10666 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10667elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10668 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10669fi
10670
10671if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10672 for ncn_progname in c++ g++ cxx gxx; do
10673 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10674set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10676$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10677if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10678 $as_echo_n "(cached) " >&6
9a819804
AO
10679else
10680 if test -n "$CXX_FOR_TARGET"; then
10681 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10682else
10683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684for as_dir in $PATH
10685do
10686 IFS=$as_save_IFS
10687 test -z "$as_dir" && as_dir=.
81ecdfbb 10688 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10690 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10692 break 2
10693 fi
10694done
81ecdfbb
RW
10695 done
10696IFS=$as_save_IFS
9a819804
AO
10697
10698fi
10699fi
10700CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10701if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10703$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10704else
81ecdfbb
RW
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706$as_echo "no" >&6; }
9a819804
AO
10707fi
10708
81ecdfbb 10709
9a819804
AO
10710 done
10711fi
10712
10713if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10714 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10716$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10717 if test -x $with_build_time_tools/${ncn_progname}; then
10718 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10720$as_echo "yes" >&6; }
2429c060
PB
10721 break
10722 else
81ecdfbb
RW
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724$as_echo "no" >&6; }
2429c060
PB
10725 fi
10726 done
10727fi
10728
10729if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10730 for ncn_progname in c++ g++ cxx gxx; do
10731 if test -n "$ncn_target_tool_prefix"; then
10732 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10733set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10735$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10736if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10737 $as_echo_n "(cached) " >&6
55db4b87
PB
10738else
10739 if test -n "$CXX_FOR_TARGET"; then
10740 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10741else
c6b750e1
DJ
10742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10743for as_dir in $PATH
10744do
10745 IFS=$as_save_IFS
10746 test -z "$as_dir" && as_dir=.
81ecdfbb 10747 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10749 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10751 break 2
10752 fi
10753done
81ecdfbb
RW
10754 done
10755IFS=$as_save_IFS
c6b750e1 10756
55db4b87
PB
10757fi
10758fi
c6b750e1 10759CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10760if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10762$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10763else
81ecdfbb
RW
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10765$as_echo "no" >&6; }
55db4b87
PB
10766fi
10767
81ecdfbb 10768
2429c060
PB
10769 fi
10770 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10772set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10774$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10775if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10776 $as_echo_n "(cached) " >&6
55db4b87 10777else
05cbd757
PB
10778 if test -n "$CXX_FOR_TARGET"; then
10779 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10780else
c6b750e1
DJ
10781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10782for as_dir in $PATH
10783do
10784 IFS=$as_save_IFS
10785 test -z "$as_dir" && as_dir=.
81ecdfbb 10786 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10788 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10790 break 2
10791 fi
10792done
81ecdfbb
RW
10793 done
10794IFS=$as_save_IFS
c6b750e1 10795
55db4b87
PB
10796fi
10797fi
c6b750e1 10798CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10799if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10801$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10802else
81ecdfbb
RW
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10804$as_echo "no" >&6; }
55db4b87 10805fi
c6b750e1 10806
81ecdfbb 10807
2429c060
PB
10808 fi
10809 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10810 done
10811fi
c6b750e1 10812
05cbd757
PB
10813if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10814 set dummy c++ g++ cxx gxx
10815 if test $build = $target ; then
10816 CXX_FOR_TARGET="$2"
55db4b87 10817 else
05cbd757 10818 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10819 fi
d3f5afc4
MS
10820else
10821 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10822fi
10823
9a819804
AO
10824
10825
10826if test -n "$GCC_FOR_TARGET"; then
10827 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10828elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10829 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10830fi
10831
10832if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10833 for ncn_progname in gcc; do
10834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10835set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10837$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10838if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10839 $as_echo_n "(cached) " >&6
9a819804
AO
10840else
10841 if test -n "$GCC_FOR_TARGET"; then
10842 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10843else
10844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10845for as_dir in $PATH
10846do
10847 IFS=$as_save_IFS
10848 test -z "$as_dir" && as_dir=.
81ecdfbb 10849 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10851 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10853 break 2
10854 fi
10855done
81ecdfbb
RW
10856 done
10857IFS=$as_save_IFS
9a819804
AO
10858
10859fi
10860fi
10861GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10862if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10864$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10865else
81ecdfbb
RW
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867$as_echo "no" >&6; }
9a819804
AO
10868fi
10869
81ecdfbb 10870
9a819804
AO
10871 done
10872fi
10873
10874if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10875 for ncn_progname in gcc; do
81ecdfbb
RW
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10877$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10878 if test -x $with_build_time_tools/${ncn_progname}; then
10879 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10881$as_echo "yes" >&6; }
2429c060
PB
10882 break
10883 else
81ecdfbb
RW
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10885$as_echo "no" >&6; }
2429c060
PB
10886 fi
10887 done
10888fi
10889
10890if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10891 for ncn_progname in gcc; do
10892 if test -n "$ncn_target_tool_prefix"; then
10893 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10894set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10896$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10897if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10898 $as_echo_n "(cached) " >&6
859789af 10899else
2429c060
PB
10900 if test -n "$GCC_FOR_TARGET"; then
10901 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10902else
c6b750e1
DJ
10903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10904for as_dir in $PATH
10905do
10906 IFS=$as_save_IFS
10907 test -z "$as_dir" && as_dir=.
81ecdfbb 10908 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10910 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10912 break 2
10913 fi
10914done
81ecdfbb
RW
10915 done
10916IFS=$as_save_IFS
c6b750e1 10917
55db4b87
PB
10918fi
10919fi
c6b750e1 10920GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10921if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10923$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10924else
81ecdfbb
RW
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926$as_echo "no" >&6; }
55db4b87
PB
10927fi
10928
81ecdfbb 10929
2429c060
PB
10930 fi
10931 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10933set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10935$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10936if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10937 $as_echo_n "(cached) " >&6
55db4b87 10938else
05cbd757
PB
10939 if test -n "$GCC_FOR_TARGET"; then
10940 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10941else
c6b750e1
DJ
10942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10943for as_dir in $PATH
10944do
10945 IFS=$as_save_IFS
10946 test -z "$as_dir" && as_dir=.
81ecdfbb 10947 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10949 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10951 break 2
10952 fi
10953done
81ecdfbb
RW
10954 done
10955IFS=$as_save_IFS
c6b750e1 10956
55db4b87
PB
10957fi
10958fi
c6b750e1 10959GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10960if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10962$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10963else
81ecdfbb
RW
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10965$as_echo "no" >&6; }
55db4b87 10966fi
c6b750e1 10967
81ecdfbb 10968
2429c060
PB
10969 fi
10970 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10971 done
10972fi
c6b750e1 10973
05cbd757
PB
10974if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10975 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10976else
10977 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10978fi
10979
9a819804
AO
10980
10981
9a819804
AO
10982if test -n "$GFORTRAN_FOR_TARGET"; then
10983 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10984elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10985 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10986fi
10987
9a819804
AO
10988if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10989 for ncn_progname in gfortran; do
10990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10991set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10993$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10994if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10995 $as_echo_n "(cached) " >&6
55db4b87 10996else
9a819804
AO
10997 if test -n "$GFORTRAN_FOR_TARGET"; then
10998 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10999else
c6b750e1
DJ
11000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001for as_dir in $PATH
11002do
11003 IFS=$as_save_IFS
11004 test -z "$as_dir" && as_dir=.
81ecdfbb 11005 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11007 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 11008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11009 break 2
11010 fi
11011done
81ecdfbb
RW
11012 done
11013IFS=$as_save_IFS
c6b750e1 11014
55db4b87
PB
11015fi
11016fi
9a819804
AO
11017GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11018if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11020$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 11021else
81ecdfbb
RW
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023$as_echo "no" >&6; }
55db4b87 11024fi
c6b750e1 11025
81ecdfbb 11026
2429c060
PB
11027 done
11028fi
c6b750e1 11029
9a819804 11030if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11031 for ncn_progname in gfortran; do
81ecdfbb
RW
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11033$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11034 if test -x $with_build_time_tools/${ncn_progname}; then
11035 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11037$as_echo "yes" >&6; }
2429c060
PB
11038 break
11039 else
81ecdfbb
RW
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041$as_echo "no" >&6; }
2429c060
PB
11042 fi
11043 done
11044fi
11045
11046if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
11047 for ncn_progname in gfortran; do
11048 if test -n "$ncn_target_tool_prefix"; then
11049 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11050set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11052$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11053if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 11054 $as_echo_n "(cached) " >&6
55db4b87
PB
11055else
11056 if test -n "$GFORTRAN_FOR_TARGET"; then
11057 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11058else
c6b750e1
DJ
11059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11060for as_dir in $PATH
11061do
11062 IFS=$as_save_IFS
11063 test -z "$as_dir" && as_dir=.
81ecdfbb 11064 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11066 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11068 break 2
11069 fi
11070done
81ecdfbb
RW
11071 done
11072IFS=$as_save_IFS
c6b750e1 11073
55db4b87
PB
11074fi
11075fi
c6b750e1 11076GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 11077if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11079$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 11080else
81ecdfbb
RW
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082$as_echo "no" >&6; }
55db4b87
PB
11083fi
11084
81ecdfbb 11085
2429c060
PB
11086 fi
11087 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11089set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11091$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11092if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 11093 $as_echo_n "(cached) " >&6
55db4b87 11094else
05cbd757 11095 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
11096 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11097else
11098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11099for as_dir in $PATH
11100do
11101 IFS=$as_save_IFS
11102 test -z "$as_dir" && as_dir=.
81ecdfbb 11103 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11105 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 11106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11107 break 2
11108 fi
11109done
81ecdfbb
RW
11110 done
11111IFS=$as_save_IFS
c6b750e1 11112
55db4b87
PB
11113fi
11114fi
c6b750e1 11115GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 11116if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11118$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 11119else
81ecdfbb
RW
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11121$as_echo "no" >&6; }
55db4b87 11122fi
c6b750e1 11123
81ecdfbb 11124
2429c060
PB
11125 fi
11126 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11127 done
11128fi
c6b750e1 11129
05cbd757
PB
11130if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11131 set dummy gfortran
11132 if test $build = $target ; then
11133 GFORTRAN_FOR_TARGET="$2"
55db4b87 11134 else
05cbd757 11135 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 11136 fi
d3f5afc4
MS
11137else
11138 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
11139fi
11140
2429c060
PB
11141
11142
e552509b
ILT
11143if test -n "$GOC_FOR_TARGET"; then
11144 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
11145elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11146 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11147fi
11148
11149if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11150 for ncn_progname in gccgo; do
11151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11152set dummy ${ncn_progname}; ac_word=$2
11153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11154$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11155if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
11156 $as_echo_n "(cached) " >&6
11157else
11158 if test -n "$GOC_FOR_TARGET"; then
11159 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11160else
11161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162for as_dir in $PATH
11163do
11164 IFS=$as_save_IFS
11165 test -z "$as_dir" && as_dir=.
11166 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
11168 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11170 break 2
11171 fi
11172done
11173 done
11174IFS=$as_save_IFS
11175
11176fi
11177fi
11178GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11179if test -n "$GOC_FOR_TARGET"; then
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11181$as_echo "$GOC_FOR_TARGET" >&6; }
11182else
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184$as_echo "no" >&6; }
11185fi
11186
11187
11188 done
11189fi
11190
11191if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11192 for ncn_progname in gccgo; do
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11194$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11195 if test -x $with_build_time_tools/${ncn_progname}; then
11196 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11198$as_echo "yes" >&6; }
11199 break
11200 else
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11202$as_echo "no" >&6; }
11203 fi
11204 done
11205fi
11206
11207if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
11208 for ncn_progname in gccgo; do
11209 if test -n "$ncn_target_tool_prefix"; then
11210 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11211set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11213$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11214if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
11215 $as_echo_n "(cached) " >&6
11216else
11217 if test -n "$GOC_FOR_TARGET"; then
11218 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11219else
11220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221for as_dir in $PATH
11222do
11223 IFS=$as_save_IFS
11224 test -z "$as_dir" && as_dir=.
11225 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
11227 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11229 break 2
11230 fi
11231done
11232 done
11233IFS=$as_save_IFS
11234
11235fi
11236fi
11237GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11238if test -n "$GOC_FOR_TARGET"; then
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11240$as_echo "$GOC_FOR_TARGET" >&6; }
11241else
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243$as_echo "no" >&6; }
11244fi
11245
11246
11247 fi
11248 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11249 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11250set dummy ${ncn_progname}; ac_word=$2
11251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11253if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
11254 $as_echo_n "(cached) " >&6
11255else
11256 if test -n "$GOC_FOR_TARGET"; then
11257 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11258else
11259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260for as_dir in $PATH
11261do
11262 IFS=$as_save_IFS
11263 test -z "$as_dir" && as_dir=.
11264 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
11266 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11268 break 2
11269 fi
11270done
11271 done
11272IFS=$as_save_IFS
11273
11274fi
11275fi
11276GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11277if test -n "$GOC_FOR_TARGET"; then
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11279$as_echo "$GOC_FOR_TARGET" >&6; }
11280else
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282$as_echo "no" >&6; }
11283fi
11284
11285
11286 fi
11287 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11288 done
11289fi
11290
11291if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11292 set dummy gccgo
11293 if test $build = $target ; then
11294 GOC_FOR_TARGET="$2"
11295 else
11296 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11297 fi
11298else
11299 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11300fi
11301
11302
11303
2429c060
PB
11304cat > conftest.c << \EOF
11305#ifdef __GNUC__
11306 gcc_yay;
11307#endif
11308EOF
11309if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11310 have_gcc_for_target=yes
859789af 11311else
2429c060
PB
11312 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11313 have_gcc_for_target=no
859789af 11314fi
2429c060
PB
11315rm conftest.c
11316
11317
11318
859789af 11319
2429c060
PB
11320if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11321 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11323$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11324 if test -x $with_build_time_tools/ar; then
11325 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11326 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11328$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 11329 else
81ecdfbb
RW
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331$as_echo "no" >&6; }
3a35eeb3 11332 fi
2429c060
PB
11333 elif test $build != $host && test $have_gcc_for_target = yes; then
11334 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
11335 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11336 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 11337 fi
2429c060 11338fi
c6b750e1 11339if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11340 # Extract the first word of "ar", so it can be a program name with args.
11341set dummy ar; ac_word=$2
81ecdfbb
RW
11342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11343$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11344if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
81ecdfbb 11345 $as_echo_n "(cached) " >&6
859789af 11346else
c6b750e1
DJ
11347 case $AR_FOR_TARGET in
11348 [\\/]* | ?:[\\/]*)
2429c060
PB
11349 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11350 ;;
2429c060 11351 *)
c6b750e1
DJ
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353for as_dir in $gcc_cv_tool_dirs
11354do
11355 IFS=$as_save_IFS
11356 test -z "$as_dir" && as_dir=.
81ecdfbb 11357 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11359 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11361 break 2
11362 fi
11363done
81ecdfbb
RW
11364 done
11365IFS=$as_save_IFS
c6b750e1 11366
2429c060
PB
11367 ;;
11368esac
859789af 11369fi
c6b750e1 11370AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 11371if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11373$as_echo "$AR_FOR_TARGET" >&6; }
859789af 11374else
81ecdfbb
RW
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376$as_echo "no" >&6; }
859789af 11377fi
05cbd757 11378
81ecdfbb 11379
2429c060
PB
11380fi
11381if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
11382
11383
11384if test -n "$AR_FOR_TARGET"; then
11385 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11386elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11387 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11388fi
11389
11390if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11391 for ncn_progname in ar; do
11392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11393set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11395$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11396if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 11397 $as_echo_n "(cached) " >&6
9a819804
AO
11398else
11399 if test -n "$AR_FOR_TARGET"; then
11400 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11401else
11402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11403for as_dir in $PATH
11404do
11405 IFS=$as_save_IFS
11406 test -z "$as_dir" && as_dir=.
81ecdfbb 11407 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11409 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11411 break 2
11412 fi
11413done
81ecdfbb
RW
11414 done
11415IFS=$as_save_IFS
9a819804
AO
11416
11417fi
11418fi
11419AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11420if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11422$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 11423else
81ecdfbb
RW
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11425$as_echo "no" >&6; }
9a819804
AO
11426fi
11427
81ecdfbb 11428
9a819804
AO
11429 done
11430fi
11431
11432if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11433 for ncn_progname in ar; do
81ecdfbb
RW
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11435$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11436 if test -x $with_build_time_tools/${ncn_progname}; then
11437 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11439$as_echo "yes" >&6; }
2429c060
PB
11440 break
11441 else
81ecdfbb
RW
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443$as_echo "no" >&6; }
2429c060
PB
11444 fi
11445 done
859789af
AC
11446fi
11447
2429c060
PB
11448if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11449 for ncn_progname in ar; do
11450 if test -n "$ncn_target_tool_prefix"; then
11451 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11452set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11454$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11455if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 11456 $as_echo_n "(cached) " >&6
7e0f7140 11457else
2429c060
PB
11458 if test -n "$AR_FOR_TARGET"; then
11459 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 11460else
c6b750e1
DJ
11461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462for as_dir in $PATH
11463do
11464 IFS=$as_save_IFS
11465 test -z "$as_dir" && as_dir=.
81ecdfbb 11466 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11468 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11470 break 2
11471 fi
11472done
81ecdfbb
RW
11473 done
11474IFS=$as_save_IFS
c6b750e1 11475
7e0f7140
GK
11476fi
11477fi
c6b750e1 11478AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11479if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11481$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11482else
81ecdfbb
RW
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11484$as_echo "no" >&6; }
7e0f7140
GK
11485fi
11486
81ecdfbb 11487
2429c060
PB
11488 fi
11489 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11491set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11493$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11494if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 11495 $as_echo_n "(cached) " >&6
7e0f7140 11496else
2429c060
PB
11497 if test -n "$AR_FOR_TARGET"; then
11498 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 11499else
c6b750e1
DJ
11500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501for as_dir in $PATH
11502do
11503 IFS=$as_save_IFS
11504 test -z "$as_dir" && as_dir=.
81ecdfbb 11505 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11507 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11509 break 2
11510 fi
11511done
81ecdfbb
RW
11512 done
11513IFS=$as_save_IFS
c6b750e1 11514
7e0f7140
GK
11515fi
11516fi
c6b750e1 11517AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11518if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11520$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11521else
81ecdfbb
RW
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523$as_echo "no" >&6; }
7e0f7140 11524fi
c6b750e1 11525
81ecdfbb 11526
2429c060
PB
11527 fi
11528 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11529 done
11530fi
c6b750e1 11531
2429c060
PB
11532if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11533 set dummy ar
7e0f7140 11534 if test $build = $target ; then
2429c060 11535 AR_FOR_TARGET="$2"
7e0f7140 11536 else
2429c060 11537 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 11538 fi
d3f5afc4
MS
11539else
11540 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
11541fi
11542
3a35eeb3
PB
11543else
11544 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
11545fi
11546
11547
11548
11549
11550if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11551 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11553$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11554 if test -x $with_build_time_tools/as; then
11555 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11556 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11558$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11559 else
81ecdfbb
RW
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561$as_echo "no" >&6; }
3a35eeb3 11562 fi
2429c060
PB
11563 elif test $build != $host && test $have_gcc_for_target = yes; then
11564 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11565 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11566 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11567 fi
11568fi
c6b750e1 11569if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11570 # Extract the first word of "as", so it can be a program name with args.
11571set dummy as; ac_word=$2
81ecdfbb
RW
11572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11573$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11574if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
81ecdfbb 11575 $as_echo_n "(cached) " >&6
2429c060 11576else
c6b750e1
DJ
11577 case $AS_FOR_TARGET in
11578 [\\/]* | ?:[\\/]*)
2429c060
PB
11579 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11580 ;;
2429c060 11581 *)
c6b750e1
DJ
11582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583for as_dir in $gcc_cv_tool_dirs
11584do
11585 IFS=$as_save_IFS
11586 test -z "$as_dir" && as_dir=.
81ecdfbb 11587 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11589 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11591 break 2
11592 fi
11593done
81ecdfbb
RW
11594 done
11595IFS=$as_save_IFS
c6b750e1 11596
2429c060
PB
11597 ;;
11598esac
11599fi
c6b750e1 11600AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11601if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11603$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11604else
81ecdfbb
RW
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606$as_echo "no" >&6; }
2429c060
PB
11607fi
11608
81ecdfbb 11609
2429c060
PB
11610fi
11611if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11612
11613
11614if test -n "$AS_FOR_TARGET"; then
11615 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11616elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11617 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11618fi
11619
11620if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11621 for ncn_progname in as; do
11622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11623set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11625$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11626if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11627 $as_echo_n "(cached) " >&6
9a819804
AO
11628else
11629 if test -n "$AS_FOR_TARGET"; then
11630 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11631else
11632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633for as_dir in $PATH
11634do
11635 IFS=$as_save_IFS
11636 test -z "$as_dir" && as_dir=.
81ecdfbb 11637 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11639 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11641 break 2
11642 fi
11643done
81ecdfbb
RW
11644 done
11645IFS=$as_save_IFS
9a819804
AO
11646
11647fi
11648fi
11649AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11650if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11652$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11653else
81ecdfbb
RW
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655$as_echo "no" >&6; }
9a819804
AO
11656fi
11657
81ecdfbb 11658
9a819804
AO
11659 done
11660fi
11661
11662if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11663 for ncn_progname in as; do
81ecdfbb
RW
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11665$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11666 if test -x $with_build_time_tools/${ncn_progname}; then
11667 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11669$as_echo "yes" >&6; }
2429c060
PB
11670 break
11671 else
81ecdfbb
RW
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673$as_echo "no" >&6; }
2429c060
PB
11674 fi
11675 done
11676fi
11677
11678if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11679 for ncn_progname in as; do
11680 if test -n "$ncn_target_tool_prefix"; then
11681 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11682set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11685if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11686 $as_echo_n "(cached) " >&6
2429c060
PB
11687else
11688 if test -n "$AS_FOR_TARGET"; then
11689 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11690else
c6b750e1
DJ
11691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692for as_dir in $PATH
11693do
11694 IFS=$as_save_IFS
11695 test -z "$as_dir" && as_dir=.
81ecdfbb 11696 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11698 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11700 break 2
11701 fi
11702done
81ecdfbb
RW
11703 done
11704IFS=$as_save_IFS
c6b750e1 11705
2429c060
PB
11706fi
11707fi
c6b750e1 11708AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11709if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11711$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11712else
81ecdfbb
RW
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714$as_echo "no" >&6; }
2429c060
PB
11715fi
11716
81ecdfbb 11717
2429c060
PB
11718 fi
11719 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11720 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11721set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11724if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11725 $as_echo_n "(cached) " >&6
2429c060
PB
11726else
11727 if test -n "$AS_FOR_TARGET"; then
11728 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11729else
c6b750e1
DJ
11730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731for as_dir in $PATH
11732do
11733 IFS=$as_save_IFS
11734 test -z "$as_dir" && as_dir=.
81ecdfbb 11735 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11737 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11739 break 2
11740 fi
11741done
81ecdfbb
RW
11742 done
11743IFS=$as_save_IFS
c6b750e1 11744
2429c060
PB
11745fi
11746fi
c6b750e1 11747AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11748if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11750$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11751else
81ecdfbb
RW
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753$as_echo "no" >&6; }
2429c060 11754fi
c6b750e1 11755
81ecdfbb 11756
2429c060
PB
11757 fi
11758 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11759 done
11760fi
c6b750e1 11761
2429c060
PB
11762if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11763 set dummy as
11764 if test $build = $target ; then
11765 AS_FOR_TARGET="$2"
11766 else
11767 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11768 fi
d3f5afc4
MS
11769else
11770 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11771fi
11772
3a35eeb3
PB
11773else
11774 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11775fi
11776
11777
11778
11779
11780if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11781 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11783$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11784 if test -x $with_build_time_tools/dlltool; then
11785 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11786 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11788$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11789 else
81ecdfbb
RW
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791$as_echo "no" >&6; }
3a35eeb3 11792 fi
2429c060
PB
11793 elif test $build != $host && test $have_gcc_for_target = yes; then
11794 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11795 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11796 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11797 fi
11798fi
c6b750e1 11799if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11800 # Extract the first word of "dlltool", so it can be a program name with args.
11801set dummy dlltool; ac_word=$2
81ecdfbb
RW
11802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11804if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11805 $as_echo_n "(cached) " >&6
2429c060 11806else
c6b750e1
DJ
11807 case $DLLTOOL_FOR_TARGET in
11808 [\\/]* | ?:[\\/]*)
2429c060
PB
11809 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11810 ;;
2429c060 11811 *)
c6b750e1
DJ
11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813for as_dir in $gcc_cv_tool_dirs
11814do
11815 IFS=$as_save_IFS
11816 test -z "$as_dir" && as_dir=.
81ecdfbb 11817 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11819 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11821 break 2
11822 fi
11823done
81ecdfbb
RW
11824 done
11825IFS=$as_save_IFS
c6b750e1 11826
2429c060
PB
11827 ;;
11828esac
11829fi
c6b750e1 11830DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11831if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11833$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11834else
81ecdfbb
RW
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836$as_echo "no" >&6; }
2429c060
PB
11837fi
11838
81ecdfbb 11839
2429c060
PB
11840fi
11841if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11842
11843
11844if test -n "$DLLTOOL_FOR_TARGET"; then
11845 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11846elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11847 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11848fi
11849
11850if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11851 for ncn_progname in dlltool; do
11852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11853set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11855$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11856if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11857 $as_echo_n "(cached) " >&6
9a819804
AO
11858else
11859 if test -n "$DLLTOOL_FOR_TARGET"; then
11860 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11861else
11862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863for as_dir in $PATH
11864do
11865 IFS=$as_save_IFS
11866 test -z "$as_dir" && as_dir=.
81ecdfbb 11867 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11869 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11871 break 2
11872 fi
11873done
81ecdfbb
RW
11874 done
11875IFS=$as_save_IFS
9a819804
AO
11876
11877fi
11878fi
11879DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11880if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11882$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11883else
81ecdfbb
RW
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885$as_echo "no" >&6; }
9a819804
AO
11886fi
11887
81ecdfbb 11888
9a819804
AO
11889 done
11890fi
11891
11892if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11893 for ncn_progname in dlltool; do
81ecdfbb
RW
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11895$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11896 if test -x $with_build_time_tools/${ncn_progname}; then
11897 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11899$as_echo "yes" >&6; }
2429c060
PB
11900 break
11901 else
81ecdfbb
RW
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903$as_echo "no" >&6; }
2429c060
PB
11904 fi
11905 done
11906fi
11907
11908if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11909 for ncn_progname in dlltool; do
11910 if test -n "$ncn_target_tool_prefix"; then
11911 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11912set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11915if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11916 $as_echo_n "(cached) " >&6
2429c060
PB
11917else
11918 if test -n "$DLLTOOL_FOR_TARGET"; then
11919 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11920else
c6b750e1
DJ
11921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922for as_dir in $PATH
11923do
11924 IFS=$as_save_IFS
11925 test -z "$as_dir" && as_dir=.
81ecdfbb 11926 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11928 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11930 break 2
11931 fi
11932done
81ecdfbb
RW
11933 done
11934IFS=$as_save_IFS
c6b750e1 11935
2429c060
PB
11936fi
11937fi
c6b750e1 11938DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11939if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11941$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11942else
81ecdfbb
RW
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944$as_echo "no" >&6; }
2429c060
PB
11945fi
11946
81ecdfbb 11947
2429c060
PB
11948 fi
11949 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11951set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11954if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11955 $as_echo_n "(cached) " >&6
2429c060
PB
11956else
11957 if test -n "$DLLTOOL_FOR_TARGET"; then
11958 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11959else
c6b750e1
DJ
11960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961for as_dir in $PATH
11962do
11963 IFS=$as_save_IFS
11964 test -z "$as_dir" && as_dir=.
81ecdfbb 11965 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11967 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11969 break 2
11970 fi
11971done
81ecdfbb
RW
11972 done
11973IFS=$as_save_IFS
c6b750e1 11974
2429c060
PB
11975fi
11976fi
c6b750e1 11977DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11978if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11980$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11981else
81ecdfbb
RW
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983$as_echo "no" >&6; }
2429c060 11984fi
c6b750e1 11985
81ecdfbb 11986
2429c060
PB
11987 fi
11988 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11989 done
11990fi
c6b750e1 11991
2429c060
PB
11992if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11993 set dummy dlltool
11994 if test $build = $target ; then
11995 DLLTOOL_FOR_TARGET="$2"
11996 else
11997 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11998 fi
d3f5afc4
MS
11999else
12000 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
12001fi
12002
3a35eeb3
PB
12003else
12004 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
12005fi
12006
12007
12008
12009
12010if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12011 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
12013$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12014 if test -x $with_build_time_tools/ld; then
12015 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
12016 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
12018$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 12019 else
81ecdfbb
RW
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021$as_echo "no" >&6; }
3a35eeb3 12022 fi
2429c060
PB
12023 elif test $build != $host && test $have_gcc_for_target = yes; then
12024 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
12025 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
12026 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
12027 fi
12028fi
c6b750e1 12029if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12030 # Extract the first word of "ld", so it can be a program name with args.
12031set dummy ld; ac_word=$2
81ecdfbb
RW
12032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12033$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12034if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
81ecdfbb 12035 $as_echo_n "(cached) " >&6
2429c060 12036else
c6b750e1
DJ
12037 case $LD_FOR_TARGET in
12038 [\\/]* | ?:[\\/]*)
2429c060
PB
12039 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
12040 ;;
2429c060 12041 *)
c6b750e1
DJ
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043for as_dir in $gcc_cv_tool_dirs
12044do
12045 IFS=$as_save_IFS
12046 test -z "$as_dir" && as_dir=.
81ecdfbb 12047 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12049 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12051 break 2
12052 fi
12053done
81ecdfbb
RW
12054 done
12055IFS=$as_save_IFS
c6b750e1 12056
2429c060
PB
12057 ;;
12058esac
12059fi
c6b750e1 12060LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 12061if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12063$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 12064else
81ecdfbb
RW
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066$as_echo "no" >&6; }
2429c060
PB
12067fi
12068
81ecdfbb 12069
2429c060
PB
12070fi
12071if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
12072
12073
12074if test -n "$LD_FOR_TARGET"; then
12075 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
12076elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12077 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12078fi
12079
12080if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12081 for ncn_progname in ld; do
12082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12083set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12085$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12086if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 12087 $as_echo_n "(cached) " >&6
9a819804
AO
12088else
12089 if test -n "$LD_FOR_TARGET"; then
12090 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12091else
12092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093for as_dir in $PATH
12094do
12095 IFS=$as_save_IFS
12096 test -z "$as_dir" && as_dir=.
81ecdfbb 12097 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12099 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 12100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12101 break 2
12102 fi
12103done
81ecdfbb
RW
12104 done
12105IFS=$as_save_IFS
9a819804
AO
12106
12107fi
12108fi
12109LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12110if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12112$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 12113else
81ecdfbb
RW
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115$as_echo "no" >&6; }
9a819804
AO
12116fi
12117
81ecdfbb 12118
9a819804
AO
12119 done
12120fi
12121
12122if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12123 for ncn_progname in ld; do
81ecdfbb
RW
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12125$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12126 if test -x $with_build_time_tools/${ncn_progname}; then
12127 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12129$as_echo "yes" >&6; }
2429c060
PB
12130 break
12131 else
81ecdfbb
RW
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133$as_echo "no" >&6; }
2429c060
PB
12134 fi
12135 done
12136fi
12137
12138if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12139 for ncn_progname in ld; do
12140 if test -n "$ncn_target_tool_prefix"; then
12141 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12142set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12144$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12145if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 12146 $as_echo_n "(cached) " >&6
2429c060
PB
12147else
12148 if test -n "$LD_FOR_TARGET"; then
12149 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12150else
c6b750e1
DJ
12151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12152for as_dir in $PATH
12153do
12154 IFS=$as_save_IFS
12155 test -z "$as_dir" && as_dir=.
81ecdfbb 12156 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12158 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12160 break 2
12161 fi
12162done
81ecdfbb
RW
12163 done
12164IFS=$as_save_IFS
c6b750e1 12165
2429c060
PB
12166fi
12167fi
c6b750e1 12168LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 12169if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12171$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 12172else
81ecdfbb
RW
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174$as_echo "no" >&6; }
2429c060
PB
12175fi
12176
81ecdfbb 12177
2429c060
PB
12178 fi
12179 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12181set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12183$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12184if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 12185 $as_echo_n "(cached) " >&6
2429c060
PB
12186else
12187 if test -n "$LD_FOR_TARGET"; then
12188 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12189else
c6b750e1
DJ
12190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191for as_dir in $PATH
12192do
12193 IFS=$as_save_IFS
12194 test -z "$as_dir" && as_dir=.
81ecdfbb 12195 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12197 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 12198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12199 break 2
12200 fi
12201done
81ecdfbb
RW
12202 done
12203IFS=$as_save_IFS
c6b750e1 12204
2429c060
PB
12205fi
12206fi
c6b750e1 12207LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 12208if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12210$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 12211else
81ecdfbb
RW
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213$as_echo "no" >&6; }
2429c060 12214fi
c6b750e1 12215
81ecdfbb 12216
2429c060
PB
12217 fi
12218 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12219 done
12220fi
c6b750e1 12221
2429c060
PB
12222if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12223 set dummy ld
12224 if test $build = $target ; then
12225 LD_FOR_TARGET="$2"
12226 else
12227 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12228 fi
d3f5afc4
MS
12229else
12230 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
12231fi
12232
3a35eeb3
PB
12233else
12234 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
12235fi
12236
12237
12238
12239
12240if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12241 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12243$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12244 if test -x $with_build_time_tools/lipo; then
12245 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12246 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12248$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 12249 else
81ecdfbb
RW
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251$as_echo "no" >&6; }
3a35eeb3 12252 fi
2429c060
PB
12253 elif test $build != $host && test $have_gcc_for_target = yes; then
12254 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
12255 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12256 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
12257 fi
12258fi
9a819804
AO
12259if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12260 # Extract the first word of "lipo", so it can be a program name with args.
12261set dummy lipo; ac_word=$2
81ecdfbb
RW
12262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12263$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12264if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12265 $as_echo_n "(cached) " >&6
9a819804
AO
12266else
12267 case $LIPO_FOR_TARGET in
12268 [\\/]* | ?:[\\/]*)
12269 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12270 ;;
12271 *)
12272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273for as_dir in $gcc_cv_tool_dirs
12274do
12275 IFS=$as_save_IFS
12276 test -z "$as_dir" && as_dir=.
81ecdfbb 12277 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12279 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12281 break 2
12282 fi
12283done
81ecdfbb
RW
12284 done
12285IFS=$as_save_IFS
9a819804
AO
12286
12287 ;;
12288esac
12289fi
12290LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 12291if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12293$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 12294else
81ecdfbb
RW
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296$as_echo "no" >&6; }
9a819804
AO
12297fi
12298
81ecdfbb 12299
9a819804
AO
12300fi
12301if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12302
12303
12304if test -n "$LIPO_FOR_TARGET"; then
12305 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12306elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12307 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12308fi
12309
12310if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12311 for ncn_progname in lipo; do
12312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12313set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12315$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12316if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12317 $as_echo_n "(cached) " >&6
2429c060 12318else
9a819804
AO
12319 if test -n "$LIPO_FOR_TARGET"; then
12320 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12321else
12322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12323for as_dir in $PATH
c6b750e1
DJ
12324do
12325 IFS=$as_save_IFS
12326 test -z "$as_dir" && as_dir=.
81ecdfbb 12327 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12329 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 12330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12331 break 2
12332 fi
12333done
81ecdfbb
RW
12334 done
12335IFS=$as_save_IFS
c6b750e1 12336
2429c060 12337fi
9a819804
AO
12338fi
12339LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12340if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12342$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12343else
81ecdfbb
RW
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345$as_echo "no" >&6; }
2429c060
PB
12346fi
12347
81ecdfbb 12348
9a819804 12349 done
2429c060 12350fi
9a819804
AO
12351
12352if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12353 for ncn_progname in lipo; do
81ecdfbb
RW
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12355$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12356 if test -x $with_build_time_tools/${ncn_progname}; then
12357 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12359$as_echo "yes" >&6; }
2429c060
PB
12360 break
12361 else
81ecdfbb
RW
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363$as_echo "no" >&6; }
2429c060
PB
12364 fi
12365 done
12366fi
12367
12368if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12369 for ncn_progname in lipo; do
12370 if test -n "$ncn_target_tool_prefix"; then
12371 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12372set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12374$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12375if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12376 $as_echo_n "(cached) " >&6
2429c060
PB
12377else
12378 if test -n "$LIPO_FOR_TARGET"; then
12379 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12380else
c6b750e1
DJ
12381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382for as_dir in $PATH
12383do
12384 IFS=$as_save_IFS
12385 test -z "$as_dir" && as_dir=.
81ecdfbb 12386 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12388 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12390 break 2
12391 fi
12392done
81ecdfbb
RW
12393 done
12394IFS=$as_save_IFS
c6b750e1 12395
2429c060
PB
12396fi
12397fi
c6b750e1 12398LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12399if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12401$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12402else
81ecdfbb
RW
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404$as_echo "no" >&6; }
2429c060
PB
12405fi
12406
81ecdfbb 12407
2429c060
PB
12408 fi
12409 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12411set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12413$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12414if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12415 $as_echo_n "(cached) " >&6
2429c060
PB
12416else
12417 if test -n "$LIPO_FOR_TARGET"; then
12418 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12419else
c6b750e1
DJ
12420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12421for as_dir in $PATH
12422do
12423 IFS=$as_save_IFS
12424 test -z "$as_dir" && as_dir=.
81ecdfbb 12425 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12427 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 12428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12429 break 2
12430 fi
12431done
81ecdfbb
RW
12432 done
12433IFS=$as_save_IFS
c6b750e1 12434
2429c060
PB
12435fi
12436fi
c6b750e1 12437LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12438if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12440$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12441else
81ecdfbb
RW
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443$as_echo "no" >&6; }
2429c060 12444fi
c6b750e1 12445
81ecdfbb 12446
2429c060
PB
12447 fi
12448 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12449 done
12450fi
c6b750e1 12451
2429c060
PB
12452if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12453 set dummy lipo
12454 if test $build = $target ; then
12455 LIPO_FOR_TARGET="$2"
12456 else
12457 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12458 fi
d3f5afc4
MS
12459else
12460 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
12461fi
12462
3a35eeb3
PB
12463else
12464 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
12465fi
12466
12467
12468
12469
12470if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12471 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12473$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12474 if test -x $with_build_time_tools/nm; then
12475 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12476 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12478$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 12479 else
81ecdfbb
RW
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481$as_echo "no" >&6; }
3a35eeb3 12482 fi
2429c060
PB
12483 elif test $build != $host && test $have_gcc_for_target = yes; then
12484 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
12485 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12486 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
12487 fi
12488fi
c6b750e1 12489if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12490 # Extract the first word of "nm", so it can be a program name with args.
12491set dummy nm; ac_word=$2
81ecdfbb
RW
12492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12493$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12494if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
81ecdfbb 12495 $as_echo_n "(cached) " >&6
2429c060 12496else
c6b750e1
DJ
12497 case $NM_FOR_TARGET in
12498 [\\/]* | ?:[\\/]*)
2429c060
PB
12499 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12500 ;;
2429c060 12501 *)
c6b750e1
DJ
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503for as_dir in $gcc_cv_tool_dirs
12504do
12505 IFS=$as_save_IFS
12506 test -z "$as_dir" && as_dir=.
81ecdfbb 12507 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12509 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12511 break 2
12512 fi
12513done
81ecdfbb
RW
12514 done
12515IFS=$as_save_IFS
c6b750e1 12516
2429c060
PB
12517 ;;
12518esac
12519fi
c6b750e1 12520NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 12521if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12523$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 12524else
81ecdfbb
RW
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526$as_echo "no" >&6; }
2429c060
PB
12527fi
12528
81ecdfbb 12529
2429c060
PB
12530fi
12531if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
12532
12533
12534if test -n "$NM_FOR_TARGET"; then
12535 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12536elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12537 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12538fi
12539
12540if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12541 for ncn_progname in nm; do
12542 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12543set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12545$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12546if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12547 $as_echo_n "(cached) " >&6
9a819804
AO
12548else
12549 if test -n "$NM_FOR_TARGET"; then
12550 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12551else
12552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12553for as_dir in $PATH
12554do
12555 IFS=$as_save_IFS
12556 test -z "$as_dir" && as_dir=.
81ecdfbb 12557 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12559 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12561 break 2
12562 fi
12563done
81ecdfbb
RW
12564 done
12565IFS=$as_save_IFS
9a819804
AO
12566
12567fi
12568fi
12569NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12570if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12572$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12573else
81ecdfbb
RW
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575$as_echo "no" >&6; }
9a819804
AO
12576fi
12577
81ecdfbb 12578
9a819804
AO
12579 done
12580fi
12581
12582if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12583 for ncn_progname in nm; do
81ecdfbb
RW
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12585$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12586 if test -x $with_build_time_tools/${ncn_progname}; then
12587 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12589$as_echo "yes" >&6; }
2429c060
PB
12590 break
12591 else
81ecdfbb
RW
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593$as_echo "no" >&6; }
2429c060
PB
12594 fi
12595 done
12596fi
12597
12598if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12599 for ncn_progname in nm; do
12600 if test -n "$ncn_target_tool_prefix"; then
12601 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12602set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12604$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12605if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12606 $as_echo_n "(cached) " >&6
859789af 12607else
55db4b87
PB
12608 if test -n "$NM_FOR_TARGET"; then
12609 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12610else
c6b750e1
DJ
12611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612for as_dir in $PATH
12613do
12614 IFS=$as_save_IFS
12615 test -z "$as_dir" && as_dir=.
81ecdfbb 12616 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12618 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12620 break 2
12621 fi
12622done
81ecdfbb
RW
12623 done
12624IFS=$as_save_IFS
c6b750e1 12625
859789af
AC
12626fi
12627fi
c6b750e1 12628NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12629if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12631$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12632else
81ecdfbb
RW
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634$as_echo "no" >&6; }
859789af
AC
12635fi
12636
81ecdfbb 12637
2429c060
PB
12638 fi
12639 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12641set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12644if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12645 $as_echo_n "(cached) " >&6
859789af 12646else
05cbd757
PB
12647 if test -n "$NM_FOR_TARGET"; then
12648 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12649else
c6b750e1
DJ
12650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651for as_dir in $PATH
12652do
12653 IFS=$as_save_IFS
12654 test -z "$as_dir" && as_dir=.
81ecdfbb 12655 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12657 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12659 break 2
12660 fi
12661done
81ecdfbb
RW
12662 done
12663IFS=$as_save_IFS
c6b750e1 12664
859789af
AC
12665fi
12666fi
c6b750e1 12667NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12668if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12670$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12671else
81ecdfbb
RW
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673$as_echo "no" >&6; }
859789af 12674fi
c6b750e1 12675
81ecdfbb 12676
2429c060
PB
12677 fi
12678 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12679 done
12680fi
c6b750e1 12681
05cbd757
PB
12682if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12683 set dummy nm
12684 if test $build = $target ; then
12685 NM_FOR_TARGET="$2"
859789af 12686 else
05cbd757 12687 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12688 fi
d3f5afc4
MS
12689else
12690 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12691fi
12692
3a35eeb3
PB
12693else
12694 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12695fi
12696
12697
12698
12699
6b91c541
AP
12700if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12701 if test -n "$with_build_time_tools"; then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12703$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12704 if test -x $with_build_time_tools/objcopy; then
12705 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12706 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12708$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12709 else
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12711$as_echo "no" >&6; }
12712 fi
12713 elif test $build != $host && test $have_gcc_for_target = yes; then
12714 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12715 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12716 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12717 fi
12718fi
12719if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12720 # Extract the first word of "objcopy", so it can be a program name with args.
12721set dummy objcopy; ac_word=$2
12722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12723$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12724if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12725 $as_echo_n "(cached) " >&6
12726else
12727 case $OBJCOPY_FOR_TARGET in
12728 [\\/]* | ?:[\\/]*)
12729 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12730 ;;
12731 *)
12732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733for as_dir in $gcc_cv_tool_dirs
12734do
12735 IFS=$as_save_IFS
12736 test -z "$as_dir" && as_dir=.
12737 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12739 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12741 break 2
12742 fi
12743done
12744 done
12745IFS=$as_save_IFS
12746
12747 ;;
12748esac
12749fi
12750OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12751if test -n "$OBJCOPY_FOR_TARGET"; then
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12753$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12754else
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756$as_echo "no" >&6; }
12757fi
12758
12759
12760fi
12761if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12762
12763
12764if test -n "$OBJCOPY_FOR_TARGET"; then
12765 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12766elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12767 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12768fi
12769
12770if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12771 for ncn_progname in objcopy; do
12772 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12773set dummy ${ncn_progname}; ac_word=$2
12774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12775$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12776if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12777 $as_echo_n "(cached) " >&6
12778else
12779 if test -n "$OBJCOPY_FOR_TARGET"; then
12780 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12781else
12782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12783for as_dir in $PATH
12784do
12785 IFS=$as_save_IFS
12786 test -z "$as_dir" && as_dir=.
12787 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12789 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12791 break 2
12792 fi
12793done
12794 done
12795IFS=$as_save_IFS
12796
12797fi
12798fi
12799OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12800if test -n "$OBJCOPY_FOR_TARGET"; then
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12802$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12803else
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805$as_echo "no" >&6; }
12806fi
12807
12808
12809 done
12810fi
12811
12812if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12813 for ncn_progname in objcopy; do
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12815$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12816 if test -x $with_build_time_tools/${ncn_progname}; then
12817 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12819$as_echo "yes" >&6; }
12820 break
12821 else
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823$as_echo "no" >&6; }
12824 fi
12825 done
12826fi
12827
12828if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12829 for ncn_progname in objcopy; do
12830 if test -n "$ncn_target_tool_prefix"; then
12831 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12832set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12834$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12835if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12836 $as_echo_n "(cached) " >&6
12837else
12838 if test -n "$OBJCOPY_FOR_TARGET"; then
12839 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12840else
12841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842for as_dir in $PATH
12843do
12844 IFS=$as_save_IFS
12845 test -z "$as_dir" && as_dir=.
12846 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12848 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12850 break 2
12851 fi
12852done
12853 done
12854IFS=$as_save_IFS
12855
12856fi
12857fi
12858OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12859if test -n "$OBJCOPY_FOR_TARGET"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12861$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12862else
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864$as_echo "no" >&6; }
12865fi
12866
12867
12868 fi
12869 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12871set dummy ${ncn_progname}; ac_word=$2
12872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12874if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12875 $as_echo_n "(cached) " >&6
12876else
12877 if test -n "$OBJCOPY_FOR_TARGET"; then
12878 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12879else
12880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881for as_dir in $PATH
12882do
12883 IFS=$as_save_IFS
12884 test -z "$as_dir" && as_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12887 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889 break 2
12890 fi
12891done
12892 done
12893IFS=$as_save_IFS
12894
12895fi
12896fi
12897OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12898if test -n "$OBJCOPY_FOR_TARGET"; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12900$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12901else
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903$as_echo "no" >&6; }
12904fi
12905
12906
12907 fi
12908 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12909 done
12910fi
12911
12912if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12913 set dummy objcopy
12914 if test $build = $target ; then
12915 OBJCOPY_FOR_TARGET="$2"
12916 else
12917 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12918 fi
12919else
12920 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12921fi
12922
12923else
12924 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12925fi
12926
12927
12928
12929
2429c060
PB
12930if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12931 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12933$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12934 if test -x $with_build_time_tools/objdump; then
12935 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12936 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12938$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12939 else
81ecdfbb
RW
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941$as_echo "no" >&6; }
3a35eeb3 12942 fi
2429c060
PB
12943 elif test $build != $host && test $have_gcc_for_target = yes; then
12944 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12945 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12946 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12947 fi
12948fi
c6b750e1 12949if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12950 # Extract the first word of "objdump", so it can be a program name with args.
12951set dummy objdump; ac_word=$2
81ecdfbb
RW
12952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12953$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12954if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12955 $as_echo_n "(cached) " >&6
2429c060 12956else
c6b750e1
DJ
12957 case $OBJDUMP_FOR_TARGET in
12958 [\\/]* | ?:[\\/]*)
2429c060
PB
12959 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12960 ;;
2429c060 12961 *)
c6b750e1
DJ
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963for as_dir in $gcc_cv_tool_dirs
12964do
12965 IFS=$as_save_IFS
12966 test -z "$as_dir" && as_dir=.
81ecdfbb 12967 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12969 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12971 break 2
12972 fi
12973done
81ecdfbb
RW
12974 done
12975IFS=$as_save_IFS
c6b750e1 12976
2429c060
PB
12977 ;;
12978esac
12979fi
c6b750e1 12980OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12981if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12983$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12984else
81ecdfbb
RW
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986$as_echo "no" >&6; }
2429c060
PB
12987fi
12988
81ecdfbb 12989
2429c060
PB
12990fi
12991if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12992
12993
12994if test -n "$OBJDUMP_FOR_TARGET"; then
12995 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12996elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12997 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12998fi
12999
13000if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13001 for ncn_progname in objdump; do
13002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13003set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13005$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13006if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 13007 $as_echo_n "(cached) " >&6
9a819804
AO
13008else
13009 if test -n "$OBJDUMP_FOR_TARGET"; then
13010 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13011else
13012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013for as_dir in $PATH
13014do
13015 IFS=$as_save_IFS
13016 test -z "$as_dir" && as_dir=.
81ecdfbb 13017 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13019 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13021 break 2
13022 fi
13023done
81ecdfbb
RW
13024 done
13025IFS=$as_save_IFS
9a819804
AO
13026
13027fi
13028fi
13029OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13030if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13032$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 13033else
81ecdfbb
RW
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13035$as_echo "no" >&6; }
9a819804
AO
13036fi
13037
81ecdfbb 13038
9a819804
AO
13039 done
13040fi
13041
13042if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13043 for ncn_progname in objdump; do
81ecdfbb
RW
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13045$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13046 if test -x $with_build_time_tools/${ncn_progname}; then
13047 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13049$as_echo "yes" >&6; }
2429c060
PB
13050 break
13051 else
81ecdfbb
RW
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053$as_echo "no" >&6; }
2429c060
PB
13054 fi
13055 done
13056fi
13057
13058if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13059 for ncn_progname in objdump; do
13060 if test -n "$ncn_target_tool_prefix"; then
13061 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13062set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13065if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 13066 $as_echo_n "(cached) " >&6
5ae72758
DJ
13067else
13068 if test -n "$OBJDUMP_FOR_TARGET"; then
13069 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13070else
c6b750e1
DJ
13071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072for as_dir in $PATH
13073do
13074 IFS=$as_save_IFS
13075 test -z "$as_dir" && as_dir=.
81ecdfbb 13076 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13078 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13080 break 2
13081 fi
13082done
81ecdfbb
RW
13083 done
13084IFS=$as_save_IFS
c6b750e1 13085
5ae72758
DJ
13086fi
13087fi
c6b750e1 13088OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 13089if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13091$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 13092else
81ecdfbb
RW
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094$as_echo "no" >&6; }
5ae72758
DJ
13095fi
13096
81ecdfbb 13097
2429c060
PB
13098 fi
13099 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
13100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 13101set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13103$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13104if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 13105 $as_echo_n "(cached) " >&6
5ae72758
DJ
13106else
13107 if test -n "$OBJDUMP_FOR_TARGET"; then
13108 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13109else
c6b750e1
DJ
13110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111for as_dir in $PATH
13112do
13113 IFS=$as_save_IFS
13114 test -z "$as_dir" && as_dir=.
81ecdfbb 13115 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13117 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13119 break 2
13120 fi
13121done
81ecdfbb
RW
13122 done
13123IFS=$as_save_IFS
c6b750e1 13124
5ae72758
DJ
13125fi
13126fi
c6b750e1 13127OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 13128if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13130$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 13131else
81ecdfbb
RW
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133$as_echo "no" >&6; }
5ae72758 13134fi
c6b750e1 13135
81ecdfbb 13136
2429c060
PB
13137 fi
13138 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
13139 done
13140fi
c6b750e1 13141
5ae72758
DJ
13142if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
13143 set dummy objdump
13144 if test $build = $target ; then
13145 OBJDUMP_FOR_TARGET="$2"
13146 else
13147 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13148 fi
d3f5afc4
MS
13149else
13150 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
13151fi
13152
3a35eeb3
PB
13153else
13154 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
13155fi
13156
13157
13158
13159
13160if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13161 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13163$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13164 if test -x $with_build_time_tools/ranlib; then
13165 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13166 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13168$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 13169 else
81ecdfbb
RW
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13171$as_echo "no" >&6; }
3a35eeb3 13172 fi
2429c060
PB
13173 elif test $build != $host && test $have_gcc_for_target = yes; then
13174 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
13175 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13176 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
13177 fi
13178fi
c6b750e1 13179if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13180 # Extract the first word of "ranlib", so it can be a program name with args.
13181set dummy ranlib; ac_word=$2
81ecdfbb
RW
13182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13183$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13184if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 13185 $as_echo_n "(cached) " >&6
2429c060 13186else
c6b750e1
DJ
13187 case $RANLIB_FOR_TARGET in
13188 [\\/]* | ?:[\\/]*)
2429c060
PB
13189 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13190 ;;
2429c060 13191 *)
c6b750e1
DJ
13192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193for as_dir in $gcc_cv_tool_dirs
13194do
13195 IFS=$as_save_IFS
13196 test -z "$as_dir" && as_dir=.
81ecdfbb 13197 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13199 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13201 break 2
13202 fi
13203done
81ecdfbb
RW
13204 done
13205IFS=$as_save_IFS
c6b750e1 13206
2429c060
PB
13207 ;;
13208esac
13209fi
c6b750e1 13210RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 13211if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13213$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 13214else
81ecdfbb
RW
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216$as_echo "no" >&6; }
2429c060
PB
13217fi
13218
81ecdfbb 13219
2429c060
PB
13220fi
13221if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
13222
13223
13224if test -n "$RANLIB_FOR_TARGET"; then
13225 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13226elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13227 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13228fi
13229
13230if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13231 for ncn_progname in ranlib; do
13232 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13233set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13235$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13236if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 13237 $as_echo_n "(cached) " >&6
9a819804
AO
13238else
13239 if test -n "$RANLIB_FOR_TARGET"; then
13240 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13241else
13242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13243for as_dir in $PATH
13244do
13245 IFS=$as_save_IFS
13246 test -z "$as_dir" && as_dir=.
81ecdfbb 13247 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13249 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 13250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13251 break 2
13252 fi
13253done
81ecdfbb
RW
13254 done
13255IFS=$as_save_IFS
9a819804
AO
13256
13257fi
13258fi
13259RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13260if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13262$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 13263else
81ecdfbb
RW
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265$as_echo "no" >&6; }
9a819804
AO
13266fi
13267
81ecdfbb 13268
9a819804
AO
13269 done
13270fi
13271
13272if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13273 for ncn_progname in ranlib; do
81ecdfbb
RW
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13275$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13276 if test -x $with_build_time_tools/${ncn_progname}; then
13277 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13279$as_echo "yes" >&6; }
2429c060
PB
13280 break
13281 else
81ecdfbb
RW
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283$as_echo "no" >&6; }
2429c060
PB
13284 fi
13285 done
13286fi
13287
13288if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13289 for ncn_progname in ranlib; do
13290 if test -n "$ncn_target_tool_prefix"; then
13291 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 13292set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13294$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13295if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 13296 $as_echo_n "(cached) " >&6
859789af 13297else
55db4b87
PB
13298 if test -n "$RANLIB_FOR_TARGET"; then
13299 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 13300else
c6b750e1
DJ
13301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302for as_dir in $PATH
13303do
13304 IFS=$as_save_IFS
13305 test -z "$as_dir" && as_dir=.
81ecdfbb 13306 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13308 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13310 break 2
13311 fi
13312done
81ecdfbb
RW
13313 done
13314IFS=$as_save_IFS
c6b750e1 13315
859789af
AC
13316fi
13317fi
c6b750e1 13318RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 13319if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13321$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 13322else
81ecdfbb
RW
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13324$as_echo "no" >&6; }
859789af
AC
13325fi
13326
81ecdfbb 13327
2429c060
PB
13328 fi
13329 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13331set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13333$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13334if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 13335 $as_echo_n "(cached) " >&6
859789af 13336else
05cbd757
PB
13337 if test -n "$RANLIB_FOR_TARGET"; then
13338 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 13339else
c6b750e1
DJ
13340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13341for as_dir in $PATH
13342do
13343 IFS=$as_save_IFS
13344 test -z "$as_dir" && as_dir=.
81ecdfbb 13345 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13347 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 13348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13349 break 2
13350 fi
13351done
81ecdfbb
RW
13352 done
13353IFS=$as_save_IFS
c6b750e1 13354
859789af
AC
13355fi
13356fi
c6b750e1 13357RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 13358if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13360$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 13361else
81ecdfbb
RW
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363$as_echo "no" >&6; }
859789af 13364fi
c6b750e1 13365
81ecdfbb 13366
2429c060
PB
13367 fi
13368 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13369 done
13370fi
c6b750e1 13371
2429c060
PB
13372if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13373 set dummy ranlib
13374 if test $build = $target ; then
13375 RANLIB_FOR_TARGET="$2"
13376 else
13377 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13378 fi
d3f5afc4
MS
13379else
13380 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 13381fi
05cbd757 13382
3a35eeb3
PB
13383else
13384 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
13385fi
13386
2429c060
PB
13387
13388
13389
b121d7d4
DD
13390if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13391 if test -n "$with_build_time_tools"; then
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13393$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13394 if test -x $with_build_time_tools/readelf; then
13395 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13396 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13398$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13399 else
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13401$as_echo "no" >&6; }
13402 fi
13403 elif test $build != $host && test $have_gcc_for_target = yes; then
13404 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13405 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13406 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13407 fi
13408fi
13409if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13410 # Extract the first word of "readelf", so it can be a program name with args.
13411set dummy readelf; ac_word=$2
13412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13413$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13414if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13415 $as_echo_n "(cached) " >&6
13416else
13417 case $READELF_FOR_TARGET in
13418 [\\/]* | ?:[\\/]*)
13419 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13420 ;;
13421 *)
13422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13423for as_dir in $gcc_cv_tool_dirs
13424do
13425 IFS=$as_save_IFS
13426 test -z "$as_dir" && as_dir=.
13427 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13429 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13431 break 2
13432 fi
13433done
13434 done
13435IFS=$as_save_IFS
13436
13437 ;;
13438esac
13439fi
13440READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13441if test -n "$READELF_FOR_TARGET"; then
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13443$as_echo "$READELF_FOR_TARGET" >&6; }
13444else
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446$as_echo "no" >&6; }
13447fi
13448
13449
13450fi
13451if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13452
13453
13454if test -n "$READELF_FOR_TARGET"; then
13455 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13456elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13457 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13458fi
13459
13460if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13461 for ncn_progname in readelf; do
13462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13463set dummy ${ncn_progname}; ac_word=$2
13464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13465$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13466if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13467 $as_echo_n "(cached) " >&6
13468else
13469 if test -n "$READELF_FOR_TARGET"; then
13470 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13471else
13472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13473for as_dir in $PATH
13474do
13475 IFS=$as_save_IFS
13476 test -z "$as_dir" && as_dir=.
13477 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13479 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13481 break 2
13482 fi
13483done
13484 done
13485IFS=$as_save_IFS
13486
13487fi
13488fi
13489READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13490if test -n "$READELF_FOR_TARGET"; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13492$as_echo "$READELF_FOR_TARGET" >&6; }
13493else
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13495$as_echo "no" >&6; }
13496fi
13497
13498
13499 done
13500fi
13501
13502if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13503 for ncn_progname in readelf; do
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13505$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13506 if test -x $with_build_time_tools/${ncn_progname}; then
13507 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13509$as_echo "yes" >&6; }
13510 break
13511 else
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13513$as_echo "no" >&6; }
13514 fi
13515 done
13516fi
13517
13518if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13519 for ncn_progname in readelf; do
13520 if test -n "$ncn_target_tool_prefix"; then
13521 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13522set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13524$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13525if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13526 $as_echo_n "(cached) " >&6
13527else
13528 if test -n "$READELF_FOR_TARGET"; then
13529 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13530else
13531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13532for as_dir in $PATH
13533do
13534 IFS=$as_save_IFS
13535 test -z "$as_dir" && as_dir=.
13536 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13538 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13540 break 2
13541 fi
13542done
13543 done
13544IFS=$as_save_IFS
13545
13546fi
13547fi
13548READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13549if test -n "$READELF_FOR_TARGET"; then
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13551$as_echo "$READELF_FOR_TARGET" >&6; }
13552else
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13554$as_echo "no" >&6; }
13555fi
13556
13557
13558 fi
13559 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13561set dummy ${ncn_progname}; ac_word=$2
13562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13563$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13564if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13565 $as_echo_n "(cached) " >&6
13566else
13567 if test -n "$READELF_FOR_TARGET"; then
13568 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13569else
13570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571for as_dir in $PATH
13572do
13573 IFS=$as_save_IFS
13574 test -z "$as_dir" && as_dir=.
13575 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13577 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13579 break 2
13580 fi
13581done
13582 done
13583IFS=$as_save_IFS
13584
13585fi
13586fi
13587READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13588if test -n "$READELF_FOR_TARGET"; then
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13590$as_echo "$READELF_FOR_TARGET" >&6; }
13591else
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593$as_echo "no" >&6; }
13594fi
13595
13596
13597 fi
13598 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13599 done
13600fi
13601
13602if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13603 set dummy readelf
13604 if test $build = $target ; then
13605 READELF_FOR_TARGET="$2"
13606 else
13607 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13608 fi
13609else
13610 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13611fi
13612
13613else
13614 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13615fi
13616
13617
13618
13619
2429c060
PB
13620if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13621 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13623$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13624 if test -x $with_build_time_tools/strip; then
13625 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13626 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13628$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 13629 else
81ecdfbb
RW
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13631$as_echo "no" >&6; }
3a35eeb3 13632 fi
2429c060
PB
13633 elif test $build != $host && test $have_gcc_for_target = yes; then
13634 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
13635 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13636 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
13637 fi
13638fi
c6b750e1 13639if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13640 # Extract the first word of "strip", so it can be a program name with args.
13641set dummy strip; ac_word=$2
81ecdfbb
RW
13642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13643$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13644if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13645 $as_echo_n "(cached) " >&6
2429c060 13646else
c6b750e1
DJ
13647 case $STRIP_FOR_TARGET in
13648 [\\/]* | ?:[\\/]*)
2429c060
PB
13649 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13650 ;;
2429c060 13651 *)
c6b750e1
DJ
13652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13653for as_dir in $gcc_cv_tool_dirs
13654do
13655 IFS=$as_save_IFS
13656 test -z "$as_dir" && as_dir=.
81ecdfbb 13657 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13659 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13661 break 2
13662 fi
13663done
81ecdfbb
RW
13664 done
13665IFS=$as_save_IFS
c6b750e1 13666
2429c060
PB
13667 ;;
13668esac
13669fi
c6b750e1 13670STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 13671if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13673$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 13674else
81ecdfbb
RW
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13676$as_echo "no" >&6; }
2429c060
PB
13677fi
13678
81ecdfbb 13679
2429c060
PB
13680fi
13681if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
13682
13683
13684if test -n "$STRIP_FOR_TARGET"; then
13685 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13686elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13687 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13688fi
13689
13690if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13691 for ncn_progname in strip; do
13692 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13693set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13695$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13696if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13697 $as_echo_n "(cached) " >&6
9a819804
AO
13698else
13699 if test -n "$STRIP_FOR_TARGET"; then
13700 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13701else
13702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13703for as_dir in $PATH
13704do
13705 IFS=$as_save_IFS
13706 test -z "$as_dir" && as_dir=.
81ecdfbb 13707 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13709 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13711 break 2
13712 fi
13713done
81ecdfbb
RW
13714 done
13715IFS=$as_save_IFS
9a819804
AO
13716
13717fi
13718fi
13719STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13720if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13722$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13723else
81ecdfbb
RW
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13725$as_echo "no" >&6; }
9a819804
AO
13726fi
13727
81ecdfbb 13728
9a819804
AO
13729 done
13730fi
13731
13732if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13733 for ncn_progname in strip; do
81ecdfbb
RW
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13735$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13736 if test -x $with_build_time_tools/${ncn_progname}; then
13737 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13739$as_echo "yes" >&6; }
2429c060
PB
13740 break
13741 else
81ecdfbb
RW
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13743$as_echo "no" >&6; }
2429c060
PB
13744 fi
13745 done
13746fi
13747
13748if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13749 for ncn_progname in strip; do
13750 if test -n "$ncn_target_tool_prefix"; then
13751 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13752set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13754$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13755if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13756 $as_echo_n "(cached) " >&6
7e0f7140
GK
13757else
13758 if test -n "$STRIP_FOR_TARGET"; then
13759 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13760else
13761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13762for as_dir in $PATH
13763do
13764 IFS=$as_save_IFS
13765 test -z "$as_dir" && as_dir=.
81ecdfbb 13766 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13768 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13770 break 2
13771 fi
13772done
81ecdfbb
RW
13773 done
13774IFS=$as_save_IFS
c6b750e1 13775
7e0f7140
GK
13776fi
13777fi
c6b750e1 13778STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13779if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13781$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13782else
81ecdfbb
RW
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13784$as_echo "no" >&6; }
7e0f7140
GK
13785fi
13786
81ecdfbb 13787
2429c060
PB
13788 fi
13789 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13791set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13793$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13794if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13795 $as_echo_n "(cached) " >&6
7e0f7140
GK
13796else
13797 if test -n "$STRIP_FOR_TARGET"; then
13798 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13799else
c6b750e1
DJ
13800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13801for as_dir in $PATH
13802do
13803 IFS=$as_save_IFS
13804 test -z "$as_dir" && as_dir=.
81ecdfbb 13805 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13807 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13809 break 2
13810 fi
13811done
81ecdfbb
RW
13812 done
13813IFS=$as_save_IFS
c6b750e1 13814
7e0f7140
GK
13815fi
13816fi
c6b750e1 13817STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13818if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13820$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13821else
81ecdfbb
RW
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13823$as_echo "no" >&6; }
7e0f7140 13824fi
c6b750e1 13825
81ecdfbb 13826
2429c060
PB
13827 fi
13828 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13829 done
13830fi
c6b750e1 13831
7e0f7140
GK
13832if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13833 set dummy strip
13834 if test $build = $target ; then
13835 STRIP_FOR_TARGET="$2"
13836 else
13837 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13838 fi
d3f5afc4
MS
13839else
13840 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13841fi
13842
3a35eeb3
PB
13843else
13844 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13845fi
13846
13847
13848
13849
13850if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13851 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13853$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13854 if test -x $with_build_time_tools/windres; then
13855 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13856 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13858$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13859 else
81ecdfbb
RW
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13861$as_echo "no" >&6; }
3a35eeb3 13862 fi
2429c060
PB
13863 elif test $build != $host && test $have_gcc_for_target = yes; then
13864 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13865 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13866 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13867 fi
13868fi
c6b750e1 13869if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13870 # Extract the first word of "windres", so it can be a program name with args.
13871set dummy windres; ac_word=$2
81ecdfbb
RW
13872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13873$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13874if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13875 $as_echo_n "(cached) " >&6
2429c060 13876else
c6b750e1
DJ
13877 case $WINDRES_FOR_TARGET in
13878 [\\/]* | ?:[\\/]*)
2429c060
PB
13879 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13880 ;;
2429c060 13881 *)
c6b750e1
DJ
13882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13883for as_dir in $gcc_cv_tool_dirs
13884do
13885 IFS=$as_save_IFS
13886 test -z "$as_dir" && as_dir=.
81ecdfbb 13887 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13889 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13891 break 2
13892 fi
13893done
81ecdfbb
RW
13894 done
13895IFS=$as_save_IFS
c6b750e1 13896
2429c060
PB
13897 ;;
13898esac
13899fi
c6b750e1 13900WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13901if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13903$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13904else
81ecdfbb
RW
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13906$as_echo "no" >&6; }
2429c060
PB
13907fi
13908
81ecdfbb 13909
2429c060
PB
13910fi
13911if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13912
13913
13914if test -n "$WINDRES_FOR_TARGET"; then
13915 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13916elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13917 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13918fi
13919
13920if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13921 for ncn_progname in windres; do
13922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13923set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13925$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13926if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13927 $as_echo_n "(cached) " >&6
9a819804
AO
13928else
13929 if test -n "$WINDRES_FOR_TARGET"; then
13930 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13931else
13932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13933for as_dir in $PATH
13934do
13935 IFS=$as_save_IFS
13936 test -z "$as_dir" && as_dir=.
81ecdfbb 13937 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13939 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13941 break 2
13942 fi
13943done
81ecdfbb
RW
13944 done
13945IFS=$as_save_IFS
9a819804
AO
13946
13947fi
13948fi
13949WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13950if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13952$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13953else
81ecdfbb
RW
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13955$as_echo "no" >&6; }
9a819804
AO
13956fi
13957
81ecdfbb 13958
9a819804
AO
13959 done
13960fi
13961
13962if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13963 for ncn_progname in windres; do
81ecdfbb
RW
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13965$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13966 if test -x $with_build_time_tools/${ncn_progname}; then
13967 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13969$as_echo "yes" >&6; }
2429c060
PB
13970 break
13971 else
81ecdfbb
RW
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13973$as_echo "no" >&6; }
2429c060
PB
13974 fi
13975 done
13976fi
13977
13978if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13979 for ncn_progname in windres; do
13980 if test -n "$ncn_target_tool_prefix"; then
13981 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13982set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13984$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13985if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13986 $as_echo_n "(cached) " >&6
859789af 13987else
55db4b87
PB
13988 if test -n "$WINDRES_FOR_TARGET"; then
13989 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13990else
c6b750e1
DJ
13991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13992for as_dir in $PATH
13993do
13994 IFS=$as_save_IFS
13995 test -z "$as_dir" && as_dir=.
81ecdfbb 13996 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13998 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14000 break 2
14001 fi
14002done
81ecdfbb
RW
14003 done
14004IFS=$as_save_IFS
c6b750e1 14005
859789af
AC
14006fi
14007fi
c6b750e1 14008WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 14009if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14011$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 14012else
81ecdfbb
RW
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14014$as_echo "no" >&6; }
859789af
AC
14015fi
14016
81ecdfbb 14017
2429c060
PB
14018 fi
14019 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
14020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 14021set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14023$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14024if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 14025 $as_echo_n "(cached) " >&6
859789af 14026else
05cbd757
PB
14027 if test -n "$WINDRES_FOR_TARGET"; then
14028 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 14029else
c6b750e1
DJ
14030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14031for as_dir in $PATH
14032do
14033 IFS=$as_save_IFS
14034 test -z "$as_dir" && as_dir=.
81ecdfbb 14035 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14037 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 14038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14039 break 2
14040 fi
14041done
81ecdfbb
RW
14042 done
14043IFS=$as_save_IFS
c6b750e1 14044
859789af
AC
14045fi
14046fi
c6b750e1 14047WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 14048if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14050$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 14051else
81ecdfbb
RW
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14053$as_echo "no" >&6; }
859789af 14054fi
c6b750e1 14055
81ecdfbb 14056
2429c060
PB
14057 fi
14058 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14059 done
14060fi
c6b750e1 14061
05cbd757
PB
14062if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14063 set dummy windres
14064 if test $build = $target ; then
14065 WINDRES_FOR_TARGET="$2"
859789af 14066 else
05cbd757 14067 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 14068 fi
d3f5afc4
MS
14069else
14070 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
14071fi
14072
3a35eeb3
PB
14073else
14074 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
14075fi
14076
852e5f18 14077
0c24b341
NC
14078
14079
14080if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14081 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14083$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
14084 if test -x $with_build_time_tools/windmc; then
14085 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14086 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14088$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 14089 else
81ecdfbb
RW
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14091$as_echo "no" >&6; }
0c24b341
NC
14092 fi
14093 elif test $build != $host && test $have_gcc_for_target = yes; then
14094 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
14095 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14096 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14097 fi
14098fi
14099if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14100 # Extract the first word of "windmc", so it can be a program name with args.
14101set dummy windmc; ac_word=$2
81ecdfbb
RW
14102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14103$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14104if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 14105 $as_echo_n "(cached) " >&6
0c24b341
NC
14106else
14107 case $WINDMC_FOR_TARGET in
14108 [\\/]* | ?:[\\/]*)
14109 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14110 ;;
14111 *)
14112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14113for as_dir in $gcc_cv_tool_dirs
14114do
14115 IFS=$as_save_IFS
14116 test -z "$as_dir" && as_dir=.
81ecdfbb 14117 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 14119 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 14120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
14121 break 2
14122 fi
14123done
81ecdfbb
RW
14124 done
14125IFS=$as_save_IFS
0c24b341
NC
14126
14127 ;;
14128esac
14129fi
14130WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 14131if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14133$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 14134else
81ecdfbb
RW
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14136$as_echo "no" >&6; }
0c24b341
NC
14137fi
14138
81ecdfbb 14139
0c24b341
NC
14140fi
14141if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14142
14143
14144if test -n "$WINDMC_FOR_TARGET"; then
14145 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14146elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14147 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14148fi
14149
14150if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14151 for ncn_progname in windmc; do
14152 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14153set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14155$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14156if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 14157 $as_echo_n "(cached) " >&6
0c24b341
NC
14158else
14159 if test -n "$WINDMC_FOR_TARGET"; then
14160 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14161else
14162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14163for as_dir in $PATH
14164do
14165 IFS=$as_save_IFS
14166 test -z "$as_dir" && as_dir=.
81ecdfbb 14167 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 14169 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 14170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
14171 break 2
14172 fi
14173done
81ecdfbb
RW
14174 done
14175IFS=$as_save_IFS
0c24b341
NC
14176
14177fi
14178fi
14179WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14180if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14182$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 14183else
81ecdfbb
RW
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14185$as_echo "no" >&6; }
0c24b341
NC
14186fi
14187
81ecdfbb 14188
0c24b341
NC
14189 done
14190fi
14191
14192if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14193 for ncn_progname in windmc; do
81ecdfbb
RW
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14195$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
14196 if test -x $with_build_time_tools/${ncn_progname}; then
14197 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14199$as_echo "yes" >&6; }
0c24b341
NC
14200 break
14201 else
81ecdfbb
RW
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14203$as_echo "no" >&6; }
0c24b341
NC
14204 fi
14205 done
14206fi
14207
14208if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14209 for ncn_progname in windmc; do
14210 if test -n "$ncn_target_tool_prefix"; then
14211 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14212set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
14213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14214$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14215if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 14216 $as_echo_n "(cached) " >&6
0c24b341
NC
14217else
14218 if test -n "$WINDMC_FOR_TARGET"; then
14219 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14220else
14221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14222for as_dir in $PATH
14223do
14224 IFS=$as_save_IFS
14225 test -z "$as_dir" && as_dir=.
81ecdfbb 14226 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 14228 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 14229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
14230 break 2
14231 fi
14232done
81ecdfbb
RW
14233 done
14234IFS=$as_save_IFS
0c24b341
NC
14235
14236fi
14237fi
14238WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14239if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14241$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 14242else
81ecdfbb
RW
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14244$as_echo "no" >&6; }
0c24b341
NC
14245fi
14246
81ecdfbb 14247
0c24b341
NC
14248 fi
14249 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14251set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14253$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14254if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 14255 $as_echo_n "(cached) " >&6
0c24b341
NC
14256else
14257 if test -n "$WINDMC_FOR_TARGET"; then
14258 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14259else
14260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14261for as_dir in $PATH
14262do
14263 IFS=$as_save_IFS
14264 test -z "$as_dir" && as_dir=.
81ecdfbb 14265 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 14267 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 14268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
14269 break 2
14270 fi
14271done
81ecdfbb
RW
14272 done
14273IFS=$as_save_IFS
0c24b341
NC
14274
14275fi
14276fi
14277WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14278if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14280$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 14281else
81ecdfbb
RW
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14283$as_echo "no" >&6; }
0c24b341
NC
14284fi
14285
81ecdfbb 14286
0c24b341
NC
14287 fi
14288 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14289 done
14290fi
14291
14292if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14293 set dummy windmc
14294 if test $build = $target ; then
14295 WINDMC_FOR_TARGET="$2"
14296 else
14297 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14298 fi
14299else
14300 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14301fi
14302
14303else
14304 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14305fi
14306
14307
be01d343
PB
14308RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14309
81ecdfbb
RW
14310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14311$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 14312if test "x${build}" != "x${host}" ; then
2429c060
PB
14313 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14314 # We already found the complete path
b8025f34 14315 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14317$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14318 else
14319 # Canadian cross, just use what we found
81ecdfbb
RW
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14321$as_echo "pre-installed" >&6; }
2429c060 14322 fi
be01d343
PB
14323else
14324 ok=yes
14325 case " ${configdirs} " in
14326 *" binutils "*) ;;
14327 *) ok=no ;;
14328 esac
c6b750e1 14329
be01d343
PB
14330 if test $ok = yes; then
14331 # An in-tree tool is available and we can use it
14332 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14334$as_echo "just compiled" >&6; }
2429c060
PB
14335 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14336 # We already found the complete path
b8025f34 14337 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14339$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14340 elif test "x$target" = "x$host"; then
14341 # We can use an host tool
14342 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14344$as_echo "host tool" >&6; }
be01d343
PB
14345 else
14346 # We need a cross tool
81ecdfbb
RW
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14348$as_echo "pre-installed" >&6; }
be01d343
PB
14349 fi
14350fi
4b900473 14351
81ecdfbb
RW
14352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14353$as_echo_n "checking where to find the target as... " >&6; }
be01d343 14354if test "x${build}" != "x${host}" ; then
2429c060
PB
14355 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14356 # We already found the complete path
b8025f34 14357 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14359$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14360 else
14361 # Canadian cross, just use what we found
81ecdfbb
RW
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14363$as_echo "pre-installed" >&6; }
2429c060 14364 fi
be01d343
PB
14365else
14366 ok=yes
14367 case " ${configdirs} " in
14368 *" gas "*) ;;
14369 *) ok=no ;;
14370 esac
c6b750e1 14371
be01d343
PB
14372 if test $ok = yes; then
14373 # An in-tree tool is available and we can use it
14374 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14376$as_echo "just compiled" >&6; }
2429c060
PB
14377 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14378 # We already found the complete path
b8025f34 14379 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14381$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14382 elif test "x$target" = "x$host"; then
14383 # We can use an host tool
14384 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14386$as_echo "host tool" >&6; }
be01d343
PB
14387 else
14388 # We need a cross tool
81ecdfbb
RW
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14390$as_echo "pre-installed" >&6; }
be01d343
PB
14391 fi
14392fi
4b900473 14393
81ecdfbb
RW
14394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14395$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 14396if test "x${build}" != "x${host}" ; then
2429c060
PB
14397 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14398 # We already found the complete path
b8025f34 14399 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14401$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14402 else
14403 # Canadian cross, just use what we found
81ecdfbb
RW
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14405$as_echo "pre-installed" >&6; }
2429c060 14406 fi
be01d343
PB
14407else
14408 ok=yes
14409 case " ${configdirs} " in
14410 *" gcc "*) ;;
14411 *) ok=no ;;
14412 esac
c6b750e1 14413
be01d343
PB
14414 if test $ok = yes; then
14415 # An in-tree tool is available and we can use it
14416 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14418$as_echo "just compiled" >&6; }
2429c060
PB
14419 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14420 # We already found the complete path
b8025f34 14421 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14423$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14424 elif test "x$target" = "x$host"; then
14425 # We can use an host tool
14426 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14428$as_echo "host tool" >&6; }
be01d343
PB
14429 else
14430 # We need a cross tool
81ecdfbb
RW
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14432$as_echo "pre-installed" >&6; }
be01d343
PB
14433 fi
14434fi
4b900473 14435
81ecdfbb
RW
14436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14437$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 14438if test "x${build}" != "x${host}" ; then
2429c060
PB
14439 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14440 # We already found the complete path
b8025f34 14441 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14443$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14444 else
14445 # Canadian cross, just use what we found
81ecdfbb
RW
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14447$as_echo "pre-installed" >&6; }
2429c060 14448 fi
be01d343
PB
14449else
14450 ok=yes
14451 case " ${configdirs} " in
14452 *" gcc "*) ;;
14453 *) ok=no ;;
14454 esac
14455 case ,${enable_languages}, in
14456 *,c++,*) ;;
14457 *) ok=no ;;
14458 esac
14459 if test $ok = yes; then
14460 # An in-tree tool is available and we can use it
95e43135 14461 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
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14463$as_echo "just compiled" >&6; }
2429c060
PB
14464 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14465 # We already found the complete path
b8025f34 14466 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14468$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14469 elif test "x$target" = "x$host"; then
14470 # We can use an host tool
14471 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14473$as_echo "host tool" >&6; }
be01d343
PB
14474 else
14475 # We need a cross tool
81ecdfbb
RW
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14477$as_echo "pre-installed" >&6; }
be01d343
PB
14478 fi
14479fi
4b900473 14480
81ecdfbb
RW
14481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14482$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 14483if test "x${build}" != "x${host}" ; then
2429c060
PB
14484 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14485 # We already found the complete path
b8025f34 14486 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14488$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14489 else
14490 # Canadian cross, just use what we found
81ecdfbb
RW
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14492$as_echo "pre-installed" >&6; }
2429c060 14493 fi
be01d343
PB
14494else
14495 ok=yes
14496 case " ${configdirs} " in
14497 *" gcc "*) ;;
14498 *) ok=no ;;
14499 esac
14500 case ,${enable_languages}, in
14501 *,c++,*) ;;
14502 *) ok=no ;;
14503 esac
14504 if test $ok = yes; then
14505 # An in-tree tool is available and we can use it
95e43135 14506 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
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14508$as_echo "just compiled" >&6; }
2429c060
PB
14509 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14510 # We already found the complete path
b8025f34 14511 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14513$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14514 elif test "x$target" = "x$host"; then
14515 # We can use an host tool
14516 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14518$as_echo "host tool" >&6; }
be01d343
PB
14519 else
14520 # We need a cross tool
81ecdfbb
RW
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14522$as_echo "pre-installed" >&6; }
be01d343
PB
14523 fi
14524fi
4b900473 14525
81ecdfbb
RW
14526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14527$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 14528if test "x${build}" != "x${host}" ; then
2429c060
PB
14529 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14530 # We already found the complete path
b8025f34 14531 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14533$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14534 else
14535 # Canadian cross, just use what we found
81ecdfbb
RW
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14537$as_echo "pre-installed" >&6; }
2429c060 14538 fi
be01d343
PB
14539else
14540 ok=yes
14541 case " ${configdirs} " in
14542 *" binutils "*) ;;
14543 *) ok=no ;;
14544 esac
c6b750e1 14545
be01d343
PB
14546 if test $ok = yes; then
14547 # An in-tree tool is available and we can use it
14548 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14550$as_echo "just compiled" >&6; }
2429c060
PB
14551 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14552 # We already found the complete path
b8025f34 14553 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14555$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14556 elif test "x$target" = "x$host"; then
14557 # We can use an host tool
14558 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14560$as_echo "host tool" >&6; }
be01d343
PB
14561 else
14562 # We need a cross tool
81ecdfbb
RW
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14564$as_echo "pre-installed" >&6; }
be01d343
PB
14565 fi
14566fi
4b900473 14567
81ecdfbb
RW
14568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14569$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 14570if test "x${build}" != "x${host}" ; then
2429c060
PB
14571 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14572 # We already found the complete path
b8025f34 14573 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14575$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14576 else
14577 # Canadian cross, just use what we found
81ecdfbb
RW
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14579$as_echo "pre-installed" >&6; }
2429c060 14580 fi
be01d343
PB
14581else
14582 ok=yes
14583 case " ${configdirs} " in
14584 *" gcc "*) ;;
14585 *) ok=no ;;
14586 esac
c6b750e1 14587
be01d343
PB
14588 if test $ok = yes; then
14589 # An in-tree tool is available and we can use it
14590 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14592$as_echo "just compiled" >&6; }
2429c060
PB
14593 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14594 # We already found the complete path
b8025f34 14595 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14597$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14598 elif test "x$target" = "x$host"; then
14599 # We can use an host tool
14600 GCC_FOR_TARGET='$()'
81ecdfbb
RW
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14602$as_echo "host tool" >&6; }
be01d343
PB
14603 else
14604 # We need a cross tool
81ecdfbb
RW
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14606$as_echo "pre-installed" >&6; }
be01d343
PB
14607 fi
14608fi
4b900473 14609
81ecdfbb
RW
14610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14611$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 14612if test "x${build}" != "x${host}" ; then
2429c060
PB
14613 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14614 # We already found the complete path
b8025f34 14615 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14617$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14618 else
14619 # Canadian cross, just use what we found
81ecdfbb
RW
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14621$as_echo "pre-installed" >&6; }
2429c060 14622 fi
be01d343
PB
14623else
14624 ok=yes
14625 case " ${configdirs} " in
14626 *" gcc "*) ;;
14627 *) ok=no ;;
14628 esac
14629 case ,${enable_languages}, in
14630 *,fortran,*) ;;
14631 *) ok=no ;;
14632 esac
14633 if test $ok = yes; then
14634 # An in-tree tool is available and we can use it
14635 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14637$as_echo "just compiled" >&6; }
2429c060
PB
14638 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14639 # We already found the complete path
b8025f34 14640 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14642$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14643 elif test "x$target" = "x$host"; then
14644 # We can use an host tool
14645 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14647$as_echo "host tool" >&6; }
be01d343
PB
14648 else
14649 # We need a cross tool
81ecdfbb
RW
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14651$as_echo "pre-installed" >&6; }
be01d343
PB
14652 fi
14653fi
4b900473 14654
e552509b
ILT
14655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14656$as_echo_n "checking where to find the target gccgo... " >&6; }
14657if test "x${build}" != "x${host}" ; then
14658 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14659 # We already found the complete path
14660 ac_dir=`dirname $GOC_FOR_TARGET`
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14662$as_echo "pre-installed in $ac_dir" >&6; }
14663 else
14664 # Canadian cross, just use what we found
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14666$as_echo "pre-installed" >&6; }
14667 fi
14668else
14669 ok=yes
14670 case " ${configdirs} " in
14671 *" gcc "*) ;;
14672 *) ok=no ;;
14673 esac
14674 case ,${enable_languages}, in
14675 *,go,*) ;;
14676 *) ok=no ;;
14677 esac
14678 if test $ok = yes; then
14679 # An in-tree tool is available and we can use it
14680 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14682$as_echo "just compiled" >&6; }
14683 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14684 # We already found the complete path
14685 ac_dir=`dirname $GOC_FOR_TARGET`
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14687$as_echo "pre-installed in $ac_dir" >&6; }
14688 elif test "x$target" = "x$host"; then
14689 # We can use an host tool
14690 GOC_FOR_TARGET='$(GOC)'
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14692$as_echo "host tool" >&6; }
14693 else
14694 # We need a cross tool
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14696$as_echo "pre-installed" >&6; }
14697 fi
14698fi
14699
81ecdfbb
RW
14700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14701$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14702if test "x${build}" != "x${host}" ; then
2429c060
PB
14703 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14704 # We already found the complete path
b8025f34 14705 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14707$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14708 else
14709 # Canadian cross, just use what we found
81ecdfbb
RW
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14711$as_echo "pre-installed" >&6; }
2429c060 14712 fi
be01d343
PB
14713else
14714 ok=yes
14715 case " ${configdirs} " in
14716 *" ld "*) ;;
14717 *) ok=no ;;
14718 esac
c6b750e1 14719
be01d343
PB
14720 if test $ok = yes; then
14721 # An in-tree tool is available and we can use it
14722 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14724$as_echo "just compiled" >&6; }
2429c060
PB
14725 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14726 # We already found the complete path
b8025f34 14727 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14729$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14730 elif test "x$target" = "x$host"; then
14731 # We can use an host tool
14732 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14734$as_echo "host tool" >&6; }
be01d343
PB
14735 else
14736 # We need a cross tool
81ecdfbb
RW
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14738$as_echo "pre-installed" >&6; }
be01d343
PB
14739 fi
14740fi
4b900473 14741
81ecdfbb
RW
14742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14743$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14744if test "x${build}" != "x${host}" ; then
2429c060
PB
14745 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14746 # We already found the complete path
b8025f34 14747 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14749$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14750 else
14751 # Canadian cross, just use what we found
81ecdfbb
RW
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14753$as_echo "pre-installed" >&6; }
2429c060 14754 fi
be01d343 14755else
2429c060
PB
14756 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14757 # We already found the complete path
b8025f34 14758 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14760$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 14761 elif test "x$target" = "x$host"; then
be01d343
PB
14762 # We can use an host tool
14763 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14765$as_echo "host tool" >&6; }
be01d343
PB
14766 else
14767 # We need a cross tool
81ecdfbb
RW
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14769$as_echo "pre-installed" >&6; }
be01d343
PB
14770 fi
14771fi
4b900473 14772
81ecdfbb
RW
14773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14774$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14775if test "x${build}" != "x${host}" ; then
2429c060
PB
14776 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14777 # We already found the complete path
b8025f34 14778 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14780$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14781 else
14782 # Canadian cross, just use what we found
81ecdfbb
RW
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14784$as_echo "pre-installed" >&6; }
2429c060 14785 fi
be01d343
PB
14786else
14787 ok=yes
14788 case " ${configdirs} " in
14789 *" binutils "*) ;;
14790 *) ok=no ;;
14791 esac
c6b750e1 14792
be01d343
PB
14793 if test $ok = yes; then
14794 # An in-tree tool is available and we can use it
14795 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14797$as_echo "just compiled" >&6; }
2429c060
PB
14798 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14799 # We already found the complete path
b8025f34 14800 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14802$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14803 elif test "x$target" = "x$host"; then
14804 # We can use an host tool
14805 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14807$as_echo "host tool" >&6; }
be01d343
PB
14808 else
14809 # We need a cross tool
81ecdfbb
RW
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14811$as_echo "pre-installed" >&6; }
be01d343
PB
14812 fi
14813fi
4b900473 14814
6b91c541
AP
14815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14816$as_echo_n "checking where to find the target objcopy... " >&6; }
14817if test "x${build}" != "x${host}" ; then
14818 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14819 # We already found the complete path
14820 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14822$as_echo "pre-installed in $ac_dir" >&6; }
14823 else
14824 # Canadian cross, just use what we found
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14826$as_echo "pre-installed" >&6; }
14827 fi
14828else
14829 ok=yes
14830 case " ${configdirs} " in
14831 *" binutils "*) ;;
14832 *) ok=no ;;
14833 esac
14834
14835 if test $ok = yes; then
14836 # An in-tree tool is available and we can use it
14837 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14839$as_echo "just compiled" >&6; }
14840 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14841 # We already found the complete path
14842 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14844$as_echo "pre-installed in $ac_dir" >&6; }
14845 elif test "x$target" = "x$host"; then
14846 # We can use an host tool
1b6c0831 14847 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
6b91c541
AP
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14849$as_echo "host tool" >&6; }
14850 else
14851 # We need a cross tool
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14853$as_echo "pre-installed" >&6; }
14854 fi
14855fi
14856
81ecdfbb
RW
14857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14858$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14859if test "x${build}" != "x${host}" ; then
2429c060
PB
14860 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14861 # We already found the complete path
b8025f34 14862 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14864$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14865 else
14866 # Canadian cross, just use what we found
81ecdfbb
RW
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14868$as_echo "pre-installed" >&6; }
2429c060 14869 fi
be01d343
PB
14870else
14871 ok=yes
14872 case " ${configdirs} " in
14873 *" binutils "*) ;;
14874 *) ok=no ;;
14875 esac
c6b750e1 14876
be01d343
PB
14877 if test $ok = yes; then
14878 # An in-tree tool is available and we can use it
14879 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14881$as_echo "just compiled" >&6; }
2429c060
PB
14882 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14883 # We already found the complete path
b8025f34 14884 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14886$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14887 elif test "x$target" = "x$host"; then
14888 # We can use an host tool
14889 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14891$as_echo "host tool" >&6; }
be01d343
PB
14892 else
14893 # We need a cross tool
81ecdfbb
RW
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14895$as_echo "pre-installed" >&6; }
be01d343
PB
14896 fi
14897fi
4b900473 14898
81ecdfbb
RW
14899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14900$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14901if test "x${build}" != "x${host}" ; then
2429c060
PB
14902 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14903 # We already found the complete path
b8025f34 14904 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14906$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14907 else
14908 # Canadian cross, just use what we found
81ecdfbb
RW
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14910$as_echo "pre-installed" >&6; }
2429c060 14911 fi
be01d343
PB
14912else
14913 ok=yes
14914 case " ${configdirs} " in
14915 *" binutils "*) ;;
14916 *) ok=no ;;
14917 esac
c6b750e1 14918
be01d343
PB
14919 if test $ok = yes; then
14920 # An in-tree tool is available and we can use it
14921 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14923$as_echo "just compiled" >&6; }
2429c060
PB
14924 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14925 # We already found the complete path
b8025f34 14926 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14928$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14929 elif test "x$target" = "x$host"; then
14930 # We can use an host tool
14931 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14933$as_echo "host tool" >&6; }
be01d343
PB
14934 else
14935 # We need a cross tool
81ecdfbb
RW
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14937$as_echo "pre-installed" >&6; }
be01d343
PB
14938 fi
14939fi
4b900473 14940
b121d7d4
DD
14941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14942$as_echo_n "checking where to find the target readelf... " >&6; }
14943if test "x${build}" != "x${host}" ; then
14944 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14945 # We already found the complete path
14946 ac_dir=`dirname $READELF_FOR_TARGET`
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14948$as_echo "pre-installed in $ac_dir" >&6; }
14949 else
14950 # Canadian cross, just use what we found
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14952$as_echo "pre-installed" >&6; }
14953 fi
14954else
14955 ok=yes
14956 case " ${configdirs} " in
14957 *" binutils "*) ;;
14958 *) ok=no ;;
14959 esac
14960
14961 if test $ok = yes; then
14962 # An in-tree tool is available and we can use it
14963 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14965$as_echo "just compiled" >&6; }
14966 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14967 # We already found the complete path
14968 ac_dir=`dirname $READELF_FOR_TARGET`
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14970$as_echo "pre-installed in $ac_dir" >&6; }
14971 elif test "x$target" = "x$host"; then
14972 # We can use an host tool
14973 READELF_FOR_TARGET='$(READELF)'
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14975$as_echo "host tool" >&6; }
14976 else
14977 # We need a cross tool
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14979$as_echo "pre-installed" >&6; }
14980 fi
14981fi
14982
81ecdfbb
RW
14983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14984$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14985if test "x${build}" != "x${host}" ; then
2429c060
PB
14986 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14987 # We already found the complete path
b8025f34 14988 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14990$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14991 else
14992 # Canadian cross, just use what we found
81ecdfbb
RW
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14994$as_echo "pre-installed" >&6; }
2429c060 14995 fi
be01d343
PB
14996else
14997 ok=yes
14998 case " ${configdirs} " in
14999 *" binutils "*) ;;
15000 *) ok=no ;;
15001 esac
c6b750e1 15002
be01d343
PB
15003 if test $ok = yes; then
15004 # An in-tree tool is available and we can use it
9b980aa1 15005 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15007$as_echo "just compiled" >&6; }
2429c060
PB
15008 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15009 # We already found the complete path
b8025f34 15010 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15012$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
15013 elif test "x$target" = "x$host"; then
15014 # We can use an host tool
15015 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15017$as_echo "host tool" >&6; }
be01d343
PB
15018 else
15019 # We need a cross tool
81ecdfbb
RW
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15021$as_echo "pre-installed" >&6; }
be01d343
PB
15022 fi
15023fi
4b900473 15024
81ecdfbb
RW
15025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
15026$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 15027if test "x${build}" != "x${host}" ; then
2429c060
PB
15028 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15029 # We already found the complete path
b8025f34 15030 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15032$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
15033 else
15034 # Canadian cross, just use what we found
81ecdfbb
RW
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15036$as_echo "pre-installed" >&6; }
2429c060 15037 fi
be01d343
PB
15038else
15039 ok=yes
15040 case " ${configdirs} " in
15041 *" binutils "*) ;;
15042 *) ok=no ;;
15043 esac
c6b750e1 15044
be01d343
PB
15045 if test $ok = yes; then
15046 # An in-tree tool is available and we can use it
15047 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15049$as_echo "just compiled" >&6; }
2429c060
PB
15050 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15051 # We already found the complete path
b8025f34 15052 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15054$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
15055 elif test "x$target" = "x$host"; then
15056 # We can use an host tool
15057 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15059$as_echo "host tool" >&6; }
be01d343
PB
15060 else
15061 # We need a cross tool
81ecdfbb
RW
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15063$as_echo "pre-installed" >&6; }
be01d343 15064 fi
a0da8069 15065fi
54752a6b 15066
81ecdfbb
RW
15067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15068$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
15069if test "x${build}" != "x${host}" ; then
15070 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15071 # We already found the complete path
15072 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15074$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
15075 else
15076 # Canadian cross, just use what we found
81ecdfbb
RW
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15078$as_echo "pre-installed" >&6; }
0c24b341
NC
15079 fi
15080else
15081 ok=yes
15082 case " ${configdirs} " in
15083 *" binutils "*) ;;
15084 *) ok=no ;;
15085 esac
15086
15087 if test $ok = yes; then
15088 # An in-tree tool is available and we can use it
15089 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15091$as_echo "just compiled" >&6; }
0c24b341
NC
15092 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15093 # We already found the complete path
15094 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15096$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
15097 elif test "x$target" = "x$host"; then
15098 # We can use an host tool
15099 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15101$as_echo "host tool" >&6; }
0c24b341
NC
15102 else
15103 # We need a cross tool
81ecdfbb
RW
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15105$as_echo "pre-installed" >&6; }
0c24b341
NC
15106 fi
15107fi
15108
54752a6b
NN
15109
15110
be01d343 15111
4b900473 15112
a0da8069
NN
15113# Certain tools may need extra flags.
15114AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15115RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15116NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15117
be01d343
PB
15118# When building target libraries, except in a Canadian cross, we use
15119# the same toolchain as the compiler we just built.
15120COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15121COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15122COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15123if test $host = $build; then
15124 case " $configdirs " in
15125 *" gcc "*)
15126 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15127 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15128 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15129 ;;
15130 esac
15131fi
15132
15133
15134
15135
15136
81ecdfbb
RW
15137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15138$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15139# Check whether --enable-maintainer-mode was given.
15140if test "${enable_maintainer_mode+set}" = set; then :
15141 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
15142else
15143 USE_MAINTAINER_MODE=no
81ecdfbb
RW
15144fi
15145
15146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15147$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
15148
15149
15150if test "$USE_MAINTAINER_MODE" = yes; then
15151 MAINTAINER_MODE_TRUE=
15152 MAINTAINER_MODE_FALSE='#'
15153else
15154 MAINTAINER_MODE_TRUE='#'
15155 MAINTAINER_MODE_FALSE=
c6b750e1 15156fi
3d5e36ae
AO
15157MAINT=$MAINTAINER_MODE_TRUE
15158
1d39f329
NN
15159# ---------------------
15160# GCC bootstrap support
15161# ---------------------
15162
15163# Stage specific cflags for build.
15164stage1_cflags="-g"
15165case $build in
15166 vax-*-*)
15167 case ${GCC} in
15168 yes) stage1_cflags="-g -Wa,-J" ;;
15169 *) stage1_cflags="-g -J" ;;
15170 esac ;;
1d39f329
NN
15171esac
15172
1d89b610 15173
1d39f329 15174
8a0d8a5c 15175# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
15176# Check whether --enable-stage1-checking was given.
15177if test "${enable_stage1_checking+set}" = set; then :
15178 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 15179else
5566c1fa 15180 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
ce6c656d
L
15181 # For --disable-checking or implicit --enable-checking=release, avoid
15182 # setting --enable-checking=gc in the default stage1 checking for LTO
15183 # bootstraps. See PR62077.
ce6c656d
L
15184 case $BUILD_CONFIG in
15185 *lto*)
05a13254
NC
15186 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15187 *)
15188 stage1_checking=--enable-checking=yes,types;;
ce6c656d 15189 esac
05a13254
NC
15190 if test "x$enable_checking" = x && \
15191 test -d ${srcdir}/gcc && \
15192 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
15193 stage1_checking=--enable-checking=yes,types,extra
15194 fi
8a0d8a5c 15195else
5566c1fa 15196 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 15197fi
81ecdfbb 15198fi
8a0d8a5c
PB
15199
15200
c6b750e1 15201
81ecdfbb
RW
15202# Enable -Werror in bootstrap stage2 and later.
15203# Check whether --enable-werror was given.
15204if test "${enable_werror+set}" = set; then :
15205 enableval=$enable_werror;
1a6f2dc7
NN
15206case ${enable_werror} in
15207 yes) stage2_werror_flag="--enable-werror-always" ;;
15208 *) stage2_werror_flag="" ;;
1d39f329
NN
15209esac
15210
82033c9b 15211else
82033c9b 15212
bf41f30d
NC
15213if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15214 case $BUILD_CONFIG in
15215 bootstrap-debug)
15216 stage2_werror_flag="--enable-werror-always" ;;
15217 "")
15218 stage2_werror_flag="--enable-werror-always" ;;
15219 esac
15220fi
82033c9b 15221
bf41f30d 15222fi
82033c9b 15223
1b6c0831 15224
1b6c0831 15225
1b6c0831 15226
e8a5fa9c
RW
15227# Specify what files to not compare during bootstrap.
15228
15229compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15230case "$target" in
15231 hppa*64*-*-hpux*) ;;
bf41f30d 15232 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
1488e230 15233 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
15234esac
15235
15236
81ecdfbb
RW
15237ac_config_files="$ac_config_files Makefile"
15238
c6b750e1 15239cat >confcache <<\_ACEOF
a0da8069
NN
15240# This file is a shell script that caches the results of configure
15241# tests run on this system so they can be shared between configure
c6b750e1
DJ
15242# scripts and configure runs, see configure's option --config-cache.
15243# It is not useful on other systems. If it contains results you don't
15244# want to keep, you may remove or edit it.
a0da8069 15245#
c6b750e1
DJ
15246# config.status only pays attention to the cache file if you give it
15247# the --recheck option to rerun configure.
a0da8069 15248#
c6b750e1
DJ
15249# `ac_cv_env_foo' variables (set or unset) will be overridden when
15250# loading this file, other *unset* `ac_cv_foo' will be assigned the
15251# following values.
15252
15253_ACEOF
15254
a0da8069
NN
15255# The following way of writing the cache mishandles newlines in values,
15256# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 15257# So, we kill variables containing newlines.
a0da8069
NN
15258# Ultrix sh set writes to stderr and can't be redirected directly,
15259# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
15260(
15261 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15262 eval ac_val=\$$ac_var
15263 case $ac_val in #(
15264 *${as_nl}*)
15265 case $ac_var in #(
15266 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15267$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15268 esac
15269 case $ac_var in #(
15270 _ | IFS | as_nl) ;; #(
15271 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15272 *) { eval $ac_var=; unset $ac_var;} ;;
15273 esac ;;
15274 esac
15275 done
15276
c6b750e1 15277 (set) 2>&1 |
81ecdfbb
RW
15278 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15279 *${as_nl}ac_space=\ *)
15280 # `set' does not quote correctly, so add quotes: double-quote
15281 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
15282 sed -n \
15283 "s/'/'\\\\''/g;
15284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 15285 ;; #(
c6b750e1
DJ
15286 *)
15287 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 15288 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 15289 ;;
81ecdfbb
RW
15290 esac |
15291 sort
15292) |
c6b750e1 15293 sed '
81ecdfbb 15294 /^ac_cv_env_/b end
c6b750e1 15295 t clear
81ecdfbb 15296 :clear
c6b750e1
DJ
15297 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15298 t end
81ecdfbb
RW
15299 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15300 :end' >>confcache
15301if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15302 if test -w "$cache_file"; then
d0ac1c44 15303 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15305$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
15306 if test ! -f "$cache_file" || test -h "$cache_file"; then
15307 cat confcache >"$cache_file"
15308 else
15309 case $cache_file in #(
15310 */* | ?:*)
15311 mv -f confcache "$cache_file"$$ &&
15312 mv -f "$cache_file"$$ "$cache_file" ;; #(
15313 *)
15314 mv -f confcache "$cache_file" ;;
15315 esac
15316 fi
15317 fi
a0da8069 15318 else
81ecdfbb
RW
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15320$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 15321 fi
852e5f18 15322fi
a0da8069 15323rm -f confcache
852e5f18 15324
a0da8069
NN
15325test "x$prefix" = xNONE && prefix=$ac_default_prefix
15326# Let make expand exec_prefix.
15327test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 15328
a0da8069
NN
15329# Transform confdefs.h into DEFS.
15330# Protect against shell expansion while executing Makefile rules.
15331# Protect against Makefile macro expansion.
c6b750e1
DJ
15332#
15333# If the first sed substitution is executed (which looks for macros that
81ecdfbb 15334# take arguments), then branch to the quote section. Otherwise,
c6b750e1 15335# look for a macro that doesn't take arguments.
81ecdfbb
RW
15336ac_script='
15337:mline
15338/\\$/{
15339 N
15340 s,\\\n,,
15341 b mline
15342}
c6b750e1 15343t clear
81ecdfbb
RW
15344:clear
15345s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 15346t quote
81ecdfbb 15347s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 15348t quote
81ecdfbb
RW
15349b any
15350:quote
15351s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15352s/\[/\\&/g
15353s/\]/\\&/g
15354s/\$/$$/g
15355H
15356:any
15357${
15358 g
15359 s/^\n//
15360 s/\n/ /g
15361 p
15362}
15363'
15364DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
15365
15366
15367ac_libobjs=
15368ac_ltlibobjs=
d0ac1c44 15369U=
c6b750e1
DJ
15370for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15371 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
15372 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15373 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15374 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15375 # will be set to the directory where LIBOBJS objects are built.
15376 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15377 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
15378done
15379LIBOBJS=$ac_libobjs
852e5f18 15380
c6b750e1 15381LTLIBOBJS=$ac_ltlibobjs
376a0e54 15382
cac3d6c4 15383
c6b750e1 15384
d0ac1c44 15385: "${CONFIG_STATUS=./config.status}"
81ecdfbb 15386ac_write_fail=0
c6b750e1
DJ
15387ac_clean_files_save=$ac_clean_files
15388ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
15389{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15390$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15391as_write_fail=0
15392cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
15393#! $SHELL
15394# Generated by $as_me.
a0da8069 15395# Run this file to recreate the current configuration.
a0da8069 15396# Compiler output produced by configure, useful for debugging
c6b750e1 15397# configure, is in config.log if it exists.
376a0e54 15398
c6b750e1
DJ
15399debug=false
15400ac_cs_recheck=false
15401ac_cs_silent=false
c6b750e1 15402
81ecdfbb
RW
15403SHELL=\${CONFIG_SHELL-$SHELL}
15404export SHELL
15405_ASEOF
15406cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15407## -------------------- ##
15408## M4sh Initialization. ##
15409## -------------------- ##
15410
15411# Be more Bourne compatible
15412DUALCASE=1; export DUALCASE # for MKS sh
15413if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
15414 emulate sh
15415 NULLCMD=:
81ecdfbb 15416 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
15417 # is contrary to our usage. Disable this feature.
15418 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
15419 setopt NO_GLOB_SUBST
15420else
15421 case `(set -o) 2>/dev/null` in #(
15422 *posix*) :
15423 set -o posix ;; #(
15424 *) :
15425 ;;
15426esac
c6b750e1 15427fi
c6b750e1 15428
81ecdfbb
RW
15429
15430as_nl='
15431'
15432export as_nl
15433# Printing a long string crashes Solaris 7 /usr/bin/printf.
15434as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15435as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15436as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15437# Prefer a ksh shell builtin over an external printf program on Solaris,
15438# but without wasting forks for bash or zsh.
15439if test -z "$BASH_VERSION$ZSH_VERSION" \
15440 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15441 as_echo='print -r --'
15442 as_echo_n='print -rn --'
15443elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15444 as_echo='printf %s\n'
15445 as_echo_n='printf %s'
15446else
15447 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15448 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15449 as_echo_n='/usr/ucb/echo -n'
15450 else
15451 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15452 as_echo_n_body='eval
15453 arg=$1;
15454 case $arg in #(
15455 *"$as_nl"*)
15456 expr "X$arg" : "X\\(.*\\)$as_nl";
15457 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15458 esac;
15459 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15460 '
15461 export as_echo_n_body
15462 as_echo_n='sh -c $as_echo_n_body as_echo'
15463 fi
15464 export as_echo_body
15465 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
15466fi
15467
81ecdfbb
RW
15468# The user is always right.
15469if test "${PATH_SEPARATOR+set}" != set; then
15470 PATH_SEPARATOR=:
15471 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15472 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15473 PATH_SEPARATOR=';'
15474 }
15475fi
15476
15477
15478# IFS
15479# We need space, tab and new line, in precisely that order. Quoting is
15480# there to prevent editors from complaining about space-tab.
15481# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15482# splitting by setting IFS to empty value.)
15483IFS=" "" $as_nl"
15484
15485# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 15486as_myself=
81ecdfbb
RW
15487case $0 in #((
15488 *[\\/]* ) as_myself=$0 ;;
15489 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15490for as_dir in $PATH
15491do
15492 IFS=$as_save_IFS
15493 test -z "$as_dir" && as_dir=.
15494 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15495 done
15496IFS=$as_save_IFS
15497
15498 ;;
15499esac
15500# We did not find ourselves, most probably we were run as `sh COMMAND'
15501# in which case we are not to be found in the path.
15502if test "x$as_myself" = x; then
15503 as_myself=$0
15504fi
15505if test ! -f "$as_myself"; then
15506 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15507 exit 1
15508fi
c6b750e1 15509
81ecdfbb
RW
15510# Unset variables that we do not need and which cause bugs (e.g. in
15511# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15512# suppresses any "Segmentation fault" message there. '((' could
15513# trigger a bug in pdksh 5.2.14.
15514for as_var in BASH_ENV ENV MAIL MAILPATH
15515do eval test x\${$as_var+set} = xset \
15516 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15517done
c6b750e1
DJ
15518PS1='$ '
15519PS2='> '
15520PS4='+ '
15521
15522# NLS nuisances.
81ecdfbb
RW
15523LC_ALL=C
15524export LC_ALL
15525LANGUAGE=C
15526export LANGUAGE
15527
15528# CDPATH.
15529(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15530
15531
d0ac1c44
SM
15532# as_fn_error STATUS ERROR [LINENO LOG_FD]
15533# ----------------------------------------
81ecdfbb
RW
15534# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15535# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 15536# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
15537as_fn_error ()
15538{
d0ac1c44
SM
15539 as_status=$1; test $as_status -eq 0 && as_status=1
15540 if test "$4"; then
15541 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15542 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c6b750e1 15543 fi
d0ac1c44 15544 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
15545 as_fn_exit $as_status
15546} # as_fn_error
15547
15548
15549# as_fn_set_status STATUS
15550# -----------------------
15551# Set $? to STATUS, without forking.
15552as_fn_set_status ()
15553{
15554 return $1
15555} # as_fn_set_status
15556
15557# as_fn_exit STATUS
15558# -----------------
15559# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15560as_fn_exit ()
15561{
15562 set +e
15563 as_fn_set_status $1
15564 exit $1
15565} # as_fn_exit
15566
15567# as_fn_unset VAR
15568# ---------------
15569# Portably unset VAR.
15570as_fn_unset ()
15571{
15572 { eval $1=; unset $1;}
15573}
15574as_unset=as_fn_unset
15575# as_fn_append VAR VALUE
15576# ----------------------
15577# Append the text in VALUE to the end of the definition contained in VAR. Take
15578# advantage of any shell optimizations that allow amortized linear growth over
15579# repeated appends, instead of the typical quadratic growth present in naive
15580# implementations.
15581if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15582 eval 'as_fn_append ()
15583 {
15584 eval $1+=\$2
15585 }'
15586else
15587 as_fn_append ()
15588 {
15589 eval $1=\$$1\$2
15590 }
15591fi # as_fn_append
15592
15593# as_fn_arith ARG...
15594# ------------------
15595# Perform arithmetic evaluation on the ARGs, and store the result in the
15596# global $as_val. Take advantage of shells that can avoid forks. The arguments
15597# must be portable across $(()) and expr.
15598if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15599 eval 'as_fn_arith ()
15600 {
15601 as_val=$(( $* ))
15602 }'
15603else
15604 as_fn_arith ()
15605 {
15606 as_val=`expr "$@" || test $? -eq 1`
15607 }
15608fi # as_fn_arith
15609
c6b750e1 15610
81ecdfbb
RW
15611if expr a : '\(a\)' >/dev/null 2>&1 &&
15612 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
15613 as_expr=expr
15614else
15615 as_expr=false
15616fi
15617
81ecdfbb 15618if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
15619 as_basename=basename
15620else
15621 as_basename=false
15622fi
15623
81ecdfbb
RW
15624if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15625 as_dirname=dirname
15626else
15627 as_dirname=false
15628fi
c6b750e1 15629
81ecdfbb 15630as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
15631$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15632 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15633 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15634$as_echo X/"$0" |
15635 sed '/^.*\/\([^/][^/]*\)\/*$/{
15636 s//\1/
15637 q
15638 }
15639 /^X\/\(\/\/\)$/{
15640 s//\1/
15641 q
15642 }
15643 /^X\/\(\/\).*/{
15644 s//\1/
15645 q
15646 }
15647 s/.*/./; q'`
c6b750e1 15648
c6b750e1
DJ
15649# Avoid depending upon Character Ranges.
15650as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15651as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15652as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15653as_cr_digits='0123456789'
15654as_cr_alnum=$as_cr_Letters$as_cr_digits
15655
81ecdfbb
RW
15656ECHO_C= ECHO_N= ECHO_T=
15657case `echo -n x` in #(((((
15658-n*)
15659 case `echo 'xy\c'` in
15660 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15661 xy) ECHO_C='\c';;
15662 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15663 ECHO_T=' ';;
15664 esac;;
15665*)
15666 ECHO_N='-n';;
c6b750e1
DJ
15667esac
15668
81ecdfbb
RW
15669rm -f conf$$ conf$$.exe conf$$.file
15670if test -d conf$$.dir; then
15671 rm -f conf$$.dir/conf$$.file
c6b750e1 15672else
81ecdfbb
RW
15673 rm -f conf$$.dir
15674 mkdir conf$$.dir 2>/dev/null
c6b750e1 15675fi
81ecdfbb
RW
15676if (echo >conf$$.file) 2>/dev/null; then
15677 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 15678 as_ln_s='ln -s'
81ecdfbb
RW
15679 # ... but there are two gotchas:
15680 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15681 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 15682 # In both cases, we have to default to `cp -pR'.
81ecdfbb 15683 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 15684 as_ln_s='cp -pR'
81ecdfbb
RW
15685 elif ln conf$$.file conf$$ 2>/dev/null; then
15686 as_ln_s=ln
15687 else
d0ac1c44 15688 as_ln_s='cp -pR'
c6b750e1 15689 fi
c6b750e1 15690else
d0ac1c44 15691 as_ln_s='cp -pR'
c6b750e1 15692fi
81ecdfbb
RW
15693rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15694rmdir conf$$.dir 2>/dev/null
15695
15696
15697# as_fn_mkdir_p
15698# -------------
15699# Create "$as_dir" as a directory, including parents if necessary.
15700as_fn_mkdir_p ()
15701{
15702
15703 case $as_dir in #(
15704 -*) as_dir=./$as_dir;;
15705 esac
15706 test -d "$as_dir" || eval $as_mkdir_p || {
15707 as_dirs=
15708 while :; do
15709 case $as_dir in #(
15710 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15711 *) as_qdir=$as_dir;;
15712 esac
15713 as_dirs="'$as_qdir' $as_dirs"
15714 as_dir=`$as_dirname -- "$as_dir" ||
15715$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15716 X"$as_dir" : 'X\(//\)[^/]' \| \
15717 X"$as_dir" : 'X\(//\)$' \| \
15718 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15719$as_echo X"$as_dir" |
15720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15721 s//\1/
15722 q
15723 }
15724 /^X\(\/\/\)[^/].*/{
15725 s//\1/
15726 q
15727 }
15728 /^X\(\/\/\)$/{
15729 s//\1/
15730 q
15731 }
15732 /^X\(\/\).*/{
15733 s//\1/
15734 q
15735 }
15736 s/.*/./; q'`
15737 test -d "$as_dir" && break
15738 done
15739 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 15740 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 15741
c6b750e1 15742
81ecdfbb 15743} # as_fn_mkdir_p
c6b750e1 15744if mkdir -p . 2>/dev/null; then
81ecdfbb 15745 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
15746else
15747 test -d ./-p && rmdir ./-p
15748 as_mkdir_p=false
15749fi
15750
d0ac1c44
SM
15751
15752# as_fn_executable_p FILE
15753# -----------------------
15754# Test if FILE is an executable regular file.
15755as_fn_executable_p ()
15756{
15757 test -f "$1" && test -x "$1"
15758} # as_fn_executable_p
15759as_test_x='test -x'
15760as_executable_p=as_fn_executable_p
c6b750e1
DJ
15761
15762# Sed expression to map a string onto a valid CPP name.
15763as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15764
15765# Sed expression to map a string onto a valid variable name.
15766as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15767
15768
c6b750e1 15769exec 6>&1
81ecdfbb
RW
15770## ----------------------------------- ##
15771## Main body of $CONFIG_STATUS script. ##
15772## ----------------------------------- ##
15773_ASEOF
15774test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15775
15776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15777# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15778# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15779# values after options handling.
15780ac_log="
c6b750e1 15781This file was extended by $as_me, which was
d0ac1c44 15782generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
15783
15784 CONFIG_FILES = $CONFIG_FILES
15785 CONFIG_HEADERS = $CONFIG_HEADERS
15786 CONFIG_LINKS = $CONFIG_LINKS
15787 CONFIG_COMMANDS = $CONFIG_COMMANDS
15788 $ $0 $@
15789
81ecdfbb
RW
15790on `(hostname || uname -n) 2>/dev/null | sed 1q`
15791"
15792
c6b750e1
DJ
15793_ACEOF
15794
81ecdfbb
RW
15795case $ac_config_files in *"
15796"*) set x $ac_config_files; shift; ac_config_files=$*;;
15797esac
c6b750e1 15798
c6b750e1 15799
c6b750e1 15800
81ecdfbb
RW
15801cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15802# Files that config.status was made for.
15803config_files="$ac_config_files"
c6b750e1 15804
81ecdfbb 15805_ACEOF
c6b750e1 15806
81ecdfbb 15807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15808ac_cs_usage="\
81ecdfbb
RW
15809\`$as_me' instantiates files and other configuration actions
15810from templates according to the current configuration. Unless the files
15811and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15812
81ecdfbb 15813Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15814
15815 -h, --help print this help, then exit
81ecdfbb 15816 -V, --version print version number and configuration settings, then exit
d0ac1c44 15817 --config print configuration, then exit
81ecdfbb
RW
15818 -q, --quiet, --silent
15819 do not print progress messages
c6b750e1
DJ
15820 -d, --debug don't remove temporary files
15821 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15822 --file=FILE[:TEMPLATE]
15823 instantiate the configuration file FILE
c6b750e1
DJ
15824
15825Configuration files:
15826$config_files
15827
81ecdfbb 15828Report bugs to the package provider."
c6b750e1 15829
81ecdfbb
RW
15830_ACEOF
15831cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15832ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
c6b750e1
DJ
15833ac_cs_version="\\
15834config.status
d0ac1c44
SM
15835configured by $0, generated by GNU Autoconf 2.69,
15836 with options \\"\$ac_cs_config\\"
c6b750e1 15837
d0ac1c44 15838Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
15839This config.status script is free software; the Free Software Foundation
15840gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15841
15842ac_pwd='$ac_pwd'
15843srcdir='$srcdir'
15844INSTALL='$INSTALL'
8e957354 15845AWK='$AWK'
81ecdfbb 15846test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15847_ACEOF
15848
81ecdfbb
RW
15849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15850# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15851ac_need_defaults=:
15852while test $# != 0
a0da8069 15853do
c6b750e1 15854 case $1 in
d0ac1c44 15855 --*=?*)
81ecdfbb
RW
15856 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15857 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15858 ac_shift=:
15859 ;;
d0ac1c44
SM
15860 --*=)
15861 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15862 ac_optarg=
15863 ac_shift=:
15864 ;;
81ecdfbb 15865 *)
c6b750e1
DJ
15866 ac_option=$1
15867 ac_optarg=$2
15868 ac_shift=shift
15869 ;;
c6b750e1
DJ
15870 esac
15871
15872 case $ac_option in
15873 # Handling of the options.
a0da8069 15874 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15875 ac_cs_recheck=: ;;
81ecdfbb
RW
15876 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15877 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
15878 --config | --confi | --conf | --con | --co | --c )
15879 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 15880 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15881 debug=: ;;
15882 --file | --fil | --fi | --f )
15883 $ac_shift
81ecdfbb
RW
15884 case $ac_optarg in
15885 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 15886 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
15887 esac
15888 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15889 ac_need_defaults=false;;
81ecdfbb
RW
15890 --he | --h | --help | --hel | -h )
15891 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15892 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15893 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15894 ac_cs_silent=: ;;
15895
15896 # This is an error.
d0ac1c44 15897 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 15898Try \`$0 --help' for more information." ;;
c6b750e1 15899
81ecdfbb
RW
15900 *) as_fn_append ac_config_targets " $1"
15901 ac_need_defaults=false ;;
c6b750e1 15902
376a0e54 15903 esac
c6b750e1 15904 shift
376a0e54
CM
15905done
15906
c6b750e1 15907ac_configure_extra_args=
376a0e54 15908
c6b750e1
DJ
15909if $ac_cs_silent; then
15910 exec 6>/dev/null
15911 ac_configure_extra_args="$ac_configure_extra_args --silent"
15912fi
376a0e54 15913
c6b750e1 15914_ACEOF
81ecdfbb 15915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15916if \$ac_cs_recheck; then
d0ac1c44 15917 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
15918 shift
15919 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15920 CONFIG_SHELL='$SHELL'
15921 export CONFIG_SHELL
15922 exec "\$@"
c6b750e1
DJ
15923fi
15924
15925_ACEOF
81ecdfbb
RW
15926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15927exec 5>>config.log
15928{
15929 echo
15930 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15931## Running $as_me. ##
15932_ASBOX
15933 $as_echo "$ac_log"
15934} >&5
c6b750e1 15935
81ecdfbb
RW
15936_ACEOF
15937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15938#
15939# INIT-COMMANDS
15940#
15941extrasub_build="$extrasub_build"
15942 extrasub_host="$extrasub_host"
15943 extrasub_target="$extrasub_target"
15944
81ecdfbb 15945_ACEOF
c6b750e1 15946
81ecdfbb 15947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15948
81ecdfbb 15949# Handling of arguments.
c6b750e1
DJ
15950for ac_config_target in $ac_config_targets
15951do
81ecdfbb
RW
15952 case $ac_config_target in
15953 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15954
d0ac1c44 15955 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15956 esac
15957done
15958
81ecdfbb 15959
c6b750e1
DJ
15960# If the user did not use the arguments to specify the items to instantiate,
15961# then the envvar interface is used. Set only those that are not.
15962# We use the long form for the default assignment because of an extremely
15963# bizarre bug on SunOS 4.1.3.
15964if $ac_need_defaults; then
15965 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15966fi
15967
15968# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15969# simply because there is no reason against having it here, and in addition,
c6b750e1 15970# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15971# Hook for its removal unless debugging.
15972# Note that there is a small window in which the directory will not be cleaned:
15973# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15974$debug ||
15975{
d0ac1c44 15976 tmp= ac_tmp=
81ecdfbb 15977 trap 'exit_status=$?
d0ac1c44
SM
15978 : "${ac_tmp:=$tmp}"
15979 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
15980' 0
15981 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15982}
c6b750e1
DJ
15983# Create a (secure) tmp directory for tmp files.
15984
15985{
81ecdfbb 15986 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 15987 test -d "$tmp"
c6b750e1
DJ
15988} ||
15989{
81ecdfbb
RW
15990 tmp=./conf$$-$RANDOM
15991 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
15992} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15993ac_tmp=$tmp
81ecdfbb
RW
15994
15995# Set up the scripts for CONFIG_FILES section.
15996# No need to generate them if there are no CONFIG_FILES.
15997# This happens for instance with `./config.status config.h'.
15998if test -n "$CONFIG_FILES"; then
15999
16000if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16001 ac_cs_awk_getline=:
16002 ac_cs_awk_pipe_init=
16003 ac_cs_awk_read_file='
16004 while ((getline aline < (F[key])) > 0)
16005 print(aline)
16006 close(F[key])'
16007 ac_cs_awk_pipe_fini=
16008else
16009 ac_cs_awk_getline=false
16010 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16011 ac_cs_awk_read_file='
16012 print "|#_!!_#|"
16013 print "cat " F[key] " &&"
16014 '$ac_cs_awk_pipe_init
16015 # The final `:' finishes the AND list.
16016 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16017fi
16018ac_cr=`echo X | tr X '\015'`
16019# On cygwin, bash can eat \r inside `` if the user requested igncr.
16020# But we know of no other shell where ac_cr would be empty at this
16021# point, so we can use a bashism as a fallback.
16022if test "x$ac_cr" = x; then
16023 eval ac_cr=\$\'\\r\'
16024fi
16025ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16026if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 16027 ac_cs_awk_cr='\\r'
81ecdfbb
RW
16028else
16029 ac_cs_awk_cr=$ac_cr
16030fi
16031
d0ac1c44 16032echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
16033_ACEOF
16034
16035# Create commands to substitute file output variables.
c6b750e1 16036{
81ecdfbb 16037 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d0ac1c44 16038 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
81ecdfbb
RW
16039 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16040 echo "_ACAWK" &&
16041 echo "_ACEOF"
16042} >conf$$files.sh &&
16043. ./conf$$files.sh ||
d0ac1c44 16044 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 16045rm -f conf$$files.sh
c6b750e1 16046
81ecdfbb
RW
16047{
16048 echo "cat >conf$$subs.awk <<_ACEOF" &&
16049 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16050 echo "_ACEOF"
16051} >conf$$subs.sh ||
d0ac1c44
SM
16052 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16053ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
16054ac_delim='%!_!# '
16055for ac_last_try in false false false false false :; do
16056 . ./conf$$subs.sh ||
d0ac1c44 16057 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
16058
16059 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16060 if test $ac_delim_n = $ac_delim_num; then
16061 break
16062 elif $ac_last_try; then
d0ac1c44 16063 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
16064 else
16065 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16066 fi
16067done
16068rm -f conf$$subs.sh
16069
16070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 16071cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 16072_ACEOF
81ecdfbb
RW
16073sed -n '
16074h
16075s/^/S["/; s/!.*/"]=/
16076p
16077g
16078s/^[^!]*!//
16079:repl
16080t repl
16081s/'"$ac_delim"'$//
16082t delim
16083:nl
16084h
d0ac1c44 16085s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
16086t more1
16087s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16088p
16089n
16090b repl
16091:more1
16092s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16093p
16094g
16095s/.\{148\}//
16096t nl
16097:delim
16098h
d0ac1c44 16099s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
16100t more2
16101s/["\\]/\\&/g; s/^/"/; s/$/"/
16102p
16103b
16104:more2
16105s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16106p
16107g
16108s/.\{148\}//
16109t delim
16110' <conf$$subs.awk | sed '
16111/^[^""]/{
16112 N
16113 s/\n//
16114}
16115' >>$CONFIG_STATUS || ac_write_fail=1
16116rm -f conf$$subs.awk
16117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16118_ACAWK
d0ac1c44 16119cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
16120 for (key in S) S_is_set[key] = 1
16121 FS = "\a"
16122 \$ac_cs_awk_pipe_init
16123}
16124{
16125 line = $ 0
16126 nfields = split(line, field, "@")
16127 substed = 0
16128 len = length(field[1])
16129 for (i = 2; i < nfields; i++) {
16130 key = field[i]
16131 keylen = length(key)
16132 if (S_is_set[key]) {
16133 value = S[key]
16134 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16135 len += length(value) + length(field[++i])
16136 substed = 1
16137 } else
16138 len += 1 + keylen
16139 }
16140 if (nfields == 3 && !substed) {
16141 key = field[2]
16142 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16143 \$ac_cs_awk_read_file
16144 next
16145 }
16146 }
16147 print line
16148}
16149\$ac_cs_awk_pipe_fini
16150_ACAWK
16151_ACEOF
16152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16153if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16154 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16155else
16156 cat
d0ac1c44
SM
16157fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16158 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb
RW
16159_ACEOF
16160
d0ac1c44
SM
16161# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16162# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
16163# trailing colons and then remove the whole line if VPATH becomes empty
16164# (actually we leave an empty line to preserve line numbers).
16165if test "x$srcdir" = x.; then
d0ac1c44
SM
16166 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16167h
16168s///
16169s/^/:/
16170s/[ ]*$/:/
16171s/:\$(srcdir):/:/g
16172s/:\${srcdir}:/:/g
16173s/:@srcdir@:/:/g
16174s/^:*//
81ecdfbb 16175s/:*$//
d0ac1c44
SM
16176x
16177s/\(=[ ]*\).*/\1/
16178G
16179s/\n//
81ecdfbb
RW
16180s/^[^=]*=[ ]*$//
16181}'
16182fi
c6b750e1 16183
81ecdfbb
RW
16184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16185fi # test -n "$CONFIG_FILES"
c6b750e1 16186
c6b750e1 16187
81ecdfbb
RW
16188eval set X " :F $CONFIG_FILES "
16189shift
16190for ac_tag
16191do
16192 case $ac_tag in
16193 :[FHLC]) ac_mode=$ac_tag; continue;;
16194 esac
16195 case $ac_mode$ac_tag in
16196 :[FHL]*:*);;
d0ac1c44 16197 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
16198 :[FH]-) ac_tag=-:-;;
16199 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16200 esac
16201 ac_save_IFS=$IFS
16202 IFS=:
16203 set x $ac_tag
16204 IFS=$ac_save_IFS
16205 shift
16206 ac_file=$1
16207 shift
252b5132 16208
81ecdfbb
RW
16209 case $ac_mode in
16210 :L) ac_source=$1;;
16211 :[FH])
16212 ac_file_inputs=
16213 for ac_f
16214 do
16215 case $ac_f in
d0ac1c44 16216 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
16217 *) # Look for the file first in the build tree, then in the source tree
16218 # (if the path is not absolute). The absolute path cannot be DOS-style,
16219 # because $ac_f cannot contain `:'.
16220 test -f "$ac_f" ||
16221 case $ac_f in
16222 [\\/$]*) false;;
16223 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16224 esac ||
d0ac1c44 16225 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
16226 esac
16227 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16228 as_fn_append ac_file_inputs " '$ac_f'"
16229 done
c6b750e1 16230
81ecdfbb
RW
16231 # Let's still pretend it is `configure' which instantiates (i.e., don't
16232 # use $as_me), people would be surprised to read:
16233 # /* config.h. Generated by config.status. */
16234 configure_input='Generated from '`
16235 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16236 `' by configure.'
16237 if test x"$ac_file" != x-; then
16238 configure_input="$ac_file. $configure_input"
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16240$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 16241 fi
81ecdfbb
RW
16242 # Neutralize special characters interpreted by sed in replacement strings.
16243 case $configure_input in #(
16244 *\&* | *\|* | *\\* )
16245 ac_sed_conf_input=`$as_echo "$configure_input" |
16246 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16247 *) ac_sed_conf_input=$configure_input;;
16248 esac
cac3d6c4 16249
81ecdfbb 16250 case $ac_tag in
d0ac1c44
SM
16251 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16252 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
16253 esac
16254 ;;
a0da8069 16255 esac
252b5132 16256
81ecdfbb 16257 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
16258$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16259 X"$ac_file" : 'X\(//\)[^/]' \| \
16260 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
16261 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16262$as_echo X"$ac_file" |
16263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16264 s//\1/
16265 q
16266 }
16267 /^X\(\/\/\)[^/].*/{
16268 s//\1/
16269 q
16270 }
16271 /^X\(\/\/\)$/{
16272 s//\1/
16273 q
16274 }
16275 /^X\(\/\).*/{
16276 s//\1/
16277 q
16278 }
16279 s/.*/./; q'`
16280 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 16281 ac_builddir=.
252b5132 16282
81ecdfbb
RW
16283case "$ac_dir" in
16284.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16285*)
16286 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16287 # A ".." for each directory in $ac_dir_suffix.
16288 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16289 case $ac_top_builddir_sub in
16290 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16291 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16292 esac ;;
16293esac
16294ac_abs_top_builddir=$ac_pwd
16295ac_abs_builddir=$ac_pwd$ac_dir_suffix
16296# for backward compatibility:
16297ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
16298
16299case $srcdir in
81ecdfbb 16300 .) # We are building in place.
c6b750e1 16301 ac_srcdir=.
81ecdfbb
RW
16302 ac_top_srcdir=$ac_top_builddir_sub
16303 ac_abs_top_srcdir=$ac_pwd ;;
16304 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 16305 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
16306 ac_top_srcdir=$srcdir
16307 ac_abs_top_srcdir=$srcdir ;;
16308 *) # Relative name.
16309 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16310 ac_top_srcdir=$ac_top_build_prefix$srcdir
16311 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 16312esac
81ecdfbb 16313ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 16314
252b5132 16315
81ecdfbb
RW
16316 case $ac_mode in
16317 :F)
16318 #
16319 # CONFIG_FILE
16320 #
c6b750e1
DJ
16321
16322 case $INSTALL in
16323 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 16324 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 16325 esac
81ecdfbb 16326_ACEOF
252b5132 16327
81ecdfbb
RW
16328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16329# If the template does not know about datarootdir, expand it.
16330# FIXME: This hack should be removed a few years after 2.60.
16331ac_datarootdir_hack=; ac_datarootdir_seen=
16332ac_sed_dataroot='
16333/datarootdir/ {
16334 p
16335 q
16336}
16337/@datadir@/p
16338/@docdir@/p
16339/@infodir@/p
16340/@localedir@/p
16341/@mandir@/p'
16342case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16343*datarootdir*) ac_datarootdir_seen=yes;;
16344*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16346$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 16347_ACEOF
81ecdfbb
RW
16348cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16349 ac_datarootdir_hack='
16350 s&@datadir@&$datadir&g
16351 s&@docdir@&$docdir&g
16352 s&@infodir@&$infodir&g
16353 s&@localedir@&$localedir&g
16354 s&@mandir@&$mandir&g
16355 s&\\\${datarootdir}&$datarootdir&g' ;;
16356esac
16357_ACEOF
16358
16359# Neutralize VPATH when `$srcdir' = `.'.
16360# Shell code in configure.ac might set extrasub.
16361# FIXME: do we really want to maintain this feature?
16362cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16363ac_sed_extra="$ac_vpsub
c6b750e1
DJ
16364$extrasub
16365_ACEOF
81ecdfbb 16366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
16367:t
16368/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
16369s|@configure_input@|$ac_sed_conf_input|;t t
16370s&@top_builddir@&$ac_top_builddir_sub&;t t
16371s&@top_build_prefix@&$ac_top_build_prefix&;t t
16372s&@srcdir@&$ac_srcdir&;t t
16373s&@abs_srcdir@&$ac_abs_srcdir&;t t
16374s&@top_srcdir@&$ac_top_srcdir&;t t
16375s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16376s&@builddir@&$ac_builddir&;t t
16377s&@abs_builddir@&$ac_abs_builddir&;t t
16378s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16379s&@INSTALL@&$ac_INSTALL&;t t
16380$ac_datarootdir_hack
16381"
16382eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16383if $ac_cs_awk_getline; then
d0ac1c44 16384 $AWK -f "$ac_tmp/subs.awk"
81ecdfbb 16385else
d0ac1c44
SM
16386 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16387fi \
16388 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
16389
16390test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
16391 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16392 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16393 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 16394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16395which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 16396$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16397which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 16398
d0ac1c44 16399 rm -f "$ac_tmp/stdin"
81ecdfbb 16400 case $ac_file in
d0ac1c44
SM
16401 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16402 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 16403 esac \
d0ac1c44 16404 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 16405 ;;
c148b4cb 16406
c148b4cb 16407
c148b4cb 16408
81ecdfbb
RW
16409 esac
16410
06a51eac
RW
16411
16412 case $ac_file$ac_mode in
16413 "Makefile":F) sed "$extrasub_build" Makefile |
16414 sed "$extrasub_host" |
16415 sed "$extrasub_target" > mf$$
16416 mv -f mf$$ Makefile ;;
16417
16418 esac
81ecdfbb
RW
16419done # for ac_tag
16420
16421
16422as_fn_exit 0
c6b750e1 16423_ACEOF
c6b750e1
DJ
16424ac_clean_files=$ac_clean_files_save
16425
81ecdfbb 16426test $ac_write_fail = 0 ||
d0ac1c44 16427 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 16428
c6b750e1
DJ
16429
16430# configure is writing to config.log, and then calls config.status.
16431# config.status does its own redirection, appending to config.log.
16432# Unfortunately, on DOS this fails, as config.log is still kept open
16433# by configure, so config.status won't be able to write to it; its
16434# output is simply discarded. So we exec the FD to /dev/null,
16435# effectively closing config.log, so it can be properly (re)opened and
16436# appended to by config.status. When coming back to configure, we
16437# need to make the FD available again.
16438if test "$no_create" != yes; then
16439 ac_cs_success=:
16440 ac_config_status_args=
16441 test "$silent" = yes &&
16442 ac_config_status_args="$ac_config_status_args --quiet"
16443 exec 5>/dev/null
16444 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16445 exec 5>>config.log
16446 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16447 # would make configure fail if this is the last instruction.
d0ac1c44 16448 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
16449fi
16450if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16452$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 16453fi
c148b4cb 16454