]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
Merge top-level configury changes from gdb
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5213506e 7#
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
1c710c3c
DJ
79fi
80
81
5213506e
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
22e05272 90as_myself=
5213506e
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
1c710c3c
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
5213506e
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
5213506e
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
5213506e
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
87264276
PB
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
5213506e
RW
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1c710c3c 211do
5213506e
RW
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
5213506e
RW
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1c710c3c 266 else
5213506e
RW
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
1c710c3c 271 fi
5213506e
RW
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
1c710c3c 301
5213506e
RW
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e
RW
356
357
358} # as_fn_mkdir_p
22e05272
JM
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
5213506e
RW
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
22e05272
JM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
5213506e
RW
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 407# script with STATUS, using 1 if that was 0.
5213506e
RW
408as_fn_error ()
409{
22e05272
JM
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5213506e 414 fi
22e05272 415 $as_echo "$as_me: error: $2" >&2
5213506e
RW
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
421 as_expr=expr
422else
423 as_expr=false
424fi
425
5213506e 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
427 as_basename=basename
428else
429 as_basename=false
430fi
431
5213506e
RW
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
1c710c3c 437
5213506e 438as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
5213506e
RW
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
1c710c3c 456
2aeb72e9
DD
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 463
1c710c3c 464
5213506e
RW
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
1c710c3c 474 sed '
5213506e
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
1c710c3c 479 N
5213506e
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 482 t loop
5213506e 483 s/-\n.*//
1c710c3c 484 ' >$as_me.lineno &&
5213506e
RW
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1c710c3c 487
22e05272
JM
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
1c710c3c
DJ
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
1c710c3c
DJ
496 # Exit status is that of the last command.
497 exit
498}
499
5213506e
RW
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
1c710c3c
DJ
511esac
512
5213506e
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
1c710c3c 516else
5213506e
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
1c710c3c 519fi
5213506e
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 522 as_ln_s='ln -s'
5213506e
RW
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 526 # In both cases, we have to default to `cp -pR'.
5213506e 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 528 as_ln_s='cp -pR'
5213506e
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
22e05272 532 as_ln_s='cp -pR'
2aeb72e9 533 fi
1c710c3c 534else
22e05272 535 as_ln_s='cp -pR'
1c710c3c 536fi
5213506e
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
539
540if mkdir -p . 2>/dev/null; then
5213506e 541 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
22e05272
JM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
0b0dc272 549
1c710c3c
DJ
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
22e05272
JM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
1c710c3c
DJ
559
560# Name of the host.
22e05272 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1c710c3c
DJ
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
1c710c3c
DJ
565#
566# Initializations.
567#
671aa708 568ac_default_prefix=/usr/local
5213506e 569ac_clean_files=
1c710c3c 570ac_config_libobj_dir=.
5213506e 571LIBOBJS=
1c710c3c
DJ
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
2aeb72e9 576
1c710c3c
DJ
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
5213506e 583PACKAGE_URL=
1c710c3c
DJ
584
585ac_unique_file="move-if-change"
5213506e
RW
586enable_option_checking=no
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589compare_exclusions
590stage2_werror_flag
591stage1_checking
592stage1_cflags
593MAINT
594MAINTAINER_MODE_FALSE
595MAINTAINER_MODE_TRUE
596COMPILER_NM_FOR_TARGET
597COMPILER_LD_FOR_TARGET
598COMPILER_AS_FOR_TARGET
599FLAGS_FOR_TARGET
600RAW_CXX_FOR_TARGET
601WINDMC_FOR_TARGET
602WINDRES_FOR_TARGET
603STRIP_FOR_TARGET
e7a82751 604READELF_FOR_TARGET
5213506e 605RANLIB_FOR_TARGET
e4a9a572 606OTOOL_FOR_TARGET
5213506e 607OBJDUMP_FOR_TARGET
9bccfdf5 608OBJCOPY_FOR_TARGET
5213506e
RW
609NM_FOR_TARGET
610LIPO_FOR_TARGET
611LD_FOR_TARGET
612DLLTOOL_FOR_TARGET
613AS_FOR_TARGET
614AR_FOR_TARGET
b4c522fa 615GDC_FOR_TARGET
632e2a07 616GOC_FOR_TARGET
5213506e 617GFORTRAN_FOR_TARGET
5213506e
RW
618GCC_FOR_TARGET
619CXX_FOR_TARGET
620CC_FOR_TARGET
e7a82751 621READELF
e4a9a572 622OTOOL
5213506e
RW
623OBJDUMP
624OBJCOPY
625WINDMC
626WINDRES
627STRIP
628RANLIB
629NM
630LIPO
631LD
632DLLTOOL
633AS
634AR
635RUNTEST
636EXPECT
637MAKEINFO
638FLEX
639LEX
640M4
641BISON
642YACC
5213506e
RW
643WINDRES_FOR_BUILD
644WINDMC_FOR_BUILD
645RANLIB_FOR_BUILD
646NM_FOR_BUILD
647LD_FOR_BUILD
648LDFLAGS_FOR_BUILD
b4c522fa 649GDC_FOR_BUILD
632e2a07 650GOC_FOR_BUILD
5213506e 651GFORTRAN_FOR_BUILD
5213506e
RW
652DLLTOOL_FOR_BUILD
653CXX_FOR_BUILD
654CXXFLAGS_FOR_BUILD
655CFLAGS_FOR_BUILD
656CC_FOR_BUILD
657AS_FOR_BUILD
658AR_FOR_BUILD
aae29963 659target_configdirs
5213506e 660configdirs
5213506e 661build_configdirs
5213506e
RW
662INSTALL_GDB_TK
663GDB_TK
664CONFIGURE_GDB_TK
665build_tooldir
666tooldir
667GCC_SHLIB_SUBDIR
668RPATH_ENVVAR
ffedf511
RW
669target_configargs
670host_configargs
671build_configargs
e12c4094 672BUILD_CONFIG
6f57bdf6 673LDFLAGS_FOR_TARGET
5213506e
RW
674CXXFLAGS_FOR_TARGET
675CFLAGS_FOR_TARGET
676DEBUG_PREFIX_CFLAGS_FOR_TARGET
677SYSROOT_CFLAGS_FOR_TARGET
3c36aa6b 678get_gcc_base_ver
1c01ebf6 679extra_host_zlib_configure_flags
d7f09764 680extra_host_libiberty_configure_flags
fca38047 681stage1_languages
cdfee50a 682host_shared
45b3824d
TS
683extra_linker_plugin_flags
684extra_linker_plugin_configure_flags
33ad93b9 685islinc
eae1a5d4 686isllibs
5213506e 687poststage1_ldflags
ed2eaa9f 688poststage1_libs
5213506e 689stage1_ldflags
0b21f5d3 690stage1_libs
0ff2d841 691extra_isl_gmp_configure_flags
5213506e
RW
692extra_mpc_mpfr_configure_flags
693extra_mpc_gmp_configure_flags
694extra_mpfr_configure_flags
695gmpinc
696gmplibs
697do_compare
698GNATMAKE
699GNATBIND
700ac_ct_CXX
701CXXFLAGS
702CXX
703OBJEXT
704EXEEXT
705ac_ct_CC
706CPPFLAGS
707LDFLAGS
708CFLAGS
709CC
5f520819 710extra_liboffloadmic_configure_flags
5213506e
RW
711target_subdir
712host_subdir
713build_subdir
714build_libsubdir
87264276
PB
715AWK
716SED
5213506e
RW
717LN_S
718LN
719INSTALL_DATA
720INSTALL_SCRIPT
721INSTALL_PROGRAM
722target_os
723target_vendor
724target_cpu
725target
726host_os
727host_vendor
728host_cpu
729host
730target_noncanonical
731host_noncanonical
732build_noncanonical
733build_os
734build_vendor
735build_cpu
736build
737TOPLEVEL_CONFIGURE_ARGUMENTS
738target_alias
739host_alias
740build_alias
741LIBS
742ECHO_T
743ECHO_N
744ECHO_C
745DEFS
746mandir
747localedir
748libdir
749psdir
750pdfdir
751dvidir
752htmldir
753infodir
754docdir
755oldincludedir
756includedir
757localstatedir
758sharedstatedir
759sysconfdir
760datadir
761datarootdir
762libexecdir
763sbindir
764bindir
765program_transform_name
766prefix
767exec_prefix
768PACKAGE_URL
769PACKAGE_BUGREPORT
770PACKAGE_STRING
771PACKAGE_VERSION
772PACKAGE_TARNAME
773PACKAGE_NAME
774PATH_SEPARATOR
775SHELL'
776ac_subst_files='serialization_dependencies
777host_makefile_frag
778target_makefile_frag
779alphaieee_frag
780ospace_frag'
781ac_user_opts='
782enable_option_checking
783with_build_libsubdir
a05c2c75 784with_system_zlib
85c64bbe
BS
785enable_as_accelerator_for
786enable_offload_targets
5213506e 787enable_gold
21539e2e 788enable_ld
78edb32f 789enable_compressed_debug_sections
87e6d9dc
TB
790enable_libquadmath
791enable_libquadmath_support
5213506e
RW
792enable_libada
793enable_libssp
1873ec0c 794enable_libstdcxx
5f520819 795enable_liboffloadmic
ff3ac0f4 796enable_bootstrap
5213506e
RW
797with_mpc
798with_mpc_include
799with_mpc_lib
800with_mpfr_dir
801with_mpfr
802with_mpfr_include
803with_mpfr_lib
804with_gmp_dir
805with_gmp
806with_gmp_include
807with_gmp_lib
5213506e 808with_stage1_libs
aac9103b 809with_static_standard_libraries
0b21f5d3 810with_stage1_ldflags
5213506e 811with_boot_libs
ed2eaa9f 812with_boot_ldflags
33ad93b9
RG
813with_isl
814with_isl_include
815with_isl_lib
816enable_isl_version_check
d7f09764 817enable_lto
45b3824d
TS
818enable_linker_plugin_configure_flags
819enable_linker_plugin_flags
cdfee50a 820enable_host_shared
5213506e 821enable_stage1_languages
43c40f3e 822enable_objc_gc
114bf3f1
MK
823with_target_bdw_gc
824with_target_bdw_gc_include
825with_target_bdw_gc_lib
3c36aa6b 826with_gcc_major_version_only
5213506e
RW
827with_build_sysroot
828with_debug_prefix_map
5646b7b9 829with_build_config
beeda1d9 830enable_vtable_verify
5213506e
RW
831enable_serial_configure
832with_build_time_tools
833enable_maintainer_mode
834enable_stage1_checking
835enable_werror
5213506e
RW
836'
837 ac_precious_vars='build_alias
838host_alias
839target_alias
840CC
841CFLAGS
842LDFLAGS
843LIBS
844CPPFLAGS
845CXX
846CXXFLAGS
847CCC
ffedf511
RW
848build_configargs
849host_configargs
850target_configargs
5213506e
RW
851AR
852AS
853DLLTOOL
854LD
855LIPO
856NM
857RANLIB
858STRIP
859WINDRES
860WINDMC
861OBJCOPY
862OBJDUMP
e4a9a572 863OTOOL
e7a82751 864READELF
5213506e
RW
865CC_FOR_TARGET
866CXX_FOR_TARGET
867GCC_FOR_TARGET
5213506e 868GFORTRAN_FOR_TARGET
632e2a07 869GOC_FOR_TARGET
b4c522fa 870GDC_FOR_TARGET
5213506e
RW
871AR_FOR_TARGET
872AS_FOR_TARGET
873DLLTOOL_FOR_TARGET
874LD_FOR_TARGET
875LIPO_FOR_TARGET
876NM_FOR_TARGET
9bccfdf5 877OBJCOPY_FOR_TARGET
5213506e 878OBJDUMP_FOR_TARGET
e4a9a572 879OTOOL_FOR_TARGET
5213506e 880RANLIB_FOR_TARGET
e7a82751 881READELF_FOR_TARGET
5213506e
RW
882STRIP_FOR_TARGET
883WINDRES_FOR_TARGET
884WINDMC_FOR_TARGET'
885
671aa708
NN
886
887# Initialize some variables set by options.
1c710c3c
DJ
888ac_init_help=
889ac_init_version=false
5213506e
RW
890ac_unrecognized_opts=
891ac_unrecognized_sep=
671aa708
NN
892# The variables have the same names as the options, with
893# dashes changed to underlines.
1c710c3c 894cache_file=/dev/null
671aa708 895exec_prefix=NONE
671aa708 896no_create=
671aa708
NN
897no_recursion=
898prefix=NONE
899program_prefix=NONE
900program_suffix=NONE
901program_transform_name=s,x,x,
902silent=
903site=
904srcdir=
671aa708
NN
905verbose=
906x_includes=NONE
907x_libraries=NONE
1c710c3c
DJ
908
909# Installation directory options.
910# These are left unexpanded so users can "make install exec_prefix=/foo"
911# and all the variables that are supposed to be based on exec_prefix
912# by default will actually change.
913# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 914# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
915bindir='${exec_prefix}/bin'
916sbindir='${exec_prefix}/sbin'
917libexecdir='${exec_prefix}/libexec'
5213506e
RW
918datarootdir='${prefix}/share'
919datadir='${datarootdir}'
671aa708
NN
920sysconfdir='${prefix}/etc'
921sharedstatedir='${prefix}/com'
922localstatedir='${prefix}/var'
671aa708
NN
923includedir='${prefix}/include'
924oldincludedir='/usr/include'
5213506e
RW
925docdir='${datarootdir}/doc/${PACKAGE}'
926infodir='${datarootdir}/info'
927htmldir='${docdir}'
928dvidir='${docdir}'
929pdfdir='${docdir}'
930psdir='${docdir}'
931libdir='${exec_prefix}/lib'
932localedir='${datarootdir}/locale'
933mandir='${datarootdir}/man'
79c06341 934
671aa708 935ac_prev=
5213506e 936ac_dashdash=
671aa708
NN
937for ac_option
938do
671aa708
NN
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
5213506e 941 eval $ac_prev=\$ac_option
671aa708
NN
942 ac_prev=
943 continue
944 fi
79c06341 945
5213506e 946 case $ac_option in
22e05272
JM
947 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 *=) ac_optarg= ;;
949 *) ac_optarg=yes ;;
5213506e 950 esac
671aa708
NN
951
952 # Accept the important Cygnus configure options, so we can diagnose typos.
953
5213506e
RW
954 case $ac_dashdash$ac_option in
955 --)
956 ac_dashdash=yes ;;
671aa708
NN
957
958 -bindir | --bindir | --bindi | --bind | --bin | --bi)
959 ac_prev=bindir ;;
960 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 961 bindir=$ac_optarg ;;
671aa708
NN
962
963 -build | --build | --buil | --bui | --bu)
1c710c3c 964 ac_prev=build_alias ;;
671aa708 965 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 966 build_alias=$ac_optarg ;;
671aa708
NN
967
968 -cache-file | --cache-file | --cache-fil | --cache-fi \
969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970 ac_prev=cache_file ;;
971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
973 cache_file=$ac_optarg ;;
974
975 --config-cache | -C)
976 cache_file=config.cache ;;
671aa708 977
5213506e 978 -datadir | --datadir | --datadi | --datad)
671aa708 979 ac_prev=datadir ;;
5213506e 980 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 981 datadir=$ac_optarg ;;
671aa708 982
5213506e
RW
983 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984 | --dataroo | --dataro | --datar)
985 ac_prev=datarootdir ;;
986 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988 datarootdir=$ac_optarg ;;
989
671aa708 990 -disable-* | --disable-*)
5213506e 991 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 992 # Reject names that are not valid shell variable names.
5213506e 993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 994 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999"enable_$ac_useropt"
1000"*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=no ;;
1005
1006 -docdir | --docdir | --docdi | --doc | --do)
1007 ac_prev=docdir ;;
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1010
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 ac_prev=dvidir ;;
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
671aa708
NN
1015
1016 -enable-* | --enable-*)
5213506e 1017 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 1018 # Reject names that are not valid shell variable names.
5213506e 1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1020 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1021 ac_useropt_orig=$ac_useropt
1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1024 *"
1025"enable_$ac_useropt"
1026"*) ;;
1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028 ac_unrecognized_sep=', ';;
2aeb72e9 1029 esac
5213506e 1030 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1031
1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034 | --exec | --exe | --ex)
1035 ac_prev=exec_prefix ;;
1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038 | --exec=* | --exe=* | --ex=*)
1c710c3c 1039 exec_prefix=$ac_optarg ;;
671aa708
NN
1040
1041 -gas | --gas | --ga | --g)
1042 # Obsolete; use --with-gas.
1043 with_gas=yes ;;
1044
1c710c3c
DJ
1045 -help | --help | --hel | --he | -h)
1046 ac_init_help=long ;;
1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048 ac_init_help=recursive ;;
1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050 ac_init_help=short ;;
671aa708
NN
1051
1052 -host | --host | --hos | --ho)
1c710c3c 1053 ac_prev=host_alias ;;
671aa708 1054 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1055 host_alias=$ac_optarg ;;
671aa708 1056
5213506e
RW
1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058 ac_prev=htmldir ;;
1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060 | --ht=*)
1061 htmldir=$ac_optarg ;;
1062
671aa708
NN
1063 -includedir | --includedir | --includedi | --included | --include \
1064 | --includ | --inclu | --incl | --inc)
1065 ac_prev=includedir ;;
1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1068 includedir=$ac_optarg ;;
671aa708
NN
1069
1070 -infodir | --infodir | --infodi | --infod | --info | --inf)
1071 ac_prev=infodir ;;
1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1073 infodir=$ac_optarg ;;
671aa708
NN
1074
1075 -libdir | --libdir | --libdi | --libd)
1076 ac_prev=libdir ;;
1077 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1078 libdir=$ac_optarg ;;
671aa708
NN
1079
1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081 | --libexe | --libex | --libe)
1082 ac_prev=libexecdir ;;
1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1085 libexecdir=$ac_optarg ;;
671aa708 1086
5213506e
RW
1087 -localedir | --localedir | --localedi | --localed | --locale)
1088 ac_prev=localedir ;;
1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090 localedir=$ac_optarg ;;
1091
671aa708 1092 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1093 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1094 ac_prev=localstatedir ;;
1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1097 localstatedir=$ac_optarg ;;
671aa708
NN
1098
1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100 ac_prev=mandir ;;
1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1102 mandir=$ac_optarg ;;
671aa708
NN
1103
1104 -nfp | --nfp | --nf)
1105 # Obsolete; use --without-fp.
1106 with_fp=no ;;
1107
1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1109 | --no-cr | --no-c | -n)
671aa708
NN
1110 no_create=yes ;;
1111
1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 no_recursion=yes ;;
1115
1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118 | --oldin | --oldi | --old | --ol | --o)
1119 ac_prev=oldincludedir ;;
1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1123 oldincludedir=$ac_optarg ;;
671aa708
NN
1124
1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126 ac_prev=prefix ;;
1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1128 prefix=$ac_optarg ;;
671aa708
NN
1129
1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131 | --program-pre | --program-pr | --program-p)
1132 ac_prev=program_prefix ;;
1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1135 program_prefix=$ac_optarg ;;
671aa708
NN
1136
1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138 | --program-suf | --program-su | --program-s)
1139 ac_prev=program_suffix ;;
1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1142 program_suffix=$ac_optarg ;;
671aa708
NN
1143
1144 -program-transform-name | --program-transform-name \
1145 | --program-transform-nam | --program-transform-na \
1146 | --program-transform-n | --program-transform- \
1147 | --program-transform | --program-transfor \
1148 | --program-transfo | --program-transf \
1149 | --program-trans | --program-tran \
1150 | --progr-tra | --program-tr | --program-t)
1151 ac_prev=program_transform_name ;;
1152 -program-transform-name=* | --program-transform-name=* \
1153 | --program-transform-nam=* | --program-transform-na=* \
1154 | --program-transform-n=* | --program-transform-=* \
1155 | --program-transform=* | --program-transfor=* \
1156 | --program-transfo=* | --program-transf=* \
1157 | --program-trans=* | --program-tran=* \
1158 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1159 program_transform_name=$ac_optarg ;;
671aa708 1160
5213506e
RW
1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162 ac_prev=pdfdir ;;
1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164 pdfdir=$ac_optarg ;;
1165
1166 -psdir | --psdir | --psdi | --psd | --ps)
1167 ac_prev=psdir ;;
1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 psdir=$ac_optarg ;;
1170
671aa708
NN
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1173 silent=yes ;;
1174
1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176 ac_prev=sbindir ;;
1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178 | --sbi=* | --sb=*)
1c710c3c 1179 sbindir=$ac_optarg ;;
671aa708
NN
1180
1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183 | --sharedst | --shareds | --shared | --share | --shar \
1184 | --sha | --sh)
1185 ac_prev=sharedstatedir ;;
1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189 | --sha=* | --sh=*)
1c710c3c 1190 sharedstatedir=$ac_optarg ;;
671aa708
NN
1191
1192 -site | --site | --sit)
1193 ac_prev=site ;;
1194 -site=* | --site=* | --sit=*)
1c710c3c 1195 site=$ac_optarg ;;
671aa708
NN
1196
1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198 ac_prev=srcdir ;;
1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1200 srcdir=$ac_optarg ;;
671aa708
NN
1201
1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203 | --syscon | --sysco | --sysc | --sys | --sy)
1204 ac_prev=sysconfdir ;;
1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1207 sysconfdir=$ac_optarg ;;
671aa708
NN
1208
1209 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1210 ac_prev=target_alias ;;
671aa708 1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1212 target_alias=$ac_optarg ;;
671aa708
NN
1213
1214 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 verbose=yes ;;
1216
1c710c3c
DJ
1217 -version | --version | --versio | --versi | --vers | -V)
1218 ac_init_version=: ;;
671aa708
NN
1219
1220 -with-* | --with-*)
5213506e 1221 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1222 # Reject names that are not valid shell variable names.
5213506e 1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1224 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1228 *"
1229"with_$ac_useropt"
1230"*) ;;
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
2aeb72e9 1233 esac
5213506e 1234 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1235
1236 -without-* | --without-*)
5213506e 1237 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1238 # Reject names that are not valid shell variable names.
5213506e 1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1240 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1244 *"
1245"with_$ac_useropt"
1246"*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1249 esac
1250 eval with_$ac_useropt=no ;;
671aa708
NN
1251
1252 --x)
1253 # Obsolete; use --with-x.
1254 with_x=yes ;;
1255
1256 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257 | --x-incl | --x-inc | --x-in | --x-i)
1258 ac_prev=x_includes ;;
1259 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1261 x_includes=$ac_optarg ;;
671aa708
NN
1262
1263 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265 ac_prev=x_libraries ;;
1266 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1268 x_libraries=$ac_optarg ;;
671aa708 1269
22e05272
JM
1270 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1271Try \`$0 --help' for more information"
671aa708
NN
1272 ;;
1273
1c710c3c
DJ
1274 *=*)
1275 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276 # Reject names that are not valid shell variable names.
5213506e
RW
1277 case $ac_envvar in #(
1278 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1279 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1280 esac
1281 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1282 export $ac_envvar ;;
1283
671aa708 1284 *)
1c710c3c 1285 # FIXME: should be removed in autoconf 3.0.
5213506e 1286 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1288 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1289 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
671aa708
NN
1290 ;;
1291
1292 esac
1293done
1294
1295if test -n "$ac_prev"; then
1c710c3c 1296 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1297 as_fn_error $? "missing argument to $ac_option"
af71363e 1298fi
af71363e 1299
5213506e
RW
1300if test -n "$ac_unrecognized_opts"; then
1301 case $enable_option_checking in
1302 no) ;;
22e05272 1303 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1304 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1305 esac
5213506e 1306fi
2aeb72e9 1307
5213506e
RW
1308# Check all directory arguments for consistency.
1309for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310 datadir sysconfdir sharedstatedir localstatedir includedir \
1311 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312 libdir localedir mandir
2aeb72e9 1313do
5213506e
RW
1314 eval ac_val=\$$ac_var
1315 # Remove trailing slashes.
1316 case $ac_val in
1317 */ )
1318 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1319 eval $ac_var=\$ac_val;;
1320 esac
1321 # Be sure to have absolute directory names.
2aeb72e9 1322 case $ac_val in
5213506e
RW
1323 [\\/$]* | ?:[\\/]* ) continue;;
1324 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1325 esac
22e05272 1326 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1327done
1328
1c710c3c
DJ
1329# There might be people who depend on the old broken behavior: `$host'
1330# used to hold the argument of --host etc.
1331# FIXME: To remove some day.
1332build=$build_alias
1333host=$host_alias
1334target=$target_alias
0b0dc272 1335
1c710c3c
DJ
1336# FIXME: To remove some day.
1337if test "x$host_alias" != x; then
1338 if test "x$build_alias" = x; then
1339 cross_compiling=maybe
1c710c3c
DJ
1340 elif test "x$build_alias" != "x$host_alias"; then
1341 cross_compiling=yes
1342 fi
1343fi
1344
1345ac_tool_prefix=
1346test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347
1348test "$silent" = yes && exec 6>/dev/null
671aa708 1349
671aa708 1350
5213506e
RW
1351ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352ac_ls_di=`ls -di .` &&
1353ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1354 as_fn_error $? "working directory cannot be determined"
5213506e 1355test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1356 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1357
1358
671aa708
NN
1359# Find the source files, if location was not specified.
1360if test -z "$srcdir"; then
1361 ac_srcdir_defaulted=yes
5213506e
RW
1362 # Try the directory containing this script, then the parent directory.
1363 ac_confdir=`$as_dirname -- "$as_myself" ||
1364$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365 X"$as_myself" : 'X\(//\)[^/]' \| \
1366 X"$as_myself" : 'X\(//\)$' \| \
1367 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368$as_echo X"$as_myself" |
1369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\/\)[^/].*/{
1374 s//\1/
1375 q
1376 }
1377 /^X\(\/\/\)$/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\).*/{
1382 s//\1/
1383 q
1384 }
1385 s/.*/./; q'`
671aa708 1386 srcdir=$ac_confdir
5213506e 1387 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1388 srcdir=..
1389 fi
1390else
1391 ac_srcdir_defaulted=no
1392fi
5213506e
RW
1393if test ! -r "$srcdir/$ac_unique_file"; then
1394 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1395 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1396fi
1397ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398ac_abs_confdir=`(
22e05272 1399 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1400 pwd)`
1401# When building in place, set srcdir=.
1402if test "$ac_abs_confdir" = "$ac_pwd"; then
1403 srcdir=.
1404fi
1405# Remove unnecessary trailing slashes from srcdir.
1406# Double slashes in file names in object file debugging info
1407# mess up M-x gdb in Emacs.
1408case $srcdir in
1409*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410esac
87841584
AM
1411case $srcdir in
1412 *" "*)
22e05272 1413 as_fn_error $? "path to source, $srcdir, contains spaces"
87841584
AM
1414 ;;
1415esac
ac9e6043
RW
1416ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1417
5213506e
RW
1418for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423done
1c710c3c
DJ
1424
1425#
1426# Report the --help message.
1427#
1428if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1431 cat <<_ACEOF
1432\`configure' configures this package to adapt to many kinds of systems.
1433
1434Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437VAR=VALUE. See below for descriptions of some of the useful variables.
1438
1439Defaults for the options are specified in brackets.
1440
1441Configuration:
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
22e05272 1446 -q, --quiet, --silent do not print \`checking ...' messages
1c710c3c
DJ
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1451
1c710c3c
DJ
1452Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1454 [$ac_default_prefix]
1c710c3c 1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1456 [PREFIX]
1c710c3c
DJ
1457
1458By default, \`make install' will install all the files in
1459\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461for instance \`--prefix=\$HOME'.
1462
1463For better control, use the options below.
1464
1465Fine tuning of the installation directories:
5213506e
RW
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1485_ACEOF
1486
1487 cat <<\_ACEOF
1488
1489Program names:
1490 --program-prefix=PREFIX prepend PREFIX to installed program names
1491 --program-suffix=SUFFIX append SUFFIX to installed program names
1492 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1493
1494System types:
1495 --build=BUILD configure for building on BUILD [guessed]
1496 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1497 --target=TARGET configure for building compilers for TARGET [HOST]
1498_ACEOF
1499fi
1500
1501if test -n "$ac_init_help"; then
1502
1503 cat <<\_ACEOF
1504
1505Optional Features:
5213506e 1506 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1507 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1508 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1509 --enable-as-accelerator-for=ARG
1510 build as offload target compiler. Specify offload
1511 host triple by ARG
1512 --enable-offload-targets=LIST
1513 enable offloading to devices from comma-separated
1514 LIST of TARGET[=DIR]. Use optional path to find
1515 offload target compiler during the build
21539e2e 1516 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1517 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1518 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1519 Enable compressed debug sections for gas, gold or ld
1520 by default
87e6d9dc
TB
1521 --disable-libquadmath do not build libquadmath directory
1522 --disable-libquadmath-support
1523 disable libquadmath support for Fortran
30b74385
RW
1524 --enable-libada build libada directory
1525 --enable-libssp build libssp directory
1873ec0c 1526 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1527 --enable-liboffloadmic=ARG
1528 build liboffloadmic [ARG={no,host,target}]
ff3ac0f4 1529 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9 1530 --disable-isl-version-check
560d18d3 1531 disable check for isl version
d7f09764 1532 --enable-lto enable link time optimization support
45b3824d
TS
1533 --enable-linker-plugin-configure-flags=FLAGS
1534 additional flags for configuring linker plugins
1535 [none]
1536 --enable-linker-plugin-flags=FLAGS
1537 additional flags for configuring and building linker
1538 plugins [none]
cdfee50a 1539 --enable-host-shared build host code as shared libraries
33e39b66
AS
1540 --enable-stage1-languages[=all]
1541 choose additional languages to build during stage1.
1542 Mostly useful for compiler development
43c40f3e
RO
1543 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1544 Objective-C runtime
318a4e6d 1545 --enable-vtable-verify Enable vtable verification feature
30b74385 1546 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1547 force sequential configuration of sub-packages for
1548 the host, target or build machine, or all
1549 sub-packages
1550 --enable-maintainer-mode
1551 enable make rules and dependencies not useful (and
1552 sometimes confusing) to the casual installer
1553 --enable-stage1-checking[=all]
1554 choose additional checking for stage1 of the
1555 compiler
1c710c3c
DJ
1556 --enable-werror enable -Werror in bootstrap stage2 and later
1557
1558Optional Packages:
1559 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1560 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1561 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1562 --with-system-zlib use installed libz
33e39b66
AS
1563 --with-mpc=PATH specify prefix directory for installed MPC package.
1564 Equivalent to --with-mpc-include=PATH/include plus
1565 --with-mpc-lib=PATH/lib
1566 --with-mpc-include=PATH specify directory for installed MPC include files
1567 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1568 --with-mpfr-dir=PATH this option has been REMOVED
1569 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1570 Equivalent to --with-mpfr-include=PATH/include plus
1571 --with-mpfr-lib=PATH/lib
1c710c3c 1572 --with-mpfr-include=PATH
30b74385
RW
1573 specify directory for installed MPFR include files
1574 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1575 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1576 --with-gmp=PATH specify prefix directory for the installed GMP
1577 package. Equivalent to
1578 --with-gmp-include=PATH/include plus
1579 --with-gmp-lib=PATH/lib
30b74385
RW
1580 --with-gmp-include=PATH specify directory for installed GMP include files
1581 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1582 --with-stage1-libs=LIBS libraries for stage1
aac9103b
TT
1583 --with-static-standard-libraries
1584 use -static-libstdc++ and -static-libgcc
1585 (default=auto)
33e39b66
AS
1586 --with-stage1-ldflags=FLAGS
1587 linker flags for stage1
33e39b66
AS
1588 --with-boot-libs=LIBS libraries for stage2 and later
1589 --with-boot-ldflags=FLAGS
1590 linker flags for stage2 and later
e357a5e0 1591 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1592 package. Equivalent to
33ad93b9
RG
1593 --with-isl-include=PATH/include plus
1594 --with-isl-lib=PATH/lib
560d18d3
AK
1595 --with-isl-include=PATH Specify directory for installed isl include files
1596 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1597 --with-target-bdw-gc=PATHLIST
1598 specify prefix directory for installed bdw-gc
1599 package. Equivalent to
1600 --with-target-bdw-gc-include=PATH/include plus
1601 --with-target-bdw-gc-lib=PATH/lib
1602 --with-target-bdw-gc-include=PATHLIST
1603 specify directories for installed bdw-gc include
1604 files
1605 --with-target-bdw-gc-lib=PATHLIST
1606 specify directories for installed bdw-gc library
3c36aa6b
JJ
1607 --with-gcc-major-version-only
1608 use only GCC major number in filesystem paths
30b74385 1609 --with-build-sysroot=SYSROOT
1c710c3c 1610 use sysroot as the system root during the build
c8aea42c 1611 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1612 map A to B, C to D ... in debug information
1613 --with-build-config='NAME NAME2...'
1614 use config/NAME.mk build configuration
30b74385 1615 --with-build-time-tools=PATH
1c710c3c 1616 use given path to find target tools during the build
1c710c3c
DJ
1617
1618Some influential environment variables:
1619 CC C compiler command
1620 CFLAGS C compiler flags
1621 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1622 nonstandard directory <lib dir>
5213506e 1623 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1624 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1625 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1626 CXX C++ compiler command
1627 CXXFLAGS C++ compiler flags
ffedf511
RW
1628 build_configargs
1629 additional configure arguments for build directories
1630 host_configargs
1631 additional configure arguments for host directories
1632 target_configargs
1633 additional configure arguments for target directories
278a7a38
AO
1634 AR AR for the host
1635 AS AS for the host
1636 DLLTOOL DLLTOOL for the host
1637 LD LD for the host
1638 LIPO LIPO for the host
1639 NM NM for the host
1640 RANLIB RANLIB for the host
1641 STRIP STRIP for the host
1642 WINDRES WINDRES for the host
901119ae 1643 WINDMC WINDMC for the host
278a7a38
AO
1644 OBJCOPY OBJCOPY for the host
1645 OBJDUMP OBJDUMP for the host
e4a9a572 1646 OTOOL OTOOL for the host
e7a82751 1647 READELF READELF for the host
278a7a38
AO
1648 CC_FOR_TARGET
1649 CC for the target
1650 CXX_FOR_TARGET
1651 CXX for the target
1652 GCC_FOR_TARGET
1653 GCC for the target
278a7a38
AO
1654 GFORTRAN_FOR_TARGET
1655 GFORTRAN for the target
632e2a07
ILT
1656 GOC_FOR_TARGET
1657 GOC for the target
b4c522fa
IB
1658 GDC_FOR_TARGET
1659 GDC for the target
278a7a38
AO
1660 AR_FOR_TARGET
1661 AR for the target
1662 AS_FOR_TARGET
1663 AS for the target
1664 DLLTOOL_FOR_TARGET
1665 DLLTOOL for the target
1666 LD_FOR_TARGET
1667 LD for the target
1668 LIPO_FOR_TARGET
1669 LIPO for the target
1670 NM_FOR_TARGET
1671 NM for the target
9bccfdf5
AP
1672 OBJCOPY_FOR_TARGET
1673 OBJCOPY for the target
278a7a38
AO
1674 OBJDUMP_FOR_TARGET
1675 OBJDUMP for the target
e4a9a572
IS
1676 OTOOL_FOR_TARGET
1677 OTOOL for the target
278a7a38
AO
1678 RANLIB_FOR_TARGET
1679 RANLIB for the target
e7a82751
RM
1680 READELF_FOR_TARGET
1681 READELF for the target
278a7a38
AO
1682 STRIP_FOR_TARGET
1683 STRIP for the target
1684 WINDRES_FOR_TARGET
1685 WINDRES for the target
901119ae
KT
1686 WINDMC_FOR_TARGET
1687 WINDMC for the target
1c710c3c
DJ
1688
1689Use these variables to override the choices made by `configure' or to help
1690it to find libraries and programs with nonstandard names/locations.
1691
5213506e 1692Report bugs to the package provider.
1c710c3c 1693_ACEOF
5213506e 1694ac_status=$?
1c710c3c
DJ
1695fi
1696
1697if test "$ac_init_help" = "recursive"; then
1698 # If there are subdirs, report their specific --help.
1c710c3c 1699 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1700 test -d "$ac_dir" ||
1701 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1702 continue
1c710c3c
DJ
1703 ac_builddir=.
1704
5213506e
RW
1705case "$ac_dir" in
1706.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1707*)
1708 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1709 # A ".." for each directory in $ac_dir_suffix.
1710 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1711 case $ac_top_builddir_sub in
1712 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1714 esac ;;
1715esac
1716ac_abs_top_builddir=$ac_pwd
1717ac_abs_builddir=$ac_pwd$ac_dir_suffix
1718# for backward compatibility:
1719ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1720
1721case $srcdir in
5213506e 1722 .) # We are building in place.
1c710c3c 1723 ac_srcdir=.
5213506e
RW
1724 ac_top_srcdir=$ac_top_builddir_sub
1725 ac_abs_top_srcdir=$ac_pwd ;;
1726 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1727 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1728 ac_top_srcdir=$srcdir
1729 ac_abs_top_srcdir=$srcdir ;;
1730 *) # Relative name.
1731 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1732 ac_top_srcdir=$ac_top_build_prefix$srcdir
1733 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1734esac
5213506e
RW
1735ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1736
1737 cd "$ac_dir" || { ac_status=$?; continue; }
1738 # Check for guested configure.
1739 if test -f "$ac_srcdir/configure.gnu"; then
1740 echo &&
1741 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1742 elif test -f "$ac_srcdir/configure"; then
1743 echo &&
1744 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1745 else
5213506e
RW
1746 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1747 fi || ac_status=$?
1748 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1749 done
1750fi
1751
5213506e 1752test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1753if $ac_init_version; then
1754 cat <<\_ACEOF
5213506e 1755configure
22e05272 1756generated by GNU Autoconf 2.69
1c710c3c 1757
22e05272 1758Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
1759This configure script is free software; the Free Software Foundation
1760gives unlimited permission to copy, distribute and modify it.
1761_ACEOF
5213506e 1762 exit
0b0dc272 1763fi
5213506e
RW
1764
1765## ------------------------ ##
1766## Autoconf initialization. ##
1767## ------------------------ ##
1768
1769# ac_fn_c_try_compile LINENO
1770# --------------------------
1771# Try to compile conftest.$ac_ext, and return whether this succeeded.
1772ac_fn_c_try_compile ()
1773{
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext
1776 if { { ac_try="$ac_compile"
1777case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780esac
1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782$as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_compile") 2>conftest.err
1784 ac_status=$?
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1789 fi
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest.$ac_objext; then :
1795 ac_retval=0
1796else
1797 $as_echo "$as_me: failed program was:" >&5
1798sed 's/^/| /' conftest.$ac_ext >&5
1799
1800 ac_retval=1
1801fi
22e05272
JM
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
5213506e
RW
1804
1805} # ac_fn_c_try_compile
1806
1807# ac_fn_cxx_try_compile LINENO
1808# ----------------------------
1809# Try to compile conftest.$ac_ext, and return whether this succeeded.
1810ac_fn_cxx_try_compile ()
1811{
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 rm -f conftest.$ac_objext
1814 if { { ac_try="$ac_compile"
1815case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818esac
1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820$as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_compile") 2>conftest.err
1822 ac_status=$?
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1827 fi
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && {
1830 test -z "$ac_cxx_werror_flag" ||
1831 test ! -s conftest.err
1832 } && test -s conftest.$ac_objext; then :
1833 ac_retval=0
1834else
1835 $as_echo "$as_me: failed program was:" >&5
1836sed 's/^/| /' conftest.$ac_ext >&5
1837
1838 ac_retval=1
1839fi
22e05272
JM
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
5213506e
RW
1842
1843} # ac_fn_cxx_try_compile
1844
0b21f5d3
EB
1845# ac_fn_cxx_try_link LINENO
1846# -------------------------
1847# Try to link conftest.$ac_ext, and return whether this succeeded.
1848ac_fn_cxx_try_link ()
1849{
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 rm -f conftest.$ac_objext conftest$ac_exeext
1852 if { { ac_try="$ac_link"
1853case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856esac
1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858$as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>conftest.err
1860 ac_status=$?
1861 if test -s conftest.err; then
1862 grep -v '^ *+' conftest.err >conftest.er1
1863 cat conftest.er1 >&5
1864 mv -f conftest.er1 conftest.err
1865 fi
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && {
1868 test -z "$ac_cxx_werror_flag" ||
1869 test ! -s conftest.err
1870 } && test -s conftest$ac_exeext && {
1871 test "$cross_compiling" = yes ||
22e05272 1872 test -x conftest$ac_exeext
0b21f5d3
EB
1873 }; then :
1874 ac_retval=0
1875else
1876 $as_echo "$as_me: failed program was:" >&5
1877sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=1
1880fi
1881 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1882 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1883 # interfere with the next link command; also delete a directory that is
1884 # left behind by Apple's compiler. We do this before executing the actions.
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
0b21f5d3
EB
1888
1889} # ac_fn_cxx_try_link
1890
5213506e
RW
1891# ac_fn_c_try_link LINENO
1892# -----------------------
1893# Try to link conftest.$ac_ext, and return whether this succeeded.
1894ac_fn_c_try_link ()
1895{
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 rm -f conftest.$ac_objext conftest$ac_exeext
1898 if { { ac_try="$ac_link"
1899case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902esac
1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904$as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>conftest.err
1906 ac_status=$?
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1911 fi
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && {
1914 test -z "$ac_c_werror_flag" ||
1915 test ! -s conftest.err
1916 } && test -s conftest$ac_exeext && {
1917 test "$cross_compiling" = yes ||
22e05272 1918 test -x conftest$ac_exeext
5213506e
RW
1919 }; then :
1920 ac_retval=0
1921else
1922 $as_echo "$as_me: failed program was:" >&5
1923sed 's/^/| /' conftest.$ac_ext >&5
1924
1925 ac_retval=1
1926fi
1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929 # interfere with the next link command; also delete a directory that is
1930 # left behind by Apple's compiler. We do this before executing the actions.
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
5213506e
RW
1934
1935} # ac_fn_c_try_link
1936cat >config.log <<_ACEOF
1c710c3c
DJ
1937This file contains any messages produced by compilers while
1938running configure, to aid debugging if configure makes a mistake.
1939
1940It was created by $as_me, which was
22e05272 1941generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
1942
1943 $ $0 $@
1944
1945_ACEOF
5213506e 1946exec 5>>config.log
1c710c3c
DJ
1947{
1948cat <<_ASUNAME
1949## --------- ##
1950## Platform. ##
1951## --------- ##
1952
1953hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1954uname -m = `(uname -m) 2>/dev/null || echo unknown`
1955uname -r = `(uname -r) 2>/dev/null || echo unknown`
1956uname -s = `(uname -s) 2>/dev/null || echo unknown`
1957uname -v = `(uname -v) 2>/dev/null || echo unknown`
1958
1959/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1960/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1961
1962/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1963/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1964/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1965/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1966/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1967/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1968/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1969
1970_ASUNAME
1971
1972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973for as_dir in $PATH
1974do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
5213506e
RW
1977 $as_echo "PATH: $as_dir"
1978 done
1979IFS=$as_save_IFS
1c710c3c
DJ
1980
1981} >&5
1982
1983cat >&5 <<_ACEOF
1984
1985
1986## ----------- ##
1987## Core tests. ##
1988## ----------- ##
1989
1990_ACEOF
1991
1992
1993# Keep a trace of the command line.
1994# Strip out --no-create and --no-recursion so they do not pile up.
1995# Strip out --silent because we don't want to record it for future runs.
1996# Also quote any args containing shell meta-characters.
1997# Make two passes to allow for proper duplicate-argument suppression.
1998ac_configure_args=
1999ac_configure_args0=
2000ac_configure_args1=
1c710c3c
DJ
2001ac_must_keep_next=false
2002for ac_pass in 1 2
2003do
2004 for ac_arg
2005 do
2006 case $ac_arg in
2007 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2009 | -silent | --silent | --silen | --sile | --sil)
2010 continue ;;
5213506e
RW
2011 *\'*)
2012 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2013 esac
2014 case $ac_pass in
5213506e 2015 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2016 2)
5213506e 2017 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2018 if test $ac_must_keep_next = true; then
2019 ac_must_keep_next=false # Got value, back to normal.
2020 else
2021 case $ac_arg in
2022 *=* | --config-cache | -C | -disable-* | --disable-* \
2023 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2024 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2025 | -with-* | --with-* | -without-* | --without-* | --x)
2026 case "$ac_configure_args0 " in
2027 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2028 esac
2029 ;;
2030 -* ) ac_must_keep_next=true ;;
2031 esac
2032 fi
5213506e 2033 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2034 ;;
2035 esac
2036 done
2037done
5213506e
RW
2038{ ac_configure_args0=; unset ac_configure_args0;}
2039{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2040
2041# When interrupted or exit'd, cleanup temporary files, and complete
2042# config.log. We remove comments because anyway the quotes in there
2043# would cause problems or look ugly.
5213506e
RW
2044# WARNING: Use '\'' to represent an apostrophe within the trap.
2045# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2046trap 'exit_status=$?
2047 # Save into config.log some information that might help in debugging.
2048 {
2049 echo
2050
22e05272 2051 $as_echo "## ---------------- ##
1c710c3c 2052## Cache variables. ##
22e05272 2053## ---------------- ##"
1c710c3c
DJ
2054 echo
2055 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2056(
2057 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2058 eval ac_val=\$$ac_var
2059 case $ac_val in #(
2060 *${as_nl}*)
2061 case $ac_var in #(
2062 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2063$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2064 esac
2065 case $ac_var in #(
2066 _ | IFS | as_nl) ;; #(
2067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2068 *) { eval $ac_var=; unset $ac_var;} ;;
2069 esac ;;
2070 esac
2071 done
1c710c3c 2072 (set) 2>&1 |
5213506e
RW
2073 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2074 *${as_nl}ac_space=\ *)
1c710c3c 2075 sed -n \
5213506e
RW
2076 "s/'\''/'\''\\\\'\'''\''/g;
2077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2078 ;; #(
1c710c3c 2079 *)
5213506e 2080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2081 ;;
5213506e
RW
2082 esac |
2083 sort
2084)
1c710c3c
DJ
2085 echo
2086
22e05272 2087 $as_echo "## ----------------- ##
1c710c3c 2088## Output variables. ##
22e05272 2089## ----------------- ##"
1c710c3c
DJ
2090 echo
2091 for ac_var in $ac_subst_vars
2092 do
5213506e
RW
2093 eval ac_val=\$$ac_var
2094 case $ac_val in
2095 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2096 esac
2097 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2098 done | sort
2099 echo
2100
2101 if test -n "$ac_subst_files"; then
22e05272 2102 $as_echo "## ------------------- ##
5213506e 2103## File substitutions. ##
22e05272 2104## ------------------- ##"
1c710c3c
DJ
2105 echo
2106 for ac_var in $ac_subst_files
2107 do
5213506e
RW
2108 eval ac_val=\$$ac_var
2109 case $ac_val in
2110 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111 esac
2112 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2113 done | sort
2114 echo
2115 fi
2116
2117 if test -s confdefs.h; then
22e05272 2118 $as_echo "## ----------- ##
1c710c3c 2119## confdefs.h. ##
22e05272 2120## ----------- ##"
1c710c3c 2121 echo
5213506e 2122 cat confdefs.h
1c710c3c
DJ
2123 echo
2124 fi
2125 test "$ac_signal" != 0 &&
5213506e
RW
2126 $as_echo "$as_me: caught signal $ac_signal"
2127 $as_echo "$as_me: exit $exit_status"
1c710c3c 2128 } >&5
5213506e
RW
2129 rm -f core *.core core.conftest.* &&
2130 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2131 exit $exit_status
5213506e 2132' 0
1c710c3c 2133for ac_signal in 1 2 13 15; do
5213506e 2134 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2135done
2136ac_signal=0
2137
2138# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2139rm -f -r conftest* confdefs.h
2140
2141$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2142
2143# Predefined preprocessor variables.
2144
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_NAME "$PACKAGE_NAME"
2147_ACEOF
2148
1c710c3c
DJ
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2151_ACEOF
2152
1c710c3c
DJ
2153cat >>confdefs.h <<_ACEOF
2154#define PACKAGE_VERSION "$PACKAGE_VERSION"
2155_ACEOF
0b0dc272 2156
1c710c3c
DJ
2157cat >>confdefs.h <<_ACEOF
2158#define PACKAGE_STRING "$PACKAGE_STRING"
2159_ACEOF
2160
1c710c3c
DJ
2161cat >>confdefs.h <<_ACEOF
2162#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2163_ACEOF
2164
5213506e
RW
2165cat >>confdefs.h <<_ACEOF
2166#define PACKAGE_URL "$PACKAGE_URL"
2167_ACEOF
2168
1c710c3c
DJ
2169
2170# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2171# Prefer an explicitly selected file to automatically selected ones.
2172ac_site_file1=NONE
2173ac_site_file2=NONE
2174if test -n "$CONFIG_SITE"; then
22e05272
JM
2175 # We do not want a PATH search for config.site.
2176 case $CONFIG_SITE in #((
2177 -*) ac_site_file1=./$CONFIG_SITE;;
2178 */*) ac_site_file1=$CONFIG_SITE;;
2179 *) ac_site_file1=./$CONFIG_SITE;;
2180 esac
5213506e
RW
2181elif test "x$prefix" != xNONE; then
2182 ac_site_file1=$prefix/share/config.site
2183 ac_site_file2=$prefix/etc/config.site
2184else
2185 ac_site_file1=$ac_default_prefix/share/config.site
2186 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2187fi
5213506e
RW
2188for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2189do
2190 test "x$ac_site_file" = xNONE && continue
22e05272 2191 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2193$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2194 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2195 . "$ac_site_file" \
2196 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2198as_fn_error $? "failed to load site script $ac_site_file
2199See \`config.log' for more details" "$LINENO" 5; }
671aa708
NN
2200 fi
2201done
2202
2203if test -r "$cache_file"; then
22e05272
JM
2204 # Some versions of bash will fail to source /dev/null (special files
2205 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2206 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2208$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2209 case $cache_file in
5213506e
RW
2210 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2211 *) . "./$cache_file";;
1c710c3c
DJ
2212 esac
2213 fi
671aa708 2214else
5213506e
RW
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2216$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2217 >$cache_file
2218fi
2219
2220# Check that the precious variables saved in the cache have kept the same
2221# value.
2222ac_cache_corrupted=false
5213506e 2223for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2224 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2225 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2226 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2227 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2228 case $ac_old_set,$ac_new_set in
2229 set,)
5213506e
RW
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2231$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2232 ac_cache_corrupted=: ;;
2233 ,set)
5213506e
RW
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2235$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2236 ac_cache_corrupted=: ;;
2237 ,);;
2238 *)
2239 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2240 # differences in whitespace do not lead to failure.
2241 ac_old_val_w=`echo x $ac_old_val`
2242 ac_new_val_w=`echo x $ac_new_val`
2243 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2245$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2246 ac_cache_corrupted=:
2247 else
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2249$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2250 eval $ac_var=\$ac_old_val
2251 fi
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2253$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2255$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2256 fi;;
2257 esac
2258 # Pass precious variables to config.status.
2259 if test "$ac_new_set" = set; then
2260 case $ac_new_val in
5213506e 2261 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2262 *) ac_arg=$ac_var=$ac_new_val ;;
2263 esac
2264 case " $ac_configure_args " in
2265 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2266 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2267 esac
2268 fi
2269done
2270if $ac_cache_corrupted; then
5213506e
RW
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2274$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2275 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2276fi
5213506e
RW
2277## -------------------- ##
2278## Main body of script. ##
2279## -------------------- ##
671aa708 2280
2aeb72e9
DD
2281ac_ext=c
2282ac_cpp='$CPP $CPPFLAGS'
2283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2285ac_compiler_gnu=$ac_cv_c_compiler_gnu
2286
1c710c3c
DJ
2287
2288
2289
1c710c3c
DJ
2290
2291
0115d4a3 2292
1c710c3c 2293
ad33ff57
RW
2294progname=$0
2295# if PWD already has a value, it is probably wrong.
2296if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2297
2298# Export original configure arguments for use by sub-configures.
2299# Quote arguments with shell meta charatcers.
2300TOPLEVEL_CONFIGURE_ARGUMENTS=
2301set -- "$progname" "$@"
2302for ac_arg
2303do
2304 case "$ac_arg" in
2305 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2306 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2307 # if the argument is of the form -foo=baz, quote the baz part only
2308 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2309 *) ;;
2310 esac
2311 # Add the quoted argument to the list.
2312 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2313done
2314if test "$silent" = yes; then
2315 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2316fi
2317# Remove the initial space we just introduced and, as these will be
2318# expanded by make, quote '$'.
2319TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2320
1c710c3c
DJ
2321
2322# Find the build, host, and target systems.
671aa708 2323ac_aux_dir=
5213506e 2324for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2325 if test -f "$ac_dir/install-sh"; then
2326 ac_aux_dir=$ac_dir
2327 ac_install_sh="$ac_aux_dir/install-sh -c"
2328 break
2329 elif test -f "$ac_dir/install.sh"; then
2330 ac_aux_dir=$ac_dir
2331 ac_install_sh="$ac_aux_dir/install.sh -c"
2332 break
2333 elif test -f "$ac_dir/shtool"; then
2334 ac_aux_dir=$ac_dir
2335 ac_install_sh="$ac_aux_dir/shtool install -c"
2336 break
2337 fi
671aa708
NN
2338done
2339if test -z "$ac_aux_dir"; then
22e05272 2340 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2341fi
5213506e
RW
2342
2343# These three variables are undocumented and unsupported,
2344# and are intended to be withdrawn in a future Autoconf release.
2345# They can cause serious problems if a builder's source tree is in a directory
2346# whose full name contains unusual characters.
2347ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2348ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2349ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2350
671aa708 2351
1c710c3c 2352# Make sure we can run config.sub.
5213506e 2353$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2354 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2355
2356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2357$as_echo_n "checking build system type... " >&6; }
22e05272 2358if ${ac_cv_build+:} false; then :
5213506e
RW
2359 $as_echo_n "(cached) " >&6
2360else
2361 ac_build_alias=$build_alias
2362test "x$ac_build_alias" = x &&
2363 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2364test "x$ac_build_alias" = x &&
22e05272 2365 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2366ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2367 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2368
2369fi
2370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2371$as_echo "$ac_cv_build" >&6; }
2372case $ac_cv_build in
2373*-*-*) ;;
22e05272 2374*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2375esac
1c710c3c 2376build=$ac_cv_build
5213506e
RW
2377ac_save_IFS=$IFS; IFS='-'
2378set x $ac_cv_build
2379shift
2380build_cpu=$1
2381build_vendor=$2
2382shift; shift
2383# Remember, the first character of IFS is used to create $*,
2384# except with old shells:
2385build_os=$*
2386IFS=$ac_save_IFS
2387case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2388
671aa708 2389
1c710c3c
DJ
2390 case ${build_alias} in
2391 "") build_noncanonical=${build} ;;
2392 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2393esac
2394
2395
af71363e 2396
1c710c3c
DJ
2397 case ${host_alias} in
2398 "") host_noncanonical=${build_noncanonical} ;;
2399 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2400esac
2401
af71363e 2402
1c710c3c
DJ
2403
2404 case ${target_alias} in
2405 "") target_noncanonical=${host_noncanonical} ;;
2406 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2407esac
2408
af71363e 2409
1c710c3c
DJ
2410
2411
2412test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2413 test "$program_prefix$program_suffix$program_transform_name" = \
2414 NONENONEs,x,x, &&
1c710c3c 2415 program_transform_name=s,y,y,
af71363e 2416
5213506e
RW
2417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2418$as_echo_n "checking host system type... " >&6; }
22e05272 2419if ${ac_cv_host+:} false; then :
5213506e 2420 $as_echo_n "(cached) " >&6
af71363e 2421else
5213506e
RW
2422 if test "x$host_alias" = x; then
2423 ac_cv_host=$ac_cv_build
2424else
2425 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2426 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2427fi
1c710c3c 2428
af71363e 2429fi
5213506e
RW
2430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2431$as_echo "$ac_cv_host" >&6; }
2432case $ac_cv_host in
2433*-*-*) ;;
22e05272 2434*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2435esac
1c710c3c 2436host=$ac_cv_host
5213506e
RW
2437ac_save_IFS=$IFS; IFS='-'
2438set x $ac_cv_host
2439shift
2440host_cpu=$1
2441host_vendor=$2
2442shift; shift
2443# Remember, the first character of IFS is used to create $*,
2444# except with old shells:
2445host_os=$*
2446IFS=$ac_save_IFS
2447case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2448
2449
5213506e
RW
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2451$as_echo_n "checking target system type... " >&6; }
22e05272 2452if ${ac_cv_target+:} false; then :
5213506e 2453 $as_echo_n "(cached) " >&6
1c710c3c 2454else
5213506e
RW
2455 if test "x$target_alias" = x; then
2456 ac_cv_target=$ac_cv_host
2457else
2458 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2459 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2460fi
1c710c3c
DJ
2461
2462fi
5213506e
RW
2463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2464$as_echo "$ac_cv_target" >&6; }
2465case $ac_cv_target in
2466*-*-*) ;;
22e05272 2467*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2468esac
1c710c3c 2469target=$ac_cv_target
5213506e
RW
2470ac_save_IFS=$IFS; IFS='-'
2471set x $ac_cv_target
2472shift
2473target_cpu=$1
2474target_vendor=$2
2475shift; shift
2476# Remember, the first character of IFS is used to create $*,
2477# except with old shells:
2478target_os=$*
2479IFS=$ac_save_IFS
2480case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2481
2482
2483# The aliases save the names the user supplied, while $host etc.
2484# will get canonicalized.
2485test -n "$target_alias" &&
2486 test "$program_prefix$program_suffix$program_transform_name" = \
2487 NONENONEs,x,x, &&
2488 program_prefix=${target_alias}-
5213506e 2489
671aa708 2490test "$program_prefix" != NONE &&
5213506e 2491 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2492# Use a double $ so make ignores it.
2493test "$program_suffix" != NONE &&
5213506e
RW
2494 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2495# Double any \ or $.
1c710c3c 2496# By default was `s,x,x', remove it if useless.
5213506e
RW
2497ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2498program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2499
671aa708
NN
2500
2501
775956d0
NN
2502# Get 'install' or 'install-sh' and its variants.
2503# Find a good install program. We prefer a C program (faster),
2504# so one script is as good as another. But avoid the broken or
2505# incompatible versions:
2506# SysV /etc/install, /usr/sbin/install
2507# SunOS /usr/etc/install
2508# IRIX /sbin/install
2509# AIX /bin/install
1c710c3c 2510# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2511# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2512# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2513# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2514# OS/2's system install, which has a completely different semantic
775956d0 2515# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2516# Reject install programs that cannot install multiple files.
5213506e
RW
2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2518$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2519if test -z "$INSTALL"; then
22e05272 2520if ${ac_cv_path_install+:} false; then :
5213506e 2521 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2522else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524for as_dir in $PATH
2525do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
5213506e
RW
2528 # Account for people who put trailing slashes in PATH elements.
2529case $as_dir/ in #((
2530 ./ | .// | /[cC]/* | \
1c710c3c 2531 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2532 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2533 /usr/ucb/* ) ;;
2534 *)
2535 # OSF1 and SCO ODT 3.0 have their own names for install.
2536 # Don't use installbsd from OSF since it installs stuff as root
2537 # by default.
2538 for ac_prog in ginstall scoinst install; do
2539 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2540 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 2541 if test $ac_prog = install &&
1c710c3c 2542 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2543 # AIX install. It has an incompatible calling convention.
2544 :
1c710c3c
DJ
2545 elif test $ac_prog = install &&
2546 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2547 # program-specific install script used by HP pwplus--don't use.
2548 :
775956d0 2549 else
38d24731
RW
2550 rm -rf conftest.one conftest.two conftest.dir
2551 echo one > conftest.one
2552 echo two > conftest.two
2553 mkdir conftest.dir
2554 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2555 test -s conftest.one && test -s conftest.two &&
2556 test -s conftest.dir/conftest.one &&
2557 test -s conftest.dir/conftest.two
2558 then
2559 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2560 break 3
2561 fi
775956d0
NN
2562 fi
2563 fi
2564 done
1c710c3c
DJ
2565 done
2566 ;;
2567esac
5213506e
RW
2568
2569 done
2570IFS=$as_save_IFS
1c710c3c 2571
38d24731 2572rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2573
2574fi
2575 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2576 INSTALL=$ac_cv_path_install
775956d0 2577 else
38d24731
RW
2578 # As a last resort, use the slow shell script. Don't cache a
2579 # value for INSTALL within a source directory, because that will
775956d0 2580 # break other packages using the cache if that directory is
38d24731 2581 # removed, or if the value is a relative name.
1c710c3c 2582 INSTALL=$ac_install_sh
775956d0
NN
2583 fi
2584fi
5213506e
RW
2585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2586$as_echo "$INSTALL" >&6; }
775956d0
NN
2587
2588# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2589# It thinks the first close brace ends the variable substitution.
2590test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2591
1c710c3c 2592test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2593
2594test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2595
5213506e
RW
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2597$as_echo_n "checking whether ln works... " >&6; }
22e05272 2598if ${acx_cv_prog_LN+:} false; then :
5213506e 2599 $as_echo_n "(cached) " >&6
ad6717df
PB
2600else
2601 rm -f conftestdata_t
2602echo >conftestdata_f
2603if ln conftestdata_f conftestdata_t 2>/dev/null
2604then
2605 acx_cv_prog_LN=ln
2606else
2607 acx_cv_prog_LN=no
2608fi
2609rm -f conftestdata_f conftestdata_t
2610
2611fi
2612if test $acx_cv_prog_LN = no; then
2613 LN="cp"
5213506e
RW
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2615$as_echo "no, using $LN" >&6; }
ad6717df
PB
2616else
2617 LN="$acx_cv_prog_LN"
5213506e
RW
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2619$as_echo "yes" >&6; }
ad6717df
PB
2620fi
2621
5213506e
RW
2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2623$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2624LN_S=$as_ln_s
2625if test "$LN_S" = "ln -s"; then
5213506e
RW
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2627$as_echo "yes" >&6; }
fb0103e5 2628else
5213506e
RW
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2630$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2631fi
2632
87264276
PB
2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2634$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 2635if ${ac_cv_path_SED+:} false; then :
87264276
PB
2636 $as_echo_n "(cached) " >&6
2637else
2638 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2639 for ac_i in 1 2 3 4 5 6 7; do
2640 ac_script="$ac_script$as_nl$ac_script"
2641 done
2642 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2643 { ac_script=; unset ac_script;}
2644 if test -z "$SED"; then
2645 ac_path_SED_found=false
2646 # Loop through the user's path and test for each of PROGNAME-LIST
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH
2649do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_prog in sed gsed; do
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 2655 as_fn_executable_p "$ac_path_SED" || continue
87264276
PB
2656# Check for GNU ac_path_SED and select it if it is found.
2657 # Check for GNU $ac_path_SED
2658case `"$ac_path_SED" --version 2>&1` in
2659*GNU*)
2660 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2661*)
2662 ac_count=0
2663 $as_echo_n 0123456789 >"conftest.in"
2664 while :
2665 do
2666 cat "conftest.in" "conftest.in" >"conftest.tmp"
2667 mv "conftest.tmp" "conftest.in"
2668 cp "conftest.in" "conftest.nl"
2669 $as_echo '' >> "conftest.nl"
2670 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2672 as_fn_arith $ac_count + 1 && ac_count=$as_val
2673 if test $ac_count -gt ${ac_path_SED_max-0}; then
2674 # Best one so far, save it but keep looking for a better one
2675 ac_cv_path_SED="$ac_path_SED"
2676 ac_path_SED_max=$ac_count
2677 fi
2678 # 10*(2^10) chars as input seems more than enough
2679 test $ac_count -gt 10 && break
2680 done
2681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2682esac
2683
2684 $ac_path_SED_found && break 3
2685 done
2686 done
2687 done
2688IFS=$as_save_IFS
2689 if test -z "$ac_cv_path_SED"; then
22e05272 2690 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
87264276
PB
2691 fi
2692else
2693 ac_cv_path_SED=$SED
2694fi
2695
2696fi
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2698$as_echo "$ac_cv_path_SED" >&6; }
2699 SED="$ac_cv_path_SED"
2700 rm -f conftest.sed
2701
2702for ac_prog in gawk mawk nawk awk
2703do
2704 # Extract the first word of "$ac_prog", so it can be a program name with args.
2705set dummy $ac_prog; ac_word=$2
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2708if ${ac_cv_prog_AWK+:} false; then :
87264276
PB
2709 $as_echo_n "(cached) " >&6
2710else
2711 if test -n "$AWK"; then
2712 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2713else
2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715for as_dir in $PATH
2716do
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87264276
PB
2721 ac_cv_prog_AWK="$ac_prog"
2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 break 2
2724 fi
2725done
2726 done
2727IFS=$as_save_IFS
2728
2729fi
2730fi
2731AWK=$ac_cv_prog_AWK
2732if test -n "$AWK"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2734$as_echo "$AWK" >&6; }
2735else
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737$as_echo "no" >&6; }
2738fi
2739
2740
2741 test -n "$AWK" && break
2742done
2743
775956d0 2744
ee6a22df
L
2745srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2746
2747# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2748# a relative path.
2749if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2750 INSTALL="${srcpwd}/install-sh -c"
2751fi
2752
671aa708
NN
2753# Set srcdir to "." if that's what it is.
2754# This is important for multilib support.
2755pwd=`${PWDCMD-pwd}`
671aa708
NN
2756if test "${pwd}" = "${srcpwd}" ; then
2757 srcdir=.
79c06341
JL
2758fi
2759
671aa708 2760topsrcdir=$srcpwd
5d4a5ee6 2761
671aa708 2762extra_host_args=
afabd8e6 2763
671aa708
NN
2764### To add a new directory to the tree, first choose whether it is a target
2765### or a host dependent tool. Then put it into the appropriate list
2766### (library or tools, host or target), doing a dependency sort.
79c06341 2767
1c710c3c 2768# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2769# configdirs, or target_configdirs; see the serialization section below.
79c06341 2770
1c710c3c
DJ
2771# Dependency sorting is only needed when *configuration* must be done in
2772# a particular order. In all cases a dependency should be specified in
671aa708 2773# the Makefile, whether or not it's implicitly specified here.
79c06341 2774
671aa708
NN
2775# Double entries in build_configdirs, configdirs, or target_configdirs may
2776# cause circular dependencies and break everything horribly.
79c06341 2777
23f6b2f9
PB
2778# these library is used by various programs built for the build
2779# environment
2780#
929315a9 2781build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2782
2783# these tools are built for the build environment
85bfb75e 2784build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2785
671aa708 2786# these libraries are used by various programs built for the host environment
eae1a5d4 2787#f
de6abd85 2788host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
671aa708 2789
671aa708
NN
2790# these tools are built for the host environment
2791# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2792# know that we are building the simulator.
2793# binutils, gas and ld appear in that order because it makes sense to run
2794# "make check" in that particular order.
38e3d868 2795# If --enable-gold is used, "gold" may replace "ld".
f9d09df0 2796host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
671aa708 2797
671aa708
NN
2798# these libraries are built for the target environment, and are built after
2799# the host libraries and the host tools (which may be a cross compiler)
8499116a 2800# Note that libiberty is not a target library.
291f172e 2801target_libraries="target-libgcc \
eff02e4f 2802 target-libbacktrace \
671aa708
NN
2803 target-libgloss \
2804 target-newlib \
6d3b5aea 2805 target-libgomp \
5f520819 2806 target-liboffloadmic \
5fd1486c 2807 target-libhsail-rt \
48310492 2808 target-libatomic \
0a35513e 2809 target-libitm \
cb543528 2810 target-libstdc++-v3 \
f35db108 2811 target-libsanitizer \
2077db1b 2812 target-libvtv \
77008252 2813 target-libssp \
1ec601bf 2814 target-libquadmath \
6de9cd9a 2815 target-libgfortran \
012447ea 2816 target-libffi \
d9cdb878 2817 target-libobjc \
632e2a07 2818 target-libada \
b4c522fa 2819 target-libgo \
bb50312e
IB
2820 target-libphobos \
2821 target-zlib"
671aa708 2822
4dbda6f0
NN
2823# these tools are built using the target libraries, and are intended to
2824# run only in the target environment
671aa708 2825#
4dbda6f0 2826# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2827# list belongs in this list.
671aa708 2828#
85bfb75e 2829target_tools="target-rda"
79c06341 2830
671aa708 2831################################################################################
79c06341 2832
671aa708
NN
2833## All tools belong in one of the four categories, and are assigned above
2834## We assign ${configdirs} this way to remove all embedded newlines. This
2835## is important because configure will choke if they ever get through.
2836## ${configdirs} is directories we build using the host tools.
2837## ${target_configdirs} is directories we build using the target tools.
671aa708 2838configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2839target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2840build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2841
ac9e6043
RW
2842
2843
671aa708 2844################################################################################
79c06341 2845
671aa708 2846srcname="gnu development package"
79c06341 2847
671aa708
NN
2848# This gets set non-empty for some net releases of packages.
2849appdirs=""
79c06341 2850
671aa708
NN
2851# Define is_cross_compiler to save on calls to 'test'.
2852is_cross_compiler=
2853if test x"${host}" = x"${target}" ; then
2854 is_cross_compiler=no
79c06341 2855else
671aa708 2856 is_cross_compiler=yes
1c710c3c 2857fi
79c06341 2858
b4acb5ef 2859# Find the build and target subdir names.
8b87bb96 2860
2e9e6f68
DJ
2861# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2862# have matching libraries, they should use host libraries: Makefile.tpl
2863# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2864# However, they still use the build modules, because the corresponding
2865# host modules (e.g. bison) are only built for the host when bootstrap
2866# finishes. So:
2867# - build_subdir is where we find build modules, and never changes.
2868# - build_libsubdir is where we find build libraries, and can be overridden.
2869
2870# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2871build_subdir="build-${build_noncanonical}"
1c710c3c 2872
5213506e
RW
2873# Check whether --with-build-libsubdir was given.
2874if test "${with_build_libsubdir+set}" = set; then :
2875 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2876else
2877 build_libsubdir="$build_subdir"
5213506e
RW
2878fi
2879
215c351a
PB
2880# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2881if ( test $srcdir = . && test -d gcc ) \
2882 || test -d $srcdir/../host-${host_noncanonical}; then
2883 host_subdir="host-${host_noncanonical}"
2884else
2885 host_subdir=.
2886fi
8b87bb96
NN
2887# No prefix.
2888target_subdir=${target_noncanonical}
1c710c3c 2889
0db770bd
RW
2890# Be sure to cover against remnants of an in-tree build.
2891if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
22e05272 2892 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
0db770bd
RW
2893Use a pristine source tree when building in a separate tree" "$LINENO" 5
2894fi
79c06341 2895
671aa708
NN
2896# Skipdirs are removed silently.
2897skipdirs=
2898# Noconfigdirs are removed loudly.
2899noconfigdirs=""
79c06341 2900
671aa708
NN
2901use_gnu_ld=
2902# Make sure we don't let GNU ld be added if we didn't want it.
2903if test x$with_gnu_ld = xno ; then
2904 use_gnu_ld=no
5afab7ad 2905 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2906fi
2907
671aa708
NN
2908use_gnu_as=
2909# Make sure we don't let GNU as be added if we didn't want it.
2910if test x$with_gnu_as = xno ; then
2911 use_gnu_as=no
2912 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2913fi
2914
d7f09764 2915use_included_zlib=
a05c2c75
L
2916
2917# Check whether --with-system-zlib was given.
2918if test "${with_system_zlib+set}" = set; then :
2919 withval=$with_system_zlib;
2920fi
2921
d7f09764
DN
2922# Make sure we don't let ZLIB be added if we didn't want it.
2923if test x$with_system_zlib = xyes ; then
2924 use_included_zlib=no
2925 noconfigdirs="$noconfigdirs zlib"
2926fi
2927
1c710c3c 2928# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2929# it's not even worth trying to configure, much less build, that tool.
79c06341 2930
671aa708
NN
2931case ${with_x} in
2932 yes | "") ;; # the default value for this tree is that X11 is available
2933 no)
b4f96efe 2934 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2935 # We won't be able to build gdbtk without X.
1c710c3c 2936 enable_gdbtk=no
671aa708
NN
2937 ;;
2938 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2939esac
79c06341 2940
1bcce263 2941# Some are only suitable for cross toolchains.
671aa708
NN
2942# Remove these if host=target.
2943cross_only="target-libgloss target-newlib target-opcodes"
2944
2945case $is_cross_compiler in
2946 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2947esac
79c06341 2948
671aa708
NN
2949# If both --with-headers and --with-libs are specified, default to
2950# --without-newlib.
ee6a22df
L
2951if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2952 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2953 if test x"${with_newlib}" = x ; then
2954 with_newlib=no
2955 fi
79c06341
JL
2956fi
2957
671aa708
NN
2958# Recognize --with-newlib/--without-newlib.
2959case ${with_newlib} in
2960 no) skipdirs="${skipdirs} target-newlib" ;;
2961 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2962esac
79c06341 2963
85c64bbe
BS
2964# Check whether --enable-as-accelerator-for was given.
2965if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2966 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2967fi
2968
2969
2970# Check whether --enable-offload-targets was given.
2971if test "${enable_offload_targets+set}" = set; then :
2972 enableval=$enable_offload_targets;
2973 if test x"$enable_offload_targets" = x; then
22e05272 2974 as_fn_error $? "no offload targets specified" "$LINENO" 5
85c64bbe
BS
2975 fi
2976
2977else
2978 enable_offload_targets=
2979fi
2980
2981
21539e2e
MK
2982# Handle --enable-gold, --enable-ld.
2983# --disable-gold [--enable-ld]
2984# Build only ld. Default option.
9580395f
L
2985# --enable-gold [--enable-ld]
2986# Build both gold and ld. Install gold as "ld.gold", install ld
2987# as "ld.bfd" and "ld".
2988# --enable-gold=default [--enable-ld]
21539e2e
MK
2989# Build both gold and ld. Install gold as "ld.gold" and "ld",
2990# install ld as "ld.bfd".
2991# --enable-gold[=default] --disable-ld
2992# Build only gold, which is then installed as both "ld.gold" and "ld".
2993# --enable-gold --enable-ld=default
9580395f
L
2994# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2995# and ld.bfd).
21539e2e
MK
2996# In other words, ld is default
2997# --enable-gold=default --enable-ld=default
2998# Error.
2999
3000default_ld=
5213506e
RW
3001# Check whether --enable-gold was given.
3002if test "${enable_gold+set}" = set; then :
3003 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
3004else
3005 ENABLE_GOLD=no
5213506e
RW
3006fi
3007
21539e2e
MK
3008case "${ENABLE_GOLD}" in
3009 yes|default)
38e3d868
RM
3010 # Check for ELF target.
3011 is_elf=no
3012 case "${target}" in
3013 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 3014 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 3015 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 3016 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
3017 case "${target}" in
3018 *-*-linux*aout* | *-*-linux*oldld*)
3019 ;;
3020 *)
3021 is_elf=yes
3022 ;;
3023 esac
3024 esac
3025
3026 if test "$is_elf" = "yes"; then
3027 # Check for target supported by gold.
5afab7ad 3028 case "${target}" in
7705dfd1 3029 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
1b858e76 3030 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
21539e2e
MK
3031 configdirs="$configdirs gold"
3032 if test x${ENABLE_GOLD} = xdefault; then
3033 default_ld=gold
3034 fi
38e3d868 3035 ENABLE_GOLD=yes
5afab7ad
ILT
3036 ;;
3037 esac
38e3d868
RM
3038 fi
3039 ;;
3040 no)
3041 ;;
3042 *)
22e05272 3043 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
38e3d868 3044 ;;
21539e2e
MK
3045esac
3046
3047# Check whether --enable-ld was given.
3048if test "${enable_ld+set}" = set; then :
3049 enableval=$enable_ld; ENABLE_LD=$enableval
3050else
3051 ENABLE_LD=yes
3052fi
3053
3054
3055case "${ENABLE_LD}" in
3056 default)
9580395f 3057 if test x${default_ld} != x; then
22e05272 3058 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
21539e2e
MK
3059 fi
3060 ;;
3061 yes)
3062 ;;
3063 no)
3064 if test x${ENABLE_GOLD} != xyes; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3066$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3067 fi
3068 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3069 ;;
3070 *)
22e05272 3071 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
21539e2e
MK
3072 ;;
3073esac
5afab7ad 3074
78edb32f
L
3075# PR gas/19109
3076# Decide the default method for compressing debug sections.
3077# Provide a configure time option to override our default.
3078# Check whether --enable-compressed_debug_sections was given.
3079if test "${enable_compressed_debug_sections+set}" = set; then :
3080 enableval=$enable_compressed_debug_sections;
3081 if test x"$enable_compressed_debug_sections" = xyes; then
22e05272 3082 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
78edb32f
L
3083 fi
3084
3085else
3086 enable_compressed_debug_sections=
3087fi
3088
3089
671aa708 3090# Configure extra directories which are host specific
79c06341 3091
671aa708
NN
3092case "${host}" in
3093 *-cygwin*)
3094 configdirs="$configdirs libtermcap" ;;
3095esac
79c06341 3096
4fab7234
HPN
3097# A target can indicate whether a language isn't supported for some reason.
3098# Only spaces may be used in this macro; not newlines or tabs.
3099unsupported_languages=
3100
1c710c3c 3101# Remove more programs from consideration, based on the host or
671aa708
NN
3102# target this usually means that a port of the program doesn't
3103# exist yet.
ec8d6ddc 3104
671aa708 3105case "${host}" in
111eeb6e 3106 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3107 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3108 ;;
671aa708 3109esac
ec8d6ddc 3110
6de9cd9a 3111
87e6d9dc
TB
3112# Check whether --enable-libquadmath was given.
3113if test "${enable_libquadmath+set}" = set; then :
3114 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3115else
3116 ENABLE_LIBQUADMATH=yes
3117fi
3118
3119if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3120 noconfigdirs="$noconfigdirs target-libquadmath"
3121fi
3122
3123
3124# Check whether --enable-libquadmath-support was given.
3125if test "${enable_libquadmath_support+set}" = set; then :
3126 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3127else
3128 ENABLE_LIBQUADMATH_SUPPORT=yes
3129fi
3130
3131enable_libquadmath_support=
3132if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3133 enable_libquadmath_support=no
3134fi
3135
3136
5213506e
RW
3137# Check whether --enable-libada was given.
3138if test "${enable_libada+set}" = set; then :
3139 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3140else
3141 ENABLE_LIBADA=yes
5213506e
RW
3142fi
3143
d9cdb878 3144if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3145 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3146fi
3147
5213506e
RW
3148# Check whether --enable-libssp was given.
3149if test "${enable_libssp+set}" = set; then :
3150 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3151else
3152 ENABLE_LIBSSP=yes
5213506e
RW
3153fi
3154
ef0087a7 3155
1873ec0c
L
3156# Check whether --enable-libstdcxx was given.
3157if test "${enable_libstdcxx+set}" = set; then :
3158 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3159else
3160 ENABLE_LIBSTDCXX=default
3161fi
3162
3163if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3164 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3165fi
3166
5f520819
KY
3167# If this is accelerator compiler and its target is intelmic we enable
3168# target liboffloadmic by default. If this is compiler with offloading
3169# for intelmic we enable host liboffloadmic by default. Otherwise
3170# liboffloadmic is disabled by default.
3171# Check whether --enable-liboffloadmic was given.
3172if test "${enable_liboffloadmic+set}" = set; then :
3173 enableval=$enable_liboffloadmic; case "$enableval" in
3174 no | host | target)
3175 enable_liboffloadmic=$enableval ;;
3176 *)
22e05272 3177 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
5f520819
KY
3178esac
3179else
4b4f2e35 3180 if test x"$enable_as_accelerator_for" != x; then
5f520819
KY
3181 case "${target}" in
3182 *-intelmic-* | *-intelmicemul-*)
3183 enable_liboffloadmic=target
3184 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3185 ;;
3186 *)
3187 enable_liboffloadmic=no
3188 ;;
3189 esac
3190else
3191 case "${enable_offload_targets}" in
3192 *-intelmic-* | *-intelmicemul-*)
3193 enable_liboffloadmic=host
3194 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3195 ;;
3196 *)
3197 enable_liboffloadmic=no
3198 ;;
3199 esac
3200fi
3201fi
3202
3203
3204
44a7d18d 3205# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3206if test x$enable_libgomp = x ; then
953ff289 3207 case "${target}" in
416ac4d4 3208 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3209 ;;
8c6d158a 3210 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3211 ;;
b24513a1 3212 *-*-solaris2* | *-*-hpux11*)
953ff289 3213 ;;
cac90078 3214 *-*-darwin* | *-*-aix*)
953ff289 3215 ;;
29b1533a 3216 nvptx*-*-* | amdgcn*-*-*)
44a7d18d 3217 ;;
953ff289
DN
3218 *)
3219 noconfigdirs="$noconfigdirs target-libgomp"
3220 ;;
3221 esac
27079765 3222fi
953ff289 3223
48310492
RH
3224# Disable libatomic on unsupported systems.
3225if test -d ${srcdir}/libatomic; then
3226 if test x$enable_libatomic = x; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3228$as_echo_n "checking for libatomic support... " >&6; }
3229 if (srcdir=${srcdir}/libatomic; \
3230 . ${srcdir}/configure.tgt; \
3231 test -n "$UNSUPPORTED")
3232 then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234$as_echo "no" >&6; }
3235 noconfigdirs="$noconfigdirs target-libatomic"
3236 else
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3238$as_echo "yes" >&6; }
3239 fi
3240 fi
3241fi
3242
5f520819
KY
3243# Disable liboffloadmic on unsupported systems.
3244if test -d ${srcdir}/liboffloadmic; then
3245 if test x$enable_liboffloadmic != xno; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3247$as_echo_n "checking for liboffloadmic support... " >&6; }
3248 if (srcdir=${srcdir}/liboffloadmic; \
3249 . ${srcdir}/configure.tgt; \
3250 test -n "$UNSUPPORTED")
3251 then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253$as_echo "no" >&6; }
3254 noconfigdirs="$noconfigdirs target-liboffloadmic"
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3257$as_echo "yes" >&6; }
3258 fi
3259 fi
3260fi
3261
e948157d
RH
3262# Disable libitm on unsupported systems.
3263if test -d ${srcdir}/libitm; then
3264 if test x$enable_libitm = x; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3266$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3267 if (srcdir=${srcdir}/libitm; \
3268 . ${srcdir}/configure.tgt; \
3269 test -n "$UNSUPPORTED")
3270 then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3272$as_echo "no" >&6; }
e948157d
RH
3273 noconfigdirs="$noconfigdirs target-libitm"
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3276$as_echo "yes" >&6; }
e948157d
RH
3277 fi
3278 fi
0a35513e
AH
3279fi
3280
93bf5390
RH
3281# Disable libsanitizer on unsupported systems.
3282if test -d ${srcdir}/libsanitizer; then
3283 if test x$enable_libsanitizer = x; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3285$as_echo_n "checking for libsanitizer support... " >&6; }
3286 if (srcdir=${srcdir}/libsanitizer; \
3287 . ${srcdir}/configure.tgt; \
3288 test -n "$UNSUPPORTED")
3289 then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291$as_echo "no" >&6; }
3292 noconfigdirs="$noconfigdirs target-libsanitizer"
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295$as_echo "yes" >&6; }
3296 fi
3297 fi
3298fi
3299
2077db1b
CT
3300# Disable libvtv on unsupported systems.
3301if test -d ${srcdir}/libvtv; then
3302 if test x$enable_libvtv = x; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3304$as_echo_n "checking for libvtv support... " >&6; }
3305 if (srcdir=${srcdir}/libvtv; \
3306 . ${srcdir}/configure.tgt; \
1e74b850 3307 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3308 then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310$as_echo "no" >&6; }
3311 noconfigdirs="$noconfigdirs target-libvtv"
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314$as_echo "yes" >&6; }
3315 fi
3316 fi
3317fi
3318
5373cd33 3319
f6a24a94
MJ
3320# Disable libhsail-rt on unsupported systems.
3321if test -d ${srcdir}/libhsail-rt; then
3322 if test x$enable_libhsail_rt = x; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3324$as_echo_n "checking for libhsail-rt support... " >&6; }
3325 if (srcdir=${srcdir}/libhsail-rt; \
3326 . ${srcdir}/configure.tgt; \
3327 test -n "$UNSUPPORTED")
3328 then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330$as_echo "no" >&6; }
3331 unsupported_languages="$unsupported_languages brig"
3332 # This implicitly disables also target-libhsail-rt as it won't
3333 # get added to the build without BRIG FE.
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336$as_echo "yes" >&6; }
3337 fi
3338 fi
3339fi
5373cd33
IE
3340
3341
d91491e5
SE
3342# Disable libquadmath for some systems.
3343case "${target}" in
e7fae550
DE
3344 avr-*-*)
3345 noconfigdirs="$noconfigdirs target-libquadmath"
3346 ;;
d91491e5
SE
3347 # libquadmath is unused on AIX and libquadmath build process use of
3348 # LD_LIBRARY_PATH can break AIX bootstrap.
3349 powerpc-*-aix* | rs6000-*-aix*)
3350 noconfigdirs="$noconfigdirs target-libquadmath"
3351 ;;
3352esac
3353
1e9e0e23
JM
3354# Disable libssp for some systems.
3355case "${target}" in
3356 avr-*-*)
b318fb4b 3357 # No hosted I/O support.
1e9e0e23
JM
3358 noconfigdirs="$noconfigdirs target-libssp"
3359 ;;
91dfef96
JM
3360 bpf-*-*)
3361 noconfigdirs="$noconfigdirs target-libssp"
3362 ;;
1e9e0e23
JM
3363 powerpc-*-aix* | rs6000-*-aix*)
3364 noconfigdirs="$noconfigdirs target-libssp"
85b8555e 3365 ;;
8d2af3a2
DD
3366 pru-*-*)
3367 # No hosted I/O support.
3368 noconfigdirs="$noconfigdirs target-libssp"
3369 ;;
85b8555e 3370 rl78-*-*)
7cb62ef1
EB
3371 # libssp uses a misaligned load to trigger a fault, but the RL78
3372 # doesn't fault for those - instead, it gives a build-time error
3373 # for explicit misaligned loads.
85b8555e 3374 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3375 ;;
0969ec7d
EB
3376 visium-*-*)
3377 # No hosted I/O support.
3378 noconfigdirs="$noconfigdirs target-libssp"
3379 ;;
1e9e0e23
JM
3380esac
3381
1e9e0e23 3382# Disable libstdc++-v3 for some systems.
1873ec0c
L
3383# Allow user to override this if they pass --enable-libstdc++-v3
3384if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3385 case "${target}" in
3386 *-*-vxworks*)
3387 # VxWorks uses the Dinkumware C++ library.
3388 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3389 ;;
3390 arm*-wince-pe*)
3391 # the C++ libraries don't build on top of CE's C libraries
3392 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3393 ;;
3394 avr-*-*)
3395 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3396 ;;
91dfef96
JM
3397 bpf-*-*)
3398 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3399 ;;
fef939d6
JB
3400 ft32-*-*)
3401 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3402 ;;
1873ec0c
L
3403 esac
3404fi
1e9e0e23 3405
91dfef96
JM
3406# Disable C++ on systems where it is known to not work.
3407# For testing, you can override this with --enable-languages=c++.
3408case ,${enable_languages}, in
3409 *,c++,*)
3410 ;;
3411 *)
3412 case "${target}" in
3413 bpf-*-*)
3414 unsupported_languages="$unsupported_languages c++"
3415 ;;
3416 esac
3417 ;;
3418esac
3419
3420# Disable Objc on systems where it is known to not work.
3421# For testing, you can override this with --enable-languages=objc.
3422case ,${enable_languages}, in
3423 *,objc,*)
3424 ;;
3425 *)
3426 case "${target}" in
3427 bpf-*-*)
3428 unsupported_languages="$unsupported_languages objc"
3429 ;;
3430 esac
3431 ;;
3432esac
3433
260eedb9
IB
3434# Disable D on systems where it is known to not work.
3435# For testing, you can override this with --enable-languages=d.
3436case ,${enable_languages}, in
3437 *,d,*)
3438 ;;
3439 *)
3440 case "${target}" in
4d024c32 3441 *-*-darwin*)
91dfef96
JM
3442 unsupported_languages="$unsupported_languages d"
3443 ;;
3444 bpf-*-*)
260eedb9
IB
3445 unsupported_languages="$unsupported_languages d"
3446 ;;
3447 esac
3448 ;;
3449esac
3450
3451# Disable libphobos on unsupported systems.
3452# For testing, you can override this with --enable-libphobos.
3453if test -d ${srcdir}/libphobos; then
3454 if test x$enable_libphobos = x; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3456$as_echo_n "checking for libphobos support... " >&6; }
3457 if (srcdir=${srcdir}/libphobos; \
3458 . ${srcdir}/configure.tgt; \
7d31d331 3459 test "$LIBPHOBOS_SUPPORTED" != "yes")
260eedb9
IB
3460 then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462$as_echo "no" >&6; }
3463 noconfigdirs="$noconfigdirs target-libphobos"
3464 else
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3466$as_echo "yes" >&6; }
3467 fi
3468 fi
3469fi
3470
1e9e0e23
JM
3471# Disable Fortran for some systems.
3472case "${target}" in
3473 mmix-*-*)
3474 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3475 unsupported_languages="$unsupported_languages fortran"
3476 ;;
91dfef96
JM
3477 bpf-*-*)
3478 unsupported_languages="$unsupported_languages fortran"
3479 ;;
1e9e0e23
JM
3480esac
3481
012447ea
JJ
3482# Disable libffi for some systems.
3483case "${target}" in
3484 powerpc-*-darwin*)
3485 ;;
3486 i[3456789]86-*-darwin*)
3487 ;;
3488 x86_64-*-darwin[912]*)
3489 ;;
3490 *-*-darwin*)
3491 noconfigdirs="$noconfigdirs target-libffi"
3492 ;;
3493 *-*-netware*)
3494 noconfigdirs="$noconfigdirs target-libffi"
3495 ;;
3496 *-*-phoenix*)
3497 noconfigdirs="$noconfigdirs target-libffi"
3498 ;;
3499 *-*-rtems*)
3500 noconfigdirs="$noconfigdirs target-libffi"
3501 ;;
3502 *-*-tpf*)
3503 noconfigdirs="$noconfigdirs target-libffi"
3504 ;;
3505 *-*-uclinux*)
3506 noconfigdirs="$noconfigdirs target-libffi"
3507 ;;
3508 *-*-vxworks*)
3509 noconfigdirs="$noconfigdirs target-libffi"
3510 ;;
b20e7532
AT
3511 aarch64*-*-freebsd*)
3512 noconfigdirs="$noconfigdirs target-libffi"
3513 ;;
012447ea
JJ
3514 alpha*-*-*vms*)
3515 noconfigdirs="$noconfigdirs target-libffi"
3516 ;;
3517 arm*-*-freebsd*)
3518 noconfigdirs="$noconfigdirs target-libffi"
3519 ;;
3520 arm-wince-pe)
3521 noconfigdirs="$noconfigdirs target-libffi"
3522 ;;
3523 arm*-*-symbianelf*)
3524 noconfigdirs="$noconfigdirs target-libffi"
3525 ;;
91dfef96
JM
3526 bpf-*-*)
3527 noconfigdirs="$noconfigdirs target-libffi"
3528 ;;
012447ea
JJ
3529 cris-*-* | crisv32-*-*)
3530 case "${target}" in
3531 *-*-linux*)
3532 ;;
3533 *) # See PR46792 regarding target-libffi.
3534 noconfigdirs="$noconfigdirs target-libffi";;
3535 esac
3536 ;;
3537 hppa*64*-*-hpux*)
3538 noconfigdirs="$noconfigdirs target-libffi"
3539 ;;
3540 hppa*-hp-hpux11*)
3541 ;;
3542 hppa*-*-hpux*)
3543 noconfigdirs="$noconfigdirs target-libffi"
3544 ;;
3545 ia64*-*-*vms*)
3546 noconfigdirs="$noconfigdirs target-libffi"
3547 ;;
3548 i[3456789]86-w64-mingw*)
3549 noconfigdirs="$noconfigdirs target-libffi"
3550 ;;
3551 i[3456789]86-*-mingw*)
3552 noconfigdirs="$noconfigdirs target-libffi"
3553 ;;
3554 x86_64-*-mingw*)
3555 noconfigdirs="$noconfigdirs target-libffi"
3556 ;;
3557 mmix-*-*)
3558 noconfigdirs="$noconfigdirs target-libffi"
3559 ;;
3560 powerpc-*-aix*)
012447ea
JJ
3561 ;;
3562 rs6000-*-aix*)
012447ea
JJ
3563 ;;
3564 ft32-*-*)
3565 noconfigdirs="$noconfigdirs target-libffi"
3566 ;;
3567 *-*-lynxos*)
3568 noconfigdirs="$noconfigdirs target-libffi"
3569 ;;
3570esac
3571
3572# Disable the go frontend on systems where it is known to not work. Please keep
3573# this in sync with contrib/config-list.mk.
3574case "${target}" in
91dfef96 3575*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
012447ea
JJ
3576 unsupported_languages="$unsupported_languages go"
3577 ;;
3578esac
3579
f9d09df0
TT
3580# Only allow gdbserver on some systems.
3581if test -d ${srcdir}/gdbserver; then
3582 if test x$enable_gdbserver = x; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3584$as_echo_n "checking for gdbserver support... " >&6; }
3585 if (srcdir=${srcdir}/gdbserver; \
3586 . ${srcdir}/configure.srv; \
3587 test -n "$UNSUPPORTED")
3588 then
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590$as_echo "no" >&6; }
3591 noconfigdirs="$noconfigdirs gdbserver"
3592 else
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3594$as_echo "yes" >&6; }
3595 fi
3596 fi
3597fi
3598
cdbc9e92
ILT
3599# Disable libgo for some systems where it is known to not work.
3600# For testing, you can easily override this with --enable-libgo.
3601if test x$enable_libgo = x; then
3602 case "${target}" in
3603 *-*-darwin*)
3604 # PR 46986
3605 noconfigdirs="$noconfigdirs target-libgo"
3606 ;;
3607 *-*-cygwin* | *-*-mingw*)
3608 noconfigdirs="$noconfigdirs target-libgo"
3609 ;;
91dfef96
JM
3610 bpf-*-*)
3611 noconfigdirs="$noconfigdirs target-libgo"
3612 ;;
cdbc9e92
ILT
3613 esac
3614fi
3615
c03353e2
RIL
3616# Default libgloss CPU subdirectory.
3617libgloss_dir="$target_cpu"
6de9cd9a 3618
fbcf0dca
JM
3619case "${target}" in
3620 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3621 libgloss_dir=wince
3622 ;;
4dddfc74
YZ
3623 aarch64*-*-* )
3624 libgloss_dir=aarch64
3625 ;;
fbcf0dca
JM
3626 arm*-*-*)
3627 libgloss_dir=arm
3628 ;;
3629 cris-*-* | crisv32-*-*)
3630 libgloss_dir=cris
3631 ;;
3632 hppa*-*-*)
3633 libgloss_dir=pa
3634 ;;
3635 i[3456789]86-*-*)
3636 libgloss_dir=i386
3637 ;;
3638 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3639 libgloss_dir=m68hc11
3640 ;;
3641 m68*-*-* | fido-*-*)
3642 libgloss_dir=m68k
3643 ;;
3644 mips*-*-*)
3645 libgloss_dir=mips
3646 ;;
3647 powerpc*-*-*)
3648 libgloss_dir=rs6000
3649 ;;
8d2af3a2
DD
3650 pru-*-*)
3651 libgloss_dir=pru
3652 ;;
fbcf0dca
JM
3653 sparc*-*-*)
3654 libgloss_dir=sparc
3655 ;;
3656esac
3657
6a789d5e 3658# Disable newlib and libgloss for various target OSes.
671aa708 3659case "${target}" in
6a789d5e
JM
3660 alpha*-dec-osf*)
3661 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3662 ;;
3663 i[3456789]86-*-linux*)
3664 # This section makes it possible to build newlib natively on linux.
3665 # If we are using a cross compiler then don't configure newlib.
3666 if test x${is_cross_compiler} != xno ; then
3667 noconfigdirs="$noconfigdirs target-newlib"
3668 fi
3669 noconfigdirs="$noconfigdirs target-libgloss"
3670 # If we are not using a cross compiler, do configure newlib.
3671 # Note however, that newlib will only be configured in this situation
3672 # if the --with-newlib option has been given, because otherwise
3673 # 'target-newlib' will appear in skipdirs.
3674 ;;
3675 i[3456789]86-*-rdos*)
3676 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3677 ;;
3678 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3679 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3680 ;;
3681 sparc-*-sunos4*)
3682 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3683 ;;
91dfef96
JM
3684 bpf-*-*)
3685 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3686 ;;
6a789d5e
JM
3687 *-*-aix*)
3688 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3689 ;;
3690 *-*-beos*)
3691 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692 ;;
671aa708 3693 *-*-chorusos)
0036370f 3694 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3695 ;;
6a789d5e
JM
3696 *-*-dragonfly*)
3697 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698 ;;
3699 *-*-freebsd*)
3700 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3701 ;;
3702 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3703 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704 ;;
3705 *-*-lynxos*)
3706 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3707 ;;
3708 *-*-mingw*)
3709 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3710 ;;
3711 *-*-netbsd*)
3712 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3713 ;;
3714 *-*-netware*)
3715 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3716 ;;
3717 *-*-tpf*)
3718 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719 ;;
3720 *-*-uclinux*)
3721 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722 ;;
3723 *-*-vxworks*)
3724 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725 ;;
3726esac
3727
3728case "${target}" in
3729 *-*-chorusos)
3730 ;;
3be96231
TG
3731 aarch64-*-darwin*)
3732 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3733 noconfigdirs="$noconfigdirs sim target-rda"
3734 ;;
7431c1a1
AS
3735 amdgcn*-*-*)
3736 ;;
3be96231
TG
3737 arm-*-darwin*)
3738 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3739 noconfigdirs="$noconfigdirs sim target-rda"
3740 ;;
75eeae1a 3741 powerpc-*-darwin*)
e1514c3f 3742 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3743 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3744 ;;
354ebf88
RW
3745 i[3456789]86-*-darwin*)
3746 noconfigdirs="$noconfigdirs ld gprof"
3747 noconfigdirs="$noconfigdirs sim target-rda"
3748 ;;
3749 x86_64-*-darwin[912]*)
0db3a858
TG
3750 noconfigdirs="$noconfigdirs ld gas gprof"
3751 noconfigdirs="$noconfigdirs sim target-rda"
3752 ;;
42c1cd8a
AT
3753 *-*-darwin*)
3754 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3755 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3756 ;;
8c6d158a 3757 *-*-dragonfly*)
8c6d158a 3758 ;;
c3f84f61 3759 *-*-freebsd*)
6de9cd9a
DN
3760 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3761 && test -f /usr/local/include/gmp.h; then
3762 with_gmp=/usr/local
3763 fi
6de9cd9a 3764 ;;
ef4e7569
US
3765 *-*-kaos*)
3766 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3767 noconfigdirs="$noconfigdirs target-libgloss"
3768 ;;
671aa708 3769 *-*-netbsd*)
671aa708 3770 ;;
61fec9ff 3771 *-*-netware*)
671aa708 3772 ;;
fd6487af
JS
3773 *-*-phoenix*)
3774 noconfigdirs="$noconfigdirs target-libgloss"
3775 ;;
671aa708 3776 *-*-rtems*)
2909494b 3777 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3778 ;;
a8ba31f2
EC
3779 # The tpf target doesn't support gdb yet.
3780 *-*-tpf*)
6a789d5e 3781 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3782 ;;
5785c0ed 3783 *-*-uclinux*)
6a789d5e 3784 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3785 ;;
671aa708 3786 *-*-vxworks*)
671aa708
NN
3787 ;;
3788 alpha*-dec-osf*)
3789 # ld works, but does not support shared libraries.
671aa708 3790 # gas doesn't generate exception information.
6a789d5e 3791 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3792 ;;
3793 alpha*-*-*vms*)
2909494b 3794 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3795 ;;
671aa708
NN
3796 alpha*-*-*)
3797 # newlib is not 64 bit ready
2909494b 3798 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3799 ;;
91dfef96
JM
3800 bpf-*-*)
3801 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3802 ;;
671aa708 3803 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3804 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3805 ;;
2fd88f4f
AK
3806 arc*-*-*)
3807 noconfigdirs="$noconfigdirs sim"
3808 ;;
671aa708 3809 arm-*-pe*)
2909494b 3810 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3811 ;;
671aa708 3812 arm-*-riscix*)
0036370f 3813 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3814 ;;
b588ae30
GJL
3815 avr-*-*)
3816 if test x${with_avrlibc} != xno; then
3817 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3818 fi
3819 ;;
671aa708 3820 c4x-*-* | tic4x-*-*)
0036370f 3821 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3822 ;;
0036370f
JM
3823 tic54x-*-*)
3824 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3825 ;;
671aa708 3826 d10v-*-*)
0036370f 3827 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3828 ;;
3829 d30v-*-*)
0036370f 3830 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3831 ;;
3832 fr30-*-elf*)
2909494b 3833 noconfigdirs="$noconfigdirs gdb"
671aa708 3834 ;;
a05c2c75
L
3835 ft32-*-*)
3836 noconfigdirs="$noconfigdirs target-rda gprof"
3837 ;;
55f2d967 3838 moxie-*-*)
a05c2c75 3839 noconfigdirs="$noconfigdirs"
55f2d967 3840 ;;
671aa708 3841 h8300*-*-*)
2909494b 3842 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3843 ;;
3844 h8500-*-*)
0036370f 3845 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3846 ;;
ee6a22df 3847 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3848 ;;
a05c2c75
L
3849 hppa*64*-*-hpux*)
3850 noconfigdirs="$noconfigdirs gdb"
3851 ;;
3852 hppa*-*-hpux11*)
3853 noconfigdirs="$noconfigdirs gdb ld"
3854 ;;
4569f85e 3855 hppa*64*-*-linux*)
671aa708 3856 ;;
56f8587a 3857 hppa*-*-linux*)
3e732ba0 3858 ;;
671aa708 3859 hppa*-*-*elf* | \
671aa708
NN
3860 hppa*-*-lites* | \
3861 hppa*-*-openbsd* | \
3862 hppa*64*-*-*)
671aa708 3863 ;;
c03353e2 3864 hppa*-*-pro*)
c03353e2 3865 ;;
671aa708 3866 hppa*-*-*)
2909494b 3867 noconfigdirs="$noconfigdirs ld"
671aa708 3868 ;;
fb87ad5d 3869 i960-*-*)
0036370f 3870 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3871 ;;
671aa708
NN
3872 ia64*-*-elf*)
3873 # No gdb support yet.
1bcce263 3874 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3875 ;;
3876 ia64*-**-hpux*)
5a2931d1 3877 # No ld support yet.
a05c2c75 3878 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3879 ;;
52535a64 3880 ia64*-*-*vms*)
091fe9ca
TG
3881 # No ld support yet.
3882 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3883 ;;
ef4c4300 3884 i[3456789]86-w64-mingw*)
ef4c4300
KT
3885 ;;
3886 i[3456789]86-*-mingw*)
b91f0a41 3887 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3888 ;;
671aa708
NN
3889 *-*-cygwin*)
3890 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3891 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3892 # always build newlib if winsup directory is present.
b91f0a41 3893 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3894 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3895 elif test -d "$srcdir/newlib"; then
b91f0a41 3896 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3897 fi
1c710c3c 3898 ;;
f2a0e225 3899 i[3456789]86-*-pe)
ebb9f8b0 3900 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3901 ;;
f2a0e225 3902 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3903 # The linker does not yet know about weak symbols in COFF,
3904 # and is not configured to handle mixed ELF and COFF.
0036370f 3905 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3906 ;;
f2a0e225 3907 i[3456789]86-*-sco*)
0036370f 3908 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3909 ;;
fbdd5d87 3910 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3911 noconfigdirs="$noconfigdirs target-libgloss"
3912 ;;
f2a0e225 3913 i[3456789]86-*-sysv4*)
0036370f 3914 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3915 ;;
f2a0e225 3916 i[3456789]86-*-beos*)
6a789d5e 3917 noconfigdirs="$noconfigdirs gdb"
3aa83176 3918 ;;
d1f8db0c 3919 i[3456789]86-*-rdos*)
6a789d5e 3920 noconfigdirs="$noconfigdirs gdb"
c03353e2 3921 ;;
671aa708 3922 mmix-*-*)
2909494b 3923 noconfigdirs="$noconfigdirs gdb"
671aa708 3924 ;;
ab34901f 3925 mt-*-*)
79dd769c
AH
3926 noconfigdirs="$noconfigdirs sim"
3927 ;;
58b40a67
FT
3928 nfp-*-*)
3929 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3930 noconfigdirs="$noconfigdirs $target_libraries"
3931 ;;
671aa708
NN
3932 powerpc-*-aix*)
3933 # copied from rs6000-*-* entry
6a789d5e 3934 noconfigdirs="$noconfigdirs gprof"
671aa708 3935 ;;
4569f85e 3936 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3937 target_configdirs="$target_configdirs target-winsup"
0036370f 3938 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3939 # always build newlib.
3940 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3941 ;;
3942 # This is temporary until we can link against shared libraries
3943 powerpcle-*-solaris*)
0036370f 3944 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3945 ;;
3946 powerpc-*-beos*)
6a789d5e 3947 noconfigdirs="$noconfigdirs gdb"
671aa708 3948 ;;
671aa708 3949 rs6000-*-lynxos*)
6a789d5e 3950 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3951 ;;
3952 rs6000-*-aix*)
6a789d5e 3953 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3954 ;;
3955 rs6000-*-*)
2909494b 3956 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3957 ;;
3958 m68k-apollo-*)
0036370f 3959 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3960 ;;
ca9fe997 3961 microblaze*)
2909494b 3962 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3963 ;;
d896cc4d 3964 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3965 if test x$with_newlib = xyes; then
3966 noconfigdirs="$noconfigdirs gprof"
3967 fi
d9dced13 3968 ;;
671aa708 3969 mips*-*-irix5*)
0036370f 3970 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3971 ;;
3972 mips*-*-irix6*)
2909494b 3973 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3974 ;;
671aa708 3975 mips*-*-bsd*)
bc98bcc4 3976 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3977 ;;
671aa708 3978 mips*-*-linux*)
671aa708 3979 ;;
bc98bcc4
JBG
3980 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3981 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3982 noconfigdirs="$noconfigdirs ld gas gprof"
3983 ;;
671aa708 3984 mips*-*-*)
2909494b 3985 noconfigdirs="$noconfigdirs gprof"
671aa708 3986 ;;
738f2522 3987 nvptx*-*-*)
738f2522
BS
3988 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3989 ;;
bc6d9014 3990 sh-*-*)
ea2002ba
CB
3991 case "${target}" in
3992 sh*-*-elf)
2909494b 3993 ;;
ea2002ba 3994 *)
2909494b 3995 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3996 esac
671aa708 3997 ;;
671aa708 3998 sparc-*-sunos4*)
6a789d5e 3999 if test x${is_cross_compiler} = xno ; then
671aa708
NN
4000 use_gnu_ld=no
4001 fi
4002 ;;
b42f0d7e 4003 tic6x-*-*)
0d557ff8 4004 noconfigdirs="$noconfigdirs sim"
b42f0d7e 4005 ;;
341c653c 4006 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
4007 noconfigdirs="$noconfigdirs sim"
4008 ;;
671aa708 4009 v810-*-*)
0036370f 4010 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
4011 ;;
4012 vax-*-*)
2909494b 4013 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 4014 ;;
1fc1d82e
MR
4015 wasm32-*-*)
4016 noconfigdirs="$noconfigdirs ld"
4017 ;;
671aa708 4018esac
79c06341 4019
671aa708
NN
4020# If we aren't building newlib, then don't build libgloss, since libgloss
4021# depends upon some newlib header files.
4022case "${noconfigdirs}" in
4023 *target-libgloss*) ;;
4024 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4025esac
4026
671aa708 4027# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
4028host_makefile_frag=/dev/null
4029if test -d ${srcdir}/config ; then
4030case "${host}" in
f2a0e225 4031 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
4032 host_makefile_frag="config/mh-djgpp"
4033 ;;
4034 *-cygwin*)
2a79c47f 4035
5213506e
RW
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4037$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 4038echo a >cygwin-cat-check
e25a8c82 4039if test `cat cygwin-cat-check` = a ; then
2a79c47f 4040 rm cygwin-cat-check
5213506e
RW
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4042$as_echo "yes" >&6; }
2a79c47f
NC
4043else
4044 rm cygwin-cat-check
5213506e
RW
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046$as_echo "no" >&6; }
22e05272 4047 as_fn_error $? "The cat command does not ignore carriage return characters.
2a79c47f
NC
4048 Please either mount the build directory in binary mode or run the following
4049 commands before running any configure script:
4050set -o igncr
4051export SHELLOPTS
5213506e 4052 " "$LINENO" 5
2a79c47f
NC
4053fi
4054
671aa708
NN
4055 host_makefile_frag="config/mh-cygwin"
4056 ;;
c53a18d3 4057 *-mingw*)
1f5a6b84 4058 host_makefile_frag="config/mh-mingw"
95af8923 4059 ;;
cabb9d59 4060 alpha*-linux*)
13be44ed
UB
4061 host_makefile_frag="config/mh-alpha-linux"
4062 ;;
efd41714 4063 hppa*-hp-hpux10*)
efd41714 4064 host_makefile_frag="config/mh-pa-hpux10"
671aa708 4065 ;;
111eeb6e 4066 hppa*-hp-hpux*)
efd41714
PB
4067 host_makefile_frag="config/mh-pa"
4068 ;;
4069 hppa*-*)
4070 host_makefile_frag="config/mh-pa"
4071 ;;
d8ed14ce
IS
4072 *-*-darwin*)
4073 host_makefile_frag="config/mh-darwin"
be8fff81 4074 ;;
d19bca38
PB
4075 powerpc-*-aix*)
4076 host_makefile_frag="config/mh-ppc-aix"
4077 ;;
4078 rs6000-*-aix*)
4079 host_makefile_frag="config/mh-ppc-aix"
4080 ;;
671aa708
NN
4081esac
4082fi
4083
55ffb5ed 4084if test "${build}" != "${host}" ; then
0999159b
PB
4085 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4086 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4087 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b 4088 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
0999159b 4089 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4090 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
b4c522fa 4091 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
0999159b
PB
4092 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4093 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4094 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4095 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4096 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4097 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4098else
4099 AR_FOR_BUILD="\$(AR)"
4100 AS_FOR_BUILD="\$(AS)"
fb0103e5 4101 CC_FOR_BUILD="\$(CC)"
0999159b 4102 CXX_FOR_BUILD="\$(CXX)"
0999159b 4103 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4104 GOC_FOR_BUILD="\$(GOC)"
b4c522fa 4105 GDC_FOR_BUILD="\$(GDC)"
0999159b
PB
4106 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4107 LD_FOR_BUILD="\$(LD)"
4108 NM_FOR_BUILD="\$(NM)"
4109 RANLIB_FOR_BUILD="\$(RANLIB)"
4110 WINDRES_FOR_BUILD="\$(WINDRES)"
4111 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4112fi
4113
4114ac_ext=c
1c710c3c
DJ
4115ac_cpp='$CPP $CPPFLAGS'
4116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119if test -n "$ac_tool_prefix"; then
4120 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4121set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4124if ${ac_cv_prog_CC+:} false; then :
5213506e 4125 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4126else
4127 if test -n "$CC"; then
4128 ac_cv_prog_CC="$CC" # Let the user override the test.
4129else
4130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131for as_dir in $PATH
4132do
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
5213506e 4135 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4137 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4139 break 2
4140 fi
4141done
5213506e
RW
4142 done
4143IFS=$as_save_IFS
1c710c3c
DJ
4144
4145fi
4146fi
4147CC=$ac_cv_prog_CC
4148if test -n "$CC"; then
5213506e
RW
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4150$as_echo "$CC" >&6; }
1c710c3c 4151else
5213506e
RW
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153$as_echo "no" >&6; }
1c710c3c
DJ
4154fi
4155
5213506e 4156
1c710c3c
DJ
4157fi
4158if test -z "$ac_cv_prog_CC"; then
4159 ac_ct_CC=$CC
fb0103e5
RG
4160 # Extract the first word of "gcc", so it can be a program name with args.
4161set dummy gcc; ac_word=$2
5213506e
RW
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4164if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4165 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4166else
4167 if test -n "$ac_ct_CC"; then
4168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4169else
4170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH
4172do
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
5213506e 4175 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4177 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4179 break 2
4180 fi
4181done
5213506e
RW
4182 done
4183IFS=$as_save_IFS
1c710c3c
DJ
4184
4185fi
4186fi
4187ac_ct_CC=$ac_cv_prog_ac_ct_CC
4188if test -n "$ac_ct_CC"; then
5213506e
RW
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4190$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4191else
5213506e
RW
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193$as_echo "no" >&6; }
1c710c3c
DJ
4194fi
4195
5213506e
RW
4196 if test "x$ac_ct_CC" = x; then
4197 CC=""
4198 else
4199 case $cross_compiling:$ac_tool_warned in
4200yes:)
4201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4203ac_tool_warned=yes ;;
4204esac
4205 CC=$ac_ct_CC
4206 fi
1c710c3c
DJ
4207else
4208 CC="$ac_cv_prog_CC"
4209fi
4210
4211if test -z "$CC"; then
5213506e
RW
4212 if test -n "$ac_tool_prefix"; then
4213 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4214set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4217if ${ac_cv_prog_CC+:} false; then :
5213506e 4218 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4219else
4220 if test -n "$CC"; then
4221 ac_cv_prog_CC="$CC" # Let the user override the test.
4222else
1c710c3c
DJ
4223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224for as_dir in $PATH
4225do
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
5213506e 4228 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4230 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4232 break 2
4233 fi
4234done
5213506e
RW
4235 done
4236IFS=$as_save_IFS
1c710c3c 4237
0b0dc272 4238fi
0b0dc272 4239fi
1c710c3c 4240CC=$ac_cv_prog_CC
af71363e 4241if test -n "$CC"; then
5213506e
RW
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4243$as_echo "$CC" >&6; }
2aeb72e9 4244else
5213506e
RW
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246$as_echo "no" >&6; }
2aeb72e9
DD
4247fi
4248
2aeb72e9 4249
5213506e 4250 fi
1c710c3c 4251fi
55ffb5ed
NN
4252if test -z "$CC"; then
4253 # Extract the first word of "cc", so it can be a program name with args.
4254set dummy cc; ac_word=$2
5213506e
RW
4255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4257if ${ac_cv_prog_CC+:} false; then :
5213506e 4258 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4259else
4260 if test -n "$CC"; then
4261 ac_cv_prog_CC="$CC" # Let the user override the test.
4262else
0b0dc272 4263 ac_prog_rejected=no
1c710c3c
DJ
4264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265for as_dir in $PATH
4266do
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
5213506e 4269 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4271 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4272 ac_prog_rejected=yes
4273 continue
4274 fi
4275 ac_cv_prog_CC="cc"
5213506e 4276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4277 break 2
4278 fi
4279done
5213506e
RW
4280 done
4281IFS=$as_save_IFS
1c710c3c 4282
55ffb5ed
NN
4283if test $ac_prog_rejected = yes; then
4284 # We found a bogon in the path, so make sure we never use it.
4285 set dummy $ac_cv_prog_CC
4286 shift
1c710c3c 4287 if test $# != 0; then
55ffb5ed
NN
4288 # We chose a different compiler from the bogus one.
4289 # However, it has the same basename, so the bogon will be chosen
4290 # first if we set CC to just the basename; use the full file name.
4291 shift
1c710c3c 4292 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4293 fi
4294fi
4295fi
4296fi
1c710c3c 4297CC=$ac_cv_prog_CC
55ffb5ed 4298if test -n "$CC"; then
5213506e
RW
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4300$as_echo "$CC" >&6; }
55ffb5ed 4301else
5213506e
RW
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303$as_echo "no" >&6; }
55ffb5ed
NN
4304fi
4305
5213506e 4306
1c710c3c
DJ
4307fi
4308if test -z "$CC"; then
4309 if test -n "$ac_tool_prefix"; then
5213506e 4310 for ac_prog in cl.exe
1c710c3c
DJ
4311 do
4312 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4313set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4316if ${ac_cv_prog_CC+:} false; then :
5213506e 4317 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4318else
4319 if test -n "$CC"; then
4320 ac_cv_prog_CC="$CC" # Let the user override the test.
4321else
1c710c3c
DJ
4322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323for as_dir in $PATH
4324do
4325 IFS=$as_save_IFS
4326 test -z "$as_dir" && as_dir=.
5213506e 4327 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4329 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4331 break 2
4332 fi
4333done
5213506e
RW
4334 done
4335IFS=$as_save_IFS
1c710c3c 4336
55ffb5ed
NN
4337fi
4338fi
1c710c3c 4339CC=$ac_cv_prog_CC
55ffb5ed 4340if test -n "$CC"; then
5213506e
RW
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4342$as_echo "$CC" >&6; }
a4b9e93e 4343else
5213506e
RW
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4345$as_echo "no" >&6; }
fb0103e5 4346fi
af71363e 4347
5213506e 4348
1c710c3c
DJ
4349 test -n "$CC" && break
4350 done
af71363e 4351fi
1c710c3c
DJ
4352if test -z "$CC"; then
4353 ac_ct_CC=$CC
5213506e 4354 for ac_prog in cl.exe
1c710c3c
DJ
4355do
4356 # Extract the first word of "$ac_prog", so it can be a program name with args.
4357set dummy $ac_prog; ac_word=$2
5213506e
RW
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4359$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4360if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4361 $as_echo_n "(cached) " >&6
0b0dc272 4362else
1c710c3c
DJ
4363 if test -n "$ac_ct_CC"; then
4364 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4365else
1c710c3c
DJ
4366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367for as_dir in $PATH
4368do
4369 IFS=$as_save_IFS
4370 test -z "$as_dir" && as_dir=.
5213506e 4371 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4373 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4375 break 2
4376 fi
4377done
5213506e
RW
4378 done
4379IFS=$as_save_IFS
1c710c3c 4380
af71363e
AS
4381fi
4382fi
1c710c3c
DJ
4383ac_ct_CC=$ac_cv_prog_ac_ct_CC
4384if test -n "$ac_ct_CC"; then
5213506e
RW
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4386$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4387else
5213506e
RW
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389$as_echo "no" >&6; }
af71363e 4390fi
0b0dc272 4391
5213506e 4392
1c710c3c
DJ
4393 test -n "$ac_ct_CC" && break
4394done
4395
5213506e
RW
4396 if test "x$ac_ct_CC" = x; then
4397 CC=""
4398 else
4399 case $cross_compiling:$ac_tool_warned in
4400yes:)
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4403ac_tool_warned=yes ;;
4404esac
4405 CC=$ac_ct_CC
4406 fi
1c710c3c
DJ
4407fi
4408
4409fi
4410
4411
5213506e
RW
4412test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4414as_fn_error $? "no acceptable C compiler found in \$PATH
4415See \`config.log' for more details" "$LINENO" 5; }
1c710c3c
DJ
4416
4417# Provide some information about the compiler.
5213506e
RW
4418$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4419set X $ac_compile
4420ac_compiler=$2
4421for ac_option in --version -v -V -qversion; do
4422 { { ac_try="$ac_compiler $ac_option >&5"
4423case "(($ac_try" in
4424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4425 *) ac_try_echo=$ac_try;;
4426esac
4427eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4428$as_echo "$ac_try_echo"; } >&5
4429 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4430 ac_status=$?
5213506e
RW
4431 if test -s conftest.err; then
4432 sed '10a\
4433... rest of stderr output deleted ...
4434 10q' conftest.err >conftest.er1
4435 cat conftest.er1 >&5
5213506e 4436 fi
22e05272 4437 rm -f conftest.er1 conftest.err
5213506e
RW
4438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4439 test $ac_status = 0; }
4440done
1c710c3c 4441
5213506e 4442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4443/* end confdefs.h. */
4444
4445int
4446main ()
4447{
4448
4449 ;
4450 return 0;
4451}
4452_ACEOF
4453ac_clean_files_save=$ac_clean_files
22e05272 4454ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1c710c3c
DJ
4455# Try to create an executable without -o first, disregard a.out.
4456# It will help us diagnose broken compilers, and finding out an intuition
4457# of exeext.
22e05272
JM
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4459$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4460ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4461
4462# The possible output files:
4463ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4464
4465ac_rmfiles=
4466for ac_file in $ac_files
4467do
4468 case $ac_file in
4469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4470 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4471 esac
4472done
4473rm -f $ac_rmfiles
4474
4475if { { ac_try="$ac_link_default"
4476case "(($ac_try" in
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4479esac
4480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4481$as_echo "$ac_try_echo"; } >&5
4482 (eval "$ac_link_default") 2>&5
1c710c3c 4483 ac_status=$?
5213506e
RW
4484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4485 test $ac_status = 0; }; then :
4486 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4487# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4488# in a Makefile. We should not override ac_cv_exeext if it was cached,
4489# so that the user can short-circuit this test for compilers unknown to
4490# Autoconf.
4491for ac_file in $ac_files ''
1c710c3c
DJ
4492do
4493 test -f "$ac_file" || continue
4494 case $ac_file in
5213506e 4495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4496 ;;
4497 [ab].out )
4498 # We found the default executable, but exeext='' is most
4499 # certainly right.
4500 break;;
4501 *.* )
5213506e
RW
4502 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4503 then :; else
4504 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4505 fi
4506 # We set ac_cv_exeext here because the later test for it is not
4507 # safe: cross compilers may not add the suffix if given an `-o'
4508 # argument, so we may need to know it at that point already.
4509 # Even if this section looks crufty: it has the advantage of
4510 # actually working.
1c710c3c
DJ
4511 break;;
4512 * )
4513 break;;
4514 esac
4515done
5213506e
RW
4516test "$ac_cv_exeext" = no && ac_cv_exeext=
4517
1c710c3c 4518else
5213506e
RW
4519 ac_file=''
4520fi
5213506e 4521if test -z "$ac_file"; then :
22e05272
JM
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4523$as_echo "no" >&6; }
4524$as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4525sed 's/^/| /' conftest.$ac_ext >&5
4526
5213506e
RW
4527{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4529as_fn_error 77 "C compiler cannot create executables
4530See \`config.log' for more details" "$LINENO" 5; }
4531else
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4533$as_echo "yes" >&6; }
1c710c3c 4534fi
22e05272
JM
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4536$as_echo_n "checking for C compiler default output file name... " >&6; }
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4538$as_echo "$ac_file" >&6; }
1c710c3c 4539ac_exeext=$ac_cv_exeext
1c710c3c 4540
22e05272 4541rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1c710c3c 4542ac_clean_files=$ac_clean_files_save
5213506e
RW
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4544$as_echo_n "checking for suffix of executables... " >&6; }
4545if { { ac_try="$ac_link"
4546case "(($ac_try" in
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4549esac
4550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4551$as_echo "$ac_try_echo"; } >&5
4552 (eval "$ac_link") 2>&5
1c710c3c 4553 ac_status=$?
5213506e
RW
4554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4555 test $ac_status = 0; }; then :
1c710c3c
DJ
4556 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4557# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4558# work properly (i.e., refer to `conftest.exe'), while it won't with
4559# `rm'.
4560for ac_file in conftest.exe conftest conftest.*; do
4561 test -f "$ac_file" || continue
4562 case $ac_file in
5213506e 4563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4564 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4565 break;;
4566 * ) break;;
4567 esac
4568done
af71363e 4569else
5213506e
RW
4570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4572as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4573See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4574fi
22e05272 4575rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4577$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4578
4579rm -f conftest.$ac_ext
4580EXEEXT=$ac_cv_exeext
4581ac_exeext=$EXEEXT
22e05272
JM
4582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583/* end confdefs.h. */
4584#include <stdio.h>
4585int
4586main ()
4587{
4588FILE *f = fopen ("conftest.out", "w");
4589 return ferror (f) || fclose (f) != 0;
4590
4591 ;
4592 return 0;
4593}
4594_ACEOF
4595ac_clean_files="$ac_clean_files conftest.out"
4596# Check that the compiler produces executables we can run. If not, either
4597# the compiler is broken, or we cross compile.
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4599$as_echo_n "checking whether we are cross compiling... " >&6; }
4600if test "$cross_compiling" != yes; then
4601 { { ac_try="$ac_link"
4602case "(($ac_try" in
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4605esac
4606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4607$as_echo "$ac_try_echo"; } >&5
4608 (eval "$ac_link") 2>&5
4609 ac_status=$?
4610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4611 test $ac_status = 0; }
4612 if { ac_try='./conftest$ac_cv_exeext'
4613 { { case "(($ac_try" in
4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615 *) ac_try_echo=$ac_try;;
4616esac
4617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4618$as_echo "$ac_try_echo"; } >&5
4619 (eval "$ac_try") 2>&5
4620 ac_status=$?
4621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4622 test $ac_status = 0; }; }; then
4623 cross_compiling=no
4624 else
4625 if test "$cross_compiling" = maybe; then
4626 cross_compiling=yes
4627 else
4628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4630as_fn_error $? "cannot run C compiled programs.
4631If you meant to cross compile, use \`--host'.
4632See \`config.log' for more details" "$LINENO" 5; }
4633 fi
4634 fi
4635fi
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4637$as_echo "$cross_compiling" >&6; }
4638
4639rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4640ac_clean_files=$ac_clean_files_save
5213506e
RW
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4642$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4643if ${ac_cv_objext+:} false; then :
5213506e 4644 $as_echo_n "(cached) " >&6
1c710c3c 4645else
5213506e 4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4647/* end confdefs.h. */
4648
4649int
4650main ()
4651{
4652
4653 ;
4654 return 0;
4655}
4656_ACEOF
4657rm -f conftest.o conftest.obj
5213506e
RW
4658if { { ac_try="$ac_compile"
4659case "(($ac_try" in
4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661 *) ac_try_echo=$ac_try;;
4662esac
4663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4664$as_echo "$ac_try_echo"; } >&5
4665 (eval "$ac_compile") 2>&5
1c710c3c 4666 ac_status=$?
5213506e
RW
4667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4668 test $ac_status = 0; }; then :
4669 for ac_file in conftest.o conftest.obj conftest.*; do
4670 test -f "$ac_file" || continue;
1c710c3c 4671 case $ac_file in
5213506e 4672 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4673 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4674 break;;
4675 esac
4676done
4677else
5213506e 4678 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4679sed 's/^/| /' conftest.$ac_ext >&5
4680
5213506e
RW
4681{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4683as_fn_error $? "cannot compute suffix of object files: cannot compile
4684See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4685fi
1c710c3c
DJ
4686rm -f conftest.$ac_cv_objext conftest.$ac_ext
4687fi
5213506e
RW
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4689$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4690OBJEXT=$ac_cv_objext
4691ac_objext=$OBJEXT
5213506e
RW
4692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4693$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4694if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4695 $as_echo_n "(cached) " >&6
1c710c3c 4696else
5213506e 4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4698/* end confdefs.h. */
4699
4700int
4701main ()
4702{
4703#ifndef __GNUC__
4704 choke me
4705#endif
4706
4707 ;
4708 return 0;
4709}
4710_ACEOF
5213506e 4711if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4712 ac_compiler_gnu=yes
4713else
5213506e 4714 ac_compiler_gnu=no
1c710c3c 4715fi
5213506e 4716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4717ac_cv_c_compiler_gnu=$ac_compiler_gnu
4718
4719fi
5213506e
RW
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4721$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4722if test $ac_compiler_gnu = yes; then
4723 GCC=yes
4724else
4725 GCC=
4726fi
1c710c3c
DJ
4727ac_test_CFLAGS=${CFLAGS+set}
4728ac_save_CFLAGS=$CFLAGS
5213506e
RW
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4730$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4731if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4732 $as_echo_n "(cached) " >&6
4733else
4734 ac_save_c_werror_flag=$ac_c_werror_flag
4735 ac_c_werror_flag=yes
4736 ac_cv_prog_cc_g=no
4737 CFLAGS="-g"
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4739/* end confdefs.h. */
4740
4741int
4742main ()
4743{
4744
4745 ;
4746 return 0;
4747}
4748_ACEOF
5213506e 4749if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4750 ac_cv_prog_cc_g=yes
4751else
5213506e
RW
4752 CFLAGS=""
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754/* end confdefs.h. */
4755
4756int
4757main ()
4758{
4759
4760 ;
4761 return 0;
4762}
4763_ACEOF
4764if ac_fn_c_try_compile "$LINENO"; then :
4765
4766else
4767 ac_c_werror_flag=$ac_save_c_werror_flag
4768 CFLAGS="-g"
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770/* end confdefs.h. */
af71363e 4771
5213506e
RW
4772int
4773main ()
4774{
4775
4776 ;
4777 return 0;
4778}
4779_ACEOF
4780if ac_fn_c_try_compile "$LINENO"; then :
4781 ac_cv_prog_cc_g=yes
4782fi
4783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4784fi
5213506e 4785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4786fi
5213506e
RW
4787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788 ac_c_werror_flag=$ac_save_c_werror_flag
4789fi
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4791$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4792if test "$ac_test_CFLAGS" = set; then
1c710c3c 4793 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4794elif test $ac_cv_prog_cc_g = yes; then
4795 if test "$GCC" = yes; then
4796 CFLAGS="-g -O2"
4797 else
4798 CFLAGS="-g"
4799 fi
4800else
4801 if test "$GCC" = yes; then
4802 CFLAGS="-O2"
4803 else
4804 CFLAGS=
4805 fi
4806fi
5213506e
RW
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4808$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4809if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4810 $as_echo_n "(cached) " >&6
1c710c3c 4811else
5213506e 4812 ac_cv_prog_cc_c89=no
1c710c3c 4813ac_save_CC=$CC
5213506e 4814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4815/* end confdefs.h. */
4816#include <stdarg.h>
4817#include <stdio.h>
22e05272 4818struct stat;
1c710c3c
DJ
4819/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4820struct buf { int x; };
4821FILE * (*rcsopen) (struct buf *, struct stat *, int);
4822static char *e (p, i)
4823 char **p;
4824 int i;
4825{
4826 return p[i];
4827}
4828static char *f (char * (*g) (char **, int), char **p, ...)
4829{
4830 char *s;
4831 va_list v;
4832 va_start (v,p);
4833 s = g (p, va_arg (v,int));
4834 va_end (v);
4835 return s;
4836}
4837
4838/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4839 function prototypes and stuff, but not '\xHH' hex character constants.
4840 These don't provoke an error unfortunately, instead are silently treated
5213506e 4841 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4842 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4843 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4844 that's true only with -std. */
1c710c3c
DJ
4845int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4846
5213506e
RW
4847/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4848 inside strings and character constants. */
4849#define FOO(x) 'x'
4850int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4851
1c710c3c
DJ
4852int test (int i, double x);
4853struct s1 {int (*f) (int a);};
4854struct s2 {int (*f) (double a);};
4855int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4856int argc;
4857char **argv;
4858int
4859main ()
4860{
4861return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4862 ;
4863 return 0;
4864}
4865_ACEOF
5213506e
RW
4866for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4867 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4868do
4869 CC="$ac_save_CC $ac_arg"
5213506e
RW
4870 if ac_fn_c_try_compile "$LINENO"; then :
4871 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4872fi
5213506e
RW
4873rm -f core conftest.err conftest.$ac_objext
4874 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4875done
5213506e 4876rm -f conftest.$ac_ext
1c710c3c
DJ
4877CC=$ac_save_CC
4878
4879fi
5213506e
RW
4880# AC_CACHE_VAL
4881case "x$ac_cv_prog_cc_c89" in
4882 x)
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4884$as_echo "none needed" >&6; } ;;
4885 xno)
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4887$as_echo "unsupported" >&6; } ;;
1c710c3c 4888 *)
5213506e
RW
4889 CC="$CC $ac_cv_prog_cc_c89"
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4891$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4892esac
5213506e 4893if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4894
2aeb72e9
DD
4895fi
4896
2aeb72e9
DD
4897ac_ext=c
4898ac_cpp='$CPP $CPPFLAGS'
4899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4901ac_compiler_gnu=$ac_cv_c_compiler_gnu
4902
5213506e 4903ac_ext=cpp
2aeb72e9
DD
4904ac_cpp='$CXXCPP $CPPFLAGS'
4905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4908if test -z "$CXX"; then
4909 if test -n "$CCC"; then
4910 CXX=$CCC
4911 else
4912 if test -n "$ac_tool_prefix"; then
4913 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4914 do
4915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4916set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4919if ${ac_cv_prog_CXX+:} false; then :
5213506e 4920 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4921else
4922 if test -n "$CXX"; then
4923 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4924else
4925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926for as_dir in $PATH
4927do
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
5213506e 4930 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2aeb72e9 4932 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4934 break 2
4935 fi
4936done
5213506e
RW
4937 done
4938IFS=$as_save_IFS
55ffb5ed 4939
c3a86da9
DJ
4940fi
4941fi
4942CXX=$ac_cv_prog_CXX
4943if test -n "$CXX"; then
5213506e
RW
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4945$as_echo "$CXX" >&6; }
c3a86da9 4946else
5213506e
RW
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948$as_echo "no" >&6; }
c3a86da9
DJ
4949fi
4950
5213506e 4951
c3a86da9
DJ
4952 test -n "$CXX" && break
4953 done
4954fi
4955if test -z "$CXX"; then
4956 ac_ct_CXX=$CXX
5213506e 4957 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4958do
4959 # Extract the first word of "$ac_prog", so it can be a program name with args.
4960set dummy $ac_prog; ac_word=$2
5213506e
RW
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4963if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5213506e 4964 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4965else
4966 if test -n "$ac_ct_CXX"; then
4967 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4968else
4969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970for as_dir in $PATH
4971do
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
5213506e 4974 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9 4976 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4978 break 2
4979 fi
4980done
5213506e
RW
4981 done
4982IFS=$as_save_IFS
c3a86da9
DJ
4983
4984fi
4985fi
4986ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4987if test -n "$ac_ct_CXX"; then
5213506e
RW
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4989$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4990else
5213506e
RW
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992$as_echo "no" >&6; }
c3a86da9
DJ
4993fi
4994
5213506e 4995
c3a86da9
DJ
4996 test -n "$ac_ct_CXX" && break
4997done
c3a86da9 4998
5213506e
RW
4999 if test "x$ac_ct_CXX" = x; then
5000 CXX="g++"
5001 else
5002 case $cross_compiling:$ac_tool_warned in
5003yes:)
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5006ac_tool_warned=yes ;;
5007esac
5008 CXX=$ac_ct_CXX
5009 fi
c3a86da9
DJ
5010fi
5011
5213506e
RW
5012 fi
5013fi
c3a86da9 5014# Provide some information about the compiler.
5213506e
RW
5015$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5016set X $ac_compile
5017ac_compiler=$2
5018for ac_option in --version -v -V -qversion; do
5019 { { ac_try="$ac_compiler $ac_option >&5"
5020case "(($ac_try" in
5021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5022 *) ac_try_echo=$ac_try;;
5023esac
5024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5025$as_echo "$ac_try_echo"; } >&5
5026 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 5027 ac_status=$?
5213506e
RW
5028 if test -s conftest.err; then
5029 sed '10a\
5030... rest of stderr output deleted ...
5031 10q' conftest.err >conftest.er1
5032 cat conftest.er1 >&5
5213506e 5033 fi
22e05272 5034 rm -f conftest.er1 conftest.err
5213506e
RW
5035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5036 test $ac_status = 0; }
5037done
c3a86da9 5038
5213506e
RW
5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5040$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5041if ${ac_cv_cxx_compiler_gnu+:} false; then :
5213506e 5042 $as_echo_n "(cached) " >&6
c3a86da9 5043else
5213506e 5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5045/* end confdefs.h. */
5046
5047int
5048main ()
5049{
5050#ifndef __GNUC__
5051 choke me
5052#endif
5053
5054 ;
5055 return 0;
5056}
5057_ACEOF
5213506e 5058if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5059 ac_compiler_gnu=yes
5060else
5213506e 5061 ac_compiler_gnu=no
c3a86da9 5062fi
5213506e 5063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
5064ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5065
5066fi
5213506e
RW
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5068$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5069if test $ac_compiler_gnu = yes; then
5070 GXX=yes
5071else
5072 GXX=
5073fi
c3a86da9
DJ
5074ac_test_CXXFLAGS=${CXXFLAGS+set}
5075ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5077$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5078if ${ac_cv_prog_cxx_g+:} false; then :
5213506e
RW
5079 $as_echo_n "(cached) " >&6
5080else
5081 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5082 ac_cxx_werror_flag=yes
5083 ac_cv_prog_cxx_g=no
5084 CXXFLAGS="-g"
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5086/* end confdefs.h. */
5087
5088int
5089main ()
5090{
5091
5092 ;
5093 return 0;
5094}
5095_ACEOF
5213506e 5096if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5097 ac_cv_prog_cxx_g=yes
5098else
5213506e
RW
5099 CXXFLAGS=""
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5101/* end confdefs.h. */
5213506e 5102
c3a86da9
DJ
5103int
5104main ()
5105{
5213506e 5106
c3a86da9
DJ
5107 ;
5108 return 0;
5109}
5110_ACEOF
5213506e 5111if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5112
5213506e
RW
5113else
5114 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5115 CXXFLAGS="-g"
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5117/* end confdefs.h. */
5213506e 5118
c3a86da9
DJ
5119int
5120main ()
5121{
5213506e 5122
c3a86da9
DJ
5123 ;
5124 return 0;
5125}
5126_ACEOF
5213506e
RW
5127if ac_fn_cxx_try_compile "$LINENO"; then :
5128 ac_cv_prog_cxx_g=yes
11a67599 5129fi
5213506e
RW
5130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5131fi
5132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5133fi
5134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5135 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5136fi
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5138$as_echo "$ac_cv_prog_cxx_g" >&6; }
5139if test "$ac_test_CXXFLAGS" = set; then
5140 CXXFLAGS=$ac_save_CXXFLAGS
5141elif test $ac_cv_prog_cxx_g = yes; then
5142 if test "$GXX" = yes; then
5143 CXXFLAGS="-g -O2"
5144 else
5145 CXXFLAGS="-g"
5146 fi
5147else
5148 if test "$GXX" = yes; then
5149 CXXFLAGS="-O2"
5150 else
5151 CXXFLAGS=
5152 fi
c3a86da9 5153fi
c3a86da9
DJ
5154ac_ext=c
5155ac_cpp='$CPP $CPPFLAGS'
5156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5158ac_compiler_gnu=$ac_cv_c_compiler_gnu
5159
5160
5161# We must set the default linker to the linker used by gcc for the correct
5162# operation of libtool. If LD is not defined and we are using gcc, try to
5163# set the LD default to the ld used by gcc.
5164if test -z "$LD"; then
5165 if test "$GCC" = yes; then
5166 case $build in
5167 *-*-mingw*)
5168 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5169 *)
5170 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5171 esac
5172 case $gcc_prog_ld in
5173 # Accept absolute paths.
5174 [\\/]* | [A-Za-z]:[\\/]*)
5175 LD="$gcc_prog_ld" ;;
5176 esac
5177 fi
23f6b2f9
PB
5178fi
5179
0b21f5d3
EB
5180# Check whether -static-libstdc++ -static-libgcc is supported.
5181have_static_libs=no
5182if test "$GCC" = yes; then
5183 saved_LDFLAGS="$LDFLAGS"
5184
5185 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5187$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5188 ac_ext=cpp
5189ac_cpp='$CXXCPP $CPPFLAGS'
5190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5193
5194
5195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196/* end confdefs.h. */
0d6414b2
EB
5197
5198#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5199#error -static-libstdc++ not implemented
5200#endif
0b21f5d3
EB
5201int main() {}
5202_ACEOF
5203if ac_fn_cxx_try_link "$LINENO"; then :
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5205$as_echo "yes" >&6; }; have_static_libs=yes
5206else
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208$as_echo "no" >&6; }
5209fi
5210rm -f core conftest.err conftest.$ac_objext \
5211 conftest$ac_exeext conftest.$ac_ext
5212 ac_ext=c
5213ac_cpp='$CPP $CPPFLAGS'
5214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216ac_compiler_gnu=$ac_cv_c_compiler_gnu
5217
5218
5219 LDFLAGS="$saved_LDFLAGS"
5220fi
5221
23f6b2f9
PB
5222
5223
55ffb5ed 5224
1c710c3c
DJ
5225if test -n "$ac_tool_prefix"; then
5226 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5227set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5230if ${ac_cv_prog_GNATBIND+:} false; then :
5213506e 5231 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5232else
5233 if test -n "$GNATBIND"; then
5234 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5235else
1c710c3c
DJ
5236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237for as_dir in $PATH
5238do
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5213506e 5241 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5243 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5245 break 2
5246 fi
5247done
5213506e
RW
5248 done
5249IFS=$as_save_IFS
1c710c3c 5250
55ffb5ed
NN
5251fi
5252fi
1c710c3c 5253GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5254if test -n "$GNATBIND"; then
5213506e
RW
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5256$as_echo "$GNATBIND" >&6; }
55ffb5ed 5257else
5213506e
RW
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259$as_echo "no" >&6; }
55ffb5ed
NN
5260fi
5261
5213506e 5262
1c710c3c 5263fi
55ffb5ed 5264if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5265 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5266 # Extract the first word of "gnatbind", so it can be a program name with args.
5267set dummy gnatbind; ac_word=$2
5213506e
RW
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5270if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5213506e 5271 $as_echo_n "(cached) " >&6
55ffb5ed 5272else
1c710c3c
DJ
5273 if test -n "$ac_ct_GNATBIND"; then
5274 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5275else
1c710c3c
DJ
5276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277for as_dir in $PATH
5278do
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5213506e 5281 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5283 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5285 break 2
5286 fi
5287done
5213506e
RW
5288 done
5289IFS=$as_save_IFS
1c710c3c 5290
55ffb5ed
NN
5291fi
5292fi
1c710c3c
DJ
5293ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5294if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5296$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5297else
5213506e
RW
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299$as_echo "no" >&6; }
55ffb5ed
NN
5300fi
5301
5213506e
RW
5302 if test "x$ac_ct_GNATBIND" = x; then
5303 GNATBIND="no"
5304 else
5305 case $cross_compiling:$ac_tool_warned in
5306yes:)
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5309ac_tool_warned=yes ;;
5310esac
5311 GNATBIND=$ac_ct_GNATBIND
5312 fi
55ffb5ed 5313else
1c710c3c 5314 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5315fi
5316
1c710c3c
DJ
5317if test -n "$ac_tool_prefix"; then
5318 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5319set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5322if ${ac_cv_prog_GNATMAKE+:} false; then :
5213506e 5323 $as_echo_n "(cached) " >&6
5305be7e
RG
5324else
5325 if test -n "$GNATMAKE"; then
5326 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5327else
1c710c3c
DJ
5328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329for as_dir in $PATH
5330do
5331 IFS=$as_save_IFS
5332 test -z "$as_dir" && as_dir=.
5213506e 5333 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5335 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5337 break 2
5338 fi
5339done
5213506e
RW
5340 done
5341IFS=$as_save_IFS
1c710c3c 5342
5305be7e
RG
5343fi
5344fi
1c710c3c 5345GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5346if test -n "$GNATMAKE"; then
5213506e
RW
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5348$as_echo "$GNATMAKE" >&6; }
5305be7e 5349else
5213506e
RW
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351$as_echo "no" >&6; }
5305be7e
RG
5352fi
5353
5213506e 5354
1c710c3c 5355fi
5305be7e 5356if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5357 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5358 # Extract the first word of "gnatmake", so it can be a program name with args.
5359set dummy gnatmake; ac_word=$2
5213506e
RW
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5361$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5362if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5213506e 5363 $as_echo_n "(cached) " >&6
5305be7e 5364else
1c710c3c
DJ
5365 if test -n "$ac_ct_GNATMAKE"; then
5366 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5367else
1c710c3c
DJ
5368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369for as_dir in $PATH
5370do
5371 IFS=$as_save_IFS
5372 test -z "$as_dir" && as_dir=.
5213506e 5373 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5375 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5377 break 2
5378 fi
5379done
5213506e
RW
5380 done
5381IFS=$as_save_IFS
1c710c3c 5382
5305be7e
RG
5383fi
5384fi
1c710c3c
DJ
5385ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5386if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5388$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5389else
5213506e
RW
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391$as_echo "no" >&6; }
5305be7e
RG
5392fi
5393
5213506e
RW
5394 if test "x$ac_ct_GNATMAKE" = x; then
5395 GNATMAKE="no"
5396 else
5397 case $cross_compiling:$ac_tool_warned in
5398yes:)
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5401ac_tool_warned=yes ;;
5402esac
5403 GNATMAKE=$ac_ct_GNATMAKE
5404 fi
5305be7e 5405else
1c710c3c 5406 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5407fi
5408
5213506e
RW
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5410$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
22e05272 5411if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5213506e 5412 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5413else
5414 cat >conftest.adb <<EOF
5415procedure conftest is begin null; end conftest;
5416EOF
5417acx_cv_cc_gcc_supports_ada=no
5418# There is a bug in old released versions of GCC which causes the
5419# driver to exit successfully when the appropriate language module
5420# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5421# Therefore we must check for the error message as well as an
5422# unsuccessful exit.
1db673ca
RO
5423# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5424# given a .adb file, but produce no object file. So we must check
5425# if an object file was really produced to guard against this.
55ffb5ed 5426errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5427if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5428 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5429fi
5430rm -f conftest.*
5431fi
5213506e
RW
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5433$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5434
7cb62ef1 5435if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5436 have_gnat=yes
5437else
5438 have_gnat=no
5439fi
5440
5213506e
RW
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5442$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
22e05272 5443if ${gcc_cv_prog_cmp_skip+:} false; then :
5213506e 5444 $as_echo_n "(cached) " >&6
a76494aa
PB
5445else
5446 echo abfoo >t1
5447 echo cdfoo >t2
b55e6680 5448 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5449 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5450 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5451 :
5452 else
5453 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5454 fi
5455 fi
a76494aa
PB
5456 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5457 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5458 :
a76494aa
PB
5459 else
5460 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5461 fi
5462 fi
5463 rm t1 t2
5464
5465fi
5213506e
RW
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5467$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5468do_compare="$gcc_cv_prog_cmp_skip"
5469
5470
55ffb5ed 5471
ff3ac0f4
ILT
5472# Check whether --enable-bootstrap was given.
5473if test "${enable_bootstrap+set}" = set; then :
5474 enableval=$enable_bootstrap;
5475else
5476 enable_bootstrap=default
5477fi
5478
5479
5480# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5481if test -r $srcdir/gcc/configure; then
5482 have_compiler=yes
5483else
5484 have_compiler=no
5485fi
ff3ac0f4
ILT
5486
5487case "$have_compiler:$host:$target:$enable_bootstrap" in
5488 *:*:*:no) ;;
5489
5490 # Default behavior. Enable bootstrap if we have a compiler
5491 # and we are in a native configuration.
5492 yes:$build:$build:default)
5493 enable_bootstrap=yes ;;
5494
5495 *:*:*:default)
5496 enable_bootstrap=no ;;
5497
5498 # We have a compiler and we are in a native configuration, bootstrap is ok
5499 yes:$build:$build:yes)
5500 ;;
5501
5502 # Other configurations, but we have a compiler. Assume the user knows
5503 # what he's doing.
5504 yes:*:*:yes)
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5506$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5507 ;;
5508
5509 # No compiler: if they passed --enable-bootstrap explicitly, fail
5510 no:*:*:yes)
22e05272 5511 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ff3ac0f4
ILT
5512
5513 # Fail if wrong command line
5514 *)
22e05272 5515 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ff3ac0f4
ILT
5516 ;;
5517esac
5518
46070488
JM
5519# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5520# C++98 compiler can still start the bootstrap.
5521if test "$enable_bootstrap:$GXX" = "yes:yes"; then
8ca528d9 5522 CXX="$CXX -std=gnu++98"
46070488
JM
5523fi
5524
592c90ff
KG
5525# Used for setting $lt_cv_objdir
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5527$as_echo_n "checking for objdir... " >&6; }
22e05272 5528if ${lt_cv_objdir+:} false; then :
592c90ff
KG
5529 $as_echo_n "(cached) " >&6
5530else
5531 rm -f .libs 2>/dev/null
5532mkdir .libs 2>/dev/null
5533if test -d .libs; then
5534 lt_cv_objdir=.libs
5535else
5536 # MS-DOS does not allow filenames that begin with a dot.
5537 lt_cv_objdir=_libs
5538fi
5539rmdir .libs 2>/dev/null
5540fi
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5542$as_echo "$lt_cv_objdir" >&6; }
5543objdir=$lt_cv_objdir
5544
5545
5546
5547
5548
5549cat >>confdefs.h <<_ACEOF
5550#define LT_OBJDIR "$lt_cv_objdir/"
5551_ACEOF
5552
5553
5554
acd26225 5555# Check for GMP, MPFR and MPC
3a5729ea 5556gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5557gmpinc=
e69bf64b 5558have_gmp=no
acd26225
KG
5559
5560# Specify a location for mpc
5561# check for this first so it ends up on the link line before mpfr.
5562
5213506e
RW
5563# Check whether --with-mpc was given.
5564if test "${with_mpc+set}" = set; then :
5565 withval=$with_mpc;
5566fi
acd26225 5567
acd26225 5568
9965e3cd 5569# Check whether --with-mpc-include was given.
5213506e
RW
5570if test "${with_mpc_include+set}" = set; then :
5571 withval=$with_mpc_include;
5572fi
acd26225 5573
acd26225 5574
9965e3cd 5575# Check whether --with-mpc-lib was given.
5213506e
RW
5576if test "${with_mpc_lib+set}" = set; then :
5577 withval=$with_mpc_lib;
5578fi
acd26225 5579
acd26225
KG
5580
5581if test "x$with_mpc" != x; then
3a5729ea
KG
5582 gmplibs="-L$with_mpc/lib $gmplibs"
5583 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5584fi
5585if test "x$with_mpc_include" != x; then
3a5729ea 5586 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5587fi
5588if test "x$with_mpc_lib" != x; then
3a5729ea 5589 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5590fi
5591if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5592 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5593 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5594 # Do not test the mpc version. Assume that it is sufficient, since
5595 # it is in the source tree, and the library has not been built yet
5596 # but it would be included on the link line in the version check below
5597 # hence making the test fail.
3a5729ea 5598 have_gmp=yes
acd26225 5599fi
e69bf64b 5600
bebf829d
PB
5601# Specify a location for mpfr
5602# check for this first so it ends up on the link line before gmp.
1c710c3c 5603
5213506e
RW
5604# Check whether --with-mpfr-dir was given.
5605if test "${with_mpfr_dir+set}" = set; then :
22e05272 5606 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5213506e
RW
5607Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5608fi
5609
bebf829d
PB
5610
5611
5213506e
RW
5612# Check whether --with-mpfr was given.
5613if test "${with_mpfr+set}" = set; then :
5614 withval=$with_mpfr;
5615fi
1c710c3c 5616
bebf829d 5617
9965e3cd 5618# Check whether --with-mpfr-include was given.
5213506e
RW
5619if test "${with_mpfr_include+set}" = set; then :
5620 withval=$with_mpfr_include;
5621fi
1c710c3c 5622
8a877c9c 5623
9965e3cd 5624# Check whether --with-mpfr-lib was given.
5213506e
RW
5625if test "${with_mpfr_lib+set}" = set; then :
5626 withval=$with_mpfr_lib;
5627fi
8a877c9c 5628
bebf829d
PB
5629
5630if test "x$with_mpfr" != x; then
5631 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5632 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5633fi
8a877c9c 5634if test "x$with_mpfr_include" != x; then
3a5729ea 5635 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5636fi
5637if test "x$with_mpfr_lib" != x; then
5638 gmplibs="-L$with_mpfr_lib $gmplibs"
5639fi
e69bf64b 5640if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
5641 # MPFR v3.1.0 moved the sources into a src sub-directory.
5642 if ! test -d ${srcdir}/mpfr/src; then
22e05272 5643 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8f3675f8 5644 fi
00f35794
BE
5645 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5646 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5647 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
5648 # Do not test the mpfr version. Assume that it is sufficient, since
5649 # it is in the source tree, and the library has not been built yet
5650 # but it would be included on the link line in the version check below
5651 # hence making the test fail.
5652 have_gmp=yes
5653fi
bebf829d 5654
6de9cd9a 5655# Specify a location for gmp
1c710c3c 5656
5213506e
RW
5657# Check whether --with-gmp-dir was given.
5658if test "${with_gmp_dir+set}" = set; then :
22e05272 5659 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5213506e
RW
5660Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5661fi
5662
6de9cd9a 5663
6de9cd9a 5664
5213506e
RW
5665# Check whether --with-gmp was given.
5666if test "${with_gmp+set}" = set; then :
5667 withval=$with_gmp;
5668fi
1c710c3c 5669
6de9cd9a 5670
9965e3cd 5671# Check whether --with-gmp-include was given.
5213506e
RW
5672if test "${with_gmp_include+set}" = set; then :
5673 withval=$with_gmp_include;
5674fi
1c710c3c 5675
8a877c9c 5676
9965e3cd 5677# Check whether --with-gmp-lib was given.
5213506e
RW
5678if test "${with_gmp_lib+set}" = set; then :
5679 withval=$with_gmp_lib;
5680fi
8a877c9c
KG
5681
5682
6de9cd9a 5683
bebf829d
PB
5684if test "x$with_gmp" != x; then
5685 gmplibs="-L$with_gmp/lib $gmplibs"
5686 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5687fi
8a877c9c
KG
5688if test "x$with_gmp_include" != x; then
5689 gmpinc="-I$with_gmp_include $gmpinc"
5690fi
5691if test "x$with_gmp_lib" != x; then
5692 gmplibs="-L$with_gmp_lib $gmplibs"
5693fi
e69bf64b 5694if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5695 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5696 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5697 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5698 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5699 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5700 # Do not test the gmp version. Assume that it is sufficient, since
5701 # it is in the source tree, and the library has not been built yet
5702 # but it would be included on the link line in the version check below
5703 # hence making the test fail.
5704 have_gmp=yes
5705fi
6de9cd9a 5706
d943d7c4 5707if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5708 have_gmp=yes
5709 saved_CFLAGS="$CFLAGS"
5710 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5711 # Check for the recommended and required versions of GMP.
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5713$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5714
5715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5716/* end confdefs.h. */
5717#include "gmp.h"
5718int
5719main ()
5720{
5721
5722 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5723 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5724 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5725 choke me
5726 #endif
5727
5728 ;
5729 return 0;
5730}
5731_ACEOF
5732if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5734/* end confdefs.h. */
362c6d2f 5735#include <gmp.h>
1c710c3c
DJ
5736int
5737main ()
5738{
6de9cd9a 5739
362c6d2f
KG
5740 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5741 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5742 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5743 choke me
5744 #endif
1c710c3c
DJ
5745
5746 ;
5747 return 0;
5748}
5749_ACEOF
5213506e
RW
5750if ac_fn_c_try_compile "$LINENO"; then :
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5752$as_echo "yes" >&6; }
362c6d2f
KG
5753else
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5755$as_echo "buggy but acceptable" >&6; }
5756fi
5757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5758else
5213506e
RW
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5761fi
5213506e 5762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5763
acd26225 5764 # If we have GMP, check the MPFR version.
e69bf64b 5765 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5766 # Check for the recommended and required versions of MPFR.
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5768$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5770/* end confdefs.h. */
70ec446f 5771#include <gmp.h>
e69bf64b 5772 #include <mpfr.h>
1c710c3c
DJ
5773int
5774main ()
5775{
e48d66a9 5776
8be34204 5777 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
e69bf64b
PB
5778 choke me
5779 #endif
1c710c3c
DJ
5780
5781 ;
5782 return 0;
5783}
5784_ACEOF
5213506e
RW
5785if ac_fn_c_try_compile "$LINENO"; then :
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5787/* end confdefs.h. */
a3993f33 5788#include <gmp.h>
e69bf64b 5789 #include <mpfr.h>
1c710c3c
DJ
5790int
5791main ()
5792{
a3993f33 5793
8be34204 5794 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
e69bf64b
PB
5795 choke me
5796 #endif
acd26225
KG
5797
5798 ;
5799 return 0;
5800}
5801_ACEOF
5213506e
RW
5802if ac_fn_c_try_compile "$LINENO"; then :
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5804$as_echo "yes" >&6; }
acd26225 5805else
5213506e
RW
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5807$as_echo "buggy but acceptable" >&6; }
acd26225 5808fi
5213506e 5809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5810else
5213506e
RW
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812$as_echo "no" >&6; }; have_gmp=no
acd26225 5813fi
5213506e 5814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5815 fi
5816
5817 # Check for the MPC header version.
3a5729ea 5818 if test x"$have_gmp" = xyes ; then
362c6d2f 5819 # Check for the recommended and required versions of MPC.
5213506e
RW
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5821$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5823/* end confdefs.h. */
5824#include <mpc.h>
5825int
5826main ()
5827{
5828
362c6d2f
KG
5829 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5830 choke me
5831 #endif
5832
5833 ;
5834 return 0;
5835}
5836_ACEOF
5837if ac_fn_c_try_compile "$LINENO"; then :
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839/* end confdefs.h. */
5840#include <mpc.h>
5841int
5842main ()
5843{
5844
5845 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5846 choke me
5847 #endif
5848
5849 ;
5850 return 0;
5851}
5852_ACEOF
5213506e
RW
5853if ac_fn_c_try_compile "$LINENO"; then :
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5855$as_echo "yes" >&6; }
362c6d2f
KG
5856else
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5858$as_echo "buggy but acceptable" >&6; }
5859fi
5860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5861else
5213506e 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5863$as_echo "no" >&6; }; have_gmp=no
acd26225 5864fi
5213506e 5865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5866 fi
5867
5868 # Now check the MPFR library.
5869 if test x"$have_gmp" = xyes; then
5870 saved_LIBS="$LIBS"
5871 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5873$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5875/* end confdefs.h. */
3a5729ea 5876#include <mpc.h>
acd26225
KG
5877int
5878main ()
5879{
5880
5881 mpfr_t n;
5882 mpfr_t x;
3a5729ea 5883 mpc_t c;
acd26225
KG
5884 int t;
5885 mpfr_init (n);
5886 mpfr_init (x);
90ca6847
TB
5887 mpfr_atan2 (n, n, x, MPFR_RNDN);
5888 mpfr_erfc (n, x, MPFR_RNDN);
5889 mpfr_subnormalize (x, t, MPFR_RNDN);
3a5729ea
KG
5890 mpfr_clear(n);
5891 mpfr_clear(x);
5892 mpc_init2 (c, 53);
5893 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5894 mpc_cosh (c, c, MPC_RNDNN);
5895 mpc_pow (c, c, c, MPC_RNDNN);
5896 mpc_acosh (c, c, MPC_RNDNN);
5897 mpc_clear (c);
1c710c3c
DJ
5898
5899 ;
5900 return 0;
5901}
5902_ACEOF
5213506e
RW
5903if ac_fn_c_try_link "$LINENO"; then :
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5905$as_echo "yes" >&6; }
1c710c3c 5906else
5213506e
RW
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5908$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5909fi
5213506e
RW
5910rm -f core conftest.err conftest.$ac_objext \
5911 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5912 LIBS="$saved_LIBS"
5913 fi
5914
e69bf64b 5915 CFLAGS="$saved_CFLAGS"
6de9cd9a 5916
362c6d2f
KG
5917# The library versions listed in the error message below should match
5918# the HARD-minimums enforced above.
e69bf64b 5919 if test x$have_gmp != xyes; then
8be34204 5920 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
3a5729ea
KG
5921Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5922their locations. Source code for these libraries can be found at
5923their respective hosting sites as well as at
aeebd94c 5924https://gcc.gnu.org/pub/gcc/infrastructure/. See also
3a5729ea
KG
5925http://gcc.gnu.org/install/prerequisites.html for additional info. If
5926you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5927make sure that you have installed both the libraries and the header
5928files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5929 fi
70ec446f
KG
5930fi
5931
acd26225
KG
5932# Flags needed for both GMP, MPFR and/or MPC.
5933
5934
6de9cd9a
DN
5935
5936
5937
9e3eba15 5938
0ff2d841 5939
0b21f5d3 5940# Libraries to use for stage1 or when not bootstrapping.
00020c16 5941
0b21f5d3
EB
5942# Check whether --with-stage1-libs was given.
5943if test "${with_stage1_libs+set}" = set; then :
5944 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5945 stage1_libs=
00020c16 5946 else
0b21f5d3 5947 stage1_libs=$withval
00020c16
ILT
5948 fi
5949else
5dc85f7e 5950 stage1_libs=
5213506e
RW
5951fi
5952
00020c16
ILT
5953
5954
aac9103b
TT
5955# Whether or not to use -static-libstdc++ and -static-libgcc. The
5956# default is yes if gcc is being built; no otherwise. The reason for
5957# this default is that gdb is sometimes linked against GNU Source
5958# Highlight, which is a shared library that uses C++ exceptions. In
5959# this case, -static-libstdc++ will cause crashes.
5960
5961# Check whether --with-static-standard-libraries was given.
5962if test "${with_static_standard_libraries+set}" = set; then :
5963 withval=$with_static_standard_libraries;
5964else
5965 with_static_standard_libraries=auto
5966fi
5967
5968if test "$with_static_standard_libraries" = auto; then
5969 with_static_standard_libraries=$have_compiler
5970fi
5971
0b21f5d3 5972# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5973
0b21f5d3
EB
5974# Check whether --with-stage1-ldflags was given.
5975if test "${with_stage1_ldflags+set}" = set; then :
5976 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5977 stage1_ldflags=
00020c16 5978 else
0b21f5d3 5979 stage1_ldflags=$withval
00020c16
ILT
5980 fi
5981else
0b21f5d3
EB
5982 stage1_ldflags=
5983 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5984 # if supported. But if the user explicitly specified the libraries to use,
5985 # trust that they are doing what they want.
aac9103b
TT
5986 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
5987 -a "$have_static_libs" = yes; then
0b21f5d3
EB
5988 stage1_ldflags="-static-libstdc++ -static-libgcc"
5989 fi
5213506e
RW
5990fi
5991
00020c16
ILT
5992
5993
5dc85f7e 5994# Libraries to use for stage2 and later builds.
00020c16 5995
5213506e
RW
5996# Check whether --with-boot-libs was given.
5997if test "${with_boot_libs+set}" = set; then :
5998 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5999 poststage1_libs=
6000 else
6001 poststage1_libs=$withval
6002 fi
6003else
5dc85f7e 6004 poststage1_libs=
5213506e
RW
6005fi
6006
00020c16
ILT
6007
6008
ed2eaa9f
ILT
6009# Linker flags to use for stage2 and later builds.
6010
6011# Check whether --with-boot-ldflags was given.
6012if test "${with_boot_ldflags+set}" = set; then :
6013 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6014 poststage1_ldflags=
6015 else
6016 poststage1_ldflags=$withval
6017 fi
6018else
6019 poststage1_ldflags=
bec93d73
ILT
6020 # In stages 2 and 3, default to linking libstdc++ and libgcc
6021 # statically. But if the user explicitly specified the libraries to
6022 # use, trust that they are doing what they want.
6023 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
6024 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6025 fi
6026fi
6027
6028
6029
e357a5e0 6030# GCC GRAPHITE dependency isl.
4a9bb2aa 6031# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
6032
6033
33ad93b9
RG
6034# Check whether --with-isl was given.
6035if test "${with_isl+set}" = set; then :
6036 withval=$with_isl;
5213506e 6037fi
f8bf9252 6038
f8bf9252 6039
eae1a5d4 6040# Treat --without-isl as a request to disable
625afa23 6041# GRAPHITE support and skip all following checks.
eae1a5d4 6042if test "x$with_isl" != "xno"; then
e357a5e0 6043 # Check for isl
625afa23
RG
6044
6045
33ad93b9
RG
6046# Check whether --with-isl-include was given.
6047if test "${with_isl_include+set}" = set; then :
6048 withval=$with_isl_include;
5213506e
RW
6049fi
6050
f8bf9252 6051
33ad93b9
RG
6052# Check whether --with-isl-lib was given.
6053if test "${with_isl_lib+set}" = set; then :
6054 withval=$with_isl_lib;
5213506e 6055fi
f8bf9252 6056
f8bf9252 6057
33ad93b9
RG
6058 # Check whether --enable-isl-version-check was given.
6059if test "${enable_isl_version_check+set}" = set; then :
6060 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6061else
6062 ENABLE_ISL_CHECK=yes
7d32a440
SP
6063fi
6064
6065
33ad93b9
RG
6066 # Initialize isllibs and islinc.
6067 case $with_isl in
6068 no)
6069 isllibs=
6070 islinc=
6071 ;;
6072 "" | yes)
6073 ;;
6074 *)
6075 isllibs="-L$with_isl/lib"
6076 islinc="-I$with_isl/include"
6077 ;;
6078 esac
6079 if test "x${with_isl_include}" != x ; then
6080 islinc="-I$with_isl_include"
6081 fi
6082 if test "x${with_isl_lib}" != x; then
6083 isllibs="-L$with_isl_lib"
6084 fi
6085 if test "x${islinc}" = x && test "x${isllibs}" = x \
6086 && test -d ${srcdir}/isl; then
6087 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6088 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6089 ENABLE_ISL_CHECK=no
560d18d3
AK
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6091$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 6092 fi
7d32a440 6093
eae1a5d4
RG
6094 isllibs="${isllibs} -lisl"
6095
7d32a440 6096
7d32a440 6097
9847828b
RB
6098 if test "${ENABLE_ISL_CHECK}" = yes ; then
6099 _isl_saved_CFLAGS=$CFLAGS
6100 _isl_saved_LDFLAGS=$LDFLAGS
6101 _isl_saved_LIBS=$LIBS
6102
6103 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
6104 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6105 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 6106
f877b3ad
RB
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6108$as_echo_n "checking for isl 0.15 or later... " >&6; }
e0c0c325 6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 6110/* end confdefs.h. */
f877b3ad 6111#include <isl/schedule.h>
622dbadf
BC
6112int
6113main ()
6114{
f877b3ad 6115isl_options_set_schedule_serialize_sccs (NULL, 0);
622dbadf
BC
6116 ;
6117 return 0;
6118}
6119_ACEOF
6120if ac_fn_c_try_link "$LINENO"; then :
9847828b 6121 gcc_cv_isl=yes
622dbadf
BC
6122else
6123 gcc_cv_isl=no
6124fi
6125rm -f core conftest.err conftest.$ac_objext \
6126 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6128$as_echo "$gcc_cv_isl" >&6; }
6129
560d18d3 6130 if test "${gcc_cv_isl}" = no ; then
f877b3ad
RB
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6132$as_echo "required isl version is 0.15 or later" >&6; }
1e050c90
AK
6133 fi
6134
9847828b
RB
6135 CFLAGS=$_isl_saved_CFLAGS
6136 LDFLAGS=$_isl_saved_LDFLAGS
6137 LIBS=$_isl_saved_LIBS
6138 fi
6139
6140
f8bf9252 6141
f8bf9252 6142
33ad93b9
RG
6143
6144
33ad93b9
RG
6145 if test "x${with_isl}" = xno; then
6146 graphite_requested=no
6147 elif test "x${with_isl}" != x \
6148 || test "x${with_isl_include}" != x \
6149 || test "x${with_isl_lib}" != x ; then
6150 graphite_requested=yes
6151 else
6152 graphite_requested=no
7d32a440 6153 fi
d789184e 6154
d789184e
SP
6155
6156
33ad93b9
RG
6157 if test "${gcc_cv_isl}" = no ; then
6158 isllibs=
6159 islinc=
6160 fi
6161
6162 if test "${graphite_requested}" = yes \
6163 && test "x${isllibs}" = x \
6164 && test "x${islinc}" = x ; then
f8bf9252 6165
22e05272 6166 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 6167 fi
f8bf9252 6168
d32ef397 6169
d32ef397
AS
6170fi
6171
e357a5e0 6172# If the isl check failed, disable builds of in-tree variant of isl
625afa23 6173if test "x$with_isl" = xno ||
625afa23 6174 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 6175 noconfigdirs="$noconfigdirs isl"
625afa23 6176 islinc=
32d024bf
RG
6177fi
6178
625afa23
RG
6179
6180
6181
d7f09764
DN
6182# Check for LTO support.
6183# Check whether --enable-lto was given.
6184if test "${enable_lto+set}" = set; then :
6185 enableval=$enable_lto; enable_lto=$enableval
6186else
6187 enable_lto=yes; default_enable_lto=yes
6188fi
6189
6190
7413962d 6191
9a02962b
DK
6192
6193
6194target_elf=no
6195case $target in
6196 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6197 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 6198 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 6199 nvptx-*-none)
9a02962b
DK
6200 target_elf=no
6201 ;;
6202 *)
6203 target_elf=yes
6204 ;;
6205esac
6206
6207if test $target_elf = yes; then :
48215350
DK
6208 # ELF platforms build the lto-plugin always.
6209 build_lto_plugin=yes
9a02962b 6210
9a02962b
DK
6211else
6212 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6213 case $target in
deeba76a 6214 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 6215 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6216 *) enable_lto=no ;;
6217 esac
9a02962b 6218 else
db50fe7d
IS
6219 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6220 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6221 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6222 # warn during gcc/ subconfigure; unless you're bootstrapping with
6223 # -flto it won't be needed until after installation anyway.
6224 case $target in
9e530bcd 6225 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b 6226 *) if test x"$enable_lto" = x"yes"; then
22e05272 6227 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9a02962b
DK
6228 fi
6229 ;;
6230 esac
6231 fi
1cd0b716 6232 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6233 # Build it unless LTO was explicitly disabled.
1cd0b716 6234 case $target in
48215350 6235 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6236 *) ;;
6237 esac
48215350 6238
9a02962b
DK
6239fi
6240
d7f09764 6241
45b3824d
TS
6242# Check whether --enable-linker-plugin-configure-flags was given.
6243if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6244 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6245else
6246 extra_linker_plugin_configure_flags=
6247fi
6248
6249
6250# Check whether --enable-linker-plugin-flags was given.
6251if test "${enable_linker_plugin_flags+set}" = set; then :
6252 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6253else
6254 extra_linker_plugin_flags=
6255fi
6256
6257
6258
cdfee50a
NS
6259# Enable --enable-host-shared.
6260# Checked early to determine whether jit is an 'all' language
6261# Check whether --enable-host-shared was given.
6262if test "${enable_host_shared+set}" = set; then :
6263 enableval=$enable_host_shared; host_shared=$enableval
6264else
6265 host_shared=no
6266fi
6267
6268
f8bf9252 6269
0823efed 6270# By default, C and C++ are the only stage 1 languages.
e1888513 6271stage1_languages=,c,
2805b53a 6272
00020c16 6273# Target libraries that we bootstrap.
ad1e5170 6274bootstrap_target_libs=,target-libgcc,
00020c16 6275
55ffb5ed
NN
6276# Figure out what language subdirectories are present.
6277# Look if the user specified --enable-languages="..."; if not, use
6278# the environment variable $LANGUAGES if defined. $LANGUAGES might
6279# go away some day.
6280# NB: embedded tabs in this IF block -- do not untabify
6281if test -d ${srcdir}/gcc; then
6282 if test x"${enable_languages+set}" != xset; then
6283 if test x"${LANGUAGES+set}" = xset; then
6284 enable_languages="${LANGUAGES}"
6b1786aa 6285 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed 6286 else
cdfee50a 6287 enable_languages=default
55ffb5ed
NN
6288 fi
6289 else
6290 if test x"${enable_languages}" = x ||
6291 test x"${enable_languages}" = xyes;
6292 then
6b1786aa 6293 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
6294 exit 1
6295 fi
6296 fi
6297 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6298
7f26dfa3
FXC
6299 # 'f95' is the old name for the 'fortran' language. We issue a warning
6300 # and make the substitution.
6301 case ,${enable_languages}, in
6302 *,f95,*)
6b1786aa 6303 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
6304 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6305 ;;
6306 esac
6307
0823efed
DN
6308 # If bootstrapping, C++ must be enabled.
6309 case ",$enable_languages,:$enable_bootstrap" in
6310 *,c++,*:*) ;;
6311 *:yes)
ff3ac0f4
ILT
6312 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6313 enable_languages="${enable_languages},c++"
6314 else
22e05272 6315 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6316 fi
6317 ;;
6318 esac
6319
55ffb5ed
NN
6320 # First scan to see if an enabled language requires some other language.
6321 # We assume that a given config-lang.in will list all the language
6322 # front ends it requires, even if some are required indirectly.
6323 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6324 case ${lang_frag} in
6325 ..) ;;
6326 # The odd quoting in the next line works around
6327 # an apparent bug in bash 1.12 on linux.
6328 ${srcdir}/gcc/[*]/config-lang.in) ;;
6329 *)
69ecd18f
ILT
6330 # From the config-lang.in, get $language, $lang_requires, and
6331 # $lang_requires_boot_languages.
55ffb5ed
NN
6332 language=
6333 lang_requires=
69ecd18f 6334 lang_requires_boot_languages=
d4360477
NS
6335 # set srcdir during sourcing lang_frag to the gcc dir.
6336 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6337 # polutes this shell
6338 saved_srcdir=${srcdir}
6339 srcdir=${srcdir}/gcc . ${lang_frag}
6340 srcdir=${saved_srcdir}
69ecd18f 6341 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6342 case ,${enable_languages}, in
6343 *,$other,*) ;;
cdfee50a 6344 *,default,*) ;;
55ffb5ed
NN
6345 *,all,*) ;;
6346 *,$language,*)
6347 echo " \`$other' language required by \`$language'; enabling" 1>&2
6348 enable_languages="${enable_languages},${other}"
6349 ;;
6350 esac
6351 done
69ecd18f
ILT
6352 for other in ${lang_requires_boot_languages} ; do
6353 if test "$other" != "c"; then
6354 case ,${enable_stage1_languages}, in
6355 *,$other,*) ;;
cdfee50a 6356 *,default,*) ;;
69ecd18f
ILT
6357 *,all,*) ;;
6358 *)
6359 case ,${enable_languages}, in
6360 *,$language,*)
6361 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6362 enable_stage1_languages="$enable_stage1_languages,${other}"
6363 ;;
6364 esac
6365 ;;
6366 esac
6367 fi
6368 done
55ffb5ed
NN
6369 ;;
6370 esac
6371 done
6372
e1888513 6373 new_enable_languages=,c,
d7f09764
DN
6374
6375 # If LTO is enabled, add the LTO front end.
d7f09764 6376 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6377 case ,${enable_languages}, in
6378 *,lto,*) ;;
6379 *) enable_languages="${enable_languages},lto" ;;
6380 esac
1cd0b716 6381 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 6382 configdirs="$configdirs lto-plugin"
d7f09764
DN
6383 fi
6384 fi
6385
426c1eb0
TS
6386 # If we're building an offloading compiler, add the LTO front end.
6387 if test x"$enable_as_accelerator_for" != x ; then
6388 case ,${enable_languages}, in
6389 *,lto,*) ;;
6390 *) enable_languages="${enable_languages},lto" ;;
6391 esac
6392 fi
6393
cdfee50a 6394 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6395 potential_languages=,c,
55ffb5ed 6396
4da3b0f8
ILT
6397 enabled_target_libs=
6398 disabled_target_libs=
6399
55ffb5ed
NN
6400 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6401 case ${lang_frag} in
6402 ..) ;;
6403 # The odd quoting in the next line works around
6404 # an apparent bug in bash 1.12 on linux.
6405 ${srcdir}/gcc/[*]/config-lang.in) ;;
6406 *)
1c710c3c 6407 # From the config-lang.in, get $language, $target_libs,
2805b53a 6408 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6409 language=
6410 target_libs=
6411 lang_dirs=
1546bb64 6412 subdir_requires=
e1888513
PB
6413 boot_language=no
6414 build_by_default=yes
d4360477
NS
6415 # set srcdir during sourcing. See above about save & restore
6416 saved_srcdir=${srcdir}
6417 srcdir=${srcdir}/gcc . ${lang_frag}
6418 srcdir=${saved_srcdir}
e1888513
PB
6419 if test x${language} = x; then
6420 echo "${lang_frag} doesn't set \$language." 1>&2
6421 exit 1
6422 fi
6423
78767fd9 6424 if test "$language" = "c++"; then
0823efed 6425 boot_language=yes
00020c16
ILT
6426 fi
6427
178f875a 6428 add_this_lang=no
cdfee50a
NS
6429 # C is always enabled, so no need to add it again
6430 if test "$language" != "c"; then
6431 case ,${enable_languages}, in
6432 *,${language},*)
6433 # Language was explicitly selected; include it
d4a10d0a 6434 add_this_lang=yes
cdfee50a
NS
6435 ;;
6436 *,all,*)
6437 # All languages are enabled
6438 add_this_lang=all
6439 ;;
6440 *,default,*)
6441 # 'default' was selected, select it if it is a default language
178f875a 6442 add_this_lang=${build_by_default}
cdfee50a
NS
6443 ;;
6444 esac
6445 fi
6de9cd9a 6446
1546bb64 6447 # Disable languages that need other directories if these aren't available.
95695ad3 6448 for i in $subdir_requires; do
b6348cb3 6449 test -f "$srcdir/gcc/$i/config-lang.in" && continue
cdfee50a
NS
6450 case ${add_this_lang} in
6451 yes)
1546bb64 6452 # Specifically requested language; tell them.
22e05272 6453 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64 6454 ;;
cdfee50a
NS
6455 all)
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6457$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6458 add_this_lang=unsupported
6459 ;;
1546bb64
PB
6460 *)
6461 # Silently disable.
e1888513 6462 add_this_lang=unsupported
1546bb64
PB
6463 ;;
6464 esac
6465 done
6466
e1888513 6467 # Disable Ada if no preexisting GNAT is available.
cdfee50a
NS
6468 case ${add_this_lang}:${language}:${have_gnat} in
6469 yes:ada:no)
e1888513 6470 # Specifically requested language; tell them.
22e05272 6471 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
e1888513 6472 ;;
cdfee50a
NS
6473 all:ada:no)
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6475$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6476 add_this_lang=unsupported
6477 ;;
e1888513
PB
6478 *:ada:no)
6479 # Silently disable.
6480 add_this_lang=unsupported
6481 ;;
6482 esac
6483
cdfee50a
NS
6484 # Disable jit if -enable-host-shared not specified
6485 case ${add_this_lang}:${language}:${host_shared} in
6486 yes:jit:no)
6487 # PR jit/64780: explicitly specify --enable-host-shared
22e05272 6488 as_fn_error $? "
cdfee50a
NS
6489Enabling language \"jit\" requires --enable-host-shared.
6490
6491--enable-host-shared typically slows the rest of the compiler down by
6492a few %, so you must explicitly enable it.
6493
6494If you want to build both the jit and the regular compiler, it is often
6495best to do this via two separate configure/builds, in separate
6496directories, to avoid imposing the performance cost of
6497--enable-host-shared on the regular compiler." "$LINENO" 5
6498 ;;
6499 all:jit:no)
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6501$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6502 add_this_lang=unsupported
6503 ;;
6504 *:jit:no)
6505 # Silently disable.
6506 add_this_lang=unsupported
6507 ;;
6508 esac
6509
6510 # Disable a language that is unsupported by the target.
6511 case "${add_this_lang}: $unsupported_languages " in
6512 no:*) ;;
6513 unsupported:*) ;;
6514 *:*" $language "*)
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6516$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
e1888513 6517 add_this_lang=unsupported
4fab7234
HPN
6518 ;;
6519 esac
6520
6de9cd9a 6521 case $add_this_lang in
e1888513 6522 unsupported)
55ffb5ed 6523 # Remove language-dependent dirs.
4da3b0f8
ILT
6524 disabled_target_libs="$disabled_target_libs $target_libs"
6525 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6526 ;;
e1888513
PB
6527 no)
6528 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6529 disabled_target_libs="$disabled_target_libs $target_libs"
6530 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6531 potential_languages="${potential_languages}${language},"
6532 ;;
cdfee50a 6533 all|yes)
e1888513
PB
6534 new_enable_languages="${new_enable_languages}${language},"
6535 potential_languages="${potential_languages}${language},"
2805b53a 6536 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6537 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6538 case "${boot_language}:,$enable_stage1_languages," in
6539 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6540 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6541 case ",$stage1_languages," in
6542 *,$language,* | ,yes, | ,all,) ;;
6543 *) stage1_languages="${stage1_languages}${language}," ;;
6544 esac
00020c16
ILT
6545 # We need to bootstrap any supporting libraries.
6546 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6547 ;;
6548 esac
6549 ;;
55ffb5ed
NN
6550 esac
6551 ;;
6552 esac
6553 done
6554
4da3b0f8
ILT
6555 # Add target libraries which are only needed for disabled languages
6556 # to noconfigdirs.
6557 if test -n "$disabled_target_libs"; then
6558 for dir in $disabled_target_libs; do
6559 case " $enabled_target_libs " in
6560 *" ${dir} "*) ;;
6561 *) noconfigdirs="$noconfigdirs $dir" ;;
6562 esac
6563 done
6564 fi
6565
5213506e
RW
6566 # Check whether --enable-stage1-languages was given.
6567if test "${enable_stage1_languages+set}" = set; then :
6568 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6569 ,no,|,,)
6570 # Set it to something that will have no effect in the loop below
6571 enable_stage1_languages=c ;;
6572 ,yes,)
6573 enable_stage1_languages=`echo $new_enable_languages | \
6574 sed -e "s/^,//" -e "s/,$//" ` ;;
6575 *,all,*)
6576 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6577 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6578 esac
6579
6580 # Add "good" languages from enable_stage1_languages to stage1_languages,
6581 # while "bad" languages go in missing_languages. Leave no duplicates.
6582 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6583 case $potential_languages in
6584 *,$i,*)
6585 case $stage1_languages in
6586 *,$i,*) ;;
6587 *) stage1_languages="$stage1_languages$i," ;;
6588 esac ;;
6589 *)
6590 case $missing_languages in
6591 *,$i,*) ;;
6592 *) missing_languages="$missing_languages$i," ;;
6593 esac ;;
6594 esac
6595 done
5213506e
RW
6596fi
6597
e1888513
PB
6598
6599 # Remove leading/trailing commas that were added for simplicity
6600 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6601 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6602 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6603 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6604
55ffb5ed 6605 if test "x$missing_languages" != x; then
22e05272 6606 as_fn_error $? "
0cf085e4 6607The following requested languages could not be built: ${missing_languages}
5213506e 6608Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6609 fi
55ffb5ed
NN
6610 if test "x$new_enable_languages" != "x$enable_languages"; then
6611 echo The following languages will be built: ${new_enable_languages}
e1888513 6612 enable_languages="$new_enable_languages"
55ffb5ed 6613 fi
e1888513 6614
1c710c3c 6615
b2eaac4a 6616 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6617fi
6618
27079765
AH
6619# Handle --disable-<component> generically.
6620for dir in $configdirs $build_configdirs $target_configdirs ; do
6621 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6622 varname=`echo $dirname | sed -e s/+/_/g`
6623 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6624 noconfigdirs="$noconfigdirs $dir"
6625 fi
6626done
6627
43c40f3e
RO
6628# Check for Boehm's garbage collector
6629# Check whether --enable-objc-gc was given.
6630if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
6631 enableval=$enable_objc_gc;
6632fi
6633
6634
6635# Check whether --with-target-bdw-gc was given.
6636if test "${with_target_bdw_gc+set}" = set; then :
6637 withval=$with_target_bdw_gc;
6638fi
6639
6640
6641# Check whether --with-target-bdw-gc-include was given.
6642if test "${with_target_bdw_gc_include+set}" = set; then :
6643 withval=$with_target_bdw_gc_include;
6644fi
6645
6646
6647# Check whether --with-target-bdw-gc-lib was given.
6648if test "${with_target_bdw_gc_lib+set}" = set; then :
6649 withval=$with_target_bdw_gc_lib;
6650fi
6651
6652
6653case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6655$as_echo_n "checking for bdw garbage collector... " >&6; }
6656 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6658$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
6659 else
6660 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
22e05272 6661 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
114bf3f1 6662 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
22e05272 6663 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
114bf3f1
MK
6664 else
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6666$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6667 fi
6668 fi
43c40f3e
RO
6669esac
6670
5e9d6aa4 6671# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 6672case ,${enable_languages}, in
1007a55c 6673 *,c++,*)
5e9d6aa4 6674 # Disable libitm, libsanitizer if we're not building libstdc++
1007a55c
JW
6675 case "${noconfigdirs}" in
6676 *target-libstdc++-v3*)
5e9d6aa4 6677 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1007a55c
JW
6678 ;;
6679 *) ;;
6680 esac
6681 ;;
99776ebd 6682 *)
5e9d6aa4 6683 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6684 ;;
6685esac
6686
ee6a22df
L
6687# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6688# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6689# If we have the source for $noconfigdirs entries, add them to $notsupp.
6690
6691notsupp=""
6692for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6693 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6694 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6695 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6696 if test -r $srcdir/$dirname/configure ; then
6697 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6698 true
6699 else
6700 notsupp="$notsupp $dir"
6701 fi
6702 fi
6703 fi
ee6a22df
L
6704 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6705 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6706 if test -r $srcdir/$dirname/configure ; then
6707 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6708 true
6709 else
6710 notsupp="$notsupp $dir"
6711 fi
6712 fi
6713 fi
55ffb5ed
NN
6714 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6715 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6716 if test -r $srcdir/$dirname/configure ; then
6717 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6718 true
6719 else
6720 notsupp="$notsupp $dir"
6721 fi
6722 fi
6723 fi
6724done
6725
55ffb5ed
NN
6726# Quietly strip out all directories which aren't configurable in this tree.
6727# This relies on all configurable subdirectories being autoconfiscated, which
6728# is now the case.
23f6b2f9
PB
6729build_configdirs_all="$build_configdirs"
6730build_configdirs=
6731for i in ${build_configdirs_all} ; do
1c710c3c 6732 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6733 if test -f ${srcdir}/$j/configure ; then
6734 build_configdirs="${build_configdirs} $i"
6735 fi
6736done
6737
55ffb5ed
NN
6738configdirs_all="$configdirs"
6739configdirs=
6740for i in ${configdirs_all} ; do
6741 if test -f ${srcdir}/$i/configure ; then
6742 configdirs="${configdirs} $i"
6743 fi
6744done
23f6b2f9 6745
55ffb5ed
NN
6746target_configdirs_all="$target_configdirs"
6747target_configdirs=
6748for i in ${target_configdirs_all} ; do
1c710c3c 6749 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6750 if test -f ${srcdir}/$j/configure ; then
6751 target_configdirs="${target_configdirs} $i"
6752 fi
6753done
6754
45b3824d
TS
6755# libiberty-linker-plugin is special: it doesn't have its own source directory,
6756# so we have to add it after the preceding checks.
6757if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6758then
6759 case " $configdirs " in
6760 *" libiberty "*)
6761 # If we can build libiberty, we can also build libiberty-linker-plugin.
6762 configdirs="$configdirs libiberty-linker-plugin"
6763 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6764 --with-libiberty=../libiberty-linker-plugin";;
6765 *)
22e05272 6766 as_fn_error $? "libiberty missing" "$LINENO" 5;;
45b3824d
TS
6767 esac
6768fi
6769
fca38047
TS
6770# Sometimes we have special requirements for the host libiberty.
6771extra_host_libiberty_configure_flags=
1c01ebf6 6772extra_host_zlib_configure_flags=
fca38047
TS
6773case " $configdirs " in
6774 *" lto-plugin "* | *" libcc1 "*)
6775 # When these are to be built as shared libraries, the same applies to
6776 # libiberty.
6777 extra_host_libiberty_configure_flags=--enable-shared
6778 ;;
1c01ebf6
L
6779 *" bfd "*)
6780 # When bfd is to be built as a shared library, the same applies to
6781 # zlib.
6782 if test "$enable_shared" = "yes"; then
6783 extra_host_zlib_configure_flags=--enable-host-shared
6784 fi
6785 ;;
fca38047
TS
6786esac
6787
6788
1c01ebf6 6789
55ffb5ed
NN
6790# Produce a warning message for the subdirs we can't configure.
6791# This isn't especially interesting in the Cygnus tree, but in the individual
6792# FSF releases, it's important to let people know when their machine isn't
6793# supported by the one or two programs in a package.
6794
6795if test -n "${notsupp}" && test -z "${norecursion}" ; then
6796 # If $appdirs is non-empty, at least one of those directories must still
6797 # be configured, or we error out. (E.g., if the gas release supports a
6798 # specified target in some subdirs but not the gas subdir, we shouldn't
6799 # pretend that all is well.)
6800 if test -n "$appdirs" ; then
6801 for dir in $appdirs ; do
6802 if test -r $dir/Makefile.in ; then
6803 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6804 appdirs=""
6805 break
6806 fi
23f6b2f9 6807 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6808 appdirs=""
6809 break
6810 fi
6811 fi
6812 done
6813 if test -n "$appdirs" ; then
6814 echo "*** This configuration is not supported by this package." 1>&2
6815 exit 1
6816 fi
6817 fi
6818 # Okay, some application will build, or we don't care to check. Still
6819 # notify of subdirs not getting built.
6820 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6821 echo " ${notsupp}" 1>&2
6822 echo " (Any other directories should still work fine.)" 1>&2
6823fi
6824
6825case "$host" in
6826 *msdosdjgpp*)
6827 enable_gdbtk=no ;;
6828esac
6829
c3a86da9
DJ
6830# To find our prefix, in gcc_cv_tool_prefix.
6831
6832# The user is always right.
6833if test "${PATH_SEPARATOR+set}" != set; then
6834 echo "#! /bin/sh" >conf$$.sh
6835 echo "exit 0" >>conf$$.sh
6836 chmod +x conf$$.sh
6837 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6838 PATH_SEPARATOR=';'
6839 else
6840 PATH_SEPARATOR=:
6841 fi
6842 rm -f conf$$.sh
6843fi
6844
6845
3c36aa6b
JJ
6846 get_gcc_base_ver="cat"
6847
6848# Check whether --with-gcc-major-version-only was given.
6849if test "${with_gcc_major_version_only+set}" = set; then :
6850 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
31db0fe0 6851 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
6852 fi
6853
6854fi
6855
6856
6857
6858
6859
c3a86da9
DJ
6860
6861if test "x$exec_prefix" = xNONE; then
6862 if test "x$prefix" = xNONE; then
6863 gcc_cv_tool_prefix=$ac_default_prefix
6864 else
6865 gcc_cv_tool_prefix=$prefix
6866 fi
6867else
6868 gcc_cv_tool_prefix=$exec_prefix
6869fi
6870
6871# If there is no compiler in the tree, use the PATH only. In any
6872# case, if there is no compiler in the tree nobody should use
6873# AS_FOR_TARGET and LD_FOR_TARGET.
6874if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
6875 if test x$with_gcc_major_version_only = xyes ; then
6876 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6877 else
6878 gcc_version=`cat $srcdir/gcc/BASE-VER`
6879 fi
c3a86da9
DJ
6880 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6881 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6882 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6883 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6884 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6885 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6886else
6887 gcc_cv_tool_dirs=
6888fi
6889
6890if test x$build = x$target && test -n "$md_exec_prefix"; then
6891 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6892fi
6893
6894
6895
55ffb5ed
NN
6896copy_dirs=
6897
1c710c3c 6898
5213506e
RW
6899# Check whether --with-build-sysroot was given.
6900if test "${with_build_sysroot+set}" = set; then :
6901 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6902 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6903 fi
6904else
6905 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6906fi
526635cb
MM
6907
6908
c8aea42c 6909
5213506e
RW
6910
6911# Check whether --with-debug-prefix-map was given.
6912if test "${with_debug_prefix_map+set}" = set; then :
6913 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6914 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6915 for debug_map in $withval; do
6916 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6917 done
6918 fi
6919else
6920 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6921fi
6922
c8aea42c
PB
6923
6924
1c8bd6a3
PB
6925# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6926# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6927# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6928# We want to ensure that TARGET libraries (which we know are built with
6929# gcc) are built with "-O2 -g", so include those options when setting
6930# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6931if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6932 if test "x${is_cross_compiler}" = xyes; then
6933 CFLAGS_FOR_TARGET="-g -O2"
6934 else
6935 CFLAGS_FOR_TARGET=$CFLAGS
6936 case " $CFLAGS " in
6937 *" -O2 "*) ;;
6938 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6939 esac
6940 case " $CFLAGS " in
6941 *" -g "* | *" -g3 "*) ;;
6942 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6943 esac
6944 fi
1c8bd6a3
PB
6945fi
6946
6947
6948if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6949 if test "x${is_cross_compiler}" = xyes; then
6950 CXXFLAGS_FOR_TARGET="-g -O2"
6951 else
6952 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6953 case " $CXXFLAGS " in
6954 *" -O2 "*) ;;
6955 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6956 esac
6957 case " $CXXFLAGS " in
6958 *" -g "* | *" -g3 "*) ;;
6959 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6960 esac
6961 fi
1c8bd6a3
PB
6962fi
6963
6964
6f57bdf6
DK
6965
6966
55ffb5ed
NN
6967# Handle --with-headers=XXX. If the value is not "yes", the contents of
6968# the named directory are copied to $(tooldir)/sys-include.
6969if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6970 if test x${is_cross_compiler} = xno ; then
6971 echo 1>&2 '***' --with-headers is only supported when cross compiling
6972 exit 1
6973 fi
6974 if test x"${with_headers}" != xyes ; then
c3a86da9 6975 x=${gcc_cv_tool_prefix}
1c710c3c 6976 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6977 fi
6978fi
6979
6980# Handle --with-libs=XXX. If the value is not "yes", the contents of
6981# the name directories are copied to $(tooldir)/lib. Multiple directories
6982# are permitted.
6983if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6984 if test x${is_cross_compiler} = xno ; then
6985 echo 1>&2 '***' --with-libs is only supported when cross compiling
6986 exit 1
6987 fi
6988 if test x"${with_libs}" != xyes ; then
6989 # Copy the libraries in reverse order, so that files in the first named
6990 # library override files in subsequent libraries.
c3a86da9 6991 x=${gcc_cv_tool_prefix}
55ffb5ed 6992 for l in ${with_libs}; do
1c710c3c 6993 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6994 done
6995 fi
6996fi
6997
d7f09764 6998# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6999#
7000# This is done by determining whether or not the appropriate directory
7001# is available, and by checking whether or not specific configurations
7002# have requested that this magic not happen.
1c710c3c
DJ
7003#
7004# The command line options always override the explicit settings in
6b1786aa 7005# configure.ac, and the settings in configure.ac override this magic.
e8b05380 7006#
1c710c3c 7007# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 7008# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
7009# --without-gnu-ld options for the configure script. Similarly, if
7010# the default is to use the included zlib and you don't want to do that,
7011# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
7012
7013if test x${use_gnu_as} = x &&
7014 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7015 with_gnu_as=yes
7016 extra_host_args="$extra_host_args --with-gnu-as"
7017fi
7018
7019if test x${use_gnu_ld} = x &&
5afab7ad 7020 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
7021 with_gnu_ld=yes
7022 extra_host_args="$extra_host_args --with-gnu-ld"
7023fi
7024
d7f09764
DN
7025if test x${use_included_zlib} = x &&
7026 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7027 :
7028else
7029 with_system_zlib=yes
7030 extra_host_args="$extra_host_args --with-system-zlib"
7031fi
7032
e8b05380
PB
7033# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7034# can detect this case.
7035
7036if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7037 with_newlib=yes
7038 extra_host_args="$extra_host_args --with-newlib"
7039fi
7040
55ffb5ed
NN
7041# Handle ${copy_dirs}
7042set fnord ${copy_dirs}
7043shift
7044while test $# != 0 ; do
7045 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7046 :
7047 else
7048 echo Copying $1 to $2
7049
7050 # Use the install script to create the directory and all required
7051 # parent directories.
7052 if test -d $2 ; then
7053 :
7054 else
7055 echo >config.temp
7056 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7057 fi
7058
7059 # Copy the directory, assuming we have tar.
7060 # FIXME: Should we use B in the second tar? Not all systems support it.
7061 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7062
7063 # It is the responsibility of the user to correctly adjust all
7064 # symlinks. If somebody can figure out how to handle them correctly
7065 # here, feel free to add the code.
7066
7067 echo $1 > $2/COPIED
7068 fi
7069 shift; shift
7070done
7071
e8b05380
PB
7072# Determine a target-dependent exec_prefix that the installed
7073# gcc will search in. Keep this list sorted by triplet, with
7074# the *-*-osname triplets last.
7075md_exec_prefix=
7076case "${target}" in
30b74385 7077 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
7078 md_exec_prefix=/dev/env/DJDIR/bin
7079 ;;
e8b05380 7080 *-*-hpux* | \
e8b05380 7081 *-*-nto-qnx* | \
6de66370 7082 *-*-solaris2*)
e8b05380
PB
7083 md_exec_prefix=/usr/ccs/bin
7084 ;;
7085esac
7086
671aa708
NN
7087extra_arflags_for_target=
7088extra_nmflags_for_target=
7089extra_ranlibflags_for_target=
7090target_makefile_frag=/dev/null
7091case "${target}" in
58e24147
AM
7092 spu-*-*)
7093 target_makefile_frag="config/mt-spu"
7094 ;;
d896cc4d 7095 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
7096 target_makefile_frag="config/mt-sde"
7097 ;;
1ec3b87b
RS
7098 mipsisa*-*-elfoabi*)
7099 target_makefile_frag="config/mt-mips-elfoabi"
7100 ;;
08d0963a
RS
7101 mips*-*-*linux* | mips*-*-gnu*)
7102 target_makefile_frag="config/mt-mips-gnu"
7103 ;;
707f1839
SL
7104 nios2-*-elf*)
7105 target_makefile_frag="config/mt-nios2-elf"
7106 ;;
76052545
EB
7107 *-*-linux-android*)
7108 target_makefile_frag="config/mt-android"
7109 ;;
416ac4d4 7110 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 7111 target_makefile_frag="config/mt-gnu"
671aa708
NN
7112 ;;
7113 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 7114 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
7115 # commands to handle both 32-bit and 64-bit objects. These flags are
7116 # harmless if we're using GNU nm or ar.
7117 extra_arflags_for_target=" -X32_64"
7118 extra_nmflags_for_target=" -B -X32_64"
7119 ;;
671aa708
NN
7120esac
7121
7122alphaieee_frag=/dev/null
7123case $target in
7124 alpha*-*-*)
7125 # This just makes sure to use the -mieee option to build target libs.
7126 # This should probably be set individually by each library.
7127 alphaieee_frag="config/mt-alphaieee"
7128 ;;
7129esac
7130
7131# If --enable-target-optspace always use -Os instead of -O2 to build
7132# the target libraries, similarly if it is not specified, use -Os
7133# on selected platforms.
7134ospace_frag=/dev/null
7135case "${enable_target_optspace}:${target}" in
7136 yes:*)
7137 ospace_frag="config/mt-ospace"
7138 ;;
7139 :d30v-*)
7140 ospace_frag="config/mt-d30v"
7141 ;;
d9063947 7142 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
7143 ospace_frag="config/mt-ospace"
7144 ;;
7145 no:* | :*)
7146 ;;
7147 *)
7148 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7149 ;;
7150esac
7151
671aa708
NN
7152# Some systems (e.g., one of the i386-aix systems the gas testers are
7153# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 7154tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
7155build_tooldir=${tooldir}
7156
671aa708
NN
7157# Create a .gdbinit file which runs the one in srcdir
7158# and tells GDB to look there for source files.
7159
7160if test -r ${srcdir}/.gdbinit ; then
7161 case ${srcdir} in
7162 .) ;;
7163 *) cat > ./.gdbinit <<EOF
7164# ${NO_EDIT}
7165dir ${srcdir}
7166dir .
7167source ${srcdir}/.gdbinit
7168EOF
7169 ;;
7170 esac
7171fi
7172
671aa708
NN
7173# Make sure that the compiler is able to generate an executable. If it
7174# can't, we are probably in trouble. We don't care whether we can run the
7175# executable--we might be using a cross compiler--we only care whether it
7176# can be created. At this point the main configure script has set CC.
7177we_are_ok=no
7178echo "int main () { return 0; }" > conftest.c
7179${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7180if test $? = 0 ; then
7181 if test -s conftest || test -s conftest.exe ; then
7182 we_are_ok=yes
7183 fi
1c710c3c 7184fi
671aa708
NN
7185case $we_are_ok in
7186 no)
7187 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7188 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7189 rm -f conftest*
7190 exit 1
7191 ;;
7192esac
7193rm -f conftest*
7194
d89f0ad6 7195# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
7196case "${host}" in
7197 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 7198 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 7199 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
7200 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7201esac
7202
d89f0ad6
AL
7203# On systems where the dynamic library environment variable is PATH,
7204# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7205# built executables to PATH.
7206if test "$RPATH_ENVVAR" = PATH; then
7207 GCC_SHLIB_SUBDIR=/shlib
7208else
7209 GCC_SHLIB_SUBDIR=
7210fi
7211
beeda1d9
JJ
7212# Adjust the toplevel makefile according to whether bootstrap was selected.
7213case $enable_bootstrap in
7214 yes)
7215 bootstrap_suffix=bootstrap
7216 BUILD_CONFIG=bootstrap-debug
7217 ;;
7218 no)
7219 bootstrap_suffix=no-bootstrap
7220 BUILD_CONFIG=
7221 ;;
7222esac
7223
7224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7225$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7226
7227
7228# Check whether --with-build-config was given.
7229if test "${with_build_config+set}" = set; then :
7230 withval=$with_build_config; case $with_build_config in
7231 yes) with_build_config= ;;
7232 no) with_build_config= BUILD_CONFIG= ;;
7233 esac
7234fi
7235
7236
7237if test "x${with_build_config}" != x; then
7238 BUILD_CONFIG=$with_build_config
7239else
7240 case $BUILD_CONFIG in
7241 bootstrap-debug)
7242 if echo "int f (void) { return 0; }" > conftest.c &&
7243 ${CC} -c conftest.c &&
7244 mv conftest.o conftest.o.g0 &&
7245 ${CC} -c -g conftest.c &&
7246 mv conftest.o conftest.o.g &&
7247 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7248 :
7249 else
7250 BUILD_CONFIG=
7251 fi
7252 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7253 ;;
7254 esac
7255fi
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7257$as_echo "$BUILD_CONFIG" >&6; }
7258
7259
7260# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7262$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7263# Check whether --enable-vtable-verify was given.
7264if test "${enable_vtable_verify+set}" = set; then :
7265 enableval=$enable_vtable_verify; case "$enableval" in
7266 yes) enable_vtable_verify=yes ;;
7267 no) enable_vtable_verify=no ;;
7268 *) enable_vtable_verify=no;;
7269 esac
7270else
7271 enable_vtable_verify=no
7272fi
7273
7274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7275$as_echo "$enable_vtable_verify" >&6; }
7276
671aa708
NN
7277# Record target_configdirs and the configure arguments for target and
7278# build configuration in Makefile.
7279target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7280build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 7281bootstrap_fixincludes=no
671aa708 7282
ad1e5170
JR
7283# If we are building libgomp, bootstrap it.
7284if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7285 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7286fi
7287
beeda1d9
JJ
7288# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7289# or bootstrap-ubsan, bootstrap it.
7290if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7291 case "$BUILD_CONFIG" in
7292 *bootstrap-asan* | *bootstrap-ubsan* )
7293 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7294 bootstrap_fixincludes=yes
beeda1d9
JJ
7295 ;;
7296 esac
ac8701fe
L
7297fi
7298
beeda1d9
JJ
7299# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7300if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7301 test "$enable_vtable_verify" != no; then
2077db1b
CT
7302 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7303fi
7304
671aa708
NN
7305# Determine whether gdb needs tk/tcl or not.
7306# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7307# and in that case we want gdb to be built without tk. Ugh!
7308# In fact I believe gdb is the *only* package directly dependent on tk,
7309# so we should be able to put the 'maybe's in unconditionally and
7310# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7311# 100% sure that that's safe though.
e914a571 7312
b4f96efe 7313gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7314case "$enable_gdbtk" in
7315 no)
7316 GDB_TK="" ;;
e914a571
AC
7317 yes)
7318 GDB_TK="${gdb_tk}" ;;
671aa708 7319 *)
e914a571
AC
7320 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7321 # distro. Eventually someone will fix this and move Insight, nee
7322 # gdbtk to a separate directory.
7323 if test -d ${srcdir}/gdb/gdbtk ; then
7324 GDB_TK="${gdb_tk}"
7325 else
7326 GDB_TK=""
7327 fi
7328 ;;
671aa708 7329esac
ef9db8d5
DJ
7330CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7331INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7332
f9d09df0
TT
7333# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7334# else does, only include them if one of these is built. The Makefile
7335# provides the ordering, so it's enough here to add to the list.
7336case " ${configdirs} " in
7337 *\ gdb\ *)
7338 configdirs="${configdirs} gnulib gdbsupport"
7339 ;;
7340 *\ gdbserver\ *)
7341 configdirs="${configdirs} gnulib gdbsupport"
7342 ;;
7343esac
98e5be21 7344
60975492 7345# Strip out unwanted targets.
8b87bb96
NN
7346
7347# While at that, we remove Makefiles if we were started for recursive
7348# configuration, so that the top-level Makefile reconfigures them,
7349# like we used to do when configure itself was recursive.
8b87bb96 7350
3e54529c
RW
7351# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7352# but now we're fixing up the Makefile ourselves with the additional
7353# commands passed to AC_CONFIG_FILES. Use separate variables
7354# extrasub-{build,host,target} not because there is any reason to split
7355# the substitutions up that way, but only to remain below the limit of
7356# 99 commands in a script, for HP-UX sed.
da34ca3f
AO
7357
7358# Do not nest @if/@endif or @unless/@endunless pairs, because
7359# configure will not warn you at all.
8b87bb96 7360
79cd2b23
RW
7361case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7362 yes:yes:*\ gold\ *:*,c++,*) ;;
7363 yes:yes:*\ gold\ *:*)
22e05272 7364 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
79cd2b23
RW
7365 ;;
7366esac
7367
3e54529c 7368extrasub_build=
23f6b2f9 7369for module in ${build_configdirs} ; do
5607edfd
PB
7370 if test -z "${no_recursion}" \
7371 && test -f ${build_subdir}/${module}/Makefile; then
7372 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7373 rm -f ${build_subdir}/${module}/Makefile
7374 fi
3e54529c 7375 extrasub_build="$extrasub_build
5607edfd
PB
7376/^@if build-$module\$/d
7377/^@endif build-$module\$/d
da34ca3f 7378/^@unless build-$module\$/,/^@endunless build-$module\$/d
5607edfd 7379/^@if build-$module-$bootstrap_suffix\$/d
da34ca3f
AO
7380/^@endif build-$module-$bootstrap_suffix\$/d
7381/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
5607edfd 7382done
3e54529c 7383extrasub_host=
5607edfd 7384for module in ${configdirs} ; do
a6fbc1e2 7385 if test -z "${no_recursion}"; then
f063a9ed 7386 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7387 if test -f ${file}; then
7388 echo 1>&2 "*** removing ${file} to force reconfigure"
7389 rm -f ${file}
7390 fi
7391 done
5607edfd 7392 fi
9e1c8fc1
JJ
7393 case ${module},${bootstrap_fixincludes} in
7394 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7395 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7396 esac
3e54529c 7397 extrasub_host="$extrasub_host
5607edfd
PB
7398/^@if $module\$/d
7399/^@endif $module\$/d
da34ca3f 7400/^@unless $module\$/,/^@endunless $module\$/d
9e1c8fc1 7401/^@if $module-$host_bootstrap_suffix\$/d
da34ca3f
AO
7402/^@endif $module-$host_bootstrap_suffix\$/d
7403/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
5607edfd 7404done
3e54529c 7405extrasub_target=
5607edfd
PB
7406for module in ${target_configdirs} ; do
7407 if test -z "${no_recursion}" \
7408 && test -f ${target_subdir}/${module}/Makefile; then
7409 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7410 rm -f ${target_subdir}/${module}/Makefile
7411 fi
00020c16
ILT
7412
7413 # We only bootstrap target libraries listed in bootstrap_target_libs.
7414 case $bootstrap_target_libs in
7415 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7416 *) target_bootstrap_suffix=no-bootstrap ;;
7417 esac
7418
3e54529c 7419 extrasub_target="$extrasub_target
5607edfd
PB
7420/^@if target-$module\$/d
7421/^@endif target-$module\$/d
da34ca3f 7422/^@unless target-$module\$/,/^@endunless target-$module\$/d
00020c16 7423/^@if target-$module-$target_bootstrap_suffix\$/d
da34ca3f
AO
7424/^@endif target-$module-$target_bootstrap_suffix\$/d
7425/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7426done
7427
3e54529c
RW
7428# Do the final fixup along with target modules.
7429extrasub_target="$extrasub_target
da34ca3f
AO
7430/^@if /,/^@endif /d
7431/^@unless /d
7432/^@endunless /d"
671aa708
NN
7433
7434# Create the serialization dependencies. This uses a temporary file.
7435
5213506e
RW
7436# Check whether --enable-serial-configure was given.
7437if test "${enable_serial_configure+set}" = set; then :
7438 enableval=$enable_serial_configure;
7439fi
ade82b16
AO
7440
7441
bf1d3e81
NN
7442case ${enable_serial_configure} in
7443 yes)
7444 enable_serial_build_configure=yes
7445 enable_serial_host_configure=yes
7446 enable_serial_target_configure=yes
7447 ;;
7448esac
7449
671aa708
NN
7450# These force 'configure's to be done one at a time, to avoid problems
7451# with contention over a shared config.cache.
7452rm -f serdep.tmp
ade82b16 7453echo '# serdep.tmp' > serdep.tmp
671aa708 7454olditem=
bf1d3e81 7455test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7456for item in ${build_configdirs} ; do
7457 case ${olditem} in
7458 "") ;;
ade82b16 7459 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7460 esac
7461 olditem=${item}
7462done
7463olditem=
bf1d3e81 7464test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7465for item in ${configdirs} ; do
7466 case ${olditem} in
7467 "") ;;
ade82b16 7468 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7469 esac
7470 olditem=${item}
7471done
7472olditem=
bf1d3e81 7473test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7474for item in ${target_configdirs} ; do
7475 case ${olditem} in
7476 "") ;;
ade82b16 7477 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7478 esac
7479 olditem=${item}
7480done
7481serialization_dependencies=serdep.tmp
7482
7483
ade82b16 7484# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7485# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7486# might not want to pass down to subconfigures. The exception being
7487# --cache-file=/dev/null, which is used to turn off the use of cache
7488# files altogether, and which should be passed on to subconfigures.
7489# Also strip program-prefix, program-suffix, and program-transform-name,
7490# so that we can pass down a consistent program-transform-name.
1c710c3c 7491baseargs=
29a63921 7492tbaseargs=
1c710c3c
DJ
7493keep_next=no
7494skip_next=no
7495eval "set -- $ac_configure_args"
44bfc3ac
DJ
7496for ac_arg
7497do
1c710c3c
DJ
7498 if test X"$skip_next" = X"yes"; then
7499 skip_next=no
7500 continue
7501 fi
7502 if test X"$keep_next" = X"yes"; then
7503 case $ac_arg in
7504 *\'*)
7505 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7506 esac
7507 baseargs="$baseargs '$ac_arg'"
29a63921 7508 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7509 keep_next=no
7510 continue
7511 fi
7512
7513 # Handle separated arguments. Based on the logic generated by
7514 # autoconf 2.59.
7515 case $ac_arg in
7516 *=* | --config-cache | -C | -disable-* | --disable-* \
7517 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7518 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7519 | -with-* | --with-* | -without-* | --without-* | --x)
7520 separate_arg=no
7521 ;;
7522 -*)
7523 separate_arg=yes
7524 ;;
7525 *)
7526 separate_arg=no
7527 ;;
7528 esac
7529
29a63921
AO
7530 skip_targ=no
7531 case $ac_arg in
7532
7533 --with-* | --without-*)
7534 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7535
7536 case $libopt in
7537 *[-_]include)
7538 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7539 ;;
7540 *[-_]lib)
7541 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7542 ;;
7543 *)
7544 lib=$libopt
7545 ;;
7546 esac
7547
7548
7549 case $lib in
4a9bb2aa 7550 mpc | mpfr | gmp | isl)
29a63921
AO
7551 # If we're processing --with-$lib, --with-$lib-include or
7552 # --with-$lib-lib, for one of the libs above, and target is
7553 # different from host, don't pass the current argument to any
7554 # target library's configure.
7555 if test x$is_cross_compiler = xyes; then
7556 skip_targ=yes
7557 fi
7558 ;;
7559 esac
7560 ;;
7561 esac
7562
1c710c3c 7563 case "$ac_arg" in
f1a036e4
NC
7564 --cache-file=/dev/null | \
7565 -cache-file=/dev/null )
7566 # Handled here to avoid the test to skip args below.
7567 baseargs="$baseargs '$ac_arg'"
29a63921 7568 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7569 # Assert: $separate_arg should always be no.
7570 keep_next=$separate_arg
7571 ;;
1c710c3c
DJ
7572 --no*)
7573 continue
7574 ;;
7575 --c* | \
7576 --sr* | \
7577 --ho* | \
7578 --bu* | \
7579 --t* | \
7580 --program-* | \
7581 -cache_file* | \
7582 -srcdir* | \
7583 -host* | \
7584 -build* | \
7585 -target* | \
7586 -program-prefix* | \
7587 -program-suffix* | \
7588 -program-transform-name* )
7589 skip_next=$separate_arg
7590 continue
7591 ;;
7592 -*)
7593 # An option. Add it.
7594 case $ac_arg in
7595 *\'*)
7596 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7597 esac
7598 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7599 if test X"$skip_targ" = Xno; then
7600 tbaseargs="$tbaseargs '$ac_arg'"
7601 fi
1c710c3c
DJ
7602 keep_next=$separate_arg
7603 ;;
7604 *)
7605 # Either a variable assignment, or a nonopt (triplet). Don't
7606 # pass it down; let the Makefile handle this.
7607 continue
7608 ;;
7609 esac
7610done
7611# Remove the initial space we just introduced and, as these will be
7612# expanded by make, quote '$'.
7613baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7614
43bb47c2
DJ
7615# Add in --program-transform-name, after --program-prefix and
7616# --program-suffix have been applied to it. Autoconf has already
7617# doubled dollar signs and backslashes in program_transform_name; we want
7618# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7619# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7620# Also, because we want to override the logic in subdir configure scripts to
7621# choose program_transform_name, replace any s,x,x, with s,y,y,.
7622sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7623${program_transform_name}
7624EOF_SED
7625gcc_transform_name=`cat conftestsed.out`
7626rm -f conftestsed.out
7627baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7628tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7629if test "$silent" = yes; then
7630 baseargs="$baseargs --silent"
29a63921 7631 tbaseargs="$tbaseargs --silent"
d9acb717 7632fi
0115d4a3 7633baseargs="$baseargs --disable-option-checking"
29a63921 7634tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7635
ffedf511
RW
7636# Record and document user additions to sub configure arguments.
7637
7638
7639
7640
671aa708
NN
7641# For the build-side libraries, we just need to pretend we're native,
7642# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
7643# desired. We can't even use the same cache file for all build-side
7644# libraries, as they're compiled differently; some with C, some with
7645# C++ or with different feature-enabling options.
7646build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
7647
7648# For host modules, accept cache file option, or specification as blank.
7649case "${cache_file}" in
7650"") # empty
7651 cache_file_option="" ;;
7652/* | [A-Za-z]:[\\/]* ) # absolute path
7653 cache_file_option="--cache-file=${cache_file}" ;;
7654*) # relative path
7655 cache_file_option="--cache-file=../${cache_file}" ;;
7656esac
7657
09438bde
NN
7658# Host dirs don't like to share a cache file either, horribly enough.
7659# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7660host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7661
29a63921 7662target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7663
7664# Passing a --with-cross-host argument lets the target libraries know
7665# whether they are being built with a cross-compiler or being built
7666# native. However, it would be better to use other mechanisms to make the
7667# sorts of decisions they want to make on this basis. Please consider
7668# this option to be deprecated. FIXME.
7669if test x${is_cross_compiler} = xyes ; then
1c710c3c 7670 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7671fi
7672
79e0604d
FXC
7673# Special user-friendly check for native x86_64-linux build, if
7674# multilib is not explicitly enabled.
7675case "$target:$have_compiler:$host:$target:$enable_multilib" in
7676 x86_64-*linux*:yes:$build:$build:)
e640447c 7677 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
7678 dev64=no
7679 echo "int main () { return 0; }" > conftest.c
7680 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7681 if test $? = 0 ; then
7682 if test -s conftest || test -s conftest.exe ; then
7683 dev64=yes
7684 fi
7685 fi
7686 rm -f conftest*
7687 if test x${dev64} != xyes ; then
22e05272 7688 as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
79e0604d
FXC
7689 fi
7690 ;;
7691esac
7692
dc683a3f
RW
7693# Default to --enable-multilib.
7694if test x${enable_multilib} = x ; then
671aa708 7695 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7696fi
671aa708
NN
7697
7698# Pass --with-newlib if appropriate. Note that target_configdirs has
7699# changed from the earlier setting of with_newlib.
7700if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7701 target_configargs="--with-newlib ${target_configargs}"
7702fi
7703
6b9eb62c
NN
7704# Different target subdirs use different values of certain variables
7705# (notably CXX). Worse, multilibs use *lots* of different values.
7706# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7707# it doesn't automatically accept command-line overrides of them.
7708# This means it's not safe for target subdirs to share a cache file,
7709# which is disgusting, but there you have it. Hopefully this can be
7710# fixed in future. It's still worthwhile to use a cache file for each
7711# directory. I think.
7712
bebcd931
MS
7713# Pass the appropriate --build, --host, --target and --cache-file arguments.
7714# We need to pass --target, as newer autoconf's requires consistency
7715# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7716target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7717
671aa708
NN
7718FLAGS_FOR_TARGET=
7719case " $target_configdirs " in
7720 *" newlib "*)
7721 case " $target_configargs " in
7722 *" --with-newlib "*)
7723 case "$target" in
5d571eaa 7724 *-cygwin*)
443e6238 7725 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7726 ;;
671aa708
NN
7727 esac
7728
7729 # If we're not building GCC, don't discard standard headers.
7730 if test -d ${srcdir}/gcc; then
7731 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7732
7733 if test "${build}" != "${host}"; then
7734 # On Canadian crosses, CC_FOR_TARGET will have already been set
7735 # by `configure', so we won't have an opportunity to add -Bgcc/
7736 # to it. This is right: we don't want to search that directory
7737 # for binaries, but we want the header files in there, so add
7738 # them explicitly.
0463992b 7739 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7740
7741 # Someone might think of using the pre-installed headers on
7742 # Canadian crosses, in case the installed compiler is not fully
7743 # compatible with the compiler being built. In this case, it
7744 # would be better to flag an error than risking having
7745 # incompatible object files being constructed. We can't
7746 # guarantee that an error will be flagged, but let's hope the
7747 # compiler will do it, when presented with incompatible header
7748 # files.
7749 fi
7750 fi
7751
7752 case "${target}-${is_cross_compiler}" in
f2a0e225 7753 i[3456789]86-*-linux*-no)
671aa708
NN
7754 # Here host == target, so we don't need to build gcc,
7755 # so we don't want to discard standard headers.
7756 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7757 ;;
7758 *)
7759 # If we're building newlib, use its generic headers last, but search
7760 # for any libc-related directories first (so make it the last -B
7761 # switch).
7762 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
c03353e2
RIL
7763
7764 # If we're building libgloss, find the startup file, simulator library
7765 # and linker script.
7766 case " $target_configdirs " in
7767 *" libgloss "*)
7768 # Look for startup file, simulator library and maybe linker script.
7769 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7770 # Look for libnosys.a in case the target needs it.
7771 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7772 # Most targets have the linker script in the source directory.
7773 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7774 ;;
7775 esac
671aa708
NN
7776 ;;
7777 esac
7778 ;;
7779 esac
7780 ;;
7781esac
5d571eaa 7782
b91f0a41 7783case "$target" in
5d571eaa
OS
7784 x86_64-*mingw* | *-w64-mingw*)
7785 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7786 # however, use a symlink named 'mingw' in ${prefix} .
7787 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7788 ;;
7789 *-mingw*)
7790 # MinGW can't be handled as Cygwin above since it does not use newlib.
7791 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'
7792 ;;
b91f0a41 7793esac
671aa708 7794
6691a79e
ME
7795# Allow the user to override the flags for
7796# our build compiler if desired.
f019adc1
MF
7797if test x"${build}" = x"${host}" ; then
7798 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7799 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7800 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7801fi
6691a79e 7802
671aa708
NN
7803# On Canadian crosses, we'll be searching the right directories for
7804# the previously-installed cross compiler, so don't bother to add
7805# flags for directories within the install tree of the compiler
7806# being built; programs in there won't even run.
7807if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7808 # Search for pre-installed headers if nothing else fits.
9124bc53 7809 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
7810fi
7811
7812if test "x${use_gnu_ld}" = x &&
7813 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7814 # Arrange for us to find uninstalled linker scripts.
215c351a 7815 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7816fi
7817
e88a2c09
DD
7818# Search for other target-specific linker scripts and such.
7819case "${target}" in
3e19841a
PB
7820 mep*)
7821 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7822 ;;
e88a2c09
DD
7823esac
7824
671aa708 7825# Makefile fragments.
7b61653a
PE
7826for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7827do
7828 eval fragval=\$$frag
7829 if test $fragval != /dev/null; then
7830 eval $frag=${srcdir}/$fragval
7831 fi
7832done
671aa708
NN
7833
7834
7835
7836
7837
7838# Miscellanea: directories, flags, etc.
7839
7840
7841
7842
7843
7844
7845
d89f0ad6 7846
23f6b2f9 7847# Build module lists & subconfigure args.
671aa708
NN
7848
7849
7850
2abefe3d
PB
7851# Host module lists & subconfigure args.
7852
7853
7854
aae29963 7855
2abefe3d
PB
7856# Target module lists & subconfigure args.
7857
7858
7859
7860# Build tools.
7861
7862
7863
0999159b
PB
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
b4c522fa 7877
2abefe3d
PB
7878# Generate default definitions for YACC, M4, LEX and other programs that run
7879# on the build machine. These are used if the Makefile can't locate these
7880# programs in objdir.
7881MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7882
7883for ac_prog in 'bison -y' byacc yacc
7884do
1c710c3c 7885 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7886set dummy $ac_prog; ac_word=$2
5213506e
RW
7887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7888$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7889if ${ac_cv_prog_YACC+:} false; then :
5213506e 7890 $as_echo_n "(cached) " >&6
2abefe3d
PB
7891else
7892 if test -n "$YACC"; then
7893 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7894else
1c710c3c
DJ
7895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896for as_dir in $PATH
7897do
7898 IFS=$as_save_IFS
7899 test -z "$as_dir" && as_dir=.
5213506e 7900 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7902 ac_cv_prog_YACC="$ac_prog"
5213506e 7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7904 break 2
7905 fi
7906done
5213506e
RW
7907 done
7908IFS=$as_save_IFS
1c710c3c 7909
2abefe3d
PB
7910fi
7911fi
1c710c3c 7912YACC=$ac_cv_prog_YACC
2abefe3d 7913if test -n "$YACC"; then
5213506e
RW
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7915$as_echo "$YACC" >&6; }
2abefe3d 7916else
5213506e
RW
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918$as_echo "no" >&6; }
2abefe3d
PB
7919fi
7920
5213506e 7921
1c710c3c 7922 test -n "$YACC" && break
2abefe3d
PB
7923done
7924test -n "$YACC" || YACC="$MISSING bison -y"
7925
7926case " $build_configdirs " in
7927 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7928esac
7929
7930for ac_prog in bison
7931do
1c710c3c 7932 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7933set dummy $ac_prog; ac_word=$2
5213506e
RW
7934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7936if ${ac_cv_prog_BISON+:} false; then :
5213506e 7937 $as_echo_n "(cached) " >&6
2abefe3d
PB
7938else
7939 if test -n "$BISON"; then
7940 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7941else
1c710c3c
DJ
7942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943for as_dir in $PATH
7944do
7945 IFS=$as_save_IFS
7946 test -z "$as_dir" && as_dir=.
5213506e 7947 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7949 ac_cv_prog_BISON="$ac_prog"
5213506e 7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7951 break 2
7952 fi
7953done
5213506e
RW
7954 done
7955IFS=$as_save_IFS
1c710c3c 7956
2abefe3d
PB
7957fi
7958fi
1c710c3c 7959BISON=$ac_cv_prog_BISON
2abefe3d 7960if test -n "$BISON"; then
5213506e
RW
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7962$as_echo "$BISON" >&6; }
2abefe3d 7963else
5213506e
RW
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965$as_echo "no" >&6; }
2abefe3d
PB
7966fi
7967
5213506e 7968
1c710c3c 7969 test -n "$BISON" && break
2abefe3d
PB
7970done
7971test -n "$BISON" || BISON="$MISSING bison"
7972
7973case " $build_configdirs " in
7974 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7975esac
7976
7977for ac_prog in gm4 gnum4 m4
7978do
1c710c3c 7979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7980set dummy $ac_prog; ac_word=$2
5213506e
RW
7981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7983if ${ac_cv_prog_M4+:} false; then :
5213506e 7984 $as_echo_n "(cached) " >&6
2abefe3d
PB
7985else
7986 if test -n "$M4"; then
7987 ac_cv_prog_M4="$M4" # Let the user override the test.
7988else
1c710c3c
DJ
7989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990for as_dir in $PATH
7991do
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
5213506e 7994 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7996 ac_cv_prog_M4="$ac_prog"
5213506e 7997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7998 break 2
7999 fi
8000done
5213506e
RW
8001 done
8002IFS=$as_save_IFS
1c710c3c 8003
2abefe3d
PB
8004fi
8005fi
1c710c3c 8006M4=$ac_cv_prog_M4
2abefe3d 8007if test -n "$M4"; then
5213506e
RW
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8009$as_echo "$M4" >&6; }
2abefe3d 8010else
5213506e
RW
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012$as_echo "no" >&6; }
2abefe3d
PB
8013fi
8014
5213506e 8015
1c710c3c 8016 test -n "$M4" && break
2abefe3d
PB
8017done
8018test -n "$M4" || M4="$MISSING m4"
8019
8020case " $build_configdirs " in
8021 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8022esac
8023
8024for ac_prog in flex lex
8025do
1c710c3c 8026 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8027set dummy $ac_prog; ac_word=$2
5213506e
RW
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8029$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8030if ${ac_cv_prog_LEX+:} false; then :
5213506e 8031 $as_echo_n "(cached) " >&6
2abefe3d
PB
8032else
8033 if test -n "$LEX"; then
8034 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8035else
1c710c3c
DJ
8036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037for as_dir in $PATH
8038do
8039 IFS=$as_save_IFS
8040 test -z "$as_dir" && as_dir=.
5213506e 8041 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8043 ac_cv_prog_LEX="$ac_prog"
5213506e 8044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8045 break 2
8046 fi
8047done
5213506e
RW
8048 done
8049IFS=$as_save_IFS
1c710c3c 8050
2abefe3d
PB
8051fi
8052fi
1c710c3c 8053LEX=$ac_cv_prog_LEX
2abefe3d 8054if test -n "$LEX"; then
5213506e
RW
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8056$as_echo "$LEX" >&6; }
2abefe3d 8057else
5213506e
RW
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059$as_echo "no" >&6; }
2abefe3d
PB
8060fi
8061
5213506e 8062
1c710c3c 8063 test -n "$LEX" && break
2abefe3d
PB
8064done
8065test -n "$LEX" || LEX="$MISSING flex"
8066
8067case " $build_configdirs " in
8068 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8069 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8070esac
8071
8072for ac_prog in flex
8073do
1c710c3c 8074 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8075set dummy $ac_prog; ac_word=$2
5213506e
RW
8076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8078if ${ac_cv_prog_FLEX+:} false; then :
5213506e 8079 $as_echo_n "(cached) " >&6
2abefe3d
PB
8080else
8081 if test -n "$FLEX"; then
8082 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8083else
1c710c3c
DJ
8084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085for as_dir in $PATH
8086do
8087 IFS=$as_save_IFS
8088 test -z "$as_dir" && as_dir=.
5213506e 8089 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8091 ac_cv_prog_FLEX="$ac_prog"
5213506e 8092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8093 break 2
8094 fi
8095done
5213506e
RW
8096 done
8097IFS=$as_save_IFS
1c710c3c 8098
2abefe3d
PB
8099fi
8100fi
1c710c3c 8101FLEX=$ac_cv_prog_FLEX
2abefe3d 8102if test -n "$FLEX"; then
5213506e
RW
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8104$as_echo "$FLEX" >&6; }
2abefe3d 8105else
5213506e
RW
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107$as_echo "no" >&6; }
2abefe3d
PB
8108fi
8109
5213506e 8110
1c710c3c 8111 test -n "$FLEX" && break
2abefe3d
PB
8112done
8113test -n "$FLEX" || FLEX="$MISSING flex"
8114
8115case " $build_configdirs " in
8116 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8117esac
8118
8119for ac_prog in makeinfo
8120do
1c710c3c 8121 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8122set dummy $ac_prog; ac_word=$2
5213506e
RW
8123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8125if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 8126 $as_echo_n "(cached) " >&6
2abefe3d
PB
8127else
8128 if test -n "$MAKEINFO"; then
8129 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8130else
1c710c3c
DJ
8131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132for as_dir in $PATH
8133do
8134 IFS=$as_save_IFS
8135 test -z "$as_dir" && as_dir=.
5213506e 8136 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8138 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8140 break 2
8141 fi
8142done
5213506e
RW
8143 done
8144IFS=$as_save_IFS
1c710c3c 8145
2abefe3d
PB
8146fi
8147fi
1c710c3c 8148MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 8149if test -n "$MAKEINFO"; then
5213506e
RW
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8151$as_echo "$MAKEINFO" >&6; }
2abefe3d 8152else
5213506e
RW
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154$as_echo "no" >&6; }
2abefe3d
PB
8155fi
8156
5213506e 8157
1c710c3c 8158 test -n "$MAKEINFO" && break
2abefe3d
PB
8159done
8160test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8161
8162case " $build_configdirs " in
8163 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8164 *)
8165
d18ff35a 8166 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
8167 # higher, else we use the "missing" dummy.
8168 if ${MAKEINFO} --version \
d18ff35a 8169 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
8170 :
8171 else
8172 MAKEINFO="$MISSING makeinfo"
8173 fi
8174 ;;
8175
8176esac
671aa708 8177
2abefe3d 8178# FIXME: expect and dejagnu may become build tools?
671aa708 8179
2abefe3d
PB
8180for ac_prog in expect
8181do
1c710c3c 8182 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8183set dummy $ac_prog; ac_word=$2
5213506e
RW
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8186if ${ac_cv_prog_EXPECT+:} false; then :
5213506e 8187 $as_echo_n "(cached) " >&6
2abefe3d
PB
8188else
8189 if test -n "$EXPECT"; then
8190 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8191else
1c710c3c
DJ
8192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193for as_dir in $PATH
8194do
8195 IFS=$as_save_IFS
8196 test -z "$as_dir" && as_dir=.
5213506e 8197 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8199 ac_cv_prog_EXPECT="$ac_prog"
5213506e 8200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8201 break 2
8202 fi
8203done
5213506e
RW
8204 done
8205IFS=$as_save_IFS
1c710c3c 8206
2abefe3d
PB
8207fi
8208fi
1c710c3c 8209EXPECT=$ac_cv_prog_EXPECT
2abefe3d 8210if test -n "$EXPECT"; then
5213506e
RW
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8212$as_echo "$EXPECT" >&6; }
2abefe3d 8213else
5213506e
RW
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215$as_echo "no" >&6; }
2abefe3d 8216fi
671aa708 8217
5213506e 8218
1c710c3c 8219 test -n "$EXPECT" && break
2abefe3d
PB
8220done
8221test -n "$EXPECT" || EXPECT="expect"
671aa708 8222
2abefe3d
PB
8223case " $configdirs " in
8224 *" expect "*)
8225 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8226 ;;
8227esac
671aa708 8228
2abefe3d
PB
8229for ac_prog in runtest
8230do
1c710c3c 8231 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8232set dummy $ac_prog; ac_word=$2
5213506e
RW
8233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8235if ${ac_cv_prog_RUNTEST+:} false; then :
5213506e 8236 $as_echo_n "(cached) " >&6
2abefe3d
PB
8237else
8238 if test -n "$RUNTEST"; then
8239 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 8240else
1c710c3c
DJ
8241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242for as_dir in $PATH
8243do
8244 IFS=$as_save_IFS
8245 test -z "$as_dir" && as_dir=.
5213506e 8246 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8248 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 8249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8250 break 2
8251 fi
8252done
5213506e
RW
8253 done
8254IFS=$as_save_IFS
1c710c3c 8255
2abefe3d
PB
8256fi
8257fi
1c710c3c 8258RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8259if test -n "$RUNTEST"; then
5213506e
RW
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8261$as_echo "$RUNTEST" >&6; }
2abefe3d 8262else
5213506e
RW
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264$as_echo "no" >&6; }
2abefe3d 8265fi
671aa708 8266
5213506e 8267
1c710c3c 8268 test -n "$RUNTEST" && break
2abefe3d
PB
8269done
8270test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8271
2abefe3d
PB
8272case " $configdirs " in
8273 *" dejagnu "*)
c394e891 8274 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8275 ;;
8276esac
671aa708
NN
8277
8278
671aa708 8279# Host tools.
ca9f4b81
AO
8280ncn_tool_prefix=
8281test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8282ncn_target_tool_prefix=
8283test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8284
278a7a38
AO
8285
8286
8287if test -n "$AR"; then
8288 ac_cv_prog_AR=$AR
8289elif test -n "$ac_cv_prog_AR"; then
8290 AR=$ac_cv_prog_AR
8291fi
8292
8293if test -n "$ac_cv_prog_AR"; then
8294 for ncn_progname in ar; do
8295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8296set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8298$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8299if ${ac_cv_prog_AR+:} false; then :
5213506e 8300 $as_echo_n "(cached) " >&6
278a7a38
AO
8301else
8302 if test -n "$AR"; then
8303 ac_cv_prog_AR="$AR" # Let the user override the test.
8304else
8305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306for as_dir in $PATH
8307do
8308 IFS=$as_save_IFS
8309 test -z "$as_dir" && as_dir=.
5213506e 8310 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8312 ac_cv_prog_AR="${ncn_progname}"
5213506e 8313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8314 break 2
8315 fi
8316done
5213506e
RW
8317 done
8318IFS=$as_save_IFS
278a7a38
AO
8319
8320fi
8321fi
8322AR=$ac_cv_prog_AR
8323if test -n "$AR"; then
5213506e
RW
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8325$as_echo "$AR" >&6; }
278a7a38 8326else
5213506e
RW
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328$as_echo "no" >&6; }
278a7a38
AO
8329fi
8330
5213506e 8331
278a7a38
AO
8332 done
8333fi
8334
8335for ncn_progname in ar; do
2693c0b0
PB
8336 if test -n "$ncn_tool_prefix"; then
8337 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8338set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8341if ${ac_cv_prog_AR+:} false; then :
5213506e 8342 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8343else
8344 if test -n "$AR"; then
8345 ac_cv_prog_AR="$AR" # Let the user override the test.
8346else
1c710c3c
DJ
8347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348for as_dir in $PATH
8349do
8350 IFS=$as_save_IFS
8351 test -z "$as_dir" && as_dir=.
5213506e 8352 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8354 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8356 break 2
8357 fi
8358done
5213506e
RW
8359 done
8360IFS=$as_save_IFS
1c710c3c 8361
ca9f4b81
AO
8362fi
8363fi
1c710c3c 8364AR=$ac_cv_prog_AR
ca9f4b81 8365if test -n "$AR"; then
5213506e
RW
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8367$as_echo "$AR" >&6; }
ca9f4b81 8368else
5213506e
RW
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370$as_echo "no" >&6; }
ca9f4b81
AO
8371fi
8372
5213506e 8373
2693c0b0
PB
8374 fi
8375 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8376 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8377set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8380if ${ac_cv_prog_AR+:} false; then :
5213506e 8381 $as_echo_n "(cached) " >&6
ca9f4b81 8382else
2693c0b0 8383 if test -n "$AR"; then
af71363e
AS
8384 ac_cv_prog_AR="$AR" # Let the user override the test.
8385else
1c710c3c
DJ
8386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387for as_dir in $PATH
8388do
8389 IFS=$as_save_IFS
8390 test -z "$as_dir" && as_dir=.
5213506e 8391 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8393 ac_cv_prog_AR="${ncn_progname}"
5213506e 8394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8395 break 2
8396 fi
8397done
5213506e
RW
8398 done
8399IFS=$as_save_IFS
1c710c3c 8400
ca9f4b81
AO
8401fi
8402fi
1c710c3c 8403AR=$ac_cv_prog_AR
2693c0b0 8404if test -n "$AR"; then
5213506e
RW
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8406$as_echo "$AR" >&6; }
ca9f4b81 8407else
5213506e
RW
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409$as_echo "no" >&6; }
ca9f4b81 8410fi
1c710c3c 8411
5213506e 8412
2693c0b0
PB
8413 fi
8414 test -n "$ac_cv_prog_AR" && break
8415done
8416
8417if test -z "$ac_cv_prog_AR" ; then
8418 set dummy ar
8419 if test $build = $host ; then
8420 AR="$2"
ca9f4b81 8421 else
2693c0b0 8422 AR="${ncn_tool_prefix}$2"
ca9f4b81 8423 fi
ca9f4b81
AO
8424fi
8425
278a7a38
AO
8426
8427
8428if test -n "$AS"; then
8429 ac_cv_prog_AS=$AS
8430elif test -n "$ac_cv_prog_AS"; then
8431 AS=$ac_cv_prog_AS
8432fi
8433
8434if test -n "$ac_cv_prog_AS"; then
8435 for ncn_progname in as; do
8436 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8437set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8439$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8440if ${ac_cv_prog_AS+:} false; then :
5213506e 8441 $as_echo_n "(cached) " >&6
278a7a38
AO
8442else
8443 if test -n "$AS"; then
8444 ac_cv_prog_AS="$AS" # Let the user override the test.
8445else
8446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447for as_dir in $PATH
8448do
8449 IFS=$as_save_IFS
8450 test -z "$as_dir" && as_dir=.
5213506e 8451 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8453 ac_cv_prog_AS="${ncn_progname}"
5213506e 8454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8455 break 2
8456 fi
8457done
5213506e
RW
8458 done
8459IFS=$as_save_IFS
278a7a38
AO
8460
8461fi
8462fi
8463AS=$ac_cv_prog_AS
8464if test -n "$AS"; then
5213506e
RW
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8466$as_echo "$AS" >&6; }
278a7a38 8467else
5213506e
RW
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469$as_echo "no" >&6; }
278a7a38
AO
8470fi
8471
5213506e 8472
278a7a38
AO
8473 done
8474fi
8475
8476for ncn_progname in as; do
2693c0b0
PB
8477 if test -n "$ncn_tool_prefix"; then
8478 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8479set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8482if ${ac_cv_prog_AS+:} false; then :
5213506e 8483 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8484else
8485 if test -n "$AS"; then
8486 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8487else
1c710c3c
DJ
8488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489for as_dir in $PATH
8490do
8491 IFS=$as_save_IFS
8492 test -z "$as_dir" && as_dir=.
5213506e 8493 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8495 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8497 break 2
8498 fi
8499done
5213506e
RW
8500 done
8501IFS=$as_save_IFS
1c710c3c 8502
ca9f4b81
AO
8503fi
8504fi
1c710c3c 8505AS=$ac_cv_prog_AS
ca9f4b81 8506if test -n "$AS"; then
5213506e
RW
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8508$as_echo "$AS" >&6; }
ca9f4b81 8509else
5213506e
RW
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511$as_echo "no" >&6; }
ca9f4b81
AO
8512fi
8513
5213506e 8514
2693c0b0
PB
8515 fi
8516 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8518set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8520$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8521if ${ac_cv_prog_AS+:} false; then :
5213506e 8522 $as_echo_n "(cached) " >&6
ca9f4b81 8523else
2693c0b0
PB
8524 if test -n "$AS"; then
8525 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8526else
1c710c3c
DJ
8527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528for as_dir in $PATH
8529do
8530 IFS=$as_save_IFS
8531 test -z "$as_dir" && as_dir=.
5213506e 8532 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8534 ac_cv_prog_AS="${ncn_progname}"
5213506e 8535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8536 break 2
8537 fi
8538done
5213506e
RW
8539 done
8540IFS=$as_save_IFS
1c710c3c 8541
ca9f4b81
AO
8542fi
8543fi
1c710c3c 8544AS=$ac_cv_prog_AS
2693c0b0 8545if test -n "$AS"; then
5213506e
RW
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8547$as_echo "$AS" >&6; }
ca9f4b81 8548else
5213506e
RW
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550$as_echo "no" >&6; }
ca9f4b81 8551fi
1c710c3c 8552
5213506e 8553
2693c0b0
PB
8554 fi
8555 test -n "$ac_cv_prog_AS" && break
8556done
8557
8558if test -z "$ac_cv_prog_AS" ; then
8559 set dummy as
8560 if test $build = $host ; then
8561 AS="$2"
ca9f4b81 8562 else
2693c0b0 8563 AS="${ncn_tool_prefix}$2"
ca9f4b81 8564 fi
ca9f4b81
AO
8565fi
8566
278a7a38
AO
8567
8568
8569if test -n "$DLLTOOL"; then
8570 ac_cv_prog_DLLTOOL=$DLLTOOL
8571elif test -n "$ac_cv_prog_DLLTOOL"; then
8572 DLLTOOL=$ac_cv_prog_DLLTOOL
8573fi
8574
8575if test -n "$ac_cv_prog_DLLTOOL"; then
8576 for ncn_progname in dlltool; do
8577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8578set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8580$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8581if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 8582 $as_echo_n "(cached) " >&6
278a7a38
AO
8583else
8584 if test -n "$DLLTOOL"; then
8585 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8586else
8587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588for as_dir in $PATH
8589do
8590 IFS=$as_save_IFS
8591 test -z "$as_dir" && as_dir=.
5213506e 8592 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8594 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8596 break 2
8597 fi
8598done
5213506e
RW
8599 done
8600IFS=$as_save_IFS
278a7a38
AO
8601
8602fi
8603fi
8604DLLTOOL=$ac_cv_prog_DLLTOOL
8605if test -n "$DLLTOOL"; then
5213506e
RW
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8607$as_echo "$DLLTOOL" >&6; }
278a7a38 8608else
5213506e
RW
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610$as_echo "no" >&6; }
278a7a38
AO
8611fi
8612
5213506e 8613
278a7a38
AO
8614 done
8615fi
8616
8617for ncn_progname in dlltool; do
2693c0b0
PB
8618 if test -n "$ncn_tool_prefix"; then
8619 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8620set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8622$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8623if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 8624 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8625else
8626 if test -n "$DLLTOOL"; then
8627 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8628else
1c710c3c
DJ
8629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630for as_dir in $PATH
8631do
8632 IFS=$as_save_IFS
8633 test -z "$as_dir" && as_dir=.
5213506e 8634 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8636 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8638 break 2
8639 fi
8640done
5213506e
RW
8641 done
8642IFS=$as_save_IFS
1c710c3c 8643
ca9f4b81
AO
8644fi
8645fi
1c710c3c 8646DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8647if test -n "$DLLTOOL"; then
5213506e
RW
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8649$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8650else
5213506e
RW
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652$as_echo "no" >&6; }
ca9f4b81
AO
8653fi
8654
5213506e 8655
2693c0b0
PB
8656 fi
8657 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8658 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8659set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8661$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8662if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 8663 $as_echo_n "(cached) " >&6
ca9f4b81 8664else
2693c0b0
PB
8665 if test -n "$DLLTOOL"; then
8666 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8667else
1c710c3c
DJ
8668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8669for as_dir in $PATH
8670do
8671 IFS=$as_save_IFS
8672 test -z "$as_dir" && as_dir=.
5213506e 8673 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8675 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8677 break 2
8678 fi
8679done
5213506e
RW
8680 done
8681IFS=$as_save_IFS
1c710c3c 8682
ca9f4b81
AO
8683fi
8684fi
1c710c3c 8685DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8686if test -n "$DLLTOOL"; then
5213506e
RW
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8688$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8689else
5213506e
RW
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691$as_echo "no" >&6; }
ca9f4b81 8692fi
1c710c3c 8693
5213506e 8694
2693c0b0
PB
8695 fi
8696 test -n "$ac_cv_prog_DLLTOOL" && break
8697done
8698
8699if test -z "$ac_cv_prog_DLLTOOL" ; then
8700 set dummy dlltool
8701 if test $build = $host ; then
8702 DLLTOOL="$2"
ca9f4b81 8703 else
2693c0b0 8704 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8705 fi
ca9f4b81
AO
8706fi
8707
278a7a38
AO
8708
8709
8710if test -n "$LD"; then
8711 ac_cv_prog_LD=$LD
8712elif test -n "$ac_cv_prog_LD"; then
8713 LD=$ac_cv_prog_LD
8714fi
8715
8716if test -n "$ac_cv_prog_LD"; then
8717 for ncn_progname in ld; do
8718 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8719set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8721$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8722if ${ac_cv_prog_LD+:} false; then :
5213506e 8723 $as_echo_n "(cached) " >&6
278a7a38
AO
8724else
8725 if test -n "$LD"; then
8726 ac_cv_prog_LD="$LD" # Let the user override the test.
8727else
8728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8729for as_dir in $PATH
8730do
8731 IFS=$as_save_IFS
8732 test -z "$as_dir" && as_dir=.
5213506e 8733 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8735 ac_cv_prog_LD="${ncn_progname}"
5213506e 8736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8737 break 2
8738 fi
8739done
5213506e
RW
8740 done
8741IFS=$as_save_IFS
278a7a38
AO
8742
8743fi
8744fi
8745LD=$ac_cv_prog_LD
8746if test -n "$LD"; then
5213506e
RW
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8748$as_echo "$LD" >&6; }
278a7a38 8749else
5213506e
RW
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8751$as_echo "no" >&6; }
278a7a38
AO
8752fi
8753
5213506e 8754
278a7a38
AO
8755 done
8756fi
8757
8758for ncn_progname in ld; do
2693c0b0
PB
8759 if test -n "$ncn_tool_prefix"; then
8760 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8761set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8763$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8764if ${ac_cv_prog_LD+:} false; then :
5213506e 8765 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8766else
8767 if test -n "$LD"; then
8768 ac_cv_prog_LD="$LD" # Let the user override the test.
8769else
1c710c3c
DJ
8770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8771for as_dir in $PATH
8772do
8773 IFS=$as_save_IFS
8774 test -z "$as_dir" && as_dir=.
5213506e 8775 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8777 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8779 break 2
8780 fi
8781done
5213506e
RW
8782 done
8783IFS=$as_save_IFS
1c710c3c 8784
ca9f4b81
AO
8785fi
8786fi
1c710c3c 8787LD=$ac_cv_prog_LD
ca9f4b81 8788if test -n "$LD"; then
5213506e
RW
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8790$as_echo "$LD" >&6; }
ca9f4b81 8791else
5213506e
RW
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8793$as_echo "no" >&6; }
ca9f4b81
AO
8794fi
8795
5213506e 8796
2693c0b0
PB
8797 fi
8798 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8800set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8802$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8803if ${ac_cv_prog_LD+:} false; then :
5213506e 8804 $as_echo_n "(cached) " >&6
ca9f4b81 8805else
2693c0b0
PB
8806 if test -n "$LD"; then
8807 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8808else
1c710c3c
DJ
8809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8810for as_dir in $PATH
8811do
8812 IFS=$as_save_IFS
8813 test -z "$as_dir" && as_dir=.
5213506e 8814 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8816 ac_cv_prog_LD="${ncn_progname}"
5213506e 8817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8818 break 2
8819 fi
8820done
5213506e
RW
8821 done
8822IFS=$as_save_IFS
1c710c3c 8823
ca9f4b81
AO
8824fi
8825fi
1c710c3c 8826LD=$ac_cv_prog_LD
2693c0b0 8827if test -n "$LD"; then
5213506e
RW
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8829$as_echo "$LD" >&6; }
ca9f4b81 8830else
5213506e
RW
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8832$as_echo "no" >&6; }
ca9f4b81 8833fi
1c710c3c 8834
5213506e 8835
2693c0b0
PB
8836 fi
8837 test -n "$ac_cv_prog_LD" && break
8838done
8839
8840if test -z "$ac_cv_prog_LD" ; then
8841 set dummy ld
8842 if test $build = $host ; then
8843 LD="$2"
ca9f4b81 8844 else
2693c0b0 8845 LD="${ncn_tool_prefix}$2"
ca9f4b81 8846 fi
ca9f4b81
AO
8847fi
8848
278a7a38
AO
8849
8850
8851if test -n "$LIPO"; then
8852 ac_cv_prog_LIPO=$LIPO
8853elif test -n "$ac_cv_prog_LIPO"; then
8854 LIPO=$ac_cv_prog_LIPO
8855fi
8856
8857if test -n "$ac_cv_prog_LIPO"; then
8858 for ncn_progname in lipo; do
8859 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8860set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8863if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8864 $as_echo_n "(cached) " >&6
278a7a38
AO
8865else
8866 if test -n "$LIPO"; then
8867 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8868else
8869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870for as_dir in $PATH
8871do
8872 IFS=$as_save_IFS
8873 test -z "$as_dir" && as_dir=.
5213506e 8874 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8876 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8878 break 2
8879 fi
8880done
5213506e
RW
8881 done
8882IFS=$as_save_IFS
278a7a38
AO
8883
8884fi
8885fi
8886LIPO=$ac_cv_prog_LIPO
8887if test -n "$LIPO"; then
5213506e
RW
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8889$as_echo "$LIPO" >&6; }
278a7a38 8890else
5213506e
RW
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892$as_echo "no" >&6; }
278a7a38
AO
8893fi
8894
5213506e 8895
278a7a38
AO
8896 done
8897fi
8898
8899for ncn_progname in lipo; do
2abefe3d
PB
8900 if test -n "$ncn_tool_prefix"; then
8901 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8902set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8904$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8905if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8906 $as_echo_n "(cached) " >&6
2abefe3d
PB
8907else
8908 if test -n "$LIPO"; then
8909 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8910else
1c710c3c
DJ
8911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8912for as_dir in $PATH
8913do
8914 IFS=$as_save_IFS
8915 test -z "$as_dir" && as_dir=.
5213506e 8916 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8918 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8920 break 2
8921 fi
8922done
5213506e
RW
8923 done
8924IFS=$as_save_IFS
1c710c3c 8925
2abefe3d
PB
8926fi
8927fi
1c710c3c 8928LIPO=$ac_cv_prog_LIPO
2abefe3d 8929if test -n "$LIPO"; then
5213506e
RW
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8931$as_echo "$LIPO" >&6; }
2abefe3d 8932else
5213506e
RW
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8934$as_echo "no" >&6; }
2abefe3d
PB
8935fi
8936
5213506e 8937
2abefe3d
PB
8938 fi
8939 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8941set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8943$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8944if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8945 $as_echo_n "(cached) " >&6
2abefe3d
PB
8946else
8947 if test -n "$LIPO"; then
8948 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8949else
1c710c3c
DJ
8950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8951for as_dir in $PATH
8952do
8953 IFS=$as_save_IFS
8954 test -z "$as_dir" && as_dir=.
5213506e 8955 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8957 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8959 break 2
8960 fi
8961done
5213506e
RW
8962 done
8963IFS=$as_save_IFS
1c710c3c 8964
2abefe3d
PB
8965fi
8966fi
1c710c3c 8967LIPO=$ac_cv_prog_LIPO
2abefe3d 8968if test -n "$LIPO"; then
5213506e
RW
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8970$as_echo "$LIPO" >&6; }
2abefe3d 8971else
5213506e
RW
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973$as_echo "no" >&6; }
2abefe3d 8974fi
1c710c3c 8975
5213506e 8976
2abefe3d
PB
8977 fi
8978 test -n "$ac_cv_prog_LIPO" && break
8979done
8980
8981if test -z "$ac_cv_prog_LIPO" ; then
8982 set dummy lipo
8983 if test $build = $host ; then
8984 LIPO="$2"
8985 else
8986 LIPO="${ncn_tool_prefix}$2"
8987 fi
8988fi
8989
278a7a38
AO
8990
8991
8992if test -n "$NM"; then
8993 ac_cv_prog_NM=$NM
8994elif test -n "$ac_cv_prog_NM"; then
8995 NM=$ac_cv_prog_NM
8996fi
8997
8998if test -n "$ac_cv_prog_NM"; then
8999 for ncn_progname in nm; do
9000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9001set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9003$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9004if ${ac_cv_prog_NM+:} false; then :
5213506e 9005 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9006else
9007 if test -n "$NM"; then
9008 ac_cv_prog_NM="$NM" # Let the user override the test.
9009else
1c710c3c
DJ
9010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011for as_dir in $PATH
9012do
9013 IFS=$as_save_IFS
9014 test -z "$as_dir" && as_dir=.
5213506e 9015 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9017 ac_cv_prog_NM="${ncn_progname}"
5213506e 9018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9019 break 2
9020 fi
9021done
5213506e
RW
9022 done
9023IFS=$as_save_IFS
1c710c3c 9024
ca9f4b81
AO
9025fi
9026fi
1c710c3c 9027NM=$ac_cv_prog_NM
ca9f4b81 9028if test -n "$NM"; then
5213506e
RW
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9030$as_echo "$NM" >&6; }
ca9f4b81 9031else
5213506e
RW
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9033$as_echo "no" >&6; }
ca9f4b81
AO
9034fi
9035
5213506e 9036
278a7a38
AO
9037 done
9038fi
9039
9040for ncn_progname in nm; do
9041 if test -n "$ncn_tool_prefix"; then
9042 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9043set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9046if ${ac_cv_prog_NM+:} false; then :
5213506e 9047 $as_echo_n "(cached) " >&6
ca9f4b81 9048else
2693c0b0
PB
9049 if test -n "$NM"; then
9050 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 9051else
1c710c3c
DJ
9052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053for as_dir in $PATH
9054do
9055 IFS=$as_save_IFS
9056 test -z "$as_dir" && as_dir=.
5213506e 9057 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9059 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 9060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9061 break 2
9062 fi
9063done
5213506e
RW
9064 done
9065IFS=$as_save_IFS
1c710c3c 9066
ca9f4b81
AO
9067fi
9068fi
1c710c3c 9069NM=$ac_cv_prog_NM
2693c0b0 9070if test -n "$NM"; then
5213506e
RW
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9072$as_echo "$NM" >&6; }
ca9f4b81 9073else
5213506e
RW
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9075$as_echo "no" >&6; }
ca9f4b81 9076fi
1c710c3c 9077
5213506e 9078
2693c0b0 9079 fi
278a7a38
AO
9080 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9082set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9084$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9085if ${ac_cv_prog_NM+:} false; then :
5213506e 9086 $as_echo_n "(cached) " >&6
278a7a38
AO
9087else
9088 if test -n "$NM"; then
9089 ac_cv_prog_NM="$NM" # Let the user override the test.
9090else
9091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092for as_dir in $PATH
9093do
9094 IFS=$as_save_IFS
9095 test -z "$as_dir" && as_dir=.
5213506e 9096 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9098 ac_cv_prog_NM="${ncn_progname}"
5213506e 9099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9100 break 2
9101 fi
9102done
5213506e
RW
9103 done
9104IFS=$as_save_IFS
278a7a38
AO
9105
9106fi
9107fi
9108NM=$ac_cv_prog_NM
9109if test -n "$NM"; then
5213506e
RW
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9111$as_echo "$NM" >&6; }
278a7a38 9112else
5213506e
RW
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114$as_echo "no" >&6; }
278a7a38
AO
9115fi
9116
5213506e 9117
278a7a38
AO
9118 fi
9119 test -n "$ac_cv_prog_NM" && break
9120done
9121
9122if test -z "$ac_cv_prog_NM" ; then
9123 set dummy nm
9124 if test $build = $host ; then
9125 NM="$2"
9126 else
9127 NM="${ncn_tool_prefix}$2"
9128 fi
9129fi
9130
9131
9132
9133if test -n "$RANLIB"; then
9134 ac_cv_prog_RANLIB=$RANLIB
9135elif test -n "$ac_cv_prog_RANLIB"; then
9136 RANLIB=$ac_cv_prog_RANLIB
9137fi
9138
9139if test -n "$ac_cv_prog_RANLIB"; then
9140 for ncn_progname in ranlib; do
9141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9142set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9144$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9145if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9146 $as_echo_n "(cached) " >&6
278a7a38
AO
9147else
9148 if test -n "$RANLIB"; then
9149 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9150else
9151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152for as_dir in $PATH
9153do
9154 IFS=$as_save_IFS
9155 test -z "$as_dir" && as_dir=.
5213506e 9156 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9158 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9160 break 2
9161 fi
9162done
5213506e
RW
9163 done
9164IFS=$as_save_IFS
278a7a38
AO
9165
9166fi
9167fi
9168RANLIB=$ac_cv_prog_RANLIB
9169if test -n "$RANLIB"; then
5213506e
RW
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9171$as_echo "$RANLIB" >&6; }
278a7a38 9172else
5213506e
RW
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9174$as_echo "no" >&6; }
278a7a38
AO
9175fi
9176
5213506e 9177
278a7a38
AO
9178 done
9179fi
ca9f4b81 9180
278a7a38 9181for ncn_progname in ranlib; do
2693c0b0
PB
9182 if test -n "$ncn_tool_prefix"; then
9183 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9184set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9186$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9187if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9188 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9189else
9190 if test -n "$RANLIB"; then
9191 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9192else
1c710c3c
DJ
9193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9194for as_dir in $PATH
9195do
9196 IFS=$as_save_IFS
9197 test -z "$as_dir" && as_dir=.
5213506e 9198 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9200 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 9201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9202 break 2
9203 fi
9204done
5213506e
RW
9205 done
9206IFS=$as_save_IFS
1c710c3c 9207
ca9f4b81
AO
9208fi
9209fi
1c710c3c 9210RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 9211if test -n "$RANLIB"; then
5213506e
RW
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9213$as_echo "$RANLIB" >&6; }
ca9f4b81 9214else
5213506e
RW
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9216$as_echo "no" >&6; }
ca9f4b81
AO
9217fi
9218
5213506e 9219
2693c0b0
PB
9220 fi
9221 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9223set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9226if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9227 $as_echo_n "(cached) " >&6
ca9f4b81 9228else
2693c0b0
PB
9229 if test -n "$RANLIB"; then
9230 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 9231else
1c710c3c
DJ
9232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9233for as_dir in $PATH
9234do
9235 IFS=$as_save_IFS
9236 test -z "$as_dir" && as_dir=.
5213506e 9237 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9239 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9241 break 2
9242 fi
9243done
5213506e
RW
9244 done
9245IFS=$as_save_IFS
1c710c3c 9246
ca9f4b81
AO
9247fi
9248fi
1c710c3c 9249RANLIB=$ac_cv_prog_RANLIB
2693c0b0 9250if test -n "$RANLIB"; then
5213506e
RW
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9252$as_echo "$RANLIB" >&6; }
ca9f4b81 9253else
5213506e
RW
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9255$as_echo "no" >&6; }
ca9f4b81 9256fi
1c710c3c 9257
5213506e 9258
ca9f4b81 9259 fi
2693c0b0
PB
9260 test -n "$ac_cv_prog_RANLIB" && break
9261done
9262
9263if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9264 RANLIB="true"
ca9f4b81
AO
9265fi
9266
278a7a38
AO
9267
9268
9269if test -n "$STRIP"; then
9270 ac_cv_prog_STRIP=$STRIP
9271elif test -n "$ac_cv_prog_STRIP"; then
9272 STRIP=$ac_cv_prog_STRIP
9273fi
9274
9275if test -n "$ac_cv_prog_STRIP"; then
9276 for ncn_progname in strip; do
9277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9278set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9280$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9281if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9282 $as_echo_n "(cached) " >&6
278a7a38
AO
9283else
9284 if test -n "$STRIP"; then
9285 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9286else
9287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9288for as_dir in $PATH
9289do
9290 IFS=$as_save_IFS
9291 test -z "$as_dir" && as_dir=.
5213506e 9292 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9294 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9296 break 2
9297 fi
9298done
5213506e
RW
9299 done
9300IFS=$as_save_IFS
278a7a38
AO
9301
9302fi
9303fi
9304STRIP=$ac_cv_prog_STRIP
9305if test -n "$STRIP"; then
5213506e
RW
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9307$as_echo "$STRIP" >&6; }
278a7a38 9308else
5213506e
RW
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9310$as_echo "no" >&6; }
278a7a38
AO
9311fi
9312
5213506e 9313
278a7a38
AO
9314 done
9315fi
9316
9317for ncn_progname in strip; do
2abefe3d
PB
9318 if test -n "$ncn_tool_prefix"; then
9319 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9320set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9322$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9323if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9324 $as_echo_n "(cached) " >&6
2abefe3d
PB
9325else
9326 if test -n "$STRIP"; then
9327 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9328else
1c710c3c
DJ
9329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9330for as_dir in $PATH
9331do
9332 IFS=$as_save_IFS
9333 test -z "$as_dir" && as_dir=.
5213506e 9334 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9336 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9338 break 2
9339 fi
9340done
5213506e
RW
9341 done
9342IFS=$as_save_IFS
1c710c3c 9343
2abefe3d
PB
9344fi
9345fi
1c710c3c 9346STRIP=$ac_cv_prog_STRIP
2abefe3d 9347if test -n "$STRIP"; then
5213506e
RW
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9349$as_echo "$STRIP" >&6; }
2abefe3d 9350else
5213506e
RW
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9352$as_echo "no" >&6; }
2abefe3d
PB
9353fi
9354
5213506e 9355
2abefe3d
PB
9356 fi
9357 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9358 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9359set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9361$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9362if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9363 $as_echo_n "(cached) " >&6
2abefe3d
PB
9364else
9365 if test -n "$STRIP"; then
9366 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9367else
1c710c3c
DJ
9368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9369for as_dir in $PATH
9370do
9371 IFS=$as_save_IFS
9372 test -z "$as_dir" && as_dir=.
5213506e 9373 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9375 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9377 break 2
9378 fi
9379done
5213506e
RW
9380 done
9381IFS=$as_save_IFS
1c710c3c 9382
2abefe3d
PB
9383fi
9384fi
1c710c3c 9385STRIP=$ac_cv_prog_STRIP
2abefe3d 9386if test -n "$STRIP"; then
5213506e
RW
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9388$as_echo "$STRIP" >&6; }
2abefe3d 9389else
5213506e
RW
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391$as_echo "no" >&6; }
2abefe3d 9392fi
1c710c3c 9393
5213506e 9394
2abefe3d
PB
9395 fi
9396 test -n "$ac_cv_prog_STRIP" && break
9397done
9398
9399if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9400 STRIP="true"
2abefe3d
PB
9401fi
9402
278a7a38
AO
9403
9404
9405if test -n "$WINDRES"; then
9406 ac_cv_prog_WINDRES=$WINDRES
9407elif test -n "$ac_cv_prog_WINDRES"; then
9408 WINDRES=$ac_cv_prog_WINDRES
9409fi
9410
9411if test -n "$ac_cv_prog_WINDRES"; then
9412 for ncn_progname in windres; do
9413 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9414set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9416$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9417if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 9418 $as_echo_n "(cached) " >&6
278a7a38
AO
9419else
9420 if test -n "$WINDRES"; then
9421 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9422else
9423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424for as_dir in $PATH
9425do
9426 IFS=$as_save_IFS
9427 test -z "$as_dir" && as_dir=.
5213506e 9428 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9430 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9432 break 2
9433 fi
9434done
5213506e
RW
9435 done
9436IFS=$as_save_IFS
278a7a38
AO
9437
9438fi
9439fi
9440WINDRES=$ac_cv_prog_WINDRES
9441if test -n "$WINDRES"; then
5213506e
RW
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9443$as_echo "$WINDRES" >&6; }
278a7a38 9444else
5213506e
RW
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9446$as_echo "no" >&6; }
278a7a38
AO
9447fi
9448
5213506e 9449
278a7a38
AO
9450 done
9451fi
9452
9453for ncn_progname in windres; do
2693c0b0
PB
9454 if test -n "$ncn_tool_prefix"; then
9455 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9456set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9458$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9459if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 9460 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9461else
9462 if test -n "$WINDRES"; then
9463 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9464else
1c710c3c
DJ
9465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9466for as_dir in $PATH
9467do
9468 IFS=$as_save_IFS
9469 test -z "$as_dir" && as_dir=.
5213506e 9470 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9472 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9474 break 2
9475 fi
9476done
5213506e
RW
9477 done
9478IFS=$as_save_IFS
1c710c3c 9479
ca9f4b81
AO
9480fi
9481fi
1c710c3c 9482WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9483if test -n "$WINDRES"; then
5213506e
RW
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9485$as_echo "$WINDRES" >&6; }
ca9f4b81 9486else
5213506e
RW
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9488$as_echo "no" >&6; }
ca9f4b81
AO
9489fi
9490
5213506e 9491
2693c0b0
PB
9492 fi
9493 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9495set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9497$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9498if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 9499 $as_echo_n "(cached) " >&6
ca9f4b81 9500else
2693c0b0
PB
9501 if test -n "$WINDRES"; then
9502 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9503else
1c710c3c
DJ
9504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9505for as_dir in $PATH
9506do
9507 IFS=$as_save_IFS
9508 test -z "$as_dir" && as_dir=.
5213506e 9509 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9511 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9513 break 2
9514 fi
9515done
5213506e
RW
9516 done
9517IFS=$as_save_IFS
1c710c3c 9518
ca9f4b81
AO
9519fi
9520fi
1c710c3c 9521WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9522if test -n "$WINDRES"; then
5213506e
RW
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9524$as_echo "$WINDRES" >&6; }
ca9f4b81 9525else
5213506e
RW
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9527$as_echo "no" >&6; }
ca9f4b81 9528fi
1c710c3c 9529
5213506e 9530
2693c0b0
PB
9531 fi
9532 test -n "$ac_cv_prog_WINDRES" && break
9533done
9534
9535if test -z "$ac_cv_prog_WINDRES" ; then
9536 set dummy windres
9537 if test $build = $host ; then
9538 WINDRES="$2"
ca9f4b81 9539 else
2693c0b0 9540 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9541 fi
ca9f4b81
AO
9542fi
9543
278a7a38
AO
9544
9545
901119ae
KT
9546if test -n "$WINDMC"; then
9547 ac_cv_prog_WINDMC=$WINDMC
9548elif test -n "$ac_cv_prog_WINDMC"; then
9549 WINDMC=$ac_cv_prog_WINDMC
9550fi
9551
9552if test -n "$ac_cv_prog_WINDMC"; then
9553 for ncn_progname in windmc; do
9554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9555set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9557$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9558if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 9559 $as_echo_n "(cached) " >&6
901119ae
KT
9560else
9561 if test -n "$WINDMC"; then
9562 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9563else
9564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565for as_dir in $PATH
9566do
9567 IFS=$as_save_IFS
9568 test -z "$as_dir" && as_dir=.
5213506e 9569 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 9571 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9573 break 2
9574 fi
9575done
5213506e
RW
9576 done
9577IFS=$as_save_IFS
901119ae
KT
9578
9579fi
9580fi
9581WINDMC=$ac_cv_prog_WINDMC
9582if test -n "$WINDMC"; then
5213506e
RW
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9584$as_echo "$WINDMC" >&6; }
901119ae 9585else
5213506e
RW
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9587$as_echo "no" >&6; }
901119ae
KT
9588fi
9589
5213506e 9590
901119ae
KT
9591 done
9592fi
9593
9594for ncn_progname in windmc; do
9595 if test -n "$ncn_tool_prefix"; then
9596 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9597set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9599$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9600if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 9601 $as_echo_n "(cached) " >&6
901119ae
KT
9602else
9603 if test -n "$WINDMC"; then
9604 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9605else
9606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9607for as_dir in $PATH
9608do
9609 IFS=$as_save_IFS
9610 test -z "$as_dir" && as_dir=.
5213506e 9611 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 9613 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9615 break 2
9616 fi
9617done
5213506e
RW
9618 done
9619IFS=$as_save_IFS
901119ae
KT
9620
9621fi
9622fi
9623WINDMC=$ac_cv_prog_WINDMC
9624if test -n "$WINDMC"; then
5213506e
RW
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9626$as_echo "$WINDMC" >&6; }
901119ae 9627else
5213506e
RW
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9629$as_echo "no" >&6; }
901119ae
KT
9630fi
9631
5213506e 9632
901119ae
KT
9633 fi
9634 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9636set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9638$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9639if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 9640 $as_echo_n "(cached) " >&6
901119ae
KT
9641else
9642 if test -n "$WINDMC"; then
9643 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9644else
9645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9646for as_dir in $PATH
9647do
9648 IFS=$as_save_IFS
9649 test -z "$as_dir" && as_dir=.
5213506e 9650 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 9652 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9654 break 2
9655 fi
9656done
5213506e
RW
9657 done
9658IFS=$as_save_IFS
901119ae
KT
9659
9660fi
9661fi
9662WINDMC=$ac_cv_prog_WINDMC
9663if test -n "$WINDMC"; then
5213506e
RW
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9665$as_echo "$WINDMC" >&6; }
901119ae 9666else
5213506e
RW
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9668$as_echo "no" >&6; }
901119ae
KT
9669fi
9670
5213506e 9671
901119ae
KT
9672 fi
9673 test -n "$ac_cv_prog_WINDMC" && break
9674done
9675
9676if test -z "$ac_cv_prog_WINDMC" ; then
9677 set dummy windmc
9678 if test $build = $host ; then
9679 WINDMC="$2"
9680 else
9681 WINDMC="${ncn_tool_prefix}$2"
9682 fi
9683fi
9684
9685
9686
278a7a38
AO
9687if test -n "$OBJCOPY"; then
9688 ac_cv_prog_OBJCOPY=$OBJCOPY
9689elif test -n "$ac_cv_prog_OBJCOPY"; then
9690 OBJCOPY=$ac_cv_prog_OBJCOPY
9691fi
9692
9693if test -n "$ac_cv_prog_OBJCOPY"; then
9694 for ncn_progname in objcopy; do
9695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9696set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9698$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9699if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 9700 $as_echo_n "(cached) " >&6
278a7a38
AO
9701else
9702 if test -n "$OBJCOPY"; then
9703 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9704else
9705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706for as_dir in $PATH
9707do
9708 IFS=$as_save_IFS
9709 test -z "$as_dir" && as_dir=.
5213506e 9710 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9712 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9714 break 2
9715 fi
9716done
5213506e
RW
9717 done
9718IFS=$as_save_IFS
278a7a38
AO
9719
9720fi
9721fi
9722OBJCOPY=$ac_cv_prog_OBJCOPY
9723if test -n "$OBJCOPY"; then
5213506e
RW
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9725$as_echo "$OBJCOPY" >&6; }
278a7a38 9726else
5213506e
RW
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728$as_echo "no" >&6; }
278a7a38
AO
9729fi
9730
5213506e 9731
278a7a38
AO
9732 done
9733fi
9734
9735for ncn_progname in objcopy; do
2693c0b0
PB
9736 if test -n "$ncn_tool_prefix"; then
9737 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9738set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9740$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9741if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 9742 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9743else
9744 if test -n "$OBJCOPY"; then
9745 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9746else
1c710c3c
DJ
9747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9748for as_dir in $PATH
9749do
9750 IFS=$as_save_IFS
9751 test -z "$as_dir" && as_dir=.
5213506e 9752 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9754 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9756 break 2
9757 fi
9758done
5213506e
RW
9759 done
9760IFS=$as_save_IFS
1c710c3c 9761
ca9f4b81
AO
9762fi
9763fi
1c710c3c 9764OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9765if test -n "$OBJCOPY"; then
5213506e
RW
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9767$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9768else
5213506e
RW
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9770$as_echo "no" >&6; }
ca9f4b81
AO
9771fi
9772
5213506e 9773
2693c0b0
PB
9774 fi
9775 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9777set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9779$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9780if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 9781 $as_echo_n "(cached) " >&6
ca9f4b81 9782else
2693c0b0
PB
9783 if test -n "$OBJCOPY"; then
9784 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9785else
1c710c3c
DJ
9786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9787for as_dir in $PATH
9788do
9789 IFS=$as_save_IFS
9790 test -z "$as_dir" && as_dir=.
5213506e 9791 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9793 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9795 break 2
9796 fi
9797done
5213506e
RW
9798 done
9799IFS=$as_save_IFS
1c710c3c 9800
ca9f4b81
AO
9801fi
9802fi
1c710c3c 9803OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9804if test -n "$OBJCOPY"; then
5213506e
RW
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9806$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9807else
5213506e
RW
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9809$as_echo "no" >&6; }
ca9f4b81 9810fi
1c710c3c 9811
5213506e 9812
2693c0b0
PB
9813 fi
9814 test -n "$ac_cv_prog_OBJCOPY" && break
9815done
9816
9817if test -z "$ac_cv_prog_OBJCOPY" ; then
9818 set dummy objcopy
9819 if test $build = $host ; then
9820 OBJCOPY="$2"
ca9f4b81 9821 else
2693c0b0 9822 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9823 fi
ca9f4b81
AO
9824fi
9825
278a7a38
AO
9826
9827
9828if test -n "$OBJDUMP"; then
9829 ac_cv_prog_OBJDUMP=$OBJDUMP
9830elif test -n "$ac_cv_prog_OBJDUMP"; then
9831 OBJDUMP=$ac_cv_prog_OBJDUMP
9832fi
9833
9834if test -n "$ac_cv_prog_OBJDUMP"; then
9835 for ncn_progname in objdump; do
9836 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9837set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9839$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9840if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 9841 $as_echo_n "(cached) " >&6
278a7a38
AO
9842else
9843 if test -n "$OBJDUMP"; then
9844 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9845else
9846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9847for as_dir in $PATH
9848do
9849 IFS=$as_save_IFS
9850 test -z "$as_dir" && as_dir=.
5213506e 9851 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9853 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9855 break 2
9856 fi
9857done
5213506e
RW
9858 done
9859IFS=$as_save_IFS
278a7a38
AO
9860
9861fi
9862fi
9863OBJDUMP=$ac_cv_prog_OBJDUMP
9864if test -n "$OBJDUMP"; then
5213506e
RW
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9866$as_echo "$OBJDUMP" >&6; }
278a7a38 9867else
5213506e
RW
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9869$as_echo "no" >&6; }
278a7a38
AO
9870fi
9871
5213506e 9872
278a7a38
AO
9873 done
9874fi
9875
9876for ncn_progname in objdump; do
2693c0b0
PB
9877 if test -n "$ncn_tool_prefix"; then
9878 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9879set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9881$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9882if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 9883 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9884else
9885 if test -n "$OBJDUMP"; then
9886 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9887else
1c710c3c
DJ
9888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9889for as_dir in $PATH
9890do
9891 IFS=$as_save_IFS
9892 test -z "$as_dir" && as_dir=.
5213506e 9893 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9895 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9897 break 2
9898 fi
9899done
5213506e
RW
9900 done
9901IFS=$as_save_IFS
1c710c3c 9902
ca9f4b81
AO
9903fi
9904fi
1c710c3c 9905OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9906if test -n "$OBJDUMP"; then
5213506e
RW
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9908$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9909else
5213506e
RW
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9911$as_echo "no" >&6; }
ca9f4b81
AO
9912fi
9913
5213506e 9914
2693c0b0
PB
9915 fi
9916 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9918set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9920$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9921if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 9922 $as_echo_n "(cached) " >&6
ca9f4b81 9923else
2693c0b0
PB
9924 if test -n "$OBJDUMP"; then
9925 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9926else
1c710c3c
DJ
9927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9928for as_dir in $PATH
9929do
9930 IFS=$as_save_IFS
9931 test -z "$as_dir" && as_dir=.
5213506e 9932 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9934 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9936 break 2
9937 fi
9938done
5213506e
RW
9939 done
9940IFS=$as_save_IFS
1c710c3c 9941
ca9f4b81
AO
9942fi
9943fi
1c710c3c 9944OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9945if test -n "$OBJDUMP"; then
5213506e
RW
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9947$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9948else
5213506e
RW
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9950$as_echo "no" >&6; }
ca9f4b81 9951fi
1c710c3c 9952
5213506e 9953
2693c0b0
PB
9954 fi
9955 test -n "$ac_cv_prog_OBJDUMP" && break
9956done
9957
9958if test -z "$ac_cv_prog_OBJDUMP" ; then
9959 set dummy objdump
9960 if test $build = $host ; then
9961 OBJDUMP="$2"
ca9f4b81 9962 else
2693c0b0 9963 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9964 fi
ca9f4b81
AO
9965fi
9966
671aa708
NN
9967
9968
e4a9a572
IS
9969if test -n "$OTOOL"; then
9970 ac_cv_prog_OTOOL=$OTOOL
9971elif test -n "$ac_cv_prog_OTOOL"; then
9972 OTOOL=$ac_cv_prog_OTOOL
9973fi
9974
9975if test -n "$ac_cv_prog_OTOOL"; then
9976 for ncn_progname in otool; do
9977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9978set dummy ${ncn_progname}; ac_word=$2
9979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9980$as_echo_n "checking for $ac_word... " >&6; }
9981if ${ac_cv_prog_OTOOL+:} false; then :
9982 $as_echo_n "(cached) " >&6
9983else
9984 if test -n "$OTOOL"; then
9985 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9986else
9987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9988for as_dir in $PATH
9989do
9990 IFS=$as_save_IFS
9991 test -z "$as_dir" && as_dir=.
9992 for ac_exec_ext in '' $ac_executable_extensions; do
9993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9994 ac_cv_prog_OTOOL="${ncn_progname}"
9995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9996 break 2
9997 fi
9998done
9999 done
10000IFS=$as_save_IFS
10001
10002fi
10003fi
10004OTOOL=$ac_cv_prog_OTOOL
10005if test -n "$OTOOL"; then
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10007$as_echo "$OTOOL" >&6; }
10008else
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10010$as_echo "no" >&6; }
10011fi
10012
10013
10014 done
10015fi
10016
10017for ncn_progname in otool; do
10018 if test -n "$ncn_tool_prefix"; then
10019 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10020set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10022$as_echo_n "checking for $ac_word... " >&6; }
10023if ${ac_cv_prog_OTOOL+:} false; then :
10024 $as_echo_n "(cached) " >&6
10025else
10026 if test -n "$OTOOL"; then
10027 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10028else
10029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10030for as_dir in $PATH
10031do
10032 IFS=$as_save_IFS
10033 test -z "$as_dir" && as_dir=.
10034 for ac_exec_ext in '' $ac_executable_extensions; do
10035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10036 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
10037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10038 break 2
10039 fi
10040done
10041 done
10042IFS=$as_save_IFS
10043
10044fi
10045fi
10046OTOOL=$ac_cv_prog_OTOOL
10047if test -n "$OTOOL"; then
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10049$as_echo "$OTOOL" >&6; }
10050else
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10052$as_echo "no" >&6; }
10053fi
10054
10055
10056 fi
10057 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
10058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10059set dummy ${ncn_progname}; ac_word=$2
10060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10061$as_echo_n "checking for $ac_word... " >&6; }
10062if ${ac_cv_prog_OTOOL+:} false; then :
10063 $as_echo_n "(cached) " >&6
10064else
10065 if test -n "$OTOOL"; then
10066 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10067else
10068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10069for as_dir in $PATH
10070do
10071 IFS=$as_save_IFS
10072 test -z "$as_dir" && as_dir=.
10073 for ac_exec_ext in '' $ac_executable_extensions; do
10074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10075 ac_cv_prog_OTOOL="${ncn_progname}"
10076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10077 break 2
10078 fi
10079done
10080 done
10081IFS=$as_save_IFS
10082
10083fi
10084fi
10085OTOOL=$ac_cv_prog_OTOOL
10086if test -n "$OTOOL"; then
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10088$as_echo "$OTOOL" >&6; }
10089else
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10091$as_echo "no" >&6; }
10092fi
10093
10094
10095 fi
10096 test -n "$ac_cv_prog_OTOOL" && break
10097done
10098
10099if test -z "$ac_cv_prog_OTOOL" ; then
10100 set dummy otool
10101 if test $build = $host ; then
10102 OTOOL="$2"
10103 else
10104 OTOOL="${ncn_tool_prefix}$2"
10105 fi
10106fi
10107
10108
10109
e7a82751
RM
10110if test -n "$READELF"; then
10111 ac_cv_prog_READELF=$READELF
10112elif test -n "$ac_cv_prog_READELF"; then
10113 READELF=$ac_cv_prog_READELF
10114fi
10115
10116if test -n "$ac_cv_prog_READELF"; then
10117 for ncn_progname in readelf; do
10118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10119set dummy ${ncn_progname}; ac_word=$2
10120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10121$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10122if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
10123 $as_echo_n "(cached) " >&6
10124else
10125 if test -n "$READELF"; then
10126 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10127else
10128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10129for as_dir in $PATH
10130do
10131 IFS=$as_save_IFS
10132 test -z "$as_dir" && as_dir=.
10133 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
10135 ac_cv_prog_READELF="${ncn_progname}"
10136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10137 break 2
10138 fi
10139done
10140 done
10141IFS=$as_save_IFS
10142
10143fi
10144fi
10145READELF=$ac_cv_prog_READELF
10146if test -n "$READELF"; then
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10148$as_echo "$READELF" >&6; }
10149else
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151$as_echo "no" >&6; }
10152fi
10153
10154
10155 done
10156fi
10157
10158for ncn_progname in readelf; do
10159 if test -n "$ncn_tool_prefix"; then
10160 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10161set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10163$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10164if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
10165 $as_echo_n "(cached) " >&6
10166else
10167 if test -n "$READELF"; then
10168 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10169else
10170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10171for as_dir in $PATH
10172do
10173 IFS=$as_save_IFS
10174 test -z "$as_dir" && as_dir=.
10175 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
10177 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10179 break 2
10180 fi
10181done
10182 done
10183IFS=$as_save_IFS
10184
10185fi
10186fi
10187READELF=$ac_cv_prog_READELF
10188if test -n "$READELF"; then
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10190$as_echo "$READELF" >&6; }
10191else
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10193$as_echo "no" >&6; }
10194fi
10195
10196
10197 fi
10198 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10200set dummy ${ncn_progname}; ac_word=$2
10201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10202$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10203if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
10204 $as_echo_n "(cached) " >&6
10205else
10206 if test -n "$READELF"; then
10207 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10208else
10209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10210for as_dir in $PATH
10211do
10212 IFS=$as_save_IFS
10213 test -z "$as_dir" && as_dir=.
10214 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
10216 ac_cv_prog_READELF="${ncn_progname}"
10217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10218 break 2
10219 fi
10220done
10221 done
10222IFS=$as_save_IFS
10223
10224fi
10225fi
10226READELF=$ac_cv_prog_READELF
10227if test -n "$READELF"; then
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10229$as_echo "$READELF" >&6; }
10230else
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232$as_echo "no" >&6; }
10233fi
10234
10235
10236 fi
10237 test -n "$ac_cv_prog_READELF" && break
10238done
10239
10240if test -z "$ac_cv_prog_READELF" ; then
10241 set dummy readelf
10242 if test $build = $host ; then
10243 READELF="$2"
10244 else
10245 READELF="${ncn_tool_prefix}$2"
10246 fi
10247fi
10248
10249
10250
671aa708
NN
10251
10252
10253
2abefe3d 10254# Target tools.
1c710c3c 10255
5213506e
RW
10256# Check whether --with-build-time-tools was given.
10257if test "${with_build_time_tools+set}" = set; then :
10258 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
10259 x/*) ;;
10260 *)
10261 with_build_time_tools=
5213506e
RW
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10263$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
10264 ;;
10265 esac
ca9f4b81 10266else
e8b05380 10267 with_build_time_tools=
5213506e
RW
10268fi
10269
ca9f4b81 10270
278a7a38
AO
10271
10272
10273if test -n "$CC_FOR_TARGET"; then
10274 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10275elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10276 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10277fi
10278
10279if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10280 for ncn_progname in cc gcc; do
10281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10282set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10284$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10285if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10286 $as_echo_n "(cached) " >&6
278a7a38
AO
10287else
10288 if test -n "$CC_FOR_TARGET"; then
10289 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10290else
10291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292for as_dir in $PATH
10293do
10294 IFS=$as_save_IFS
10295 test -z "$as_dir" && as_dir=.
5213506e 10296 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10298 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10300 break 2
10301 fi
10302done
5213506e
RW
10303 done
10304IFS=$as_save_IFS
278a7a38
AO
10305
10306fi
10307fi
10308CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10309if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10311$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 10312else
5213506e
RW
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10314$as_echo "no" >&6; }
278a7a38
AO
10315fi
10316
5213506e 10317
278a7a38
AO
10318 done
10319fi
10320
10321if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10322 for ncn_progname in cc gcc; do
5213506e
RW
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10324$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10325 if test -x $with_build_time_tools/${ncn_progname}; then
10326 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10328$as_echo "yes" >&6; }
72a7ab82 10329 break
e8b05380 10330 else
5213506e
RW
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332$as_echo "no" >&6; }
72a7ab82
AP
10333 fi
10334 done
4de997d1
PB
10335fi
10336
e8b05380
PB
10337if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10338 for ncn_progname in cc gcc; do
10339 if test -n "$ncn_target_tool_prefix"; then
10340 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10341set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10344if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10345 $as_echo_n "(cached) " >&6
4de997d1
PB
10346else
10347 if test -n "$CC_FOR_TARGET"; then
10348 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10349else
1c710c3c
DJ
10350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351for as_dir in $PATH
10352do
10353 IFS=$as_save_IFS
10354 test -z "$as_dir" && as_dir=.
5213506e 10355 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10357 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10359 break 2
10360 fi
10361done
5213506e
RW
10362 done
10363IFS=$as_save_IFS
1c710c3c 10364
4de997d1
PB
10365fi
10366fi
1c710c3c 10367CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 10368if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10370$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10371else
5213506e
RW
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373$as_echo "no" >&6; }
4de997d1
PB
10374fi
10375
5213506e 10376
e8b05380
PB
10377 fi
10378 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10380set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10382$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10383if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10384 $as_echo_n "(cached) " >&6
4de997d1 10385else
2693c0b0
PB
10386 if test -n "$CC_FOR_TARGET"; then
10387 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 10388else
1c710c3c
DJ
10389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10390for as_dir in $PATH
10391do
10392 IFS=$as_save_IFS
10393 test -z "$as_dir" && as_dir=.
5213506e 10394 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10396 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10398 break 2
10399 fi
10400done
5213506e
RW
10401 done
10402IFS=$as_save_IFS
1c710c3c 10403
4de997d1
PB
10404fi
10405fi
1c710c3c 10406CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 10407if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10409$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10410else
5213506e
RW
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412$as_echo "no" >&6; }
4de997d1 10413fi
1c710c3c 10414
5213506e 10415
e8b05380
PB
10416 fi
10417 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10418 done
10419fi
1c710c3c 10420
2693c0b0
PB
10421if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10422 set dummy cc gcc
10423 if test $build = $target ; then
10424 CC_FOR_TARGET="$2"
4de997d1 10425 else
2693c0b0 10426 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10427 fi
1c00b503
PB
10428else
10429 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10430fi
10431
278a7a38
AO
10432
10433
10434if test -n "$CXX_FOR_TARGET"; then
10435 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10436elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10437 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10438fi
10439
10440if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10441 for ncn_progname in c++ g++ cxx gxx; do
10442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10443set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10445$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10446if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10447 $as_echo_n "(cached) " >&6
278a7a38
AO
10448else
10449 if test -n "$CXX_FOR_TARGET"; then
10450 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10451else
10452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10453for as_dir in $PATH
10454do
10455 IFS=$as_save_IFS
10456 test -z "$as_dir" && as_dir=.
5213506e 10457 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10459 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10461 break 2
10462 fi
10463done
5213506e
RW
10464 done
10465IFS=$as_save_IFS
278a7a38
AO
10466
10467fi
10468fi
10469CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10470if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10472$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10473else
5213506e
RW
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10475$as_echo "no" >&6; }
278a7a38
AO
10476fi
10477
5213506e 10478
278a7a38
AO
10479 done
10480fi
10481
10482if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10483 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10485$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10486 if test -x $with_build_time_tools/${ncn_progname}; then
10487 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10489$as_echo "yes" >&6; }
e8b05380
PB
10490 break
10491 else
5213506e
RW
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493$as_echo "no" >&6; }
e8b05380
PB
10494 fi
10495 done
10496fi
10497
10498if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10499 for ncn_progname in c++ g++ cxx gxx; do
10500 if test -n "$ncn_target_tool_prefix"; then
10501 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10502set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10504$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10505if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10506 $as_echo_n "(cached) " >&6
4de997d1
PB
10507else
10508 if test -n "$CXX_FOR_TARGET"; then
10509 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10510else
1c710c3c
DJ
10511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10512for as_dir in $PATH
10513do
10514 IFS=$as_save_IFS
10515 test -z "$as_dir" && as_dir=.
5213506e 10516 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10518 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10520 break 2
10521 fi
10522done
5213506e
RW
10523 done
10524IFS=$as_save_IFS
1c710c3c 10525
4de997d1
PB
10526fi
10527fi
1c710c3c 10528CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10529if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10531$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10532else
5213506e
RW
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10534$as_echo "no" >&6; }
4de997d1
PB
10535fi
10536
5213506e 10537
e8b05380
PB
10538 fi
10539 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10540 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10541set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10543$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10544if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10545 $as_echo_n "(cached) " >&6
4de997d1 10546else
2693c0b0
PB
10547 if test -n "$CXX_FOR_TARGET"; then
10548 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10549else
1c710c3c
DJ
10550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10551for as_dir in $PATH
10552do
10553 IFS=$as_save_IFS
10554 test -z "$as_dir" && as_dir=.
5213506e 10555 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10557 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10559 break 2
10560 fi
10561done
5213506e
RW
10562 done
10563IFS=$as_save_IFS
1c710c3c 10564
4de997d1
PB
10565fi
10566fi
1c710c3c 10567CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10568if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10570$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10571else
5213506e
RW
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573$as_echo "no" >&6; }
4de997d1 10574fi
1c710c3c 10575
5213506e 10576
e8b05380
PB
10577 fi
10578 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10579 done
10580fi
1c710c3c 10581
2693c0b0
PB
10582if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10583 set dummy c++ g++ cxx gxx
10584 if test $build = $target ; then
10585 CXX_FOR_TARGET="$2"
4de997d1 10586 else
2693c0b0 10587 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10588 fi
1c00b503
PB
10589else
10590 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10591fi
10592
278a7a38
AO
10593
10594
10595if test -n "$GCC_FOR_TARGET"; then
10596 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10597elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10598 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10599fi
10600
10601if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10602 for ncn_progname in gcc; do
10603 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10604set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10606$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10607if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10608 $as_echo_n "(cached) " >&6
278a7a38
AO
10609else
10610 if test -n "$GCC_FOR_TARGET"; then
10611 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10612else
10613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10614for as_dir in $PATH
10615do
10616 IFS=$as_save_IFS
10617 test -z "$as_dir" && as_dir=.
5213506e 10618 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10620 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10622 break 2
10623 fi
10624done
5213506e
RW
10625 done
10626IFS=$as_save_IFS
278a7a38
AO
10627
10628fi
10629fi
10630GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10631if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10633$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10634else
5213506e
RW
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10636$as_echo "no" >&6; }
278a7a38
AO
10637fi
10638
5213506e 10639
278a7a38
AO
10640 done
10641fi
10642
10643if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10644 for ncn_progname in gcc; do
5213506e
RW
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10646$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10647 if test -x $with_build_time_tools/${ncn_progname}; then
10648 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10650$as_echo "yes" >&6; }
e8b05380
PB
10651 break
10652 else
5213506e
RW
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10654$as_echo "no" >&6; }
e8b05380
PB
10655 fi
10656 done
10657fi
10658
10659if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10660 for ncn_progname in gcc; do
10661 if test -n "$ncn_target_tool_prefix"; then
10662 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10663set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10665$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10666if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10667 $as_echo_n "(cached) " >&6
ca9f4b81 10668else
e8b05380
PB
10669 if test -n "$GCC_FOR_TARGET"; then
10670 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10671else
1c710c3c
DJ
10672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10673for as_dir in $PATH
10674do
10675 IFS=$as_save_IFS
10676 test -z "$as_dir" && as_dir=.
5213506e 10677 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10679 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10681 break 2
10682 fi
10683done
5213506e
RW
10684 done
10685IFS=$as_save_IFS
1c710c3c 10686
ca9f4b81
AO
10687fi
10688fi
1c710c3c 10689GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10690if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10692$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10693else
5213506e
RW
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695$as_echo "no" >&6; }
ca9f4b81
AO
10696fi
10697
5213506e 10698
e8b05380
PB
10699 fi
10700 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10701 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10702set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10705if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10706 $as_echo_n "(cached) " >&6
ca9f4b81 10707else
e8b05380
PB
10708 if test -n "$GCC_FOR_TARGET"; then
10709 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10710else
1c710c3c
DJ
10711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10712for as_dir in $PATH
10713do
10714 IFS=$as_save_IFS
10715 test -z "$as_dir" && as_dir=.
5213506e 10716 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10718 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10720 break 2
10721 fi
10722done
5213506e
RW
10723 done
10724IFS=$as_save_IFS
1c710c3c 10725
ca9f4b81
AO
10726fi
10727fi
1c710c3c 10728GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10729if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10731$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10732else
5213506e
RW
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734$as_echo "no" >&6; }
ca9f4b81 10735fi
1c710c3c 10736
5213506e 10737
e8b05380
PB
10738 fi
10739 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10740 done
10741fi
1c710c3c 10742
e8b05380
PB
10743if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10744 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10745else
10746 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10747fi
10748
278a7a38
AO
10749
10750
278a7a38
AO
10751if test -n "$GFORTRAN_FOR_TARGET"; then
10752 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10753elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10754 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10755fi
10756
278a7a38
AO
10757if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10758 for ncn_progname in gfortran; do
10759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10760set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10762$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10763if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10764 $as_echo_n "(cached) " >&6
e8b05380 10765else
278a7a38
AO
10766 if test -n "$GFORTRAN_FOR_TARGET"; then
10767 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10768else
1c710c3c
DJ
10769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10770for as_dir in $PATH
10771do
10772 IFS=$as_save_IFS
10773 test -z "$as_dir" && as_dir=.
5213506e 10774 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10776 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10778 break 2
10779 fi
10780done
5213506e
RW
10781 done
10782IFS=$as_save_IFS
1c710c3c 10783
e8b05380
PB
10784fi
10785fi
278a7a38
AO
10786GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10787if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10789$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10790else
5213506e
RW
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10792$as_echo "no" >&6; }
e8b05380 10793fi
1c710c3c 10794
5213506e 10795
e8b05380
PB
10796 done
10797fi
1c710c3c 10798
278a7a38 10799if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10800 for ncn_progname in gfortran; do
5213506e
RW
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10802$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10803 if test -x $with_build_time_tools/${ncn_progname}; then
10804 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10806$as_echo "yes" >&6; }
e8b05380
PB
10807 break
10808 else
5213506e
RW
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10810$as_echo "no" >&6; }
e8b05380
PB
10811 fi
10812 done
10813fi
10814
10815if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10816 for ncn_progname in gfortran; do
10817 if test -n "$ncn_target_tool_prefix"; then
10818 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10819set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10821$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10822if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10823 $as_echo_n "(cached) " >&6
e8b05380
PB
10824else
10825 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10826 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10827else
10828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10829for as_dir in $PATH
10830do
10831 IFS=$as_save_IFS
10832 test -z "$as_dir" && as_dir=.
5213506e 10833 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10835 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10837 break 2
10838 fi
10839done
5213506e
RW
10840 done
10841IFS=$as_save_IFS
1c710c3c 10842
e8b05380
PB
10843fi
10844fi
1c710c3c 10845GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10846if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10848$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10849else
5213506e
RW
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851$as_echo "no" >&6; }
e8b05380
PB
10852fi
10853
5213506e 10854
e8b05380
PB
10855 fi
10856 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10858set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10860$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10861if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10862 $as_echo_n "(cached) " >&6
e8b05380
PB
10863else
10864 if test -n "$GFORTRAN_FOR_TARGET"; then
10865 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10866else
1c710c3c
DJ
10867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10868for as_dir in $PATH
10869do
10870 IFS=$as_save_IFS
10871 test -z "$as_dir" && as_dir=.
5213506e 10872 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10874 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10876 break 2
10877 fi
10878done
5213506e
RW
10879 done
10880IFS=$as_save_IFS
1c710c3c 10881
e8b05380
PB
10882fi
10883fi
1c710c3c 10884GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10885if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10887$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10888else
5213506e
RW
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890$as_echo "no" >&6; }
e8b05380 10891fi
1c710c3c 10892
5213506e 10893
e8b05380
PB
10894 fi
10895 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10896 done
10897fi
1c710c3c 10898
e8b05380
PB
10899if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10900 set dummy gfortran
2693c0b0 10901 if test $build = $target ; then
e8b05380 10902 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10903 else
e8b05380
PB
10904 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10905 fi
1c00b503
PB
10906else
10907 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10908fi
10909
10910
10911
632e2a07
ILT
10912if test -n "$GOC_FOR_TARGET"; then
10913 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10914elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10915 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10916fi
10917
10918if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10919 for ncn_progname in gccgo; do
10920 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10921set dummy ${ncn_progname}; ac_word=$2
10922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10923$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10924if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
10925 $as_echo_n "(cached) " >&6
10926else
10927 if test -n "$GOC_FOR_TARGET"; then
10928 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10929else
10930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10931for as_dir in $PATH
10932do
10933 IFS=$as_save_IFS
10934 test -z "$as_dir" && as_dir=.
10935 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
10937 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10939 break 2
10940 fi
10941done
10942 done
10943IFS=$as_save_IFS
10944
10945fi
10946fi
10947GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10948if test -n "$GOC_FOR_TARGET"; then
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10950$as_echo "$GOC_FOR_TARGET" >&6; }
10951else
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953$as_echo "no" >&6; }
10954fi
10955
10956
10957 done
10958fi
10959
10960if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10961 for ncn_progname in gccgo; do
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10963$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10964 if test -x $with_build_time_tools/${ncn_progname}; then
10965 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10967$as_echo "yes" >&6; }
10968 break
10969 else
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971$as_echo "no" >&6; }
10972 fi
10973 done
10974fi
10975
10976if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10977 for ncn_progname in gccgo; do
10978 if test -n "$ncn_target_tool_prefix"; then
10979 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10980set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10982$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10983if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
10984 $as_echo_n "(cached) " >&6
10985else
10986 if test -n "$GOC_FOR_TARGET"; then
10987 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10988else
10989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10990for as_dir in $PATH
10991do
10992 IFS=$as_save_IFS
10993 test -z "$as_dir" && as_dir=.
10994 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
10996 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10998 break 2
10999 fi
11000done
11001 done
11002IFS=$as_save_IFS
11003
11004fi
11005fi
11006GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11007if test -n "$GOC_FOR_TARGET"; then
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11009$as_echo "$GOC_FOR_TARGET" >&6; }
11010else
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11012$as_echo "no" >&6; }
11013fi
11014
11015
11016 fi
11017 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11019set dummy ${ncn_progname}; ac_word=$2
11020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11021$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11022if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
11023 $as_echo_n "(cached) " >&6
11024else
11025 if test -n "$GOC_FOR_TARGET"; then
11026 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11027else
11028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11029for as_dir in $PATH
11030do
11031 IFS=$as_save_IFS
11032 test -z "$as_dir" && as_dir=.
11033 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
11035 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11037 break 2
11038 fi
11039done
11040 done
11041IFS=$as_save_IFS
11042
11043fi
11044fi
11045GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11046if test -n "$GOC_FOR_TARGET"; then
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11048$as_echo "$GOC_FOR_TARGET" >&6; }
11049else
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11051$as_echo "no" >&6; }
11052fi
11053
11054
11055 fi
11056 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11057 done
11058fi
11059
11060if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11061 set dummy gccgo
11062 if test $build = $target ; then
11063 GOC_FOR_TARGET="$2"
11064 else
11065 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11066 fi
11067else
11068 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11069fi
11070
11071
11072
b4c522fa
IB
11073if test -n "$GDC_FOR_TARGET"; then
11074 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
11075elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
11076 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11077fi
11078
11079if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
11080 for ncn_progname in gdc; do
11081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11082set dummy ${ncn_progname}; ac_word=$2
11083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11084$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11085if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
11086 $as_echo_n "(cached) " >&6
11087else
11088 if test -n "$GDC_FOR_TARGET"; then
11089 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11090else
11091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092for as_dir in $PATH
11093do
11094 IFS=$as_save_IFS
11095 test -z "$as_dir" && as_dir=.
11096 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
11098 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11100 break 2
11101 fi
11102done
11103 done
11104IFS=$as_save_IFS
11105
11106fi
11107fi
11108GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11109if test -n "$GDC_FOR_TARGET"; then
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11111$as_echo "$GDC_FOR_TARGET" >&6; }
11112else
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11114$as_echo "no" >&6; }
11115fi
11116
11117
11118 done
11119fi
11120
11121if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11122 for ncn_progname in gdc; do
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11124$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11125 if test -x $with_build_time_tools/${ncn_progname}; then
11126 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11128$as_echo "yes" >&6; }
11129 break
11130 else
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11132$as_echo "no" >&6; }
11133 fi
11134 done
11135fi
11136
11137if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
11138 for ncn_progname in gdc; do
11139 if test -n "$ncn_target_tool_prefix"; then
11140 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11141set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11143$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11144if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
11145 $as_echo_n "(cached) " >&6
11146else
11147 if test -n "$GDC_FOR_TARGET"; then
11148 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11149else
11150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11151for as_dir in $PATH
11152do
11153 IFS=$as_save_IFS
11154 test -z "$as_dir" && as_dir=.
11155 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
11157 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11159 break 2
11160 fi
11161done
11162 done
11163IFS=$as_save_IFS
11164
11165fi
11166fi
11167GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11168if test -n "$GDC_FOR_TARGET"; then
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11170$as_echo "$GDC_FOR_TARGET" >&6; }
11171else
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11173$as_echo "no" >&6; }
11174fi
11175
11176
11177 fi
11178 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
11179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11180set dummy ${ncn_progname}; ac_word=$2
11181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11182$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11183if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
11184 $as_echo_n "(cached) " >&6
11185else
11186 if test -n "$GDC_FOR_TARGET"; then
11187 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11188else
11189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190for as_dir in $PATH
11191do
11192 IFS=$as_save_IFS
11193 test -z "$as_dir" && as_dir=.
11194 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
11196 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11198 break 2
11199 fi
11200done
11201 done
11202IFS=$as_save_IFS
11203
11204fi
11205fi
11206GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11207if test -n "$GDC_FOR_TARGET"; then
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11209$as_echo "$GDC_FOR_TARGET" >&6; }
11210else
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212$as_echo "no" >&6; }
11213fi
11214
11215
11216 fi
11217 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
11218 done
11219fi
11220
11221if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
11222 set dummy gdc
11223 if test $build = $target ; then
11224 GDC_FOR_TARGET="$2"
11225 else
11226 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11227 fi
11228else
11229 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
11230fi
11231
11232
11233
e8b05380
PB
11234cat > conftest.c << \EOF
11235#ifdef __GNUC__
11236 gcc_yay;
11237#endif
11238EOF
11239if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11240 have_gcc_for_target=yes
11241else
11242 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11243 have_gcc_for_target=no
11244fi
11245rm conftest.c
11246
11247
11248
11249
11250if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11251 if test -n "$with_build_time_tools"; then
5213506e
RW
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11253$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11254 if test -x $with_build_time_tools/ar; then
11255 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11256 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11258$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 11259 else
5213506e
RW
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11261$as_echo "no" >&6; }
d1f8db0c 11262 fi
e8b05380
PB
11263 elif test $build != $host && test $have_gcc_for_target = yes; then
11264 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
11265 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11266 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
11267 fi
11268fi
3e19841a 11269if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11270 # Extract the first word of "ar", so it can be a program name with args.
11271set dummy ar; ac_word=$2
5213506e
RW
11272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11273$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11274if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
5213506e 11275 $as_echo_n "(cached) " >&6
e8b05380 11276else
1c710c3c
DJ
11277 case $AR_FOR_TARGET in
11278 [\\/]* | ?:[\\/]*)
e8b05380
PB
11279 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11280 ;;
e8b05380 11281 *)
1c710c3c
DJ
11282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283for as_dir in $gcc_cv_tool_dirs
11284do
11285 IFS=$as_save_IFS
11286 test -z "$as_dir" && as_dir=.
5213506e 11287 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11289 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11291 break 2
11292 fi
11293done
5213506e
RW
11294 done
11295IFS=$as_save_IFS
1c710c3c 11296
e8b05380
PB
11297 ;;
11298esac
11299fi
1c710c3c 11300AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 11301if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11303$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11304else
5213506e
RW
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11306$as_echo "no" >&6; }
4de997d1
PB
11307fi
11308
5213506e 11309
e8b05380
PB
11310fi
11311if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
11312
11313
11314if test -n "$AR_FOR_TARGET"; then
11315 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11316elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11317 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11318fi
11319
11320if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11321 for ncn_progname in ar; do
11322 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11323set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11325$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11326if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11327 $as_echo_n "(cached) " >&6
278a7a38
AO
11328else
11329 if test -n "$AR_FOR_TARGET"; then
11330 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11331else
11332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11333for as_dir in $PATH
11334do
11335 IFS=$as_save_IFS
11336 test -z "$as_dir" && as_dir=.
5213506e 11337 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11339 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11341 break 2
11342 fi
11343done
5213506e
RW
11344 done
11345IFS=$as_save_IFS
278a7a38
AO
11346
11347fi
11348fi
11349AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11350if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11352$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 11353else
5213506e
RW
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355$as_echo "no" >&6; }
278a7a38
AO
11356fi
11357
5213506e 11358
278a7a38
AO
11359 done
11360fi
11361
11362if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11363 for ncn_progname in ar; do
5213506e
RW
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11365$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11366 if test -x $with_build_time_tools/${ncn_progname}; then
11367 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11369$as_echo "yes" >&6; }
e8b05380
PB
11370 break
11371 else
5213506e
RW
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11373$as_echo "no" >&6; }
e8b05380
PB
11374 fi
11375 done
11376fi
11377
11378if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11379 for ncn_progname in ar; do
11380 if test -n "$ncn_target_tool_prefix"; then
11381 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11382set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11384$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11385if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11386 $as_echo_n "(cached) " >&6
4de997d1 11387else
e8b05380
PB
11388 if test -n "$AR_FOR_TARGET"; then
11389 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 11390else
1c710c3c
DJ
11391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392for as_dir in $PATH
11393do
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
5213506e 11396 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11398 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11400 break 2
11401 fi
11402done
5213506e
RW
11403 done
11404IFS=$as_save_IFS
1c710c3c 11405
4de997d1
PB
11406fi
11407fi
1c710c3c 11408AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11409if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11411$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 11412else
5213506e
RW
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414$as_echo "no" >&6; }
4de997d1
PB
11415fi
11416
5213506e 11417
e8b05380
PB
11418 fi
11419 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11420 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11421set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11423$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11424if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11425 $as_echo_n "(cached) " >&6
e8b05380
PB
11426else
11427 if test -n "$AR_FOR_TARGET"; then
11428 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11429else
1c710c3c
DJ
11430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11431for as_dir in $PATH
11432do
11433 IFS=$as_save_IFS
11434 test -z "$as_dir" && as_dir=.
5213506e 11435 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11437 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11439 break 2
11440 fi
11441done
5213506e
RW
11442 done
11443IFS=$as_save_IFS
1c710c3c 11444
e8b05380
PB
11445fi
11446fi
1c710c3c 11447AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11448if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11450$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11451else
5213506e
RW
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11453$as_echo "no" >&6; }
e8b05380 11454fi
1c710c3c 11455
5213506e 11456
e8b05380
PB
11457 fi
11458 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11459 done
11460fi
1c710c3c 11461
e8b05380
PB
11462if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11463 set dummy ar
11464 if test $build = $target ; then
11465 AR_FOR_TARGET="$2"
11466 else
11467 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11468 fi
1c00b503
PB
11469else
11470 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11471fi
11472
d1f8db0c
PB
11473else
11474 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11475fi
11476
11477
11478
11479
11480if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11481 if test -n "$with_build_time_tools"; then
5213506e
RW
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11483$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11484 if test -x $with_build_time_tools/as; then
11485 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11486 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11488$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11489 else
5213506e
RW
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11491$as_echo "no" >&6; }
d1f8db0c 11492 fi
e8b05380
PB
11493 elif test $build != $host && test $have_gcc_for_target = yes; then
11494 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11495 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11496 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11497 fi
11498fi
3e19841a 11499if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11500 # Extract the first word of "as", so it can be a program name with args.
11501set dummy as; ac_word=$2
5213506e
RW
11502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11503$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11504if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
5213506e 11505 $as_echo_n "(cached) " >&6
e8b05380 11506else
1c710c3c
DJ
11507 case $AS_FOR_TARGET in
11508 [\\/]* | ?:[\\/]*)
e8b05380
PB
11509 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11510 ;;
e8b05380 11511 *)
1c710c3c
DJ
11512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513for as_dir in $gcc_cv_tool_dirs
11514do
11515 IFS=$as_save_IFS
11516 test -z "$as_dir" && as_dir=.
5213506e 11517 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11519 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11521 break 2
11522 fi
11523done
5213506e
RW
11524 done
11525IFS=$as_save_IFS
1c710c3c 11526
e8b05380
PB
11527 ;;
11528esac
11529fi
1c710c3c 11530AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11531if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11533$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11534else
5213506e
RW
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536$as_echo "no" >&6; }
e8b05380
PB
11537fi
11538
5213506e 11539
e8b05380
PB
11540fi
11541if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11542
11543
11544if test -n "$AS_FOR_TARGET"; then
11545 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11546elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11547 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11548fi
11549
11550if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11551 for ncn_progname in as; do
11552 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11553set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11555$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11556if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11557 $as_echo_n "(cached) " >&6
278a7a38
AO
11558else
11559 if test -n "$AS_FOR_TARGET"; then
11560 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11561else
11562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563for as_dir in $PATH
11564do
11565 IFS=$as_save_IFS
11566 test -z "$as_dir" && as_dir=.
5213506e 11567 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11569 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11571 break 2
11572 fi
11573done
5213506e
RW
11574 done
11575IFS=$as_save_IFS
278a7a38
AO
11576
11577fi
11578fi
11579AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11580if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11582$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11583else
5213506e
RW
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11585$as_echo "no" >&6; }
278a7a38
AO
11586fi
11587
5213506e 11588
278a7a38
AO
11589 done
11590fi
11591
11592if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11593 for ncn_progname in as; do
5213506e
RW
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11595$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11596 if test -x $with_build_time_tools/${ncn_progname}; then
11597 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11599$as_echo "yes" >&6; }
e8b05380
PB
11600 break
11601 else
5213506e
RW
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603$as_echo "no" >&6; }
e8b05380
PB
11604 fi
11605 done
11606fi
11607
11608if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11609 for ncn_progname in as; do
11610 if test -n "$ncn_target_tool_prefix"; then
11611 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11612set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11614$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11615if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11616 $as_echo_n "(cached) " >&6
e8b05380
PB
11617else
11618 if test -n "$AS_FOR_TARGET"; then
11619 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11620else
1c710c3c
DJ
11621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622for as_dir in $PATH
11623do
11624 IFS=$as_save_IFS
11625 test -z "$as_dir" && as_dir=.
5213506e 11626 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11628 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11630 break 2
11631 fi
11632done
5213506e
RW
11633 done
11634IFS=$as_save_IFS
1c710c3c 11635
e8b05380
PB
11636fi
11637fi
1c710c3c 11638AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11639if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11641$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11642else
5213506e
RW
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644$as_echo "no" >&6; }
e8b05380
PB
11645fi
11646
5213506e 11647
e8b05380
PB
11648 fi
11649 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11651set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11653$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11654if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11655 $as_echo_n "(cached) " >&6
4de997d1 11656else
e8b05380
PB
11657 if test -n "$AS_FOR_TARGET"; then
11658 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11659else
1c710c3c
DJ
11660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661for as_dir in $PATH
11662do
11663 IFS=$as_save_IFS
11664 test -z "$as_dir" && as_dir=.
5213506e 11665 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11667 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11669 break 2
11670 fi
11671done
5213506e
RW
11672 done
11673IFS=$as_save_IFS
1c710c3c 11674
4de997d1
PB
11675fi
11676fi
1c710c3c 11677AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11678if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11680$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11681else
5213506e
RW
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683$as_echo "no" >&6; }
4de997d1 11684fi
1c710c3c 11685
5213506e 11686
e8b05380
PB
11687 fi
11688 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11689 done
11690fi
1c710c3c 11691
e8b05380
PB
11692if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11693 set dummy as
11694 if test $build = $target ; then
11695 AS_FOR_TARGET="$2"
11696 else
11697 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11698 fi
1c00b503
PB
11699else
11700 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11701fi
2693c0b0 11702
d1f8db0c
PB
11703else
11704 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11705fi
11706
e8b05380
PB
11707
11708
11709
11710if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11711 if test -n "$with_build_time_tools"; then
5213506e
RW
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11713$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11714 if test -x $with_build_time_tools/dlltool; then
11715 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11716 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11718$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11719 else
5213506e
RW
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721$as_echo "no" >&6; }
d1f8db0c 11722 fi
e8b05380
PB
11723 elif test $build != $host && test $have_gcc_for_target = yes; then
11724 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11725 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11726 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11727 fi
11728fi
3e19841a 11729if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11730 # Extract the first word of "dlltool", so it can be a program name with args.
11731set dummy dlltool; ac_word=$2
5213506e
RW
11732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11733$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11734if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11735 $as_echo_n "(cached) " >&6
4de997d1 11736else
1c710c3c
DJ
11737 case $DLLTOOL_FOR_TARGET in
11738 [\\/]* | ?:[\\/]*)
e8b05380
PB
11739 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11740 ;;
e8b05380 11741 *)
1c710c3c
DJ
11742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11743for as_dir in $gcc_cv_tool_dirs
11744do
11745 IFS=$as_save_IFS
11746 test -z "$as_dir" && as_dir=.
5213506e 11747 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11749 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11751 break 2
11752 fi
11753done
5213506e
RW
11754 done
11755IFS=$as_save_IFS
1c710c3c 11756
e8b05380
PB
11757 ;;
11758esac
4de997d1 11759fi
1c710c3c 11760DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11761if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11763$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11764else
5213506e
RW
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766$as_echo "no" >&6; }
4de997d1
PB
11767fi
11768
5213506e 11769
e8b05380
PB
11770fi
11771if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11772
11773
11774if test -n "$DLLTOOL_FOR_TARGET"; then
11775 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11776elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11777 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11778fi
11779
11780if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11781 for ncn_progname in dlltool; do
11782 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11783set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11785$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11786if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11787 $as_echo_n "(cached) " >&6
278a7a38
AO
11788else
11789 if test -n "$DLLTOOL_FOR_TARGET"; then
11790 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11791else
11792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11793for as_dir in $PATH
11794do
11795 IFS=$as_save_IFS
11796 test -z "$as_dir" && as_dir=.
5213506e 11797 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11799 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11801 break 2
11802 fi
11803done
5213506e
RW
11804 done
11805IFS=$as_save_IFS
278a7a38
AO
11806
11807fi
11808fi
11809DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11810if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11812$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11813else
5213506e
RW
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815$as_echo "no" >&6; }
278a7a38
AO
11816fi
11817
5213506e 11818
278a7a38
AO
11819 done
11820fi
11821
11822if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11823 for ncn_progname in dlltool; do
5213506e
RW
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11825$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11826 if test -x $with_build_time_tools/${ncn_progname}; then
11827 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11829$as_echo "yes" >&6; }
e8b05380
PB
11830 break
11831 else
5213506e
RW
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833$as_echo "no" >&6; }
e8b05380
PB
11834 fi
11835 done
11836fi
11837
11838if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11839 for ncn_progname in dlltool; do
11840 if test -n "$ncn_target_tool_prefix"; then
11841 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11842set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11844$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11845if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11846 $as_echo_n "(cached) " >&6
4de997d1 11847else
e8b05380
PB
11848 if test -n "$DLLTOOL_FOR_TARGET"; then
11849 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11850else
1c710c3c
DJ
11851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11852for as_dir in $PATH
11853do
11854 IFS=$as_save_IFS
11855 test -z "$as_dir" && as_dir=.
5213506e 11856 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11858 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11860 break 2
11861 fi
11862done
5213506e
RW
11863 done
11864IFS=$as_save_IFS
1c710c3c 11865
4de997d1
PB
11866fi
11867fi
1c710c3c 11868DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11869if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11871$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11872else
5213506e
RW
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874$as_echo "no" >&6; }
4de997d1 11875fi
4de997d1 11876
5213506e 11877
e8b05380
PB
11878 fi
11879 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11880 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11881set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11883$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11884if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11885 $as_echo_n "(cached) " >&6
4de997d1 11886else
e8b05380
PB
11887 if test -n "$DLLTOOL_FOR_TARGET"; then
11888 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11889else
1c710c3c
DJ
11890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11891for as_dir in $PATH
11892do
11893 IFS=$as_save_IFS
11894 test -z "$as_dir" && as_dir=.
5213506e 11895 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11897 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11899 break 2
11900 fi
11901done
5213506e
RW
11902 done
11903IFS=$as_save_IFS
1c710c3c 11904
4de997d1
PB
11905fi
11906fi
1c710c3c 11907DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11908if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11910$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11911else
5213506e
RW
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913$as_echo "no" >&6; }
4de997d1 11914fi
1c710c3c 11915
5213506e 11916
e8b05380
PB
11917 fi
11918 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11919 done
11920fi
1c710c3c 11921
e8b05380
PB
11922if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11923 set dummy dlltool
11924 if test $build = $target ; then
11925 DLLTOOL_FOR_TARGET="$2"
11926 else
11927 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11928 fi
1c00b503
PB
11929else
11930 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11931fi
11932
d1f8db0c
PB
11933else
11934 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11935fi
11936
4de997d1 11937
e8b05380
PB
11938
11939
11940if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11941 if test -n "$with_build_time_tools"; then
5213506e
RW
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11943$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11944 if test -x $with_build_time_tools/ld; then
11945 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11946 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11948$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11949 else
5213506e
RW
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951$as_echo "no" >&6; }
d1f8db0c 11952 fi
e8b05380
PB
11953 elif test $build != $host && test $have_gcc_for_target = yes; then
11954 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11955 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11956 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11957 fi
e8b05380 11958fi
3e19841a 11959if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11960 # Extract the first word of "ld", so it can be a program name with args.
11961set dummy ld; ac_word=$2
5213506e
RW
11962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11963$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11964if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
5213506e 11965 $as_echo_n "(cached) " >&6
4de997d1 11966else
1c710c3c
DJ
11967 case $LD_FOR_TARGET in
11968 [\\/]* | ?:[\\/]*)
e8b05380
PB
11969 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11970 ;;
e8b05380 11971 *)
1c710c3c
DJ
11972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11973for as_dir in $gcc_cv_tool_dirs
11974do
11975 IFS=$as_save_IFS
11976 test -z "$as_dir" && as_dir=.
5213506e 11977 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11979 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11981 break 2
11982 fi
11983done
5213506e
RW
11984 done
11985IFS=$as_save_IFS
1c710c3c 11986
e8b05380
PB
11987 ;;
11988esac
4de997d1 11989fi
1c710c3c 11990LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11991if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11993$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11994else
5213506e
RW
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11996$as_echo "no" >&6; }
4de997d1 11997fi
2693c0b0 11998
5213506e 11999
e8b05380
PB
12000fi
12001if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
12002
12003
12004if test -n "$LD_FOR_TARGET"; then
12005 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
12006elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12007 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12008fi
12009
12010if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12011 for ncn_progname in ld; do
12012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12013set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12015$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12016if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 12017 $as_echo_n "(cached) " >&6
278a7a38
AO
12018else
12019 if test -n "$LD_FOR_TARGET"; then
12020 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12021else
12022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023for as_dir in $PATH
12024do
12025 IFS=$as_save_IFS
12026 test -z "$as_dir" && as_dir=.
5213506e 12027 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12029 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 12030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12031 break 2
12032 fi
12033done
5213506e
RW
12034 done
12035IFS=$as_save_IFS
278a7a38
AO
12036
12037fi
12038fi
12039LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12040if test -n "$LD_FOR_TARGET"; then
5213506e
RW
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12042$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 12043else
5213506e
RW
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12045$as_echo "no" >&6; }
278a7a38
AO
12046fi
12047
5213506e 12048
278a7a38
AO
12049 done
12050fi
12051
12052if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12053 for ncn_progname in ld; do
5213506e
RW
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12055$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12056 if test -x $with_build_time_tools/${ncn_progname}; then
12057 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12059$as_echo "yes" >&6; }
e8b05380
PB
12060 break
12061 else
5213506e
RW
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063$as_echo "no" >&6; }
e8b05380
PB
12064 fi
12065 done
ca9f4b81
AO
12066fi
12067
e8b05380
PB
12068if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12069 for ncn_progname in ld; do
12070 if test -n "$ncn_target_tool_prefix"; then
12071 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12072set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12075if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 12076 $as_echo_n "(cached) " >&6
ca9f4b81 12077else
4de997d1
PB
12078 if test -n "$LD_FOR_TARGET"; then
12079 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 12080else
1c710c3c
DJ
12081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082for as_dir in $PATH
12083do
12084 IFS=$as_save_IFS
12085 test -z "$as_dir" && as_dir=.
5213506e 12086 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12088 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12090 break 2
12091 fi
12092done
5213506e
RW
12093 done
12094IFS=$as_save_IFS
1c710c3c 12095
ca9f4b81
AO
12096fi
12097fi
1c710c3c 12098LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 12099if test -n "$LD_FOR_TARGET"; then
5213506e
RW
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12101$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 12102else
5213506e
RW
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104$as_echo "no" >&6; }
ca9f4b81
AO
12105fi
12106
5213506e 12107
e8b05380
PB
12108 fi
12109 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12110 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12111set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12113$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12114if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 12115 $as_echo_n "(cached) " >&6
ca9f4b81 12116else
2693c0b0
PB
12117 if test -n "$LD_FOR_TARGET"; then
12118 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 12119else
1c710c3c
DJ
12120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12121for as_dir in $PATH
12122do
12123 IFS=$as_save_IFS
12124 test -z "$as_dir" && as_dir=.
5213506e 12125 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12127 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 12128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12129 break 2
12130 fi
12131done
5213506e
RW
12132 done
12133IFS=$as_save_IFS
1c710c3c 12134
ca9f4b81
AO
12135fi
12136fi
1c710c3c 12137LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 12138if test -n "$LD_FOR_TARGET"; then
5213506e
RW
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12140$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 12141else
5213506e
RW
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143$as_echo "no" >&6; }
ca9f4b81 12144fi
1c710c3c 12145
5213506e 12146
e8b05380
PB
12147 fi
12148 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12149 done
12150fi
1c710c3c 12151
2693c0b0
PB
12152if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12153 set dummy ld
12154 if test $build = $target ; then
12155 LD_FOR_TARGET="$2"
ca9f4b81 12156 else
2693c0b0 12157 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12158 fi
1c00b503
PB
12159else
12160 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
12161fi
12162
d1f8db0c
PB
12163else
12164 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
12165fi
12166
12167
12168
12169
12170if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12171 if test -n "$with_build_time_tools"; then
5213506e
RW
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12173$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12174 if test -x $with_build_time_tools/lipo; then
12175 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12176 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12178$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 12179 else
5213506e
RW
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12181$as_echo "no" >&6; }
d1f8db0c 12182 fi
e8b05380
PB
12183 elif test $build != $host && test $have_gcc_for_target = yes; then
12184 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
12185 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12186 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
12187 fi
12188fi
278a7a38
AO
12189if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12190 # Extract the first word of "lipo", so it can be a program name with args.
12191set dummy lipo; ac_word=$2
5213506e
RW
12192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12193$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12194if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
5213506e 12195 $as_echo_n "(cached) " >&6
278a7a38
AO
12196else
12197 case $LIPO_FOR_TARGET in
12198 [\\/]* | ?:[\\/]*)
12199 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12200 ;;
12201 *)
12202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12203for as_dir in $gcc_cv_tool_dirs
12204do
12205 IFS=$as_save_IFS
12206 test -z "$as_dir" && as_dir=.
5213506e 12207 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12209 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12211 break 2
12212 fi
12213done
5213506e
RW
12214 done
12215IFS=$as_save_IFS
278a7a38
AO
12216
12217 ;;
12218esac
12219fi
12220LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 12221if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12223$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 12224else
5213506e
RW
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226$as_echo "no" >&6; }
278a7a38
AO
12227fi
12228
5213506e 12229
278a7a38
AO
12230fi
12231if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12232
12233
12234if test -n "$LIPO_FOR_TARGET"; then
12235 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12236elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12237 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12238fi
12239
12240if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12241 for ncn_progname in lipo; do
12242 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12243set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12245$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12246if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12247 $as_echo_n "(cached) " >&6
e8b05380 12248else
278a7a38
AO
12249 if test -n "$LIPO_FOR_TARGET"; then
12250 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12251else
12252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12253for as_dir in $PATH
1c710c3c
DJ
12254do
12255 IFS=$as_save_IFS
12256 test -z "$as_dir" && as_dir=.
5213506e 12257 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12259 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12261 break 2
12262 fi
12263done
5213506e
RW
12264 done
12265IFS=$as_save_IFS
1c710c3c 12266
e8b05380 12267fi
278a7a38
AO
12268fi
12269LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 12270if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12272$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 12273else
5213506e
RW
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275$as_echo "no" >&6; }
e8b05380
PB
12276fi
12277
5213506e 12278
278a7a38 12279 done
e8b05380 12280fi
278a7a38
AO
12281
12282if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12283 for ncn_progname in lipo; do
5213506e
RW
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12285$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12286 if test -x $with_build_time_tools/${ncn_progname}; then
12287 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12289$as_echo "yes" >&6; }
e8b05380
PB
12290 break
12291 else
5213506e
RW
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293$as_echo "no" >&6; }
e8b05380
PB
12294 fi
12295 done
12296fi
12297
12298if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12299 for ncn_progname in lipo; do
12300 if test -n "$ncn_target_tool_prefix"; then
12301 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12302set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12304$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12305if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12306 $as_echo_n "(cached) " >&6
040b1c5a
GK
12307else
12308 if test -n "$LIPO_FOR_TARGET"; then
12309 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12310else
1c710c3c
DJ
12311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312for as_dir in $PATH
12313do
12314 IFS=$as_save_IFS
12315 test -z "$as_dir" && as_dir=.
5213506e 12316 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12318 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12320 break 2
12321 fi
12322done
5213506e
RW
12323 done
12324IFS=$as_save_IFS
1c710c3c 12325
040b1c5a
GK
12326fi
12327fi
1c710c3c 12328LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12329if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12331$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12332else
5213506e
RW
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334$as_echo "no" >&6; }
040b1c5a
GK
12335fi
12336
5213506e 12337
e8b05380
PB
12338 fi
12339 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12341set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12344if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12345 $as_echo_n "(cached) " >&6
040b1c5a
GK
12346else
12347 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
12348 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12349else
1c710c3c
DJ
12350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351for as_dir in $PATH
12352do
12353 IFS=$as_save_IFS
12354 test -z "$as_dir" && as_dir=.
5213506e 12355 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12357 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12359 break 2
12360 fi
12361done
5213506e
RW
12362 done
12363IFS=$as_save_IFS
1c710c3c 12364
040b1c5a
GK
12365fi
12366fi
1c710c3c 12367LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12368if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12370$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12371else
5213506e
RW
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373$as_echo "no" >&6; }
040b1c5a 12374fi
1c710c3c 12375
5213506e 12376
e8b05380
PB
12377 fi
12378 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12379 done
12380fi
1c710c3c 12381
040b1c5a
GK
12382if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12383 set dummy lipo
12384 if test $build = $target ; then
12385 LIPO_FOR_TARGET="$2"
12386 else
12387 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12388 fi
1c00b503
PB
12389else
12390 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
12391fi
12392
d1f8db0c
PB
12393else
12394 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
12395fi
12396
12397
12398
12399
12400if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12401 if test -n "$with_build_time_tools"; then
5213506e
RW
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12403$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12404 if test -x $with_build_time_tools/nm; then
12405 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12406 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12408$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 12409 else
5213506e
RW
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411$as_echo "no" >&6; }
d1f8db0c 12412 fi
e8b05380
PB
12413 elif test $build != $host && test $have_gcc_for_target = yes; then
12414 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
12415 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12416 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
12417 fi
12418fi
3e19841a 12419if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12420 # Extract the first word of "nm", so it can be a program name with args.
12421set dummy nm; ac_word=$2
5213506e
RW
12422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12423$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12424if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
5213506e 12425 $as_echo_n "(cached) " >&6
e8b05380 12426else
1c710c3c
DJ
12427 case $NM_FOR_TARGET in
12428 [\\/]* | ?:[\\/]*)
e8b05380
PB
12429 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12430 ;;
e8b05380 12431 *)
1c710c3c
DJ
12432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12433for as_dir in $gcc_cv_tool_dirs
12434do
12435 IFS=$as_save_IFS
12436 test -z "$as_dir" && as_dir=.
5213506e 12437 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12439 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12441 break 2
12442 fi
12443done
5213506e
RW
12444 done
12445IFS=$as_save_IFS
1c710c3c 12446
e8b05380
PB
12447 ;;
12448esac
12449fi
1c710c3c 12450NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12451if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12453$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12454else
5213506e
RW
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456$as_echo "no" >&6; }
e8b05380
PB
12457fi
12458
5213506e 12459
e8b05380
PB
12460fi
12461if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12462
12463
12464if test -n "$NM_FOR_TARGET"; then
12465 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12466elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12467 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12468fi
12469
12470if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12471 for ncn_progname in nm; do
12472 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12473set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12475$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12476if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12477 $as_echo_n "(cached) " >&6
278a7a38
AO
12478else
12479 if test -n "$NM_FOR_TARGET"; then
12480 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12481else
12482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483for as_dir in $PATH
12484do
12485 IFS=$as_save_IFS
12486 test -z "$as_dir" && as_dir=.
5213506e 12487 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12489 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12491 break 2
12492 fi
12493done
5213506e
RW
12494 done
12495IFS=$as_save_IFS
278a7a38
AO
12496
12497fi
12498fi
12499NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12500if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12502$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12503else
5213506e
RW
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505$as_echo "no" >&6; }
278a7a38
AO
12506fi
12507
5213506e 12508
278a7a38
AO
12509 done
12510fi
12511
12512if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12513 for ncn_progname in nm; do
5213506e
RW
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12515$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12516 if test -x $with_build_time_tools/${ncn_progname}; then
12517 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12519$as_echo "yes" >&6; }
e8b05380
PB
12520 break
12521 else
5213506e
RW
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12523$as_echo "no" >&6; }
e8b05380
PB
12524 fi
12525 done
12526fi
12527
12528if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12529 for ncn_progname in nm; do
12530 if test -n "$ncn_target_tool_prefix"; then
12531 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12532set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12534$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12535if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12536 $as_echo_n "(cached) " >&6
ca9f4b81 12537else
4de997d1
PB
12538 if test -n "$NM_FOR_TARGET"; then
12539 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12540else
1c710c3c
DJ
12541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542for as_dir in $PATH
12543do
12544 IFS=$as_save_IFS
12545 test -z "$as_dir" && as_dir=.
5213506e 12546 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12548 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12550 break 2
12551 fi
12552done
5213506e
RW
12553 done
12554IFS=$as_save_IFS
1c710c3c 12555
ca9f4b81
AO
12556fi
12557fi
1c710c3c 12558NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12559if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12561$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12562else
5213506e
RW
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564$as_echo "no" >&6; }
ca9f4b81
AO
12565fi
12566
5213506e 12567
e8b05380
PB
12568 fi
12569 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12571set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12573$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12574if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12575 $as_echo_n "(cached) " >&6
ca9f4b81 12576else
2693c0b0
PB
12577 if test -n "$NM_FOR_TARGET"; then
12578 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12579else
1c710c3c
DJ
12580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12581for as_dir in $PATH
12582do
12583 IFS=$as_save_IFS
12584 test -z "$as_dir" && as_dir=.
5213506e 12585 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12587 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12589 break 2
12590 fi
12591done
5213506e
RW
12592 done
12593IFS=$as_save_IFS
1c710c3c 12594
ca9f4b81
AO
12595fi
12596fi
1c710c3c 12597NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12598if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12600$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12601else
5213506e
RW
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12603$as_echo "no" >&6; }
ca9f4b81 12604fi
1c710c3c 12605
5213506e 12606
e8b05380
PB
12607 fi
12608 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12609 done
12610fi
1c710c3c 12611
2693c0b0
PB
12612if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12613 set dummy nm
12614 if test $build = $target ; then
12615 NM_FOR_TARGET="$2"
ca9f4b81 12616 else
2693c0b0 12617 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12618 fi
1c00b503
PB
12619else
12620 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12621fi
12622
d1f8db0c
PB
12623else
12624 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12625fi
12626
12627
12628
12629
9bccfdf5
AP
12630if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12631 if test -n "$with_build_time_tools"; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12633$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12634 if test -x $with_build_time_tools/objcopy; then
12635 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12636 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12638$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12639 else
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12641$as_echo "no" >&6; }
12642 fi
12643 elif test $build != $host && test $have_gcc_for_target = yes; then
12644 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12645 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12646 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12647 fi
12648fi
12649if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12650 # Extract the first word of "objcopy", so it can be a program name with args.
12651set dummy objcopy; ac_word=$2
12652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12653$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12654if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12655 $as_echo_n "(cached) " >&6
12656else
12657 case $OBJCOPY_FOR_TARGET in
12658 [\\/]* | ?:[\\/]*)
12659 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12660 ;;
12661 *)
12662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663for as_dir in $gcc_cv_tool_dirs
12664do
12665 IFS=$as_save_IFS
12666 test -z "$as_dir" && as_dir=.
12667 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12669 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671 break 2
12672 fi
12673done
12674 done
12675IFS=$as_save_IFS
12676
12677 ;;
12678esac
12679fi
12680OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12681if test -n "$OBJCOPY_FOR_TARGET"; then
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12683$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12684else
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686$as_echo "no" >&6; }
12687fi
12688
12689
12690fi
12691if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12692
12693
12694if test -n "$OBJCOPY_FOR_TARGET"; then
12695 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12696elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12697 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12698fi
12699
12700if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12701 for ncn_progname in objcopy; do
12702 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12703set dummy ${ncn_progname}; ac_word=$2
12704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12705$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12706if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12707 $as_echo_n "(cached) " >&6
12708else
12709 if test -n "$OBJCOPY_FOR_TARGET"; then
12710 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12711else
12712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12713for as_dir in $PATH
12714do
12715 IFS=$as_save_IFS
12716 test -z "$as_dir" && as_dir=.
12717 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12719 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12721 break 2
12722 fi
12723done
12724 done
12725IFS=$as_save_IFS
12726
12727fi
12728fi
12729OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12730if test -n "$OBJCOPY_FOR_TARGET"; then
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12732$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12733else
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12735$as_echo "no" >&6; }
12736fi
12737
12738
12739 done
12740fi
12741
12742if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12743 for ncn_progname in objcopy; do
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12745$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12746 if test -x $with_build_time_tools/${ncn_progname}; then
12747 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12749$as_echo "yes" >&6; }
12750 break
12751 else
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753$as_echo "no" >&6; }
12754 fi
12755 done
12756fi
12757
12758if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12759 for ncn_progname in objcopy; do
12760 if test -n "$ncn_target_tool_prefix"; then
12761 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12762set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12764$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12765if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12766 $as_echo_n "(cached) " >&6
12767else
12768 if test -n "$OBJCOPY_FOR_TARGET"; then
12769 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12770else
12771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772for as_dir in $PATH
12773do
12774 IFS=$as_save_IFS
12775 test -z "$as_dir" && as_dir=.
12776 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12778 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12780 break 2
12781 fi
12782done
12783 done
12784IFS=$as_save_IFS
12785
12786fi
12787fi
12788OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12789if test -n "$OBJCOPY_FOR_TARGET"; then
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12791$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12792else
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794$as_echo "no" >&6; }
12795fi
12796
12797
12798 fi
12799 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12801set dummy ${ncn_progname}; ac_word=$2
12802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12803$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12804if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12805 $as_echo_n "(cached) " >&6
12806else
12807 if test -n "$OBJCOPY_FOR_TARGET"; then
12808 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12809else
12810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12811for as_dir in $PATH
12812do
12813 IFS=$as_save_IFS
12814 test -z "$as_dir" && as_dir=.
12815 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12817 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12819 break 2
12820 fi
12821done
12822 done
12823IFS=$as_save_IFS
12824
12825fi
12826fi
12827OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12828if test -n "$OBJCOPY_FOR_TARGET"; then
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12830$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12831else
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833$as_echo "no" >&6; }
12834fi
12835
12836
12837 fi
12838 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12839 done
12840fi
12841
12842if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12843 set dummy objcopy
12844 if test $build = $target ; then
12845 OBJCOPY_FOR_TARGET="$2"
12846 else
12847 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12848 fi
12849else
12850 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12851fi
12852
12853else
12854 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12855fi
12856
12857
12858
12859
e8b05380
PB
12860if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12861 if test -n "$with_build_time_tools"; then
5213506e
RW
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12863$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12864 if test -x $with_build_time_tools/objdump; then
12865 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12866 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12868$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12869 else
5213506e
RW
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12871$as_echo "no" >&6; }
d1f8db0c 12872 fi
e8b05380
PB
12873 elif test $build != $host && test $have_gcc_for_target = yes; then
12874 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12875 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12876 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12877 fi
12878fi
3e19841a 12879if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12880 # Extract the first word of "objdump", so it can be a program name with args.
12881set dummy objdump; ac_word=$2
5213506e
RW
12882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12883$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12884if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12885 $as_echo_n "(cached) " >&6
e8b05380 12886else
1c710c3c
DJ
12887 case $OBJDUMP_FOR_TARGET in
12888 [\\/]* | ?:[\\/]*)
e8b05380
PB
12889 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12890 ;;
e8b05380 12891 *)
1c710c3c
DJ
12892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12893for as_dir in $gcc_cv_tool_dirs
12894do
12895 IFS=$as_save_IFS
12896 test -z "$as_dir" && as_dir=.
5213506e 12897 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12899 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12901 break 2
12902 fi
12903done
5213506e
RW
12904 done
12905IFS=$as_save_IFS
1c710c3c 12906
e8b05380
PB
12907 ;;
12908esac
12909fi
1c710c3c 12910OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12911if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12913$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12914else
5213506e
RW
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916$as_echo "no" >&6; }
e8b05380
PB
12917fi
12918
5213506e 12919
e8b05380
PB
12920fi
12921if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12922
12923
12924if test -n "$OBJDUMP_FOR_TARGET"; then
12925 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12926elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12927 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12928fi
12929
12930if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12931 for ncn_progname in objdump; do
12932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12933set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12935$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12936if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12937 $as_echo_n "(cached) " >&6
278a7a38
AO
12938else
12939 if test -n "$OBJDUMP_FOR_TARGET"; then
12940 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12941else
12942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12943for as_dir in $PATH
12944do
12945 IFS=$as_save_IFS
12946 test -z "$as_dir" && as_dir=.
5213506e 12947 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12949 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12951 break 2
12952 fi
12953done
5213506e
RW
12954 done
12955IFS=$as_save_IFS
278a7a38
AO
12956
12957fi
12958fi
12959OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12960if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12962$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12963else
5213506e
RW
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12965$as_echo "no" >&6; }
278a7a38
AO
12966fi
12967
5213506e 12968
278a7a38
AO
12969 done
12970fi
12971
12972if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12973 for ncn_progname in objdump; do
5213506e
RW
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12975$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12976 if test -x $with_build_time_tools/${ncn_progname}; then
12977 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12979$as_echo "yes" >&6; }
e8b05380
PB
12980 break
12981 else
5213506e
RW
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12983$as_echo "no" >&6; }
e8b05380
PB
12984 fi
12985 done
12986fi
12987
12988if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12989 for ncn_progname in objdump; do
12990 if test -n "$ncn_target_tool_prefix"; then
12991 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12992set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12994$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12995if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12996 $as_echo_n "(cached) " >&6
d739199a
DJ
12997else
12998 if test -n "$OBJDUMP_FOR_TARGET"; then
12999 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13000else
1c710c3c
DJ
13001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13002for as_dir in $PATH
13003do
13004 IFS=$as_save_IFS
13005 test -z "$as_dir" && as_dir=.
5213506e 13006 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13008 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13010 break 2
13011 fi
13012done
5213506e
RW
13013 done
13014IFS=$as_save_IFS
1c710c3c 13015
d739199a
DJ
13016fi
13017fi
1c710c3c 13018OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 13019if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13021$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 13022else
5213506e
RW
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024$as_echo "no" >&6; }
d739199a
DJ
13025fi
13026
5213506e 13027
e8b05380
PB
13028 fi
13029 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
13030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 13031set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13033$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13034if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 13035 $as_echo_n "(cached) " >&6
d739199a
DJ
13036else
13037 if test -n "$OBJDUMP_FOR_TARGET"; then
13038 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13039else
1c710c3c
DJ
13040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13041for as_dir in $PATH
13042do
13043 IFS=$as_save_IFS
13044 test -z "$as_dir" && as_dir=.
5213506e 13045 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13047 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 13048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13049 break 2
13050 fi
13051done
5213506e
RW
13052 done
13053IFS=$as_save_IFS
1c710c3c 13054
d739199a
DJ
13055fi
13056fi
1c710c3c 13057OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 13058if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13060$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 13061else
5213506e
RW
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13063$as_echo "no" >&6; }
d739199a 13064fi
1c710c3c 13065
5213506e 13066
e8b05380
PB
13067 fi
13068 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
13069 done
13070fi
1c710c3c 13071
d739199a
DJ
13072if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
13073 set dummy objdump
13074 if test $build = $target ; then
13075 OBJDUMP_FOR_TARGET="$2"
13076 else
13077 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13078 fi
1c00b503
PB
13079else
13080 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
13081fi
13082
d1f8db0c
PB
13083else
13084 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
13085fi
13086
13087
13088
13089
e4a9a572
IS
13090if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13091 if test -n "$with_build_time_tools"; then
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
13093$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
13094 if test -x $with_build_time_tools/otool; then
13095 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
13096 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
13098$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
13099 else
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13101$as_echo "no" >&6; }
13102 fi
13103 elif test $build != $host && test $have_gcc_for_target = yes; then
13104 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
13105 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
13106 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13107 fi
13108fi
13109if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13110 # Extract the first word of "otool", so it can be a program name with args.
13111set dummy otool; ac_word=$2
13112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13113$as_echo_n "checking for $ac_word... " >&6; }
13114if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
13115 $as_echo_n "(cached) " >&6
13116else
13117 case $OTOOL_FOR_TARGET in
13118 [\\/]* | ?:[\\/]*)
13119 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
13120 ;;
13121 *)
13122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13123for as_dir in $gcc_cv_tool_dirs
13124do
13125 IFS=$as_save_IFS
13126 test -z "$as_dir" && as_dir=.
13127 for ac_exec_ext in '' $ac_executable_extensions; do
13128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13129 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13131 break 2
13132 fi
13133done
13134 done
13135IFS=$as_save_IFS
13136
13137 ;;
13138esac
13139fi
13140OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13141if test -n "$OTOOL_FOR_TARGET"; then
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13143$as_echo "$OTOOL_FOR_TARGET" >&6; }
13144else
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13146$as_echo "no" >&6; }
13147fi
13148
13149
13150fi
13151if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13152
13153
13154if test -n "$OTOOL_FOR_TARGET"; then
13155 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13156elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13157 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13158fi
13159
13160if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13161 for ncn_progname in otool; do
13162 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13163set dummy ${ncn_progname}; ac_word=$2
13164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13165$as_echo_n "checking for $ac_word... " >&6; }
13166if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13167 $as_echo_n "(cached) " >&6
13168else
13169 if test -n "$OTOOL_FOR_TARGET"; then
13170 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13171else
13172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13173for as_dir in $PATH
13174do
13175 IFS=$as_save_IFS
13176 test -z "$as_dir" && as_dir=.
13177 for ac_exec_ext in '' $ac_executable_extensions; do
13178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13179 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13181 break 2
13182 fi
13183done
13184 done
13185IFS=$as_save_IFS
13186
13187fi
13188fi
13189OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13190if test -n "$OTOOL_FOR_TARGET"; then
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13192$as_echo "$OTOOL_FOR_TARGET" >&6; }
13193else
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13195$as_echo "no" >&6; }
13196fi
13197
13198
13199 done
13200fi
13201
13202if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
13203 for ncn_progname in otool; do
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13205$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13206 if test -x $with_build_time_tools/${ncn_progname}; then
13207 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13209$as_echo "yes" >&6; }
13210 break
13211 else
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13213$as_echo "no" >&6; }
13214 fi
13215 done
13216fi
13217
13218if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13219 for ncn_progname in otool; do
13220 if test -n "$ncn_target_tool_prefix"; then
13221 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13222set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13224$as_echo_n "checking for $ac_word... " >&6; }
13225if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13226 $as_echo_n "(cached) " >&6
13227else
13228 if test -n "$OTOOL_FOR_TARGET"; then
13229 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13230else
13231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13232for as_dir in $PATH
13233do
13234 IFS=$as_save_IFS
13235 test -z "$as_dir" && as_dir=.
13236 for ac_exec_ext in '' $ac_executable_extensions; do
13237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13238 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13240 break 2
13241 fi
13242done
13243 done
13244IFS=$as_save_IFS
13245
13246fi
13247fi
13248OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13249if test -n "$OTOOL_FOR_TARGET"; then
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13251$as_echo "$OTOOL_FOR_TARGET" >&6; }
13252else
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13254$as_echo "no" >&6; }
13255fi
13256
13257
13258 fi
13259 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
13260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13261set dummy ${ncn_progname}; ac_word=$2
13262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13263$as_echo_n "checking for $ac_word... " >&6; }
13264if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13265 $as_echo_n "(cached) " >&6
13266else
13267 if test -n "$OTOOL_FOR_TARGET"; then
13268 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13269else
13270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13271for as_dir in $PATH
13272do
13273 IFS=$as_save_IFS
13274 test -z "$as_dir" && as_dir=.
13275 for ac_exec_ext in '' $ac_executable_extensions; do
13276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13277 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13279 break 2
13280 fi
13281done
13282 done
13283IFS=$as_save_IFS
13284
13285fi
13286fi
13287OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13288if test -n "$OTOOL_FOR_TARGET"; then
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13290$as_echo "$OTOOL_FOR_TARGET" >&6; }
13291else
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13293$as_echo "no" >&6; }
13294fi
13295
13296
13297 fi
13298 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
13299 done
13300fi
13301
13302if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
13303 set dummy otool
13304 if test $build = $target ; then
13305 OTOOL_FOR_TARGET="$2"
13306 else
13307 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
13308 fi
13309else
13310 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
13311fi
13312
13313else
13314 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13315fi
13316
13317
13318
13319
e8b05380
PB
13320if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13321 if test -n "$with_build_time_tools"; then
5213506e
RW
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13323$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13324 if test -x $with_build_time_tools/ranlib; then
13325 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13326 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13328$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 13329 else
5213506e
RW
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13331$as_echo "no" >&6; }
d1f8db0c 13332 fi
e8b05380
PB
13333 elif test $build != $host && test $have_gcc_for_target = yes; then
13334 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
13335 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13336 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
13337 fi
13338fi
3e19841a 13339if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13340 # Extract the first word of "ranlib", so it can be a program name with args.
13341set dummy ranlib; ac_word=$2
5213506e
RW
13342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13343$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13344if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
5213506e 13345 $as_echo_n "(cached) " >&6
e8b05380 13346else
1c710c3c
DJ
13347 case $RANLIB_FOR_TARGET in
13348 [\\/]* | ?:[\\/]*)
e8b05380
PB
13349 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13350 ;;
e8b05380 13351 *)
1c710c3c
DJ
13352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13353for as_dir in $gcc_cv_tool_dirs
13354do
13355 IFS=$as_save_IFS
13356 test -z "$as_dir" && as_dir=.
5213506e 13357 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13359 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13361 break 2
13362 fi
13363done
5213506e
RW
13364 done
13365IFS=$as_save_IFS
1c710c3c 13366
e8b05380
PB
13367 ;;
13368esac
13369fi
1c710c3c 13370RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 13371if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13373$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 13374else
5213506e
RW
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13376$as_echo "no" >&6; }
e8b05380
PB
13377fi
13378
5213506e 13379
e8b05380
PB
13380fi
13381if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
13382
13383
13384if test -n "$RANLIB_FOR_TARGET"; then
13385 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13386elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13387 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13388fi
13389
13390if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13391 for ncn_progname in ranlib; do
13392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13393set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13395$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13396if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 13397 $as_echo_n "(cached) " >&6
278a7a38
AO
13398else
13399 if test -n "$RANLIB_FOR_TARGET"; then
13400 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13401else
13402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13403for as_dir in $PATH
13404do
13405 IFS=$as_save_IFS
13406 test -z "$as_dir" && as_dir=.
5213506e 13407 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13409 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 13410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13411 break 2
13412 fi
13413done
5213506e
RW
13414 done
13415IFS=$as_save_IFS
278a7a38
AO
13416
13417fi
13418fi
13419RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13420if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13422$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 13423else
5213506e
RW
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13425$as_echo "no" >&6; }
278a7a38
AO
13426fi
13427
5213506e 13428
278a7a38
AO
13429 done
13430fi
13431
13432if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13433 for ncn_progname in ranlib; do
5213506e
RW
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13435$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13436 if test -x $with_build_time_tools/${ncn_progname}; then
13437 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13439$as_echo "yes" >&6; }
e8b05380
PB
13440 break
13441 else
5213506e
RW
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13443$as_echo "no" >&6; }
e8b05380
PB
13444 fi
13445 done
13446fi
13447
13448if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13449 for ncn_progname in ranlib; do
13450 if test -n "$ncn_target_tool_prefix"; then
13451 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 13452set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13454$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13455if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 13456 $as_echo_n "(cached) " >&6
ca9f4b81 13457else
4de997d1
PB
13458 if test -n "$RANLIB_FOR_TARGET"; then
13459 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 13460else
1c710c3c
DJ
13461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13462for as_dir in $PATH
13463do
13464 IFS=$as_save_IFS
13465 test -z "$as_dir" && as_dir=.
5213506e 13466 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13468 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13470 break 2
13471 fi
13472done
5213506e
RW
13473 done
13474IFS=$as_save_IFS
1c710c3c 13475
ca9f4b81
AO
13476fi
13477fi
1c710c3c 13478RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 13479if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13481$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 13482else
5213506e
RW
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13484$as_echo "no" >&6; }
ca9f4b81
AO
13485fi
13486
5213506e 13487
e8b05380
PB
13488 fi
13489 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13491set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13493$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13494if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 13495 $as_echo_n "(cached) " >&6
ca9f4b81 13496else
2693c0b0
PB
13497 if test -n "$RANLIB_FOR_TARGET"; then
13498 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 13499else
1c710c3c
DJ
13500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13501for as_dir in $PATH
13502do
13503 IFS=$as_save_IFS
13504 test -z "$as_dir" && as_dir=.
5213506e 13505 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13507 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 13508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13509 break 2
13510 fi
13511done
5213506e
RW
13512 done
13513IFS=$as_save_IFS
1c710c3c 13514
ca9f4b81
AO
13515fi
13516fi
1c710c3c 13517RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 13518if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13520$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 13521else
5213506e
RW
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13523$as_echo "no" >&6; }
ca9f4b81 13524fi
1c710c3c 13525
5213506e 13526
e8b05380
PB
13527 fi
13528 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13529 done
13530fi
1c710c3c 13531
e8b05380
PB
13532if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13533 set dummy ranlib
13534 if test $build = $target ; then
13535 RANLIB_FOR_TARGET="$2"
13536 else
13537 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13538 fi
1c00b503
PB
13539else
13540 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 13541fi
2693c0b0 13542
d1f8db0c
PB
13543else
13544 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
13545fi
13546
e8b05380
PB
13547
13548
13549
e7a82751
RM
13550if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13551 if test -n "$with_build_time_tools"; then
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13553$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13554 if test -x $with_build_time_tools/readelf; then
13555 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13556 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13558$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13559 else
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13561$as_echo "no" >&6; }
13562 fi
13563 elif test $build != $host && test $have_gcc_for_target = yes; then
13564 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13565 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13566 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13567 fi
13568fi
13569if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13570 # Extract the first word of "readelf", so it can be a program name with args.
13571set dummy readelf; ac_word=$2
13572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13573$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13574if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13575 $as_echo_n "(cached) " >&6
13576else
13577 case $READELF_FOR_TARGET in
13578 [\\/]* | ?:[\\/]*)
13579 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13580 ;;
13581 *)
13582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13583for as_dir in $gcc_cv_tool_dirs
13584do
13585 IFS=$as_save_IFS
13586 test -z "$as_dir" && as_dir=.
13587 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13589 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13591 break 2
13592 fi
13593done
13594 done
13595IFS=$as_save_IFS
13596
13597 ;;
13598esac
13599fi
13600READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13601if test -n "$READELF_FOR_TARGET"; then
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13603$as_echo "$READELF_FOR_TARGET" >&6; }
13604else
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13606$as_echo "no" >&6; }
13607fi
13608
13609
13610fi
13611if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13612
13613
13614if test -n "$READELF_FOR_TARGET"; then
13615 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13616elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13617 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13618fi
13619
13620if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13621 for ncn_progname in readelf; do
13622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13623set dummy ${ncn_progname}; ac_word=$2
13624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13625$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13626if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13627 $as_echo_n "(cached) " >&6
13628else
13629 if test -n "$READELF_FOR_TARGET"; then
13630 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13631else
13632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13633for as_dir in $PATH
13634do
13635 IFS=$as_save_IFS
13636 test -z "$as_dir" && as_dir=.
13637 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13639 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13641 break 2
13642 fi
13643done
13644 done
13645IFS=$as_save_IFS
13646
13647fi
13648fi
13649READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13650if test -n "$READELF_FOR_TARGET"; then
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13652$as_echo "$READELF_FOR_TARGET" >&6; }
13653else
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13655$as_echo "no" >&6; }
13656fi
13657
13658
13659 done
13660fi
13661
13662if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13663 for ncn_progname in readelf; do
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13665$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13666 if test -x $with_build_time_tools/${ncn_progname}; then
13667 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13669$as_echo "yes" >&6; }
13670 break
13671 else
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13673$as_echo "no" >&6; }
13674 fi
13675 done
13676fi
13677
13678if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13679 for ncn_progname in readelf; do
13680 if test -n "$ncn_target_tool_prefix"; then
13681 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13682set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13684$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13685if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13686 $as_echo_n "(cached) " >&6
13687else
13688 if test -n "$READELF_FOR_TARGET"; then
13689 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13690else
13691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13692for as_dir in $PATH
13693do
13694 IFS=$as_save_IFS
13695 test -z "$as_dir" && as_dir=.
13696 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13698 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13700 break 2
13701 fi
13702done
13703 done
13704IFS=$as_save_IFS
13705
13706fi
13707fi
13708READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13709if test -n "$READELF_FOR_TARGET"; then
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13711$as_echo "$READELF_FOR_TARGET" >&6; }
13712else
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13714$as_echo "no" >&6; }
13715fi
13716
13717
13718 fi
13719 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13720 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13721set dummy ${ncn_progname}; ac_word=$2
13722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13723$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13724if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13725 $as_echo_n "(cached) " >&6
13726else
13727 if test -n "$READELF_FOR_TARGET"; then
13728 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13729else
13730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13731for as_dir in $PATH
13732do
13733 IFS=$as_save_IFS
13734 test -z "$as_dir" && as_dir=.
13735 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13737 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13739 break 2
13740 fi
13741done
13742 done
13743IFS=$as_save_IFS
13744
13745fi
13746fi
13747READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13748if test -n "$READELF_FOR_TARGET"; then
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13750$as_echo "$READELF_FOR_TARGET" >&6; }
13751else
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13753$as_echo "no" >&6; }
13754fi
13755
13756
13757 fi
13758 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13759 done
13760fi
13761
13762if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13763 set dummy readelf
13764 if test $build = $target ; then
13765 READELF_FOR_TARGET="$2"
13766 else
13767 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13768 fi
13769else
13770 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13771fi
13772
13773else
13774 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13775fi
13776
13777
13778
13779
e8b05380
PB
13780if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13781 if test -n "$with_build_time_tools"; then
5213506e
RW
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13783$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13784 if test -x $with_build_time_tools/strip; then
13785 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13786 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13788$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 13789 else
5213506e
RW
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13791$as_echo "no" >&6; }
d1f8db0c 13792 fi
e8b05380
PB
13793 elif test $build != $host && test $have_gcc_for_target = yes; then
13794 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
13795 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13796 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
13797 fi
13798fi
3e19841a 13799if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13800 # Extract the first word of "strip", so it can be a program name with args.
13801set dummy strip; ac_word=$2
5213506e
RW
13802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13803$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13804if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
5213506e 13805 $as_echo_n "(cached) " >&6
e8b05380 13806else
1c710c3c
DJ
13807 case $STRIP_FOR_TARGET in
13808 [\\/]* | ?:[\\/]*)
e8b05380
PB
13809 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13810 ;;
e8b05380 13811 *)
1c710c3c
DJ
13812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813for as_dir in $gcc_cv_tool_dirs
13814do
13815 IFS=$as_save_IFS
13816 test -z "$as_dir" && as_dir=.
5213506e 13817 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13819 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13821 break 2
13822 fi
13823done
5213506e
RW
13824 done
13825IFS=$as_save_IFS
1c710c3c 13826
e8b05380
PB
13827 ;;
13828esac
13829fi
1c710c3c 13830STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 13831if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13833$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 13834else
5213506e
RW
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13836$as_echo "no" >&6; }
e8b05380
PB
13837fi
13838
5213506e 13839
e8b05380
PB
13840fi
13841if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
13842
13843
13844if test -n "$STRIP_FOR_TARGET"; then
13845 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13846elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13847 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13848fi
13849
13850if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13851 for ncn_progname in strip; do
13852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13853set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13855$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13856if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 13857 $as_echo_n "(cached) " >&6
278a7a38
AO
13858else
13859 if test -n "$STRIP_FOR_TARGET"; then
13860 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13861else
13862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13863for as_dir in $PATH
13864do
13865 IFS=$as_save_IFS
13866 test -z "$as_dir" && as_dir=.
5213506e 13867 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13869 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13871 break 2
13872 fi
13873done
5213506e
RW
13874 done
13875IFS=$as_save_IFS
278a7a38
AO
13876
13877fi
13878fi
13879STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13880if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13882$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13883else
5213506e
RW
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13885$as_echo "no" >&6; }
278a7a38
AO
13886fi
13887
5213506e 13888
278a7a38
AO
13889 done
13890fi
13891
13892if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13893 for ncn_progname in strip; do
5213506e
RW
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13895$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13896 if test -x $with_build_time_tools/${ncn_progname}; then
13897 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13899$as_echo "yes" >&6; }
e8b05380
PB
13900 break
13901 else
5213506e
RW
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13903$as_echo "no" >&6; }
e8b05380
PB
13904 fi
13905 done
13906fi
13907
13908if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13909 for ncn_progname in strip; do
13910 if test -n "$ncn_target_tool_prefix"; then
13911 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13912set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13914$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13915if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 13916 $as_echo_n "(cached) " >&6
af71363e
AS
13917else
13918 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13919 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13920else
13921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13922for as_dir in $PATH
13923do
13924 IFS=$as_save_IFS
13925 test -z "$as_dir" && as_dir=.
5213506e 13926 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13928 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13930 break 2
13931 fi
13932done
5213506e
RW
13933 done
13934IFS=$as_save_IFS
1c710c3c 13935
040b1c5a
GK
13936fi
13937fi
1c710c3c 13938STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13939if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13941$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13942else
5213506e
RW
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13944$as_echo "no" >&6; }
040b1c5a
GK
13945fi
13946
5213506e 13947
e8b05380
PB
13948 fi
13949 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13951set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13953$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13954if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 13955 $as_echo_n "(cached) " >&6
040b1c5a
GK
13956else
13957 if test -n "$STRIP_FOR_TARGET"; then
13958 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13959else
1c710c3c
DJ
13960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13961for as_dir in $PATH
13962do
13963 IFS=$as_save_IFS
13964 test -z "$as_dir" && as_dir=.
5213506e 13965 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13967 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13969 break 2
13970 fi
13971done
5213506e
RW
13972 done
13973IFS=$as_save_IFS
1c710c3c 13974
040b1c5a
GK
13975fi
13976fi
1c710c3c 13977STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13978if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13980$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13981else
5213506e
RW
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13983$as_echo "no" >&6; }
040b1c5a 13984fi
1c710c3c 13985
5213506e 13986
e8b05380
PB
13987 fi
13988 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13989 done
13990fi
1c710c3c 13991
040b1c5a
GK
13992if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13993 set dummy strip
13994 if test $build = $target ; then
13995 STRIP_FOR_TARGET="$2"
13996 else
13997 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13998 fi
1c00b503
PB
13999else
14000 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
14001fi
14002
d1f8db0c
PB
14003else
14004 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
14005fi
14006
14007
14008
14009
14010if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
14011 if test -n "$with_build_time_tools"; then
5213506e
RW
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
14013$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14014 if test -x $with_build_time_tools/windres; then
14015 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
14016 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
14018$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 14019 else
5213506e
RW
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14021$as_echo "no" >&6; }
d1f8db0c 14022 fi
e8b05380
PB
14023 elif test $build != $host && test $have_gcc_for_target = yes; then
14024 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
14025 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
14026 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
14027 fi
14028fi
3e19841a 14029if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14030 # Extract the first word of "windres", so it can be a program name with args.
14031set dummy windres; ac_word=$2
5213506e
RW
14032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14033$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14034if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
5213506e 14035 $as_echo_n "(cached) " >&6
e8b05380 14036else
1c710c3c
DJ
14037 case $WINDRES_FOR_TARGET in
14038 [\\/]* | ?:[\\/]*)
e8b05380
PB
14039 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
14040 ;;
e8b05380 14041 *)
1c710c3c
DJ
14042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14043for as_dir in $gcc_cv_tool_dirs
14044do
14045 IFS=$as_save_IFS
14046 test -z "$as_dir" && as_dir=.
5213506e 14047 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14049 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14051 break 2
14052 fi
14053done
5213506e
RW
14054 done
14055IFS=$as_save_IFS
1c710c3c 14056
e8b05380
PB
14057 ;;
14058esac
14059fi
1c710c3c 14060WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 14061if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14063$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 14064else
5213506e
RW
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14066$as_echo "no" >&6; }
e8b05380
PB
14067fi
14068
5213506e 14069
e8b05380
PB
14070fi
14071if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
14072
14073
14074if test -n "$WINDRES_FOR_TARGET"; then
14075 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
14076elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14077 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14078fi
14079
14080if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14081 for ncn_progname in windres; do
14082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14083set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14085$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14086if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 14087 $as_echo_n "(cached) " >&6
278a7a38
AO
14088else
14089 if test -n "$WINDRES_FOR_TARGET"; then
14090 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14091else
14092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14093for as_dir in $PATH
14094do
14095 IFS=$as_save_IFS
14096 test -z "$as_dir" && as_dir=.
5213506e 14097 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14099 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 14100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14101 break 2
14102 fi
14103done
5213506e
RW
14104 done
14105IFS=$as_save_IFS
278a7a38
AO
14106
14107fi
14108fi
14109WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14110if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14112$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 14113else
5213506e
RW
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14115$as_echo "no" >&6; }
278a7a38
AO
14116fi
14117
5213506e 14118
278a7a38
AO
14119 done
14120fi
14121
14122if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14123 for ncn_progname in windres; do
5213506e
RW
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14125$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14126 if test -x $with_build_time_tools/${ncn_progname}; then
14127 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14129$as_echo "yes" >&6; }
e8b05380
PB
14130 break
14131 else
5213506e
RW
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14133$as_echo "no" >&6; }
e8b05380
PB
14134 fi
14135 done
14136fi
14137
14138if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14139 for ncn_progname in windres; do
14140 if test -n "$ncn_target_tool_prefix"; then
14141 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14142set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14144$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14145if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 14146 $as_echo_n "(cached) " >&6
ca9f4b81 14147else
4de997d1
PB
14148 if test -n "$WINDRES_FOR_TARGET"; then
14149 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 14150else
1c710c3c
DJ
14151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14152for as_dir in $PATH
14153do
14154 IFS=$as_save_IFS
14155 test -z "$as_dir" && as_dir=.
5213506e 14156 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14158 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14160 break 2
14161 fi
14162done
5213506e
RW
14163 done
14164IFS=$as_save_IFS
1c710c3c 14165
ca9f4b81
AO
14166fi
14167fi
1c710c3c 14168WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 14169if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14171$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 14172else
5213506e
RW
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14174$as_echo "no" >&6; }
ca9f4b81
AO
14175fi
14176
5213506e 14177
e8b05380
PB
14178 fi
14179 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
14180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14181set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14183$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14184if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 14185 $as_echo_n "(cached) " >&6
ca9f4b81 14186else
2693c0b0
PB
14187 if test -n "$WINDRES_FOR_TARGET"; then
14188 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 14189else
1c710c3c
DJ
14190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191for as_dir in $PATH
14192do
14193 IFS=$as_save_IFS
14194 test -z "$as_dir" && as_dir=.
5213506e 14195 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14197 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 14198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14199 break 2
14200 fi
14201done
5213506e
RW
14202 done
14203IFS=$as_save_IFS
1c710c3c 14204
ca9f4b81
AO
14205fi
14206fi
1c710c3c 14207WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 14208if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14210$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 14211else
5213506e
RW
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14213$as_echo "no" >&6; }
ca9f4b81 14214fi
1c710c3c 14215
5213506e 14216
e8b05380
PB
14217 fi
14218 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14219 done
14220fi
1c710c3c 14221
2693c0b0
PB
14222if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14223 set dummy windres
14224 if test $build = $target ; then
14225 WINDRES_FOR_TARGET="$2"
ca9f4b81 14226 else
2693c0b0 14227 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 14228 fi
1c00b503
PB
14229else
14230 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
14231fi
14232
d1f8db0c
PB
14233else
14234 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
14235fi
14236
4977bab6 14237
901119ae
KT
14238
14239
14240if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14241 if test -n "$with_build_time_tools"; then
5213506e
RW
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14243$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
14244 if test -x $with_build_time_tools/windmc; then
14245 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14246 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14248$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 14249 else
5213506e
RW
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14251$as_echo "no" >&6; }
901119ae
KT
14252 fi
14253 elif test $build != $host && test $have_gcc_for_target = yes; then
14254 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
14255 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14256 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
14257 fi
14258fi
14259if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14260 # Extract the first word of "windmc", so it can be a program name with args.
14261set dummy windmc; ac_word=$2
5213506e
RW
14262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14263$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14264if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
5213506e 14265 $as_echo_n "(cached) " >&6
901119ae
KT
14266else
14267 case $WINDMC_FOR_TARGET in
14268 [\\/]* | ?:[\\/]*)
14269 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14270 ;;
14271 *)
14272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14273for as_dir in $gcc_cv_tool_dirs
14274do
14275 IFS=$as_save_IFS
14276 test -z "$as_dir" && as_dir=.
5213506e 14277 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14279 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14281 break 2
14282 fi
14283done
5213506e
RW
14284 done
14285IFS=$as_save_IFS
901119ae
KT
14286
14287 ;;
14288esac
14289fi
14290WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 14291if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14293$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14294else
5213506e
RW
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14296$as_echo "no" >&6; }
901119ae
KT
14297fi
14298
5213506e 14299
901119ae
KT
14300fi
14301if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14302
14303
14304if test -n "$WINDMC_FOR_TARGET"; then
14305 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14306elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14307 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14308fi
14309
14310if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14311 for ncn_progname in windmc; do
14312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14313set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14315$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14316if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 14317 $as_echo_n "(cached) " >&6
901119ae
KT
14318else
14319 if test -n "$WINDMC_FOR_TARGET"; then
14320 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14321else
14322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14323for as_dir in $PATH
14324do
14325 IFS=$as_save_IFS
14326 test -z "$as_dir" && as_dir=.
5213506e 14327 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14329 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 14330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14331 break 2
14332 fi
14333done
5213506e
RW
14334 done
14335IFS=$as_save_IFS
901119ae
KT
14336
14337fi
14338fi
14339WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14340if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14342$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14343else
5213506e
RW
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14345$as_echo "no" >&6; }
901119ae
KT
14346fi
14347
5213506e 14348
901119ae
KT
14349 done
14350fi
14351
14352if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14353 for ncn_progname in windmc; do
5213506e
RW
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14355$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
14356 if test -x $with_build_time_tools/${ncn_progname}; then
14357 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14359$as_echo "yes" >&6; }
901119ae
KT
14360 break
14361 else
5213506e
RW
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14363$as_echo "no" >&6; }
901119ae
KT
14364 fi
14365 done
14366fi
14367
14368if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14369 for ncn_progname in windmc; do
14370 if test -n "$ncn_target_tool_prefix"; then
14371 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14372set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14374$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14375if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 14376 $as_echo_n "(cached) " >&6
901119ae
KT
14377else
14378 if test -n "$WINDMC_FOR_TARGET"; then
14379 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14380else
14381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14382for as_dir in $PATH
14383do
14384 IFS=$as_save_IFS
14385 test -z "$as_dir" && as_dir=.
5213506e 14386 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14388 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14390 break 2
14391 fi
14392done
5213506e
RW
14393 done
14394IFS=$as_save_IFS
901119ae
KT
14395
14396fi
14397fi
14398WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14399if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14401$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14402else
5213506e
RW
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14404$as_echo "no" >&6; }
901119ae
KT
14405fi
14406
5213506e 14407
901119ae
KT
14408 fi
14409 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14411set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14413$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14414if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 14415 $as_echo_n "(cached) " >&6
901119ae
KT
14416else
14417 if test -n "$WINDMC_FOR_TARGET"; then
14418 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14419else
14420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14421for as_dir in $PATH
14422do
14423 IFS=$as_save_IFS
14424 test -z "$as_dir" && as_dir=.
5213506e 14425 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14427 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 14428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14429 break 2
14430 fi
14431done
5213506e
RW
14432 done
14433IFS=$as_save_IFS
901119ae
KT
14434
14435fi
14436fi
14437WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14438if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14440$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14441else
5213506e
RW
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14443$as_echo "no" >&6; }
901119ae
KT
14444fi
14445
5213506e 14446
901119ae
KT
14447 fi
14448 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14449 done
14450fi
14451
14452if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14453 set dummy windmc
14454 if test $build = $target ; then
14455 WINDMC_FOR_TARGET="$2"
14456 else
14457 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14458 fi
1c00b503
PB
14459else
14460 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
14461fi
14462
14463else
14464 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14465fi
14466
14467
2abefe3d
PB
14468RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14469
5213506e
RW
14470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14471$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 14472if test "x${build}" != "x${host}" ; then
e8b05380
PB
14473 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14474 # We already found the complete path
172e41aa 14475 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14477$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14478 else
14479 # Canadian cross, just use what we found
5213506e
RW
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14481$as_echo "pre-installed" >&6; }
e8b05380 14482 fi
2abefe3d
PB
14483else
14484 ok=yes
14485 case " ${configdirs} " in
14486 *" binutils "*) ;;
14487 *) ok=no ;;
14488 esac
1c710c3c 14489
2abefe3d
PB
14490 if test $ok = yes; then
14491 # An in-tree tool is available and we can use it
14492 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14494$as_echo "just compiled" >&6; }
e8b05380
PB
14495 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14496 # We already found the complete path
172e41aa 14497 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14499$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14500 elif test "x$target" = "x$host"; then
14501 # We can use an host tool
14502 AR_FOR_TARGET='$(AR)'
5213506e
RW
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14504$as_echo "host tool" >&6; }
2abefe3d
PB
14505 else
14506 # We need a cross tool
5213506e
RW
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14508$as_echo "pre-installed" >&6; }
2abefe3d
PB
14509 fi
14510fi
0b0dc272 14511
5213506e
RW
14512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14513$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 14514if test "x${build}" != "x${host}" ; then
e8b05380
PB
14515 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14516 # We already found the complete path
172e41aa 14517 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14519$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14520 else
14521 # Canadian cross, just use what we found
5213506e
RW
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14523$as_echo "pre-installed" >&6; }
e8b05380 14524 fi
2abefe3d
PB
14525else
14526 ok=yes
14527 case " ${configdirs} " in
14528 *" gas "*) ;;
14529 *) ok=no ;;
14530 esac
1c710c3c 14531
2abefe3d
PB
14532 if test $ok = yes; then
14533 # An in-tree tool is available and we can use it
14534 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14536$as_echo "just compiled" >&6; }
e8b05380
PB
14537 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14538 # We already found the complete path
172e41aa 14539 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14541$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14542 elif test "x$target" = "x$host"; then
14543 # We can use an host tool
14544 AS_FOR_TARGET='$(AS)'
5213506e
RW
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14546$as_echo "host tool" >&6; }
2abefe3d
PB
14547 else
14548 # We need a cross tool
5213506e
RW
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14550$as_echo "pre-installed" >&6; }
2abefe3d
PB
14551 fi
14552fi
0b0dc272 14553
5213506e
RW
14554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14555$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 14556if test "x${build}" != "x${host}" ; then
e8b05380
PB
14557 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14558 # We already found the complete path
172e41aa 14559 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14561$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14562 else
14563 # Canadian cross, just use what we found
5213506e
RW
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14565$as_echo "pre-installed" >&6; }
e8b05380 14566 fi
2abefe3d
PB
14567else
14568 ok=yes
14569 case " ${configdirs} " in
14570 *" gcc "*) ;;
14571 *) ok=no ;;
14572 esac
1c710c3c 14573
2abefe3d
PB
14574 if test $ok = yes; then
14575 # An in-tree tool is available and we can use it
14576 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14578$as_echo "just compiled" >&6; }
e8b05380
PB
14579 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14580 # We already found the complete path
172e41aa 14581 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14583$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14584 elif test "x$target" = "x$host"; then
14585 # We can use an host tool
14586 CC_FOR_TARGET='$(CC)'
5213506e
RW
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14588$as_echo "host tool" >&6; }
2abefe3d
PB
14589 else
14590 # We need a cross tool
5213506e
RW
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14592$as_echo "pre-installed" >&6; }
2abefe3d
PB
14593 fi
14594fi
0b0dc272 14595
5213506e
RW
14596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14597$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 14598if test "x${build}" != "x${host}" ; then
e8b05380
PB
14599 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14600 # We already found the complete path
172e41aa 14601 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14603$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14604 else
14605 # Canadian cross, just use what we found
5213506e
RW
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14607$as_echo "pre-installed" >&6; }
e8b05380 14608 fi
2abefe3d
PB
14609else
14610 ok=yes
14611 case " ${configdirs} " in
14612 *" gcc "*) ;;
14613 *) ok=no ;;
14614 esac
14615 case ,${enable_languages}, in
14616 *,c++,*) ;;
14617 *) ok=no ;;
14618 esac
14619 if test $ok = yes; then
14620 # An in-tree tool is available and we can use it
2077db1b 14621 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
5213506e
RW
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14623$as_echo "just compiled" >&6; }
e8b05380
PB
14624 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14625 # We already found the complete path
172e41aa 14626 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14628$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14629 elif test "x$target" = "x$host"; then
14630 # We can use an host tool
14631 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14633$as_echo "host tool" >&6; }
2abefe3d
PB
14634 else
14635 # We need a cross tool
5213506e
RW
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14637$as_echo "pre-installed" >&6; }
2abefe3d
PB
14638 fi
14639fi
0b0dc272 14640
5213506e
RW
14641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14642$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 14643if test "x${build}" != "x${host}" ; then
e8b05380
PB
14644 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14645 # We already found the complete path
172e41aa 14646 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14648$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14649 else
14650 # Canadian cross, just use what we found
5213506e
RW
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14652$as_echo "pre-installed" >&6; }
e8b05380 14653 fi
2abefe3d
PB
14654else
14655 ok=yes
14656 case " ${configdirs} " in
14657 *" gcc "*) ;;
14658 *) ok=no ;;
14659 esac
14660 case ,${enable_languages}, in
14661 *,c++,*) ;;
14662 *) ok=no ;;
14663 esac
14664 if test $ok = yes; then
14665 # An in-tree tool is available and we can use it
2077db1b 14666 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
5213506e
RW
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14668$as_echo "just compiled" >&6; }
e8b05380
PB
14669 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14670 # We already found the complete path
172e41aa 14671 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14673$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14674 elif test "x$target" = "x$host"; then
14675 # We can use an host tool
14676 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14678$as_echo "host tool" >&6; }
2abefe3d
PB
14679 else
14680 # We need a cross tool
5213506e
RW
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14682$as_echo "pre-installed" >&6; }
2abefe3d
PB
14683 fi
14684fi
0b0dc272 14685
5213506e
RW
14686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14687$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 14688if test "x${build}" != "x${host}" ; then
e8b05380
PB
14689 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14690 # We already found the complete path
172e41aa 14691 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14693$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14694 else
14695 # Canadian cross, just use what we found
5213506e
RW
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14697$as_echo "pre-installed" >&6; }
e8b05380 14698 fi
2abefe3d
PB
14699else
14700 ok=yes
14701 case " ${configdirs} " in
14702 *" binutils "*) ;;
14703 *) ok=no ;;
14704 esac
1c710c3c 14705
2abefe3d
PB
14706 if test $ok = yes; then
14707 # An in-tree tool is available and we can use it
14708 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14710$as_echo "just compiled" >&6; }
e8b05380
PB
14711 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14712 # We already found the complete path
172e41aa 14713 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14715$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14716 elif test "x$target" = "x$host"; then
14717 # We can use an host tool
14718 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14720$as_echo "host tool" >&6; }
2abefe3d
PB
14721 else
14722 # We need a cross tool
5213506e
RW
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14724$as_echo "pre-installed" >&6; }
2abefe3d
PB
14725 fi
14726fi
0b0dc272 14727
5213506e
RW
14728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14729$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 14730if test "x${build}" != "x${host}" ; then
e8b05380
PB
14731 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14732 # We already found the complete path
172e41aa 14733 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14735$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14736 else
14737 # Canadian cross, just use what we found
5213506e
RW
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14739$as_echo "pre-installed" >&6; }
e8b05380 14740 fi
2abefe3d
PB
14741else
14742 ok=yes
14743 case " ${configdirs} " in
14744 *" gcc "*) ;;
14745 *) ok=no ;;
14746 esac
1c710c3c 14747
2abefe3d
PB
14748 if test $ok = yes; then
14749 # An in-tree tool is available and we can use it
14750 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14752$as_echo "just compiled" >&6; }
e8b05380
PB
14753 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14754 # We already found the complete path
172e41aa 14755 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14757$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14758 elif test "x$target" = "x$host"; then
14759 # We can use an host tool
14760 GCC_FOR_TARGET='$()'
5213506e
RW
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14762$as_echo "host tool" >&6; }
2abefe3d
PB
14763 else
14764 # We need a cross tool
5213506e
RW
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14766$as_echo "pre-installed" >&6; }
2abefe3d
PB
14767 fi
14768fi
0b0dc272 14769
5213506e
RW
14770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14771$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 14772if test "x${build}" != "x${host}" ; then
e8b05380
PB
14773 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14774 # We already found the complete path
172e41aa 14775 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14777$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14778 else
14779 # Canadian cross, just use what we found
5213506e
RW
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14781$as_echo "pre-installed" >&6; }
e8b05380 14782 fi
2abefe3d
PB
14783else
14784 ok=yes
14785 case " ${configdirs} " in
14786 *" gcc "*) ;;
14787 *) ok=no ;;
14788 esac
14789 case ,${enable_languages}, in
14790 *,fortran,*) ;;
14791 *) ok=no ;;
14792 esac
14793 if test $ok = yes; then
14794 # An in-tree tool is available and we can use it
14795 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14797$as_echo "just compiled" >&6; }
e8b05380
PB
14798 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14799 # We already found the complete path
172e41aa 14800 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
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; }
2abefe3d
PB
14803 elif test "x$target" = "x$host"; then
14804 # We can use an host tool
14805 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14807$as_echo "host tool" >&6; }
2abefe3d
PB
14808 else
14809 # We need a cross tool
5213506e
RW
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14811$as_echo "pre-installed" >&6; }
2abefe3d
PB
14812 fi
14813fi
0b0dc272 14814
632e2a07
ILT
14815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14816$as_echo_n "checking where to find the target gccgo... " >&6; }
14817if test "x${build}" != "x${host}" ; then
14818 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14819 # We already found the complete path
14820 ac_dir=`dirname $GOC_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 *" gcc "*) ;;
14832 *) ok=no ;;
14833 esac
14834 case ,${enable_languages}, in
14835 *,go,*) ;;
14836 *) ok=no ;;
14837 esac
14838 if test $ok = yes; then
14839 # An in-tree tool is available and we can use it
14840 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14842$as_echo "just compiled" >&6; }
14843 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14844 # We already found the complete path
14845 ac_dir=`dirname $GOC_FOR_TARGET`
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14847$as_echo "pre-installed in $ac_dir" >&6; }
14848 elif test "x$target" = "x$host"; then
14849 # We can use an host tool
14850 GOC_FOR_TARGET='$(GOC)'
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14852$as_echo "host tool" >&6; }
14853 else
14854 # We need a cross tool
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14856$as_echo "pre-installed" >&6; }
14857 fi
14858fi
14859
b4c522fa
IB
14860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
14861$as_echo_n "checking where to find the target gdc... " >&6; }
14862if test "x${build}" != "x${host}" ; then
14863 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14864 # We already found the complete path
14865 ac_dir=`dirname $GDC_FOR_TARGET`
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14867$as_echo "pre-installed in $ac_dir" >&6; }
14868 else
14869 # Canadian cross, just use what we found
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14871$as_echo "pre-installed" >&6; }
14872 fi
14873else
14874 ok=yes
14875 case " ${configdirs} " in
14876 *" gcc "*) ;;
14877 *) ok=no ;;
14878 esac
14879 case ,${enable_languages}, in
14880 *,d,*) ;;
14881 *) ok=no ;;
14882 esac
14883 if test $ok = yes; then
14884 # An in-tree tool is available and we can use it
14885 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14887$as_echo "just compiled" >&6; }
14888 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14889 # We already found the complete path
14890 ac_dir=`dirname $GDC_FOR_TARGET`
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14892$as_echo "pre-installed in $ac_dir" >&6; }
14893 elif test "x$target" = "x$host"; then
14894 # We can use an host tool
14895 GDC_FOR_TARGET='$(GDC)'
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14897$as_echo "host tool" >&6; }
14898 else
14899 # We need a cross tool
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14901$as_echo "pre-installed" >&6; }
14902 fi
14903fi
14904
5213506e
RW
14905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14906$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14907if test "x${build}" != "x${host}" ; then
e8b05380
PB
14908 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14909 # We already found the complete path
172e41aa 14910 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14912$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14913 else
14914 # Canadian cross, just use what we found
5213506e
RW
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14916$as_echo "pre-installed" >&6; }
e8b05380 14917 fi
2abefe3d
PB
14918else
14919 ok=yes
14920 case " ${configdirs} " in
14921 *" ld "*) ;;
14922 *) ok=no ;;
14923 esac
1c710c3c 14924
2abefe3d
PB
14925 if test $ok = yes; then
14926 # An in-tree tool is available and we can use it
14927 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14929$as_echo "just compiled" >&6; }
e8b05380
PB
14930 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14931 # We already found the complete path
172e41aa 14932 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14934$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14935 elif test "x$target" = "x$host"; then
14936 # We can use an host tool
14937 LD_FOR_TARGET='$(LD)'
5213506e
RW
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14939$as_echo "host tool" >&6; }
2abefe3d
PB
14940 else
14941 # We need a cross tool
5213506e
RW
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14943$as_echo "pre-installed" >&6; }
2abefe3d
PB
14944 fi
14945fi
0b0dc272 14946
5213506e
RW
14947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14948$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14949if test "x${build}" != "x${host}" ; then
e8b05380
PB
14950 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14951 # We already found the complete path
172e41aa 14952 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14954$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14955 else
14956 # Canadian cross, just use what we found
5213506e
RW
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14958$as_echo "pre-installed" >&6; }
e8b05380 14959 fi
2abefe3d 14960else
e8b05380
PB
14961 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14962 # We already found the complete path
172e41aa 14963 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14965$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14966 elif test "x$target" = "x$host"; then
2abefe3d
PB
14967 # We can use an host tool
14968 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14970$as_echo "host tool" >&6; }
2abefe3d
PB
14971 else
14972 # We need a cross tool
5213506e
RW
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14974$as_echo "pre-installed" >&6; }
2abefe3d
PB
14975 fi
14976fi
0b0dc272 14977
5213506e
RW
14978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14979$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14980if test "x${build}" != "x${host}" ; then
e8b05380
PB
14981 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14982 # We already found the complete path
172e41aa 14983 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14985$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14986 else
14987 # Canadian cross, just use what we found
5213506e
RW
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14989$as_echo "pre-installed" >&6; }
e8b05380 14990 fi
2abefe3d
PB
14991else
14992 ok=yes
14993 case " ${configdirs} " in
14994 *" binutils "*) ;;
14995 *) ok=no ;;
14996 esac
1c710c3c 14997
2abefe3d
PB
14998 if test $ok = yes; then
14999 # An in-tree tool is available and we can use it
15000 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15002$as_echo "just compiled" >&6; }
e8b05380
PB
15003 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
15004 # We already found the complete path
172e41aa 15005 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15007$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15008 elif test "x$target" = "x$host"; then
15009 # We can use an host tool
15010 NM_FOR_TARGET='$(NM)'
5213506e
RW
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15012$as_echo "host tool" >&6; }
2abefe3d
PB
15013 else
15014 # We need a cross tool
5213506e
RW
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15016$as_echo "pre-installed" >&6; }
2abefe3d
PB
15017 fi
15018fi
0b0dc272 15019
9bccfdf5
AP
15020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
15021$as_echo_n "checking where to find the target objcopy... " >&6; }
15022if test "x${build}" != "x${host}" ; then
15023 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
15024 # We already found the complete path
15025 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15027$as_echo "pre-installed in $ac_dir" >&6; }
15028 else
15029 # Canadian cross, just use what we found
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15031$as_echo "pre-installed" >&6; }
15032 fi
15033else
15034 ok=yes
15035 case " ${configdirs} " in
15036 *" binutils "*) ;;
15037 *) ok=no ;;
15038 esac
15039
15040 if test $ok = yes; then
15041 # An in-tree tool is available and we can use it
15042 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15044$as_echo "just compiled" >&6; }
15045 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
15046 # We already found the complete path
15047 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15049$as_echo "pre-installed in $ac_dir" >&6; }
15050 elif test "x$target" = "x$host"; then
15051 # We can use an host tool
ec8fd1c0 15052 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15054$as_echo "host tool" >&6; }
15055 else
15056 # We need a cross tool
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15058$as_echo "pre-installed" >&6; }
15059 fi
15060fi
15061
5213506e
RW
15062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
15063$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 15064if test "x${build}" != "x${host}" ; then
e8b05380
PB
15065 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
15066 # We already found the complete path
172e41aa 15067 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15069$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15070 else
15071 # Canadian cross, just use what we found
5213506e
RW
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15073$as_echo "pre-installed" >&6; }
e8b05380 15074 fi
2abefe3d
PB
15075else
15076 ok=yes
15077 case " ${configdirs} " in
15078 *" binutils "*) ;;
15079 *) ok=no ;;
15080 esac
1c710c3c 15081
2abefe3d
PB
15082 if test $ok = yes; then
15083 # An in-tree tool is available and we can use it
15084 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15086$as_echo "just compiled" >&6; }
e8b05380
PB
15087 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
15088 # We already found the complete path
172e41aa 15089 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15091$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15092 elif test "x$target" = "x$host"; then
15093 # We can use an host tool
15094 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15096$as_echo "host tool" >&6; }
2abefe3d
PB
15097 else
15098 # We need a cross tool
5213506e
RW
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15100$as_echo "pre-installed" >&6; }
2abefe3d
PB
15101 fi
15102fi
0b0dc272 15103
e4a9a572
IS
15104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
15105$as_echo_n "checking where to find the target otool... " >&6; }
15106if test "x${build}" != "x${host}" ; then
15107 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15108 # We already found the complete path
15109 ac_dir=`dirname $OTOOL_FOR_TARGET`
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15111$as_echo "pre-installed in $ac_dir" >&6; }
15112 else
15113 # Canadian cross, just use what we found
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15115$as_echo "pre-installed" >&6; }
15116 fi
15117else
15118 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15119 # We already found the complete path
15120 ac_dir=`dirname $OTOOL_FOR_TARGET`
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15122$as_echo "pre-installed in $ac_dir" >&6; }
15123 elif test "x$target" = "x$host"; then
15124 # We can use an host tool
15125 OTOOL_FOR_TARGET='$(OTOOL)'
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15127$as_echo "host tool" >&6; }
15128 else
15129 # We need a cross tool
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15131$as_echo "pre-installed" >&6; }
15132 fi
15133fi
15134
5213506e
RW
15135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
15136$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 15137if test "x${build}" != "x${host}" ; then
e8b05380
PB
15138 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15139 # We already found the complete path
172e41aa 15140 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15142$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15143 else
15144 # Canadian cross, just use what we found
5213506e
RW
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15146$as_echo "pre-installed" >&6; }
e8b05380 15147 fi
2abefe3d
PB
15148else
15149 ok=yes
15150 case " ${configdirs} " in
15151 *" binutils "*) ;;
15152 *) ok=no ;;
15153 esac
1c710c3c 15154
2abefe3d
PB
15155 if test $ok = yes; then
15156 # An in-tree tool is available and we can use it
15157 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15159$as_echo "just compiled" >&6; }
e8b05380
PB
15160 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15161 # We already found the complete path
172e41aa 15162 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15164$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15165 elif test "x$target" = "x$host"; then
15166 # We can use an host tool
15167 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15169$as_echo "host tool" >&6; }
2abefe3d
PB
15170 else
15171 # We need a cross tool
5213506e
RW
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15173$as_echo "pre-installed" >&6; }
2abefe3d
PB
15174 fi
15175fi
0b0dc272 15176
e7a82751
RM
15177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
15178$as_echo_n "checking where to find the target readelf... " >&6; }
15179if test "x${build}" != "x${host}" ; then
15180 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15181 # We already found the complete path
15182 ac_dir=`dirname $READELF_FOR_TARGET`
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15184$as_echo "pre-installed in $ac_dir" >&6; }
15185 else
15186 # Canadian cross, just use what we found
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15188$as_echo "pre-installed" >&6; }
15189 fi
15190else
15191 ok=yes
15192 case " ${configdirs} " in
15193 *" binutils "*) ;;
15194 *) ok=no ;;
15195 esac
15196
15197 if test $ok = yes; then
15198 # An in-tree tool is available and we can use it
15199 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15201$as_echo "just compiled" >&6; }
15202 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15203 # We already found the complete path
15204 ac_dir=`dirname $READELF_FOR_TARGET`
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15206$as_echo "pre-installed in $ac_dir" >&6; }
15207 elif test "x$target" = "x$host"; then
15208 # We can use an host tool
15209 READELF_FOR_TARGET='$(READELF)'
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15211$as_echo "host tool" >&6; }
15212 else
15213 # We need a cross tool
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15215$as_echo "pre-installed" >&6; }
15216 fi
15217fi
15218
5213506e
RW
15219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
15220$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 15221if test "x${build}" != "x${host}" ; then
e8b05380
PB
15222 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15223 # We already found the complete path
172e41aa 15224 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15226$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15227 else
15228 # Canadian cross, just use what we found
5213506e
RW
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15230$as_echo "pre-installed" >&6; }
e8b05380 15231 fi
2abefe3d
PB
15232else
15233 ok=yes
15234 case " ${configdirs} " in
15235 *" binutils "*) ;;
15236 *) ok=no ;;
15237 esac
1c710c3c 15238
2abefe3d
PB
15239 if test $ok = yes; then
15240 # An in-tree tool is available and we can use it
455c8f48 15241 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15243$as_echo "just compiled" >&6; }
e8b05380
PB
15244 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15245 # We already found the complete path
172e41aa 15246 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15248$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15249 elif test "x$target" = "x$host"; then
15250 # We can use an host tool
15251 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15253$as_echo "host tool" >&6; }
2abefe3d
PB
15254 else
15255 # We need a cross tool
5213506e
RW
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15257$as_echo "pre-installed" >&6; }
2abefe3d
PB
15258 fi
15259fi
0b0dc272 15260
5213506e
RW
15261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
15262$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 15263if test "x${build}" != "x${host}" ; then
e8b05380
PB
15264 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15265 # We already found the complete path
172e41aa 15266 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15268$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15269 else
15270 # Canadian cross, just use what we found
5213506e
RW
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15272$as_echo "pre-installed" >&6; }
e8b05380 15273 fi
2abefe3d
PB
15274else
15275 ok=yes
15276 case " ${configdirs} " in
15277 *" binutils "*) ;;
15278 *) ok=no ;;
15279 esac
1c710c3c 15280
2abefe3d
PB
15281 if test $ok = yes; then
15282 # An in-tree tool is available and we can use it
15283 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15285$as_echo "just compiled" >&6; }
e8b05380
PB
15286 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15287 # We already found the complete path
172e41aa 15288 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15290$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15291 elif test "x$target" = "x$host"; then
15292 # We can use an host tool
15293 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15295$as_echo "host tool" >&6; }
2abefe3d
PB
15296 else
15297 # We need a cross tool
5213506e
RW
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15299$as_echo "pre-installed" >&6; }
2abefe3d 15300 fi
671aa708 15301fi
be912515 15302
5213506e
RW
15303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15304$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
15305if test "x${build}" != "x${host}" ; then
15306 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15307 # We already found the complete path
15308 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15310$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
15311 else
15312 # Canadian cross, just use what we found
5213506e
RW
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15314$as_echo "pre-installed" >&6; }
901119ae
KT
15315 fi
15316else
15317 ok=yes
15318 case " ${configdirs} " in
15319 *" binutils "*) ;;
15320 *) ok=no ;;
15321 esac
15322
15323 if test $ok = yes; then
15324 # An in-tree tool is available and we can use it
15325 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15327$as_echo "just compiled" >&6; }
901119ae
KT
15328 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15329 # We already found the complete path
15330 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15332$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
15333 elif test "x$target" = "x$host"; then
15334 # We can use an host tool
15335 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15337$as_echo "host tool" >&6; }
901119ae
KT
15338 else
15339 # We need a cross tool
5213506e
RW
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15341$as_echo "pre-installed" >&6; }
901119ae
KT
15342 fi
15343fi
15344
be912515
NN
15345
15346
2abefe3d 15347
0b0dc272 15348
671aa708
NN
15349# Certain tools may need extra flags.
15350AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15351RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15352NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15353
2abefe3d
PB
15354# When building target libraries, except in a Canadian cross, we use
15355# the same toolchain as the compiler we just built.
15356COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15357COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15358COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15359if test $host = $build; then
15360 case " $configdirs " in
15361 *" gcc "*)
15362 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15363 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15364 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15365 ;;
15366 esac
15367fi
15368
15369
15370
15371
15372
5213506e
RW
15373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15374$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15375# Check whether --enable-maintainer-mode was given.
15376if test "${enable_maintainer_mode+set}" = set; then :
15377 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
15378else
15379 USE_MAINTAINER_MODE=no
5213506e
RW
15380fi
15381
15382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15383$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
15384
15385
15386if test "$USE_MAINTAINER_MODE" = yes; then
15387 MAINTAINER_MODE_TRUE=
15388 MAINTAINER_MODE_FALSE='#'
15389else
15390 MAINTAINER_MODE_TRUE='#'
15391 MAINTAINER_MODE_FALSE=
1c710c3c 15392fi
ee03dc5e
AO
15393MAINT=$MAINTAINER_MODE_TRUE
15394
2805b53a
NN
15395# ---------------------
15396# GCC bootstrap support
15397# ---------------------
15398
15399# Stage specific cflags for build.
15400stage1_cflags="-g"
15401case $build in
15402 vax-*-*)
15403 case ${GCC} in
15404 yes) stage1_cflags="-g -Wa,-J" ;;
15405 *) stage1_cflags="-g -J" ;;
15406 esac ;;
2805b53a
NN
15407esac
15408
0b50988a 15409
2805b53a 15410
8efea775 15411# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
15412# Check whether --enable-stage1-checking was given.
15413if test "${enable_stage1_checking+set}" = set; then :
15414 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 15415else
e643dc23 15416 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
15417 # For --disable-checking or implicit --enable-checking=release, avoid
15418 # setting --enable-checking=gc in the default stage1 checking for LTO
15419 # bootstraps. See PR62077.
c10b5ea0
JJ
15420 case $BUILD_CONFIG in
15421 *lto*)
7db11a5a
JJ
15422 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15423 *)
15424 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 15425 esac
7db11a5a
JJ
15426 if test "x$enable_checking" = x && \
15427 test -d ${srcdir}/gcc && \
15428 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 15429 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 15430 fi
8efea775 15431else
e643dc23 15432 stage1_checking=--enable-checking=$enable_checking,types
8efea775 15433fi
5213506e 15434fi
8efea775
PB
15435
15436
2aeb72e9 15437
5213506e
RW
15438# Enable -Werror in bootstrap stage2 and later.
15439# Check whether --enable-werror was given.
15440if test "${enable_werror+set}" = set; then :
15441 enableval=$enable_werror;
09a9c095
NN
15442case ${enable_werror} in
15443 yes) stage2_werror_flag="--enable-werror-always" ;;
15444 *) stage2_werror_flag="" ;;
2805b53a
NN
15445esac
15446
afd88efc
ML
15447else
15448
01c712cb
ML
15449if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15450 case $BUILD_CONFIG in
15451 bootstrap-debug)
15452 stage2_werror_flag="--enable-werror-always" ;;
15453 "")
15454 stage2_werror_flag="--enable-werror-always" ;;
15455 esac
15456fi
15457
afd88efc
ML
15458fi
15459
15460
01c712cb 15461
2805b53a 15462
f2689b09
SE
15463# Specify what files to not compare during bootstrap.
15464
15465compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15466case "$target" in
15467 hppa*64*-*-hpux*) ;;
4f943869
MK
15468 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
15469 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
f2689b09
SE
15470esac
15471
15472
5213506e
RW
15473ac_config_files="$ac_config_files Makefile"
15474
1c710c3c 15475cat >confcache <<\_ACEOF
671aa708
NN
15476# This file is a shell script that caches the results of configure
15477# tests run on this system so they can be shared between configure
1c710c3c
DJ
15478# scripts and configure runs, see configure's option --config-cache.
15479# It is not useful on other systems. If it contains results you don't
15480# want to keep, you may remove or edit it.
671aa708 15481#
1c710c3c
DJ
15482# config.status only pays attention to the cache file if you give it
15483# the --recheck option to rerun configure.
671aa708 15484#
1c710c3c
DJ
15485# `ac_cv_env_foo' variables (set or unset) will be overridden when
15486# loading this file, other *unset* `ac_cv_foo' will be assigned the
15487# following values.
15488
15489_ACEOF
15490
671aa708
NN
15491# The following way of writing the cache mishandles newlines in values,
15492# but we know of no workaround that is simple, portable, and efficient.
5213506e 15493# So, we kill variables containing newlines.
671aa708
NN
15494# Ultrix sh set writes to stderr and can't be redirected directly,
15495# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
15496(
15497 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15498 eval ac_val=\$$ac_var
15499 case $ac_val in #(
15500 *${as_nl}*)
15501 case $ac_var in #(
15502 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15503$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15504 esac
15505 case $ac_var in #(
15506 _ | IFS | as_nl) ;; #(
15507 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15508 *) { eval $ac_var=; unset $ac_var;} ;;
15509 esac ;;
15510 esac
15511 done
15512
1c710c3c 15513 (set) 2>&1 |
5213506e
RW
15514 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15515 *${as_nl}ac_space=\ *)
15516 # `set' does not quote correctly, so add quotes: double-quote
15517 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
15518 sed -n \
15519 "s/'/'\\\\''/g;
15520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 15521 ;; #(
1c710c3c
DJ
15522 *)
15523 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 15524 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 15525 ;;
5213506e
RW
15526 esac |
15527 sort
15528) |
1c710c3c 15529 sed '
5213506e 15530 /^ac_cv_env_/b end
1c710c3c 15531 t clear
5213506e 15532 :clear
1c710c3c
DJ
15533 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15534 t end
5213506e
RW
15535 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15536 :end' >>confcache
15537if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15538 if test -w "$cache_file"; then
22e05272 15539 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15541$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
15542 if test ! -f "$cache_file" || test -h "$cache_file"; then
15543 cat confcache >"$cache_file"
15544 else
15545 case $cache_file in #(
15546 */* | ?:*)
15547 mv -f confcache "$cache_file"$$ &&
15548 mv -f "$cache_file"$$ "$cache_file" ;; #(
15549 *)
15550 mv -f confcache "$cache_file" ;;
15551 esac
15552 fi
15553 fi
671aa708 15554 else
5213506e
RW
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15556$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 15557 fi
4977bab6 15558fi
671aa708 15559rm -f confcache
79c06341 15560
671aa708
NN
15561test "x$prefix" = xNONE && prefix=$ac_default_prefix
15562# Let make expand exec_prefix.
15563test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 15564
671aa708
NN
15565# Transform confdefs.h into DEFS.
15566# Protect against shell expansion while executing Makefile rules.
15567# Protect against Makefile macro expansion.
1c710c3c
DJ
15568#
15569# If the first sed substitution is executed (which looks for macros that
5213506e 15570# take arguments), then branch to the quote section. Otherwise,
1c710c3c 15571# look for a macro that doesn't take arguments.
5213506e
RW
15572ac_script='
15573:mline
15574/\\$/{
15575 N
15576 s,\\\n,,
15577 b mline
15578}
1c710c3c 15579t clear
5213506e
RW
15580:clear
15581s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 15582t quote
5213506e 15583s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 15584t quote
5213506e
RW
15585b any
15586:quote
15587s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15588s/\[/\\&/g
15589s/\]/\\&/g
15590s/\$/$$/g
15591H
15592:any
15593${
15594 g
15595 s/^\n//
15596 s/\n/ /g
15597 p
15598}
15599'
15600DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
15601
15602
15603ac_libobjs=
15604ac_ltlibobjs=
22e05272 15605U=
1c710c3c
DJ
15606for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15607 # 1. Remove the extension, and $U if already installed.
5213506e
RW
15608 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15609 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15610 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15611 # will be set to the directory where LIBOBJS objects are built.
15612 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15613 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
15614done
15615LIBOBJS=$ac_libobjs
fb0103e5 15616
1c710c3c 15617LTLIBOBJS=$ac_ltlibobjs
0b0dc272 15618
af71363e 15619
1c710c3c 15620
22e05272 15621: "${CONFIG_STATUS=./config.status}"
5213506e 15622ac_write_fail=0
1c710c3c
DJ
15623ac_clean_files_save=$ac_clean_files
15624ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
15625{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15626$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15627as_write_fail=0
15628cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
15629#! $SHELL
15630# Generated by $as_me.
671aa708 15631# Run this file to recreate the current configuration.
671aa708 15632# Compiler output produced by configure, useful for debugging
1c710c3c 15633# configure, is in config.log if it exists.
0b0dc272 15634
1c710c3c
DJ
15635debug=false
15636ac_cs_recheck=false
15637ac_cs_silent=false
1c710c3c 15638
5213506e
RW
15639SHELL=\${CONFIG_SHELL-$SHELL}
15640export SHELL
15641_ASEOF
15642cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15643## -------------------- ##
15644## M4sh Initialization. ##
15645## -------------------- ##
15646
15647# Be more Bourne compatible
15648DUALCASE=1; export DUALCASE # for MKS sh
15649if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
15650 emulate sh
15651 NULLCMD=:
5213506e 15652 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
15653 # is contrary to our usage. Disable this feature.
15654 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
15655 setopt NO_GLOB_SUBST
15656else
15657 case `(set -o) 2>/dev/null` in #(
15658 *posix*) :
15659 set -o posix ;; #(
15660 *) :
15661 ;;
15662esac
1c710c3c 15663fi
1c710c3c 15664
5213506e
RW
15665
15666as_nl='
15667'
15668export as_nl
15669# Printing a long string crashes Solaris 7 /usr/bin/printf.
15670as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15671as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15672as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15673# Prefer a ksh shell builtin over an external printf program on Solaris,
15674# but without wasting forks for bash or zsh.
15675if test -z "$BASH_VERSION$ZSH_VERSION" \
15676 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15677 as_echo='print -r --'
15678 as_echo_n='print -rn --'
15679elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15680 as_echo='printf %s\n'
15681 as_echo_n='printf %s'
15682else
15683 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15684 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15685 as_echo_n='/usr/ucb/echo -n'
15686 else
15687 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15688 as_echo_n_body='eval
15689 arg=$1;
15690 case $arg in #(
15691 *"$as_nl"*)
15692 expr "X$arg" : "X\\(.*\\)$as_nl";
15693 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15694 esac;
15695 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15696 '
15697 export as_echo_n_body
15698 as_echo_n='sh -c $as_echo_n_body as_echo'
15699 fi
15700 export as_echo_body
15701 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
15702fi
15703
5213506e
RW
15704# The user is always right.
15705if test "${PATH_SEPARATOR+set}" != set; then
15706 PATH_SEPARATOR=:
15707 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15708 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15709 PATH_SEPARATOR=';'
15710 }
15711fi
15712
15713
15714# IFS
15715# We need space, tab and new line, in precisely that order. Quoting is
15716# there to prevent editors from complaining about space-tab.
15717# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15718# splitting by setting IFS to empty value.)
15719IFS=" "" $as_nl"
15720
15721# Find who we are. Look in the path if we contain no directory separator.
22e05272 15722as_myself=
5213506e
RW
15723case $0 in #((
15724 *[\\/]* ) as_myself=$0 ;;
15725 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15726for as_dir in $PATH
15727do
15728 IFS=$as_save_IFS
15729 test -z "$as_dir" && as_dir=.
15730 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15731 done
15732IFS=$as_save_IFS
15733
15734 ;;
15735esac
15736# We did not find ourselves, most probably we were run as `sh COMMAND'
15737# in which case we are not to be found in the path.
15738if test "x$as_myself" = x; then
15739 as_myself=$0
15740fi
15741if test ! -f "$as_myself"; then
15742 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15743 exit 1
15744fi
1c710c3c 15745
5213506e
RW
15746# Unset variables that we do not need and which cause bugs (e.g. in
15747# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15748# suppresses any "Segmentation fault" message there. '((' could
15749# trigger a bug in pdksh 5.2.14.
15750for as_var in BASH_ENV ENV MAIL MAILPATH
15751do eval test x\${$as_var+set} = xset \
15752 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15753done
1c710c3c
DJ
15754PS1='$ '
15755PS2='> '
15756PS4='+ '
15757
15758# NLS nuisances.
5213506e
RW
15759LC_ALL=C
15760export LC_ALL
15761LANGUAGE=C
15762export LANGUAGE
15763
15764# CDPATH.
15765(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15766
15767
22e05272
JM
15768# as_fn_error STATUS ERROR [LINENO LOG_FD]
15769# ----------------------------------------
5213506e
RW
15770# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15771# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 15772# script with STATUS, using 1 if that was 0.
5213506e
RW
15773as_fn_error ()
15774{
22e05272
JM
15775 as_status=$1; test $as_status -eq 0 && as_status=1
15776 if test "$4"; then
15777 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15778 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1c710c3c 15779 fi
22e05272 15780 $as_echo "$as_me: error: $2" >&2
5213506e
RW
15781 as_fn_exit $as_status
15782} # as_fn_error
15783
15784
15785# as_fn_set_status STATUS
15786# -----------------------
15787# Set $? to STATUS, without forking.
15788as_fn_set_status ()
15789{
15790 return $1
15791} # as_fn_set_status
15792
15793# as_fn_exit STATUS
15794# -----------------
15795# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15796as_fn_exit ()
15797{
15798 set +e
15799 as_fn_set_status $1
15800 exit $1
15801} # as_fn_exit
15802
15803# as_fn_unset VAR
15804# ---------------
15805# Portably unset VAR.
15806as_fn_unset ()
15807{
15808 { eval $1=; unset $1;}
15809}
15810as_unset=as_fn_unset
15811# as_fn_append VAR VALUE
15812# ----------------------
15813# Append the text in VALUE to the end of the definition contained in VAR. Take
15814# advantage of any shell optimizations that allow amortized linear growth over
15815# repeated appends, instead of the typical quadratic growth present in naive
15816# implementations.
15817if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15818 eval 'as_fn_append ()
15819 {
15820 eval $1+=\$2
15821 }'
15822else
15823 as_fn_append ()
15824 {
15825 eval $1=\$$1\$2
15826 }
15827fi # as_fn_append
15828
15829# as_fn_arith ARG...
15830# ------------------
15831# Perform arithmetic evaluation on the ARGs, and store the result in the
15832# global $as_val. Take advantage of shells that can avoid forks. The arguments
15833# must be portable across $(()) and expr.
15834if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15835 eval 'as_fn_arith ()
15836 {
15837 as_val=$(( $* ))
15838 }'
15839else
15840 as_fn_arith ()
15841 {
15842 as_val=`expr "$@" || test $? -eq 1`
15843 }
15844fi # as_fn_arith
15845
1c710c3c 15846
5213506e
RW
15847if expr a : '\(a\)' >/dev/null 2>&1 &&
15848 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
15849 as_expr=expr
15850else
15851 as_expr=false
15852fi
15853
5213506e 15854if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
15855 as_basename=basename
15856else
15857 as_basename=false
15858fi
15859
5213506e
RW
15860if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15861 as_dirname=dirname
15862else
15863 as_dirname=false
15864fi
1c710c3c 15865
5213506e 15866as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
15867$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15868 X"$0" : 'X\(//\)$' \| \
5213506e
RW
15869 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15870$as_echo X/"$0" |
15871 sed '/^.*\/\([^/][^/]*\)\/*$/{
15872 s//\1/
15873 q
15874 }
15875 /^X\/\(\/\/\)$/{
15876 s//\1/
15877 q
15878 }
15879 /^X\/\(\/\).*/{
15880 s//\1/
15881 q
15882 }
15883 s/.*/./; q'`
2aeb72e9 15884
2aeb72e9
DD
15885# Avoid depending upon Character Ranges.
15886as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15887as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15888as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15889as_cr_digits='0123456789'
15890as_cr_alnum=$as_cr_Letters$as_cr_digits
15891
5213506e
RW
15892ECHO_C= ECHO_N= ECHO_T=
15893case `echo -n x` in #(((((
15894-n*)
15895 case `echo 'xy\c'` in
15896 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15897 xy) ECHO_C='\c';;
15898 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15899 ECHO_T=' ';;
15900 esac;;
15901*)
15902 ECHO_N='-n';;
1c710c3c
DJ
15903esac
15904
5213506e
RW
15905rm -f conf$$ conf$$.exe conf$$.file
15906if test -d conf$$.dir; then
15907 rm -f conf$$.dir/conf$$.file
1c710c3c 15908else
5213506e
RW
15909 rm -f conf$$.dir
15910 mkdir conf$$.dir 2>/dev/null
1c710c3c 15911fi
5213506e
RW
15912if (echo >conf$$.file) 2>/dev/null; then
15913 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 15914 as_ln_s='ln -s'
5213506e
RW
15915 # ... but there are two gotchas:
15916 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15917 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 15918 # In both cases, we have to default to `cp -pR'.
5213506e 15919 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 15920 as_ln_s='cp -pR'
5213506e
RW
15921 elif ln conf$$.file conf$$ 2>/dev/null; then
15922 as_ln_s=ln
15923 else
22e05272 15924 as_ln_s='cp -pR'
2aeb72e9 15925 fi
1c710c3c 15926else
22e05272 15927 as_ln_s='cp -pR'
1c710c3c 15928fi
5213506e
RW
15929rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15930rmdir conf$$.dir 2>/dev/null
15931
15932
15933# as_fn_mkdir_p
15934# -------------
15935# Create "$as_dir" as a directory, including parents if necessary.
15936as_fn_mkdir_p ()
15937{
15938
15939 case $as_dir in #(
15940 -*) as_dir=./$as_dir;;
15941 esac
15942 test -d "$as_dir" || eval $as_mkdir_p || {
15943 as_dirs=
15944 while :; do
15945 case $as_dir in #(
15946 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15947 *) as_qdir=$as_dir;;
15948 esac
15949 as_dirs="'$as_qdir' $as_dirs"
15950 as_dir=`$as_dirname -- "$as_dir" ||
15951$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15952 X"$as_dir" : 'X\(//\)[^/]' \| \
15953 X"$as_dir" : 'X\(//\)$' \| \
15954 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15955$as_echo X"$as_dir" |
15956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15957 s//\1/
15958 q
15959 }
15960 /^X\(\/\/\)[^/].*/{
15961 s//\1/
15962 q
15963 }
15964 /^X\(\/\/\)$/{
15965 s//\1/
15966 q
15967 }
15968 /^X\(\/\).*/{
15969 s//\1/
15970 q
15971 }
15972 s/.*/./; q'`
15973 test -d "$as_dir" && break
15974 done
15975 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 15976 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 15977
1c710c3c 15978
5213506e 15979} # as_fn_mkdir_p
1c710c3c 15980if mkdir -p . 2>/dev/null; then
5213506e 15981 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
15982else
15983 test -d ./-p && rmdir ./-p
15984 as_mkdir_p=false
15985fi
15986
22e05272
JM
15987
15988# as_fn_executable_p FILE
15989# -----------------------
15990# Test if FILE is an executable regular file.
15991as_fn_executable_p ()
15992{
15993 test -f "$1" && test -x "$1"
15994} # as_fn_executable_p
15995as_test_x='test -x'
15996as_executable_p=as_fn_executable_p
1c710c3c
DJ
15997
15998# Sed expression to map a string onto a valid CPP name.
15999as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16000
16001# Sed expression to map a string onto a valid variable name.
16002as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16003
16004
1c710c3c 16005exec 6>&1
5213506e
RW
16006## ----------------------------------- ##
16007## Main body of $CONFIG_STATUS script. ##
16008## ----------------------------------- ##
16009_ASEOF
16010test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16011
16012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16013# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 16014# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
16015# values after options handling.
16016ac_log="
1c710c3c 16017This file was extended by $as_me, which was
22e05272 16018generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
16019
16020 CONFIG_FILES = $CONFIG_FILES
16021 CONFIG_HEADERS = $CONFIG_HEADERS
16022 CONFIG_LINKS = $CONFIG_LINKS
16023 CONFIG_COMMANDS = $CONFIG_COMMANDS
16024 $ $0 $@
16025
5213506e
RW
16026on `(hostname || uname -n) 2>/dev/null | sed 1q`
16027"
16028
1c710c3c
DJ
16029_ACEOF
16030
5213506e
RW
16031case $ac_config_files in *"
16032"*) set x $ac_config_files; shift; ac_config_files=$*;;
16033esac
1c710c3c 16034
2aeb72e9 16035
2aeb72e9 16036
5213506e
RW
16037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16038# Files that config.status was made for.
16039config_files="$ac_config_files"
1c710c3c 16040
5213506e 16041_ACEOF
2aeb72e9 16042
5213506e 16043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 16044ac_cs_usage="\
5213506e
RW
16045\`$as_me' instantiates files and other configuration actions
16046from templates according to the current configuration. Unless the files
16047and actions are specified as TAGs, all are instantiated by default.
1c710c3c 16048
5213506e 16049Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
16050
16051 -h, --help print this help, then exit
5213506e 16052 -V, --version print version number and configuration settings, then exit
22e05272 16053 --config print configuration, then exit
5213506e
RW
16054 -q, --quiet, --silent
16055 do not print progress messages
1c710c3c
DJ
16056 -d, --debug don't remove temporary files
16057 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
16058 --file=FILE[:TEMPLATE]
16059 instantiate the configuration file FILE
1c710c3c
DJ
16060
16061Configuration files:
16062$config_files
16063
5213506e 16064Report bugs to the package provider."
2aeb72e9 16065
5213506e
RW
16066_ACEOF
16067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16068ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1c710c3c
DJ
16069ac_cs_version="\\
16070config.status
22e05272
JM
16071configured by $0, generated by GNU Autoconf 2.69,
16072 with options \\"\$ac_cs_config\\"
1c710c3c 16073
22e05272 16074Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
16075This config.status script is free software; the Free Software Foundation
16076gives unlimited permission to copy, distribute and modify it."
5213506e
RW
16077
16078ac_pwd='$ac_pwd'
16079srcdir='$srcdir'
16080INSTALL='$INSTALL'
87264276 16081AWK='$AWK'
5213506e 16082test -n "\$AWK" || AWK=awk
1c710c3c
DJ
16083_ACEOF
16084
5213506e
RW
16085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16086# The default lists apply if the user does not specify any file.
1c710c3c
DJ
16087ac_need_defaults=:
16088while test $# != 0
a4b9e93e 16089do
1c710c3c 16090 case $1 in
22e05272 16091 --*=?*)
5213506e
RW
16092 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16093 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
16094 ac_shift=:
16095 ;;
22e05272
JM
16096 --*=)
16097 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16098 ac_optarg=
16099 ac_shift=:
16100 ;;
5213506e 16101 *)
1c710c3c
DJ
16102 ac_option=$1
16103 ac_optarg=$2
16104 ac_shift=shift
16105 ;;
1c710c3c
DJ
16106 esac
16107
16108 case $ac_option in
16109 # Handling of the options.
671aa708 16110 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 16111 ac_cs_recheck=: ;;
5213506e
RW
16112 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16113 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
16114 --config | --confi | --conf | --con | --co | --c )
16115 $as_echo "$ac_cs_config"; exit ;;
5213506e 16116 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
16117 debug=: ;;
16118 --file | --fil | --fi | --f )
16119 $ac_shift
5213506e
RW
16120 case $ac_optarg in
16121 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 16122 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
16123 esac
16124 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 16125 ac_need_defaults=false;;
5213506e
RW
16126 --he | --h | --help | --hel | -h )
16127 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
16128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16129 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16130 ac_cs_silent=: ;;
16131
16132 # This is an error.
22e05272 16133 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 16134Try \`$0 --help' for more information." ;;
1c710c3c 16135
5213506e
RW
16136 *) as_fn_append ac_config_targets " $1"
16137 ac_need_defaults=false ;;
1c710c3c 16138
0b0dc272 16139 esac
1c710c3c 16140 shift
0b0dc272
AM
16141done
16142
1c710c3c 16143ac_configure_extra_args=
0b0dc272 16144
1c710c3c
DJ
16145if $ac_cs_silent; then
16146 exec 6>/dev/null
16147 ac_configure_extra_args="$ac_configure_extra_args --silent"
16148fi
0b0dc272 16149
1c710c3c 16150_ACEOF
5213506e 16151cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 16152if \$ac_cs_recheck; then
22e05272 16153 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
16154 shift
16155 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16156 CONFIG_SHELL='$SHELL'
16157 export CONFIG_SHELL
16158 exec "\$@"
1c710c3c
DJ
16159fi
16160
16161_ACEOF
5213506e
RW
16162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16163exec 5>>config.log
16164{
16165 echo
16166 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16167## Running $as_me. ##
16168_ASBOX
16169 $as_echo "$ac_log"
16170} >&5
1c710c3c 16171
5213506e
RW
16172_ACEOF
16173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
16174#
16175# INIT-COMMANDS
16176#
16177extrasub_build="$extrasub_build"
16178 extrasub_host="$extrasub_host"
16179 extrasub_target="$extrasub_target"
16180
5213506e 16181_ACEOF
1c710c3c 16182
5213506e 16183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 16184
5213506e 16185# Handling of arguments.
1c710c3c
DJ
16186for ac_config_target in $ac_config_targets
16187do
5213506e
RW
16188 case $ac_config_target in
16189 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16190
22e05272 16191 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
16192 esac
16193done
16194
5213506e 16195
1c710c3c
DJ
16196# If the user did not use the arguments to specify the items to instantiate,
16197# then the envvar interface is used. Set only those that are not.
16198# We use the long form for the default assignment because of an extremely
16199# bizarre bug on SunOS 4.1.3.
16200if $ac_need_defaults; then
16201 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16202fi
16203
16204# Have a temporary directory for convenience. Make it in the build tree
5213506e 16205# simply because there is no reason against having it here, and in addition,
1c710c3c 16206# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
16207# Hook for its removal unless debugging.
16208# Note that there is a small window in which the directory will not be cleaned:
16209# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
16210$debug ||
16211{
22e05272 16212 tmp= ac_tmp=
5213506e 16213 trap 'exit_status=$?
22e05272
JM
16214 : "${ac_tmp:=$tmp}"
16215 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
16216' 0
16217 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 16218}
1c710c3c
DJ
16219# Create a (secure) tmp directory for tmp files.
16220
16221{
5213506e 16222 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 16223 test -d "$tmp"
1c710c3c
DJ
16224} ||
16225{
5213506e
RW
16226 tmp=./conf$$-$RANDOM
16227 (umask 077 && mkdir "$tmp")
22e05272
JM
16228} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16229ac_tmp=$tmp
5213506e
RW
16230
16231# Set up the scripts for CONFIG_FILES section.
16232# No need to generate them if there are no CONFIG_FILES.
16233# This happens for instance with `./config.status config.h'.
16234if test -n "$CONFIG_FILES"; then
16235
16236if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16237 ac_cs_awk_getline=:
16238 ac_cs_awk_pipe_init=
16239 ac_cs_awk_read_file='
16240 while ((getline aline < (F[key])) > 0)
16241 print(aline)
16242 close(F[key])'
16243 ac_cs_awk_pipe_fini=
16244else
16245 ac_cs_awk_getline=false
16246 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16247 ac_cs_awk_read_file='
16248 print "|#_!!_#|"
16249 print "cat " F[key] " &&"
16250 '$ac_cs_awk_pipe_init
16251 # The final `:' finishes the AND list.
16252 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16253fi
16254ac_cr=`echo X | tr X '\015'`
16255# On cygwin, bash can eat \r inside `` if the user requested igncr.
16256# But we know of no other shell where ac_cr would be empty at this
16257# point, so we can use a bashism as a fallback.
16258if test "x$ac_cr" = x; then
16259 eval ac_cr=\$\'\\r\'
16260fi
16261ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16262if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 16263 ac_cs_awk_cr='\\r'
5213506e
RW
16264else
16265 ac_cs_awk_cr=$ac_cr
16266fi
16267
22e05272 16268echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
16269_ACEOF
16270
16271# Create commands to substitute file output variables.
1c710c3c 16272{
5213506e 16273 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22e05272 16274 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
5213506e
RW
16275 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16276 echo "_ACAWK" &&
16277 echo "_ACEOF"
16278} >conf$$files.sh &&
16279. ./conf$$files.sh ||
22e05272 16280 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e 16281rm -f conf$$files.sh
1c710c3c 16282
5213506e
RW
16283{
16284 echo "cat >conf$$subs.awk <<_ACEOF" &&
16285 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16286 echo "_ACEOF"
16287} >conf$$subs.sh ||
22e05272
JM
16288 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16289ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
16290ac_delim='%!_!# '
16291for ac_last_try in false false false false false :; do
16292 . ./conf$$subs.sh ||
22e05272 16293 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
16294
16295 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16296 if test $ac_delim_n = $ac_delim_num; then
16297 break
16298 elif $ac_last_try; then
22e05272 16299 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
16300 else
16301 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16302 fi
16303done
16304rm -f conf$$subs.sh
16305
16306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16307cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 16308_ACEOF
5213506e
RW
16309sed -n '
16310h
16311s/^/S["/; s/!.*/"]=/
16312p
16313g
16314s/^[^!]*!//
16315:repl
16316t repl
16317s/'"$ac_delim"'$//
16318t delim
16319:nl
16320h
22e05272 16321s/\(.\{148\}\)..*/\1/
5213506e
RW
16322t more1
16323s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16324p
16325n
16326b repl
16327:more1
16328s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16329p
16330g
16331s/.\{148\}//
16332t nl
16333:delim
16334h
22e05272 16335s/\(.\{148\}\)..*/\1/
5213506e
RW
16336t more2
16337s/["\\]/\\&/g; s/^/"/; s/$/"/
16338p
16339b
16340:more2
16341s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16342p
16343g
16344s/.\{148\}//
16345t delim
16346' <conf$$subs.awk | sed '
16347/^[^""]/{
16348 N
16349 s/\n//
16350}
16351' >>$CONFIG_STATUS || ac_write_fail=1
16352rm -f conf$$subs.awk
16353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16354_ACAWK
22e05272 16355cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
16356 for (key in S) S_is_set[key] = 1
16357 FS = "\a"
16358 \$ac_cs_awk_pipe_init
16359}
16360{
16361 line = $ 0
16362 nfields = split(line, field, "@")
16363 substed = 0
16364 len = length(field[1])
16365 for (i = 2; i < nfields; i++) {
16366 key = field[i]
16367 keylen = length(key)
16368 if (S_is_set[key]) {
16369 value = S[key]
16370 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16371 len += length(value) + length(field[++i])
16372 substed = 1
16373 } else
16374 len += 1 + keylen
16375 }
16376 if (nfields == 3 && !substed) {
16377 key = field[2]
16378 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16379 \$ac_cs_awk_read_file
16380 next
16381 }
16382 }
16383 print line
16384}
16385\$ac_cs_awk_pipe_fini
16386_ACAWK
16387_ACEOF
16388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16389if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16390 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16391else
16392 cat
22e05272
JM
16393fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16394 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
16395_ACEOF
16396
22e05272
JM
16397# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16398# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
16399# trailing colons and then remove the whole line if VPATH becomes empty
16400# (actually we leave an empty line to preserve line numbers).
16401if test "x$srcdir" = x.; then
22e05272
JM
16402 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16403h
16404s///
16405s/^/:/
16406s/[ ]*$/:/
16407s/:\$(srcdir):/:/g
16408s/:\${srcdir}:/:/g
16409s/:@srcdir@:/:/g
16410s/^:*//
5213506e 16411s/:*$//
22e05272
JM
16412x
16413s/\(=[ ]*\).*/\1/
16414G
16415s/\n//
5213506e
RW
16416s/^[^=]*=[ ]*$//
16417}'
16418fi
2aeb72e9 16419
5213506e
RW
16420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16421fi # test -n "$CONFIG_FILES"
2aeb72e9 16422
1c710c3c 16423
5213506e
RW
16424eval set X " :F $CONFIG_FILES "
16425shift
16426for ac_tag
16427do
16428 case $ac_tag in
16429 :[FHLC]) ac_mode=$ac_tag; continue;;
16430 esac
16431 case $ac_mode$ac_tag in
16432 :[FHL]*:*);;
22e05272 16433 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
16434 :[FH]-) ac_tag=-:-;;
16435 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16436 esac
16437 ac_save_IFS=$IFS
16438 IFS=:
16439 set x $ac_tag
16440 IFS=$ac_save_IFS
16441 shift
16442 ac_file=$1
16443 shift
79c06341 16444
5213506e
RW
16445 case $ac_mode in
16446 :L) ac_source=$1;;
16447 :[FH])
16448 ac_file_inputs=
16449 for ac_f
16450 do
16451 case $ac_f in
22e05272 16452 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
16453 *) # Look for the file first in the build tree, then in the source tree
16454 # (if the path is not absolute). The absolute path cannot be DOS-style,
16455 # because $ac_f cannot contain `:'.
16456 test -f "$ac_f" ||
16457 case $ac_f in
16458 [\\/$]*) false;;
16459 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16460 esac ||
22e05272 16461 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
16462 esac
16463 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16464 as_fn_append ac_file_inputs " '$ac_f'"
16465 done
1c710c3c 16466
5213506e
RW
16467 # Let's still pretend it is `configure' which instantiates (i.e., don't
16468 # use $as_me), people would be surprised to read:
16469 # /* config.h. Generated by config.status. */
16470 configure_input='Generated from '`
16471 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16472 `' by configure.'
16473 if test x"$ac_file" != x-; then
16474 configure_input="$ac_file. $configure_input"
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16476$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 16477 fi
5213506e
RW
16478 # Neutralize special characters interpreted by sed in replacement strings.
16479 case $configure_input in #(
16480 *\&* | *\|* | *\\* )
16481 ac_sed_conf_input=`$as_echo "$configure_input" |
16482 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16483 *) ac_sed_conf_input=$configure_input;;
16484 esac
11a67599 16485
5213506e 16486 case $ac_tag in
22e05272
JM
16487 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16488 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
16489 esac
16490 ;;
11a67599
ZW
16491 esac
16492
5213506e 16493 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
16494$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16495 X"$ac_file" : 'X\(//\)[^/]' \| \
16496 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
16497 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16498$as_echo X"$ac_file" |
16499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16500 s//\1/
16501 q
16502 }
16503 /^X\(\/\/\)[^/].*/{
16504 s//\1/
16505 q
16506 }
16507 /^X\(\/\/\)$/{
16508 s//\1/
16509 q
16510 }
16511 /^X\(\/\).*/{
16512 s//\1/
16513 q
16514 }
16515 s/.*/./; q'`
16516 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 16517 ac_builddir=.
0b0dc272 16518
5213506e
RW
16519case "$ac_dir" in
16520.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16521*)
16522 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16523 # A ".." for each directory in $ac_dir_suffix.
16524 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16525 case $ac_top_builddir_sub in
16526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16528 esac ;;
16529esac
16530ac_abs_top_builddir=$ac_pwd
16531ac_abs_builddir=$ac_pwd$ac_dir_suffix
16532# for backward compatibility:
16533ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
16534
16535case $srcdir in
5213506e 16536 .) # We are building in place.
1c710c3c 16537 ac_srcdir=.
5213506e
RW
16538 ac_top_srcdir=$ac_top_builddir_sub
16539 ac_abs_top_srcdir=$ac_pwd ;;
16540 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 16541 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
16542 ac_top_srcdir=$srcdir
16543 ac_abs_top_srcdir=$srcdir ;;
16544 *) # Relative name.
16545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16546 ac_top_srcdir=$ac_top_build_prefix$srcdir
16547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 16548esac
5213506e 16549ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 16550
0b0dc272 16551
5213506e
RW
16552 case $ac_mode in
16553 :F)
16554 #
16555 # CONFIG_FILE
16556 #
1c710c3c
DJ
16557
16558 case $INSTALL in
16559 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 16560 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 16561 esac
5213506e 16562_ACEOF
11a67599 16563
5213506e
RW
16564cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16565# If the template does not know about datarootdir, expand it.
16566# FIXME: This hack should be removed a few years after 2.60.
16567ac_datarootdir_hack=; ac_datarootdir_seen=
16568ac_sed_dataroot='
16569/datarootdir/ {
16570 p
16571 q
16572}
16573/@datadir@/p
16574/@docdir@/p
16575/@infodir@/p
16576/@localedir@/p
16577/@mandir@/p'
16578case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16579*datarootdir*) ac_datarootdir_seen=yes;;
16580*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16582$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 16583_ACEOF
5213506e
RW
16584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16585 ac_datarootdir_hack='
16586 s&@datadir@&$datadir&g
16587 s&@docdir@&$docdir&g
16588 s&@infodir@&$infodir&g
16589 s&@localedir@&$localedir&g
16590 s&@mandir@&$mandir&g
16591 s&\\\${datarootdir}&$datarootdir&g' ;;
16592esac
16593_ACEOF
16594
16595# Neutralize VPATH when `$srcdir' = `.'.
16596# Shell code in configure.ac might set extrasub.
16597# FIXME: do we really want to maintain this feature?
16598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16599ac_sed_extra="$ac_vpsub
1c710c3c
DJ
16600$extrasub
16601_ACEOF
5213506e 16602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
16603:t
16604/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
16605s|@configure_input@|$ac_sed_conf_input|;t t
16606s&@top_builddir@&$ac_top_builddir_sub&;t t
16607s&@top_build_prefix@&$ac_top_build_prefix&;t t
16608s&@srcdir@&$ac_srcdir&;t t
16609s&@abs_srcdir@&$ac_abs_srcdir&;t t
16610s&@top_srcdir@&$ac_top_srcdir&;t t
16611s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16612s&@builddir@&$ac_builddir&;t t
16613s&@abs_builddir@&$ac_abs_builddir&;t t
16614s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16615s&@INSTALL@&$ac_INSTALL&;t t
16616$ac_datarootdir_hack
16617"
16618eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16619if $ac_cs_awk_getline; then
22e05272 16620 $AWK -f "$ac_tmp/subs.awk"
5213506e 16621else
22e05272
JM
16622 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16623fi \
16624 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
16625
16626test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
16627 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16628 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16629 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 16630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16631which seems to be undefined. Please make sure it is defined" >&5
5213506e 16632$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16633which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 16634
22e05272 16635 rm -f "$ac_tmp/stdin"
5213506e 16636 case $ac_file in
22e05272
JM
16637 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16638 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 16639 esac \
22e05272 16640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 16641 ;;
11a67599 16642
11a67599 16643
79c06341 16644
5213506e
RW
16645 esac
16646
3e54529c
RW
16647
16648 case $ac_file$ac_mode in
16649 "Makefile":F) sed "$extrasub_build" Makefile |
16650 sed "$extrasub_host" |
16651 sed "$extrasub_target" > mf$$
16652 mv -f mf$$ Makefile ;;
16653
16654 esac
5213506e
RW
16655done # for ac_tag
16656
16657
16658as_fn_exit 0
1c710c3c 16659_ACEOF
1c710c3c
DJ
16660ac_clean_files=$ac_clean_files_save
16661
5213506e 16662test $ac_write_fail = 0 ||
22e05272 16663 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 16664
1c710c3c
DJ
16665
16666# configure is writing to config.log, and then calls config.status.
16667# config.status does its own redirection, appending to config.log.
16668# Unfortunately, on DOS this fails, as config.log is still kept open
16669# by configure, so config.status won't be able to write to it; its
16670# output is simply discarded. So we exec the FD to /dev/null,
16671# effectively closing config.log, so it can be properly (re)opened and
16672# appended to by config.status. When coming back to configure, we
16673# need to make the FD available again.
16674if test "$no_create" != yes; then
16675 ac_cs_success=:
16676 ac_config_status_args=
16677 test "$silent" = yes &&
16678 ac_config_status_args="$ac_config_status_args --quiet"
16679 exec 5>/dev/null
16680 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16681 exec 5>>config.log
16682 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16683 # would make configure fail if this is the last instruction.
22e05272 16684 $ac_cs_success || as_fn_exit 1
5213506e
RW
16685fi
16686if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16688$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 16689fi
79c06341 16690