]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
toir.cc (pop_label): Only queue labels in a vector.
[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
0b21f5d3 809with_stage1_ldflags
5213506e 810with_boot_libs
ed2eaa9f 811with_boot_ldflags
33ad93b9
RG
812with_isl
813with_isl_include
814with_isl_lib
815enable_isl_version_check
d7f09764 816enable_lto
45b3824d
TS
817enable_linker_plugin_configure_flags
818enable_linker_plugin_flags
cdfee50a 819enable_host_shared
5213506e 820enable_stage1_languages
43c40f3e 821enable_objc_gc
114bf3f1
MK
822with_target_bdw_gc
823with_target_bdw_gc_include
824with_target_bdw_gc_lib
3c36aa6b 825with_gcc_major_version_only
5213506e
RW
826with_build_sysroot
827with_debug_prefix_map
5646b7b9 828with_build_config
beeda1d9 829enable_vtable_verify
5213506e
RW
830enable_serial_configure
831with_build_time_tools
832enable_maintainer_mode
833enable_stage1_checking
834enable_werror
5213506e
RW
835'
836 ac_precious_vars='build_alias
837host_alias
838target_alias
839CC
840CFLAGS
841LDFLAGS
842LIBS
843CPPFLAGS
844CXX
845CXXFLAGS
846CCC
ffedf511
RW
847build_configargs
848host_configargs
849target_configargs
5213506e
RW
850AR
851AS
852DLLTOOL
853LD
854LIPO
855NM
856RANLIB
857STRIP
858WINDRES
859WINDMC
860OBJCOPY
861OBJDUMP
e4a9a572 862OTOOL
e7a82751 863READELF
5213506e
RW
864CC_FOR_TARGET
865CXX_FOR_TARGET
866GCC_FOR_TARGET
5213506e 867GFORTRAN_FOR_TARGET
632e2a07 868GOC_FOR_TARGET
b4c522fa 869GDC_FOR_TARGET
5213506e
RW
870AR_FOR_TARGET
871AS_FOR_TARGET
872DLLTOOL_FOR_TARGET
873LD_FOR_TARGET
874LIPO_FOR_TARGET
875NM_FOR_TARGET
9bccfdf5 876OBJCOPY_FOR_TARGET
5213506e 877OBJDUMP_FOR_TARGET
e4a9a572 878OTOOL_FOR_TARGET
5213506e 879RANLIB_FOR_TARGET
e7a82751 880READELF_FOR_TARGET
5213506e
RW
881STRIP_FOR_TARGET
882WINDRES_FOR_TARGET
883WINDMC_FOR_TARGET'
884
671aa708
NN
885
886# Initialize some variables set by options.
1c710c3c
DJ
887ac_init_help=
888ac_init_version=false
5213506e
RW
889ac_unrecognized_opts=
890ac_unrecognized_sep=
671aa708
NN
891# The variables have the same names as the options, with
892# dashes changed to underlines.
1c710c3c 893cache_file=/dev/null
671aa708 894exec_prefix=NONE
671aa708 895no_create=
671aa708
NN
896no_recursion=
897prefix=NONE
898program_prefix=NONE
899program_suffix=NONE
900program_transform_name=s,x,x,
901silent=
902site=
903srcdir=
671aa708
NN
904verbose=
905x_includes=NONE
906x_libraries=NONE
1c710c3c
DJ
907
908# Installation directory options.
909# These are left unexpanded so users can "make install exec_prefix=/foo"
910# and all the variables that are supposed to be based on exec_prefix
911# by default will actually change.
912# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 913# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
914bindir='${exec_prefix}/bin'
915sbindir='${exec_prefix}/sbin'
916libexecdir='${exec_prefix}/libexec'
5213506e
RW
917datarootdir='${prefix}/share'
918datadir='${datarootdir}'
671aa708
NN
919sysconfdir='${prefix}/etc'
920sharedstatedir='${prefix}/com'
921localstatedir='${prefix}/var'
671aa708
NN
922includedir='${prefix}/include'
923oldincludedir='/usr/include'
5213506e
RW
924docdir='${datarootdir}/doc/${PACKAGE}'
925infodir='${datarootdir}/info'
926htmldir='${docdir}'
927dvidir='${docdir}'
928pdfdir='${docdir}'
929psdir='${docdir}'
930libdir='${exec_prefix}/lib'
931localedir='${datarootdir}/locale'
932mandir='${datarootdir}/man'
79c06341 933
671aa708 934ac_prev=
5213506e 935ac_dashdash=
671aa708
NN
936for ac_option
937do
671aa708
NN
938 # If the previous option needs an argument, assign it.
939 if test -n "$ac_prev"; then
5213506e 940 eval $ac_prev=\$ac_option
671aa708
NN
941 ac_prev=
942 continue
943 fi
79c06341 944
5213506e 945 case $ac_option in
22e05272
JM
946 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947 *=) ac_optarg= ;;
948 *) ac_optarg=yes ;;
5213506e 949 esac
671aa708
NN
950
951 # Accept the important Cygnus configure options, so we can diagnose typos.
952
5213506e
RW
953 case $ac_dashdash$ac_option in
954 --)
955 ac_dashdash=yes ;;
671aa708
NN
956
957 -bindir | --bindir | --bindi | --bind | --bin | --bi)
958 ac_prev=bindir ;;
959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 960 bindir=$ac_optarg ;;
671aa708
NN
961
962 -build | --build | --buil | --bui | --bu)
1c710c3c 963 ac_prev=build_alias ;;
671aa708 964 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 965 build_alias=$ac_optarg ;;
671aa708
NN
966
967 -cache-file | --cache-file | --cache-fil | --cache-fi \
968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969 ac_prev=cache_file ;;
970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
972 cache_file=$ac_optarg ;;
973
974 --config-cache | -C)
975 cache_file=config.cache ;;
671aa708 976
5213506e 977 -datadir | --datadir | --datadi | --datad)
671aa708 978 ac_prev=datadir ;;
5213506e 979 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 980 datadir=$ac_optarg ;;
671aa708 981
5213506e
RW
982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983 | --dataroo | --dataro | --datar)
984 ac_prev=datarootdir ;;
985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987 datarootdir=$ac_optarg ;;
988
671aa708 989 -disable-* | --disable-*)
5213506e 990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 991 # Reject names that are not valid shell variable names.
5213506e 992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 993 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998"enable_$ac_useropt"
999"*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
671aa708
NN
1014
1015 -enable-* | --enable-*)
5213506e 1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 1017 # Reject names that are not valid shell variable names.
5213506e 1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1019 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024"enable_$ac_useropt"
1025"*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
2aeb72e9 1028 esac
5213506e 1029 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1030
1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033 | --exec | --exe | --ex)
1034 ac_prev=exec_prefix ;;
1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037 | --exec=* | --exe=* | --ex=*)
1c710c3c 1038 exec_prefix=$ac_optarg ;;
671aa708
NN
1039
1040 -gas | --gas | --ga | --g)
1041 # Obsolete; use --with-gas.
1042 with_gas=yes ;;
1043
1c710c3c
DJ
1044 -help | --help | --hel | --he | -h)
1045 ac_init_help=long ;;
1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047 ac_init_help=recursive ;;
1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049 ac_init_help=short ;;
671aa708
NN
1050
1051 -host | --host | --hos | --ho)
1c710c3c 1052 ac_prev=host_alias ;;
671aa708 1053 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1054 host_alias=$ac_optarg ;;
671aa708 1055
5213506e
RW
1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 ac_prev=htmldir ;;
1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 | --ht=*)
1060 htmldir=$ac_optarg ;;
1061
671aa708
NN
1062 -includedir | --includedir | --includedi | --included | --include \
1063 | --includ | --inclu | --incl | --inc)
1064 ac_prev=includedir ;;
1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1067 includedir=$ac_optarg ;;
671aa708
NN
1068
1069 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 ac_prev=infodir ;;
1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1072 infodir=$ac_optarg ;;
671aa708
NN
1073
1074 -libdir | --libdir | --libdi | --libd)
1075 ac_prev=libdir ;;
1076 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1077 libdir=$ac_optarg ;;
671aa708
NN
1078
1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080 | --libexe | --libex | --libe)
1081 ac_prev=libexecdir ;;
1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1084 libexecdir=$ac_optarg ;;
671aa708 1085
5213506e
RW
1086 -localedir | --localedir | --localedi | --localed | --locale)
1087 ac_prev=localedir ;;
1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089 localedir=$ac_optarg ;;
1090
671aa708 1091 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1092 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1093 ac_prev=localstatedir ;;
1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1096 localstatedir=$ac_optarg ;;
671aa708
NN
1097
1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 ac_prev=mandir ;;
1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1101 mandir=$ac_optarg ;;
671aa708
NN
1102
1103 -nfp | --nfp | --nf)
1104 # Obsolete; use --without-fp.
1105 with_fp=no ;;
1106
1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1108 | --no-cr | --no-c | -n)
671aa708
NN
1109 no_create=yes ;;
1110
1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113 no_recursion=yes ;;
1114
1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117 | --oldin | --oldi | --old | --ol | --o)
1118 ac_prev=oldincludedir ;;
1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1122 oldincludedir=$ac_optarg ;;
671aa708
NN
1123
1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 ac_prev=prefix ;;
1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1127 prefix=$ac_optarg ;;
671aa708
NN
1128
1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130 | --program-pre | --program-pr | --program-p)
1131 ac_prev=program_prefix ;;
1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1134 program_prefix=$ac_optarg ;;
671aa708
NN
1135
1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137 | --program-suf | --program-su | --program-s)
1138 ac_prev=program_suffix ;;
1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1141 program_suffix=$ac_optarg ;;
671aa708
NN
1142
1143 -program-transform-name | --program-transform-name \
1144 | --program-transform-nam | --program-transform-na \
1145 | --program-transform-n | --program-transform- \
1146 | --program-transform | --program-transfor \
1147 | --program-transfo | --program-transf \
1148 | --program-trans | --program-tran \
1149 | --progr-tra | --program-tr | --program-t)
1150 ac_prev=program_transform_name ;;
1151 -program-transform-name=* | --program-transform-name=* \
1152 | --program-transform-nam=* | --program-transform-na=* \
1153 | --program-transform-n=* | --program-transform-=* \
1154 | --program-transform=* | --program-transfor=* \
1155 | --program-transfo=* | --program-transf=* \
1156 | --program-trans=* | --program-tran=* \
1157 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1158 program_transform_name=$ac_optarg ;;
671aa708 1159
5213506e
RW
1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 ac_prev=pdfdir ;;
1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163 pdfdir=$ac_optarg ;;
1164
1165 -psdir | --psdir | --psdi | --psd | --ps)
1166 ac_prev=psdir ;;
1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168 psdir=$ac_optarg ;;
1169
671aa708
NN
1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171 | -silent | --silent | --silen | --sile | --sil)
1172 silent=yes ;;
1173
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 ac_prev=sbindir ;;
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 | --sbi=* | --sb=*)
1c710c3c 1178 sbindir=$ac_optarg ;;
671aa708
NN
1179
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1183 | --sha | --sh)
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 | --sha=* | --sh=*)
1c710c3c 1189 sharedstatedir=$ac_optarg ;;
671aa708
NN
1190
1191 -site | --site | --sit)
1192 ac_prev=site ;;
1193 -site=* | --site=* | --sit=*)
1c710c3c 1194 site=$ac_optarg ;;
671aa708
NN
1195
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 ac_prev=srcdir ;;
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1199 srcdir=$ac_optarg ;;
671aa708
NN
1200
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1206 sysconfdir=$ac_optarg ;;
671aa708
NN
1207
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1209 ac_prev=target_alias ;;
671aa708 1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1211 target_alias=$ac_optarg ;;
671aa708
NN
1212
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214 verbose=yes ;;
1215
1c710c3c
DJ
1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
671aa708
NN
1218
1219 -with-* | --with-*)
5213506e 1220 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1221 # Reject names that are not valid shell variable names.
5213506e 1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1223 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228"with_$ac_useropt"
1229"*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
2aeb72e9 1232 esac
5213506e 1233 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1234
1235 -without-* | --without-*)
5213506e 1236 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1237 # Reject names that are not valid shell variable names.
5213506e 1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1239 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1243 *"
1244"with_$ac_useropt"
1245"*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1248 esac
1249 eval with_$ac_useropt=no ;;
671aa708
NN
1250
1251 --x)
1252 # Obsolete; use --with-x.
1253 with_x=yes ;;
1254
1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256 | --x-incl | --x-inc | --x-in | --x-i)
1257 ac_prev=x_includes ;;
1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1260 x_includes=$ac_optarg ;;
671aa708
NN
1261
1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264 ac_prev=x_libraries ;;
1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1267 x_libraries=$ac_optarg ;;
671aa708 1268
22e05272
JM
1269 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1270Try \`$0 --help' for more information"
671aa708
NN
1271 ;;
1272
1c710c3c
DJ
1273 *=*)
1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
5213506e
RW
1276 case $ac_envvar in #(
1277 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1278 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1279 esac
1280 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1281 export $ac_envvar ;;
1282
671aa708 1283 *)
1c710c3c 1284 # FIXME: should be removed in autoconf 3.0.
5213506e 1285 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1287 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1288 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
671aa708
NN
1289 ;;
1290
1291 esac
1292done
1293
1294if test -n "$ac_prev"; then
1c710c3c 1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1296 as_fn_error $? "missing argument to $ac_option"
af71363e 1297fi
af71363e 1298
5213506e
RW
1299if test -n "$ac_unrecognized_opts"; then
1300 case $enable_option_checking in
1301 no) ;;
22e05272 1302 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1303 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1304 esac
5213506e 1305fi
2aeb72e9 1306
5213506e
RW
1307# Check all directory arguments for consistency.
1308for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir
2aeb72e9 1312do
5213506e
RW
1313 eval ac_val=\$$ac_var
1314 # Remove trailing slashes.
1315 case $ac_val in
1316 */ )
1317 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1318 eval $ac_var=\$ac_val;;
1319 esac
1320 # Be sure to have absolute directory names.
2aeb72e9 1321 case $ac_val in
5213506e
RW
1322 [\\/$]* | ?:[\\/]* ) continue;;
1323 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1324 esac
22e05272 1325 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1326done
1327
1c710c3c
DJ
1328# There might be people who depend on the old broken behavior: `$host'
1329# used to hold the argument of --host etc.
1330# FIXME: To remove some day.
1331build=$build_alias
1332host=$host_alias
1333target=$target_alias
0b0dc272 1334
1c710c3c
DJ
1335# FIXME: To remove some day.
1336if test "x$host_alias" != x; then
1337 if test "x$build_alias" = x; then
1338 cross_compiling=maybe
1c710c3c
DJ
1339 elif test "x$build_alias" != "x$host_alias"; then
1340 cross_compiling=yes
1341 fi
1342fi
1343
1344ac_tool_prefix=
1345test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347test "$silent" = yes && exec 6>/dev/null
671aa708 1348
671aa708 1349
5213506e
RW
1350ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351ac_ls_di=`ls -di .` &&
1352ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1353 as_fn_error $? "working directory cannot be determined"
5213506e 1354test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1355 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1356
1357
671aa708
NN
1358# Find the source files, if location was not specified.
1359if test -z "$srcdir"; then
1360 ac_srcdir_defaulted=yes
5213506e
RW
1361 # Try the directory containing this script, then the parent directory.
1362 ac_confdir=`$as_dirname -- "$as_myself" ||
1363$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364 X"$as_myself" : 'X\(//\)[^/]' \| \
1365 X"$as_myself" : 'X\(//\)$' \| \
1366 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367$as_echo X"$as_myself" |
1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)[^/].*/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\/\)$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\).*/{
1381 s//\1/
1382 q
1383 }
1384 s/.*/./; q'`
671aa708 1385 srcdir=$ac_confdir
5213506e 1386 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1387 srcdir=..
1388 fi
1389else
1390 ac_srcdir_defaulted=no
1391fi
5213506e
RW
1392if test ! -r "$srcdir/$ac_unique_file"; then
1393 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1394 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1395fi
1396ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397ac_abs_confdir=`(
22e05272 1398 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1399 pwd)`
1400# When building in place, set srcdir=.
1401if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1403fi
1404# Remove unnecessary trailing slashes from srcdir.
1405# Double slashes in file names in object file debugging info
1406# mess up M-x gdb in Emacs.
1407case $srcdir in
1408*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409esac
87841584
AM
1410case $srcdir in
1411 *" "*)
22e05272 1412 as_fn_error $? "path to source, $srcdir, contains spaces"
87841584
AM
1413 ;;
1414esac
ac9e6043
RW
1415ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1416
5213506e
RW
1417for ac_var in $ac_precious_vars; do
1418 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_env_${ac_var}_value=\$${ac_var}
1420 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422done
1c710c3c
DJ
1423
1424#
1425# Report the --help message.
1426#
1427if test "$ac_init_help" = "long"; then
1428 # Omit some internal or obsolete options to make the list less imposing.
1429 # This message is too long to be a string in the A/UX 3.1 sh.
1430 cat <<_ACEOF
1431\`configure' configures this package to adapt to many kinds of systems.
1432
1433Usage: $0 [OPTION]... [VAR=VALUE]...
1434
1435To assign environment variables (e.g., CC, CFLAGS...), specify them as
1436VAR=VALUE. See below for descriptions of some of the useful variables.
1437
1438Defaults for the options are specified in brackets.
1439
1440Configuration:
1441 -h, --help display this help and exit
1442 --help=short display options specific to this package
1443 --help=recursive display the short help of all the included packages
1444 -V, --version display version information and exit
22e05272 1445 -q, --quiet, --silent do not print \`checking ...' messages
1c710c3c
DJ
1446 --cache-file=FILE cache test results in FILE [disabled]
1447 -C, --config-cache alias for \`--cache-file=config.cache'
1448 -n, --no-create do not create output files
1449 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450
1c710c3c
DJ
1451Installation directories:
1452 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1453 [$ac_default_prefix]
1c710c3c 1454 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1455 [PREFIX]
1c710c3c
DJ
1456
1457By default, \`make install' will install all the files in
1458\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1459an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1460for instance \`--prefix=\$HOME'.
1461
1462For better control, use the options below.
1463
1464Fine tuning of the installation directories:
5213506e
RW
1465 --bindir=DIR user executables [EPREFIX/bin]
1466 --sbindir=DIR system admin executables [EPREFIX/sbin]
1467 --libexecdir=DIR program executables [EPREFIX/libexec]
1468 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1469 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1470 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1471 --libdir=DIR object code libraries [EPREFIX/lib]
1472 --includedir=DIR C header files [PREFIX/include]
1473 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1474 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1475 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1476 --infodir=DIR info documentation [DATAROOTDIR/info]
1477 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1478 --mandir=DIR man documentation [DATAROOTDIR/man]
1479 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1480 --htmldir=DIR html documentation [DOCDIR]
1481 --dvidir=DIR dvi documentation [DOCDIR]
1482 --pdfdir=DIR pdf documentation [DOCDIR]
1483 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1484_ACEOF
1485
1486 cat <<\_ACEOF
1487
1488Program names:
1489 --program-prefix=PREFIX prepend PREFIX to installed program names
1490 --program-suffix=SUFFIX append SUFFIX to installed program names
1491 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1492
1493System types:
1494 --build=BUILD configure for building on BUILD [guessed]
1495 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1496 --target=TARGET configure for building compilers for TARGET [HOST]
1497_ACEOF
1498fi
1499
1500if test -n "$ac_init_help"; then
1501
1502 cat <<\_ACEOF
1503
1504Optional Features:
5213506e 1505 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1506 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1507 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1508 --enable-as-accelerator-for=ARG
1509 build as offload target compiler. Specify offload
1510 host triple by ARG
1511 --enable-offload-targets=LIST
1512 enable offloading to devices from comma-separated
1513 LIST of TARGET[=DIR]. Use optional path to find
1514 offload target compiler during the build
21539e2e 1515 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1516 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1517 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1518 Enable compressed debug sections for gas, gold or ld
1519 by default
87e6d9dc
TB
1520 --disable-libquadmath do not build libquadmath directory
1521 --disable-libquadmath-support
1522 disable libquadmath support for Fortran
30b74385
RW
1523 --enable-libada build libada directory
1524 --enable-libssp build libssp directory
1873ec0c 1525 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1526 --enable-liboffloadmic=ARG
1527 build liboffloadmic [ARG={no,host,target}]
ff3ac0f4 1528 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9 1529 --disable-isl-version-check
560d18d3 1530 disable check for isl version
d7f09764 1531 --enable-lto enable link time optimization support
45b3824d
TS
1532 --enable-linker-plugin-configure-flags=FLAGS
1533 additional flags for configuring linker plugins
1534 [none]
1535 --enable-linker-plugin-flags=FLAGS
1536 additional flags for configuring and building linker
1537 plugins [none]
cdfee50a 1538 --enable-host-shared build host code as shared libraries
33e39b66
AS
1539 --enable-stage1-languages[=all]
1540 choose additional languages to build during stage1.
1541 Mostly useful for compiler development
43c40f3e
RO
1542 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1543 Objective-C runtime
318a4e6d 1544 --enable-vtable-verify Enable vtable verification feature
30b74385 1545 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1546 force sequential configuration of sub-packages for
1547 the host, target or build machine, or all
1548 sub-packages
1549 --enable-maintainer-mode
1550 enable make rules and dependencies not useful (and
1551 sometimes confusing) to the casual installer
1552 --enable-stage1-checking[=all]
1553 choose additional checking for stage1 of the
1554 compiler
1c710c3c
DJ
1555 --enable-werror enable -Werror in bootstrap stage2 and later
1556
1557Optional Packages:
1558 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1559 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1560 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1561 --with-system-zlib use installed libz
33e39b66
AS
1562 --with-mpc=PATH specify prefix directory for installed MPC package.
1563 Equivalent to --with-mpc-include=PATH/include plus
1564 --with-mpc-lib=PATH/lib
1565 --with-mpc-include=PATH specify directory for installed MPC include files
1566 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1567 --with-mpfr-dir=PATH this option has been REMOVED
1568 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1569 Equivalent to --with-mpfr-include=PATH/include plus
1570 --with-mpfr-lib=PATH/lib
1c710c3c 1571 --with-mpfr-include=PATH
30b74385
RW
1572 specify directory for installed MPFR include files
1573 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1574 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1575 --with-gmp=PATH specify prefix directory for the installed GMP
1576 package. Equivalent to
1577 --with-gmp-include=PATH/include plus
1578 --with-gmp-lib=PATH/lib
30b74385
RW
1579 --with-gmp-include=PATH specify directory for installed GMP include files
1580 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1581 --with-stage1-libs=LIBS libraries for stage1
33e39b66
AS
1582 --with-stage1-ldflags=FLAGS
1583 linker flags for stage1
33e39b66
AS
1584 --with-boot-libs=LIBS libraries for stage2 and later
1585 --with-boot-ldflags=FLAGS
1586 linker flags for stage2 and later
e357a5e0 1587 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1588 package. Equivalent to
33ad93b9
RG
1589 --with-isl-include=PATH/include plus
1590 --with-isl-lib=PATH/lib
560d18d3
AK
1591 --with-isl-include=PATH Specify directory for installed isl include files
1592 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1593 --with-target-bdw-gc=PATHLIST
1594 specify prefix directory for installed bdw-gc
1595 package. Equivalent to
1596 --with-target-bdw-gc-include=PATH/include plus
1597 --with-target-bdw-gc-lib=PATH/lib
1598 --with-target-bdw-gc-include=PATHLIST
1599 specify directories for installed bdw-gc include
1600 files
1601 --with-target-bdw-gc-lib=PATHLIST
1602 specify directories for installed bdw-gc library
3c36aa6b
JJ
1603 --with-gcc-major-version-only
1604 use only GCC major number in filesystem paths
30b74385 1605 --with-build-sysroot=SYSROOT
1c710c3c 1606 use sysroot as the system root during the build
c8aea42c 1607 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1608 map A to B, C to D ... in debug information
1609 --with-build-config='NAME NAME2...'
1610 use config/NAME.mk build configuration
30b74385 1611 --with-build-time-tools=PATH
1c710c3c 1612 use given path to find target tools during the build
1c710c3c
DJ
1613
1614Some influential environment variables:
1615 CC C compiler command
1616 CFLAGS C compiler flags
1617 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1618 nonstandard directory <lib dir>
5213506e 1619 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1620 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1621 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1622 CXX C++ compiler command
1623 CXXFLAGS C++ compiler flags
ffedf511
RW
1624 build_configargs
1625 additional configure arguments for build directories
1626 host_configargs
1627 additional configure arguments for host directories
1628 target_configargs
1629 additional configure arguments for target directories
278a7a38
AO
1630 AR AR for the host
1631 AS AS for the host
1632 DLLTOOL DLLTOOL for the host
1633 LD LD for the host
1634 LIPO LIPO for the host
1635 NM NM for the host
1636 RANLIB RANLIB for the host
1637 STRIP STRIP for the host
1638 WINDRES WINDRES for the host
901119ae 1639 WINDMC WINDMC for the host
278a7a38
AO
1640 OBJCOPY OBJCOPY for the host
1641 OBJDUMP OBJDUMP for the host
e4a9a572 1642 OTOOL OTOOL for the host
e7a82751 1643 READELF READELF for the host
278a7a38
AO
1644 CC_FOR_TARGET
1645 CC for the target
1646 CXX_FOR_TARGET
1647 CXX for the target
1648 GCC_FOR_TARGET
1649 GCC for the target
278a7a38
AO
1650 GFORTRAN_FOR_TARGET
1651 GFORTRAN for the target
632e2a07
ILT
1652 GOC_FOR_TARGET
1653 GOC for the target
b4c522fa
IB
1654 GDC_FOR_TARGET
1655 GDC for the target
278a7a38
AO
1656 AR_FOR_TARGET
1657 AR for the target
1658 AS_FOR_TARGET
1659 AS for the target
1660 DLLTOOL_FOR_TARGET
1661 DLLTOOL for the target
1662 LD_FOR_TARGET
1663 LD for the target
1664 LIPO_FOR_TARGET
1665 LIPO for the target
1666 NM_FOR_TARGET
1667 NM for the target
9bccfdf5
AP
1668 OBJCOPY_FOR_TARGET
1669 OBJCOPY for the target
278a7a38
AO
1670 OBJDUMP_FOR_TARGET
1671 OBJDUMP for the target
e4a9a572
IS
1672 OTOOL_FOR_TARGET
1673 OTOOL for the target
278a7a38
AO
1674 RANLIB_FOR_TARGET
1675 RANLIB for the target
e7a82751
RM
1676 READELF_FOR_TARGET
1677 READELF for the target
278a7a38
AO
1678 STRIP_FOR_TARGET
1679 STRIP for the target
1680 WINDRES_FOR_TARGET
1681 WINDRES for the target
901119ae
KT
1682 WINDMC_FOR_TARGET
1683 WINDMC for the target
1c710c3c
DJ
1684
1685Use these variables to override the choices made by `configure' or to help
1686it to find libraries and programs with nonstandard names/locations.
1687
5213506e 1688Report bugs to the package provider.
1c710c3c 1689_ACEOF
5213506e 1690ac_status=$?
1c710c3c
DJ
1691fi
1692
1693if test "$ac_init_help" = "recursive"; then
1694 # If there are subdirs, report their specific --help.
1c710c3c 1695 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1696 test -d "$ac_dir" ||
1697 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1698 continue
1c710c3c
DJ
1699 ac_builddir=.
1700
5213506e
RW
1701case "$ac_dir" in
1702.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703*)
1704 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1705 # A ".." for each directory in $ac_dir_suffix.
1706 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1707 case $ac_top_builddir_sub in
1708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1710 esac ;;
1711esac
1712ac_abs_top_builddir=$ac_pwd
1713ac_abs_builddir=$ac_pwd$ac_dir_suffix
1714# for backward compatibility:
1715ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1716
1717case $srcdir in
5213506e 1718 .) # We are building in place.
1c710c3c 1719 ac_srcdir=.
5213506e
RW
1720 ac_top_srcdir=$ac_top_builddir_sub
1721 ac_abs_top_srcdir=$ac_pwd ;;
1722 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1723 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1724 ac_top_srcdir=$srcdir
1725 ac_abs_top_srcdir=$srcdir ;;
1726 *) # Relative name.
1727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1728 ac_top_srcdir=$ac_top_build_prefix$srcdir
1729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1730esac
5213506e
RW
1731ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1732
1733 cd "$ac_dir" || { ac_status=$?; continue; }
1734 # Check for guested configure.
1735 if test -f "$ac_srcdir/configure.gnu"; then
1736 echo &&
1737 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1738 elif test -f "$ac_srcdir/configure"; then
1739 echo &&
1740 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1741 else
5213506e
RW
1742 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1743 fi || ac_status=$?
1744 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1745 done
1746fi
1747
5213506e 1748test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1749if $ac_init_version; then
1750 cat <<\_ACEOF
5213506e 1751configure
22e05272 1752generated by GNU Autoconf 2.69
1c710c3c 1753
22e05272 1754Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
1755This configure script is free software; the Free Software Foundation
1756gives unlimited permission to copy, distribute and modify it.
1757_ACEOF
5213506e 1758 exit
0b0dc272 1759fi
5213506e
RW
1760
1761## ------------------------ ##
1762## Autoconf initialization. ##
1763## ------------------------ ##
1764
1765# ac_fn_c_try_compile LINENO
1766# --------------------------
1767# Try to compile conftest.$ac_ext, and return whether this succeeded.
1768ac_fn_c_try_compile ()
1769{
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 rm -f conftest.$ac_objext
1772 if { { ac_try="$ac_compile"
1773case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776esac
1777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778$as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_compile") 2>conftest.err
1780 ac_status=$?
1781 if test -s conftest.err; then
1782 grep -v '^ *+' conftest.err >conftest.er1
1783 cat conftest.er1 >&5
1784 mv -f conftest.er1 conftest.err
1785 fi
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } && {
1788 test -z "$ac_c_werror_flag" ||
1789 test ! -s conftest.err
1790 } && test -s conftest.$ac_objext; then :
1791 ac_retval=0
1792else
1793 $as_echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 ac_retval=1
1797fi
22e05272
JM
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 as_fn_set_status $ac_retval
5213506e
RW
1800
1801} # ac_fn_c_try_compile
1802
1803# ac_fn_cxx_try_compile LINENO
1804# ----------------------------
1805# Try to compile conftest.$ac_ext, and return whether this succeeded.
1806ac_fn_cxx_try_compile ()
1807{
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 rm -f conftest.$ac_objext
1810 if { { ac_try="$ac_compile"
1811case "(($ac_try" in
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1814esac
1815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816$as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_compile") 2>conftest.err
1818 ac_status=$?
1819 if test -s conftest.err; then
1820 grep -v '^ *+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1823 fi
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } && {
1826 test -z "$ac_cxx_werror_flag" ||
1827 test ! -s conftest.err
1828 } && test -s conftest.$ac_objext; then :
1829 ac_retval=0
1830else
1831 $as_echo "$as_me: failed program was:" >&5
1832sed 's/^/| /' conftest.$ac_ext >&5
1833
1834 ac_retval=1
1835fi
22e05272
JM
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
5213506e
RW
1838
1839} # ac_fn_cxx_try_compile
1840
0b21f5d3
EB
1841# ac_fn_cxx_try_link LINENO
1842# -------------------------
1843# Try to link conftest.$ac_ext, and return whether this succeeded.
1844ac_fn_cxx_try_link ()
1845{
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext conftest$ac_exeext
1848 if { { ac_try="$ac_link"
1849case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852esac
1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854$as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>conftest.err
1856 ac_status=$?
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1861 fi
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_cxx_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest$ac_exeext && {
1867 test "$cross_compiling" = yes ||
22e05272 1868 test -x conftest$ac_exeext
0b21f5d3
EB
1869 }; then :
1870 ac_retval=0
1871else
1872 $as_echo "$as_me: failed program was:" >&5
1873sed 's/^/| /' conftest.$ac_ext >&5
1874
1875 ac_retval=1
1876fi
1877 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1878 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1879 # interfere with the next link command; also delete a directory that is
1880 # left behind by Apple's compiler. We do this before executing the actions.
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 as_fn_set_status $ac_retval
0b21f5d3
EB
1884
1885} # ac_fn_cxx_try_link
1886
5213506e
RW
1887# ac_fn_c_try_link LINENO
1888# -----------------------
1889# Try to link conftest.$ac_ext, and return whether this succeeded.
1890ac_fn_c_try_link ()
1891{
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 rm -f conftest.$ac_objext conftest$ac_exeext
1894 if { { ac_try="$ac_link"
1895case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898esac
1899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900$as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_link") 2>conftest.err
1902 ac_status=$?
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1907 fi
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } && {
1910 test -z "$ac_c_werror_flag" ||
1911 test ! -s conftest.err
1912 } && test -s conftest$ac_exeext && {
1913 test "$cross_compiling" = yes ||
22e05272 1914 test -x conftest$ac_exeext
5213506e
RW
1915 }; then :
1916 ac_retval=0
1917else
1918 $as_echo "$as_me: failed program was:" >&5
1919sed 's/^/| /' conftest.$ac_ext >&5
1920
1921 ac_retval=1
1922fi
1923 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1924 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1925 # interfere with the next link command; also delete a directory that is
1926 # left behind by Apple's compiler. We do this before executing the actions.
1927 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 as_fn_set_status $ac_retval
5213506e
RW
1930
1931} # ac_fn_c_try_link
1932cat >config.log <<_ACEOF
1c710c3c
DJ
1933This file contains any messages produced by compilers while
1934running configure, to aid debugging if configure makes a mistake.
1935
1936It was created by $as_me, which was
22e05272 1937generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
1938
1939 $ $0 $@
1940
1941_ACEOF
5213506e 1942exec 5>>config.log
1c710c3c
DJ
1943{
1944cat <<_ASUNAME
1945## --------- ##
1946## Platform. ##
1947## --------- ##
1948
1949hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1950uname -m = `(uname -m) 2>/dev/null || echo unknown`
1951uname -r = `(uname -r) 2>/dev/null || echo unknown`
1952uname -s = `(uname -s) 2>/dev/null || echo unknown`
1953uname -v = `(uname -v) 2>/dev/null || echo unknown`
1954
1955/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1956/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1957
1958/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1959/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1960/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1961/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1962/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1963/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1964/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1965
1966_ASUNAME
1967
1968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969for as_dir in $PATH
1970do
1971 IFS=$as_save_IFS
1972 test -z "$as_dir" && as_dir=.
5213506e
RW
1973 $as_echo "PATH: $as_dir"
1974 done
1975IFS=$as_save_IFS
1c710c3c
DJ
1976
1977} >&5
1978
1979cat >&5 <<_ACEOF
1980
1981
1982## ----------- ##
1983## Core tests. ##
1984## ----------- ##
1985
1986_ACEOF
1987
1988
1989# Keep a trace of the command line.
1990# Strip out --no-create and --no-recursion so they do not pile up.
1991# Strip out --silent because we don't want to record it for future runs.
1992# Also quote any args containing shell meta-characters.
1993# Make two passes to allow for proper duplicate-argument suppression.
1994ac_configure_args=
1995ac_configure_args0=
1996ac_configure_args1=
1c710c3c
DJ
1997ac_must_keep_next=false
1998for ac_pass in 1 2
1999do
2000 for ac_arg
2001 do
2002 case $ac_arg in
2003 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2005 | -silent | --silent | --silen | --sile | --sil)
2006 continue ;;
5213506e
RW
2007 *\'*)
2008 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2009 esac
2010 case $ac_pass in
5213506e 2011 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2012 2)
5213506e 2013 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2014 if test $ac_must_keep_next = true; then
2015 ac_must_keep_next=false # Got value, back to normal.
2016 else
2017 case $ac_arg in
2018 *=* | --config-cache | -C | -disable-* | --disable-* \
2019 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2020 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2021 | -with-* | --with-* | -without-* | --without-* | --x)
2022 case "$ac_configure_args0 " in
2023 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2024 esac
2025 ;;
2026 -* ) ac_must_keep_next=true ;;
2027 esac
2028 fi
5213506e 2029 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2030 ;;
2031 esac
2032 done
2033done
5213506e
RW
2034{ ac_configure_args0=; unset ac_configure_args0;}
2035{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2036
2037# When interrupted or exit'd, cleanup temporary files, and complete
2038# config.log. We remove comments because anyway the quotes in there
2039# would cause problems or look ugly.
5213506e
RW
2040# WARNING: Use '\'' to represent an apostrophe within the trap.
2041# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2042trap 'exit_status=$?
2043 # Save into config.log some information that might help in debugging.
2044 {
2045 echo
2046
22e05272 2047 $as_echo "## ---------------- ##
1c710c3c 2048## Cache variables. ##
22e05272 2049## ---------------- ##"
1c710c3c
DJ
2050 echo
2051 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2052(
2053 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2054 eval ac_val=\$$ac_var
2055 case $ac_val in #(
2056 *${as_nl}*)
2057 case $ac_var in #(
2058 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2059$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2060 esac
2061 case $ac_var in #(
2062 _ | IFS | as_nl) ;; #(
2063 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2064 *) { eval $ac_var=; unset $ac_var;} ;;
2065 esac ;;
2066 esac
2067 done
1c710c3c 2068 (set) 2>&1 |
5213506e
RW
2069 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2070 *${as_nl}ac_space=\ *)
1c710c3c 2071 sed -n \
5213506e
RW
2072 "s/'\''/'\''\\\\'\'''\''/g;
2073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2074 ;; #(
1c710c3c 2075 *)
5213506e 2076 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2077 ;;
5213506e
RW
2078 esac |
2079 sort
2080)
1c710c3c
DJ
2081 echo
2082
22e05272 2083 $as_echo "## ----------------- ##
1c710c3c 2084## Output variables. ##
22e05272 2085## ----------------- ##"
1c710c3c
DJ
2086 echo
2087 for ac_var in $ac_subst_vars
2088 do
5213506e
RW
2089 eval ac_val=\$$ac_var
2090 case $ac_val in
2091 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2092 esac
2093 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2094 done | sort
2095 echo
2096
2097 if test -n "$ac_subst_files"; then
22e05272 2098 $as_echo "## ------------------- ##
5213506e 2099## File substitutions. ##
22e05272 2100## ------------------- ##"
1c710c3c
DJ
2101 echo
2102 for ac_var in $ac_subst_files
2103 do
5213506e
RW
2104 eval ac_val=\$$ac_var
2105 case $ac_val in
2106 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2107 esac
2108 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2109 done | sort
2110 echo
2111 fi
2112
2113 if test -s confdefs.h; then
22e05272 2114 $as_echo "## ----------- ##
1c710c3c 2115## confdefs.h. ##
22e05272 2116## ----------- ##"
1c710c3c 2117 echo
5213506e 2118 cat confdefs.h
1c710c3c
DJ
2119 echo
2120 fi
2121 test "$ac_signal" != 0 &&
5213506e
RW
2122 $as_echo "$as_me: caught signal $ac_signal"
2123 $as_echo "$as_me: exit $exit_status"
1c710c3c 2124 } >&5
5213506e
RW
2125 rm -f core *.core core.conftest.* &&
2126 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2127 exit $exit_status
5213506e 2128' 0
1c710c3c 2129for ac_signal in 1 2 13 15; do
5213506e 2130 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2131done
2132ac_signal=0
2133
2134# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2135rm -f -r conftest* confdefs.h
2136
2137$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2138
2139# Predefined preprocessor variables.
2140
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_NAME "$PACKAGE_NAME"
2143_ACEOF
2144
1c710c3c
DJ
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2147_ACEOF
2148
1c710c3c
DJ
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_VERSION "$PACKAGE_VERSION"
2151_ACEOF
0b0dc272 2152
1c710c3c
DJ
2153cat >>confdefs.h <<_ACEOF
2154#define PACKAGE_STRING "$PACKAGE_STRING"
2155_ACEOF
2156
1c710c3c
DJ
2157cat >>confdefs.h <<_ACEOF
2158#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2159_ACEOF
2160
5213506e
RW
2161cat >>confdefs.h <<_ACEOF
2162#define PACKAGE_URL "$PACKAGE_URL"
2163_ACEOF
2164
1c710c3c
DJ
2165
2166# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2167# Prefer an explicitly selected file to automatically selected ones.
2168ac_site_file1=NONE
2169ac_site_file2=NONE
2170if test -n "$CONFIG_SITE"; then
22e05272
JM
2171 # We do not want a PATH search for config.site.
2172 case $CONFIG_SITE in #((
2173 -*) ac_site_file1=./$CONFIG_SITE;;
2174 */*) ac_site_file1=$CONFIG_SITE;;
2175 *) ac_site_file1=./$CONFIG_SITE;;
2176 esac
5213506e
RW
2177elif test "x$prefix" != xNONE; then
2178 ac_site_file1=$prefix/share/config.site
2179 ac_site_file2=$prefix/etc/config.site
2180else
2181 ac_site_file1=$ac_default_prefix/share/config.site
2182 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2183fi
5213506e
RW
2184for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2185do
2186 test "x$ac_site_file" = xNONE && continue
22e05272 2187 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2189$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2190 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2191 . "$ac_site_file" \
2192 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2194as_fn_error $? "failed to load site script $ac_site_file
2195See \`config.log' for more details" "$LINENO" 5; }
671aa708
NN
2196 fi
2197done
2198
2199if test -r "$cache_file"; then
22e05272
JM
2200 # Some versions of bash will fail to source /dev/null (special files
2201 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2202 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2204$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2205 case $cache_file in
5213506e
RW
2206 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2207 *) . "./$cache_file";;
1c710c3c
DJ
2208 esac
2209 fi
671aa708 2210else
5213506e
RW
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2212$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2213 >$cache_file
2214fi
2215
2216# Check that the precious variables saved in the cache have kept the same
2217# value.
2218ac_cache_corrupted=false
5213506e 2219for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2220 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2221 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2222 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2223 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2224 case $ac_old_set,$ac_new_set in
2225 set,)
5213506e
RW
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2227$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2228 ac_cache_corrupted=: ;;
2229 ,set)
5213506e
RW
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2231$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2232 ac_cache_corrupted=: ;;
2233 ,);;
2234 *)
2235 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2236 # differences in whitespace do not lead to failure.
2237 ac_old_val_w=`echo x $ac_old_val`
2238 ac_new_val_w=`echo x $ac_new_val`
2239 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2241$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2242 ac_cache_corrupted=:
2243 else
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2245$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2246 eval $ac_var=\$ac_old_val
2247 fi
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2249$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2251$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2252 fi;;
2253 esac
2254 # Pass precious variables to config.status.
2255 if test "$ac_new_set" = set; then
2256 case $ac_new_val in
5213506e 2257 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2258 *) ac_arg=$ac_var=$ac_new_val ;;
2259 esac
2260 case " $ac_configure_args " in
2261 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2262 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2263 esac
2264 fi
2265done
2266if $ac_cache_corrupted; then
5213506e
RW
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2270$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2271 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2272fi
5213506e
RW
2273## -------------------- ##
2274## Main body of script. ##
2275## -------------------- ##
671aa708 2276
2aeb72e9
DD
2277ac_ext=c
2278ac_cpp='$CPP $CPPFLAGS'
2279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282
1c710c3c
DJ
2283
2284
2285
1c710c3c
DJ
2286
2287
0115d4a3 2288
1c710c3c 2289
ad33ff57
RW
2290progname=$0
2291# if PWD already has a value, it is probably wrong.
2292if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2293
2294# Export original configure arguments for use by sub-configures.
2295# Quote arguments with shell meta charatcers.
2296TOPLEVEL_CONFIGURE_ARGUMENTS=
2297set -- "$progname" "$@"
2298for ac_arg
2299do
2300 case "$ac_arg" in
2301 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2302 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2303 # if the argument is of the form -foo=baz, quote the baz part only
2304 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2305 *) ;;
2306 esac
2307 # Add the quoted argument to the list.
2308 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2309done
2310if test "$silent" = yes; then
2311 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2312fi
2313# Remove the initial space we just introduced and, as these will be
2314# expanded by make, quote '$'.
2315TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2316
1c710c3c
DJ
2317
2318# Find the build, host, and target systems.
671aa708 2319ac_aux_dir=
5213506e 2320for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2321 if test -f "$ac_dir/install-sh"; then
2322 ac_aux_dir=$ac_dir
2323 ac_install_sh="$ac_aux_dir/install-sh -c"
2324 break
2325 elif 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/shtool"; then
2330 ac_aux_dir=$ac_dir
2331 ac_install_sh="$ac_aux_dir/shtool install -c"
2332 break
2333 fi
671aa708
NN
2334done
2335if test -z "$ac_aux_dir"; then
22e05272 2336 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2337fi
5213506e
RW
2338
2339# These three variables are undocumented and unsupported,
2340# and are intended to be withdrawn in a future Autoconf release.
2341# They can cause serious problems if a builder's source tree is in a directory
2342# whose full name contains unusual characters.
2343ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2344ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2345ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2346
671aa708 2347
1c710c3c 2348# Make sure we can run config.sub.
5213506e 2349$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2350 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2351
2352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2353$as_echo_n "checking build system type... " >&6; }
22e05272 2354if ${ac_cv_build+:} false; then :
5213506e
RW
2355 $as_echo_n "(cached) " >&6
2356else
2357 ac_build_alias=$build_alias
2358test "x$ac_build_alias" = x &&
2359 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2360test "x$ac_build_alias" = x &&
22e05272 2361 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2362ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2363 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2364
2365fi
2366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2367$as_echo "$ac_cv_build" >&6; }
2368case $ac_cv_build in
2369*-*-*) ;;
22e05272 2370*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2371esac
1c710c3c 2372build=$ac_cv_build
5213506e
RW
2373ac_save_IFS=$IFS; IFS='-'
2374set x $ac_cv_build
2375shift
2376build_cpu=$1
2377build_vendor=$2
2378shift; shift
2379# Remember, the first character of IFS is used to create $*,
2380# except with old shells:
2381build_os=$*
2382IFS=$ac_save_IFS
2383case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2384
671aa708 2385
1c710c3c
DJ
2386 case ${build_alias} in
2387 "") build_noncanonical=${build} ;;
2388 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2389esac
2390
2391
af71363e 2392
1c710c3c
DJ
2393 case ${host_alias} in
2394 "") host_noncanonical=${build_noncanonical} ;;
2395 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2396esac
2397
af71363e 2398
1c710c3c
DJ
2399
2400 case ${target_alias} in
2401 "") target_noncanonical=${host_noncanonical} ;;
2402 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2403esac
2404
af71363e 2405
1c710c3c
DJ
2406
2407
2408test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2409 test "$program_prefix$program_suffix$program_transform_name" = \
2410 NONENONEs,x,x, &&
1c710c3c 2411 program_transform_name=s,y,y,
af71363e 2412
5213506e
RW
2413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2414$as_echo_n "checking host system type... " >&6; }
22e05272 2415if ${ac_cv_host+:} false; then :
5213506e 2416 $as_echo_n "(cached) " >&6
af71363e 2417else
5213506e
RW
2418 if test "x$host_alias" = x; then
2419 ac_cv_host=$ac_cv_build
2420else
2421 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2422 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2423fi
1c710c3c 2424
af71363e 2425fi
5213506e
RW
2426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2427$as_echo "$ac_cv_host" >&6; }
2428case $ac_cv_host in
2429*-*-*) ;;
22e05272 2430*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2431esac
1c710c3c 2432host=$ac_cv_host
5213506e
RW
2433ac_save_IFS=$IFS; IFS='-'
2434set x $ac_cv_host
2435shift
2436host_cpu=$1
2437host_vendor=$2
2438shift; shift
2439# Remember, the first character of IFS is used to create $*,
2440# except with old shells:
2441host_os=$*
2442IFS=$ac_save_IFS
2443case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2444
2445
5213506e
RW
2446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2447$as_echo_n "checking target system type... " >&6; }
22e05272 2448if ${ac_cv_target+:} false; then :
5213506e 2449 $as_echo_n "(cached) " >&6
1c710c3c 2450else
5213506e
RW
2451 if test "x$target_alias" = x; then
2452 ac_cv_target=$ac_cv_host
2453else
2454 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2455 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2456fi
1c710c3c
DJ
2457
2458fi
5213506e
RW
2459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2460$as_echo "$ac_cv_target" >&6; }
2461case $ac_cv_target in
2462*-*-*) ;;
22e05272 2463*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2464esac
1c710c3c 2465target=$ac_cv_target
5213506e
RW
2466ac_save_IFS=$IFS; IFS='-'
2467set x $ac_cv_target
2468shift
2469target_cpu=$1
2470target_vendor=$2
2471shift; shift
2472# Remember, the first character of IFS is used to create $*,
2473# except with old shells:
2474target_os=$*
2475IFS=$ac_save_IFS
2476case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2477
2478
2479# The aliases save the names the user supplied, while $host etc.
2480# will get canonicalized.
2481test -n "$target_alias" &&
2482 test "$program_prefix$program_suffix$program_transform_name" = \
2483 NONENONEs,x,x, &&
2484 program_prefix=${target_alias}-
5213506e 2485
671aa708 2486test "$program_prefix" != NONE &&
5213506e 2487 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2488# Use a double $ so make ignores it.
2489test "$program_suffix" != NONE &&
5213506e
RW
2490 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2491# Double any \ or $.
1c710c3c 2492# By default was `s,x,x', remove it if useless.
5213506e
RW
2493ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2494program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2495
671aa708
NN
2496
2497
775956d0
NN
2498# Get 'install' or 'install-sh' and its variants.
2499# Find a good install program. We prefer a C program (faster),
2500# so one script is as good as another. But avoid the broken or
2501# incompatible versions:
2502# SysV /etc/install, /usr/sbin/install
2503# SunOS /usr/etc/install
2504# IRIX /sbin/install
2505# AIX /bin/install
1c710c3c 2506# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2507# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2508# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2509# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2510# OS/2's system install, which has a completely different semantic
775956d0 2511# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2512# Reject install programs that cannot install multiple files.
5213506e
RW
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2514$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2515if test -z "$INSTALL"; then
22e05272 2516if ${ac_cv_path_install+:} false; then :
5213506e 2517 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2518else
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520for as_dir in $PATH
2521do
2522 IFS=$as_save_IFS
2523 test -z "$as_dir" && as_dir=.
5213506e
RW
2524 # Account for people who put trailing slashes in PATH elements.
2525case $as_dir/ in #((
2526 ./ | .// | /[cC]/* | \
1c710c3c 2527 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2528 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2529 /usr/ucb/* ) ;;
2530 *)
2531 # OSF1 and SCO ODT 3.0 have their own names for install.
2532 # Don't use installbsd from OSF since it installs stuff as root
2533 # by default.
2534 for ac_prog in ginstall scoinst install; do
2535 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2536 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 2537 if test $ac_prog = install &&
1c710c3c 2538 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2539 # AIX install. It has an incompatible calling convention.
2540 :
1c710c3c
DJ
2541 elif test $ac_prog = install &&
2542 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2543 # program-specific install script used by HP pwplus--don't use.
2544 :
775956d0 2545 else
38d24731
RW
2546 rm -rf conftest.one conftest.two conftest.dir
2547 echo one > conftest.one
2548 echo two > conftest.two
2549 mkdir conftest.dir
2550 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2551 test -s conftest.one && test -s conftest.two &&
2552 test -s conftest.dir/conftest.one &&
2553 test -s conftest.dir/conftest.two
2554 then
2555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2556 break 3
2557 fi
775956d0
NN
2558 fi
2559 fi
2560 done
1c710c3c
DJ
2561 done
2562 ;;
2563esac
5213506e
RW
2564
2565 done
2566IFS=$as_save_IFS
1c710c3c 2567
38d24731 2568rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2569
2570fi
2571 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2572 INSTALL=$ac_cv_path_install
775956d0 2573 else
38d24731
RW
2574 # As a last resort, use the slow shell script. Don't cache a
2575 # value for INSTALL within a source directory, because that will
775956d0 2576 # break other packages using the cache if that directory is
38d24731 2577 # removed, or if the value is a relative name.
1c710c3c 2578 INSTALL=$ac_install_sh
775956d0
NN
2579 fi
2580fi
5213506e
RW
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2582$as_echo "$INSTALL" >&6; }
775956d0
NN
2583
2584# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2585# It thinks the first close brace ends the variable substitution.
2586test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2587
1c710c3c 2588test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2589
2590test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2591
5213506e
RW
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2593$as_echo_n "checking whether ln works... " >&6; }
22e05272 2594if ${acx_cv_prog_LN+:} false; then :
5213506e 2595 $as_echo_n "(cached) " >&6
ad6717df
PB
2596else
2597 rm -f conftestdata_t
2598echo >conftestdata_f
2599if ln conftestdata_f conftestdata_t 2>/dev/null
2600then
2601 acx_cv_prog_LN=ln
2602else
2603 acx_cv_prog_LN=no
2604fi
2605rm -f conftestdata_f conftestdata_t
2606
2607fi
2608if test $acx_cv_prog_LN = no; then
2609 LN="cp"
5213506e
RW
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2611$as_echo "no, using $LN" >&6; }
ad6717df
PB
2612else
2613 LN="$acx_cv_prog_LN"
5213506e
RW
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2615$as_echo "yes" >&6; }
ad6717df
PB
2616fi
2617
5213506e
RW
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2619$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2620LN_S=$as_ln_s
2621if test "$LN_S" = "ln -s"; then
5213506e
RW
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2623$as_echo "yes" >&6; }
fb0103e5 2624else
5213506e
RW
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2626$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2627fi
2628
87264276
PB
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2630$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 2631if ${ac_cv_path_SED+:} false; then :
87264276
PB
2632 $as_echo_n "(cached) " >&6
2633else
2634 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2635 for ac_i in 1 2 3 4 5 6 7; do
2636 ac_script="$ac_script$as_nl$ac_script"
2637 done
2638 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2639 { ac_script=; unset ac_script;}
2640 if test -z "$SED"; then
2641 ac_path_SED_found=false
2642 # Loop through the user's path and test for each of PROGNAME-LIST
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_prog in sed gsed; do
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 2651 as_fn_executable_p "$ac_path_SED" || continue
87264276
PB
2652# Check for GNU ac_path_SED and select it if it is found.
2653 # Check for GNU $ac_path_SED
2654case `"$ac_path_SED" --version 2>&1` in
2655*GNU*)
2656 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2657*)
2658 ac_count=0
2659 $as_echo_n 0123456789 >"conftest.in"
2660 while :
2661 do
2662 cat "conftest.in" "conftest.in" >"conftest.tmp"
2663 mv "conftest.tmp" "conftest.in"
2664 cp "conftest.in" "conftest.nl"
2665 $as_echo '' >> "conftest.nl"
2666 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2668 as_fn_arith $ac_count + 1 && ac_count=$as_val
2669 if test $ac_count -gt ${ac_path_SED_max-0}; then
2670 # Best one so far, save it but keep looking for a better one
2671 ac_cv_path_SED="$ac_path_SED"
2672 ac_path_SED_max=$ac_count
2673 fi
2674 # 10*(2^10) chars as input seems more than enough
2675 test $ac_count -gt 10 && break
2676 done
2677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2678esac
2679
2680 $ac_path_SED_found && break 3
2681 done
2682 done
2683 done
2684IFS=$as_save_IFS
2685 if test -z "$ac_cv_path_SED"; then
22e05272 2686 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
87264276
PB
2687 fi
2688else
2689 ac_cv_path_SED=$SED
2690fi
2691
2692fi
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2694$as_echo "$ac_cv_path_SED" >&6; }
2695 SED="$ac_cv_path_SED"
2696 rm -f conftest.sed
2697
2698for ac_prog in gawk mawk nawk awk
2699do
2700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2701set dummy $ac_prog; ac_word=$2
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2704if ${ac_cv_prog_AWK+:} false; then :
87264276
PB
2705 $as_echo_n "(cached) " >&6
2706else
2707 if test -n "$AWK"; then
2708 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2709else
2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711for as_dir in $PATH
2712do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87264276
PB
2717 ac_cv_prog_AWK="$ac_prog"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721done
2722 done
2723IFS=$as_save_IFS
2724
2725fi
2726fi
2727AWK=$ac_cv_prog_AWK
2728if test -n "$AWK"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2730$as_echo "$AWK" >&6; }
2731else
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733$as_echo "no" >&6; }
2734fi
2735
2736
2737 test -n "$AWK" && break
2738done
2739
775956d0 2740
ee6a22df
L
2741srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2742
2743# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2744# a relative path.
2745if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2746 INSTALL="${srcpwd}/install-sh -c"
2747fi
2748
671aa708
NN
2749# Set srcdir to "." if that's what it is.
2750# This is important for multilib support.
2751pwd=`${PWDCMD-pwd}`
671aa708
NN
2752if test "${pwd}" = "${srcpwd}" ; then
2753 srcdir=.
79c06341
JL
2754fi
2755
671aa708 2756topsrcdir=$srcpwd
5d4a5ee6 2757
671aa708 2758extra_host_args=
afabd8e6 2759
671aa708
NN
2760### To add a new directory to the tree, first choose whether it is a target
2761### or a host dependent tool. Then put it into the appropriate list
2762### (library or tools, host or target), doing a dependency sort.
79c06341 2763
1c710c3c 2764# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2765# configdirs, or target_configdirs; see the serialization section below.
79c06341 2766
1c710c3c
DJ
2767# Dependency sorting is only needed when *configuration* must be done in
2768# a particular order. In all cases a dependency should be specified in
671aa708 2769# the Makefile, whether or not it's implicitly specified here.
79c06341 2770
671aa708
NN
2771# Double entries in build_configdirs, configdirs, or target_configdirs may
2772# cause circular dependencies and break everything horribly.
79c06341 2773
23f6b2f9
PB
2774# these library is used by various programs built for the build
2775# environment
2776#
929315a9 2777build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2778
2779# these tools are built for the build environment
85bfb75e 2780build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2781
671aa708 2782# these libraries are used by various programs built for the host environment
eae1a5d4 2783#f
4a9bb2aa 2784host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
671aa708 2785
671aa708
NN
2786# these tools are built for the host environment
2787# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2788# know that we are building the simulator.
2789# binutils, gas and ld appear in that order because it makes sense to run
2790# "make check" in that particular order.
38e3d868 2791# If --enable-gold is used, "gold" may replace "ld".
bf1de3f0 2792host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
671aa708 2793
671aa708
NN
2794# these libraries are built for the target environment, and are built after
2795# the host libraries and the host tools (which may be a cross compiler)
8499116a 2796# Note that libiberty is not a target library.
291f172e 2797target_libraries="target-libgcc \
eff02e4f 2798 target-libbacktrace \
671aa708
NN
2799 target-libgloss \
2800 target-newlib \
6d3b5aea 2801 target-libgomp \
5f520819 2802 target-liboffloadmic \
5fd1486c 2803 target-libhsail-rt \
48310492 2804 target-libatomic \
0a35513e 2805 target-libitm \
cb543528 2806 target-libstdc++-v3 \
f35db108 2807 target-libsanitizer \
2077db1b 2808 target-libvtv \
77008252 2809 target-libssp \
1ec601bf 2810 target-libquadmath \
6de9cd9a 2811 target-libgfortran \
012447ea 2812 target-libffi \
d9cdb878 2813 target-libobjc \
632e2a07 2814 target-libada \
b4c522fa 2815 target-libgo \
bb50312e
IB
2816 target-libphobos \
2817 target-zlib"
671aa708 2818
4dbda6f0
NN
2819# these tools are built using the target libraries, and are intended to
2820# run only in the target environment
671aa708 2821#
4dbda6f0 2822# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2823# list belongs in this list.
671aa708 2824#
85bfb75e 2825target_tools="target-rda"
79c06341 2826
671aa708 2827################################################################################
79c06341 2828
671aa708
NN
2829## All tools belong in one of the four categories, and are assigned above
2830## We assign ${configdirs} this way to remove all embedded newlines. This
2831## is important because configure will choke if they ever get through.
2832## ${configdirs} is directories we build using the host tools.
2833## ${target_configdirs} is directories we build using the target tools.
671aa708 2834configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2835target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2836build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2837
ac9e6043
RW
2838
2839
671aa708 2840################################################################################
79c06341 2841
671aa708 2842srcname="gnu development package"
79c06341 2843
671aa708
NN
2844# This gets set non-empty for some net releases of packages.
2845appdirs=""
79c06341 2846
671aa708
NN
2847# Define is_cross_compiler to save on calls to 'test'.
2848is_cross_compiler=
2849if test x"${host}" = x"${target}" ; then
2850 is_cross_compiler=no
79c06341 2851else
671aa708 2852 is_cross_compiler=yes
1c710c3c 2853fi
79c06341 2854
b4acb5ef 2855# Find the build and target subdir names.
8b87bb96 2856
2e9e6f68
DJ
2857# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2858# have matching libraries, they should use host libraries: Makefile.tpl
2859# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2860# However, they still use the build modules, because the corresponding
2861# host modules (e.g. bison) are only built for the host when bootstrap
2862# finishes. So:
2863# - build_subdir is where we find build modules, and never changes.
2864# - build_libsubdir is where we find build libraries, and can be overridden.
2865
2866# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2867build_subdir="build-${build_noncanonical}"
1c710c3c 2868
5213506e
RW
2869# Check whether --with-build-libsubdir was given.
2870if test "${with_build_libsubdir+set}" = set; then :
2871 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2872else
2873 build_libsubdir="$build_subdir"
5213506e
RW
2874fi
2875
215c351a
PB
2876# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2877if ( test $srcdir = . && test -d gcc ) \
2878 || test -d $srcdir/../host-${host_noncanonical}; then
2879 host_subdir="host-${host_noncanonical}"
2880else
2881 host_subdir=.
2882fi
8b87bb96
NN
2883# No prefix.
2884target_subdir=${target_noncanonical}
1c710c3c 2885
0db770bd
RW
2886# Be sure to cover against remnants of an in-tree build.
2887if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
22e05272 2888 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
0db770bd
RW
2889Use a pristine source tree when building in a separate tree" "$LINENO" 5
2890fi
79c06341 2891
671aa708
NN
2892# Skipdirs are removed silently.
2893skipdirs=
2894# Noconfigdirs are removed loudly.
2895noconfigdirs=""
79c06341 2896
671aa708
NN
2897use_gnu_ld=
2898# Make sure we don't let GNU ld be added if we didn't want it.
2899if test x$with_gnu_ld = xno ; then
2900 use_gnu_ld=no
5afab7ad 2901 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2902fi
2903
671aa708
NN
2904use_gnu_as=
2905# Make sure we don't let GNU as be added if we didn't want it.
2906if test x$with_gnu_as = xno ; then
2907 use_gnu_as=no
2908 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2909fi
2910
d7f09764 2911use_included_zlib=
a05c2c75
L
2912
2913# Check whether --with-system-zlib was given.
2914if test "${with_system_zlib+set}" = set; then :
2915 withval=$with_system_zlib;
2916fi
2917
d7f09764
DN
2918# Make sure we don't let ZLIB be added if we didn't want it.
2919if test x$with_system_zlib = xyes ; then
2920 use_included_zlib=no
2921 noconfigdirs="$noconfigdirs zlib"
2922fi
2923
1c710c3c 2924# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2925# it's not even worth trying to configure, much less build, that tool.
79c06341 2926
671aa708
NN
2927case ${with_x} in
2928 yes | "") ;; # the default value for this tree is that X11 is available
2929 no)
b4f96efe 2930 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2931 # We won't be able to build gdbtk without X.
1c710c3c 2932 enable_gdbtk=no
671aa708
NN
2933 ;;
2934 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2935esac
79c06341 2936
1bcce263 2937# Some are only suitable for cross toolchains.
671aa708
NN
2938# Remove these if host=target.
2939cross_only="target-libgloss target-newlib target-opcodes"
2940
2941case $is_cross_compiler in
2942 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2943esac
79c06341 2944
671aa708
NN
2945# If both --with-headers and --with-libs are specified, default to
2946# --without-newlib.
ee6a22df
L
2947if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2948 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2949 if test x"${with_newlib}" = x ; then
2950 with_newlib=no
2951 fi
79c06341
JL
2952fi
2953
671aa708
NN
2954# Recognize --with-newlib/--without-newlib.
2955case ${with_newlib} in
2956 no) skipdirs="${skipdirs} target-newlib" ;;
2957 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2958esac
79c06341 2959
85c64bbe
BS
2960# Check whether --enable-as-accelerator-for was given.
2961if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2962 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2963fi
2964
2965
2966# Check whether --enable-offload-targets was given.
2967if test "${enable_offload_targets+set}" = set; then :
2968 enableval=$enable_offload_targets;
2969 if test x"$enable_offload_targets" = x; then
22e05272 2970 as_fn_error $? "no offload targets specified" "$LINENO" 5
85c64bbe
BS
2971 fi
2972
2973else
2974 enable_offload_targets=
2975fi
2976
2977
21539e2e
MK
2978# Handle --enable-gold, --enable-ld.
2979# --disable-gold [--enable-ld]
2980# Build only ld. Default option.
9580395f
L
2981# --enable-gold [--enable-ld]
2982# Build both gold and ld. Install gold as "ld.gold", install ld
2983# as "ld.bfd" and "ld".
2984# --enable-gold=default [--enable-ld]
21539e2e
MK
2985# Build both gold and ld. Install gold as "ld.gold" and "ld",
2986# install ld as "ld.bfd".
2987# --enable-gold[=default] --disable-ld
2988# Build only gold, which is then installed as both "ld.gold" and "ld".
2989# --enable-gold --enable-ld=default
9580395f
L
2990# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2991# and ld.bfd).
21539e2e
MK
2992# In other words, ld is default
2993# --enable-gold=default --enable-ld=default
2994# Error.
2995
2996default_ld=
5213506e
RW
2997# Check whether --enable-gold was given.
2998if test "${enable_gold+set}" = set; then :
2999 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
3000else
3001 ENABLE_GOLD=no
5213506e
RW
3002fi
3003
21539e2e
MK
3004case "${ENABLE_GOLD}" in
3005 yes|default)
38e3d868
RM
3006 # Check for ELF target.
3007 is_elf=no
3008 case "${target}" in
3009 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 3010 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 3011 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 3012 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
3013 case "${target}" in
3014 *-*-linux*aout* | *-*-linux*oldld*)
3015 ;;
3016 *)
3017 is_elf=yes
3018 ;;
3019 esac
3020 esac
3021
3022 if test "$is_elf" = "yes"; then
3023 # Check for target supported by gold.
5afab7ad 3024 case "${target}" in
7705dfd1 3025 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
1b858e76 3026 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
21539e2e
MK
3027 configdirs="$configdirs gold"
3028 if test x${ENABLE_GOLD} = xdefault; then
3029 default_ld=gold
3030 fi
38e3d868 3031 ENABLE_GOLD=yes
5afab7ad
ILT
3032 ;;
3033 esac
38e3d868
RM
3034 fi
3035 ;;
3036 no)
3037 ;;
3038 *)
22e05272 3039 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
38e3d868 3040 ;;
21539e2e
MK
3041esac
3042
3043# Check whether --enable-ld was given.
3044if test "${enable_ld+set}" = set; then :
3045 enableval=$enable_ld; ENABLE_LD=$enableval
3046else
3047 ENABLE_LD=yes
3048fi
3049
3050
3051case "${ENABLE_LD}" in
3052 default)
9580395f 3053 if test x${default_ld} != x; then
22e05272 3054 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
21539e2e
MK
3055 fi
3056 ;;
3057 yes)
3058 ;;
3059 no)
3060 if test x${ENABLE_GOLD} != xyes; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3062$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3063 fi
3064 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3065 ;;
3066 *)
22e05272 3067 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
21539e2e
MK
3068 ;;
3069esac
5afab7ad 3070
78edb32f
L
3071# PR gas/19109
3072# Decide the default method for compressing debug sections.
3073# Provide a configure time option to override our default.
3074# Check whether --enable-compressed_debug_sections was given.
3075if test "${enable_compressed_debug_sections+set}" = set; then :
3076 enableval=$enable_compressed_debug_sections;
3077 if test x"$enable_compressed_debug_sections" = xyes; then
22e05272 3078 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
78edb32f
L
3079 fi
3080
3081else
3082 enable_compressed_debug_sections=
3083fi
3084
3085
671aa708 3086# Configure extra directories which are host specific
79c06341 3087
671aa708
NN
3088case "${host}" in
3089 *-cygwin*)
3090 configdirs="$configdirs libtermcap" ;;
3091esac
79c06341 3092
4fab7234
HPN
3093# A target can indicate whether a language isn't supported for some reason.
3094# Only spaces may be used in this macro; not newlines or tabs.
3095unsupported_languages=
3096
1c710c3c 3097# Remove more programs from consideration, based on the host or
671aa708
NN
3098# target this usually means that a port of the program doesn't
3099# exist yet.
ec8d6ddc 3100
671aa708 3101case "${host}" in
111eeb6e 3102 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3103 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3104 ;;
671aa708 3105esac
ec8d6ddc 3106
6de9cd9a 3107
87e6d9dc
TB
3108# Check whether --enable-libquadmath was given.
3109if test "${enable_libquadmath+set}" = set; then :
3110 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3111else
3112 ENABLE_LIBQUADMATH=yes
3113fi
3114
3115if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3116 noconfigdirs="$noconfigdirs target-libquadmath"
3117fi
3118
3119
3120# Check whether --enable-libquadmath-support was given.
3121if test "${enable_libquadmath_support+set}" = set; then :
3122 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3123else
3124 ENABLE_LIBQUADMATH_SUPPORT=yes
3125fi
3126
3127enable_libquadmath_support=
3128if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3129 enable_libquadmath_support=no
3130fi
3131
3132
5213506e
RW
3133# Check whether --enable-libada was given.
3134if test "${enable_libada+set}" = set; then :
3135 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3136else
3137 ENABLE_LIBADA=yes
5213506e
RW
3138fi
3139
d9cdb878 3140if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3141 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3142fi
3143
5213506e
RW
3144# Check whether --enable-libssp was given.
3145if test "${enable_libssp+set}" = set; then :
3146 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3147else
3148 ENABLE_LIBSSP=yes
5213506e
RW
3149fi
3150
ef0087a7 3151
1873ec0c
L
3152# Check whether --enable-libstdcxx was given.
3153if test "${enable_libstdcxx+set}" = set; then :
3154 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3155else
3156 ENABLE_LIBSTDCXX=default
3157fi
3158
3159if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3160 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3161fi
3162
5f520819
KY
3163# If this is accelerator compiler and its target is intelmic we enable
3164# target liboffloadmic by default. If this is compiler with offloading
3165# for intelmic we enable host liboffloadmic by default. Otherwise
3166# liboffloadmic is disabled by default.
3167# Check whether --enable-liboffloadmic was given.
3168if test "${enable_liboffloadmic+set}" = set; then :
3169 enableval=$enable_liboffloadmic; case "$enableval" in
3170 no | host | target)
3171 enable_liboffloadmic=$enableval ;;
3172 *)
22e05272 3173 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
5f520819
KY
3174esac
3175else
4b4f2e35 3176 if test x"$enable_as_accelerator_for" != x; then
5f520819
KY
3177 case "${target}" in
3178 *-intelmic-* | *-intelmicemul-*)
3179 enable_liboffloadmic=target
3180 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3181 ;;
3182 *)
3183 enable_liboffloadmic=no
3184 ;;
3185 esac
3186else
3187 case "${enable_offload_targets}" in
3188 *-intelmic-* | *-intelmicemul-*)
3189 enable_liboffloadmic=host
3190 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3191 ;;
3192 *)
3193 enable_liboffloadmic=no
3194 ;;
3195 esac
3196fi
3197fi
3198
3199
3200
44a7d18d 3201# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3202if test x$enable_libgomp = x ; then
953ff289 3203 case "${target}" in
416ac4d4 3204 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3205 ;;
8c6d158a 3206 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3207 ;;
b24513a1 3208 *-*-solaris2* | *-*-hpux11*)
953ff289 3209 ;;
cac90078 3210 *-*-darwin* | *-*-aix*)
953ff289 3211 ;;
44a7d18d
TS
3212 nvptx*-*-*)
3213 ;;
953ff289
DN
3214 *)
3215 noconfigdirs="$noconfigdirs target-libgomp"
3216 ;;
3217 esac
27079765 3218fi
953ff289 3219
48310492
RH
3220# Disable libatomic on unsupported systems.
3221if test -d ${srcdir}/libatomic; then
3222 if test x$enable_libatomic = x; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3224$as_echo_n "checking for libatomic support... " >&6; }
3225 if (srcdir=${srcdir}/libatomic; \
3226 . ${srcdir}/configure.tgt; \
3227 test -n "$UNSUPPORTED")
3228 then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230$as_echo "no" >&6; }
3231 noconfigdirs="$noconfigdirs target-libatomic"
3232 else
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3234$as_echo "yes" >&6; }
3235 fi
3236 fi
3237fi
3238
5f520819
KY
3239# Disable liboffloadmic on unsupported systems.
3240if test -d ${srcdir}/liboffloadmic; then
3241 if test x$enable_liboffloadmic != xno; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3243$as_echo_n "checking for liboffloadmic support... " >&6; }
3244 if (srcdir=${srcdir}/liboffloadmic; \
3245 . ${srcdir}/configure.tgt; \
3246 test -n "$UNSUPPORTED")
3247 then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249$as_echo "no" >&6; }
3250 noconfigdirs="$noconfigdirs target-liboffloadmic"
3251 else
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3253$as_echo "yes" >&6; }
3254 fi
3255 fi
3256fi
3257
e948157d
RH
3258# Disable libitm on unsupported systems.
3259if test -d ${srcdir}/libitm; then
3260 if test x$enable_libitm = x; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3262$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3263 if (srcdir=${srcdir}/libitm; \
3264 . ${srcdir}/configure.tgt; \
3265 test -n "$UNSUPPORTED")
3266 then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3268$as_echo "no" >&6; }
e948157d
RH
3269 noconfigdirs="$noconfigdirs target-libitm"
3270 else
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3272$as_echo "yes" >&6; }
e948157d
RH
3273 fi
3274 fi
0a35513e
AH
3275fi
3276
93bf5390
RH
3277# Disable libsanitizer on unsupported systems.
3278if test -d ${srcdir}/libsanitizer; then
3279 if test x$enable_libsanitizer = x; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3281$as_echo_n "checking for libsanitizer support... " >&6; }
3282 if (srcdir=${srcdir}/libsanitizer; \
3283 . ${srcdir}/configure.tgt; \
3284 test -n "$UNSUPPORTED")
3285 then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287$as_echo "no" >&6; }
3288 noconfigdirs="$noconfigdirs target-libsanitizer"
3289 else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3291$as_echo "yes" >&6; }
3292 fi
3293 fi
3294fi
3295
2077db1b
CT
3296# Disable libvtv on unsupported systems.
3297if test -d ${srcdir}/libvtv; then
3298 if test x$enable_libvtv = x; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3300$as_echo_n "checking for libvtv support... " >&6; }
3301 if (srcdir=${srcdir}/libvtv; \
3302 . ${srcdir}/configure.tgt; \
1e74b850 3303 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3304 then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306$as_echo "no" >&6; }
3307 noconfigdirs="$noconfigdirs target-libvtv"
3308 else
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310$as_echo "yes" >&6; }
3311 fi
3312 fi
3313fi
3314
5373cd33 3315
f6a24a94
MJ
3316# Disable libhsail-rt on unsupported systems.
3317if test -d ${srcdir}/libhsail-rt; then
3318 if test x$enable_libhsail_rt = x; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3320$as_echo_n "checking for libhsail-rt support... " >&6; }
3321 if (srcdir=${srcdir}/libhsail-rt; \
3322 . ${srcdir}/configure.tgt; \
3323 test -n "$UNSUPPORTED")
3324 then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326$as_echo "no" >&6; }
3327 unsupported_languages="$unsupported_languages brig"
3328 # This implicitly disables also target-libhsail-rt as it won't
3329 # get added to the build without BRIG FE.
3330 else
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3332$as_echo "yes" >&6; }
3333 fi
3334 fi
3335fi
5373cd33
IE
3336
3337
d91491e5
SE
3338# Disable libquadmath for some systems.
3339case "${target}" in
e7fae550
DE
3340 avr-*-*)
3341 noconfigdirs="$noconfigdirs target-libquadmath"
3342 ;;
d91491e5
SE
3343 # libquadmath is unused on AIX and libquadmath build process use of
3344 # LD_LIBRARY_PATH can break AIX bootstrap.
3345 powerpc-*-aix* | rs6000-*-aix*)
3346 noconfigdirs="$noconfigdirs target-libquadmath"
3347 ;;
3348esac
3349
1e9e0e23
JM
3350# Disable libssp for some systems.
3351case "${target}" in
3352 avr-*-*)
b318fb4b 3353 # No hosted I/O support.
1e9e0e23
JM
3354 noconfigdirs="$noconfigdirs target-libssp"
3355 ;;
3356 powerpc-*-aix* | rs6000-*-aix*)
3357 noconfigdirs="$noconfigdirs target-libssp"
85b8555e
DD
3358 ;;
3359 rl78-*-*)
7cb62ef1
EB
3360 # libssp uses a misaligned load to trigger a fault, but the RL78
3361 # doesn't fault for those - instead, it gives a build-time error
3362 # for explicit misaligned loads.
85b8555e 3363 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3364 ;;
0969ec7d
EB
3365 visium-*-*)
3366 # No hosted I/O support.
3367 noconfigdirs="$noconfigdirs target-libssp"
3368 ;;
1e9e0e23
JM
3369esac
3370
1e9e0e23 3371# Disable libstdc++-v3 for some systems.
1873ec0c
L
3372# Allow user to override this if they pass --enable-libstdc++-v3
3373if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3374 case "${target}" in
3375 *-*-vxworks*)
3376 # VxWorks uses the Dinkumware C++ library.
3377 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3378 ;;
3379 arm*-wince-pe*)
3380 # the C++ libraries don't build on top of CE's C libraries
3381 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3382 ;;
3383 avr-*-*)
3384 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3385 ;;
fef939d6
JB
3386 ft32-*-*)
3387 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3388 ;;
1873ec0c
L
3389 esac
3390fi
1e9e0e23 3391
260eedb9
IB
3392# Disable D on systems where it is known to not work.
3393# For testing, you can override this with --enable-languages=d.
3394case ,${enable_languages}, in
3395 *,d,*)
3396 ;;
3397 *)
3398 case "${target}" in
4d024c32 3399 *-*-darwin*)
260eedb9
IB
3400 unsupported_languages="$unsupported_languages d"
3401 ;;
3402 esac
3403 ;;
3404esac
3405
3406# Disable libphobos on unsupported systems.
3407# For testing, you can override this with --enable-libphobos.
3408if test -d ${srcdir}/libphobos; then
3409 if test x$enable_libphobos = x; then
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3411$as_echo_n "checking for libphobos support... " >&6; }
3412 if (srcdir=${srcdir}/libphobos; \
3413 . ${srcdir}/configure.tgt; \
7d31d331 3414 test "$LIBPHOBOS_SUPPORTED" != "yes")
260eedb9
IB
3415 then
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417$as_echo "no" >&6; }
3418 noconfigdirs="$noconfigdirs target-libphobos"
3419 else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3421$as_echo "yes" >&6; }
3422 fi
3423 fi
3424fi
3425
1e9e0e23
JM
3426# Disable Fortran for some systems.
3427case "${target}" in
3428 mmix-*-*)
3429 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3430 unsupported_languages="$unsupported_languages fortran"
3431 ;;
3432esac
3433
012447ea
JJ
3434# Disable libffi for some systems.
3435case "${target}" in
3436 powerpc-*-darwin*)
3437 ;;
3438 i[3456789]86-*-darwin*)
3439 ;;
3440 x86_64-*-darwin[912]*)
3441 ;;
3442 *-*-darwin*)
3443 noconfigdirs="$noconfigdirs target-libffi"
3444 ;;
3445 *-*-netware*)
3446 noconfigdirs="$noconfigdirs target-libffi"
3447 ;;
3448 *-*-phoenix*)
3449 noconfigdirs="$noconfigdirs target-libffi"
3450 ;;
3451 *-*-rtems*)
3452 noconfigdirs="$noconfigdirs target-libffi"
3453 ;;
3454 *-*-tpf*)
3455 noconfigdirs="$noconfigdirs target-libffi"
3456 ;;
3457 *-*-uclinux*)
3458 noconfigdirs="$noconfigdirs target-libffi"
3459 ;;
3460 *-*-vxworks*)
3461 noconfigdirs="$noconfigdirs target-libffi"
3462 ;;
b20e7532
AT
3463 aarch64*-*-freebsd*)
3464 noconfigdirs="$noconfigdirs target-libffi"
3465 ;;
012447ea
JJ
3466 alpha*-*-*vms*)
3467 noconfigdirs="$noconfigdirs target-libffi"
3468 ;;
3469 arm*-*-freebsd*)
3470 noconfigdirs="$noconfigdirs target-libffi"
3471 ;;
3472 arm-wince-pe)
3473 noconfigdirs="$noconfigdirs target-libffi"
3474 ;;
3475 arm*-*-symbianelf*)
3476 noconfigdirs="$noconfigdirs target-libffi"
3477 ;;
3478 cris-*-* | crisv32-*-*)
3479 case "${target}" in
3480 *-*-linux*)
3481 ;;
3482 *) # See PR46792 regarding target-libffi.
3483 noconfigdirs="$noconfigdirs target-libffi";;
3484 esac
3485 ;;
3486 hppa*64*-*-hpux*)
3487 noconfigdirs="$noconfigdirs target-libffi"
3488 ;;
3489 hppa*-hp-hpux11*)
3490 ;;
3491 hppa*-*-hpux*)
3492 noconfigdirs="$noconfigdirs target-libffi"
3493 ;;
3494 ia64*-*-*vms*)
3495 noconfigdirs="$noconfigdirs target-libffi"
3496 ;;
3497 i[3456789]86-w64-mingw*)
3498 noconfigdirs="$noconfigdirs target-libffi"
3499 ;;
3500 i[3456789]86-*-mingw*)
3501 noconfigdirs="$noconfigdirs target-libffi"
3502 ;;
3503 x86_64-*-mingw*)
3504 noconfigdirs="$noconfigdirs target-libffi"
3505 ;;
3506 mmix-*-*)
3507 noconfigdirs="$noconfigdirs target-libffi"
3508 ;;
3509 powerpc-*-aix*)
012447ea
JJ
3510 ;;
3511 rs6000-*-aix*)
012447ea
JJ
3512 ;;
3513 ft32-*-*)
3514 noconfigdirs="$noconfigdirs target-libffi"
3515 ;;
3516 *-*-lynxos*)
3517 noconfigdirs="$noconfigdirs target-libffi"
3518 ;;
3519esac
3520
3521# Disable the go frontend on systems where it is known to not work. Please keep
3522# this in sync with contrib/config-list.mk.
3523case "${target}" in
5a427c63 3524*-*-darwin* | *-*-cygwin* | *-*-mingw*)
012447ea
JJ
3525 unsupported_languages="$unsupported_languages go"
3526 ;;
3527esac
3528
cdbc9e92
ILT
3529# Disable libgo for some systems where it is known to not work.
3530# For testing, you can easily override this with --enable-libgo.
3531if test x$enable_libgo = x; then
3532 case "${target}" in
3533 *-*-darwin*)
3534 # PR 46986
3535 noconfigdirs="$noconfigdirs target-libgo"
3536 ;;
3537 *-*-cygwin* | *-*-mingw*)
3538 noconfigdirs="$noconfigdirs target-libgo"
3539 ;;
cdbc9e92
ILT
3540 esac
3541fi
3542
c03353e2
RIL
3543# Default libgloss CPU subdirectory.
3544libgloss_dir="$target_cpu"
6de9cd9a 3545
fbcf0dca
JM
3546case "${target}" in
3547 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3548 libgloss_dir=wince
3549 ;;
4dddfc74
YZ
3550 aarch64*-*-* )
3551 libgloss_dir=aarch64
3552 ;;
fbcf0dca
JM
3553 arm*-*-*)
3554 libgloss_dir=arm
3555 ;;
3556 cris-*-* | crisv32-*-*)
3557 libgloss_dir=cris
3558 ;;
3559 hppa*-*-*)
3560 libgloss_dir=pa
3561 ;;
3562 i[3456789]86-*-*)
3563 libgloss_dir=i386
3564 ;;
3565 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3566 libgloss_dir=m68hc11
3567 ;;
3568 m68*-*-* | fido-*-*)
3569 libgloss_dir=m68k
3570 ;;
3571 mips*-*-*)
3572 libgloss_dir=mips
3573 ;;
3574 powerpc*-*-*)
3575 libgloss_dir=rs6000
3576 ;;
3577 sparc*-*-*)
3578 libgloss_dir=sparc
3579 ;;
3580esac
3581
6a789d5e 3582# Disable newlib and libgloss for various target OSes.
671aa708 3583case "${target}" in
6a789d5e
JM
3584 alpha*-dec-osf*)
3585 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3586 ;;
3587 i[3456789]86-*-linux*)
3588 # This section makes it possible to build newlib natively on linux.
3589 # If we are using a cross compiler then don't configure newlib.
3590 if test x${is_cross_compiler} != xno ; then
3591 noconfigdirs="$noconfigdirs target-newlib"
3592 fi
3593 noconfigdirs="$noconfigdirs target-libgloss"
3594 # If we are not using a cross compiler, do configure newlib.
3595 # Note however, that newlib will only be configured in this situation
3596 # if the --with-newlib option has been given, because otherwise
3597 # 'target-newlib' will appear in skipdirs.
3598 ;;
3599 i[3456789]86-*-rdos*)
3600 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3601 ;;
3602 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3603 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3604 ;;
3605 sparc-*-sunos4*)
3606 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3607 ;;
3608 *-*-aix*)
3609 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3610 ;;
3611 *-*-beos*)
3612 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3613 ;;
671aa708 3614 *-*-chorusos)
0036370f 3615 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3616 ;;
6a789d5e
JM
3617 *-*-dragonfly*)
3618 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3619 ;;
3620 *-*-freebsd*)
3621 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3622 ;;
3623 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3624 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3625 ;;
3626 *-*-lynxos*)
3627 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3628 ;;
3629 *-*-mingw*)
3630 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3631 ;;
3632 *-*-netbsd*)
3633 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3634 ;;
3635 *-*-netware*)
3636 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3637 ;;
3638 *-*-tpf*)
3639 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3640 ;;
3641 *-*-uclinux*)
3642 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3643 ;;
3644 *-*-vxworks*)
3645 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3646 ;;
3647esac
3648
3649case "${target}" in
3650 *-*-chorusos)
3651 ;;
3be96231
TG
3652 aarch64-*-darwin*)
3653 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3654 noconfigdirs="$noconfigdirs sim target-rda"
3655 ;;
7431c1a1
AS
3656 amdgcn*-*-*)
3657 ;;
3be96231
TG
3658 arm-*-darwin*)
3659 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3660 noconfigdirs="$noconfigdirs sim target-rda"
3661 ;;
75eeae1a 3662 powerpc-*-darwin*)
e1514c3f 3663 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3664 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3665 ;;
354ebf88
RW
3666 i[3456789]86-*-darwin*)
3667 noconfigdirs="$noconfigdirs ld gprof"
3668 noconfigdirs="$noconfigdirs sim target-rda"
3669 ;;
3670 x86_64-*-darwin[912]*)
0db3a858
TG
3671 noconfigdirs="$noconfigdirs ld gas gprof"
3672 noconfigdirs="$noconfigdirs sim target-rda"
3673 ;;
42c1cd8a
AT
3674 *-*-darwin*)
3675 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3676 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3677 ;;
8c6d158a 3678 *-*-dragonfly*)
8c6d158a 3679 ;;
c3f84f61 3680 *-*-freebsd*)
6de9cd9a
DN
3681 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3682 && test -f /usr/local/include/gmp.h; then
3683 with_gmp=/usr/local
3684 fi
6de9cd9a 3685 ;;
ef4e7569
US
3686 *-*-kaos*)
3687 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3688 noconfigdirs="$noconfigdirs target-libgloss"
3689 ;;
671aa708 3690 *-*-netbsd*)
671aa708 3691 ;;
61fec9ff 3692 *-*-netware*)
671aa708 3693 ;;
fd6487af
JS
3694 *-*-phoenix*)
3695 noconfigdirs="$noconfigdirs target-libgloss"
3696 ;;
671aa708 3697 *-*-rtems*)
2909494b 3698 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3699 ;;
a8ba31f2
EC
3700 # The tpf target doesn't support gdb yet.
3701 *-*-tpf*)
6a789d5e 3702 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3703 ;;
5785c0ed 3704 *-*-uclinux*)
6a789d5e 3705 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3706 ;;
671aa708 3707 *-*-vxworks*)
671aa708
NN
3708 ;;
3709 alpha*-dec-osf*)
3710 # ld works, but does not support shared libraries.
671aa708 3711 # gas doesn't generate exception information.
6a789d5e 3712 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3713 ;;
3714 alpha*-*-*vms*)
2909494b 3715 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3716 ;;
671aa708
NN
3717 alpha*-*-*)
3718 # newlib is not 64 bit ready
2909494b 3719 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3720 ;;
671aa708 3721 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3722 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3723 ;;
2fd88f4f
AK
3724 arc*-*-*)
3725 noconfigdirs="$noconfigdirs sim"
3726 ;;
671aa708 3727 arm-*-pe*)
2909494b 3728 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3729 ;;
671aa708 3730 arm-*-riscix*)
0036370f 3731 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3732 ;;
b588ae30
GJL
3733 avr-*-*)
3734 if test x${with_avrlibc} != xno; then
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3736 fi
3737 ;;
671aa708 3738 c4x-*-* | tic4x-*-*)
0036370f 3739 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3740 ;;
0036370f
JM
3741 tic54x-*-*)
3742 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3743 ;;
671aa708 3744 d10v-*-*)
0036370f 3745 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3746 ;;
3747 d30v-*-*)
0036370f 3748 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3749 ;;
3750 fr30-*-elf*)
2909494b 3751 noconfigdirs="$noconfigdirs gdb"
671aa708 3752 ;;
a05c2c75
L
3753 ft32-*-*)
3754 noconfigdirs="$noconfigdirs target-rda gprof"
3755 ;;
55f2d967 3756 moxie-*-*)
a05c2c75 3757 noconfigdirs="$noconfigdirs"
55f2d967 3758 ;;
671aa708 3759 h8300*-*-*)
2909494b 3760 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3761 ;;
3762 h8500-*-*)
0036370f 3763 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3764 ;;
ee6a22df 3765 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3766 ;;
a05c2c75
L
3767 hppa*64*-*-hpux*)
3768 noconfigdirs="$noconfigdirs gdb"
3769 ;;
3770 hppa*-*-hpux11*)
3771 noconfigdirs="$noconfigdirs gdb ld"
3772 ;;
4569f85e 3773 hppa*64*-*-linux*)
671aa708 3774 ;;
56f8587a 3775 hppa*-*-linux*)
3e732ba0 3776 ;;
671aa708 3777 hppa*-*-*elf* | \
671aa708
NN
3778 hppa*-*-lites* | \
3779 hppa*-*-openbsd* | \
3780 hppa*64*-*-*)
671aa708 3781 ;;
c03353e2 3782 hppa*-*-pro*)
c03353e2 3783 ;;
671aa708 3784 hppa*-*-*)
2909494b 3785 noconfigdirs="$noconfigdirs ld"
671aa708 3786 ;;
fb87ad5d 3787 i960-*-*)
0036370f 3788 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3789 ;;
671aa708
NN
3790 ia64*-*-elf*)
3791 # No gdb support yet.
1bcce263 3792 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3793 ;;
3794 ia64*-**-hpux*)
5a2931d1 3795 # No ld support yet.
a05c2c75 3796 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3797 ;;
52535a64 3798 ia64*-*-*vms*)
091fe9ca
TG
3799 # No ld support yet.
3800 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3801 ;;
ef4c4300 3802 i[3456789]86-w64-mingw*)
ef4c4300
KT
3803 ;;
3804 i[3456789]86-*-mingw*)
b91f0a41 3805 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3806 ;;
671aa708
NN
3807 *-*-cygwin*)
3808 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3809 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3810 # always build newlib if winsup directory is present.
b91f0a41 3811 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3812 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3813 elif test -d "$srcdir/newlib"; then
b91f0a41 3814 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3815 fi
1c710c3c 3816 ;;
f2a0e225 3817 i[3456789]86-*-pe)
ebb9f8b0 3818 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3819 ;;
f2a0e225 3820 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3821 # The linker does not yet know about weak symbols in COFF,
3822 # and is not configured to handle mixed ELF and COFF.
0036370f 3823 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3824 ;;
f2a0e225 3825 i[3456789]86-*-sco*)
0036370f 3826 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3827 ;;
fbdd5d87 3828 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3829 noconfigdirs="$noconfigdirs target-libgloss"
3830 ;;
f2a0e225 3831 i[3456789]86-*-sysv4*)
0036370f 3832 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3833 ;;
f2a0e225 3834 i[3456789]86-*-beos*)
6a789d5e 3835 noconfigdirs="$noconfigdirs gdb"
3aa83176 3836 ;;
d1f8db0c 3837 i[3456789]86-*-rdos*)
6a789d5e 3838 noconfigdirs="$noconfigdirs gdb"
c03353e2 3839 ;;
671aa708 3840 mmix-*-*)
2909494b 3841 noconfigdirs="$noconfigdirs gdb"
671aa708 3842 ;;
ab34901f 3843 mt-*-*)
79dd769c
AH
3844 noconfigdirs="$noconfigdirs sim"
3845 ;;
58b40a67
FT
3846 nfp-*-*)
3847 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3848 noconfigdirs="$noconfigdirs $target_libraries"
3849 ;;
671aa708
NN
3850 powerpc-*-aix*)
3851 # copied from rs6000-*-* entry
6a789d5e 3852 noconfigdirs="$noconfigdirs gprof"
671aa708 3853 ;;
4569f85e 3854 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3855 target_configdirs="$target_configdirs target-winsup"
0036370f 3856 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3857 # always build newlib.
3858 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3859 ;;
3860 # This is temporary until we can link against shared libraries
3861 powerpcle-*-solaris*)
0036370f 3862 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3863 ;;
3864 powerpc-*-beos*)
6a789d5e 3865 noconfigdirs="$noconfigdirs gdb"
671aa708 3866 ;;
671aa708 3867 rs6000-*-lynxos*)
6a789d5e 3868 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3869 ;;
3870 rs6000-*-aix*)
6a789d5e 3871 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3872 ;;
3873 rs6000-*-*)
2909494b 3874 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3875 ;;
3876 m68k-apollo-*)
0036370f 3877 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3878 ;;
ca9fe997 3879 microblaze*)
2909494b 3880 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3881 ;;
d896cc4d 3882 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3883 if test x$with_newlib = xyes; then
3884 noconfigdirs="$noconfigdirs gprof"
3885 fi
d9dced13 3886 ;;
671aa708 3887 mips*-*-irix5*)
0036370f 3888 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3889 ;;
3890 mips*-*-irix6*)
2909494b 3891 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3892 ;;
671aa708 3893 mips*-*-bsd*)
bc98bcc4 3894 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3895 ;;
671aa708 3896 mips*-*-linux*)
671aa708 3897 ;;
bc98bcc4
JBG
3898 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3899 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3900 noconfigdirs="$noconfigdirs ld gas gprof"
3901 ;;
671aa708 3902 mips*-*-*)
2909494b 3903 noconfigdirs="$noconfigdirs gprof"
671aa708 3904 ;;
738f2522 3905 nvptx*-*-*)
738f2522
BS
3906 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3907 ;;
bc6d9014 3908 sh-*-*)
ea2002ba
CB
3909 case "${target}" in
3910 sh*-*-elf)
2909494b 3911 ;;
ea2002ba 3912 *)
2909494b 3913 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3914 esac
671aa708 3915 ;;
671aa708 3916 sparc-*-sunos4*)
6a789d5e 3917 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3918 use_gnu_ld=no
3919 fi
3920 ;;
b42f0d7e 3921 tic6x-*-*)
0d557ff8 3922 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3923 ;;
341c653c 3924 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
3925 noconfigdirs="$noconfigdirs sim"
3926 ;;
671aa708 3927 v810-*-*)
0036370f 3928 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3929 ;;
3930 vax-*-*)
2909494b 3931 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3932 ;;
1fc1d82e
MR
3933 wasm32-*-*)
3934 noconfigdirs="$noconfigdirs ld"
3935 ;;
671aa708 3936esac
79c06341 3937
671aa708
NN
3938# If we aren't building newlib, then don't build libgloss, since libgloss
3939# depends upon some newlib header files.
3940case "${noconfigdirs}" in
3941 *target-libgloss*) ;;
3942 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3943esac
3944
671aa708 3945# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3946host_makefile_frag=/dev/null
3947if test -d ${srcdir}/config ; then
3948case "${host}" in
f2a0e225 3949 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3950 host_makefile_frag="config/mh-djgpp"
3951 ;;
3952 *-cygwin*)
2a79c47f 3953
5213506e
RW
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3955$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3956echo a >cygwin-cat-check
e25a8c82 3957if test `cat cygwin-cat-check` = a ; then
2a79c47f 3958 rm cygwin-cat-check
5213506e
RW
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3960$as_echo "yes" >&6; }
2a79c47f
NC
3961else
3962 rm cygwin-cat-check
5213506e
RW
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964$as_echo "no" >&6; }
22e05272 3965 as_fn_error $? "The cat command does not ignore carriage return characters.
2a79c47f
NC
3966 Please either mount the build directory in binary mode or run the following
3967 commands before running any configure script:
3968set -o igncr
3969export SHELLOPTS
5213506e 3970 " "$LINENO" 5
2a79c47f
NC
3971fi
3972
671aa708
NN
3973 host_makefile_frag="config/mh-cygwin"
3974 ;;
c53a18d3 3975 *-mingw*)
1f5a6b84 3976 host_makefile_frag="config/mh-mingw"
95af8923 3977 ;;
cabb9d59 3978 alpha*-linux*)
13be44ed
UB
3979 host_makefile_frag="config/mh-alpha-linux"
3980 ;;
efd41714 3981 hppa*-hp-hpux10*)
efd41714 3982 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3983 ;;
111eeb6e 3984 hppa*-hp-hpux*)
efd41714
PB
3985 host_makefile_frag="config/mh-pa"
3986 ;;
3987 hppa*-*)
3988 host_makefile_frag="config/mh-pa"
3989 ;;
d8ed14ce
IS
3990 *-*-darwin*)
3991 host_makefile_frag="config/mh-darwin"
be8fff81 3992 ;;
d19bca38
PB
3993 powerpc-*-aix*)
3994 host_makefile_frag="config/mh-ppc-aix"
3995 ;;
3996 rs6000-*-aix*)
3997 host_makefile_frag="config/mh-ppc-aix"
3998 ;;
671aa708
NN
3999esac
4000fi
4001
55ffb5ed 4002if test "${build}" != "${host}" ; then
0999159b
PB
4003 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4004 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4005 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b 4006 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
0999159b 4007 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4008 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
b4c522fa 4009 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
0999159b
PB
4010 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4011 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4012 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4013 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4014 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4015 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4016else
4017 AR_FOR_BUILD="\$(AR)"
4018 AS_FOR_BUILD="\$(AS)"
fb0103e5 4019 CC_FOR_BUILD="\$(CC)"
0999159b 4020 CXX_FOR_BUILD="\$(CXX)"
0999159b 4021 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4022 GOC_FOR_BUILD="\$(GOC)"
b4c522fa 4023 GDC_FOR_BUILD="\$(GDC)"
0999159b
PB
4024 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4025 LD_FOR_BUILD="\$(LD)"
4026 NM_FOR_BUILD="\$(NM)"
4027 RANLIB_FOR_BUILD="\$(RANLIB)"
4028 WINDRES_FOR_BUILD="\$(WINDRES)"
4029 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4030fi
4031
4032ac_ext=c
1c710c3c
DJ
4033ac_cpp='$CPP $CPPFLAGS'
4034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036ac_compiler_gnu=$ac_cv_c_compiler_gnu
4037if test -n "$ac_tool_prefix"; then
4038 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4039set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4041$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4042if ${ac_cv_prog_CC+:} false; then :
5213506e 4043 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4044else
4045 if test -n "$CC"; then
4046 ac_cv_prog_CC="$CC" # Let the user override the test.
4047else
4048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049for as_dir in $PATH
4050do
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
5213506e 4053 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4055 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4057 break 2
4058 fi
4059done
5213506e
RW
4060 done
4061IFS=$as_save_IFS
1c710c3c
DJ
4062
4063fi
4064fi
4065CC=$ac_cv_prog_CC
4066if test -n "$CC"; then
5213506e
RW
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4068$as_echo "$CC" >&6; }
1c710c3c 4069else
5213506e
RW
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4071$as_echo "no" >&6; }
1c710c3c
DJ
4072fi
4073
5213506e 4074
1c710c3c
DJ
4075fi
4076if test -z "$ac_cv_prog_CC"; then
4077 ac_ct_CC=$CC
fb0103e5
RG
4078 # Extract the first word of "gcc", so it can be a program name with args.
4079set dummy gcc; ac_word=$2
5213506e
RW
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4082if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4083 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4084else
4085 if test -n "$ac_ct_CC"; then
4086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4087else
4088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089for as_dir in $PATH
4090do
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
5213506e 4093 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4095 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4097 break 2
4098 fi
4099done
5213506e
RW
4100 done
4101IFS=$as_save_IFS
1c710c3c
DJ
4102
4103fi
4104fi
4105ac_ct_CC=$ac_cv_prog_ac_ct_CC
4106if test -n "$ac_ct_CC"; then
5213506e
RW
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4108$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4109else
5213506e
RW
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111$as_echo "no" >&6; }
1c710c3c
DJ
4112fi
4113
5213506e
RW
4114 if test "x$ac_ct_CC" = x; then
4115 CC=""
4116 else
4117 case $cross_compiling:$ac_tool_warned in
4118yes:)
4119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4121ac_tool_warned=yes ;;
4122esac
4123 CC=$ac_ct_CC
4124 fi
1c710c3c
DJ
4125else
4126 CC="$ac_cv_prog_CC"
4127fi
4128
4129if test -z "$CC"; then
5213506e
RW
4130 if test -n "$ac_tool_prefix"; then
4131 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4132set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4135if ${ac_cv_prog_CC+:} false; then :
5213506e 4136 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4137else
4138 if test -n "$CC"; then
4139 ac_cv_prog_CC="$CC" # Let the user override the test.
4140else
1c710c3c
DJ
4141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142for as_dir in $PATH
4143do
4144 IFS=$as_save_IFS
4145 test -z "$as_dir" && as_dir=.
5213506e 4146 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4148 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4150 break 2
4151 fi
4152done
5213506e
RW
4153 done
4154IFS=$as_save_IFS
1c710c3c 4155
0b0dc272 4156fi
0b0dc272 4157fi
1c710c3c 4158CC=$ac_cv_prog_CC
af71363e 4159if test -n "$CC"; then
5213506e
RW
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4161$as_echo "$CC" >&6; }
2aeb72e9 4162else
5213506e
RW
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164$as_echo "no" >&6; }
2aeb72e9
DD
4165fi
4166
2aeb72e9 4167
5213506e 4168 fi
1c710c3c 4169fi
55ffb5ed
NN
4170if test -z "$CC"; then
4171 # Extract the first word of "cc", so it can be a program name with args.
4172set dummy cc; ac_word=$2
5213506e
RW
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4175if ${ac_cv_prog_CC+:} false; then :
5213506e 4176 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4177else
4178 if test -n "$CC"; then
4179 ac_cv_prog_CC="$CC" # Let the user override the test.
4180else
0b0dc272 4181 ac_prog_rejected=no
1c710c3c
DJ
4182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183for as_dir in $PATH
4184do
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
5213506e 4187 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4189 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4190 ac_prog_rejected=yes
4191 continue
4192 fi
4193 ac_cv_prog_CC="cc"
5213506e 4194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4195 break 2
4196 fi
4197done
5213506e
RW
4198 done
4199IFS=$as_save_IFS
1c710c3c 4200
55ffb5ed
NN
4201if test $ac_prog_rejected = yes; then
4202 # We found a bogon in the path, so make sure we never use it.
4203 set dummy $ac_cv_prog_CC
4204 shift
1c710c3c 4205 if test $# != 0; then
55ffb5ed
NN
4206 # We chose a different compiler from the bogus one.
4207 # However, it has the same basename, so the bogon will be chosen
4208 # first if we set CC to just the basename; use the full file name.
4209 shift
1c710c3c 4210 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4211 fi
4212fi
4213fi
4214fi
1c710c3c 4215CC=$ac_cv_prog_CC
55ffb5ed 4216if test -n "$CC"; then
5213506e
RW
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4218$as_echo "$CC" >&6; }
55ffb5ed 4219else
5213506e
RW
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221$as_echo "no" >&6; }
55ffb5ed
NN
4222fi
4223
5213506e 4224
1c710c3c
DJ
4225fi
4226if test -z "$CC"; then
4227 if test -n "$ac_tool_prefix"; then
5213506e 4228 for ac_prog in cl.exe
1c710c3c
DJ
4229 do
4230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4231set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4234if ${ac_cv_prog_CC+:} false; then :
5213506e 4235 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4236else
4237 if test -n "$CC"; then
4238 ac_cv_prog_CC="$CC" # Let the user override the test.
4239else
1c710c3c
DJ
4240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241for as_dir in $PATH
4242do
4243 IFS=$as_save_IFS
4244 test -z "$as_dir" && as_dir=.
5213506e 4245 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4247 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4249 break 2
4250 fi
4251done
5213506e
RW
4252 done
4253IFS=$as_save_IFS
1c710c3c 4254
55ffb5ed
NN
4255fi
4256fi
1c710c3c 4257CC=$ac_cv_prog_CC
55ffb5ed 4258if test -n "$CC"; then
5213506e
RW
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4260$as_echo "$CC" >&6; }
a4b9e93e 4261else
5213506e
RW
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263$as_echo "no" >&6; }
fb0103e5 4264fi
af71363e 4265
5213506e 4266
1c710c3c
DJ
4267 test -n "$CC" && break
4268 done
af71363e 4269fi
1c710c3c
DJ
4270if test -z "$CC"; then
4271 ac_ct_CC=$CC
5213506e 4272 for ac_prog in cl.exe
1c710c3c
DJ
4273do
4274 # Extract the first word of "$ac_prog", so it can be a program name with args.
4275set dummy $ac_prog; ac_word=$2
5213506e
RW
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4278if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4279 $as_echo_n "(cached) " >&6
0b0dc272 4280else
1c710c3c
DJ
4281 if test -n "$ac_ct_CC"; then
4282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4283else
1c710c3c
DJ
4284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285for as_dir in $PATH
4286do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
5213506e 4289 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4291 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4293 break 2
4294 fi
4295done
5213506e
RW
4296 done
4297IFS=$as_save_IFS
1c710c3c 4298
af71363e
AS
4299fi
4300fi
1c710c3c
DJ
4301ac_ct_CC=$ac_cv_prog_ac_ct_CC
4302if test -n "$ac_ct_CC"; then
5213506e
RW
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4304$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4305else
5213506e
RW
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307$as_echo "no" >&6; }
af71363e 4308fi
0b0dc272 4309
5213506e 4310
1c710c3c
DJ
4311 test -n "$ac_ct_CC" && break
4312done
4313
5213506e
RW
4314 if test "x$ac_ct_CC" = x; then
4315 CC=""
4316 else
4317 case $cross_compiling:$ac_tool_warned in
4318yes:)
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4320$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4321ac_tool_warned=yes ;;
4322esac
4323 CC=$ac_ct_CC
4324 fi
1c710c3c
DJ
4325fi
4326
4327fi
4328
4329
5213506e
RW
4330test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4332as_fn_error $? "no acceptable C compiler found in \$PATH
4333See \`config.log' for more details" "$LINENO" 5; }
1c710c3c
DJ
4334
4335# Provide some information about the compiler.
5213506e
RW
4336$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4337set X $ac_compile
4338ac_compiler=$2
4339for ac_option in --version -v -V -qversion; do
4340 { { ac_try="$ac_compiler $ac_option >&5"
4341case "(($ac_try" in
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4344esac
4345eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4346$as_echo "$ac_try_echo"; } >&5
4347 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4348 ac_status=$?
5213506e
RW
4349 if test -s conftest.err; then
4350 sed '10a\
4351... rest of stderr output deleted ...
4352 10q' conftest.err >conftest.er1
4353 cat conftest.er1 >&5
5213506e 4354 fi
22e05272 4355 rm -f conftest.er1 conftest.err
5213506e
RW
4356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; }
4358done
1c710c3c 4359
5213506e 4360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4361/* end confdefs.h. */
4362
4363int
4364main ()
4365{
4366
4367 ;
4368 return 0;
4369}
4370_ACEOF
4371ac_clean_files_save=$ac_clean_files
22e05272 4372ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1c710c3c
DJ
4373# Try to create an executable without -o first, disregard a.out.
4374# It will help us diagnose broken compilers, and finding out an intuition
4375# of exeext.
22e05272
JM
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4377$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4378ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4379
4380# The possible output files:
4381ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4382
4383ac_rmfiles=
4384for ac_file in $ac_files
4385do
4386 case $ac_file in
4387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4388 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4389 esac
4390done
4391rm -f $ac_rmfiles
4392
4393if { { ac_try="$ac_link_default"
4394case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397esac
4398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399$as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_link_default") 2>&5
1c710c3c 4401 ac_status=$?
5213506e
RW
4402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; }; then :
4404 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4405# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4406# in a Makefile. We should not override ac_cv_exeext if it was cached,
4407# so that the user can short-circuit this test for compilers unknown to
4408# Autoconf.
4409for ac_file in $ac_files ''
1c710c3c
DJ
4410do
4411 test -f "$ac_file" || continue
4412 case $ac_file in
5213506e 4413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4414 ;;
4415 [ab].out )
4416 # We found the default executable, but exeext='' is most
4417 # certainly right.
4418 break;;
4419 *.* )
5213506e
RW
4420 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4421 then :; else
4422 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4423 fi
4424 # We set ac_cv_exeext here because the later test for it is not
4425 # safe: cross compilers may not add the suffix if given an `-o'
4426 # argument, so we may need to know it at that point already.
4427 # Even if this section looks crufty: it has the advantage of
4428 # actually working.
1c710c3c
DJ
4429 break;;
4430 * )
4431 break;;
4432 esac
4433done
5213506e
RW
4434test "$ac_cv_exeext" = no && ac_cv_exeext=
4435
1c710c3c 4436else
5213506e
RW
4437 ac_file=''
4438fi
5213506e 4439if test -z "$ac_file"; then :
22e05272
JM
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441$as_echo "no" >&6; }
4442$as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4443sed 's/^/| /' conftest.$ac_ext >&5
4444
5213506e
RW
4445{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4447as_fn_error 77 "C compiler cannot create executables
4448See \`config.log' for more details" "$LINENO" 5; }
4449else
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4451$as_echo "yes" >&6; }
1c710c3c 4452fi
22e05272
JM
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4454$as_echo_n "checking for C compiler default output file name... " >&6; }
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4456$as_echo "$ac_file" >&6; }
1c710c3c 4457ac_exeext=$ac_cv_exeext
1c710c3c 4458
22e05272 4459rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1c710c3c 4460ac_clean_files=$ac_clean_files_save
5213506e
RW
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4462$as_echo_n "checking for suffix of executables... " >&6; }
4463if { { ac_try="$ac_link"
4464case "(($ac_try" in
4465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466 *) ac_try_echo=$ac_try;;
4467esac
4468eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4469$as_echo "$ac_try_echo"; } >&5
4470 (eval "$ac_link") 2>&5
1c710c3c 4471 ac_status=$?
5213506e
RW
4472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4473 test $ac_status = 0; }; then :
1c710c3c
DJ
4474 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4475# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4476# work properly (i.e., refer to `conftest.exe'), while it won't with
4477# `rm'.
4478for ac_file in conftest.exe conftest conftest.*; do
4479 test -f "$ac_file" || continue
4480 case $ac_file in
5213506e 4481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4482 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4483 break;;
4484 * ) break;;
4485 esac
4486done
af71363e 4487else
5213506e
RW
4488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4490as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4491See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4492fi
22e05272 4493rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4495$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4496
4497rm -f conftest.$ac_ext
4498EXEEXT=$ac_cv_exeext
4499ac_exeext=$EXEEXT
22e05272
JM
4500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501/* end confdefs.h. */
4502#include <stdio.h>
4503int
4504main ()
4505{
4506FILE *f = fopen ("conftest.out", "w");
4507 return ferror (f) || fclose (f) != 0;
4508
4509 ;
4510 return 0;
4511}
4512_ACEOF
4513ac_clean_files="$ac_clean_files conftest.out"
4514# Check that the compiler produces executables we can run. If not, either
4515# the compiler is broken, or we cross compile.
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4517$as_echo_n "checking whether we are cross compiling... " >&6; }
4518if test "$cross_compiling" != yes; then
4519 { { ac_try="$ac_link"
4520case "(($ac_try" in
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4523esac
4524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4525$as_echo "$ac_try_echo"; } >&5
4526 (eval "$ac_link") 2>&5
4527 ac_status=$?
4528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4529 test $ac_status = 0; }
4530 if { ac_try='./conftest$ac_cv_exeext'
4531 { { case "(($ac_try" in
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4534esac
4535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4536$as_echo "$ac_try_echo"; } >&5
4537 (eval "$ac_try") 2>&5
4538 ac_status=$?
4539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4540 test $ac_status = 0; }; }; then
4541 cross_compiling=no
4542 else
4543 if test "$cross_compiling" = maybe; then
4544 cross_compiling=yes
4545 else
4546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4548as_fn_error $? "cannot run C compiled programs.
4549If you meant to cross compile, use \`--host'.
4550See \`config.log' for more details" "$LINENO" 5; }
4551 fi
4552 fi
4553fi
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4555$as_echo "$cross_compiling" >&6; }
4556
4557rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4558ac_clean_files=$ac_clean_files_save
5213506e
RW
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4560$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4561if ${ac_cv_objext+:} false; then :
5213506e 4562 $as_echo_n "(cached) " >&6
1c710c3c 4563else
5213506e 4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4565/* end confdefs.h. */
4566
4567int
4568main ()
4569{
4570
4571 ;
4572 return 0;
4573}
4574_ACEOF
4575rm -f conftest.o conftest.obj
5213506e
RW
4576if { { ac_try="$ac_compile"
4577case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4580esac
4581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4582$as_echo "$ac_try_echo"; } >&5
4583 (eval "$ac_compile") 2>&5
1c710c3c 4584 ac_status=$?
5213506e
RW
4585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4586 test $ac_status = 0; }; then :
4587 for ac_file in conftest.o conftest.obj conftest.*; do
4588 test -f "$ac_file" || continue;
1c710c3c 4589 case $ac_file in
5213506e 4590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4591 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4592 break;;
4593 esac
4594done
4595else
5213506e 4596 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4597sed 's/^/| /' conftest.$ac_ext >&5
4598
5213506e
RW
4599{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4601as_fn_error $? "cannot compute suffix of object files: cannot compile
4602See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4603fi
1c710c3c
DJ
4604rm -f conftest.$ac_cv_objext conftest.$ac_ext
4605fi
5213506e
RW
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4607$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4608OBJEXT=$ac_cv_objext
4609ac_objext=$OBJEXT
5213506e
RW
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4611$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4612if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4613 $as_echo_n "(cached) " >&6
1c710c3c 4614else
5213506e 4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4616/* end confdefs.h. */
4617
4618int
4619main ()
4620{
4621#ifndef __GNUC__
4622 choke me
4623#endif
4624
4625 ;
4626 return 0;
4627}
4628_ACEOF
5213506e 4629if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4630 ac_compiler_gnu=yes
4631else
5213506e 4632 ac_compiler_gnu=no
1c710c3c 4633fi
5213506e 4634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4635ac_cv_c_compiler_gnu=$ac_compiler_gnu
4636
4637fi
5213506e
RW
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4639$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4640if test $ac_compiler_gnu = yes; then
4641 GCC=yes
4642else
4643 GCC=
4644fi
1c710c3c
DJ
4645ac_test_CFLAGS=${CFLAGS+set}
4646ac_save_CFLAGS=$CFLAGS
5213506e
RW
4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4648$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4649if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4650 $as_echo_n "(cached) " >&6
4651else
4652 ac_save_c_werror_flag=$ac_c_werror_flag
4653 ac_c_werror_flag=yes
4654 ac_cv_prog_cc_g=no
4655 CFLAGS="-g"
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4657/* end confdefs.h. */
4658
4659int
4660main ()
4661{
4662
4663 ;
4664 return 0;
4665}
4666_ACEOF
5213506e 4667if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4668 ac_cv_prog_cc_g=yes
4669else
5213506e
RW
4670 CFLAGS=""
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672/* end confdefs.h. */
4673
4674int
4675main ()
4676{
4677
4678 ;
4679 return 0;
4680}
4681_ACEOF
4682if ac_fn_c_try_compile "$LINENO"; then :
4683
4684else
4685 ac_c_werror_flag=$ac_save_c_werror_flag
4686 CFLAGS="-g"
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688/* end confdefs.h. */
af71363e 4689
5213506e
RW
4690int
4691main ()
4692{
4693
4694 ;
4695 return 0;
4696}
4697_ACEOF
4698if ac_fn_c_try_compile "$LINENO"; then :
4699 ac_cv_prog_cc_g=yes
4700fi
4701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4702fi
5213506e 4703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4704fi
5213506e
RW
4705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 ac_c_werror_flag=$ac_save_c_werror_flag
4707fi
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4709$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4710if test "$ac_test_CFLAGS" = set; then
1c710c3c 4711 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4712elif test $ac_cv_prog_cc_g = yes; then
4713 if test "$GCC" = yes; then
4714 CFLAGS="-g -O2"
4715 else
4716 CFLAGS="-g"
4717 fi
4718else
4719 if test "$GCC" = yes; then
4720 CFLAGS="-O2"
4721 else
4722 CFLAGS=
4723 fi
4724fi
5213506e
RW
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4726$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4727if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4728 $as_echo_n "(cached) " >&6
1c710c3c 4729else
5213506e 4730 ac_cv_prog_cc_c89=no
1c710c3c 4731ac_save_CC=$CC
5213506e 4732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4733/* end confdefs.h. */
4734#include <stdarg.h>
4735#include <stdio.h>
22e05272 4736struct stat;
1c710c3c
DJ
4737/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4738struct buf { int x; };
4739FILE * (*rcsopen) (struct buf *, struct stat *, int);
4740static char *e (p, i)
4741 char **p;
4742 int i;
4743{
4744 return p[i];
4745}
4746static char *f (char * (*g) (char **, int), char **p, ...)
4747{
4748 char *s;
4749 va_list v;
4750 va_start (v,p);
4751 s = g (p, va_arg (v,int));
4752 va_end (v);
4753 return s;
4754}
4755
4756/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4757 function prototypes and stuff, but not '\xHH' hex character constants.
4758 These don't provoke an error unfortunately, instead are silently treated
5213506e 4759 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4760 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4761 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4762 that's true only with -std. */
1c710c3c
DJ
4763int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4764
5213506e
RW
4765/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4766 inside strings and character constants. */
4767#define FOO(x) 'x'
4768int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4769
1c710c3c
DJ
4770int test (int i, double x);
4771struct s1 {int (*f) (int a);};
4772struct s2 {int (*f) (double a);};
4773int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4774int argc;
4775char **argv;
4776int
4777main ()
4778{
4779return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4780 ;
4781 return 0;
4782}
4783_ACEOF
5213506e
RW
4784for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4785 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4786do
4787 CC="$ac_save_CC $ac_arg"
5213506e
RW
4788 if ac_fn_c_try_compile "$LINENO"; then :
4789 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4790fi
5213506e
RW
4791rm -f core conftest.err conftest.$ac_objext
4792 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4793done
5213506e 4794rm -f conftest.$ac_ext
1c710c3c
DJ
4795CC=$ac_save_CC
4796
4797fi
5213506e
RW
4798# AC_CACHE_VAL
4799case "x$ac_cv_prog_cc_c89" in
4800 x)
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4802$as_echo "none needed" >&6; } ;;
4803 xno)
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4805$as_echo "unsupported" >&6; } ;;
1c710c3c 4806 *)
5213506e
RW
4807 CC="$CC $ac_cv_prog_cc_c89"
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4809$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4810esac
5213506e 4811if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4812
2aeb72e9
DD
4813fi
4814
2aeb72e9
DD
4815ac_ext=c
4816ac_cpp='$CPP $CPPFLAGS'
4817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4819ac_compiler_gnu=$ac_cv_c_compiler_gnu
4820
5213506e 4821ac_ext=cpp
2aeb72e9
DD
4822ac_cpp='$CXXCPP $CPPFLAGS'
4823ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4824ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4825ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4826if test -z "$CXX"; then
4827 if test -n "$CCC"; then
4828 CXX=$CCC
4829 else
4830 if test -n "$ac_tool_prefix"; then
4831 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4832 do
4833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4834set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4837if ${ac_cv_prog_CXX+:} false; then :
5213506e 4838 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4839else
4840 if test -n "$CXX"; then
4841 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4842else
4843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844for as_dir in $PATH
4845do
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
5213506e 4848 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2aeb72e9 4850 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4852 break 2
4853 fi
4854done
5213506e
RW
4855 done
4856IFS=$as_save_IFS
55ffb5ed 4857
c3a86da9
DJ
4858fi
4859fi
4860CXX=$ac_cv_prog_CXX
4861if test -n "$CXX"; then
5213506e
RW
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4863$as_echo "$CXX" >&6; }
c3a86da9 4864else
5213506e
RW
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866$as_echo "no" >&6; }
c3a86da9
DJ
4867fi
4868
5213506e 4869
c3a86da9
DJ
4870 test -n "$CXX" && break
4871 done
4872fi
4873if test -z "$CXX"; then
4874 ac_ct_CXX=$CXX
5213506e 4875 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4876do
4877 # Extract the first word of "$ac_prog", so it can be a program name with args.
4878set dummy $ac_prog; ac_word=$2
5213506e
RW
4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4881if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5213506e 4882 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4883else
4884 if test -n "$ac_ct_CXX"; then
4885 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4886else
4887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888for as_dir in $PATH
4889do
4890 IFS=$as_save_IFS
4891 test -z "$as_dir" && as_dir=.
5213506e 4892 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9 4894 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4896 break 2
4897 fi
4898done
5213506e
RW
4899 done
4900IFS=$as_save_IFS
c3a86da9
DJ
4901
4902fi
4903fi
4904ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4905if test -n "$ac_ct_CXX"; then
5213506e
RW
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4907$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4908else
5213506e
RW
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910$as_echo "no" >&6; }
c3a86da9
DJ
4911fi
4912
5213506e 4913
c3a86da9
DJ
4914 test -n "$ac_ct_CXX" && break
4915done
c3a86da9 4916
5213506e
RW
4917 if test "x$ac_ct_CXX" = x; then
4918 CXX="g++"
4919 else
4920 case $cross_compiling:$ac_tool_warned in
4921yes:)
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4924ac_tool_warned=yes ;;
4925esac
4926 CXX=$ac_ct_CXX
4927 fi
c3a86da9
DJ
4928fi
4929
5213506e
RW
4930 fi
4931fi
c3a86da9 4932# Provide some information about the compiler.
5213506e
RW
4933$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4934set X $ac_compile
4935ac_compiler=$2
4936for ac_option in --version -v -V -qversion; do
4937 { { ac_try="$ac_compiler $ac_option >&5"
4938case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941esac
4942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4943$as_echo "$ac_try_echo"; } >&5
4944 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4945 ac_status=$?
5213506e
RW
4946 if test -s conftest.err; then
4947 sed '10a\
4948... rest of stderr output deleted ...
4949 10q' conftest.err >conftest.er1
4950 cat conftest.er1 >&5
5213506e 4951 fi
22e05272 4952 rm -f conftest.er1 conftest.err
5213506e
RW
4953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4954 test $ac_status = 0; }
4955done
c3a86da9 4956
5213506e
RW
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4958$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 4959if ${ac_cv_cxx_compiler_gnu+:} false; then :
5213506e 4960 $as_echo_n "(cached) " >&6
c3a86da9 4961else
5213506e 4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4963/* end confdefs.h. */
4964
4965int
4966main ()
4967{
4968#ifndef __GNUC__
4969 choke me
4970#endif
4971
4972 ;
4973 return 0;
4974}
4975_ACEOF
5213506e 4976if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4977 ac_compiler_gnu=yes
4978else
5213506e 4979 ac_compiler_gnu=no
c3a86da9 4980fi
5213506e 4981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4982ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4983
4984fi
5213506e
RW
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4986$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4987if test $ac_compiler_gnu = yes; then
4988 GXX=yes
4989else
4990 GXX=
4991fi
c3a86da9
DJ
4992ac_test_CXXFLAGS=${CXXFLAGS+set}
4993ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4995$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 4996if ${ac_cv_prog_cxx_g+:} false; then :
5213506e
RW
4997 $as_echo_n "(cached) " >&6
4998else
4999 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5000 ac_cxx_werror_flag=yes
5001 ac_cv_prog_cxx_g=no
5002 CXXFLAGS="-g"
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5004/* end confdefs.h. */
5005
5006int
5007main ()
5008{
5009
5010 ;
5011 return 0;
5012}
5013_ACEOF
5213506e 5014if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5015 ac_cv_prog_cxx_g=yes
5016else
5213506e
RW
5017 CXXFLAGS=""
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5019/* end confdefs.h. */
5213506e 5020
c3a86da9
DJ
5021int
5022main ()
5023{
5213506e 5024
c3a86da9
DJ
5025 ;
5026 return 0;
5027}
5028_ACEOF
5213506e 5029if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5030
5213506e
RW
5031else
5032 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5033 CXXFLAGS="-g"
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5035/* end confdefs.h. */
5213506e 5036
c3a86da9
DJ
5037int
5038main ()
5039{
5213506e 5040
c3a86da9
DJ
5041 ;
5042 return 0;
5043}
5044_ACEOF
5213506e
RW
5045if ac_fn_cxx_try_compile "$LINENO"; then :
5046 ac_cv_prog_cxx_g=yes
11a67599 5047fi
5213506e
RW
5048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5049fi
5050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051fi
5052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5054fi
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5056$as_echo "$ac_cv_prog_cxx_g" >&6; }
5057if test "$ac_test_CXXFLAGS" = set; then
5058 CXXFLAGS=$ac_save_CXXFLAGS
5059elif test $ac_cv_prog_cxx_g = yes; then
5060 if test "$GXX" = yes; then
5061 CXXFLAGS="-g -O2"
5062 else
5063 CXXFLAGS="-g"
5064 fi
5065else
5066 if test "$GXX" = yes; then
5067 CXXFLAGS="-O2"
5068 else
5069 CXXFLAGS=
5070 fi
c3a86da9 5071fi
c3a86da9
DJ
5072ac_ext=c
5073ac_cpp='$CPP $CPPFLAGS'
5074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5076ac_compiler_gnu=$ac_cv_c_compiler_gnu
5077
5078
5079# We must set the default linker to the linker used by gcc for the correct
5080# operation of libtool. If LD is not defined and we are using gcc, try to
5081# set the LD default to the ld used by gcc.
5082if test -z "$LD"; then
5083 if test "$GCC" = yes; then
5084 case $build in
5085 *-*-mingw*)
5086 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5087 *)
5088 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5089 esac
5090 case $gcc_prog_ld in
5091 # Accept absolute paths.
5092 [\\/]* | [A-Za-z]:[\\/]*)
5093 LD="$gcc_prog_ld" ;;
5094 esac
5095 fi
23f6b2f9
PB
5096fi
5097
0b21f5d3
EB
5098# Check whether -static-libstdc++ -static-libgcc is supported.
5099have_static_libs=no
5100if test "$GCC" = yes; then
5101 saved_LDFLAGS="$LDFLAGS"
5102
5103 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5105$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5106 ac_ext=cpp
5107ac_cpp='$CXXCPP $CPPFLAGS'
5108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5111
5112
5113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114/* end confdefs.h. */
0d6414b2
EB
5115
5116#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5117#error -static-libstdc++ not implemented
5118#endif
0b21f5d3
EB
5119int main() {}
5120_ACEOF
5121if ac_fn_cxx_try_link "$LINENO"; then :
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5123$as_echo "yes" >&6; }; have_static_libs=yes
5124else
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126$as_echo "no" >&6; }
5127fi
5128rm -f core conftest.err conftest.$ac_objext \
5129 conftest$ac_exeext conftest.$ac_ext
5130 ac_ext=c
5131ac_cpp='$CPP $CPPFLAGS'
5132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134ac_compiler_gnu=$ac_cv_c_compiler_gnu
5135
5136
5137 LDFLAGS="$saved_LDFLAGS"
5138fi
5139
23f6b2f9
PB
5140
5141
55ffb5ed 5142
1c710c3c
DJ
5143if test -n "$ac_tool_prefix"; then
5144 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5145set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5148if ${ac_cv_prog_GNATBIND+:} false; then :
5213506e 5149 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5150else
5151 if test -n "$GNATBIND"; then
5152 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5153else
1c710c3c
DJ
5154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155for as_dir in $PATH
5156do
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5213506e 5159 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5161 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5163 break 2
5164 fi
5165done
5213506e
RW
5166 done
5167IFS=$as_save_IFS
1c710c3c 5168
55ffb5ed
NN
5169fi
5170fi
1c710c3c 5171GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5172if test -n "$GNATBIND"; then
5213506e
RW
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5174$as_echo "$GNATBIND" >&6; }
55ffb5ed 5175else
5213506e
RW
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177$as_echo "no" >&6; }
55ffb5ed
NN
5178fi
5179
5213506e 5180
1c710c3c 5181fi
55ffb5ed 5182if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5183 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5184 # Extract the first word of "gnatbind", so it can be a program name with args.
5185set dummy gnatbind; ac_word=$2
5213506e
RW
5186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5188if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5213506e 5189 $as_echo_n "(cached) " >&6
55ffb5ed 5190else
1c710c3c
DJ
5191 if test -n "$ac_ct_GNATBIND"; then
5192 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5193else
1c710c3c
DJ
5194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195for as_dir in $PATH
5196do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5213506e 5199 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5201 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5203 break 2
5204 fi
5205done
5213506e
RW
5206 done
5207IFS=$as_save_IFS
1c710c3c 5208
55ffb5ed
NN
5209fi
5210fi
1c710c3c
DJ
5211ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5212if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5214$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5215else
5213506e
RW
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217$as_echo "no" >&6; }
55ffb5ed
NN
5218fi
5219
5213506e
RW
5220 if test "x$ac_ct_GNATBIND" = x; then
5221 GNATBIND="no"
5222 else
5223 case $cross_compiling:$ac_tool_warned in
5224yes:)
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5227ac_tool_warned=yes ;;
5228esac
5229 GNATBIND=$ac_ct_GNATBIND
5230 fi
55ffb5ed 5231else
1c710c3c 5232 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5233fi
5234
1c710c3c
DJ
5235if test -n "$ac_tool_prefix"; then
5236 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5237set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5240if ${ac_cv_prog_GNATMAKE+:} false; then :
5213506e 5241 $as_echo_n "(cached) " >&6
5305be7e
RG
5242else
5243 if test -n "$GNATMAKE"; then
5244 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5245else
1c710c3c
DJ
5246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247for as_dir in $PATH
5248do
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5213506e 5251 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5253 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5255 break 2
5256 fi
5257done
5213506e
RW
5258 done
5259IFS=$as_save_IFS
1c710c3c 5260
5305be7e
RG
5261fi
5262fi
1c710c3c 5263GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5264if test -n "$GNATMAKE"; then
5213506e
RW
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5266$as_echo "$GNATMAKE" >&6; }
5305be7e 5267else
5213506e
RW
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269$as_echo "no" >&6; }
5305be7e
RG
5270fi
5271
5213506e 5272
1c710c3c 5273fi
5305be7e 5274if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5275 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5276 # Extract the first word of "gnatmake", so it can be a program name with args.
5277set dummy gnatmake; ac_word=$2
5213506e
RW
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5280if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5213506e 5281 $as_echo_n "(cached) " >&6
5305be7e 5282else
1c710c3c
DJ
5283 if test -n "$ac_ct_GNATMAKE"; then
5284 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5285else
1c710c3c
DJ
5286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287for as_dir in $PATH
5288do
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5213506e 5291 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5293 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5295 break 2
5296 fi
5297done
5213506e
RW
5298 done
5299IFS=$as_save_IFS
1c710c3c 5300
5305be7e
RG
5301fi
5302fi
1c710c3c
DJ
5303ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5304if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5306$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5307else
5213506e
RW
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309$as_echo "no" >&6; }
5305be7e
RG
5310fi
5311
5213506e
RW
5312 if test "x$ac_ct_GNATMAKE" = x; then
5313 GNATMAKE="no"
5314 else
5315 case $cross_compiling:$ac_tool_warned in
5316yes:)
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5319ac_tool_warned=yes ;;
5320esac
5321 GNATMAKE=$ac_ct_GNATMAKE
5322 fi
5305be7e 5323else
1c710c3c 5324 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5325fi
5326
5213506e
RW
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5328$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
22e05272 5329if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5213506e 5330 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5331else
5332 cat >conftest.adb <<EOF
5333procedure conftest is begin null; end conftest;
5334EOF
5335acx_cv_cc_gcc_supports_ada=no
5336# There is a bug in old released versions of GCC which causes the
5337# driver to exit successfully when the appropriate language module
5338# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5339# Therefore we must check for the error message as well as an
5340# unsuccessful exit.
1db673ca
RO
5341# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5342# given a .adb file, but produce no object file. So we must check
5343# if an object file was really produced to guard against this.
55ffb5ed 5344errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5345if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5346 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5347fi
5348rm -f conftest.*
5349fi
5213506e
RW
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5351$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5352
7cb62ef1 5353if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5354 have_gnat=yes
5355else
5356 have_gnat=no
5357fi
5358
5213506e
RW
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5360$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
22e05272 5361if ${gcc_cv_prog_cmp_skip+:} false; then :
5213506e 5362 $as_echo_n "(cached) " >&6
a76494aa
PB
5363else
5364 echo abfoo >t1
5365 echo cdfoo >t2
b55e6680 5366 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5367 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5368 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5369 :
5370 else
5371 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5372 fi
5373 fi
a76494aa
PB
5374 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5375 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5376 :
a76494aa
PB
5377 else
5378 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5379 fi
5380 fi
5381 rm t1 t2
5382
5383fi
5213506e
RW
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5385$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5386do_compare="$gcc_cv_prog_cmp_skip"
5387
5388
55ffb5ed 5389
ff3ac0f4
ILT
5390# Check whether --enable-bootstrap was given.
5391if test "${enable_bootstrap+set}" = set; then :
5392 enableval=$enable_bootstrap;
5393else
5394 enable_bootstrap=default
5395fi
5396
5397
5398# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5399if test -r $srcdir/gcc/configure; then
5400 have_compiler=yes
5401else
5402 have_compiler=no
5403fi
ff3ac0f4
ILT
5404
5405case "$have_compiler:$host:$target:$enable_bootstrap" in
5406 *:*:*:no) ;;
5407
5408 # Default behavior. Enable bootstrap if we have a compiler
5409 # and we are in a native configuration.
5410 yes:$build:$build:default)
5411 enable_bootstrap=yes ;;
5412
5413 *:*:*:default)
5414 enable_bootstrap=no ;;
5415
5416 # We have a compiler and we are in a native configuration, bootstrap is ok
5417 yes:$build:$build:yes)
5418 ;;
5419
5420 # Other configurations, but we have a compiler. Assume the user knows
5421 # what he's doing.
5422 yes:*:*:yes)
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5424$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5425 ;;
5426
5427 # No compiler: if they passed --enable-bootstrap explicitly, fail
5428 no:*:*:yes)
22e05272 5429 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ff3ac0f4
ILT
5430
5431 # Fail if wrong command line
5432 *)
22e05272 5433 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ff3ac0f4
ILT
5434 ;;
5435esac
5436
46070488
JM
5437# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5438# C++98 compiler can still start the bootstrap.
5439if test "$enable_bootstrap:$GXX" = "yes:yes"; then
8ca528d9 5440 CXX="$CXX -std=gnu++98"
46070488
JM
5441fi
5442
592c90ff
KG
5443# Used for setting $lt_cv_objdir
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5445$as_echo_n "checking for objdir... " >&6; }
22e05272 5446if ${lt_cv_objdir+:} false; then :
592c90ff
KG
5447 $as_echo_n "(cached) " >&6
5448else
5449 rm -f .libs 2>/dev/null
5450mkdir .libs 2>/dev/null
5451if test -d .libs; then
5452 lt_cv_objdir=.libs
5453else
5454 # MS-DOS does not allow filenames that begin with a dot.
5455 lt_cv_objdir=_libs
5456fi
5457rmdir .libs 2>/dev/null
5458fi
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5460$as_echo "$lt_cv_objdir" >&6; }
5461objdir=$lt_cv_objdir
5462
5463
5464
5465
5466
5467cat >>confdefs.h <<_ACEOF
5468#define LT_OBJDIR "$lt_cv_objdir/"
5469_ACEOF
5470
5471
5472
acd26225 5473# Check for GMP, MPFR and MPC
3a5729ea 5474gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5475gmpinc=
e69bf64b 5476have_gmp=no
acd26225
KG
5477
5478# Specify a location for mpc
5479# check for this first so it ends up on the link line before mpfr.
5480
5213506e
RW
5481# Check whether --with-mpc was given.
5482if test "${with_mpc+set}" = set; then :
5483 withval=$with_mpc;
5484fi
acd26225 5485
acd26225 5486
9965e3cd 5487# Check whether --with-mpc-include was given.
5213506e
RW
5488if test "${with_mpc_include+set}" = set; then :
5489 withval=$with_mpc_include;
5490fi
acd26225 5491
acd26225 5492
9965e3cd 5493# Check whether --with-mpc-lib was given.
5213506e
RW
5494if test "${with_mpc_lib+set}" = set; then :
5495 withval=$with_mpc_lib;
5496fi
acd26225 5497
acd26225
KG
5498
5499if test "x$with_mpc" != x; then
3a5729ea
KG
5500 gmplibs="-L$with_mpc/lib $gmplibs"
5501 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5502fi
5503if test "x$with_mpc_include" != x; then
3a5729ea 5504 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5505fi
5506if test "x$with_mpc_lib" != x; then
3a5729ea 5507 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5508fi
5509if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5510 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5511 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5512 # Do not test the mpc version. Assume that it is sufficient, since
5513 # it is in the source tree, and the library has not been built yet
5514 # but it would be included on the link line in the version check below
5515 # hence making the test fail.
3a5729ea 5516 have_gmp=yes
acd26225 5517fi
e69bf64b 5518
bebf829d
PB
5519# Specify a location for mpfr
5520# check for this first so it ends up on the link line before gmp.
1c710c3c 5521
5213506e
RW
5522# Check whether --with-mpfr-dir was given.
5523if test "${with_mpfr_dir+set}" = set; then :
22e05272 5524 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5213506e
RW
5525Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5526fi
5527
bebf829d
PB
5528
5529
5213506e
RW
5530# Check whether --with-mpfr was given.
5531if test "${with_mpfr+set}" = set; then :
5532 withval=$with_mpfr;
5533fi
1c710c3c 5534
bebf829d 5535
9965e3cd 5536# Check whether --with-mpfr-include was given.
5213506e
RW
5537if test "${with_mpfr_include+set}" = set; then :
5538 withval=$with_mpfr_include;
5539fi
1c710c3c 5540
8a877c9c 5541
9965e3cd 5542# Check whether --with-mpfr-lib was given.
5213506e
RW
5543if test "${with_mpfr_lib+set}" = set; then :
5544 withval=$with_mpfr_lib;
5545fi
8a877c9c 5546
bebf829d
PB
5547
5548if test "x$with_mpfr" != x; then
5549 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5550 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5551fi
8a877c9c 5552if test "x$with_mpfr_include" != x; then
3a5729ea 5553 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5554fi
5555if test "x$with_mpfr_lib" != x; then
5556 gmplibs="-L$with_mpfr_lib $gmplibs"
5557fi
e69bf64b 5558if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
5559 # MPFR v3.1.0 moved the sources into a src sub-directory.
5560 if ! test -d ${srcdir}/mpfr/src; then
22e05272 5561 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8f3675f8 5562 fi
00f35794
BE
5563 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5564 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5565 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
5566 # Do not test the mpfr version. Assume that it is sufficient, since
5567 # it is in the source tree, and the library has not been built yet
5568 # but it would be included on the link line in the version check below
5569 # hence making the test fail.
5570 have_gmp=yes
5571fi
bebf829d 5572
6de9cd9a 5573# Specify a location for gmp
1c710c3c 5574
5213506e
RW
5575# Check whether --with-gmp-dir was given.
5576if test "${with_gmp_dir+set}" = set; then :
22e05272 5577 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5213506e
RW
5578Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5579fi
5580
6de9cd9a 5581
6de9cd9a 5582
5213506e
RW
5583# Check whether --with-gmp was given.
5584if test "${with_gmp+set}" = set; then :
5585 withval=$with_gmp;
5586fi
1c710c3c 5587
6de9cd9a 5588
9965e3cd 5589# Check whether --with-gmp-include was given.
5213506e
RW
5590if test "${with_gmp_include+set}" = set; then :
5591 withval=$with_gmp_include;
5592fi
1c710c3c 5593
8a877c9c 5594
9965e3cd 5595# Check whether --with-gmp-lib was given.
5213506e
RW
5596if test "${with_gmp_lib+set}" = set; then :
5597 withval=$with_gmp_lib;
5598fi
8a877c9c
KG
5599
5600
6de9cd9a 5601
bebf829d
PB
5602if test "x$with_gmp" != x; then
5603 gmplibs="-L$with_gmp/lib $gmplibs"
5604 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5605fi
8a877c9c
KG
5606if test "x$with_gmp_include" != x; then
5607 gmpinc="-I$with_gmp_include $gmpinc"
5608fi
5609if test "x$with_gmp_lib" != x; then
5610 gmplibs="-L$with_gmp_lib $gmplibs"
5611fi
e69bf64b 5612if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5613 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5614 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5615 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5616 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5617 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5618 # Do not test the gmp version. Assume that it is sufficient, since
5619 # it is in the source tree, and the library has not been built yet
5620 # but it would be included on the link line in the version check below
5621 # hence making the test fail.
5622 have_gmp=yes
5623fi
6de9cd9a 5624
d943d7c4 5625if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5626 have_gmp=yes
5627 saved_CFLAGS="$CFLAGS"
5628 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5629 # Check for the recommended and required versions of GMP.
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5631$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5632
5633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5634/* end confdefs.h. */
5635#include "gmp.h"
5636int
5637main ()
5638{
5639
5640 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5641 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5642 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5643 choke me
5644 #endif
5645
5646 ;
5647 return 0;
5648}
5649_ACEOF
5650if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5652/* end confdefs.h. */
362c6d2f 5653#include <gmp.h>
1c710c3c
DJ
5654int
5655main ()
5656{
6de9cd9a 5657
362c6d2f
KG
5658 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5659 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5660 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5661 choke me
5662 #endif
1c710c3c
DJ
5663
5664 ;
5665 return 0;
5666}
5667_ACEOF
5213506e
RW
5668if ac_fn_c_try_compile "$LINENO"; then :
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5670$as_echo "yes" >&6; }
362c6d2f
KG
5671else
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5673$as_echo "buggy but acceptable" >&6; }
5674fi
5675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5676else
5213506e
RW
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5679fi
5213506e 5680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5681
acd26225 5682 # If we have GMP, check the MPFR version.
e69bf64b 5683 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5684 # Check for the recommended and required versions of MPFR.
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5686$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5688/* end confdefs.h. */
70ec446f 5689#include <gmp.h>
e69bf64b 5690 #include <mpfr.h>
1c710c3c
DJ
5691int
5692main ()
5693{
e48d66a9 5694
f7d6bc01 5695 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5696 choke me
5697 #endif
1c710c3c
DJ
5698
5699 ;
5700 return 0;
5701}
5702_ACEOF
5213506e
RW
5703if ac_fn_c_try_compile "$LINENO"; then :
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5705/* end confdefs.h. */
a3993f33 5706#include <gmp.h>
e69bf64b 5707 #include <mpfr.h>
1c710c3c
DJ
5708int
5709main ()
5710{
a3993f33 5711
362c6d2f 5712 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5713 choke me
5714 #endif
acd26225
KG
5715
5716 ;
5717 return 0;
5718}
5719_ACEOF
5213506e
RW
5720if ac_fn_c_try_compile "$LINENO"; then :
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5722$as_echo "yes" >&6; }
acd26225 5723else
5213506e
RW
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5725$as_echo "buggy but acceptable" >&6; }
acd26225 5726fi
5213506e 5727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5728else
5213506e
RW
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730$as_echo "no" >&6; }; have_gmp=no
acd26225 5731fi
5213506e 5732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5733 fi
5734
5735 # Check for the MPC header version.
3a5729ea 5736 if test x"$have_gmp" = xyes ; then
362c6d2f 5737 # Check for the recommended and required versions of MPC.
5213506e
RW
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5739$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5741/* end confdefs.h. */
5742#include <mpc.h>
5743int
5744main ()
5745{
5746
362c6d2f
KG
5747 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5748 choke me
5749 #endif
5750
5751 ;
5752 return 0;
5753}
5754_ACEOF
5755if ac_fn_c_try_compile "$LINENO"; then :
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757/* end confdefs.h. */
5758#include <mpc.h>
5759int
5760main ()
5761{
5762
5763 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5764 choke me
5765 #endif
5766
5767 ;
5768 return 0;
5769}
5770_ACEOF
5213506e
RW
5771if ac_fn_c_try_compile "$LINENO"; then :
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5773$as_echo "yes" >&6; }
362c6d2f
KG
5774else
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5776$as_echo "buggy but acceptable" >&6; }
5777fi
5778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5779else
5213506e 5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5781$as_echo "no" >&6; }; have_gmp=no
acd26225 5782fi
5213506e 5783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5784 fi
5785
5786 # Now check the MPFR library.
5787 if test x"$have_gmp" = xyes; then
5788 saved_LIBS="$LIBS"
5789 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5791$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5793/* end confdefs.h. */
3a5729ea 5794#include <mpc.h>
acd26225
KG
5795int
5796main ()
5797{
5798
5799 mpfr_t n;
5800 mpfr_t x;
3a5729ea 5801 mpc_t c;
acd26225
KG
5802 int t;
5803 mpfr_init (n);
5804 mpfr_init (x);
5805 mpfr_atan2 (n, n, x, GMP_RNDN);
5806 mpfr_erfc (n, x, GMP_RNDN);
5807 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5808 mpfr_clear(n);
5809 mpfr_clear(x);
5810 mpc_init2 (c, 53);
5811 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5812 mpc_cosh (c, c, MPC_RNDNN);
5813 mpc_pow (c, c, c, MPC_RNDNN);
5814 mpc_acosh (c, c, MPC_RNDNN);
5815 mpc_clear (c);
1c710c3c
DJ
5816
5817 ;
5818 return 0;
5819}
5820_ACEOF
5213506e
RW
5821if ac_fn_c_try_link "$LINENO"; then :
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5823$as_echo "yes" >&6; }
1c710c3c 5824else
5213506e
RW
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5827fi
5213506e
RW
5828rm -f core conftest.err conftest.$ac_objext \
5829 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5830 LIBS="$saved_LIBS"
5831 fi
5832
e69bf64b 5833 CFLAGS="$saved_CFLAGS"
6de9cd9a 5834
362c6d2f
KG
5835# The library versions listed in the error message below should match
5836# the HARD-minimums enforced above.
e69bf64b 5837 if test x$have_gmp != xyes; then
22e05272 5838 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5839Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5840their locations. Source code for these libraries can be found at
5841their respective hosting sites as well as at
5842ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5843http://gcc.gnu.org/install/prerequisites.html for additional info. If
5844you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5845make sure that you have installed both the libraries and the header
5846files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5847 fi
70ec446f
KG
5848fi
5849
acd26225
KG
5850# Flags needed for both GMP, MPFR and/or MPC.
5851
5852
6de9cd9a
DN
5853
5854
5855
9e3eba15 5856
0ff2d841 5857
0b21f5d3 5858# Libraries to use for stage1 or when not bootstrapping.
00020c16 5859
0b21f5d3
EB
5860# Check whether --with-stage1-libs was given.
5861if test "${with_stage1_libs+set}" = set; then :
5862 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5863 stage1_libs=
00020c16 5864 else
0b21f5d3 5865 stage1_libs=$withval
00020c16
ILT
5866 fi
5867else
5dc85f7e 5868 stage1_libs=
5213506e
RW
5869fi
5870
00020c16
ILT
5871
5872
0b21f5d3 5873# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5874
0b21f5d3
EB
5875# Check whether --with-stage1-ldflags was given.
5876if test "${with_stage1_ldflags+set}" = set; then :
5877 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5878 stage1_ldflags=
00020c16 5879 else
0b21f5d3 5880 stage1_ldflags=$withval
00020c16
ILT
5881 fi
5882else
0b21f5d3
EB
5883 stage1_ldflags=
5884 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5885 # if supported. But if the user explicitly specified the libraries to use,
5886 # trust that they are doing what they want.
5887 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5888 stage1_ldflags="-static-libstdc++ -static-libgcc"
5889 fi
5213506e
RW
5890fi
5891
00020c16
ILT
5892
5893
5dc85f7e 5894# Libraries to use for stage2 and later builds.
00020c16 5895
5213506e
RW
5896# Check whether --with-boot-libs was given.
5897if test "${with_boot_libs+set}" = set; then :
5898 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5899 poststage1_libs=
5900 else
5901 poststage1_libs=$withval
5902 fi
5903else
5dc85f7e 5904 poststage1_libs=
5213506e
RW
5905fi
5906
00020c16
ILT
5907
5908
ed2eaa9f
ILT
5909# Linker flags to use for stage2 and later builds.
5910
5911# Check whether --with-boot-ldflags was given.
5912if test "${with_boot_ldflags+set}" = set; then :
5913 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5914 poststage1_ldflags=
5915 else
5916 poststage1_ldflags=$withval
5917 fi
5918else
5919 poststage1_ldflags=
bec93d73
ILT
5920 # In stages 2 and 3, default to linking libstdc++ and libgcc
5921 # statically. But if the user explicitly specified the libraries to
5922 # use, trust that they are doing what they want.
5923 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5924 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5925 fi
5926fi
5927
5928
5929
e357a5e0 5930# GCC GRAPHITE dependency isl.
4a9bb2aa 5931# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
5932
5933
33ad93b9
RG
5934# Check whether --with-isl was given.
5935if test "${with_isl+set}" = set; then :
5936 withval=$with_isl;
5213506e 5937fi
f8bf9252 5938
f8bf9252 5939
eae1a5d4 5940# Treat --without-isl as a request to disable
625afa23 5941# GRAPHITE support and skip all following checks.
eae1a5d4 5942if test "x$with_isl" != "xno"; then
e357a5e0 5943 # Check for isl
625afa23
RG
5944
5945
33ad93b9
RG
5946# Check whether --with-isl-include was given.
5947if test "${with_isl_include+set}" = set; then :
5948 withval=$with_isl_include;
5213506e
RW
5949fi
5950
f8bf9252 5951
33ad93b9
RG
5952# Check whether --with-isl-lib was given.
5953if test "${with_isl_lib+set}" = set; then :
5954 withval=$with_isl_lib;
5213506e 5955fi
f8bf9252 5956
f8bf9252 5957
33ad93b9
RG
5958 # Check whether --enable-isl-version-check was given.
5959if test "${enable_isl_version_check+set}" = set; then :
5960 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5961else
5962 ENABLE_ISL_CHECK=yes
7d32a440
SP
5963fi
5964
5965
33ad93b9
RG
5966 # Initialize isllibs and islinc.
5967 case $with_isl in
5968 no)
5969 isllibs=
5970 islinc=
5971 ;;
5972 "" | yes)
5973 ;;
5974 *)
5975 isllibs="-L$with_isl/lib"
5976 islinc="-I$with_isl/include"
5977 ;;
5978 esac
5979 if test "x${with_isl_include}" != x ; then
5980 islinc="-I$with_isl_include"
5981 fi
5982 if test "x${with_isl_lib}" != x; then
5983 isllibs="-L$with_isl_lib"
5984 fi
5985 if test "x${islinc}" = x && test "x${isllibs}" = x \
5986 && test -d ${srcdir}/isl; then
5987 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5988 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5989 ENABLE_ISL_CHECK=no
560d18d3
AK
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5991$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 5992 fi
7d32a440 5993
eae1a5d4
RG
5994 isllibs="${isllibs} -lisl"
5995
7d32a440 5996
7d32a440 5997
9847828b
RB
5998 if test "${ENABLE_ISL_CHECK}" = yes ; then
5999 _isl_saved_CFLAGS=$CFLAGS
6000 _isl_saved_LDFLAGS=$LDFLAGS
6001 _isl_saved_LIBS=$LIBS
6002
6003 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
6004 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6005 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 6006
f877b3ad
RB
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6008$as_echo_n "checking for isl 0.15 or later... " >&6; }
e0c0c325 6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 6010/* end confdefs.h. */
f877b3ad 6011#include <isl/schedule.h>
622dbadf
BC
6012int
6013main ()
6014{
f877b3ad 6015isl_options_set_schedule_serialize_sccs (NULL, 0);
622dbadf
BC
6016 ;
6017 return 0;
6018}
6019_ACEOF
6020if ac_fn_c_try_link "$LINENO"; then :
9847828b 6021 gcc_cv_isl=yes
622dbadf
BC
6022else
6023 gcc_cv_isl=no
6024fi
6025rm -f core conftest.err conftest.$ac_objext \
6026 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6028$as_echo "$gcc_cv_isl" >&6; }
6029
560d18d3 6030 if test "${gcc_cv_isl}" = no ; then
f877b3ad
RB
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6032$as_echo "required isl version is 0.15 or later" >&6; }
1e050c90
AK
6033 fi
6034
9847828b
RB
6035 CFLAGS=$_isl_saved_CFLAGS
6036 LDFLAGS=$_isl_saved_LDFLAGS
6037 LIBS=$_isl_saved_LIBS
6038 fi
6039
6040
f8bf9252 6041
f8bf9252 6042
33ad93b9
RG
6043
6044
33ad93b9
RG
6045 if test "x${with_isl}" = xno; then
6046 graphite_requested=no
6047 elif test "x${with_isl}" != x \
6048 || test "x${with_isl_include}" != x \
6049 || test "x${with_isl_lib}" != x ; then
6050 graphite_requested=yes
6051 else
6052 graphite_requested=no
7d32a440 6053 fi
d789184e 6054
d789184e
SP
6055
6056
33ad93b9
RG
6057 if test "${gcc_cv_isl}" = no ; then
6058 isllibs=
6059 islinc=
6060 fi
6061
6062 if test "${graphite_requested}" = yes \
6063 && test "x${isllibs}" = x \
6064 && test "x${islinc}" = x ; then
f8bf9252 6065
22e05272 6066 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 6067 fi
f8bf9252 6068
d32ef397 6069
d32ef397
AS
6070fi
6071
e357a5e0 6072# If the isl check failed, disable builds of in-tree variant of isl
625afa23 6073if test "x$with_isl" = xno ||
625afa23 6074 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 6075 noconfigdirs="$noconfigdirs isl"
625afa23 6076 islinc=
32d024bf
RG
6077fi
6078
625afa23
RG
6079
6080
6081
d7f09764
DN
6082# Check for LTO support.
6083# Check whether --enable-lto was given.
6084if test "${enable_lto+set}" = set; then :
6085 enableval=$enable_lto; enable_lto=$enableval
6086else
6087 enable_lto=yes; default_enable_lto=yes
6088fi
6089
6090
7413962d 6091
9a02962b
DK
6092
6093
6094target_elf=no
6095case $target in
6096 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6097 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 6098 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 6099 nvptx-*-none)
9a02962b
DK
6100 target_elf=no
6101 ;;
6102 *)
6103 target_elf=yes
6104 ;;
6105esac
6106
6107if test $target_elf = yes; then :
48215350
DK
6108 # ELF platforms build the lto-plugin always.
6109 build_lto_plugin=yes
9a02962b 6110
9a02962b
DK
6111else
6112 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6113 case $target in
deeba76a 6114 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 6115 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6116 *) enable_lto=no ;;
6117 esac
9a02962b 6118 else
db50fe7d
IS
6119 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6120 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6121 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6122 # warn during gcc/ subconfigure; unless you're bootstrapping with
6123 # -flto it won't be needed until after installation anyway.
6124 case $target in
9e530bcd 6125 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b 6126 *) if test x"$enable_lto" = x"yes"; then
22e05272 6127 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9a02962b
DK
6128 fi
6129 ;;
6130 esac
6131 fi
1cd0b716 6132 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6133 # Build it unless LTO was explicitly disabled.
1cd0b716 6134 case $target in
48215350 6135 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6136 *) ;;
6137 esac
48215350 6138
9a02962b
DK
6139fi
6140
d7f09764 6141
45b3824d
TS
6142# Check whether --enable-linker-plugin-configure-flags was given.
6143if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6144 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6145else
6146 extra_linker_plugin_configure_flags=
6147fi
6148
6149
6150# Check whether --enable-linker-plugin-flags was given.
6151if test "${enable_linker_plugin_flags+set}" = set; then :
6152 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6153else
6154 extra_linker_plugin_flags=
6155fi
6156
6157
6158
cdfee50a
NS
6159# Enable --enable-host-shared.
6160# Checked early to determine whether jit is an 'all' language
6161# Check whether --enable-host-shared was given.
6162if test "${enable_host_shared+set}" = set; then :
6163 enableval=$enable_host_shared; host_shared=$enableval
6164else
6165 host_shared=no
6166fi
6167
6168
f8bf9252 6169
0823efed 6170# By default, C and C++ are the only stage 1 languages.
e1888513 6171stage1_languages=,c,
2805b53a 6172
00020c16 6173# Target libraries that we bootstrap.
ad1e5170 6174bootstrap_target_libs=,target-libgcc,
00020c16 6175
55ffb5ed
NN
6176# Figure out what language subdirectories are present.
6177# Look if the user specified --enable-languages="..."; if not, use
6178# the environment variable $LANGUAGES if defined. $LANGUAGES might
6179# go away some day.
6180# NB: embedded tabs in this IF block -- do not untabify
6181if test -d ${srcdir}/gcc; then
6182 if test x"${enable_languages+set}" != xset; then
6183 if test x"${LANGUAGES+set}" = xset; then
6184 enable_languages="${LANGUAGES}"
6b1786aa 6185 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed 6186 else
cdfee50a 6187 enable_languages=default
55ffb5ed
NN
6188 fi
6189 else
6190 if test x"${enable_languages}" = x ||
6191 test x"${enable_languages}" = xyes;
6192 then
6b1786aa 6193 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
6194 exit 1
6195 fi
6196 fi
6197 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6198
7f26dfa3
FXC
6199 # 'f95' is the old name for the 'fortran' language. We issue a warning
6200 # and make the substitution.
6201 case ,${enable_languages}, in
6202 *,f95,*)
6b1786aa 6203 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
6204 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6205 ;;
6206 esac
6207
0823efed
DN
6208 # If bootstrapping, C++ must be enabled.
6209 case ",$enable_languages,:$enable_bootstrap" in
6210 *,c++,*:*) ;;
6211 *:yes)
ff3ac0f4
ILT
6212 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6213 enable_languages="${enable_languages},c++"
6214 else
22e05272 6215 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6216 fi
6217 ;;
6218 esac
6219
55ffb5ed
NN
6220 # First scan to see if an enabled language requires some other language.
6221 # We assume that a given config-lang.in will list all the language
6222 # front ends it requires, even if some are required indirectly.
6223 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6224 case ${lang_frag} in
6225 ..) ;;
6226 # The odd quoting in the next line works around
6227 # an apparent bug in bash 1.12 on linux.
6228 ${srcdir}/gcc/[*]/config-lang.in) ;;
6229 *)
69ecd18f
ILT
6230 # From the config-lang.in, get $language, $lang_requires, and
6231 # $lang_requires_boot_languages.
55ffb5ed
NN
6232 language=
6233 lang_requires=
69ecd18f 6234 lang_requires_boot_languages=
d4360477
NS
6235 # set srcdir during sourcing lang_frag to the gcc dir.
6236 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6237 # polutes this shell
6238 saved_srcdir=${srcdir}
6239 srcdir=${srcdir}/gcc . ${lang_frag}
6240 srcdir=${saved_srcdir}
69ecd18f 6241 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6242 case ,${enable_languages}, in
6243 *,$other,*) ;;
cdfee50a 6244 *,default,*) ;;
55ffb5ed
NN
6245 *,all,*) ;;
6246 *,$language,*)
6247 echo " \`$other' language required by \`$language'; enabling" 1>&2
6248 enable_languages="${enable_languages},${other}"
6249 ;;
6250 esac
6251 done
69ecd18f
ILT
6252 for other in ${lang_requires_boot_languages} ; do
6253 if test "$other" != "c"; then
6254 case ,${enable_stage1_languages}, in
6255 *,$other,*) ;;
cdfee50a 6256 *,default,*) ;;
69ecd18f
ILT
6257 *,all,*) ;;
6258 *)
6259 case ,${enable_languages}, in
6260 *,$language,*)
6261 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6262 enable_stage1_languages="$enable_stage1_languages,${other}"
6263 ;;
6264 esac
6265 ;;
6266 esac
6267 fi
6268 done
55ffb5ed
NN
6269 ;;
6270 esac
6271 done
6272
e1888513 6273 new_enable_languages=,c,
d7f09764
DN
6274
6275 # If LTO is enabled, add the LTO front end.
d7f09764 6276 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6277 case ,${enable_languages}, in
6278 *,lto,*) ;;
6279 *) enable_languages="${enable_languages},lto" ;;
6280 esac
1cd0b716 6281 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 6282 configdirs="$configdirs lto-plugin"
d7f09764
DN
6283 fi
6284 fi
6285
426c1eb0
TS
6286 # If we're building an offloading compiler, add the LTO front end.
6287 if test x"$enable_as_accelerator_for" != x ; then
6288 case ,${enable_languages}, in
6289 *,lto,*) ;;
6290 *) enable_languages="${enable_languages},lto" ;;
6291 esac
6292 fi
6293
cdfee50a 6294 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6295 potential_languages=,c,
55ffb5ed 6296
4da3b0f8
ILT
6297 enabled_target_libs=
6298 disabled_target_libs=
6299
55ffb5ed
NN
6300 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6301 case ${lang_frag} in
6302 ..) ;;
6303 # The odd quoting in the next line works around
6304 # an apparent bug in bash 1.12 on linux.
6305 ${srcdir}/gcc/[*]/config-lang.in) ;;
6306 *)
1c710c3c 6307 # From the config-lang.in, get $language, $target_libs,
2805b53a 6308 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6309 language=
6310 target_libs=
6311 lang_dirs=
1546bb64 6312 subdir_requires=
e1888513
PB
6313 boot_language=no
6314 build_by_default=yes
d4360477
NS
6315 # set srcdir during sourcing. See above about save & restore
6316 saved_srcdir=${srcdir}
6317 srcdir=${srcdir}/gcc . ${lang_frag}
6318 srcdir=${saved_srcdir}
e1888513
PB
6319 if test x${language} = x; then
6320 echo "${lang_frag} doesn't set \$language." 1>&2
6321 exit 1
6322 fi
6323
78767fd9 6324 if test "$language" = "c++"; then
0823efed 6325 boot_language=yes
00020c16
ILT
6326 fi
6327
178f875a 6328 add_this_lang=no
cdfee50a
NS
6329 # C is always enabled, so no need to add it again
6330 if test "$language" != "c"; then
6331 case ,${enable_languages}, in
6332 *,${language},*)
6333 # Language was explicitly selected; include it
d4a10d0a 6334 add_this_lang=yes
cdfee50a
NS
6335 ;;
6336 *,all,*)
6337 # All languages are enabled
6338 add_this_lang=all
6339 ;;
6340 *,default,*)
6341 # 'default' was selected, select it if it is a default language
178f875a 6342 add_this_lang=${build_by_default}
cdfee50a
NS
6343 ;;
6344 esac
6345 fi
6de9cd9a 6346
1546bb64 6347 # Disable languages that need other directories if these aren't available.
95695ad3 6348 for i in $subdir_requires; do
b6348cb3 6349 test -f "$srcdir/gcc/$i/config-lang.in" && continue
cdfee50a
NS
6350 case ${add_this_lang} in
6351 yes)
1546bb64 6352 # Specifically requested language; tell them.
22e05272 6353 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64 6354 ;;
cdfee50a
NS
6355 all)
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6357$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6358 add_this_lang=unsupported
6359 ;;
1546bb64
PB
6360 *)
6361 # Silently disable.
e1888513 6362 add_this_lang=unsupported
1546bb64
PB
6363 ;;
6364 esac
6365 done
6366
e1888513 6367 # Disable Ada if no preexisting GNAT is available.
cdfee50a
NS
6368 case ${add_this_lang}:${language}:${have_gnat} in
6369 yes:ada:no)
e1888513 6370 # Specifically requested language; tell them.
22e05272 6371 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
e1888513 6372 ;;
cdfee50a
NS
6373 all:ada:no)
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6375$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6376 add_this_lang=unsupported
6377 ;;
e1888513
PB
6378 *:ada:no)
6379 # Silently disable.
6380 add_this_lang=unsupported
6381 ;;
6382 esac
6383
cdfee50a
NS
6384 # Disable jit if -enable-host-shared not specified
6385 case ${add_this_lang}:${language}:${host_shared} in
6386 yes:jit:no)
6387 # PR jit/64780: explicitly specify --enable-host-shared
22e05272 6388 as_fn_error $? "
cdfee50a
NS
6389Enabling language \"jit\" requires --enable-host-shared.
6390
6391--enable-host-shared typically slows the rest of the compiler down by
6392a few %, so you must explicitly enable it.
6393
6394If you want to build both the jit and the regular compiler, it is often
6395best to do this via two separate configure/builds, in separate
6396directories, to avoid imposing the performance cost of
6397--enable-host-shared on the regular compiler." "$LINENO" 5
6398 ;;
6399 all:jit:no)
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6401$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6402 add_this_lang=unsupported
6403 ;;
6404 *:jit:no)
6405 # Silently disable.
6406 add_this_lang=unsupported
6407 ;;
6408 esac
6409
6410 # Disable a language that is unsupported by the target.
6411 case "${add_this_lang}: $unsupported_languages " in
6412 no:*) ;;
6413 unsupported:*) ;;
6414 *:*" $language "*)
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6416$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
e1888513 6417 add_this_lang=unsupported
4fab7234
HPN
6418 ;;
6419 esac
6420
6de9cd9a 6421 case $add_this_lang in
e1888513 6422 unsupported)
55ffb5ed 6423 # Remove language-dependent dirs.
4da3b0f8
ILT
6424 disabled_target_libs="$disabled_target_libs $target_libs"
6425 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6426 ;;
e1888513
PB
6427 no)
6428 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6429 disabled_target_libs="$disabled_target_libs $target_libs"
6430 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6431 potential_languages="${potential_languages}${language},"
6432 ;;
cdfee50a 6433 all|yes)
e1888513
PB
6434 new_enable_languages="${new_enable_languages}${language},"
6435 potential_languages="${potential_languages}${language},"
2805b53a 6436 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6437 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6438 case "${boot_language}:,$enable_stage1_languages," in
6439 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6440 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6441 case ",$stage1_languages," in
6442 *,$language,* | ,yes, | ,all,) ;;
6443 *) stage1_languages="${stage1_languages}${language}," ;;
6444 esac
00020c16
ILT
6445 # We need to bootstrap any supporting libraries.
6446 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6447 ;;
6448 esac
6449 ;;
55ffb5ed
NN
6450 esac
6451 ;;
6452 esac
6453 done
6454
4da3b0f8
ILT
6455 # Add target libraries which are only needed for disabled languages
6456 # to noconfigdirs.
6457 if test -n "$disabled_target_libs"; then
6458 for dir in $disabled_target_libs; do
6459 case " $enabled_target_libs " in
6460 *" ${dir} "*) ;;
6461 *) noconfigdirs="$noconfigdirs $dir" ;;
6462 esac
6463 done
6464 fi
6465
5213506e
RW
6466 # Check whether --enable-stage1-languages was given.
6467if test "${enable_stage1_languages+set}" = set; then :
6468 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6469 ,no,|,,)
6470 # Set it to something that will have no effect in the loop below
6471 enable_stage1_languages=c ;;
6472 ,yes,)
6473 enable_stage1_languages=`echo $new_enable_languages | \
6474 sed -e "s/^,//" -e "s/,$//" ` ;;
6475 *,all,*)
6476 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6477 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6478 esac
6479
6480 # Add "good" languages from enable_stage1_languages to stage1_languages,
6481 # while "bad" languages go in missing_languages. Leave no duplicates.
6482 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6483 case $potential_languages in
6484 *,$i,*)
6485 case $stage1_languages in
6486 *,$i,*) ;;
6487 *) stage1_languages="$stage1_languages$i," ;;
6488 esac ;;
6489 *)
6490 case $missing_languages in
6491 *,$i,*) ;;
6492 *) missing_languages="$missing_languages$i," ;;
6493 esac ;;
6494 esac
6495 done
5213506e
RW
6496fi
6497
e1888513
PB
6498
6499 # Remove leading/trailing commas that were added for simplicity
6500 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6501 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6502 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6503 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6504
55ffb5ed 6505 if test "x$missing_languages" != x; then
22e05272 6506 as_fn_error $? "
0cf085e4 6507The following requested languages could not be built: ${missing_languages}
5213506e 6508Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6509 fi
55ffb5ed
NN
6510 if test "x$new_enable_languages" != "x$enable_languages"; then
6511 echo The following languages will be built: ${new_enable_languages}
e1888513 6512 enable_languages="$new_enable_languages"
55ffb5ed 6513 fi
e1888513 6514
1c710c3c 6515
b2eaac4a 6516 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6517fi
6518
27079765
AH
6519# Handle --disable-<component> generically.
6520for dir in $configdirs $build_configdirs $target_configdirs ; do
6521 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6522 varname=`echo $dirname | sed -e s/+/_/g`
6523 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6524 noconfigdirs="$noconfigdirs $dir"
6525 fi
6526done
6527
43c40f3e
RO
6528# Check for Boehm's garbage collector
6529# Check whether --enable-objc-gc was given.
6530if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
6531 enableval=$enable_objc_gc;
6532fi
6533
6534
6535# Check whether --with-target-bdw-gc was given.
6536if test "${with_target_bdw_gc+set}" = set; then :
6537 withval=$with_target_bdw_gc;
6538fi
6539
6540
6541# Check whether --with-target-bdw-gc-include was given.
6542if test "${with_target_bdw_gc_include+set}" = set; then :
6543 withval=$with_target_bdw_gc_include;
6544fi
6545
6546
6547# Check whether --with-target-bdw-gc-lib was given.
6548if test "${with_target_bdw_gc_lib+set}" = set; then :
6549 withval=$with_target_bdw_gc_lib;
6550fi
6551
6552
6553case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6555$as_echo_n "checking for bdw garbage collector... " >&6; }
6556 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6558$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
6559 else
6560 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
22e05272 6561 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
114bf3f1 6562 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
22e05272 6563 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
114bf3f1
MK
6564 else
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6566$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6567 fi
6568 fi
43c40f3e
RO
6569esac
6570
5e9d6aa4 6571# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 6572case ,${enable_languages}, in
1007a55c 6573 *,c++,*)
5e9d6aa4 6574 # Disable libitm, libsanitizer if we're not building libstdc++
1007a55c
JW
6575 case "${noconfigdirs}" in
6576 *target-libstdc++-v3*)
5e9d6aa4 6577 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1007a55c
JW
6578 ;;
6579 *) ;;
6580 esac
6581 ;;
99776ebd 6582 *)
5e9d6aa4 6583 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6584 ;;
6585esac
6586
ee6a22df
L
6587# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6588# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6589# If we have the source for $noconfigdirs entries, add them to $notsupp.
6590
6591notsupp=""
6592for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6593 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6594 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6595 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6596 if test -r $srcdir/$dirname/configure ; then
6597 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6598 true
6599 else
6600 notsupp="$notsupp $dir"
6601 fi
6602 fi
6603 fi
ee6a22df
L
6604 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6605 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6606 if test -r $srcdir/$dirname/configure ; then
6607 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6608 true
6609 else
6610 notsupp="$notsupp $dir"
6611 fi
6612 fi
6613 fi
55ffb5ed
NN
6614 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6615 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6616 if test -r $srcdir/$dirname/configure ; then
6617 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6618 true
6619 else
6620 notsupp="$notsupp $dir"
6621 fi
6622 fi
6623 fi
6624done
6625
55ffb5ed
NN
6626# Quietly strip out all directories which aren't configurable in this tree.
6627# This relies on all configurable subdirectories being autoconfiscated, which
6628# is now the case.
23f6b2f9
PB
6629build_configdirs_all="$build_configdirs"
6630build_configdirs=
6631for i in ${build_configdirs_all} ; do
1c710c3c 6632 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6633 if test -f ${srcdir}/$j/configure ; then
6634 build_configdirs="${build_configdirs} $i"
6635 fi
6636done
6637
55ffb5ed
NN
6638configdirs_all="$configdirs"
6639configdirs=
6640for i in ${configdirs_all} ; do
6641 if test -f ${srcdir}/$i/configure ; then
6642 configdirs="${configdirs} $i"
6643 fi
6644done
23f6b2f9 6645
55ffb5ed
NN
6646target_configdirs_all="$target_configdirs"
6647target_configdirs=
6648for i in ${target_configdirs_all} ; do
1c710c3c 6649 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6650 if test -f ${srcdir}/$j/configure ; then
6651 target_configdirs="${target_configdirs} $i"
6652 fi
6653done
6654
45b3824d
TS
6655# libiberty-linker-plugin is special: it doesn't have its own source directory,
6656# so we have to add it after the preceding checks.
6657if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6658then
6659 case " $configdirs " in
6660 *" libiberty "*)
6661 # If we can build libiberty, we can also build libiberty-linker-plugin.
6662 configdirs="$configdirs libiberty-linker-plugin"
6663 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6664 --with-libiberty=../libiberty-linker-plugin";;
6665 *)
22e05272 6666 as_fn_error $? "libiberty missing" "$LINENO" 5;;
45b3824d
TS
6667 esac
6668fi
6669
fca38047
TS
6670# Sometimes we have special requirements for the host libiberty.
6671extra_host_libiberty_configure_flags=
1c01ebf6 6672extra_host_zlib_configure_flags=
fca38047
TS
6673case " $configdirs " in
6674 *" lto-plugin "* | *" libcc1 "*)
6675 # When these are to be built as shared libraries, the same applies to
6676 # libiberty.
6677 extra_host_libiberty_configure_flags=--enable-shared
6678 ;;
1c01ebf6
L
6679 *" bfd "*)
6680 # When bfd is to be built as a shared library, the same applies to
6681 # zlib.
6682 if test "$enable_shared" = "yes"; then
6683 extra_host_zlib_configure_flags=--enable-host-shared
6684 fi
6685 ;;
fca38047
TS
6686esac
6687
6688
1c01ebf6 6689
55ffb5ed
NN
6690# Produce a warning message for the subdirs we can't configure.
6691# This isn't especially interesting in the Cygnus tree, but in the individual
6692# FSF releases, it's important to let people know when their machine isn't
6693# supported by the one or two programs in a package.
6694
6695if test -n "${notsupp}" && test -z "${norecursion}" ; then
6696 # If $appdirs is non-empty, at least one of those directories must still
6697 # be configured, or we error out. (E.g., if the gas release supports a
6698 # specified target in some subdirs but not the gas subdir, we shouldn't
6699 # pretend that all is well.)
6700 if test -n "$appdirs" ; then
6701 for dir in $appdirs ; do
6702 if test -r $dir/Makefile.in ; then
6703 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6704 appdirs=""
6705 break
6706 fi
23f6b2f9 6707 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6708 appdirs=""
6709 break
6710 fi
6711 fi
6712 done
6713 if test -n "$appdirs" ; then
6714 echo "*** This configuration is not supported by this package." 1>&2
6715 exit 1
6716 fi
6717 fi
6718 # Okay, some application will build, or we don't care to check. Still
6719 # notify of subdirs not getting built.
6720 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6721 echo " ${notsupp}" 1>&2
6722 echo " (Any other directories should still work fine.)" 1>&2
6723fi
6724
6725case "$host" in
6726 *msdosdjgpp*)
6727 enable_gdbtk=no ;;
6728esac
6729
c3a86da9
DJ
6730# To find our prefix, in gcc_cv_tool_prefix.
6731
6732# The user is always right.
6733if test "${PATH_SEPARATOR+set}" != set; then
6734 echo "#! /bin/sh" >conf$$.sh
6735 echo "exit 0" >>conf$$.sh
6736 chmod +x conf$$.sh
6737 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6738 PATH_SEPARATOR=';'
6739 else
6740 PATH_SEPARATOR=:
6741 fi
6742 rm -f conf$$.sh
6743fi
6744
6745
3c36aa6b
JJ
6746 get_gcc_base_ver="cat"
6747
6748# Check whether --with-gcc-major-version-only was given.
6749if test "${with_gcc_major_version_only+set}" = set; then :
6750 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
31db0fe0 6751 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
6752 fi
6753
6754fi
6755
6756
6757
6758
6759
c3a86da9
DJ
6760
6761if test "x$exec_prefix" = xNONE; then
6762 if test "x$prefix" = xNONE; then
6763 gcc_cv_tool_prefix=$ac_default_prefix
6764 else
6765 gcc_cv_tool_prefix=$prefix
6766 fi
6767else
6768 gcc_cv_tool_prefix=$exec_prefix
6769fi
6770
6771# If there is no compiler in the tree, use the PATH only. In any
6772# case, if there is no compiler in the tree nobody should use
6773# AS_FOR_TARGET and LD_FOR_TARGET.
6774if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
6775 if test x$with_gcc_major_version_only = xyes ; then
6776 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6777 else
6778 gcc_version=`cat $srcdir/gcc/BASE-VER`
6779 fi
c3a86da9
DJ
6780 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6781 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6782 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6783 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6784 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6785 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6786else
6787 gcc_cv_tool_dirs=
6788fi
6789
6790if test x$build = x$target && test -n "$md_exec_prefix"; then
6791 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6792fi
6793
6794
6795
55ffb5ed
NN
6796copy_dirs=
6797
1c710c3c 6798
5213506e
RW
6799# Check whether --with-build-sysroot was given.
6800if test "${with_build_sysroot+set}" = set; then :
6801 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6802 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6803 fi
6804else
6805 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6806fi
526635cb
MM
6807
6808
c8aea42c 6809
5213506e
RW
6810
6811# Check whether --with-debug-prefix-map was given.
6812if test "${with_debug_prefix_map+set}" = set; then :
6813 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6814 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6815 for debug_map in $withval; do
6816 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6817 done
6818 fi
6819else
6820 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6821fi
6822
c8aea42c
PB
6823
6824
1c8bd6a3
PB
6825# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6826# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6827# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6828# We want to ensure that TARGET libraries (which we know are built with
6829# gcc) are built with "-O2 -g", so include those options when setting
6830# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6831if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6832 if test "x${is_cross_compiler}" = xyes; then
6833 CFLAGS_FOR_TARGET="-g -O2"
6834 else
6835 CFLAGS_FOR_TARGET=$CFLAGS
6836 case " $CFLAGS " in
6837 *" -O2 "*) ;;
6838 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6839 esac
6840 case " $CFLAGS " in
6841 *" -g "* | *" -g3 "*) ;;
6842 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6843 esac
6844 fi
1c8bd6a3
PB
6845fi
6846
6847
6848if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6849 if test "x${is_cross_compiler}" = xyes; then
6850 CXXFLAGS_FOR_TARGET="-g -O2"
6851 else
6852 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6853 case " $CXXFLAGS " in
6854 *" -O2 "*) ;;
6855 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6856 esac
6857 case " $CXXFLAGS " in
6858 *" -g "* | *" -g3 "*) ;;
6859 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6860 esac
6861 fi
1c8bd6a3
PB
6862fi
6863
6864
6f57bdf6
DK
6865
6866
55ffb5ed
NN
6867# Handle --with-headers=XXX. If the value is not "yes", the contents of
6868# the named directory are copied to $(tooldir)/sys-include.
6869if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6870 if test x${is_cross_compiler} = xno ; then
6871 echo 1>&2 '***' --with-headers is only supported when cross compiling
6872 exit 1
6873 fi
6874 if test x"${with_headers}" != xyes ; then
c3a86da9 6875 x=${gcc_cv_tool_prefix}
1c710c3c 6876 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6877 fi
6878fi
6879
6880# Handle --with-libs=XXX. If the value is not "yes", the contents of
6881# the name directories are copied to $(tooldir)/lib. Multiple directories
6882# are permitted.
6883if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6884 if test x${is_cross_compiler} = xno ; then
6885 echo 1>&2 '***' --with-libs is only supported when cross compiling
6886 exit 1
6887 fi
6888 if test x"${with_libs}" != xyes ; then
6889 # Copy the libraries in reverse order, so that files in the first named
6890 # library override files in subsequent libraries.
c3a86da9 6891 x=${gcc_cv_tool_prefix}
55ffb5ed 6892 for l in ${with_libs}; do
1c710c3c 6893 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6894 done
6895 fi
6896fi
6897
d7f09764 6898# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6899#
6900# This is done by determining whether or not the appropriate directory
6901# is available, and by checking whether or not specific configurations
6902# have requested that this magic not happen.
1c710c3c
DJ
6903#
6904# The command line options always override the explicit settings in
6b1786aa 6905# configure.ac, and the settings in configure.ac override this magic.
e8b05380 6906#
1c710c3c 6907# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6908# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6909# --without-gnu-ld options for the configure script. Similarly, if
6910# the default is to use the included zlib and you don't want to do that,
6911# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6912
6913if test x${use_gnu_as} = x &&
6914 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6915 with_gnu_as=yes
6916 extra_host_args="$extra_host_args --with-gnu-as"
6917fi
6918
6919if test x${use_gnu_ld} = x &&
5afab7ad 6920 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6921 with_gnu_ld=yes
6922 extra_host_args="$extra_host_args --with-gnu-ld"
6923fi
6924
d7f09764
DN
6925if test x${use_included_zlib} = x &&
6926 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6927 :
6928else
6929 with_system_zlib=yes
6930 extra_host_args="$extra_host_args --with-system-zlib"
6931fi
6932
e8b05380
PB
6933# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6934# can detect this case.
6935
6936if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6937 with_newlib=yes
6938 extra_host_args="$extra_host_args --with-newlib"
6939fi
6940
55ffb5ed
NN
6941# Handle ${copy_dirs}
6942set fnord ${copy_dirs}
6943shift
6944while test $# != 0 ; do
6945 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6946 :
6947 else
6948 echo Copying $1 to $2
6949
6950 # Use the install script to create the directory and all required
6951 # parent directories.
6952 if test -d $2 ; then
6953 :
6954 else
6955 echo >config.temp
6956 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6957 fi
6958
6959 # Copy the directory, assuming we have tar.
6960 # FIXME: Should we use B in the second tar? Not all systems support it.
6961 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6962
6963 # It is the responsibility of the user to correctly adjust all
6964 # symlinks. If somebody can figure out how to handle them correctly
6965 # here, feel free to add the code.
6966
6967 echo $1 > $2/COPIED
6968 fi
6969 shift; shift
6970done
6971
e8b05380
PB
6972# Determine a target-dependent exec_prefix that the installed
6973# gcc will search in. Keep this list sorted by triplet, with
6974# the *-*-osname triplets last.
6975md_exec_prefix=
6976case "${target}" in
30b74385 6977 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6978 md_exec_prefix=/dev/env/DJDIR/bin
6979 ;;
e8b05380 6980 *-*-hpux* | \
e8b05380 6981 *-*-nto-qnx* | \
6de66370 6982 *-*-solaris2*)
e8b05380
PB
6983 md_exec_prefix=/usr/ccs/bin
6984 ;;
6985esac
6986
671aa708
NN
6987extra_arflags_for_target=
6988extra_nmflags_for_target=
6989extra_ranlibflags_for_target=
6990target_makefile_frag=/dev/null
6991case "${target}" in
58e24147
AM
6992 spu-*-*)
6993 target_makefile_frag="config/mt-spu"
6994 ;;
d896cc4d 6995 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
6996 target_makefile_frag="config/mt-sde"
6997 ;;
1ec3b87b
RS
6998 mipsisa*-*-elfoabi*)
6999 target_makefile_frag="config/mt-mips-elfoabi"
7000 ;;
08d0963a
RS
7001 mips*-*-*linux* | mips*-*-gnu*)
7002 target_makefile_frag="config/mt-mips-gnu"
7003 ;;
707f1839
SL
7004 nios2-*-elf*)
7005 target_makefile_frag="config/mt-nios2-elf"
7006 ;;
76052545
EB
7007 *-*-linux-android*)
7008 target_makefile_frag="config/mt-android"
7009 ;;
416ac4d4 7010 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 7011 target_makefile_frag="config/mt-gnu"
671aa708
NN
7012 ;;
7013 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 7014 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
7015 # commands to handle both 32-bit and 64-bit objects. These flags are
7016 # harmless if we're using GNU nm or ar.
7017 extra_arflags_for_target=" -X32_64"
7018 extra_nmflags_for_target=" -B -X32_64"
7019 ;;
671aa708
NN
7020esac
7021
7022alphaieee_frag=/dev/null
7023case $target in
7024 alpha*-*-*)
7025 # This just makes sure to use the -mieee option to build target libs.
7026 # This should probably be set individually by each library.
7027 alphaieee_frag="config/mt-alphaieee"
7028 ;;
7029esac
7030
7031# If --enable-target-optspace always use -Os instead of -O2 to build
7032# the target libraries, similarly if it is not specified, use -Os
7033# on selected platforms.
7034ospace_frag=/dev/null
7035case "${enable_target_optspace}:${target}" in
7036 yes:*)
7037 ospace_frag="config/mt-ospace"
7038 ;;
7039 :d30v-*)
7040 ospace_frag="config/mt-d30v"
7041 ;;
d9063947 7042 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
7043 ospace_frag="config/mt-ospace"
7044 ;;
7045 no:* | :*)
7046 ;;
7047 *)
7048 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7049 ;;
7050esac
7051
671aa708
NN
7052# Some systems (e.g., one of the i386-aix systems the gas testers are
7053# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 7054tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
7055build_tooldir=${tooldir}
7056
671aa708
NN
7057# Create a .gdbinit file which runs the one in srcdir
7058# and tells GDB to look there for source files.
7059
7060if test -r ${srcdir}/.gdbinit ; then
7061 case ${srcdir} in
7062 .) ;;
7063 *) cat > ./.gdbinit <<EOF
7064# ${NO_EDIT}
7065dir ${srcdir}
7066dir .
7067source ${srcdir}/.gdbinit
7068EOF
7069 ;;
7070 esac
7071fi
7072
671aa708
NN
7073# Make sure that the compiler is able to generate an executable. If it
7074# can't, we are probably in trouble. We don't care whether we can run the
7075# executable--we might be using a cross compiler--we only care whether it
7076# can be created. At this point the main configure script has set CC.
7077we_are_ok=no
7078echo "int main () { return 0; }" > conftest.c
7079${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7080if test $? = 0 ; then
7081 if test -s conftest || test -s conftest.exe ; then
7082 we_are_ok=yes
7083 fi
1c710c3c 7084fi
671aa708
NN
7085case $we_are_ok in
7086 no)
7087 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7088 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7089 rm -f conftest*
7090 exit 1
7091 ;;
7092esac
7093rm -f conftest*
7094
d89f0ad6 7095# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
7096case "${host}" in
7097 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 7098 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 7099 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
7100 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7101esac
7102
d89f0ad6
AL
7103# On systems where the dynamic library environment variable is PATH,
7104# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7105# built executables to PATH.
7106if test "$RPATH_ENVVAR" = PATH; then
7107 GCC_SHLIB_SUBDIR=/shlib
7108else
7109 GCC_SHLIB_SUBDIR=
7110fi
7111
beeda1d9
JJ
7112# Adjust the toplevel makefile according to whether bootstrap was selected.
7113case $enable_bootstrap in
7114 yes)
7115 bootstrap_suffix=bootstrap
7116 BUILD_CONFIG=bootstrap-debug
7117 ;;
7118 no)
7119 bootstrap_suffix=no-bootstrap
7120 BUILD_CONFIG=
7121 ;;
7122esac
7123
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7125$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7126
7127
7128# Check whether --with-build-config was given.
7129if test "${with_build_config+set}" = set; then :
7130 withval=$with_build_config; case $with_build_config in
7131 yes) with_build_config= ;;
7132 no) with_build_config= BUILD_CONFIG= ;;
7133 esac
7134fi
7135
7136
7137if test "x${with_build_config}" != x; then
7138 BUILD_CONFIG=$with_build_config
7139else
7140 case $BUILD_CONFIG in
7141 bootstrap-debug)
7142 if echo "int f (void) { return 0; }" > conftest.c &&
7143 ${CC} -c conftest.c &&
7144 mv conftest.o conftest.o.g0 &&
7145 ${CC} -c -g conftest.c &&
7146 mv conftest.o conftest.o.g &&
7147 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7148 :
7149 else
7150 BUILD_CONFIG=
7151 fi
7152 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7153 ;;
7154 esac
7155fi
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7157$as_echo "$BUILD_CONFIG" >&6; }
7158
7159
7160# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7162$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7163# Check whether --enable-vtable-verify was given.
7164if test "${enable_vtable_verify+set}" = set; then :
7165 enableval=$enable_vtable_verify; case "$enableval" in
7166 yes) enable_vtable_verify=yes ;;
7167 no) enable_vtable_verify=no ;;
7168 *) enable_vtable_verify=no;;
7169 esac
7170else
7171 enable_vtable_verify=no
7172fi
7173
7174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7175$as_echo "$enable_vtable_verify" >&6; }
7176
671aa708
NN
7177# Record target_configdirs and the configure arguments for target and
7178# build configuration in Makefile.
7179target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7180build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 7181bootstrap_fixincludes=no
671aa708 7182
ad1e5170
JR
7183# If we are building libgomp, bootstrap it.
7184if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7185 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7186fi
7187
beeda1d9
JJ
7188# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7189# or bootstrap-ubsan, bootstrap it.
7190if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7191 case "$BUILD_CONFIG" in
7192 *bootstrap-asan* | *bootstrap-ubsan* )
7193 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7194 bootstrap_fixincludes=yes
beeda1d9
JJ
7195 ;;
7196 esac
ac8701fe
L
7197fi
7198
beeda1d9
JJ
7199# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7200if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7201 test "$enable_vtable_verify" != no; then
2077db1b
CT
7202 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7203fi
7204
671aa708
NN
7205# Determine whether gdb needs tk/tcl or not.
7206# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7207# and in that case we want gdb to be built without tk. Ugh!
7208# In fact I believe gdb is the *only* package directly dependent on tk,
7209# so we should be able to put the 'maybe's in unconditionally and
7210# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7211# 100% sure that that's safe though.
e914a571 7212
b4f96efe 7213gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7214case "$enable_gdbtk" in
7215 no)
7216 GDB_TK="" ;;
e914a571
AC
7217 yes)
7218 GDB_TK="${gdb_tk}" ;;
671aa708 7219 *)
e914a571
AC
7220 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7221 # distro. Eventually someone will fix this and move Insight, nee
7222 # gdbtk to a separate directory.
7223 if test -d ${srcdir}/gdb/gdbtk ; then
7224 GDB_TK="${gdb_tk}"
7225 else
7226 GDB_TK=""
7227 fi
7228 ;;
671aa708 7229esac
ef9db8d5
DJ
7230CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7231INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7232
60975492 7233# Strip out unwanted targets.
8b87bb96
NN
7234
7235# While at that, we remove Makefiles if we were started for recursive
7236# configuration, so that the top-level Makefile reconfigures them,
7237# like we used to do when configure itself was recursive.
8b87bb96 7238
3e54529c
RW
7239# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7240# but now we're fixing up the Makefile ourselves with the additional
7241# commands passed to AC_CONFIG_FILES. Use separate variables
7242# extrasub-{build,host,target} not because there is any reason to split
7243# the substitutions up that way, but only to remain below the limit of
7244# 99 commands in a script, for HP-UX sed.
da34ca3f
AO
7245
7246# Do not nest @if/@endif or @unless/@endunless pairs, because
7247# configure will not warn you at all.
8b87bb96 7248
79cd2b23
RW
7249case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7250 yes:yes:*\ gold\ *:*,c++,*) ;;
7251 yes:yes:*\ gold\ *:*)
22e05272 7252 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
79cd2b23
RW
7253 ;;
7254esac
7255
3e54529c 7256extrasub_build=
23f6b2f9 7257for module in ${build_configdirs} ; do
5607edfd
PB
7258 if test -z "${no_recursion}" \
7259 && test -f ${build_subdir}/${module}/Makefile; then
7260 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7261 rm -f ${build_subdir}/${module}/Makefile
7262 fi
3e54529c 7263 extrasub_build="$extrasub_build
5607edfd
PB
7264/^@if build-$module\$/d
7265/^@endif build-$module\$/d
da34ca3f 7266/^@unless build-$module\$/,/^@endunless build-$module\$/d
5607edfd 7267/^@if build-$module-$bootstrap_suffix\$/d
da34ca3f
AO
7268/^@endif build-$module-$bootstrap_suffix\$/d
7269/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
5607edfd 7270done
3e54529c 7271extrasub_host=
5607edfd 7272for module in ${configdirs} ; do
a6fbc1e2 7273 if test -z "${no_recursion}"; then
f063a9ed 7274 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7275 if test -f ${file}; then
7276 echo 1>&2 "*** removing ${file} to force reconfigure"
7277 rm -f ${file}
7278 fi
7279 done
5607edfd 7280 fi
9e1c8fc1
JJ
7281 case ${module},${bootstrap_fixincludes} in
7282 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7283 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7284 esac
3e54529c 7285 extrasub_host="$extrasub_host
5607edfd
PB
7286/^@if $module\$/d
7287/^@endif $module\$/d
da34ca3f 7288/^@unless $module\$/,/^@endunless $module\$/d
9e1c8fc1 7289/^@if $module-$host_bootstrap_suffix\$/d
da34ca3f
AO
7290/^@endif $module-$host_bootstrap_suffix\$/d
7291/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
5607edfd 7292done
3e54529c 7293extrasub_target=
5607edfd
PB
7294for module in ${target_configdirs} ; do
7295 if test -z "${no_recursion}" \
7296 && test -f ${target_subdir}/${module}/Makefile; then
7297 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7298 rm -f ${target_subdir}/${module}/Makefile
7299 fi
00020c16
ILT
7300
7301 # We only bootstrap target libraries listed in bootstrap_target_libs.
7302 case $bootstrap_target_libs in
7303 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7304 *) target_bootstrap_suffix=no-bootstrap ;;
7305 esac
7306
3e54529c 7307 extrasub_target="$extrasub_target
5607edfd
PB
7308/^@if target-$module\$/d
7309/^@endif target-$module\$/d
da34ca3f 7310/^@unless target-$module\$/,/^@endunless target-$module\$/d
00020c16 7311/^@if target-$module-$target_bootstrap_suffix\$/d
da34ca3f
AO
7312/^@endif target-$module-$target_bootstrap_suffix\$/d
7313/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7314done
7315
3e54529c
RW
7316# Do the final fixup along with target modules.
7317extrasub_target="$extrasub_target
da34ca3f
AO
7318/^@if /,/^@endif /d
7319/^@unless /d
7320/^@endunless /d"
671aa708
NN
7321
7322# Create the serialization dependencies. This uses a temporary file.
7323
5213506e
RW
7324# Check whether --enable-serial-configure was given.
7325if test "${enable_serial_configure+set}" = set; then :
7326 enableval=$enable_serial_configure;
7327fi
ade82b16
AO
7328
7329
bf1d3e81
NN
7330case ${enable_serial_configure} in
7331 yes)
7332 enable_serial_build_configure=yes
7333 enable_serial_host_configure=yes
7334 enable_serial_target_configure=yes
7335 ;;
7336esac
7337
671aa708
NN
7338# These force 'configure's to be done one at a time, to avoid problems
7339# with contention over a shared config.cache.
7340rm -f serdep.tmp
ade82b16 7341echo '# serdep.tmp' > serdep.tmp
671aa708 7342olditem=
bf1d3e81 7343test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7344for item in ${build_configdirs} ; do
7345 case ${olditem} in
7346 "") ;;
ade82b16 7347 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7348 esac
7349 olditem=${item}
7350done
7351olditem=
bf1d3e81 7352test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7353for item in ${configdirs} ; do
7354 case ${olditem} in
7355 "") ;;
ade82b16 7356 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7357 esac
7358 olditem=${item}
7359done
7360olditem=
bf1d3e81 7361test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7362for item in ${target_configdirs} ; do
7363 case ${olditem} in
7364 "") ;;
ade82b16 7365 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7366 esac
7367 olditem=${item}
7368done
7369serialization_dependencies=serdep.tmp
7370
7371
ade82b16 7372# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7373# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7374# might not want to pass down to subconfigures. The exception being
7375# --cache-file=/dev/null, which is used to turn off the use of cache
7376# files altogether, and which should be passed on to subconfigures.
7377# Also strip program-prefix, program-suffix, and program-transform-name,
7378# so that we can pass down a consistent program-transform-name.
1c710c3c 7379baseargs=
29a63921 7380tbaseargs=
1c710c3c
DJ
7381keep_next=no
7382skip_next=no
7383eval "set -- $ac_configure_args"
44bfc3ac
DJ
7384for ac_arg
7385do
1c710c3c
DJ
7386 if test X"$skip_next" = X"yes"; then
7387 skip_next=no
7388 continue
7389 fi
7390 if test X"$keep_next" = X"yes"; then
7391 case $ac_arg in
7392 *\'*)
7393 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7394 esac
7395 baseargs="$baseargs '$ac_arg'"
29a63921 7396 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7397 keep_next=no
7398 continue
7399 fi
7400
7401 # Handle separated arguments. Based on the logic generated by
7402 # autoconf 2.59.
7403 case $ac_arg in
7404 *=* | --config-cache | -C | -disable-* | --disable-* \
7405 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7406 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7407 | -with-* | --with-* | -without-* | --without-* | --x)
7408 separate_arg=no
7409 ;;
7410 -*)
7411 separate_arg=yes
7412 ;;
7413 *)
7414 separate_arg=no
7415 ;;
7416 esac
7417
29a63921
AO
7418 skip_targ=no
7419 case $ac_arg in
7420
7421 --with-* | --without-*)
7422 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7423
7424 case $libopt in
7425 *[-_]include)
7426 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7427 ;;
7428 *[-_]lib)
7429 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7430 ;;
7431 *)
7432 lib=$libopt
7433 ;;
7434 esac
7435
7436
7437 case $lib in
4a9bb2aa 7438 mpc | mpfr | gmp | isl)
29a63921
AO
7439 # If we're processing --with-$lib, --with-$lib-include or
7440 # --with-$lib-lib, for one of the libs above, and target is
7441 # different from host, don't pass the current argument to any
7442 # target library's configure.
7443 if test x$is_cross_compiler = xyes; then
7444 skip_targ=yes
7445 fi
7446 ;;
7447 esac
7448 ;;
7449 esac
7450
1c710c3c 7451 case "$ac_arg" in
f1a036e4
NC
7452 --cache-file=/dev/null | \
7453 -cache-file=/dev/null )
7454 # Handled here to avoid the test to skip args below.
7455 baseargs="$baseargs '$ac_arg'"
29a63921 7456 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7457 # Assert: $separate_arg should always be no.
7458 keep_next=$separate_arg
7459 ;;
1c710c3c
DJ
7460 --no*)
7461 continue
7462 ;;
7463 --c* | \
7464 --sr* | \
7465 --ho* | \
7466 --bu* | \
7467 --t* | \
7468 --program-* | \
7469 -cache_file* | \
7470 -srcdir* | \
7471 -host* | \
7472 -build* | \
7473 -target* | \
7474 -program-prefix* | \
7475 -program-suffix* | \
7476 -program-transform-name* )
7477 skip_next=$separate_arg
7478 continue
7479 ;;
7480 -*)
7481 # An option. Add it.
7482 case $ac_arg in
7483 *\'*)
7484 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7485 esac
7486 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7487 if test X"$skip_targ" = Xno; then
7488 tbaseargs="$tbaseargs '$ac_arg'"
7489 fi
1c710c3c
DJ
7490 keep_next=$separate_arg
7491 ;;
7492 *)
7493 # Either a variable assignment, or a nonopt (triplet). Don't
7494 # pass it down; let the Makefile handle this.
7495 continue
7496 ;;
7497 esac
7498done
7499# Remove the initial space we just introduced and, as these will be
7500# expanded by make, quote '$'.
7501baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7502
43bb47c2
DJ
7503# Add in --program-transform-name, after --program-prefix and
7504# --program-suffix have been applied to it. Autoconf has already
7505# doubled dollar signs and backslashes in program_transform_name; we want
7506# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7507# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7508# Also, because we want to override the logic in subdir configure scripts to
7509# choose program_transform_name, replace any s,x,x, with s,y,y,.
7510sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7511${program_transform_name}
7512EOF_SED
7513gcc_transform_name=`cat conftestsed.out`
7514rm -f conftestsed.out
7515baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7516tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7517if test "$silent" = yes; then
7518 baseargs="$baseargs --silent"
29a63921 7519 tbaseargs="$tbaseargs --silent"
d9acb717 7520fi
0115d4a3 7521baseargs="$baseargs --disable-option-checking"
29a63921 7522tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7523
ffedf511
RW
7524# Record and document user additions to sub configure arguments.
7525
7526
7527
7528
671aa708
NN
7529# For the build-side libraries, we just need to pretend we're native,
7530# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
7531# desired. We can't even use the same cache file for all build-side
7532# libraries, as they're compiled differently; some with C, some with
7533# C++ or with different feature-enabling options.
7534build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
7535
7536# For host modules, accept cache file option, or specification as blank.
7537case "${cache_file}" in
7538"") # empty
7539 cache_file_option="" ;;
7540/* | [A-Za-z]:[\\/]* ) # absolute path
7541 cache_file_option="--cache-file=${cache_file}" ;;
7542*) # relative path
7543 cache_file_option="--cache-file=../${cache_file}" ;;
7544esac
7545
09438bde
NN
7546# Host dirs don't like to share a cache file either, horribly enough.
7547# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7548host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7549
29a63921 7550target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7551
7552# Passing a --with-cross-host argument lets the target libraries know
7553# whether they are being built with a cross-compiler or being built
7554# native. However, it would be better to use other mechanisms to make the
7555# sorts of decisions they want to make on this basis. Please consider
7556# this option to be deprecated. FIXME.
7557if test x${is_cross_compiler} = xyes ; then
1c710c3c 7558 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7559fi
7560
79e0604d
FXC
7561# Special user-friendly check for native x86_64-linux build, if
7562# multilib is not explicitly enabled.
7563case "$target:$have_compiler:$host:$target:$enable_multilib" in
7564 x86_64-*linux*:yes:$build:$build:)
e640447c 7565 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
7566 dev64=no
7567 echo "int main () { return 0; }" > conftest.c
7568 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7569 if test $? = 0 ; then
7570 if test -s conftest || test -s conftest.exe ; then
7571 dev64=yes
7572 fi
7573 fi
7574 rm -f conftest*
7575 if test x${dev64} != xyes ; then
22e05272 7576 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
7577 fi
7578 ;;
7579esac
7580
dc683a3f
RW
7581# Default to --enable-multilib.
7582if test x${enable_multilib} = x ; then
671aa708 7583 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7584fi
671aa708
NN
7585
7586# Pass --with-newlib if appropriate. Note that target_configdirs has
7587# changed from the earlier setting of with_newlib.
7588if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7589 target_configargs="--with-newlib ${target_configargs}"
7590fi
7591
6b9eb62c
NN
7592# Different target subdirs use different values of certain variables
7593# (notably CXX). Worse, multilibs use *lots* of different values.
7594# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7595# it doesn't automatically accept command-line overrides of them.
7596# This means it's not safe for target subdirs to share a cache file,
7597# which is disgusting, but there you have it. Hopefully this can be
7598# fixed in future. It's still worthwhile to use a cache file for each
7599# directory. I think.
7600
bebcd931
MS
7601# Pass the appropriate --build, --host, --target and --cache-file arguments.
7602# We need to pass --target, as newer autoconf's requires consistency
7603# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7604target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7605
671aa708
NN
7606FLAGS_FOR_TARGET=
7607case " $target_configdirs " in
7608 *" newlib "*)
7609 case " $target_configargs " in
7610 *" --with-newlib "*)
7611 case "$target" in
5d571eaa 7612 *-cygwin*)
443e6238 7613 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7614 ;;
671aa708
NN
7615 esac
7616
7617 # If we're not building GCC, don't discard standard headers.
7618 if test -d ${srcdir}/gcc; then
7619 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7620
7621 if test "${build}" != "${host}"; then
7622 # On Canadian crosses, CC_FOR_TARGET will have already been set
7623 # by `configure', so we won't have an opportunity to add -Bgcc/
7624 # to it. This is right: we don't want to search that directory
7625 # for binaries, but we want the header files in there, so add
7626 # them explicitly.
0463992b 7627 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7628
7629 # Someone might think of using the pre-installed headers on
7630 # Canadian crosses, in case the installed compiler is not fully
7631 # compatible with the compiler being built. In this case, it
7632 # would be better to flag an error than risking having
7633 # incompatible object files being constructed. We can't
7634 # guarantee that an error will be flagged, but let's hope the
7635 # compiler will do it, when presented with incompatible header
7636 # files.
7637 fi
7638 fi
7639
7640 case "${target}-${is_cross_compiler}" in
f2a0e225 7641 i[3456789]86-*-linux*-no)
671aa708
NN
7642 # Here host == target, so we don't need to build gcc,
7643 # so we don't want to discard standard headers.
7644 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7645 ;;
7646 *)
7647 # If we're building newlib, use its generic headers last, but search
7648 # for any libc-related directories first (so make it the last -B
7649 # switch).
7650 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
7651
7652 # If we're building libgloss, find the startup file, simulator library
7653 # and linker script.
7654 case " $target_configdirs " in
7655 *" libgloss "*)
7656 # Look for startup file, simulator library and maybe linker script.
7657 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7658 # Look for libnosys.a in case the target needs it.
7659 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7660 # Most targets have the linker script in the source directory.
7661 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7662 ;;
7663 esac
671aa708
NN
7664 ;;
7665 esac
7666 ;;
7667 esac
7668 ;;
7669esac
5d571eaa 7670
b91f0a41 7671case "$target" in
5d571eaa
OS
7672 x86_64-*mingw* | *-w64-mingw*)
7673 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7674 # however, use a symlink named 'mingw' in ${prefix} .
7675 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7676 ;;
7677 *-mingw*)
7678 # MinGW can't be handled as Cygwin above since it does not use newlib.
7679 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'
7680 ;;
b91f0a41 7681esac
671aa708 7682
6691a79e
ME
7683# Allow the user to override the flags for
7684# our build compiler if desired.
f019adc1
MF
7685if test x"${build}" = x"${host}" ; then
7686 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7687 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7688 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7689fi
6691a79e 7690
671aa708
NN
7691# On Canadian crosses, we'll be searching the right directories for
7692# the previously-installed cross compiler, so don't bother to add
7693# flags for directories within the install tree of the compiler
7694# being built; programs in there won't even run.
7695if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7696 # Search for pre-installed headers if nothing else fits.
9124bc53 7697 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
7698fi
7699
7700if test "x${use_gnu_ld}" = x &&
7701 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7702 # Arrange for us to find uninstalled linker scripts.
215c351a 7703 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7704fi
7705
e88a2c09
DD
7706# Search for other target-specific linker scripts and such.
7707case "${target}" in
3e19841a
PB
7708 mep*)
7709 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7710 ;;
e88a2c09
DD
7711esac
7712
671aa708 7713# Makefile fragments.
7b61653a
PE
7714for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7715do
7716 eval fragval=\$$frag
7717 if test $fragval != /dev/null; then
7718 eval $frag=${srcdir}/$fragval
7719 fi
7720done
671aa708
NN
7721
7722
7723
7724
7725
7726# Miscellanea: directories, flags, etc.
7727
7728
7729
7730
7731
7732
7733
d89f0ad6 7734
23f6b2f9 7735# Build module lists & subconfigure args.
671aa708
NN
7736
7737
7738
2abefe3d
PB
7739# Host module lists & subconfigure args.
7740
7741
7742
aae29963 7743
2abefe3d
PB
7744# Target module lists & subconfigure args.
7745
7746
7747
7748# Build tools.
7749
7750
7751
0999159b
PB
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
b4c522fa 7765
2abefe3d
PB
7766# Generate default definitions for YACC, M4, LEX and other programs that run
7767# on the build machine. These are used if the Makefile can't locate these
7768# programs in objdir.
7769MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7770
7771for ac_prog in 'bison -y' byacc yacc
7772do
1c710c3c 7773 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7774set dummy $ac_prog; ac_word=$2
5213506e
RW
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7777if ${ac_cv_prog_YACC+:} false; then :
5213506e 7778 $as_echo_n "(cached) " >&6
2abefe3d
PB
7779else
7780 if test -n "$YACC"; then
7781 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7782else
1c710c3c
DJ
7783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784for as_dir in $PATH
7785do
7786 IFS=$as_save_IFS
7787 test -z "$as_dir" && as_dir=.
5213506e 7788 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7790 ac_cv_prog_YACC="$ac_prog"
5213506e 7791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7792 break 2
7793 fi
7794done
5213506e
RW
7795 done
7796IFS=$as_save_IFS
1c710c3c 7797
2abefe3d
PB
7798fi
7799fi
1c710c3c 7800YACC=$ac_cv_prog_YACC
2abefe3d 7801if test -n "$YACC"; then
5213506e
RW
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7803$as_echo "$YACC" >&6; }
2abefe3d 7804else
5213506e
RW
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806$as_echo "no" >&6; }
2abefe3d
PB
7807fi
7808
5213506e 7809
1c710c3c 7810 test -n "$YACC" && break
2abefe3d
PB
7811done
7812test -n "$YACC" || YACC="$MISSING bison -y"
7813
7814case " $build_configdirs " in
7815 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7816esac
7817
7818for ac_prog in bison
7819do
1c710c3c 7820 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7821set dummy $ac_prog; ac_word=$2
5213506e
RW
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7824if ${ac_cv_prog_BISON+:} false; then :
5213506e 7825 $as_echo_n "(cached) " >&6
2abefe3d
PB
7826else
7827 if test -n "$BISON"; then
7828 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7829else
1c710c3c
DJ
7830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831for as_dir in $PATH
7832do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
5213506e 7835 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7837 ac_cv_prog_BISON="$ac_prog"
5213506e 7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7839 break 2
7840 fi
7841done
5213506e
RW
7842 done
7843IFS=$as_save_IFS
1c710c3c 7844
2abefe3d
PB
7845fi
7846fi
1c710c3c 7847BISON=$ac_cv_prog_BISON
2abefe3d 7848if test -n "$BISON"; then
5213506e
RW
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7850$as_echo "$BISON" >&6; }
2abefe3d 7851else
5213506e
RW
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853$as_echo "no" >&6; }
2abefe3d
PB
7854fi
7855
5213506e 7856
1c710c3c 7857 test -n "$BISON" && break
2abefe3d
PB
7858done
7859test -n "$BISON" || BISON="$MISSING bison"
7860
7861case " $build_configdirs " in
7862 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7863esac
7864
7865for ac_prog in gm4 gnum4 m4
7866do
1c710c3c 7867 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7868set dummy $ac_prog; ac_word=$2
5213506e
RW
7869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7871if ${ac_cv_prog_M4+:} false; then :
5213506e 7872 $as_echo_n "(cached) " >&6
2abefe3d
PB
7873else
7874 if test -n "$M4"; then
7875 ac_cv_prog_M4="$M4" # Let the user override the test.
7876else
1c710c3c
DJ
7877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878for as_dir in $PATH
7879do
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
5213506e 7882 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7884 ac_cv_prog_M4="$ac_prog"
5213506e 7885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7886 break 2
7887 fi
7888done
5213506e
RW
7889 done
7890IFS=$as_save_IFS
1c710c3c 7891
2abefe3d
PB
7892fi
7893fi
1c710c3c 7894M4=$ac_cv_prog_M4
2abefe3d 7895if test -n "$M4"; then
5213506e
RW
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7897$as_echo "$M4" >&6; }
2abefe3d 7898else
5213506e
RW
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900$as_echo "no" >&6; }
2abefe3d
PB
7901fi
7902
5213506e 7903
1c710c3c 7904 test -n "$M4" && break
2abefe3d
PB
7905done
7906test -n "$M4" || M4="$MISSING m4"
7907
7908case " $build_configdirs " in
7909 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7910esac
7911
7912for ac_prog in flex lex
7913do
1c710c3c 7914 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7915set dummy $ac_prog; ac_word=$2
5213506e
RW
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7918if ${ac_cv_prog_LEX+:} false; then :
5213506e 7919 $as_echo_n "(cached) " >&6
2abefe3d
PB
7920else
7921 if test -n "$LEX"; then
7922 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7923else
1c710c3c
DJ
7924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925for as_dir in $PATH
7926do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
5213506e 7929 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7931 ac_cv_prog_LEX="$ac_prog"
5213506e 7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7933 break 2
7934 fi
7935done
5213506e
RW
7936 done
7937IFS=$as_save_IFS
1c710c3c 7938
2abefe3d
PB
7939fi
7940fi
1c710c3c 7941LEX=$ac_cv_prog_LEX
2abefe3d 7942if test -n "$LEX"; then
5213506e
RW
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7944$as_echo "$LEX" >&6; }
2abefe3d 7945else
5213506e
RW
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947$as_echo "no" >&6; }
2abefe3d
PB
7948fi
7949
5213506e 7950
1c710c3c 7951 test -n "$LEX" && break
2abefe3d
PB
7952done
7953test -n "$LEX" || LEX="$MISSING flex"
7954
7955case " $build_configdirs " in
7956 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7957 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7958esac
7959
7960for ac_prog in flex
7961do
1c710c3c 7962 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7963set dummy $ac_prog; ac_word=$2
5213506e
RW
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7966if ${ac_cv_prog_FLEX+:} false; then :
5213506e 7967 $as_echo_n "(cached) " >&6
2abefe3d
PB
7968else
7969 if test -n "$FLEX"; then
7970 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7971else
1c710c3c
DJ
7972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973for as_dir in $PATH
7974do
7975 IFS=$as_save_IFS
7976 test -z "$as_dir" && as_dir=.
5213506e 7977 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7979 ac_cv_prog_FLEX="$ac_prog"
5213506e 7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7981 break 2
7982 fi
7983done
5213506e
RW
7984 done
7985IFS=$as_save_IFS
1c710c3c 7986
2abefe3d
PB
7987fi
7988fi
1c710c3c 7989FLEX=$ac_cv_prog_FLEX
2abefe3d 7990if test -n "$FLEX"; then
5213506e
RW
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7992$as_echo "$FLEX" >&6; }
2abefe3d 7993else
5213506e
RW
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995$as_echo "no" >&6; }
2abefe3d
PB
7996fi
7997
5213506e 7998
1c710c3c 7999 test -n "$FLEX" && break
2abefe3d
PB
8000done
8001test -n "$FLEX" || FLEX="$MISSING flex"
8002
8003case " $build_configdirs " in
8004 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8005esac
8006
8007for ac_prog in makeinfo
8008do
1c710c3c 8009 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8010set dummy $ac_prog; ac_word=$2
5213506e
RW
8011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8013if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 8014 $as_echo_n "(cached) " >&6
2abefe3d
PB
8015else
8016 if test -n "$MAKEINFO"; then
8017 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8018else
1c710c3c
DJ
8019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020for as_dir in $PATH
8021do
8022 IFS=$as_save_IFS
8023 test -z "$as_dir" && as_dir=.
5213506e 8024 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8026 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8028 break 2
8029 fi
8030done
5213506e
RW
8031 done
8032IFS=$as_save_IFS
1c710c3c 8033
2abefe3d
PB
8034fi
8035fi
1c710c3c 8036MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 8037if test -n "$MAKEINFO"; then
5213506e
RW
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8039$as_echo "$MAKEINFO" >&6; }
2abefe3d 8040else
5213506e
RW
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042$as_echo "no" >&6; }
2abefe3d
PB
8043fi
8044
5213506e 8045
1c710c3c 8046 test -n "$MAKEINFO" && break
2abefe3d
PB
8047done
8048test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8049
8050case " $build_configdirs " in
8051 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8052 *)
8053
d18ff35a 8054 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
8055 # higher, else we use the "missing" dummy.
8056 if ${MAKEINFO} --version \
d18ff35a 8057 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
8058 :
8059 else
8060 MAKEINFO="$MISSING makeinfo"
8061 fi
8062 ;;
8063
8064esac
671aa708 8065
2abefe3d 8066# FIXME: expect and dejagnu may become build tools?
671aa708 8067
2abefe3d
PB
8068for ac_prog in expect
8069do
1c710c3c 8070 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8071set dummy $ac_prog; ac_word=$2
5213506e
RW
8072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8074if ${ac_cv_prog_EXPECT+:} false; then :
5213506e 8075 $as_echo_n "(cached) " >&6
2abefe3d
PB
8076else
8077 if test -n "$EXPECT"; then
8078 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8079else
1c710c3c
DJ
8080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081for as_dir in $PATH
8082do
8083 IFS=$as_save_IFS
8084 test -z "$as_dir" && as_dir=.
5213506e 8085 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8087 ac_cv_prog_EXPECT="$ac_prog"
5213506e 8088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8089 break 2
8090 fi
8091done
5213506e
RW
8092 done
8093IFS=$as_save_IFS
1c710c3c 8094
2abefe3d
PB
8095fi
8096fi
1c710c3c 8097EXPECT=$ac_cv_prog_EXPECT
2abefe3d 8098if test -n "$EXPECT"; then
5213506e
RW
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8100$as_echo "$EXPECT" >&6; }
2abefe3d 8101else
5213506e
RW
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103$as_echo "no" >&6; }
2abefe3d 8104fi
671aa708 8105
5213506e 8106
1c710c3c 8107 test -n "$EXPECT" && break
2abefe3d
PB
8108done
8109test -n "$EXPECT" || EXPECT="expect"
671aa708 8110
2abefe3d
PB
8111case " $configdirs " in
8112 *" expect "*)
8113 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8114 ;;
8115esac
671aa708 8116
2abefe3d
PB
8117for ac_prog in runtest
8118do
1c710c3c 8119 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8120set dummy $ac_prog; ac_word=$2
5213506e
RW
8121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8123if ${ac_cv_prog_RUNTEST+:} false; then :
5213506e 8124 $as_echo_n "(cached) " >&6
2abefe3d
PB
8125else
8126 if test -n "$RUNTEST"; then
8127 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 8128else
1c710c3c
DJ
8129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130for as_dir in $PATH
8131do
8132 IFS=$as_save_IFS
8133 test -z "$as_dir" && as_dir=.
5213506e 8134 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8136 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 8137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8138 break 2
8139 fi
8140done
5213506e
RW
8141 done
8142IFS=$as_save_IFS
1c710c3c 8143
2abefe3d
PB
8144fi
8145fi
1c710c3c 8146RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8147if test -n "$RUNTEST"; then
5213506e
RW
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8149$as_echo "$RUNTEST" >&6; }
2abefe3d 8150else
5213506e
RW
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152$as_echo "no" >&6; }
2abefe3d 8153fi
671aa708 8154
5213506e 8155
1c710c3c 8156 test -n "$RUNTEST" && break
2abefe3d
PB
8157done
8158test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8159
2abefe3d
PB
8160case " $configdirs " in
8161 *" dejagnu "*)
c394e891 8162 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8163 ;;
8164esac
671aa708
NN
8165
8166
671aa708 8167# Host tools.
ca9f4b81
AO
8168ncn_tool_prefix=
8169test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8170ncn_target_tool_prefix=
8171test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8172
278a7a38
AO
8173
8174
8175if test -n "$AR"; then
8176 ac_cv_prog_AR=$AR
8177elif test -n "$ac_cv_prog_AR"; then
8178 AR=$ac_cv_prog_AR
8179fi
8180
8181if test -n "$ac_cv_prog_AR"; then
8182 for ncn_progname in ar; do
8183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8184set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8187if ${ac_cv_prog_AR+:} false; then :
5213506e 8188 $as_echo_n "(cached) " >&6
278a7a38
AO
8189else
8190 if test -n "$AR"; then
8191 ac_cv_prog_AR="$AR" # Let the user override the test.
8192else
8193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194for as_dir in $PATH
8195do
8196 IFS=$as_save_IFS
8197 test -z "$as_dir" && as_dir=.
5213506e 8198 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8200 ac_cv_prog_AR="${ncn_progname}"
5213506e 8201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8202 break 2
8203 fi
8204done
5213506e
RW
8205 done
8206IFS=$as_save_IFS
278a7a38
AO
8207
8208fi
8209fi
8210AR=$ac_cv_prog_AR
8211if test -n "$AR"; then
5213506e
RW
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8213$as_echo "$AR" >&6; }
278a7a38 8214else
5213506e
RW
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216$as_echo "no" >&6; }
278a7a38
AO
8217fi
8218
5213506e 8219
278a7a38
AO
8220 done
8221fi
8222
8223for ncn_progname in ar; do
2693c0b0
PB
8224 if test -n "$ncn_tool_prefix"; then
8225 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8226set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8229if ${ac_cv_prog_AR+:} false; then :
5213506e 8230 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8231else
8232 if test -n "$AR"; then
8233 ac_cv_prog_AR="$AR" # Let the user override the test.
8234else
1c710c3c
DJ
8235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236for as_dir in $PATH
8237do
8238 IFS=$as_save_IFS
8239 test -z "$as_dir" && as_dir=.
5213506e 8240 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8242 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8244 break 2
8245 fi
8246done
5213506e
RW
8247 done
8248IFS=$as_save_IFS
1c710c3c 8249
ca9f4b81
AO
8250fi
8251fi
1c710c3c 8252AR=$ac_cv_prog_AR
ca9f4b81 8253if test -n "$AR"; then
5213506e
RW
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8255$as_echo "$AR" >&6; }
ca9f4b81 8256else
5213506e
RW
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258$as_echo "no" >&6; }
ca9f4b81
AO
8259fi
8260
5213506e 8261
2693c0b0
PB
8262 fi
8263 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8265set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8268if ${ac_cv_prog_AR+:} false; then :
5213506e 8269 $as_echo_n "(cached) " >&6
ca9f4b81 8270else
2693c0b0 8271 if test -n "$AR"; then
af71363e
AS
8272 ac_cv_prog_AR="$AR" # Let the user override the test.
8273else
1c710c3c
DJ
8274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275for as_dir in $PATH
8276do
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
5213506e 8279 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8281 ac_cv_prog_AR="${ncn_progname}"
5213506e 8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8283 break 2
8284 fi
8285done
5213506e
RW
8286 done
8287IFS=$as_save_IFS
1c710c3c 8288
ca9f4b81
AO
8289fi
8290fi
1c710c3c 8291AR=$ac_cv_prog_AR
2693c0b0 8292if test -n "$AR"; then
5213506e
RW
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8294$as_echo "$AR" >&6; }
ca9f4b81 8295else
5213506e
RW
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297$as_echo "no" >&6; }
ca9f4b81 8298fi
1c710c3c 8299
5213506e 8300
2693c0b0
PB
8301 fi
8302 test -n "$ac_cv_prog_AR" && break
8303done
8304
8305if test -z "$ac_cv_prog_AR" ; then
8306 set dummy ar
8307 if test $build = $host ; then
8308 AR="$2"
ca9f4b81 8309 else
2693c0b0 8310 AR="${ncn_tool_prefix}$2"
ca9f4b81 8311 fi
ca9f4b81
AO
8312fi
8313
278a7a38
AO
8314
8315
8316if test -n "$AS"; then
8317 ac_cv_prog_AS=$AS
8318elif test -n "$ac_cv_prog_AS"; then
8319 AS=$ac_cv_prog_AS
8320fi
8321
8322if test -n "$ac_cv_prog_AS"; then
8323 for ncn_progname in as; do
8324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8325set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8328if ${ac_cv_prog_AS+:} false; then :
5213506e 8329 $as_echo_n "(cached) " >&6
278a7a38
AO
8330else
8331 if test -n "$AS"; then
8332 ac_cv_prog_AS="$AS" # Let the user override the test.
8333else
8334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8335for as_dir in $PATH
8336do
8337 IFS=$as_save_IFS
8338 test -z "$as_dir" && as_dir=.
5213506e 8339 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8341 ac_cv_prog_AS="${ncn_progname}"
5213506e 8342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8343 break 2
8344 fi
8345done
5213506e
RW
8346 done
8347IFS=$as_save_IFS
278a7a38
AO
8348
8349fi
8350fi
8351AS=$ac_cv_prog_AS
8352if test -n "$AS"; then
5213506e
RW
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8354$as_echo "$AS" >&6; }
278a7a38 8355else
5213506e
RW
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357$as_echo "no" >&6; }
278a7a38
AO
8358fi
8359
5213506e 8360
278a7a38
AO
8361 done
8362fi
8363
8364for ncn_progname in as; do
2693c0b0
PB
8365 if test -n "$ncn_tool_prefix"; then
8366 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8367set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8370if ${ac_cv_prog_AS+:} false; then :
5213506e 8371 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8372else
8373 if test -n "$AS"; then
8374 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8375else
1c710c3c
DJ
8376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377for as_dir in $PATH
8378do
8379 IFS=$as_save_IFS
8380 test -z "$as_dir" && as_dir=.
5213506e 8381 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8383 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8385 break 2
8386 fi
8387done
5213506e
RW
8388 done
8389IFS=$as_save_IFS
1c710c3c 8390
ca9f4b81
AO
8391fi
8392fi
1c710c3c 8393AS=$ac_cv_prog_AS
ca9f4b81 8394if test -n "$AS"; then
5213506e
RW
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8396$as_echo "$AS" >&6; }
ca9f4b81 8397else
5213506e
RW
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399$as_echo "no" >&6; }
ca9f4b81
AO
8400fi
8401
5213506e 8402
2693c0b0
PB
8403 fi
8404 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8406set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8409if ${ac_cv_prog_AS+:} false; then :
5213506e 8410 $as_echo_n "(cached) " >&6
ca9f4b81 8411else
2693c0b0
PB
8412 if test -n "$AS"; then
8413 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8414else
1c710c3c
DJ
8415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416for as_dir in $PATH
8417do
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
5213506e 8420 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8422 ac_cv_prog_AS="${ncn_progname}"
5213506e 8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8424 break 2
8425 fi
8426done
5213506e
RW
8427 done
8428IFS=$as_save_IFS
1c710c3c 8429
ca9f4b81
AO
8430fi
8431fi
1c710c3c 8432AS=$ac_cv_prog_AS
2693c0b0 8433if test -n "$AS"; then
5213506e
RW
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8435$as_echo "$AS" >&6; }
ca9f4b81 8436else
5213506e
RW
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438$as_echo "no" >&6; }
ca9f4b81 8439fi
1c710c3c 8440
5213506e 8441
2693c0b0
PB
8442 fi
8443 test -n "$ac_cv_prog_AS" && break
8444done
8445
8446if test -z "$ac_cv_prog_AS" ; then
8447 set dummy as
8448 if test $build = $host ; then
8449 AS="$2"
ca9f4b81 8450 else
2693c0b0 8451 AS="${ncn_tool_prefix}$2"
ca9f4b81 8452 fi
ca9f4b81
AO
8453fi
8454
278a7a38
AO
8455
8456
8457if test -n "$DLLTOOL"; then
8458 ac_cv_prog_DLLTOOL=$DLLTOOL
8459elif test -n "$ac_cv_prog_DLLTOOL"; then
8460 DLLTOOL=$ac_cv_prog_DLLTOOL
8461fi
8462
8463if test -n "$ac_cv_prog_DLLTOOL"; then
8464 for ncn_progname in dlltool; do
8465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8466set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8469if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 8470 $as_echo_n "(cached) " >&6
278a7a38
AO
8471else
8472 if test -n "$DLLTOOL"; then
8473 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8474else
8475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476for as_dir in $PATH
8477do
8478 IFS=$as_save_IFS
8479 test -z "$as_dir" && as_dir=.
5213506e 8480 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8482 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8484 break 2
8485 fi
8486done
5213506e
RW
8487 done
8488IFS=$as_save_IFS
278a7a38
AO
8489
8490fi
8491fi
8492DLLTOOL=$ac_cv_prog_DLLTOOL
8493if test -n "$DLLTOOL"; then
5213506e
RW
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8495$as_echo "$DLLTOOL" >&6; }
278a7a38 8496else
5213506e
RW
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498$as_echo "no" >&6; }
278a7a38
AO
8499fi
8500
5213506e 8501
278a7a38
AO
8502 done
8503fi
8504
8505for ncn_progname in dlltool; do
2693c0b0
PB
8506 if test -n "$ncn_tool_prefix"; then
8507 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8508set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8511if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 8512 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8513else
8514 if test -n "$DLLTOOL"; then
8515 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8516else
1c710c3c
DJ
8517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518for as_dir in $PATH
8519do
8520 IFS=$as_save_IFS
8521 test -z "$as_dir" && as_dir=.
5213506e 8522 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8524 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8526 break 2
8527 fi
8528done
5213506e
RW
8529 done
8530IFS=$as_save_IFS
1c710c3c 8531
ca9f4b81
AO
8532fi
8533fi
1c710c3c 8534DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8535if test -n "$DLLTOOL"; then
5213506e
RW
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8537$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8538else
5213506e
RW
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540$as_echo "no" >&6; }
ca9f4b81
AO
8541fi
8542
5213506e 8543
2693c0b0
PB
8544 fi
8545 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8547set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8550if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 8551 $as_echo_n "(cached) " >&6
ca9f4b81 8552else
2693c0b0
PB
8553 if test -n "$DLLTOOL"; then
8554 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8555else
1c710c3c
DJ
8556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557for as_dir in $PATH
8558do
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
5213506e 8561 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8563 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8565 break 2
8566 fi
8567done
5213506e
RW
8568 done
8569IFS=$as_save_IFS
1c710c3c 8570
ca9f4b81
AO
8571fi
8572fi
1c710c3c 8573DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8574if test -n "$DLLTOOL"; then
5213506e
RW
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8576$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8577else
5213506e
RW
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579$as_echo "no" >&6; }
ca9f4b81 8580fi
1c710c3c 8581
5213506e 8582
2693c0b0
PB
8583 fi
8584 test -n "$ac_cv_prog_DLLTOOL" && break
8585done
8586
8587if test -z "$ac_cv_prog_DLLTOOL" ; then
8588 set dummy dlltool
8589 if test $build = $host ; then
8590 DLLTOOL="$2"
ca9f4b81 8591 else
2693c0b0 8592 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8593 fi
ca9f4b81
AO
8594fi
8595
278a7a38
AO
8596
8597
8598if test -n "$LD"; then
8599 ac_cv_prog_LD=$LD
8600elif test -n "$ac_cv_prog_LD"; then
8601 LD=$ac_cv_prog_LD
8602fi
8603
8604if test -n "$ac_cv_prog_LD"; then
8605 for ncn_progname in ld; do
8606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8607set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8610if ${ac_cv_prog_LD+:} false; then :
5213506e 8611 $as_echo_n "(cached) " >&6
278a7a38
AO
8612else
8613 if test -n "$LD"; then
8614 ac_cv_prog_LD="$LD" # Let the user override the test.
8615else
8616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617for as_dir in $PATH
8618do
8619 IFS=$as_save_IFS
8620 test -z "$as_dir" && as_dir=.
5213506e 8621 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8623 ac_cv_prog_LD="${ncn_progname}"
5213506e 8624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8625 break 2
8626 fi
8627done
5213506e
RW
8628 done
8629IFS=$as_save_IFS
278a7a38
AO
8630
8631fi
8632fi
8633LD=$ac_cv_prog_LD
8634if test -n "$LD"; then
5213506e
RW
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8636$as_echo "$LD" >&6; }
278a7a38 8637else
5213506e
RW
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639$as_echo "no" >&6; }
278a7a38
AO
8640fi
8641
5213506e 8642
278a7a38
AO
8643 done
8644fi
8645
8646for ncn_progname in ld; do
2693c0b0
PB
8647 if test -n "$ncn_tool_prefix"; then
8648 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8649set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8652if ${ac_cv_prog_LD+:} false; then :
5213506e 8653 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8654else
8655 if test -n "$LD"; then
8656 ac_cv_prog_LD="$LD" # Let the user override the test.
8657else
1c710c3c
DJ
8658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659for as_dir in $PATH
8660do
8661 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
5213506e 8663 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8665 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8667 break 2
8668 fi
8669done
5213506e
RW
8670 done
8671IFS=$as_save_IFS
1c710c3c 8672
ca9f4b81
AO
8673fi
8674fi
1c710c3c 8675LD=$ac_cv_prog_LD
ca9f4b81 8676if test -n "$LD"; then
5213506e
RW
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8678$as_echo "$LD" >&6; }
ca9f4b81 8679else
5213506e
RW
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681$as_echo "no" >&6; }
ca9f4b81
AO
8682fi
8683
5213506e 8684
2693c0b0
PB
8685 fi
8686 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8687 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8688set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8691if ${ac_cv_prog_LD+:} false; then :
5213506e 8692 $as_echo_n "(cached) " >&6
ca9f4b81 8693else
2693c0b0
PB
8694 if test -n "$LD"; then
8695 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8696else
1c710c3c
DJ
8697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698for as_dir in $PATH
8699do
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
5213506e 8702 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8704 ac_cv_prog_LD="${ncn_progname}"
5213506e 8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8706 break 2
8707 fi
8708done
5213506e
RW
8709 done
8710IFS=$as_save_IFS
1c710c3c 8711
ca9f4b81
AO
8712fi
8713fi
1c710c3c 8714LD=$ac_cv_prog_LD
2693c0b0 8715if test -n "$LD"; then
5213506e
RW
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8717$as_echo "$LD" >&6; }
ca9f4b81 8718else
5213506e
RW
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720$as_echo "no" >&6; }
ca9f4b81 8721fi
1c710c3c 8722
5213506e 8723
2693c0b0
PB
8724 fi
8725 test -n "$ac_cv_prog_LD" && break
8726done
8727
8728if test -z "$ac_cv_prog_LD" ; then
8729 set dummy ld
8730 if test $build = $host ; then
8731 LD="$2"
ca9f4b81 8732 else
2693c0b0 8733 LD="${ncn_tool_prefix}$2"
ca9f4b81 8734 fi
ca9f4b81
AO
8735fi
8736
278a7a38
AO
8737
8738
8739if test -n "$LIPO"; then
8740 ac_cv_prog_LIPO=$LIPO
8741elif test -n "$ac_cv_prog_LIPO"; then
8742 LIPO=$ac_cv_prog_LIPO
8743fi
8744
8745if test -n "$ac_cv_prog_LIPO"; then
8746 for ncn_progname in lipo; do
8747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8748set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8750$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8751if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8752 $as_echo_n "(cached) " >&6
278a7a38
AO
8753else
8754 if test -n "$LIPO"; then
8755 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8756else
8757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758for as_dir in $PATH
8759do
8760 IFS=$as_save_IFS
8761 test -z "$as_dir" && as_dir=.
5213506e 8762 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8764 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8766 break 2
8767 fi
8768done
5213506e
RW
8769 done
8770IFS=$as_save_IFS
278a7a38
AO
8771
8772fi
8773fi
8774LIPO=$ac_cv_prog_LIPO
8775if test -n "$LIPO"; then
5213506e
RW
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8777$as_echo "$LIPO" >&6; }
278a7a38 8778else
5213506e
RW
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8780$as_echo "no" >&6; }
278a7a38
AO
8781fi
8782
5213506e 8783
278a7a38
AO
8784 done
8785fi
8786
8787for ncn_progname in lipo; do
2abefe3d
PB
8788 if test -n "$ncn_tool_prefix"; then
8789 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8790set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8792$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8793if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8794 $as_echo_n "(cached) " >&6
2abefe3d
PB
8795else
8796 if test -n "$LIPO"; then
8797 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8798else
1c710c3c
DJ
8799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800for as_dir in $PATH
8801do
8802 IFS=$as_save_IFS
8803 test -z "$as_dir" && as_dir=.
5213506e 8804 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8806 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8808 break 2
8809 fi
8810done
5213506e
RW
8811 done
8812IFS=$as_save_IFS
1c710c3c 8813
2abefe3d
PB
8814fi
8815fi
1c710c3c 8816LIPO=$ac_cv_prog_LIPO
2abefe3d 8817if test -n "$LIPO"; then
5213506e
RW
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8819$as_echo "$LIPO" >&6; }
2abefe3d 8820else
5213506e
RW
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822$as_echo "no" >&6; }
2abefe3d
PB
8823fi
8824
5213506e 8825
2abefe3d
PB
8826 fi
8827 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8829set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8832if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8833 $as_echo_n "(cached) " >&6
2abefe3d
PB
8834else
8835 if test -n "$LIPO"; then
8836 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8837else
1c710c3c
DJ
8838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839for as_dir in $PATH
8840do
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
5213506e 8843 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8845 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8847 break 2
8848 fi
8849done
5213506e
RW
8850 done
8851IFS=$as_save_IFS
1c710c3c 8852
2abefe3d
PB
8853fi
8854fi
1c710c3c 8855LIPO=$ac_cv_prog_LIPO
2abefe3d 8856if test -n "$LIPO"; then
5213506e
RW
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8858$as_echo "$LIPO" >&6; }
2abefe3d 8859else
5213506e
RW
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861$as_echo "no" >&6; }
2abefe3d 8862fi
1c710c3c 8863
5213506e 8864
2abefe3d
PB
8865 fi
8866 test -n "$ac_cv_prog_LIPO" && break
8867done
8868
8869if test -z "$ac_cv_prog_LIPO" ; then
8870 set dummy lipo
8871 if test $build = $host ; then
8872 LIPO="$2"
8873 else
8874 LIPO="${ncn_tool_prefix}$2"
8875 fi
8876fi
8877
278a7a38
AO
8878
8879
8880if test -n "$NM"; then
8881 ac_cv_prog_NM=$NM
8882elif test -n "$ac_cv_prog_NM"; then
8883 NM=$ac_cv_prog_NM
8884fi
8885
8886if test -n "$ac_cv_prog_NM"; then
8887 for ncn_progname in nm; do
8888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8889set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8891$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8892if ${ac_cv_prog_NM+:} false; then :
5213506e 8893 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8894else
8895 if test -n "$NM"; then
8896 ac_cv_prog_NM="$NM" # Let the user override the test.
8897else
1c710c3c
DJ
8898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899for as_dir in $PATH
8900do
8901 IFS=$as_save_IFS
8902 test -z "$as_dir" && as_dir=.
5213506e 8903 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8905 ac_cv_prog_NM="${ncn_progname}"
5213506e 8906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8907 break 2
8908 fi
8909done
5213506e
RW
8910 done
8911IFS=$as_save_IFS
1c710c3c 8912
ca9f4b81
AO
8913fi
8914fi
1c710c3c 8915NM=$ac_cv_prog_NM
ca9f4b81 8916if test -n "$NM"; then
5213506e
RW
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8918$as_echo "$NM" >&6; }
ca9f4b81 8919else
5213506e
RW
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921$as_echo "no" >&6; }
ca9f4b81
AO
8922fi
8923
5213506e 8924
278a7a38
AO
8925 done
8926fi
8927
8928for ncn_progname in nm; do
8929 if test -n "$ncn_tool_prefix"; then
8930 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8931set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8933$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8934if ${ac_cv_prog_NM+:} false; then :
5213506e 8935 $as_echo_n "(cached) " >&6
ca9f4b81 8936else
2693c0b0
PB
8937 if test -n "$NM"; then
8938 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8939else
1c710c3c
DJ
8940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8941for as_dir in $PATH
8942do
8943 IFS=$as_save_IFS
8944 test -z "$as_dir" && as_dir=.
5213506e 8945 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8947 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8949 break 2
8950 fi
8951done
5213506e
RW
8952 done
8953IFS=$as_save_IFS
1c710c3c 8954
ca9f4b81
AO
8955fi
8956fi
1c710c3c 8957NM=$ac_cv_prog_NM
2693c0b0 8958if test -n "$NM"; then
5213506e
RW
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8960$as_echo "$NM" >&6; }
ca9f4b81 8961else
5213506e
RW
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963$as_echo "no" >&6; }
ca9f4b81 8964fi
1c710c3c 8965
5213506e 8966
2693c0b0 8967 fi
278a7a38
AO
8968 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8970set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8972$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8973if ${ac_cv_prog_NM+:} false; then :
5213506e 8974 $as_echo_n "(cached) " >&6
278a7a38
AO
8975else
8976 if test -n "$NM"; then
8977 ac_cv_prog_NM="$NM" # Let the user override the test.
8978else
8979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980for as_dir in $PATH
8981do
8982 IFS=$as_save_IFS
8983 test -z "$as_dir" && as_dir=.
5213506e 8984 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8986 ac_cv_prog_NM="${ncn_progname}"
5213506e 8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8988 break 2
8989 fi
8990done
5213506e
RW
8991 done
8992IFS=$as_save_IFS
278a7a38
AO
8993
8994fi
8995fi
8996NM=$ac_cv_prog_NM
8997if test -n "$NM"; then
5213506e
RW
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8999$as_echo "$NM" >&6; }
278a7a38 9000else
5213506e
RW
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002$as_echo "no" >&6; }
278a7a38
AO
9003fi
9004
5213506e 9005
278a7a38
AO
9006 fi
9007 test -n "$ac_cv_prog_NM" && break
9008done
9009
9010if test -z "$ac_cv_prog_NM" ; then
9011 set dummy nm
9012 if test $build = $host ; then
9013 NM="$2"
9014 else
9015 NM="${ncn_tool_prefix}$2"
9016 fi
9017fi
9018
9019
9020
9021if test -n "$RANLIB"; then
9022 ac_cv_prog_RANLIB=$RANLIB
9023elif test -n "$ac_cv_prog_RANLIB"; then
9024 RANLIB=$ac_cv_prog_RANLIB
9025fi
9026
9027if test -n "$ac_cv_prog_RANLIB"; then
9028 for ncn_progname in ranlib; do
9029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9030set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9032$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9033if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9034 $as_echo_n "(cached) " >&6
278a7a38
AO
9035else
9036 if test -n "$RANLIB"; then
9037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9038else
9039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9040for as_dir in $PATH
9041do
9042 IFS=$as_save_IFS
9043 test -z "$as_dir" && as_dir=.
5213506e 9044 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9046 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9048 break 2
9049 fi
9050done
5213506e
RW
9051 done
9052IFS=$as_save_IFS
278a7a38
AO
9053
9054fi
9055fi
9056RANLIB=$ac_cv_prog_RANLIB
9057if test -n "$RANLIB"; then
5213506e
RW
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9059$as_echo "$RANLIB" >&6; }
278a7a38 9060else
5213506e
RW
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062$as_echo "no" >&6; }
278a7a38
AO
9063fi
9064
5213506e 9065
278a7a38
AO
9066 done
9067fi
ca9f4b81 9068
278a7a38 9069for ncn_progname in ranlib; do
2693c0b0
PB
9070 if test -n "$ncn_tool_prefix"; then
9071 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9072set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9074$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9075if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9076 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9077else
9078 if test -n "$RANLIB"; then
9079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9080else
1c710c3c
DJ
9081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082for as_dir in $PATH
9083do
9084 IFS=$as_save_IFS
9085 test -z "$as_dir" && as_dir=.
5213506e 9086 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9088 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 9089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9090 break 2
9091 fi
9092done
5213506e
RW
9093 done
9094IFS=$as_save_IFS
1c710c3c 9095
ca9f4b81
AO
9096fi
9097fi
1c710c3c 9098RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 9099if test -n "$RANLIB"; then
5213506e
RW
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9101$as_echo "$RANLIB" >&6; }
ca9f4b81 9102else
5213506e
RW
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104$as_echo "no" >&6; }
ca9f4b81
AO
9105fi
9106
5213506e 9107
2693c0b0
PB
9108 fi
9109 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9110 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9111set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9114if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9115 $as_echo_n "(cached) " >&6
ca9f4b81 9116else
2693c0b0
PB
9117 if test -n "$RANLIB"; then
9118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 9119else
1c710c3c
DJ
9120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121for as_dir in $PATH
9122do
9123 IFS=$as_save_IFS
9124 test -z "$as_dir" && as_dir=.
5213506e 9125 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9127 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9129 break 2
9130 fi
9131done
5213506e
RW
9132 done
9133IFS=$as_save_IFS
1c710c3c 9134
ca9f4b81
AO
9135fi
9136fi
1c710c3c 9137RANLIB=$ac_cv_prog_RANLIB
2693c0b0 9138if test -n "$RANLIB"; then
5213506e
RW
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9140$as_echo "$RANLIB" >&6; }
ca9f4b81 9141else
5213506e
RW
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143$as_echo "no" >&6; }
ca9f4b81 9144fi
1c710c3c 9145
5213506e 9146
ca9f4b81 9147 fi
2693c0b0
PB
9148 test -n "$ac_cv_prog_RANLIB" && break
9149done
9150
9151if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9152 RANLIB="true"
ca9f4b81
AO
9153fi
9154
278a7a38
AO
9155
9156
9157if test -n "$STRIP"; then
9158 ac_cv_prog_STRIP=$STRIP
9159elif test -n "$ac_cv_prog_STRIP"; then
9160 STRIP=$ac_cv_prog_STRIP
9161fi
9162
9163if test -n "$ac_cv_prog_STRIP"; then
9164 for ncn_progname in strip; do
9165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9166set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9168$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9169if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9170 $as_echo_n "(cached) " >&6
278a7a38
AO
9171else
9172 if test -n "$STRIP"; then
9173 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9174else
9175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9176for as_dir in $PATH
9177do
9178 IFS=$as_save_IFS
9179 test -z "$as_dir" && as_dir=.
5213506e 9180 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9182 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9184 break 2
9185 fi
9186done
5213506e
RW
9187 done
9188IFS=$as_save_IFS
278a7a38
AO
9189
9190fi
9191fi
9192STRIP=$ac_cv_prog_STRIP
9193if test -n "$STRIP"; then
5213506e
RW
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9195$as_echo "$STRIP" >&6; }
278a7a38 9196else
5213506e
RW
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9198$as_echo "no" >&6; }
278a7a38
AO
9199fi
9200
5213506e 9201
278a7a38
AO
9202 done
9203fi
9204
9205for ncn_progname in strip; do
2abefe3d
PB
9206 if test -n "$ncn_tool_prefix"; then
9207 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9208set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9210$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9211if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9212 $as_echo_n "(cached) " >&6
2abefe3d
PB
9213else
9214 if test -n "$STRIP"; then
9215 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9216else
1c710c3c
DJ
9217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218for as_dir in $PATH
9219do
9220 IFS=$as_save_IFS
9221 test -z "$as_dir" && as_dir=.
5213506e 9222 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9224 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9226 break 2
9227 fi
9228done
5213506e
RW
9229 done
9230IFS=$as_save_IFS
1c710c3c 9231
2abefe3d
PB
9232fi
9233fi
1c710c3c 9234STRIP=$ac_cv_prog_STRIP
2abefe3d 9235if test -n "$STRIP"; then
5213506e
RW
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9237$as_echo "$STRIP" >&6; }
2abefe3d 9238else
5213506e
RW
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240$as_echo "no" >&6; }
2abefe3d
PB
9241fi
9242
5213506e 9243
2abefe3d
PB
9244 fi
9245 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9247set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9250if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9251 $as_echo_n "(cached) " >&6
2abefe3d
PB
9252else
9253 if test -n "$STRIP"; then
9254 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9255else
1c710c3c
DJ
9256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257for as_dir in $PATH
9258do
9259 IFS=$as_save_IFS
9260 test -z "$as_dir" && as_dir=.
5213506e 9261 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9263 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9265 break 2
9266 fi
9267done
5213506e
RW
9268 done
9269IFS=$as_save_IFS
1c710c3c 9270
2abefe3d
PB
9271fi
9272fi
1c710c3c 9273STRIP=$ac_cv_prog_STRIP
2abefe3d 9274if test -n "$STRIP"; then
5213506e
RW
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9276$as_echo "$STRIP" >&6; }
2abefe3d 9277else
5213506e
RW
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279$as_echo "no" >&6; }
2abefe3d 9280fi
1c710c3c 9281
5213506e 9282
2abefe3d
PB
9283 fi
9284 test -n "$ac_cv_prog_STRIP" && break
9285done
9286
9287if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9288 STRIP="true"
2abefe3d
PB
9289fi
9290
278a7a38
AO
9291
9292
9293if test -n "$WINDRES"; then
9294 ac_cv_prog_WINDRES=$WINDRES
9295elif test -n "$ac_cv_prog_WINDRES"; then
9296 WINDRES=$ac_cv_prog_WINDRES
9297fi
9298
9299if test -n "$ac_cv_prog_WINDRES"; then
9300 for ncn_progname in windres; do
9301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9302set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9304$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9305if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 9306 $as_echo_n "(cached) " >&6
278a7a38
AO
9307else
9308 if test -n "$WINDRES"; then
9309 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9310else
9311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9312for as_dir in $PATH
9313do
9314 IFS=$as_save_IFS
9315 test -z "$as_dir" && as_dir=.
5213506e 9316 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9318 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9320 break 2
9321 fi
9322done
5213506e
RW
9323 done
9324IFS=$as_save_IFS
278a7a38
AO
9325
9326fi
9327fi
9328WINDRES=$ac_cv_prog_WINDRES
9329if test -n "$WINDRES"; then
5213506e
RW
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9331$as_echo "$WINDRES" >&6; }
278a7a38 9332else
5213506e
RW
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9334$as_echo "no" >&6; }
278a7a38
AO
9335fi
9336
5213506e 9337
278a7a38
AO
9338 done
9339fi
9340
9341for ncn_progname in windres; do
2693c0b0
PB
9342 if test -n "$ncn_tool_prefix"; then
9343 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9344set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9346$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9347if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 9348 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9349else
9350 if test -n "$WINDRES"; then
9351 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9352else
1c710c3c
DJ
9353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9354for as_dir in $PATH
9355do
9356 IFS=$as_save_IFS
9357 test -z "$as_dir" && as_dir=.
5213506e 9358 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9360 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9362 break 2
9363 fi
9364done
5213506e
RW
9365 done
9366IFS=$as_save_IFS
1c710c3c 9367
ca9f4b81
AO
9368fi
9369fi
1c710c3c 9370WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9371if test -n "$WINDRES"; then
5213506e
RW
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9373$as_echo "$WINDRES" >&6; }
ca9f4b81 9374else
5213506e
RW
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9376$as_echo "no" >&6; }
ca9f4b81
AO
9377fi
9378
5213506e 9379
2693c0b0
PB
9380 fi
9381 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9383set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9385$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9386if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 9387 $as_echo_n "(cached) " >&6
ca9f4b81 9388else
2693c0b0
PB
9389 if test -n "$WINDRES"; then
9390 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9391else
1c710c3c
DJ
9392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393for as_dir in $PATH
9394do
9395 IFS=$as_save_IFS
9396 test -z "$as_dir" && as_dir=.
5213506e 9397 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9399 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9401 break 2
9402 fi
9403done
5213506e
RW
9404 done
9405IFS=$as_save_IFS
1c710c3c 9406
ca9f4b81
AO
9407fi
9408fi
1c710c3c 9409WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9410if test -n "$WINDRES"; then
5213506e
RW
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9412$as_echo "$WINDRES" >&6; }
ca9f4b81 9413else
5213506e
RW
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415$as_echo "no" >&6; }
ca9f4b81 9416fi
1c710c3c 9417
5213506e 9418
2693c0b0
PB
9419 fi
9420 test -n "$ac_cv_prog_WINDRES" && break
9421done
9422
9423if test -z "$ac_cv_prog_WINDRES" ; then
9424 set dummy windres
9425 if test $build = $host ; then
9426 WINDRES="$2"
ca9f4b81 9427 else
2693c0b0 9428 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9429 fi
ca9f4b81
AO
9430fi
9431
278a7a38
AO
9432
9433
901119ae
KT
9434if test -n "$WINDMC"; then
9435 ac_cv_prog_WINDMC=$WINDMC
9436elif test -n "$ac_cv_prog_WINDMC"; then
9437 WINDMC=$ac_cv_prog_WINDMC
9438fi
9439
9440if test -n "$ac_cv_prog_WINDMC"; then
9441 for ncn_progname in windmc; do
9442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9443set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9445$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9446if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 9447 $as_echo_n "(cached) " >&6
901119ae
KT
9448else
9449 if test -n "$WINDMC"; then
9450 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9451else
9452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9453for as_dir in $PATH
9454do
9455 IFS=$as_save_IFS
9456 test -z "$as_dir" && as_dir=.
5213506e 9457 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 9459 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9461 break 2
9462 fi
9463done
5213506e
RW
9464 done
9465IFS=$as_save_IFS
901119ae
KT
9466
9467fi
9468fi
9469WINDMC=$ac_cv_prog_WINDMC
9470if test -n "$WINDMC"; then
5213506e
RW
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9472$as_echo "$WINDMC" >&6; }
901119ae 9473else
5213506e
RW
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475$as_echo "no" >&6; }
901119ae
KT
9476fi
9477
5213506e 9478
901119ae
KT
9479 done
9480fi
9481
9482for ncn_progname in windmc; do
9483 if test -n "$ncn_tool_prefix"; then
9484 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9485set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9487$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9488if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 9489 $as_echo_n "(cached) " >&6
901119ae
KT
9490else
9491 if test -n "$WINDMC"; then
9492 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9493else
9494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9495for as_dir in $PATH
9496do
9497 IFS=$as_save_IFS
9498 test -z "$as_dir" && as_dir=.
5213506e 9499 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 9501 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9503 break 2
9504 fi
9505done
5213506e
RW
9506 done
9507IFS=$as_save_IFS
901119ae
KT
9508
9509fi
9510fi
9511WINDMC=$ac_cv_prog_WINDMC
9512if test -n "$WINDMC"; then
5213506e
RW
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9514$as_echo "$WINDMC" >&6; }
901119ae 9515else
5213506e
RW
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517$as_echo "no" >&6; }
901119ae
KT
9518fi
9519
5213506e 9520
901119ae
KT
9521 fi
9522 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9524set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9527if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 9528 $as_echo_n "(cached) " >&6
901119ae
KT
9529else
9530 if test -n "$WINDMC"; then
9531 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9532else
9533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534for as_dir in $PATH
9535do
9536 IFS=$as_save_IFS
9537 test -z "$as_dir" && as_dir=.
5213506e 9538 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 9540 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9542 break 2
9543 fi
9544done
5213506e
RW
9545 done
9546IFS=$as_save_IFS
901119ae
KT
9547
9548fi
9549fi
9550WINDMC=$ac_cv_prog_WINDMC
9551if test -n "$WINDMC"; then
5213506e
RW
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9553$as_echo "$WINDMC" >&6; }
901119ae 9554else
5213506e
RW
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556$as_echo "no" >&6; }
901119ae
KT
9557fi
9558
5213506e 9559
901119ae
KT
9560 fi
9561 test -n "$ac_cv_prog_WINDMC" && break
9562done
9563
9564if test -z "$ac_cv_prog_WINDMC" ; then
9565 set dummy windmc
9566 if test $build = $host ; then
9567 WINDMC="$2"
9568 else
9569 WINDMC="${ncn_tool_prefix}$2"
9570 fi
9571fi
9572
9573
9574
278a7a38
AO
9575if test -n "$OBJCOPY"; then
9576 ac_cv_prog_OBJCOPY=$OBJCOPY
9577elif test -n "$ac_cv_prog_OBJCOPY"; then
9578 OBJCOPY=$ac_cv_prog_OBJCOPY
9579fi
9580
9581if test -n "$ac_cv_prog_OBJCOPY"; then
9582 for ncn_progname in objcopy; do
9583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9584set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9586$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9587if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 9588 $as_echo_n "(cached) " >&6
278a7a38
AO
9589else
9590 if test -n "$OBJCOPY"; then
9591 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9592else
9593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9594for as_dir in $PATH
9595do
9596 IFS=$as_save_IFS
9597 test -z "$as_dir" && as_dir=.
5213506e 9598 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9600 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9602 break 2
9603 fi
9604done
5213506e
RW
9605 done
9606IFS=$as_save_IFS
278a7a38
AO
9607
9608fi
9609fi
9610OBJCOPY=$ac_cv_prog_OBJCOPY
9611if test -n "$OBJCOPY"; then
5213506e
RW
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9613$as_echo "$OBJCOPY" >&6; }
278a7a38 9614else
5213506e
RW
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9616$as_echo "no" >&6; }
278a7a38
AO
9617fi
9618
5213506e 9619
278a7a38
AO
9620 done
9621fi
9622
9623for ncn_progname in objcopy; do
2693c0b0
PB
9624 if test -n "$ncn_tool_prefix"; then
9625 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9626set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9628$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9629if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 9630 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9631else
9632 if test -n "$OBJCOPY"; then
9633 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9634else
1c710c3c
DJ
9635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636for as_dir in $PATH
9637do
9638 IFS=$as_save_IFS
9639 test -z "$as_dir" && as_dir=.
5213506e 9640 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9642 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9644 break 2
9645 fi
9646done
5213506e
RW
9647 done
9648IFS=$as_save_IFS
1c710c3c 9649
ca9f4b81
AO
9650fi
9651fi
1c710c3c 9652OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9653if test -n "$OBJCOPY"; then
5213506e
RW
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9655$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9656else
5213506e
RW
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9658$as_echo "no" >&6; }
ca9f4b81
AO
9659fi
9660
5213506e 9661
2693c0b0
PB
9662 fi
9663 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9665set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9667$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9668if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 9669 $as_echo_n "(cached) " >&6
ca9f4b81 9670else
2693c0b0
PB
9671 if test -n "$OBJCOPY"; then
9672 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9673else
1c710c3c
DJ
9674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9675for as_dir in $PATH
9676do
9677 IFS=$as_save_IFS
9678 test -z "$as_dir" && as_dir=.
5213506e 9679 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9681 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9683 break 2
9684 fi
9685done
5213506e
RW
9686 done
9687IFS=$as_save_IFS
1c710c3c 9688
ca9f4b81
AO
9689fi
9690fi
1c710c3c 9691OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9692if test -n "$OBJCOPY"; then
5213506e
RW
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9694$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9695else
5213506e
RW
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697$as_echo "no" >&6; }
ca9f4b81 9698fi
1c710c3c 9699
5213506e 9700
2693c0b0
PB
9701 fi
9702 test -n "$ac_cv_prog_OBJCOPY" && break
9703done
9704
9705if test -z "$ac_cv_prog_OBJCOPY" ; then
9706 set dummy objcopy
9707 if test $build = $host ; then
9708 OBJCOPY="$2"
ca9f4b81 9709 else
2693c0b0 9710 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9711 fi
ca9f4b81
AO
9712fi
9713
278a7a38
AO
9714
9715
9716if test -n "$OBJDUMP"; then
9717 ac_cv_prog_OBJDUMP=$OBJDUMP
9718elif test -n "$ac_cv_prog_OBJDUMP"; then
9719 OBJDUMP=$ac_cv_prog_OBJDUMP
9720fi
9721
9722if test -n "$ac_cv_prog_OBJDUMP"; then
9723 for ncn_progname in objdump; do
9724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9725set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9727$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9728if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 9729 $as_echo_n "(cached) " >&6
278a7a38
AO
9730else
9731 if test -n "$OBJDUMP"; then
9732 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9733else
9734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9735for as_dir in $PATH
9736do
9737 IFS=$as_save_IFS
9738 test -z "$as_dir" && as_dir=.
5213506e 9739 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9741 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9743 break 2
9744 fi
9745done
5213506e
RW
9746 done
9747IFS=$as_save_IFS
278a7a38
AO
9748
9749fi
9750fi
9751OBJDUMP=$ac_cv_prog_OBJDUMP
9752if test -n "$OBJDUMP"; then
5213506e
RW
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9754$as_echo "$OBJDUMP" >&6; }
278a7a38 9755else
5213506e
RW
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9757$as_echo "no" >&6; }
278a7a38
AO
9758fi
9759
5213506e 9760
278a7a38
AO
9761 done
9762fi
9763
9764for ncn_progname in objdump; do
2693c0b0
PB
9765 if test -n "$ncn_tool_prefix"; then
9766 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9767set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9769$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9770if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 9771 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9772else
9773 if test -n "$OBJDUMP"; then
9774 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9775else
1c710c3c
DJ
9776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9777for as_dir in $PATH
9778do
9779 IFS=$as_save_IFS
9780 test -z "$as_dir" && as_dir=.
5213506e 9781 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9783 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9785 break 2
9786 fi
9787done
5213506e
RW
9788 done
9789IFS=$as_save_IFS
1c710c3c 9790
ca9f4b81
AO
9791fi
9792fi
1c710c3c 9793OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9794if test -n "$OBJDUMP"; then
5213506e
RW
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9796$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9797else
5213506e
RW
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9799$as_echo "no" >&6; }
ca9f4b81
AO
9800fi
9801
5213506e 9802
2693c0b0
PB
9803 fi
9804 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9806set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9808$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9809if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 9810 $as_echo_n "(cached) " >&6
ca9f4b81 9811else
2693c0b0
PB
9812 if test -n "$OBJDUMP"; then
9813 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9814else
1c710c3c
DJ
9815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816for as_dir in $PATH
9817do
9818 IFS=$as_save_IFS
9819 test -z "$as_dir" && as_dir=.
5213506e 9820 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9822 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9824 break 2
9825 fi
9826done
5213506e
RW
9827 done
9828IFS=$as_save_IFS
1c710c3c 9829
ca9f4b81
AO
9830fi
9831fi
1c710c3c 9832OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9833if test -n "$OBJDUMP"; then
5213506e
RW
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9835$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9836else
5213506e
RW
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838$as_echo "no" >&6; }
ca9f4b81 9839fi
1c710c3c 9840
5213506e 9841
2693c0b0
PB
9842 fi
9843 test -n "$ac_cv_prog_OBJDUMP" && break
9844done
9845
9846if test -z "$ac_cv_prog_OBJDUMP" ; then
9847 set dummy objdump
9848 if test $build = $host ; then
9849 OBJDUMP="$2"
ca9f4b81 9850 else
2693c0b0 9851 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9852 fi
ca9f4b81
AO
9853fi
9854
671aa708
NN
9855
9856
e4a9a572
IS
9857if test -n "$OTOOL"; then
9858 ac_cv_prog_OTOOL=$OTOOL
9859elif test -n "$ac_cv_prog_OTOOL"; then
9860 OTOOL=$ac_cv_prog_OTOOL
9861fi
9862
9863if test -n "$ac_cv_prog_OTOOL"; then
9864 for ncn_progname in otool; do
9865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9866set dummy ${ncn_progname}; ac_word=$2
9867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9868$as_echo_n "checking for $ac_word... " >&6; }
9869if ${ac_cv_prog_OTOOL+:} false; then :
9870 $as_echo_n "(cached) " >&6
9871else
9872 if test -n "$OTOOL"; then
9873 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9874else
9875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876for as_dir in $PATH
9877do
9878 IFS=$as_save_IFS
9879 test -z "$as_dir" && as_dir=.
9880 for ac_exec_ext in '' $ac_executable_extensions; do
9881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9882 ac_cv_prog_OTOOL="${ncn_progname}"
9883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9884 break 2
9885 fi
9886done
9887 done
9888IFS=$as_save_IFS
9889
9890fi
9891fi
9892OTOOL=$ac_cv_prog_OTOOL
9893if test -n "$OTOOL"; then
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9895$as_echo "$OTOOL" >&6; }
9896else
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9898$as_echo "no" >&6; }
9899fi
9900
9901
9902 done
9903fi
9904
9905for ncn_progname in otool; do
9906 if test -n "$ncn_tool_prefix"; then
9907 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9908set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9910$as_echo_n "checking for $ac_word... " >&6; }
9911if ${ac_cv_prog_OTOOL+:} false; then :
9912 $as_echo_n "(cached) " >&6
9913else
9914 if test -n "$OTOOL"; then
9915 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9916else
9917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918for as_dir in $PATH
9919do
9920 IFS=$as_save_IFS
9921 test -z "$as_dir" && as_dir=.
9922 for ac_exec_ext in '' $ac_executable_extensions; do
9923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9924 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
9925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9926 break 2
9927 fi
9928done
9929 done
9930IFS=$as_save_IFS
9931
9932fi
9933fi
9934OTOOL=$ac_cv_prog_OTOOL
9935if test -n "$OTOOL"; then
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9937$as_echo "$OTOOL" >&6; }
9938else
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9940$as_echo "no" >&6; }
9941fi
9942
9943
9944 fi
9945 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
9946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9947set dummy ${ncn_progname}; ac_word=$2
9948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9949$as_echo_n "checking for $ac_word... " >&6; }
9950if ${ac_cv_prog_OTOOL+:} false; then :
9951 $as_echo_n "(cached) " >&6
9952else
9953 if test -n "$OTOOL"; then
9954 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9955else
9956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9957for as_dir in $PATH
9958do
9959 IFS=$as_save_IFS
9960 test -z "$as_dir" && as_dir=.
9961 for ac_exec_ext in '' $ac_executable_extensions; do
9962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9963 ac_cv_prog_OTOOL="${ncn_progname}"
9964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9965 break 2
9966 fi
9967done
9968 done
9969IFS=$as_save_IFS
9970
9971fi
9972fi
9973OTOOL=$ac_cv_prog_OTOOL
9974if test -n "$OTOOL"; then
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9976$as_echo "$OTOOL" >&6; }
9977else
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9979$as_echo "no" >&6; }
9980fi
9981
9982
9983 fi
9984 test -n "$ac_cv_prog_OTOOL" && break
9985done
9986
9987if test -z "$ac_cv_prog_OTOOL" ; then
9988 set dummy otool
9989 if test $build = $host ; then
9990 OTOOL="$2"
9991 else
9992 OTOOL="${ncn_tool_prefix}$2"
9993 fi
9994fi
9995
9996
9997
e7a82751
RM
9998if test -n "$READELF"; then
9999 ac_cv_prog_READELF=$READELF
10000elif test -n "$ac_cv_prog_READELF"; then
10001 READELF=$ac_cv_prog_READELF
10002fi
10003
10004if test -n "$ac_cv_prog_READELF"; then
10005 for ncn_progname in readelf; do
10006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10007set dummy ${ncn_progname}; ac_word=$2
10008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10009$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10010if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
10011 $as_echo_n "(cached) " >&6
10012else
10013 if test -n "$READELF"; then
10014 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10015else
10016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10017for as_dir in $PATH
10018do
10019 IFS=$as_save_IFS
10020 test -z "$as_dir" && as_dir=.
10021 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
10023 ac_cv_prog_READELF="${ncn_progname}"
10024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10025 break 2
10026 fi
10027done
10028 done
10029IFS=$as_save_IFS
10030
10031fi
10032fi
10033READELF=$ac_cv_prog_READELF
10034if test -n "$READELF"; then
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10036$as_echo "$READELF" >&6; }
10037else
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039$as_echo "no" >&6; }
10040fi
10041
10042
10043 done
10044fi
10045
10046for ncn_progname in readelf; do
10047 if test -n "$ncn_tool_prefix"; then
10048 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10049set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10051$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10052if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
10053 $as_echo_n "(cached) " >&6
10054else
10055 if test -n "$READELF"; then
10056 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10057else
10058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059for as_dir in $PATH
10060do
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
10063 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
10065 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10067 break 2
10068 fi
10069done
10070 done
10071IFS=$as_save_IFS
10072
10073fi
10074fi
10075READELF=$ac_cv_prog_READELF
10076if test -n "$READELF"; then
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10078$as_echo "$READELF" >&6; }
10079else
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10081$as_echo "no" >&6; }
10082fi
10083
10084
10085 fi
10086 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10088set dummy ${ncn_progname}; ac_word=$2
10089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10090$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10091if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
10092 $as_echo_n "(cached) " >&6
10093else
10094 if test -n "$READELF"; then
10095 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10096else
10097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098for as_dir in $PATH
10099do
10100 IFS=$as_save_IFS
10101 test -z "$as_dir" && as_dir=.
10102 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
10104 ac_cv_prog_READELF="${ncn_progname}"
10105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10106 break 2
10107 fi
10108done
10109 done
10110IFS=$as_save_IFS
10111
10112fi
10113fi
10114READELF=$ac_cv_prog_READELF
10115if test -n "$READELF"; then
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10117$as_echo "$READELF" >&6; }
10118else
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10120$as_echo "no" >&6; }
10121fi
10122
10123
10124 fi
10125 test -n "$ac_cv_prog_READELF" && break
10126done
10127
10128if test -z "$ac_cv_prog_READELF" ; then
10129 set dummy readelf
10130 if test $build = $host ; then
10131 READELF="$2"
10132 else
10133 READELF="${ncn_tool_prefix}$2"
10134 fi
10135fi
10136
10137
10138
671aa708
NN
10139
10140
10141
2abefe3d 10142# Target tools.
1c710c3c 10143
5213506e
RW
10144# Check whether --with-build-time-tools was given.
10145if test "${with_build_time_tools+set}" = set; then :
10146 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
10147 x/*) ;;
10148 *)
10149 with_build_time_tools=
5213506e
RW
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10151$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
10152 ;;
10153 esac
ca9f4b81 10154else
e8b05380 10155 with_build_time_tools=
5213506e
RW
10156fi
10157
ca9f4b81 10158
278a7a38
AO
10159
10160
10161if test -n "$CC_FOR_TARGET"; then
10162 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10163elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10164 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10165fi
10166
10167if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10168 for ncn_progname in cc gcc; do
10169 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10170set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10172$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10173if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10174 $as_echo_n "(cached) " >&6
278a7a38
AO
10175else
10176 if test -n "$CC_FOR_TARGET"; then
10177 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10178else
10179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10180for as_dir in $PATH
10181do
10182 IFS=$as_save_IFS
10183 test -z "$as_dir" && as_dir=.
5213506e 10184 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10186 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10188 break 2
10189 fi
10190done
5213506e
RW
10191 done
10192IFS=$as_save_IFS
278a7a38
AO
10193
10194fi
10195fi
10196CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10197if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10199$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 10200else
5213506e
RW
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202$as_echo "no" >&6; }
278a7a38
AO
10203fi
10204
5213506e 10205
278a7a38
AO
10206 done
10207fi
10208
10209if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10210 for ncn_progname in cc gcc; do
5213506e
RW
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10212$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10213 if test -x $with_build_time_tools/${ncn_progname}; then
10214 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10216$as_echo "yes" >&6; }
72a7ab82 10217 break
e8b05380 10218 else
5213506e
RW
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220$as_echo "no" >&6; }
72a7ab82
AP
10221 fi
10222 done
4de997d1
PB
10223fi
10224
e8b05380
PB
10225if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10226 for ncn_progname in cc gcc; do
10227 if test -n "$ncn_target_tool_prefix"; then
10228 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10229set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10231$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10232if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10233 $as_echo_n "(cached) " >&6
4de997d1
PB
10234else
10235 if test -n "$CC_FOR_TARGET"; then
10236 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10237else
1c710c3c
DJ
10238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10239for as_dir in $PATH
10240do
10241 IFS=$as_save_IFS
10242 test -z "$as_dir" && as_dir=.
5213506e 10243 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10245 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10247 break 2
10248 fi
10249done
5213506e
RW
10250 done
10251IFS=$as_save_IFS
1c710c3c 10252
4de997d1
PB
10253fi
10254fi
1c710c3c 10255CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 10256if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10258$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10259else
5213506e
RW
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10261$as_echo "no" >&6; }
4de997d1
PB
10262fi
10263
5213506e 10264
e8b05380
PB
10265 fi
10266 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10267 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10268set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10270$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10271if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10272 $as_echo_n "(cached) " >&6
4de997d1 10273else
2693c0b0
PB
10274 if test -n "$CC_FOR_TARGET"; then
10275 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 10276else
1c710c3c
DJ
10277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10278for as_dir in $PATH
10279do
10280 IFS=$as_save_IFS
10281 test -z "$as_dir" && as_dir=.
5213506e 10282 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10284 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10286 break 2
10287 fi
10288done
5213506e
RW
10289 done
10290IFS=$as_save_IFS
1c710c3c 10291
4de997d1
PB
10292fi
10293fi
1c710c3c 10294CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 10295if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10297$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10298else
5213506e
RW
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10300$as_echo "no" >&6; }
4de997d1 10301fi
1c710c3c 10302
5213506e 10303
e8b05380
PB
10304 fi
10305 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10306 done
10307fi
1c710c3c 10308
2693c0b0
PB
10309if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10310 set dummy cc gcc
10311 if test $build = $target ; then
10312 CC_FOR_TARGET="$2"
4de997d1 10313 else
2693c0b0 10314 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10315 fi
1c00b503
PB
10316else
10317 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10318fi
10319
278a7a38
AO
10320
10321
10322if test -n "$CXX_FOR_TARGET"; then
10323 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10324elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10325 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10326fi
10327
10328if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10329 for ncn_progname in c++ g++ cxx gxx; do
10330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10331set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10333$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10334if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10335 $as_echo_n "(cached) " >&6
278a7a38
AO
10336else
10337 if test -n "$CXX_FOR_TARGET"; then
10338 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10339else
10340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10341for as_dir in $PATH
10342do
10343 IFS=$as_save_IFS
10344 test -z "$as_dir" && as_dir=.
5213506e 10345 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10347 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10349 break 2
10350 fi
10351done
5213506e
RW
10352 done
10353IFS=$as_save_IFS
278a7a38
AO
10354
10355fi
10356fi
10357CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10358if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10360$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10361else
5213506e
RW
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10363$as_echo "no" >&6; }
278a7a38
AO
10364fi
10365
5213506e 10366
278a7a38
AO
10367 done
10368fi
10369
10370if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10371 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10373$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10374 if test -x $with_build_time_tools/${ncn_progname}; then
10375 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10377$as_echo "yes" >&6; }
e8b05380
PB
10378 break
10379 else
5213506e
RW
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381$as_echo "no" >&6; }
e8b05380
PB
10382 fi
10383 done
10384fi
10385
10386if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10387 for ncn_progname in c++ g++ cxx gxx; do
10388 if test -n "$ncn_target_tool_prefix"; then
10389 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10390set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10392$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10393if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10394 $as_echo_n "(cached) " >&6
4de997d1
PB
10395else
10396 if test -n "$CXX_FOR_TARGET"; then
10397 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10398else
1c710c3c
DJ
10399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10400for as_dir in $PATH
10401do
10402 IFS=$as_save_IFS
10403 test -z "$as_dir" && as_dir=.
5213506e 10404 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10406 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10408 break 2
10409 fi
10410done
5213506e
RW
10411 done
10412IFS=$as_save_IFS
1c710c3c 10413
4de997d1
PB
10414fi
10415fi
1c710c3c 10416CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10417if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10419$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10420else
5213506e
RW
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10422$as_echo "no" >&6; }
4de997d1
PB
10423fi
10424
5213506e 10425
e8b05380
PB
10426 fi
10427 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10429set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10431$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10432if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10433 $as_echo_n "(cached) " >&6
4de997d1 10434else
2693c0b0
PB
10435 if test -n "$CXX_FOR_TARGET"; then
10436 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10437else
1c710c3c
DJ
10438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10439for as_dir in $PATH
10440do
10441 IFS=$as_save_IFS
10442 test -z "$as_dir" && as_dir=.
5213506e 10443 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10445 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10447 break 2
10448 fi
10449done
5213506e
RW
10450 done
10451IFS=$as_save_IFS
1c710c3c 10452
4de997d1
PB
10453fi
10454fi
1c710c3c 10455CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10456if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10458$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10459else
5213506e
RW
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10461$as_echo "no" >&6; }
4de997d1 10462fi
1c710c3c 10463
5213506e 10464
e8b05380
PB
10465 fi
10466 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10467 done
10468fi
1c710c3c 10469
2693c0b0
PB
10470if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10471 set dummy c++ g++ cxx gxx
10472 if test $build = $target ; then
10473 CXX_FOR_TARGET="$2"
4de997d1 10474 else
2693c0b0 10475 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10476 fi
1c00b503
PB
10477else
10478 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10479fi
10480
278a7a38
AO
10481
10482
10483if test -n "$GCC_FOR_TARGET"; then
10484 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10485elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10486 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10487fi
10488
10489if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10490 for ncn_progname in gcc; do
10491 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10492set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10494$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10495if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10496 $as_echo_n "(cached) " >&6
278a7a38
AO
10497else
10498 if test -n "$GCC_FOR_TARGET"; then
10499 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10500else
10501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10502for as_dir in $PATH
10503do
10504 IFS=$as_save_IFS
10505 test -z "$as_dir" && as_dir=.
5213506e 10506 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10508 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10510 break 2
10511 fi
10512done
5213506e
RW
10513 done
10514IFS=$as_save_IFS
278a7a38
AO
10515
10516fi
10517fi
10518GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10519if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10521$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10522else
5213506e
RW
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10524$as_echo "no" >&6; }
278a7a38
AO
10525fi
10526
5213506e 10527
278a7a38
AO
10528 done
10529fi
10530
10531if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10532 for ncn_progname in gcc; do
5213506e
RW
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10534$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10535 if test -x $with_build_time_tools/${ncn_progname}; then
10536 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10538$as_echo "yes" >&6; }
e8b05380
PB
10539 break
10540 else
5213506e
RW
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542$as_echo "no" >&6; }
e8b05380
PB
10543 fi
10544 done
10545fi
10546
10547if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10548 for ncn_progname in gcc; do
10549 if test -n "$ncn_target_tool_prefix"; then
10550 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10551set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10553$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10554if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10555 $as_echo_n "(cached) " >&6
ca9f4b81 10556else
e8b05380
PB
10557 if test -n "$GCC_FOR_TARGET"; then
10558 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10559else
1c710c3c
DJ
10560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10561for as_dir in $PATH
10562do
10563 IFS=$as_save_IFS
10564 test -z "$as_dir" && as_dir=.
5213506e 10565 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10567 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10569 break 2
10570 fi
10571done
5213506e
RW
10572 done
10573IFS=$as_save_IFS
1c710c3c 10574
ca9f4b81
AO
10575fi
10576fi
1c710c3c 10577GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10578if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10580$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10581else
5213506e
RW
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583$as_echo "no" >&6; }
ca9f4b81
AO
10584fi
10585
5213506e 10586
e8b05380
PB
10587 fi
10588 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10590set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10592$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10593if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10594 $as_echo_n "(cached) " >&6
ca9f4b81 10595else
e8b05380
PB
10596 if test -n "$GCC_FOR_TARGET"; then
10597 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10598else
1c710c3c
DJ
10599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10600for as_dir in $PATH
10601do
10602 IFS=$as_save_IFS
10603 test -z "$as_dir" && as_dir=.
5213506e 10604 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10606 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10608 break 2
10609 fi
10610done
5213506e
RW
10611 done
10612IFS=$as_save_IFS
1c710c3c 10613
ca9f4b81
AO
10614fi
10615fi
1c710c3c 10616GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10617if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10619$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10620else
5213506e
RW
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10622$as_echo "no" >&6; }
ca9f4b81 10623fi
1c710c3c 10624
5213506e 10625
e8b05380
PB
10626 fi
10627 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10628 done
10629fi
1c710c3c 10630
e8b05380
PB
10631if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10632 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10633else
10634 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10635fi
10636
278a7a38
AO
10637
10638
278a7a38
AO
10639if test -n "$GFORTRAN_FOR_TARGET"; then
10640 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10641elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10642 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10643fi
10644
278a7a38
AO
10645if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10646 for ncn_progname in gfortran; do
10647 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10648set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10650$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10651if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10652 $as_echo_n "(cached) " >&6
e8b05380 10653else
278a7a38
AO
10654 if test -n "$GFORTRAN_FOR_TARGET"; then
10655 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10656else
1c710c3c
DJ
10657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10658for as_dir in $PATH
10659do
10660 IFS=$as_save_IFS
10661 test -z "$as_dir" && as_dir=.
5213506e 10662 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10664 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10666 break 2
10667 fi
10668done
5213506e
RW
10669 done
10670IFS=$as_save_IFS
1c710c3c 10671
e8b05380
PB
10672fi
10673fi
278a7a38
AO
10674GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10675if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10677$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10678else
5213506e
RW
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10680$as_echo "no" >&6; }
e8b05380 10681fi
1c710c3c 10682
5213506e 10683
e8b05380
PB
10684 done
10685fi
1c710c3c 10686
278a7a38 10687if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10688 for ncn_progname in gfortran; do
5213506e
RW
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10690$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10691 if test -x $with_build_time_tools/${ncn_progname}; then
10692 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10694$as_echo "yes" >&6; }
e8b05380
PB
10695 break
10696 else
5213506e
RW
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10698$as_echo "no" >&6; }
e8b05380
PB
10699 fi
10700 done
10701fi
10702
10703if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10704 for ncn_progname in gfortran; do
10705 if test -n "$ncn_target_tool_prefix"; then
10706 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10707set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10709$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10710if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10711 $as_echo_n "(cached) " >&6
e8b05380
PB
10712else
10713 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10714 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10715else
10716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717for as_dir in $PATH
10718do
10719 IFS=$as_save_IFS
10720 test -z "$as_dir" && as_dir=.
5213506e 10721 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10723 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10725 break 2
10726 fi
10727done
5213506e
RW
10728 done
10729IFS=$as_save_IFS
1c710c3c 10730
e8b05380
PB
10731fi
10732fi
1c710c3c 10733GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10734if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10736$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10737else
5213506e
RW
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10739$as_echo "no" >&6; }
e8b05380
PB
10740fi
10741
5213506e 10742
e8b05380
PB
10743 fi
10744 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10745 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10746set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10748$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10749if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10750 $as_echo_n "(cached) " >&6
e8b05380
PB
10751else
10752 if test -n "$GFORTRAN_FOR_TARGET"; then
10753 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10754else
1c710c3c
DJ
10755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10756for as_dir in $PATH
10757do
10758 IFS=$as_save_IFS
10759 test -z "$as_dir" && as_dir=.
5213506e 10760 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10762 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10764 break 2
10765 fi
10766done
5213506e
RW
10767 done
10768IFS=$as_save_IFS
1c710c3c 10769
e8b05380
PB
10770fi
10771fi
1c710c3c 10772GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10773if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10775$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10776else
5213506e
RW
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778$as_echo "no" >&6; }
e8b05380 10779fi
1c710c3c 10780
5213506e 10781
e8b05380
PB
10782 fi
10783 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10784 done
10785fi
1c710c3c 10786
e8b05380
PB
10787if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10788 set dummy gfortran
2693c0b0 10789 if test $build = $target ; then
e8b05380 10790 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10791 else
e8b05380
PB
10792 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10793 fi
1c00b503
PB
10794else
10795 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10796fi
10797
10798
10799
632e2a07
ILT
10800if test -n "$GOC_FOR_TARGET"; then
10801 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10802elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10803 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10804fi
10805
10806if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10807 for ncn_progname in gccgo; do
10808 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10809set dummy ${ncn_progname}; ac_word=$2
10810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10811$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10812if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
10813 $as_echo_n "(cached) " >&6
10814else
10815 if test -n "$GOC_FOR_TARGET"; then
10816 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10817else
10818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10819for as_dir in $PATH
10820do
10821 IFS=$as_save_IFS
10822 test -z "$as_dir" && as_dir=.
10823 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
10825 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10827 break 2
10828 fi
10829done
10830 done
10831IFS=$as_save_IFS
10832
10833fi
10834fi
10835GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10836if test -n "$GOC_FOR_TARGET"; then
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10838$as_echo "$GOC_FOR_TARGET" >&6; }
10839else
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841$as_echo "no" >&6; }
10842fi
10843
10844
10845 done
10846fi
10847
10848if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10849 for ncn_progname in gccgo; do
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10851$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10852 if test -x $with_build_time_tools/${ncn_progname}; then
10853 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10855$as_echo "yes" >&6; }
10856 break
10857 else
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10859$as_echo "no" >&6; }
10860 fi
10861 done
10862fi
10863
10864if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10865 for ncn_progname in gccgo; do
10866 if test -n "$ncn_target_tool_prefix"; then
10867 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10868set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10870$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10871if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
10872 $as_echo_n "(cached) " >&6
10873else
10874 if test -n "$GOC_FOR_TARGET"; then
10875 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10876else
10877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10878for as_dir in $PATH
10879do
10880 IFS=$as_save_IFS
10881 test -z "$as_dir" && as_dir=.
10882 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
10884 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10886 break 2
10887 fi
10888done
10889 done
10890IFS=$as_save_IFS
10891
10892fi
10893fi
10894GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10895if test -n "$GOC_FOR_TARGET"; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10897$as_echo "$GOC_FOR_TARGET" >&6; }
10898else
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10900$as_echo "no" >&6; }
10901fi
10902
10903
10904 fi
10905 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10907set dummy ${ncn_progname}; ac_word=$2
10908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10909$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10910if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
10911 $as_echo_n "(cached) " >&6
10912else
10913 if test -n "$GOC_FOR_TARGET"; then
10914 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10915else
10916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10917for as_dir in $PATH
10918do
10919 IFS=$as_save_IFS
10920 test -z "$as_dir" && as_dir=.
10921 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
10923 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10925 break 2
10926 fi
10927done
10928 done
10929IFS=$as_save_IFS
10930
10931fi
10932fi
10933GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10934if test -n "$GOC_FOR_TARGET"; then
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10936$as_echo "$GOC_FOR_TARGET" >&6; }
10937else
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10939$as_echo "no" >&6; }
10940fi
10941
10942
10943 fi
10944 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10945 done
10946fi
10947
10948if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10949 set dummy gccgo
10950 if test $build = $target ; then
10951 GOC_FOR_TARGET="$2"
10952 else
10953 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10954 fi
10955else
10956 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10957fi
10958
10959
10960
b4c522fa
IB
10961if test -n "$GDC_FOR_TARGET"; then
10962 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
10963elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
10964 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
10965fi
10966
10967if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
10968 for ncn_progname in gdc; do
10969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10970set dummy ${ncn_progname}; ac_word=$2
10971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10972$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10973if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
10974 $as_echo_n "(cached) " >&6
10975else
10976 if test -n "$GDC_FOR_TARGET"; then
10977 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
10978else
10979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10980for as_dir in $PATH
10981do
10982 IFS=$as_save_IFS
10983 test -z "$as_dir" && as_dir=.
10984 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
10986 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
10987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10988 break 2
10989 fi
10990done
10991 done
10992IFS=$as_save_IFS
10993
10994fi
10995fi
10996GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
10997if test -n "$GDC_FOR_TARGET"; then
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
10999$as_echo "$GDC_FOR_TARGET" >&6; }
11000else
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11002$as_echo "no" >&6; }
11003fi
11004
11005
11006 done
11007fi
11008
11009if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11010 for ncn_progname in gdc; do
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11012$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11013 if test -x $with_build_time_tools/${ncn_progname}; then
11014 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11016$as_echo "yes" >&6; }
11017 break
11018 else
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11020$as_echo "no" >&6; }
11021 fi
11022 done
11023fi
11024
11025if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
11026 for ncn_progname in gdc; do
11027 if test -n "$ncn_target_tool_prefix"; then
11028 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11029set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11031$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11032if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
11033 $as_echo_n "(cached) " >&6
11034else
11035 if test -n "$GDC_FOR_TARGET"; then
11036 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11037else
11038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11039for as_dir in $PATH
11040do
11041 IFS=$as_save_IFS
11042 test -z "$as_dir" && as_dir=.
11043 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
11045 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11047 break 2
11048 fi
11049done
11050 done
11051IFS=$as_save_IFS
11052
11053fi
11054fi
11055GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11056if test -n "$GDC_FOR_TARGET"; then
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11058$as_echo "$GDC_FOR_TARGET" >&6; }
11059else
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11061$as_echo "no" >&6; }
11062fi
11063
11064
11065 fi
11066 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
11067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11068set dummy ${ncn_progname}; ac_word=$2
11069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11070$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11071if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
11072 $as_echo_n "(cached) " >&6
11073else
11074 if test -n "$GDC_FOR_TARGET"; then
11075 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11076else
11077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11078for as_dir in $PATH
11079do
11080 IFS=$as_save_IFS
11081 test -z "$as_dir" && as_dir=.
11082 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
11084 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11086 break 2
11087 fi
11088done
11089 done
11090IFS=$as_save_IFS
11091
11092fi
11093fi
11094GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11095if test -n "$GDC_FOR_TARGET"; then
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11097$as_echo "$GDC_FOR_TARGET" >&6; }
11098else
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11100$as_echo "no" >&6; }
11101fi
11102
11103
11104 fi
11105 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
11106 done
11107fi
11108
11109if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
11110 set dummy gdc
11111 if test $build = $target ; then
11112 GDC_FOR_TARGET="$2"
11113 else
11114 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11115 fi
11116else
11117 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
11118fi
11119
11120
11121
e8b05380
PB
11122cat > conftest.c << \EOF
11123#ifdef __GNUC__
11124 gcc_yay;
11125#endif
11126EOF
11127if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11128 have_gcc_for_target=yes
11129else
11130 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11131 have_gcc_for_target=no
11132fi
11133rm conftest.c
11134
11135
11136
11137
11138if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11139 if test -n "$with_build_time_tools"; then
5213506e
RW
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11141$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11142 if test -x $with_build_time_tools/ar; then
11143 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11144 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11146$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 11147 else
5213506e
RW
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149$as_echo "no" >&6; }
d1f8db0c 11150 fi
e8b05380
PB
11151 elif test $build != $host && test $have_gcc_for_target = yes; then
11152 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
11153 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11154 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
11155 fi
11156fi
3e19841a 11157if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11158 # Extract the first word of "ar", so it can be a program name with args.
11159set dummy ar; ac_word=$2
5213506e
RW
11160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11161$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11162if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
5213506e 11163 $as_echo_n "(cached) " >&6
e8b05380 11164else
1c710c3c
DJ
11165 case $AR_FOR_TARGET in
11166 [\\/]* | ?:[\\/]*)
e8b05380
PB
11167 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11168 ;;
e8b05380 11169 *)
1c710c3c
DJ
11170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11171for as_dir in $gcc_cv_tool_dirs
11172do
11173 IFS=$as_save_IFS
11174 test -z "$as_dir" && as_dir=.
5213506e 11175 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11177 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11179 break 2
11180 fi
11181done
5213506e
RW
11182 done
11183IFS=$as_save_IFS
1c710c3c 11184
e8b05380
PB
11185 ;;
11186esac
11187fi
1c710c3c 11188AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 11189if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11191$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11192else
5213506e
RW
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194$as_echo "no" >&6; }
4de997d1
PB
11195fi
11196
5213506e 11197
e8b05380
PB
11198fi
11199if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
11200
11201
11202if test -n "$AR_FOR_TARGET"; then
11203 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11204elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11205 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11206fi
11207
11208if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11209 for ncn_progname in ar; do
11210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11211set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11213$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11214if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11215 $as_echo_n "(cached) " >&6
278a7a38
AO
11216else
11217 if test -n "$AR_FOR_TARGET"; then
11218 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11219else
11220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221for as_dir in $PATH
11222do
11223 IFS=$as_save_IFS
11224 test -z "$as_dir" && as_dir=.
5213506e 11225 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11227 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11229 break 2
11230 fi
11231done
5213506e
RW
11232 done
11233IFS=$as_save_IFS
278a7a38
AO
11234
11235fi
11236fi
11237AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11238if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11240$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 11241else
5213506e
RW
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243$as_echo "no" >&6; }
278a7a38
AO
11244fi
11245
5213506e 11246
278a7a38
AO
11247 done
11248fi
11249
11250if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11251 for ncn_progname in ar; do
5213506e
RW
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11253$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11254 if test -x $with_build_time_tools/${ncn_progname}; then
11255 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11257$as_echo "yes" >&6; }
e8b05380
PB
11258 break
11259 else
5213506e
RW
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11261$as_echo "no" >&6; }
e8b05380
PB
11262 fi
11263 done
11264fi
11265
11266if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11267 for ncn_progname in ar; do
11268 if test -n "$ncn_target_tool_prefix"; then
11269 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11270set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11272$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11273if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11274 $as_echo_n "(cached) " >&6
4de997d1 11275else
e8b05380
PB
11276 if test -n "$AR_FOR_TARGET"; then
11277 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 11278else
1c710c3c
DJ
11279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11280for as_dir in $PATH
11281do
11282 IFS=$as_save_IFS
11283 test -z "$as_dir" && as_dir=.
5213506e 11284 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11286 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11288 break 2
11289 fi
11290done
5213506e
RW
11291 done
11292IFS=$as_save_IFS
1c710c3c 11293
4de997d1
PB
11294fi
11295fi
1c710c3c 11296AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11297if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11299$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 11300else
5213506e
RW
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11302$as_echo "no" >&6; }
4de997d1
PB
11303fi
11304
5213506e 11305
e8b05380
PB
11306 fi
11307 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11309set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11311$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11312if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11313 $as_echo_n "(cached) " >&6
e8b05380
PB
11314else
11315 if test -n "$AR_FOR_TARGET"; then
11316 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11317else
1c710c3c
DJ
11318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11319for as_dir in $PATH
11320do
11321 IFS=$as_save_IFS
11322 test -z "$as_dir" && as_dir=.
5213506e 11323 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11325 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11327 break 2
11328 fi
11329done
5213506e
RW
11330 done
11331IFS=$as_save_IFS
1c710c3c 11332
e8b05380
PB
11333fi
11334fi
1c710c3c 11335AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11336if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11338$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11339else
5213506e
RW
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341$as_echo "no" >&6; }
e8b05380 11342fi
1c710c3c 11343
5213506e 11344
e8b05380
PB
11345 fi
11346 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11347 done
11348fi
1c710c3c 11349
e8b05380
PB
11350if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11351 set dummy ar
11352 if test $build = $target ; then
11353 AR_FOR_TARGET="$2"
11354 else
11355 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11356 fi
1c00b503
PB
11357else
11358 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11359fi
11360
d1f8db0c
PB
11361else
11362 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11363fi
11364
11365
11366
11367
11368if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11369 if test -n "$with_build_time_tools"; then
5213506e
RW
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11371$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11372 if test -x $with_build_time_tools/as; then
11373 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11374 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11376$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11377 else
5213506e
RW
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379$as_echo "no" >&6; }
d1f8db0c 11380 fi
e8b05380
PB
11381 elif test $build != $host && test $have_gcc_for_target = yes; then
11382 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11383 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11384 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11385 fi
11386fi
3e19841a 11387if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11388 # Extract the first word of "as", so it can be a program name with args.
11389set dummy as; ac_word=$2
5213506e
RW
11390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11391$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11392if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
5213506e 11393 $as_echo_n "(cached) " >&6
e8b05380 11394else
1c710c3c
DJ
11395 case $AS_FOR_TARGET in
11396 [\\/]* | ?:[\\/]*)
e8b05380
PB
11397 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11398 ;;
e8b05380 11399 *)
1c710c3c
DJ
11400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11401for as_dir in $gcc_cv_tool_dirs
11402do
11403 IFS=$as_save_IFS
11404 test -z "$as_dir" && as_dir=.
5213506e 11405 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11407 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11409 break 2
11410 fi
11411done
5213506e
RW
11412 done
11413IFS=$as_save_IFS
1c710c3c 11414
e8b05380
PB
11415 ;;
11416esac
11417fi
1c710c3c 11418AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11419if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11421$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11422else
5213506e
RW
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11424$as_echo "no" >&6; }
e8b05380
PB
11425fi
11426
5213506e 11427
e8b05380
PB
11428fi
11429if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11430
11431
11432if test -n "$AS_FOR_TARGET"; then
11433 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11434elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11435 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11436fi
11437
11438if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11439 for ncn_progname in as; do
11440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11441set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11443$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11444if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11445 $as_echo_n "(cached) " >&6
278a7a38
AO
11446else
11447 if test -n "$AS_FOR_TARGET"; then
11448 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11449else
11450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11451for as_dir in $PATH
11452do
11453 IFS=$as_save_IFS
11454 test -z "$as_dir" && as_dir=.
5213506e 11455 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11457 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11459 break 2
11460 fi
11461done
5213506e
RW
11462 done
11463IFS=$as_save_IFS
278a7a38
AO
11464
11465fi
11466fi
11467AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11468if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11470$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11471else
5213506e
RW
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473$as_echo "no" >&6; }
278a7a38
AO
11474fi
11475
5213506e 11476
278a7a38
AO
11477 done
11478fi
11479
11480if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11481 for ncn_progname in as; do
5213506e
RW
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11483$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11484 if test -x $with_build_time_tools/${ncn_progname}; then
11485 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11487$as_echo "yes" >&6; }
e8b05380
PB
11488 break
11489 else
5213506e
RW
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11491$as_echo "no" >&6; }
e8b05380
PB
11492 fi
11493 done
11494fi
11495
11496if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11497 for ncn_progname in as; do
11498 if test -n "$ncn_target_tool_prefix"; then
11499 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11500set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11502$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11503if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11504 $as_echo_n "(cached) " >&6
e8b05380
PB
11505else
11506 if test -n "$AS_FOR_TARGET"; then
11507 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11508else
1c710c3c
DJ
11509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11510for as_dir in $PATH
11511do
11512 IFS=$as_save_IFS
11513 test -z "$as_dir" && as_dir=.
5213506e 11514 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11516 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11518 break 2
11519 fi
11520done
5213506e
RW
11521 done
11522IFS=$as_save_IFS
1c710c3c 11523
e8b05380
PB
11524fi
11525fi
1c710c3c 11526AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11527if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11529$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11530else
5213506e
RW
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11532$as_echo "no" >&6; }
e8b05380
PB
11533fi
11534
5213506e 11535
e8b05380
PB
11536 fi
11537 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11538 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11539set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11541$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11542if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11543 $as_echo_n "(cached) " >&6
4de997d1 11544else
e8b05380
PB
11545 if test -n "$AS_FOR_TARGET"; then
11546 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11547else
1c710c3c
DJ
11548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11549for as_dir in $PATH
11550do
11551 IFS=$as_save_IFS
11552 test -z "$as_dir" && as_dir=.
5213506e 11553 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11555 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11557 break 2
11558 fi
11559done
5213506e
RW
11560 done
11561IFS=$as_save_IFS
1c710c3c 11562
4de997d1
PB
11563fi
11564fi
1c710c3c 11565AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11566if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11568$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11569else
5213506e
RW
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11571$as_echo "no" >&6; }
4de997d1 11572fi
1c710c3c 11573
5213506e 11574
e8b05380
PB
11575 fi
11576 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11577 done
11578fi
1c710c3c 11579
e8b05380
PB
11580if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11581 set dummy as
11582 if test $build = $target ; then
11583 AS_FOR_TARGET="$2"
11584 else
11585 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11586 fi
1c00b503
PB
11587else
11588 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11589fi
2693c0b0 11590
d1f8db0c
PB
11591else
11592 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11593fi
11594
e8b05380
PB
11595
11596
11597
11598if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11599 if test -n "$with_build_time_tools"; then
5213506e
RW
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11601$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11602 if test -x $with_build_time_tools/dlltool; then
11603 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11604 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11606$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11607 else
5213506e
RW
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609$as_echo "no" >&6; }
d1f8db0c 11610 fi
e8b05380
PB
11611 elif test $build != $host && test $have_gcc_for_target = yes; then
11612 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11613 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11614 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11615 fi
11616fi
3e19841a 11617if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11618 # Extract the first word of "dlltool", so it can be a program name with args.
11619set dummy dlltool; ac_word=$2
5213506e
RW
11620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11621$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11622if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11623 $as_echo_n "(cached) " >&6
4de997d1 11624else
1c710c3c
DJ
11625 case $DLLTOOL_FOR_TARGET in
11626 [\\/]* | ?:[\\/]*)
e8b05380
PB
11627 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11628 ;;
e8b05380 11629 *)
1c710c3c
DJ
11630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11631for as_dir in $gcc_cv_tool_dirs
11632do
11633 IFS=$as_save_IFS
11634 test -z "$as_dir" && as_dir=.
5213506e 11635 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11637 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11639 break 2
11640 fi
11641done
5213506e
RW
11642 done
11643IFS=$as_save_IFS
1c710c3c 11644
e8b05380
PB
11645 ;;
11646esac
4de997d1 11647fi
1c710c3c 11648DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11649if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11651$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11652else
5213506e
RW
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654$as_echo "no" >&6; }
4de997d1
PB
11655fi
11656
5213506e 11657
e8b05380
PB
11658fi
11659if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11660
11661
11662if test -n "$DLLTOOL_FOR_TARGET"; then
11663 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11664elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11665 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11666fi
11667
11668if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11669 for ncn_progname in dlltool; do
11670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11671set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11673$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11674if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11675 $as_echo_n "(cached) " >&6
278a7a38
AO
11676else
11677 if test -n "$DLLTOOL_FOR_TARGET"; then
11678 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11679else
11680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11681for as_dir in $PATH
11682do
11683 IFS=$as_save_IFS
11684 test -z "$as_dir" && as_dir=.
5213506e 11685 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11687 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11689 break 2
11690 fi
11691done
5213506e
RW
11692 done
11693IFS=$as_save_IFS
278a7a38
AO
11694
11695fi
11696fi
11697DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11698if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11700$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11701else
5213506e
RW
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11703$as_echo "no" >&6; }
278a7a38
AO
11704fi
11705
5213506e 11706
278a7a38
AO
11707 done
11708fi
11709
11710if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11711 for ncn_progname in dlltool; do
5213506e
RW
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11713$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11714 if test -x $with_build_time_tools/${ncn_progname}; then
11715 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11717$as_echo "yes" >&6; }
e8b05380
PB
11718 break
11719 else
5213506e
RW
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721$as_echo "no" >&6; }
e8b05380
PB
11722 fi
11723 done
11724fi
11725
11726if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11727 for ncn_progname in dlltool; do
11728 if test -n "$ncn_target_tool_prefix"; then
11729 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11730set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11732$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11733if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11734 $as_echo_n "(cached) " >&6
4de997d1 11735else
e8b05380
PB
11736 if test -n "$DLLTOOL_FOR_TARGET"; then
11737 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11738else
1c710c3c
DJ
11739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11740for as_dir in $PATH
11741do
11742 IFS=$as_save_IFS
11743 test -z "$as_dir" && as_dir=.
5213506e 11744 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11746 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11748 break 2
11749 fi
11750done
5213506e
RW
11751 done
11752IFS=$as_save_IFS
1c710c3c 11753
4de997d1
PB
11754fi
11755fi
1c710c3c 11756DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11757if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11759$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11760else
5213506e
RW
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11762$as_echo "no" >&6; }
4de997d1 11763fi
4de997d1 11764
5213506e 11765
e8b05380
PB
11766 fi
11767 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11768 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11769set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11771$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11772if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11773 $as_echo_n "(cached) " >&6
4de997d1 11774else
e8b05380
PB
11775 if test -n "$DLLTOOL_FOR_TARGET"; then
11776 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11777else
1c710c3c
DJ
11778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11779for as_dir in $PATH
11780do
11781 IFS=$as_save_IFS
11782 test -z "$as_dir" && as_dir=.
5213506e 11783 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11785 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11787 break 2
11788 fi
11789done
5213506e
RW
11790 done
11791IFS=$as_save_IFS
1c710c3c 11792
4de997d1
PB
11793fi
11794fi
1c710c3c 11795DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11796if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11798$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11799else
5213506e
RW
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801$as_echo "no" >&6; }
4de997d1 11802fi
1c710c3c 11803
5213506e 11804
e8b05380
PB
11805 fi
11806 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11807 done
11808fi
1c710c3c 11809
e8b05380
PB
11810if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11811 set dummy dlltool
11812 if test $build = $target ; then
11813 DLLTOOL_FOR_TARGET="$2"
11814 else
11815 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11816 fi
1c00b503
PB
11817else
11818 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11819fi
11820
d1f8db0c
PB
11821else
11822 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11823fi
11824
4de997d1 11825
e8b05380
PB
11826
11827
11828if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11829 if test -n "$with_build_time_tools"; then
5213506e
RW
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11831$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11832 if test -x $with_build_time_tools/ld; then
11833 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11834 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11836$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11837 else
5213506e
RW
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839$as_echo "no" >&6; }
d1f8db0c 11840 fi
e8b05380
PB
11841 elif test $build != $host && test $have_gcc_for_target = yes; then
11842 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11843 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11844 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11845 fi
e8b05380 11846fi
3e19841a 11847if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11848 # Extract the first word of "ld", so it can be a program name with args.
11849set dummy ld; ac_word=$2
5213506e
RW
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11852if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
5213506e 11853 $as_echo_n "(cached) " >&6
4de997d1 11854else
1c710c3c
DJ
11855 case $LD_FOR_TARGET in
11856 [\\/]* | ?:[\\/]*)
e8b05380
PB
11857 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11858 ;;
e8b05380 11859 *)
1c710c3c
DJ
11860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11861for as_dir in $gcc_cv_tool_dirs
11862do
11863 IFS=$as_save_IFS
11864 test -z "$as_dir" && as_dir=.
5213506e 11865 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11867 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11869 break 2
11870 fi
11871done
5213506e
RW
11872 done
11873IFS=$as_save_IFS
1c710c3c 11874
e8b05380
PB
11875 ;;
11876esac
4de997d1 11877fi
1c710c3c 11878LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11879if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11881$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11882else
5213506e
RW
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884$as_echo "no" >&6; }
4de997d1 11885fi
2693c0b0 11886
5213506e 11887
e8b05380
PB
11888fi
11889if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11890
11891
11892if test -n "$LD_FOR_TARGET"; then
11893 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11894elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11895 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11896fi
11897
11898if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11899 for ncn_progname in ld; do
11900 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11901set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11904if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 11905 $as_echo_n "(cached) " >&6
278a7a38
AO
11906else
11907 if test -n "$LD_FOR_TARGET"; then
11908 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11909else
11910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911for as_dir in $PATH
11912do
11913 IFS=$as_save_IFS
11914 test -z "$as_dir" && as_dir=.
5213506e 11915 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11917 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11919 break 2
11920 fi
11921done
5213506e
RW
11922 done
11923IFS=$as_save_IFS
278a7a38
AO
11924
11925fi
11926fi
11927LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11928if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11930$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11931else
5213506e
RW
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933$as_echo "no" >&6; }
278a7a38
AO
11934fi
11935
5213506e 11936
278a7a38
AO
11937 done
11938fi
11939
11940if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11941 for ncn_progname in ld; do
5213506e
RW
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11943$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11944 if test -x $with_build_time_tools/${ncn_progname}; then
11945 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11947$as_echo "yes" >&6; }
e8b05380
PB
11948 break
11949 else
5213506e
RW
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951$as_echo "no" >&6; }
e8b05380
PB
11952 fi
11953 done
ca9f4b81
AO
11954fi
11955
e8b05380
PB
11956if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11957 for ncn_progname in ld; do
11958 if test -n "$ncn_target_tool_prefix"; then
11959 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11960set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11962$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11963if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 11964 $as_echo_n "(cached) " >&6
ca9f4b81 11965else
4de997d1
PB
11966 if test -n "$LD_FOR_TARGET"; then
11967 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11968else
1c710c3c
DJ
11969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11970for as_dir in $PATH
11971do
11972 IFS=$as_save_IFS
11973 test -z "$as_dir" && as_dir=.
5213506e 11974 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11976 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11978 break 2
11979 fi
11980done
5213506e
RW
11981 done
11982IFS=$as_save_IFS
1c710c3c 11983
ca9f4b81
AO
11984fi
11985fi
1c710c3c 11986LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11987if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11989$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11990else
5213506e
RW
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992$as_echo "no" >&6; }
ca9f4b81
AO
11993fi
11994
5213506e 11995
e8b05380
PB
11996 fi
11997 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11998 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11999set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12001$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12002if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 12003 $as_echo_n "(cached) " >&6
ca9f4b81 12004else
2693c0b0
PB
12005 if test -n "$LD_FOR_TARGET"; then
12006 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 12007else
1c710c3c
DJ
12008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12009for as_dir in $PATH
12010do
12011 IFS=$as_save_IFS
12012 test -z "$as_dir" && as_dir=.
5213506e 12013 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12015 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 12016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12017 break 2
12018 fi
12019done
5213506e
RW
12020 done
12021IFS=$as_save_IFS
1c710c3c 12022
ca9f4b81
AO
12023fi
12024fi
1c710c3c 12025LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 12026if test -n "$LD_FOR_TARGET"; then
5213506e
RW
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12028$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 12029else
5213506e
RW
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031$as_echo "no" >&6; }
ca9f4b81 12032fi
1c710c3c 12033
5213506e 12034
e8b05380
PB
12035 fi
12036 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12037 done
12038fi
1c710c3c 12039
2693c0b0
PB
12040if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12041 set dummy ld
12042 if test $build = $target ; then
12043 LD_FOR_TARGET="$2"
ca9f4b81 12044 else
2693c0b0 12045 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12046 fi
1c00b503
PB
12047else
12048 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
12049fi
12050
d1f8db0c
PB
12051else
12052 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
12053fi
12054
12055
12056
12057
12058if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12059 if test -n "$with_build_time_tools"; then
5213506e
RW
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12061$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12062 if test -x $with_build_time_tools/lipo; then
12063 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12064 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12066$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 12067 else
5213506e
RW
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12069$as_echo "no" >&6; }
d1f8db0c 12070 fi
e8b05380
PB
12071 elif test $build != $host && test $have_gcc_for_target = yes; then
12072 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
12073 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12074 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
12075 fi
12076fi
278a7a38
AO
12077if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12078 # Extract the first word of "lipo", so it can be a program name with args.
12079set dummy lipo; ac_word=$2
5213506e
RW
12080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12081$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12082if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
5213506e 12083 $as_echo_n "(cached) " >&6
278a7a38
AO
12084else
12085 case $LIPO_FOR_TARGET in
12086 [\\/]* | ?:[\\/]*)
12087 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12088 ;;
12089 *)
12090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12091for as_dir in $gcc_cv_tool_dirs
12092do
12093 IFS=$as_save_IFS
12094 test -z "$as_dir" && as_dir=.
5213506e 12095 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12097 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12099 break 2
12100 fi
12101done
5213506e
RW
12102 done
12103IFS=$as_save_IFS
278a7a38
AO
12104
12105 ;;
12106esac
12107fi
12108LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 12109if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12111$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 12112else
5213506e
RW
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114$as_echo "no" >&6; }
278a7a38
AO
12115fi
12116
5213506e 12117
278a7a38
AO
12118fi
12119if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12120
12121
12122if test -n "$LIPO_FOR_TARGET"; then
12123 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12124elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12125 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12126fi
12127
12128if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12129 for ncn_progname in lipo; do
12130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12131set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12133$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12134if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12135 $as_echo_n "(cached) " >&6
e8b05380 12136else
278a7a38
AO
12137 if test -n "$LIPO_FOR_TARGET"; then
12138 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12139else
12140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141for as_dir in $PATH
1c710c3c
DJ
12142do
12143 IFS=$as_save_IFS
12144 test -z "$as_dir" && as_dir=.
5213506e 12145 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12147 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12149 break 2
12150 fi
12151done
5213506e
RW
12152 done
12153IFS=$as_save_IFS
1c710c3c 12154
e8b05380 12155fi
278a7a38
AO
12156fi
12157LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 12158if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12160$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 12161else
5213506e
RW
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163$as_echo "no" >&6; }
e8b05380
PB
12164fi
12165
5213506e 12166
278a7a38 12167 done
e8b05380 12168fi
278a7a38
AO
12169
12170if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12171 for ncn_progname in lipo; do
5213506e
RW
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12173$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12174 if test -x $with_build_time_tools/${ncn_progname}; then
12175 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12177$as_echo "yes" >&6; }
e8b05380
PB
12178 break
12179 else
5213506e
RW
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12181$as_echo "no" >&6; }
e8b05380
PB
12182 fi
12183 done
12184fi
12185
12186if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12187 for ncn_progname in lipo; do
12188 if test -n "$ncn_target_tool_prefix"; then
12189 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12190set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12192$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12193if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12194 $as_echo_n "(cached) " >&6
040b1c5a
GK
12195else
12196 if test -n "$LIPO_FOR_TARGET"; then
12197 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12198else
1c710c3c
DJ
12199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12200for as_dir in $PATH
12201do
12202 IFS=$as_save_IFS
12203 test -z "$as_dir" && as_dir=.
5213506e 12204 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12206 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12208 break 2
12209 fi
12210done
5213506e
RW
12211 done
12212IFS=$as_save_IFS
1c710c3c 12213
040b1c5a
GK
12214fi
12215fi
1c710c3c 12216LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12217if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12219$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12220else
5213506e
RW
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222$as_echo "no" >&6; }
040b1c5a
GK
12223fi
12224
5213506e 12225
e8b05380
PB
12226 fi
12227 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12228 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12229set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12231$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12232if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12233 $as_echo_n "(cached) " >&6
040b1c5a
GK
12234else
12235 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
12236 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12237else
1c710c3c
DJ
12238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239for as_dir in $PATH
12240do
12241 IFS=$as_save_IFS
12242 test -z "$as_dir" && as_dir=.
5213506e 12243 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12245 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12247 break 2
12248 fi
12249done
5213506e
RW
12250 done
12251IFS=$as_save_IFS
1c710c3c 12252
040b1c5a
GK
12253fi
12254fi
1c710c3c 12255LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12256if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12258$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12259else
5213506e
RW
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261$as_echo "no" >&6; }
040b1c5a 12262fi
1c710c3c 12263
5213506e 12264
e8b05380
PB
12265 fi
12266 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12267 done
12268fi
1c710c3c 12269
040b1c5a
GK
12270if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12271 set dummy lipo
12272 if test $build = $target ; then
12273 LIPO_FOR_TARGET="$2"
12274 else
12275 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12276 fi
1c00b503
PB
12277else
12278 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
12279fi
12280
d1f8db0c
PB
12281else
12282 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
12283fi
12284
12285
12286
12287
12288if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12289 if test -n "$with_build_time_tools"; then
5213506e
RW
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12291$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12292 if test -x $with_build_time_tools/nm; then
12293 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12294 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12296$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 12297 else
5213506e
RW
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299$as_echo "no" >&6; }
d1f8db0c 12300 fi
e8b05380
PB
12301 elif test $build != $host && test $have_gcc_for_target = yes; then
12302 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
12303 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12304 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
12305 fi
12306fi
3e19841a 12307if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12308 # Extract the first word of "nm", so it can be a program name with args.
12309set dummy nm; ac_word=$2
5213506e
RW
12310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12311$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12312if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
5213506e 12313 $as_echo_n "(cached) " >&6
e8b05380 12314else
1c710c3c
DJ
12315 case $NM_FOR_TARGET in
12316 [\\/]* | ?:[\\/]*)
e8b05380
PB
12317 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12318 ;;
e8b05380 12319 *)
1c710c3c
DJ
12320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321for as_dir in $gcc_cv_tool_dirs
12322do
12323 IFS=$as_save_IFS
12324 test -z "$as_dir" && as_dir=.
5213506e 12325 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12327 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12329 break 2
12330 fi
12331done
5213506e
RW
12332 done
12333IFS=$as_save_IFS
1c710c3c 12334
e8b05380
PB
12335 ;;
12336esac
12337fi
1c710c3c 12338NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12339if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12341$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12342else
5213506e
RW
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344$as_echo "no" >&6; }
e8b05380
PB
12345fi
12346
5213506e 12347
e8b05380
PB
12348fi
12349if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12350
12351
12352if test -n "$NM_FOR_TARGET"; then
12353 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12354elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12355 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12356fi
12357
12358if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12359 for ncn_progname in nm; do
12360 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12361set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12363$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12364if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12365 $as_echo_n "(cached) " >&6
278a7a38
AO
12366else
12367 if test -n "$NM_FOR_TARGET"; then
12368 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12369else
12370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12371for as_dir in $PATH
12372do
12373 IFS=$as_save_IFS
12374 test -z "$as_dir" && as_dir=.
5213506e 12375 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12377 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12379 break 2
12380 fi
12381done
5213506e
RW
12382 done
12383IFS=$as_save_IFS
278a7a38
AO
12384
12385fi
12386fi
12387NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12388if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12390$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12391else
5213506e
RW
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393$as_echo "no" >&6; }
278a7a38
AO
12394fi
12395
5213506e 12396
278a7a38
AO
12397 done
12398fi
12399
12400if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12401 for ncn_progname in nm; do
5213506e
RW
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12403$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12404 if test -x $with_build_time_tools/${ncn_progname}; then
12405 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12407$as_echo "yes" >&6; }
e8b05380
PB
12408 break
12409 else
5213506e
RW
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411$as_echo "no" >&6; }
e8b05380
PB
12412 fi
12413 done
12414fi
12415
12416if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12417 for ncn_progname in nm; do
12418 if test -n "$ncn_target_tool_prefix"; then
12419 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12420set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12422$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12423if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12424 $as_echo_n "(cached) " >&6
ca9f4b81 12425else
4de997d1
PB
12426 if test -n "$NM_FOR_TARGET"; then
12427 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12428else
1c710c3c
DJ
12429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12430for as_dir in $PATH
12431do
12432 IFS=$as_save_IFS
12433 test -z "$as_dir" && as_dir=.
5213506e 12434 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12436 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12438 break 2
12439 fi
12440done
5213506e
RW
12441 done
12442IFS=$as_save_IFS
1c710c3c 12443
ca9f4b81
AO
12444fi
12445fi
1c710c3c 12446NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12447if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12449$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12450else
5213506e
RW
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12452$as_echo "no" >&6; }
ca9f4b81
AO
12453fi
12454
5213506e 12455
e8b05380
PB
12456 fi
12457 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12458 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12459set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12461$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12462if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12463 $as_echo_n "(cached) " >&6
ca9f4b81 12464else
2693c0b0
PB
12465 if test -n "$NM_FOR_TARGET"; then
12466 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12467else
1c710c3c
DJ
12468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469for as_dir in $PATH
12470do
12471 IFS=$as_save_IFS
12472 test -z "$as_dir" && as_dir=.
5213506e 12473 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12475 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12477 break 2
12478 fi
12479done
5213506e
RW
12480 done
12481IFS=$as_save_IFS
1c710c3c 12482
ca9f4b81
AO
12483fi
12484fi
1c710c3c 12485NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12486if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12488$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12489else
5213506e
RW
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491$as_echo "no" >&6; }
ca9f4b81 12492fi
1c710c3c 12493
5213506e 12494
e8b05380
PB
12495 fi
12496 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12497 done
12498fi
1c710c3c 12499
2693c0b0
PB
12500if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12501 set dummy nm
12502 if test $build = $target ; then
12503 NM_FOR_TARGET="$2"
ca9f4b81 12504 else
2693c0b0 12505 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12506 fi
1c00b503
PB
12507else
12508 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12509fi
12510
d1f8db0c
PB
12511else
12512 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12513fi
12514
12515
12516
12517
9bccfdf5
AP
12518if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12519 if test -n "$with_build_time_tools"; then
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12521$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12522 if test -x $with_build_time_tools/objcopy; then
12523 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12524 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12526$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12527 else
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529$as_echo "no" >&6; }
12530 fi
12531 elif test $build != $host && test $have_gcc_for_target = yes; then
12532 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12533 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12534 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12535 fi
12536fi
12537if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12538 # Extract the first word of "objcopy", so it can be a program name with args.
12539set dummy objcopy; ac_word=$2
12540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12541$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12542if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12543 $as_echo_n "(cached) " >&6
12544else
12545 case $OBJCOPY_FOR_TARGET in
12546 [\\/]* | ?:[\\/]*)
12547 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12548 ;;
12549 *)
12550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12551for as_dir in $gcc_cv_tool_dirs
12552do
12553 IFS=$as_save_IFS
12554 test -z "$as_dir" && as_dir=.
12555 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12557 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12559 break 2
12560 fi
12561done
12562 done
12563IFS=$as_save_IFS
12564
12565 ;;
12566esac
12567fi
12568OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12569if test -n "$OBJCOPY_FOR_TARGET"; then
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12571$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12572else
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574$as_echo "no" >&6; }
12575fi
12576
12577
12578fi
12579if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12580
12581
12582if test -n "$OBJCOPY_FOR_TARGET"; then
12583 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12584elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12585 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12586fi
12587
12588if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12589 for ncn_progname in objcopy; do
12590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12591set dummy ${ncn_progname}; ac_word=$2
12592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12593$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12594if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12595 $as_echo_n "(cached) " >&6
12596else
12597 if test -n "$OBJCOPY_FOR_TARGET"; then
12598 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12599else
12600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601for as_dir in $PATH
12602do
12603 IFS=$as_save_IFS
12604 test -z "$as_dir" && as_dir=.
12605 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12607 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12609 break 2
12610 fi
12611done
12612 done
12613IFS=$as_save_IFS
12614
12615fi
12616fi
12617OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12618if test -n "$OBJCOPY_FOR_TARGET"; then
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12620$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12621else
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623$as_echo "no" >&6; }
12624fi
12625
12626
12627 done
12628fi
12629
12630if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12631 for ncn_progname in objcopy; do
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12633$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12634 if test -x $with_build_time_tools/${ncn_progname}; then
12635 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12637$as_echo "yes" >&6; }
12638 break
12639 else
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12641$as_echo "no" >&6; }
12642 fi
12643 done
12644fi
12645
12646if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12647 for ncn_progname in objcopy; do
12648 if test -n "$ncn_target_tool_prefix"; then
12649 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12650set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12652$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12653if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12654 $as_echo_n "(cached) " >&6
12655else
12656 if test -n "$OBJCOPY_FOR_TARGET"; then
12657 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12658else
12659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12660for as_dir in $PATH
12661do
12662 IFS=$as_save_IFS
12663 test -z "$as_dir" && as_dir=.
12664 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12666 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12668 break 2
12669 fi
12670done
12671 done
12672IFS=$as_save_IFS
12673
12674fi
12675fi
12676OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12677if test -n "$OBJCOPY_FOR_TARGET"; then
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12679$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12680else
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12682$as_echo "no" >&6; }
12683fi
12684
12685
12686 fi
12687 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12688 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12689set dummy ${ncn_progname}; ac_word=$2
12690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12691$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12692if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12693 $as_echo_n "(cached) " >&6
12694else
12695 if test -n "$OBJCOPY_FOR_TARGET"; then
12696 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12697else
12698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12699for as_dir in $PATH
12700do
12701 IFS=$as_save_IFS
12702 test -z "$as_dir" && as_dir=.
12703 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12705 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12707 break 2
12708 fi
12709done
12710 done
12711IFS=$as_save_IFS
12712
12713fi
12714fi
12715OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12716if test -n "$OBJCOPY_FOR_TARGET"; then
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12718$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12719else
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721$as_echo "no" >&6; }
12722fi
12723
12724
12725 fi
12726 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12727 done
12728fi
12729
12730if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12731 set dummy objcopy
12732 if test $build = $target ; then
12733 OBJCOPY_FOR_TARGET="$2"
12734 else
12735 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12736 fi
12737else
12738 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12739fi
12740
12741else
12742 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12743fi
12744
12745
12746
12747
e8b05380
PB
12748if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12749 if test -n "$with_build_time_tools"; then
5213506e
RW
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12751$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12752 if test -x $with_build_time_tools/objdump; then
12753 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12754 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12756$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12757 else
5213506e
RW
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759$as_echo "no" >&6; }
d1f8db0c 12760 fi
e8b05380
PB
12761 elif test $build != $host && test $have_gcc_for_target = yes; then
12762 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12763 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12764 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12765 fi
12766fi
3e19841a 12767if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12768 # Extract the first word of "objdump", so it can be a program name with args.
12769set dummy objdump; ac_word=$2
5213506e
RW
12770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12771$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12772if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12773 $as_echo_n "(cached) " >&6
e8b05380 12774else
1c710c3c
DJ
12775 case $OBJDUMP_FOR_TARGET in
12776 [\\/]* | ?:[\\/]*)
e8b05380
PB
12777 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12778 ;;
e8b05380 12779 *)
1c710c3c
DJ
12780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12781for as_dir in $gcc_cv_tool_dirs
12782do
12783 IFS=$as_save_IFS
12784 test -z "$as_dir" && as_dir=.
5213506e 12785 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12787 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12789 break 2
12790 fi
12791done
5213506e
RW
12792 done
12793IFS=$as_save_IFS
1c710c3c 12794
e8b05380
PB
12795 ;;
12796esac
12797fi
1c710c3c 12798OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12799if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12801$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12802else
5213506e
RW
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804$as_echo "no" >&6; }
e8b05380
PB
12805fi
12806
5213506e 12807
e8b05380
PB
12808fi
12809if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12810
12811
12812if test -n "$OBJDUMP_FOR_TARGET"; then
12813 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12814elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12815 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12816fi
12817
12818if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12819 for ncn_progname in objdump; do
12820 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12821set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12823$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12824if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12825 $as_echo_n "(cached) " >&6
278a7a38
AO
12826else
12827 if test -n "$OBJDUMP_FOR_TARGET"; then
12828 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12829else
12830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12831for as_dir in $PATH
12832do
12833 IFS=$as_save_IFS
12834 test -z "$as_dir" && as_dir=.
5213506e 12835 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12837 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12839 break 2
12840 fi
12841done
5213506e
RW
12842 done
12843IFS=$as_save_IFS
278a7a38
AO
12844
12845fi
12846fi
12847OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12848if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12850$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12851else
5213506e
RW
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12853$as_echo "no" >&6; }
278a7a38
AO
12854fi
12855
5213506e 12856
278a7a38
AO
12857 done
12858fi
12859
12860if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12861 for ncn_progname in objdump; do
5213506e
RW
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12863$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12864 if test -x $with_build_time_tools/${ncn_progname}; then
12865 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12867$as_echo "yes" >&6; }
e8b05380
PB
12868 break
12869 else
5213506e
RW
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12871$as_echo "no" >&6; }
e8b05380
PB
12872 fi
12873 done
12874fi
12875
12876if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12877 for ncn_progname in objdump; do
12878 if test -n "$ncn_target_tool_prefix"; then
12879 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12880set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12882$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12883if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12884 $as_echo_n "(cached) " >&6
d739199a
DJ
12885else
12886 if test -n "$OBJDUMP_FOR_TARGET"; then
12887 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12888else
1c710c3c
DJ
12889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12890for as_dir in $PATH
12891do
12892 IFS=$as_save_IFS
12893 test -z "$as_dir" && as_dir=.
5213506e 12894 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12896 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12898 break 2
12899 fi
12900done
5213506e
RW
12901 done
12902IFS=$as_save_IFS
1c710c3c 12903
d739199a
DJ
12904fi
12905fi
1c710c3c 12906OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12907if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12909$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12910else
5213506e
RW
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12912$as_echo "no" >&6; }
d739199a
DJ
12913fi
12914
5213506e 12915
e8b05380
PB
12916 fi
12917 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12918 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12919set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12921$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12922if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12923 $as_echo_n "(cached) " >&6
d739199a
DJ
12924else
12925 if test -n "$OBJDUMP_FOR_TARGET"; then
12926 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12927else
1c710c3c
DJ
12928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929for as_dir in $PATH
12930do
12931 IFS=$as_save_IFS
12932 test -z "$as_dir" && as_dir=.
5213506e 12933 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12935 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12937 break 2
12938 fi
12939done
5213506e
RW
12940 done
12941IFS=$as_save_IFS
1c710c3c 12942
d739199a
DJ
12943fi
12944fi
1c710c3c 12945OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12946if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12948$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12949else
5213506e
RW
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951$as_echo "no" >&6; }
d739199a 12952fi
1c710c3c 12953
5213506e 12954
e8b05380
PB
12955 fi
12956 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12957 done
12958fi
1c710c3c 12959
d739199a
DJ
12960if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12961 set dummy objdump
12962 if test $build = $target ; then
12963 OBJDUMP_FOR_TARGET="$2"
12964 else
12965 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12966 fi
1c00b503
PB
12967else
12968 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12969fi
12970
d1f8db0c
PB
12971else
12972 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12973fi
12974
12975
12976
12977
e4a9a572
IS
12978if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
12979 if test -n "$with_build_time_tools"; then
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
12981$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
12982 if test -x $with_build_time_tools/otool; then
12983 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
12984 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
12986$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
12987 else
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989$as_echo "no" >&6; }
12990 fi
12991 elif test $build != $host && test $have_gcc_for_target = yes; then
12992 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
12993 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
12994 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
12995 fi
12996fi
12997if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12998 # Extract the first word of "otool", so it can be a program name with args.
12999set dummy otool; ac_word=$2
13000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13001$as_echo_n "checking for $ac_word... " >&6; }
13002if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
13003 $as_echo_n "(cached) " >&6
13004else
13005 case $OTOOL_FOR_TARGET in
13006 [\\/]* | ?:[\\/]*)
13007 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
13008 ;;
13009 *)
13010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13011for as_dir in $gcc_cv_tool_dirs
13012do
13013 IFS=$as_save_IFS
13014 test -z "$as_dir" && as_dir=.
13015 for ac_exec_ext in '' $ac_executable_extensions; do
13016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13017 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13019 break 2
13020 fi
13021done
13022 done
13023IFS=$as_save_IFS
13024
13025 ;;
13026esac
13027fi
13028OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13029if test -n "$OTOOL_FOR_TARGET"; then
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13031$as_echo "$OTOOL_FOR_TARGET" >&6; }
13032else
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034$as_echo "no" >&6; }
13035fi
13036
13037
13038fi
13039if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13040
13041
13042if test -n "$OTOOL_FOR_TARGET"; then
13043 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13044elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13045 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13046fi
13047
13048if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13049 for ncn_progname in otool; do
13050 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13051set dummy ${ncn_progname}; ac_word=$2
13052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13053$as_echo_n "checking for $ac_word... " >&6; }
13054if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13055 $as_echo_n "(cached) " >&6
13056else
13057 if test -n "$OTOOL_FOR_TARGET"; then
13058 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13059else
13060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13061for as_dir in $PATH
13062do
13063 IFS=$as_save_IFS
13064 test -z "$as_dir" && as_dir=.
13065 for ac_exec_ext in '' $ac_executable_extensions; do
13066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13067 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13069 break 2
13070 fi
13071done
13072 done
13073IFS=$as_save_IFS
13074
13075fi
13076fi
13077OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13078if test -n "$OTOOL_FOR_TARGET"; then
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13080$as_echo "$OTOOL_FOR_TARGET" >&6; }
13081else
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13083$as_echo "no" >&6; }
13084fi
13085
13086
13087 done
13088fi
13089
13090if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
13091 for ncn_progname in otool; do
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13093$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13094 if test -x $with_build_time_tools/${ncn_progname}; then
13095 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13097$as_echo "yes" >&6; }
13098 break
13099 else
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13101$as_echo "no" >&6; }
13102 fi
13103 done
13104fi
13105
13106if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13107 for ncn_progname in otool; do
13108 if test -n "$ncn_target_tool_prefix"; then
13109 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13110set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13112$as_echo_n "checking for $ac_word... " >&6; }
13113if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13114 $as_echo_n "(cached) " >&6
13115else
13116 if test -n "$OTOOL_FOR_TARGET"; then
13117 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13118else
13119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13120for as_dir in $PATH
13121do
13122 IFS=$as_save_IFS
13123 test -z "$as_dir" && as_dir=.
13124 for ac_exec_ext in '' $ac_executable_extensions; do
13125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13126 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13128 break 2
13129 fi
13130done
13131 done
13132IFS=$as_save_IFS
13133
13134fi
13135fi
13136OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13137if test -n "$OTOOL_FOR_TARGET"; then
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13139$as_echo "$OTOOL_FOR_TARGET" >&6; }
13140else
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13142$as_echo "no" >&6; }
13143fi
13144
13145
13146 fi
13147 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
13148 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13149set dummy ${ncn_progname}; ac_word=$2
13150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13151$as_echo_n "checking for $ac_word... " >&6; }
13152if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13153 $as_echo_n "(cached) " >&6
13154else
13155 if test -n "$OTOOL_FOR_TARGET"; then
13156 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13157else
13158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13159for as_dir in $PATH
13160do
13161 IFS=$as_save_IFS
13162 test -z "$as_dir" && as_dir=.
13163 for ac_exec_ext in '' $ac_executable_extensions; do
13164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13165 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13167 break 2
13168 fi
13169done
13170 done
13171IFS=$as_save_IFS
13172
13173fi
13174fi
13175OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13176if test -n "$OTOOL_FOR_TARGET"; then
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13178$as_echo "$OTOOL_FOR_TARGET" >&6; }
13179else
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181$as_echo "no" >&6; }
13182fi
13183
13184
13185 fi
13186 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
13187 done
13188fi
13189
13190if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
13191 set dummy otool
13192 if test $build = $target ; then
13193 OTOOL_FOR_TARGET="$2"
13194 else
13195 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
13196 fi
13197else
13198 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
13199fi
13200
13201else
13202 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13203fi
13204
13205
13206
13207
e8b05380
PB
13208if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13209 if test -n "$with_build_time_tools"; then
5213506e
RW
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13211$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13212 if test -x $with_build_time_tools/ranlib; then
13213 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13214 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13216$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 13217 else
5213506e
RW
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219$as_echo "no" >&6; }
d1f8db0c 13220 fi
e8b05380
PB
13221 elif test $build != $host && test $have_gcc_for_target = yes; then
13222 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
13223 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13224 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
13225 fi
13226fi
3e19841a 13227if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13228 # Extract the first word of "ranlib", so it can be a program name with args.
13229set dummy ranlib; ac_word=$2
5213506e
RW
13230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13231$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13232if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
5213506e 13233 $as_echo_n "(cached) " >&6
e8b05380 13234else
1c710c3c
DJ
13235 case $RANLIB_FOR_TARGET in
13236 [\\/]* | ?:[\\/]*)
e8b05380
PB
13237 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13238 ;;
e8b05380 13239 *)
1c710c3c
DJ
13240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13241for as_dir in $gcc_cv_tool_dirs
13242do
13243 IFS=$as_save_IFS
13244 test -z "$as_dir" && as_dir=.
5213506e 13245 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13247 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13249 break 2
13250 fi
13251done
5213506e
RW
13252 done
13253IFS=$as_save_IFS
1c710c3c 13254
e8b05380
PB
13255 ;;
13256esac
13257fi
1c710c3c 13258RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 13259if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13261$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 13262else
5213506e
RW
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264$as_echo "no" >&6; }
e8b05380
PB
13265fi
13266
5213506e 13267
e8b05380
PB
13268fi
13269if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
13270
13271
13272if test -n "$RANLIB_FOR_TARGET"; then
13273 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13274elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13275 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13276fi
13277
13278if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13279 for ncn_progname in ranlib; do
13280 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13281set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13283$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13284if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 13285 $as_echo_n "(cached) " >&6
278a7a38
AO
13286else
13287 if test -n "$RANLIB_FOR_TARGET"; then
13288 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13289else
13290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13291for as_dir in $PATH
13292do
13293 IFS=$as_save_IFS
13294 test -z "$as_dir" && as_dir=.
5213506e 13295 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13297 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 13298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13299 break 2
13300 fi
13301done
5213506e
RW
13302 done
13303IFS=$as_save_IFS
278a7a38
AO
13304
13305fi
13306fi
13307RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13308if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13310$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 13311else
5213506e
RW
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13313$as_echo "no" >&6; }
278a7a38
AO
13314fi
13315
5213506e 13316
278a7a38
AO
13317 done
13318fi
13319
13320if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13321 for ncn_progname in ranlib; do
5213506e
RW
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13323$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13324 if test -x $with_build_time_tools/${ncn_progname}; then
13325 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13327$as_echo "yes" >&6; }
e8b05380
PB
13328 break
13329 else
5213506e
RW
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13331$as_echo "no" >&6; }
e8b05380
PB
13332 fi
13333 done
13334fi
13335
13336if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13337 for ncn_progname in ranlib; do
13338 if test -n "$ncn_target_tool_prefix"; then
13339 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 13340set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13342$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13343if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 13344 $as_echo_n "(cached) " >&6
ca9f4b81 13345else
4de997d1
PB
13346 if test -n "$RANLIB_FOR_TARGET"; then
13347 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 13348else
1c710c3c
DJ
13349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13350for as_dir in $PATH
13351do
13352 IFS=$as_save_IFS
13353 test -z "$as_dir" && as_dir=.
5213506e 13354 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13356 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13358 break 2
13359 fi
13360done
5213506e
RW
13361 done
13362IFS=$as_save_IFS
1c710c3c 13363
ca9f4b81
AO
13364fi
13365fi
1c710c3c 13366RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 13367if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13369$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 13370else
5213506e
RW
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372$as_echo "no" >&6; }
ca9f4b81
AO
13373fi
13374
5213506e 13375
e8b05380
PB
13376 fi
13377 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13378 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13379set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13381$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13382if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 13383 $as_echo_n "(cached) " >&6
ca9f4b81 13384else
2693c0b0
PB
13385 if test -n "$RANLIB_FOR_TARGET"; then
13386 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 13387else
1c710c3c
DJ
13388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13389for as_dir in $PATH
13390do
13391 IFS=$as_save_IFS
13392 test -z "$as_dir" && as_dir=.
5213506e 13393 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13395 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 13396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13397 break 2
13398 fi
13399done
5213506e
RW
13400 done
13401IFS=$as_save_IFS
1c710c3c 13402
ca9f4b81
AO
13403fi
13404fi
1c710c3c 13405RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 13406if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13408$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 13409else
5213506e
RW
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411$as_echo "no" >&6; }
ca9f4b81 13412fi
1c710c3c 13413
5213506e 13414
e8b05380
PB
13415 fi
13416 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13417 done
13418fi
1c710c3c 13419
e8b05380
PB
13420if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13421 set dummy ranlib
13422 if test $build = $target ; then
13423 RANLIB_FOR_TARGET="$2"
13424 else
13425 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13426 fi
1c00b503
PB
13427else
13428 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 13429fi
2693c0b0 13430
d1f8db0c
PB
13431else
13432 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
13433fi
13434
e8b05380
PB
13435
13436
13437
e7a82751
RM
13438if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13439 if test -n "$with_build_time_tools"; then
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13441$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13442 if test -x $with_build_time_tools/readelf; then
13443 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13444 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13446$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13447 else
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449$as_echo "no" >&6; }
13450 fi
13451 elif test $build != $host && test $have_gcc_for_target = yes; then
13452 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13453 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13454 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13455 fi
13456fi
13457if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13458 # Extract the first word of "readelf", so it can be a program name with args.
13459set dummy readelf; ac_word=$2
13460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13461$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13462if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13463 $as_echo_n "(cached) " >&6
13464else
13465 case $READELF_FOR_TARGET in
13466 [\\/]* | ?:[\\/]*)
13467 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13468 ;;
13469 *)
13470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13471for as_dir in $gcc_cv_tool_dirs
13472do
13473 IFS=$as_save_IFS
13474 test -z "$as_dir" && as_dir=.
13475 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13477 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13479 break 2
13480 fi
13481done
13482 done
13483IFS=$as_save_IFS
13484
13485 ;;
13486esac
13487fi
13488READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13489if test -n "$READELF_FOR_TARGET"; then
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13491$as_echo "$READELF_FOR_TARGET" >&6; }
13492else
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13494$as_echo "no" >&6; }
13495fi
13496
13497
13498fi
13499if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13500
13501
13502if test -n "$READELF_FOR_TARGET"; then
13503 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13504elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13505 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13506fi
13507
13508if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13509 for ncn_progname in readelf; do
13510 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13511set dummy ${ncn_progname}; ac_word=$2
13512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13513$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13514if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13515 $as_echo_n "(cached) " >&6
13516else
13517 if test -n "$READELF_FOR_TARGET"; then
13518 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13519else
13520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13521for as_dir in $PATH
13522do
13523 IFS=$as_save_IFS
13524 test -z "$as_dir" && as_dir=.
13525 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13527 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13529 break 2
13530 fi
13531done
13532 done
13533IFS=$as_save_IFS
13534
13535fi
13536fi
13537READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13538if test -n "$READELF_FOR_TARGET"; then
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13540$as_echo "$READELF_FOR_TARGET" >&6; }
13541else
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13543$as_echo "no" >&6; }
13544fi
13545
13546
13547 done
13548fi
13549
13550if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13551 for ncn_progname in readelf; do
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13553$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13554 if test -x $with_build_time_tools/${ncn_progname}; then
13555 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13557$as_echo "yes" >&6; }
13558 break
13559 else
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13561$as_echo "no" >&6; }
13562 fi
13563 done
13564fi
13565
13566if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13567 for ncn_progname in readelf; do
13568 if test -n "$ncn_target_tool_prefix"; then
13569 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13570set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13572$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13573if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13574 $as_echo_n "(cached) " >&6
13575else
13576 if test -n "$READELF_FOR_TARGET"; then
13577 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13578else
13579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13580for as_dir in $PATH
13581do
13582 IFS=$as_save_IFS
13583 test -z "$as_dir" && as_dir=.
13584 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13586 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13588 break 2
13589 fi
13590done
13591 done
13592IFS=$as_save_IFS
13593
13594fi
13595fi
13596READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13597if test -n "$READELF_FOR_TARGET"; then
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13599$as_echo "$READELF_FOR_TARGET" >&6; }
13600else
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602$as_echo "no" >&6; }
13603fi
13604
13605
13606 fi
13607 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13608 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13609set dummy ${ncn_progname}; ac_word=$2
13610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13611$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13612if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13613 $as_echo_n "(cached) " >&6
13614else
13615 if test -n "$READELF_FOR_TARGET"; then
13616 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13617else
13618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13619for as_dir in $PATH
13620do
13621 IFS=$as_save_IFS
13622 test -z "$as_dir" && as_dir=.
13623 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13625 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13627 break 2
13628 fi
13629done
13630 done
13631IFS=$as_save_IFS
13632
13633fi
13634fi
13635READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13636if test -n "$READELF_FOR_TARGET"; then
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13638$as_echo "$READELF_FOR_TARGET" >&6; }
13639else
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641$as_echo "no" >&6; }
13642fi
13643
13644
13645 fi
13646 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13647 done
13648fi
13649
13650if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13651 set dummy readelf
13652 if test $build = $target ; then
13653 READELF_FOR_TARGET="$2"
13654 else
13655 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13656 fi
13657else
13658 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13659fi
13660
13661else
13662 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13663fi
13664
13665
13666
13667
e8b05380
PB
13668if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13669 if test -n "$with_build_time_tools"; then
5213506e
RW
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13671$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13672 if test -x $with_build_time_tools/strip; then
13673 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13674 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13676$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 13677 else
5213506e
RW
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679$as_echo "no" >&6; }
d1f8db0c 13680 fi
e8b05380
PB
13681 elif test $build != $host && test $have_gcc_for_target = yes; then
13682 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
13683 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13684 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
13685 fi
13686fi
3e19841a 13687if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13688 # Extract the first word of "strip", so it can be a program name with args.
13689set dummy strip; ac_word=$2
5213506e
RW
13690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13691$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13692if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
5213506e 13693 $as_echo_n "(cached) " >&6
e8b05380 13694else
1c710c3c
DJ
13695 case $STRIP_FOR_TARGET in
13696 [\\/]* | ?:[\\/]*)
e8b05380
PB
13697 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13698 ;;
e8b05380 13699 *)
1c710c3c
DJ
13700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13701for as_dir in $gcc_cv_tool_dirs
13702do
13703 IFS=$as_save_IFS
13704 test -z "$as_dir" && as_dir=.
5213506e 13705 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13707 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13709 break 2
13710 fi
13711done
5213506e
RW
13712 done
13713IFS=$as_save_IFS
1c710c3c 13714
e8b05380
PB
13715 ;;
13716esac
13717fi
1c710c3c 13718STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 13719if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13721$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 13722else
5213506e
RW
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13724$as_echo "no" >&6; }
e8b05380
PB
13725fi
13726
5213506e 13727
e8b05380
PB
13728fi
13729if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
13730
13731
13732if test -n "$STRIP_FOR_TARGET"; then
13733 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13734elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13735 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13736fi
13737
13738if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13739 for ncn_progname in strip; do
13740 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13741set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13743$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13744if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 13745 $as_echo_n "(cached) " >&6
278a7a38
AO
13746else
13747 if test -n "$STRIP_FOR_TARGET"; then
13748 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13749else
13750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13751for as_dir in $PATH
13752do
13753 IFS=$as_save_IFS
13754 test -z "$as_dir" && as_dir=.
5213506e 13755 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13757 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13759 break 2
13760 fi
13761done
5213506e
RW
13762 done
13763IFS=$as_save_IFS
278a7a38
AO
13764
13765fi
13766fi
13767STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13768if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13770$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13771else
5213506e
RW
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13773$as_echo "no" >&6; }
278a7a38
AO
13774fi
13775
5213506e 13776
278a7a38
AO
13777 done
13778fi
13779
13780if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13781 for ncn_progname in strip; do
5213506e
RW
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13783$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13784 if test -x $with_build_time_tools/${ncn_progname}; then
13785 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13787$as_echo "yes" >&6; }
e8b05380
PB
13788 break
13789 else
5213506e
RW
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13791$as_echo "no" >&6; }
e8b05380
PB
13792 fi
13793 done
13794fi
13795
13796if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13797 for ncn_progname in strip; do
13798 if test -n "$ncn_target_tool_prefix"; then
13799 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13800set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13802$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13803if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 13804 $as_echo_n "(cached) " >&6
af71363e
AS
13805else
13806 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13807 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13808else
13809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13810for as_dir in $PATH
13811do
13812 IFS=$as_save_IFS
13813 test -z "$as_dir" && as_dir=.
5213506e 13814 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13816 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13818 break 2
13819 fi
13820done
5213506e
RW
13821 done
13822IFS=$as_save_IFS
1c710c3c 13823
040b1c5a
GK
13824fi
13825fi
1c710c3c 13826STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13827if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13829$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13830else
5213506e
RW
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13832$as_echo "no" >&6; }
040b1c5a
GK
13833fi
13834
5213506e 13835
e8b05380
PB
13836 fi
13837 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13838 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13839set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13841$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13842if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 13843 $as_echo_n "(cached) " >&6
040b1c5a
GK
13844else
13845 if test -n "$STRIP_FOR_TARGET"; then
13846 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13847else
1c710c3c
DJ
13848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13849for as_dir in $PATH
13850do
13851 IFS=$as_save_IFS
13852 test -z "$as_dir" && as_dir=.
5213506e 13853 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13855 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13857 break 2
13858 fi
13859done
5213506e
RW
13860 done
13861IFS=$as_save_IFS
1c710c3c 13862
040b1c5a
GK
13863fi
13864fi
1c710c3c 13865STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13866if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13868$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13869else
5213506e
RW
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13871$as_echo "no" >&6; }
040b1c5a 13872fi
1c710c3c 13873
5213506e 13874
e8b05380
PB
13875 fi
13876 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13877 done
13878fi
1c710c3c 13879
040b1c5a
GK
13880if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13881 set dummy strip
13882 if test $build = $target ; then
13883 STRIP_FOR_TARGET="$2"
13884 else
13885 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13886 fi
1c00b503
PB
13887else
13888 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13889fi
13890
d1f8db0c
PB
13891else
13892 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13893fi
13894
13895
13896
13897
13898if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13899 if test -n "$with_build_time_tools"; then
5213506e
RW
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13901$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13902 if test -x $with_build_time_tools/windres; then
13903 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13904 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13906$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13907 else
5213506e
RW
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13909$as_echo "no" >&6; }
d1f8db0c 13910 fi
e8b05380
PB
13911 elif test $build != $host && test $have_gcc_for_target = yes; then
13912 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13913 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13914 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13915 fi
13916fi
3e19841a 13917if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13918 # Extract the first word of "windres", so it can be a program name with args.
13919set dummy windres; ac_word=$2
5213506e
RW
13920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13921$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13922if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
5213506e 13923 $as_echo_n "(cached) " >&6
e8b05380 13924else
1c710c3c
DJ
13925 case $WINDRES_FOR_TARGET in
13926 [\\/]* | ?:[\\/]*)
e8b05380
PB
13927 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13928 ;;
e8b05380 13929 *)
1c710c3c
DJ
13930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13931for as_dir in $gcc_cv_tool_dirs
13932do
13933 IFS=$as_save_IFS
13934 test -z "$as_dir" && as_dir=.
5213506e 13935 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13937 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13939 break 2
13940 fi
13941done
5213506e
RW
13942 done
13943IFS=$as_save_IFS
1c710c3c 13944
e8b05380
PB
13945 ;;
13946esac
13947fi
1c710c3c 13948WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13949if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13951$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13952else
5213506e
RW
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13954$as_echo "no" >&6; }
e8b05380
PB
13955fi
13956
5213506e 13957
e8b05380
PB
13958fi
13959if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13960
13961
13962if test -n "$WINDRES_FOR_TARGET"; then
13963 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13964elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13965 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13966fi
13967
13968if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13969 for ncn_progname in windres; do
13970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13971set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13973$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13974if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 13975 $as_echo_n "(cached) " >&6
278a7a38
AO
13976else
13977 if test -n "$WINDRES_FOR_TARGET"; then
13978 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13979else
13980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13981for as_dir in $PATH
13982do
13983 IFS=$as_save_IFS
13984 test -z "$as_dir" && as_dir=.
5213506e 13985 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13987 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13989 break 2
13990 fi
13991done
5213506e
RW
13992 done
13993IFS=$as_save_IFS
278a7a38
AO
13994
13995fi
13996fi
13997WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13998if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14000$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 14001else
5213506e
RW
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14003$as_echo "no" >&6; }
278a7a38
AO
14004fi
14005
5213506e 14006
278a7a38
AO
14007 done
14008fi
14009
14010if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14011 for ncn_progname in windres; do
5213506e
RW
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14013$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14014 if test -x $with_build_time_tools/${ncn_progname}; then
14015 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14017$as_echo "yes" >&6; }
e8b05380
PB
14018 break
14019 else
5213506e
RW
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14021$as_echo "no" >&6; }
e8b05380
PB
14022 fi
14023 done
14024fi
14025
14026if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14027 for ncn_progname in windres; do
14028 if test -n "$ncn_target_tool_prefix"; then
14029 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14030set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14032$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14033if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 14034 $as_echo_n "(cached) " >&6
ca9f4b81 14035else
4de997d1
PB
14036 if test -n "$WINDRES_FOR_TARGET"; then
14037 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 14038else
1c710c3c
DJ
14039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14040for as_dir in $PATH
14041do
14042 IFS=$as_save_IFS
14043 test -z "$as_dir" && as_dir=.
5213506e 14044 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14046 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14048 break 2
14049 fi
14050done
5213506e
RW
14051 done
14052IFS=$as_save_IFS
1c710c3c 14053
ca9f4b81
AO
14054fi
14055fi
1c710c3c 14056WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 14057if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14059$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 14060else
5213506e
RW
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14062$as_echo "no" >&6; }
ca9f4b81
AO
14063fi
14064
5213506e 14065
e8b05380
PB
14066 fi
14067 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
14068 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14069set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14071$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14072if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 14073 $as_echo_n "(cached) " >&6
ca9f4b81 14074else
2693c0b0
PB
14075 if test -n "$WINDRES_FOR_TARGET"; then
14076 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 14077else
1c710c3c
DJ
14078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14079for as_dir in $PATH
14080do
14081 IFS=$as_save_IFS
14082 test -z "$as_dir" && as_dir=.
5213506e 14083 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14085 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 14086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14087 break 2
14088 fi
14089done
5213506e
RW
14090 done
14091IFS=$as_save_IFS
1c710c3c 14092
ca9f4b81
AO
14093fi
14094fi
1c710c3c 14095WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 14096if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14098$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 14099else
5213506e
RW
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14101$as_echo "no" >&6; }
ca9f4b81 14102fi
1c710c3c 14103
5213506e 14104
e8b05380
PB
14105 fi
14106 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14107 done
14108fi
1c710c3c 14109
2693c0b0
PB
14110if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14111 set dummy windres
14112 if test $build = $target ; then
14113 WINDRES_FOR_TARGET="$2"
ca9f4b81 14114 else
2693c0b0 14115 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 14116 fi
1c00b503
PB
14117else
14118 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
14119fi
14120
d1f8db0c
PB
14121else
14122 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
14123fi
14124
4977bab6 14125
901119ae
KT
14126
14127
14128if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14129 if test -n "$with_build_time_tools"; then
5213506e
RW
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14131$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
14132 if test -x $with_build_time_tools/windmc; then
14133 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14134 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14136$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 14137 else
5213506e
RW
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14139$as_echo "no" >&6; }
901119ae
KT
14140 fi
14141 elif test $build != $host && test $have_gcc_for_target = yes; then
14142 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
14143 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14144 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
14145 fi
14146fi
14147if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14148 # Extract the first word of "windmc", so it can be a program name with args.
14149set dummy windmc; ac_word=$2
5213506e
RW
14150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14151$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14152if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
5213506e 14153 $as_echo_n "(cached) " >&6
901119ae
KT
14154else
14155 case $WINDMC_FOR_TARGET in
14156 [\\/]* | ?:[\\/]*)
14157 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14158 ;;
14159 *)
14160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14161for as_dir in $gcc_cv_tool_dirs
14162do
14163 IFS=$as_save_IFS
14164 test -z "$as_dir" && as_dir=.
5213506e 14165 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14167 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14169 break 2
14170 fi
14171done
5213506e
RW
14172 done
14173IFS=$as_save_IFS
901119ae
KT
14174
14175 ;;
14176esac
14177fi
14178WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 14179if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14181$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14182else
5213506e
RW
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14184$as_echo "no" >&6; }
901119ae
KT
14185fi
14186
5213506e 14187
901119ae
KT
14188fi
14189if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14190
14191
14192if test -n "$WINDMC_FOR_TARGET"; then
14193 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14194elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14195 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14196fi
14197
14198if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14199 for ncn_progname in windmc; do
14200 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14201set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14203$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14204if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 14205 $as_echo_n "(cached) " >&6
901119ae
KT
14206else
14207 if test -n "$WINDMC_FOR_TARGET"; then
14208 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14209else
14210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14211for as_dir in $PATH
14212do
14213 IFS=$as_save_IFS
14214 test -z "$as_dir" && as_dir=.
5213506e 14215 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14217 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 14218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14219 break 2
14220 fi
14221done
5213506e
RW
14222 done
14223IFS=$as_save_IFS
901119ae
KT
14224
14225fi
14226fi
14227WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14228if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14230$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14231else
5213506e
RW
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14233$as_echo "no" >&6; }
901119ae
KT
14234fi
14235
5213506e 14236
901119ae
KT
14237 done
14238fi
14239
14240if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14241 for ncn_progname in windmc; do
5213506e
RW
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14243$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
14244 if test -x $with_build_time_tools/${ncn_progname}; then
14245 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14247$as_echo "yes" >&6; }
901119ae
KT
14248 break
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 done
14254fi
14255
14256if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14257 for ncn_progname in windmc; do
14258 if test -n "$ncn_target_tool_prefix"; then
14259 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14260set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14262$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14263if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 14264 $as_echo_n "(cached) " >&6
901119ae
KT
14265else
14266 if test -n "$WINDMC_FOR_TARGET"; then
14267 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14268else
14269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14270for as_dir in $PATH
14271do
14272 IFS=$as_save_IFS
14273 test -z "$as_dir" && as_dir=.
5213506e 14274 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14276 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14278 break 2
14279 fi
14280done
5213506e
RW
14281 done
14282IFS=$as_save_IFS
901119ae
KT
14283
14284fi
14285fi
14286WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14287if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14289$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14290else
5213506e
RW
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14292$as_echo "no" >&6; }
901119ae
KT
14293fi
14294
5213506e 14295
901119ae
KT
14296 fi
14297 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14299set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14301$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14302if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 14303 $as_echo_n "(cached) " >&6
901119ae
KT
14304else
14305 if test -n "$WINDMC_FOR_TARGET"; then
14306 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14307else
14308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14309for as_dir in $PATH
14310do
14311 IFS=$as_save_IFS
14312 test -z "$as_dir" && as_dir=.
5213506e 14313 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14315 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 14316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14317 break 2
14318 fi
14319done
5213506e
RW
14320 done
14321IFS=$as_save_IFS
901119ae
KT
14322
14323fi
14324fi
14325WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14326if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14328$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14329else
5213506e
RW
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14331$as_echo "no" >&6; }
901119ae
KT
14332fi
14333
5213506e 14334
901119ae
KT
14335 fi
14336 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14337 done
14338fi
14339
14340if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14341 set dummy windmc
14342 if test $build = $target ; then
14343 WINDMC_FOR_TARGET="$2"
14344 else
14345 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14346 fi
1c00b503
PB
14347else
14348 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
14349fi
14350
14351else
14352 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14353fi
14354
14355
2abefe3d
PB
14356RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14357
5213506e
RW
14358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14359$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 14360if test "x${build}" != "x${host}" ; then
e8b05380
PB
14361 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14362 # We already found the complete path
172e41aa 14363 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14365$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14366 else
14367 # Canadian cross, just use what we found
5213506e
RW
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14369$as_echo "pre-installed" >&6; }
e8b05380 14370 fi
2abefe3d
PB
14371else
14372 ok=yes
14373 case " ${configdirs} " in
14374 *" binutils "*) ;;
14375 *) ok=no ;;
14376 esac
1c710c3c 14377
2abefe3d
PB
14378 if test $ok = yes; then
14379 # An in-tree tool is available and we can use it
14380 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14382$as_echo "just compiled" >&6; }
e8b05380
PB
14383 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14384 # We already found the complete path
172e41aa 14385 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14387$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14388 elif test "x$target" = "x$host"; then
14389 # We can use an host tool
14390 AR_FOR_TARGET='$(AR)'
5213506e
RW
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14392$as_echo "host tool" >&6; }
2abefe3d
PB
14393 else
14394 # We need a cross tool
5213506e
RW
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14396$as_echo "pre-installed" >&6; }
2abefe3d
PB
14397 fi
14398fi
0b0dc272 14399
5213506e
RW
14400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14401$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 14402if test "x${build}" != "x${host}" ; then
e8b05380
PB
14403 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14404 # We already found the complete path
172e41aa 14405 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14407$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14408 else
14409 # Canadian cross, just use what we found
5213506e
RW
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14411$as_echo "pre-installed" >&6; }
e8b05380 14412 fi
2abefe3d
PB
14413else
14414 ok=yes
14415 case " ${configdirs} " in
14416 *" gas "*) ;;
14417 *) ok=no ;;
14418 esac
1c710c3c 14419
2abefe3d
PB
14420 if test $ok = yes; then
14421 # An in-tree tool is available and we can use it
14422 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14424$as_echo "just compiled" >&6; }
e8b05380
PB
14425 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14426 # We already found the complete path
172e41aa 14427 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14429$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14430 elif test "x$target" = "x$host"; then
14431 # We can use an host tool
14432 AS_FOR_TARGET='$(AS)'
5213506e
RW
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14434$as_echo "host tool" >&6; }
2abefe3d
PB
14435 else
14436 # We need a cross tool
5213506e
RW
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14438$as_echo "pre-installed" >&6; }
2abefe3d
PB
14439 fi
14440fi
0b0dc272 14441
5213506e
RW
14442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14443$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 14444if test "x${build}" != "x${host}" ; then
e8b05380
PB
14445 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14446 # We already found the complete path
172e41aa 14447 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14449$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14450 else
14451 # Canadian cross, just use what we found
5213506e
RW
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14453$as_echo "pre-installed" >&6; }
e8b05380 14454 fi
2abefe3d
PB
14455else
14456 ok=yes
14457 case " ${configdirs} " in
14458 *" gcc "*) ;;
14459 *) ok=no ;;
14460 esac
1c710c3c 14461
2abefe3d
PB
14462 if test $ok = yes; then
14463 # An in-tree tool is available and we can use it
14464 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14466$as_echo "just compiled" >&6; }
e8b05380
PB
14467 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14468 # We already found the complete path
172e41aa 14469 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14471$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14472 elif test "x$target" = "x$host"; then
14473 # We can use an host tool
14474 CC_FOR_TARGET='$(CC)'
5213506e
RW
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14476$as_echo "host tool" >&6; }
2abefe3d
PB
14477 else
14478 # We need a cross tool
5213506e
RW
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14480$as_echo "pre-installed" >&6; }
2abefe3d
PB
14481 fi
14482fi
0b0dc272 14483
5213506e
RW
14484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14485$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 14486if test "x${build}" != "x${host}" ; then
e8b05380
PB
14487 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14488 # We already found the complete path
172e41aa 14489 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14491$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14492 else
14493 # Canadian cross, just use what we found
5213506e
RW
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14495$as_echo "pre-installed" >&6; }
e8b05380 14496 fi
2abefe3d
PB
14497else
14498 ok=yes
14499 case " ${configdirs} " in
14500 *" gcc "*) ;;
14501 *) ok=no ;;
14502 esac
14503 case ,${enable_languages}, in
14504 *,c++,*) ;;
14505 *) ok=no ;;
14506 esac
14507 if test $ok = yes; then
14508 # An in-tree tool is available and we can use it
2077db1b 14509 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
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14511$as_echo "just compiled" >&6; }
e8b05380
PB
14512 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14513 # We already found the complete path
172e41aa 14514 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14516$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14517 elif test "x$target" = "x$host"; then
14518 # We can use an host tool
14519 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14521$as_echo "host tool" >&6; }
2abefe3d
PB
14522 else
14523 # We need a cross tool
5213506e
RW
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14525$as_echo "pre-installed" >&6; }
2abefe3d
PB
14526 fi
14527fi
0b0dc272 14528
5213506e
RW
14529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14530$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 14531if test "x${build}" != "x${host}" ; then
e8b05380
PB
14532 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14533 # We already found the complete path
172e41aa 14534 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14536$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14537 else
14538 # Canadian cross, just use what we found
5213506e
RW
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14540$as_echo "pre-installed" >&6; }
e8b05380 14541 fi
2abefe3d
PB
14542else
14543 ok=yes
14544 case " ${configdirs} " in
14545 *" gcc "*) ;;
14546 *) ok=no ;;
14547 esac
14548 case ,${enable_languages}, in
14549 *,c++,*) ;;
14550 *) ok=no ;;
14551 esac
14552 if test $ok = yes; then
14553 # An in-tree tool is available and we can use it
2077db1b 14554 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
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14556$as_echo "just compiled" >&6; }
e8b05380
PB
14557 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14558 # We already found the complete path
172e41aa 14559 ac_dir=`dirname $RAW_CXX_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; }
2abefe3d
PB
14562 elif test "x$target" = "x$host"; then
14563 # We can use an host tool
14564 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14566$as_echo "host tool" >&6; }
2abefe3d
PB
14567 else
14568 # We need a cross tool
5213506e
RW
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14570$as_echo "pre-installed" >&6; }
2abefe3d
PB
14571 fi
14572fi
0b0dc272 14573
5213506e
RW
14574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14575$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 14576if test "x${build}" != "x${host}" ; then
e8b05380
PB
14577 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14578 # We already found the complete path
172e41aa 14579 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14581$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14582 else
14583 # Canadian cross, just use what we found
5213506e
RW
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14585$as_echo "pre-installed" >&6; }
e8b05380 14586 fi
2abefe3d
PB
14587else
14588 ok=yes
14589 case " ${configdirs} " in
14590 *" binutils "*) ;;
14591 *) ok=no ;;
14592 esac
1c710c3c 14593
2abefe3d
PB
14594 if test $ok = yes; then
14595 # An in-tree tool is available and we can use it
14596 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14598$as_echo "just compiled" >&6; }
e8b05380
PB
14599 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14600 # We already found the complete path
172e41aa 14601 ac_dir=`dirname $DLLTOOL_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; }
2abefe3d
PB
14604 elif test "x$target" = "x$host"; then
14605 # We can use an host tool
14606 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14608$as_echo "host tool" >&6; }
2abefe3d
PB
14609 else
14610 # We need a cross tool
5213506e
RW
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14612$as_echo "pre-installed" >&6; }
2abefe3d
PB
14613 fi
14614fi
0b0dc272 14615
5213506e
RW
14616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14617$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 14618if test "x${build}" != "x${host}" ; then
e8b05380
PB
14619 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14620 # We already found the complete path
172e41aa 14621 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14623$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14624 else
14625 # Canadian cross, just use what we found
5213506e
RW
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14627$as_echo "pre-installed" >&6; }
e8b05380 14628 fi
2abefe3d
PB
14629else
14630 ok=yes
14631 case " ${configdirs} " in
14632 *" gcc "*) ;;
14633 *) ok=no ;;
14634 esac
1c710c3c 14635
2abefe3d
PB
14636 if test $ok = yes; then
14637 # An in-tree tool is available and we can use it
14638 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14640$as_echo "just compiled" >&6; }
e8b05380
PB
14641 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14642 # We already found the complete path
172e41aa 14643 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14645$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14646 elif test "x$target" = "x$host"; then
14647 # We can use an host tool
14648 GCC_FOR_TARGET='$()'
5213506e
RW
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14650$as_echo "host tool" >&6; }
2abefe3d
PB
14651 else
14652 # We need a cross tool
5213506e
RW
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14654$as_echo "pre-installed" >&6; }
2abefe3d
PB
14655 fi
14656fi
0b0dc272 14657
5213506e
RW
14658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14659$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 14660if test "x${build}" != "x${host}" ; then
e8b05380
PB
14661 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14662 # We already found the complete path
172e41aa 14663 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14665$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14666 else
14667 # Canadian cross, just use what we found
5213506e
RW
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14669$as_echo "pre-installed" >&6; }
e8b05380 14670 fi
2abefe3d
PB
14671else
14672 ok=yes
14673 case " ${configdirs} " in
14674 *" gcc "*) ;;
14675 *) ok=no ;;
14676 esac
14677 case ,${enable_languages}, in
14678 *,fortran,*) ;;
14679 *) ok=no ;;
14680 esac
14681 if test $ok = yes; then
14682 # An in-tree tool is available and we can use it
14683 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14685$as_echo "just compiled" >&6; }
e8b05380
PB
14686 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14687 # We already found the complete path
172e41aa 14688 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14690$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14691 elif test "x$target" = "x$host"; then
14692 # We can use an host tool
14693 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14695$as_echo "host tool" >&6; }
2abefe3d
PB
14696 else
14697 # We need a cross tool
5213506e
RW
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14699$as_echo "pre-installed" >&6; }
2abefe3d
PB
14700 fi
14701fi
0b0dc272 14702
632e2a07
ILT
14703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14704$as_echo_n "checking where to find the target gccgo... " >&6; }
14705if test "x${build}" != "x${host}" ; then
14706 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14707 # We already found the complete path
14708 ac_dir=`dirname $GOC_FOR_TARGET`
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14710$as_echo "pre-installed in $ac_dir" >&6; }
14711 else
14712 # Canadian cross, just use what we found
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14714$as_echo "pre-installed" >&6; }
14715 fi
14716else
14717 ok=yes
14718 case " ${configdirs} " in
14719 *" gcc "*) ;;
14720 *) ok=no ;;
14721 esac
14722 case ,${enable_languages}, in
14723 *,go,*) ;;
14724 *) ok=no ;;
14725 esac
14726 if test $ok = yes; then
14727 # An in-tree tool is available and we can use it
14728 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14730$as_echo "just compiled" >&6; }
14731 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14732 # We already found the complete path
14733 ac_dir=`dirname $GOC_FOR_TARGET`
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14735$as_echo "pre-installed in $ac_dir" >&6; }
14736 elif test "x$target" = "x$host"; then
14737 # We can use an host tool
14738 GOC_FOR_TARGET='$(GOC)'
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14740$as_echo "host tool" >&6; }
14741 else
14742 # We need a cross tool
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14744$as_echo "pre-installed" >&6; }
14745 fi
14746fi
14747
b4c522fa
IB
14748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
14749$as_echo_n "checking where to find the target gdc... " >&6; }
14750if test "x${build}" != "x${host}" ; then
14751 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14752 # We already found the complete path
14753 ac_dir=`dirname $GDC_FOR_TARGET`
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14755$as_echo "pre-installed in $ac_dir" >&6; }
14756 else
14757 # Canadian cross, just use what we found
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14759$as_echo "pre-installed" >&6; }
14760 fi
14761else
14762 ok=yes
14763 case " ${configdirs} " in
14764 *" gcc "*) ;;
14765 *) ok=no ;;
14766 esac
14767 case ,${enable_languages}, in
14768 *,d,*) ;;
14769 *) ok=no ;;
14770 esac
14771 if test $ok = yes; then
14772 # An in-tree tool is available and we can use it
14773 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14775$as_echo "just compiled" >&6; }
14776 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14777 # We already found the complete path
14778 ac_dir=`dirname $GDC_FOR_TARGET`
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14780$as_echo "pre-installed in $ac_dir" >&6; }
14781 elif test "x$target" = "x$host"; then
14782 # We can use an host tool
14783 GDC_FOR_TARGET='$(GDC)'
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14785$as_echo "host tool" >&6; }
14786 else
14787 # We need a cross tool
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14789$as_echo "pre-installed" >&6; }
14790 fi
14791fi
14792
5213506e
RW
14793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14794$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14795if test "x${build}" != "x${host}" ; then
e8b05380
PB
14796 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14797 # We already found the complete path
172e41aa 14798 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14800$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14801 else
14802 # Canadian cross, just use what we found
5213506e
RW
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14804$as_echo "pre-installed" >&6; }
e8b05380 14805 fi
2abefe3d
PB
14806else
14807 ok=yes
14808 case " ${configdirs} " in
14809 *" ld "*) ;;
14810 *) ok=no ;;
14811 esac
1c710c3c 14812
2abefe3d
PB
14813 if test $ok = yes; then
14814 # An in-tree tool is available and we can use it
14815 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14817$as_echo "just compiled" >&6; }
e8b05380
PB
14818 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14819 # We already found the complete path
172e41aa 14820 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14822$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14823 elif test "x$target" = "x$host"; then
14824 # We can use an host tool
14825 LD_FOR_TARGET='$(LD)'
5213506e
RW
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14827$as_echo "host tool" >&6; }
2abefe3d
PB
14828 else
14829 # We need a cross tool
5213506e
RW
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14831$as_echo "pre-installed" >&6; }
2abefe3d
PB
14832 fi
14833fi
0b0dc272 14834
5213506e
RW
14835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14836$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14837if test "x${build}" != "x${host}" ; then
e8b05380
PB
14838 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14839 # We already found the complete path
172e41aa 14840 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14842$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14843 else
14844 # Canadian cross, just use what we found
5213506e
RW
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14846$as_echo "pre-installed" >&6; }
e8b05380 14847 fi
2abefe3d 14848else
e8b05380
PB
14849 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14850 # We already found the complete path
172e41aa 14851 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14853$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14854 elif test "x$target" = "x$host"; then
2abefe3d
PB
14855 # We can use an host tool
14856 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14858$as_echo "host tool" >&6; }
2abefe3d
PB
14859 else
14860 # We need a cross tool
5213506e
RW
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14862$as_echo "pre-installed" >&6; }
2abefe3d
PB
14863 fi
14864fi
0b0dc272 14865
5213506e
RW
14866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14867$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14868if test "x${build}" != "x${host}" ; then
e8b05380
PB
14869 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14870 # We already found the complete path
172e41aa 14871 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14873$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14874 else
14875 # Canadian cross, just use what we found
5213506e
RW
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14877$as_echo "pre-installed" >&6; }
e8b05380 14878 fi
2abefe3d
PB
14879else
14880 ok=yes
14881 case " ${configdirs} " in
14882 *" binutils "*) ;;
14883 *) ok=no ;;
14884 esac
1c710c3c 14885
2abefe3d
PB
14886 if test $ok = yes; then
14887 # An in-tree tool is available and we can use it
14888 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14890$as_echo "just compiled" >&6; }
e8b05380
PB
14891 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14892 # We already found the complete path
172e41aa 14893 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14895$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14896 elif test "x$target" = "x$host"; then
14897 # We can use an host tool
14898 NM_FOR_TARGET='$(NM)'
5213506e
RW
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14900$as_echo "host tool" >&6; }
2abefe3d
PB
14901 else
14902 # We need a cross tool
5213506e
RW
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14904$as_echo "pre-installed" >&6; }
2abefe3d
PB
14905 fi
14906fi
0b0dc272 14907
9bccfdf5
AP
14908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14909$as_echo_n "checking where to find the target objcopy... " >&6; }
14910if test "x${build}" != "x${host}" ; then
14911 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14912 # We already found the complete path
14913 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14915$as_echo "pre-installed in $ac_dir" >&6; }
14916 else
14917 # Canadian cross, just use what we found
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14919$as_echo "pre-installed" >&6; }
14920 fi
14921else
14922 ok=yes
14923 case " ${configdirs} " in
14924 *" binutils "*) ;;
14925 *) ok=no ;;
14926 esac
14927
14928 if test $ok = yes; then
14929 # An in-tree tool is available and we can use it
14930 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14932$as_echo "just compiled" >&6; }
14933 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14934 # We already found the complete path
14935 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14937$as_echo "pre-installed in $ac_dir" >&6; }
14938 elif test "x$target" = "x$host"; then
14939 # We can use an host tool
ec8fd1c0 14940 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14942$as_echo "host tool" >&6; }
14943 else
14944 # We need a cross tool
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14946$as_echo "pre-installed" >&6; }
14947 fi
14948fi
14949
5213506e
RW
14950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14951$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14952if test "x${build}" != "x${host}" ; then
e8b05380
PB
14953 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14954 # We already found the complete path
172e41aa 14955 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14957$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14958 else
14959 # Canadian cross, just use what we found
5213506e
RW
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14961$as_echo "pre-installed" >&6; }
e8b05380 14962 fi
2abefe3d
PB
14963else
14964 ok=yes
14965 case " ${configdirs} " in
14966 *" binutils "*) ;;
14967 *) ok=no ;;
14968 esac
1c710c3c 14969
2abefe3d
PB
14970 if test $ok = yes; then
14971 # An in-tree tool is available and we can use it
14972 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14974$as_echo "just compiled" >&6; }
e8b05380
PB
14975 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14976 # We already found the complete path
172e41aa 14977 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14979$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14980 elif test "x$target" = "x$host"; then
14981 # We can use an host tool
14982 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14984$as_echo "host tool" >&6; }
2abefe3d
PB
14985 else
14986 # We need a cross tool
5213506e
RW
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14988$as_echo "pre-installed" >&6; }
2abefe3d
PB
14989 fi
14990fi
0b0dc272 14991
e4a9a572
IS
14992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
14993$as_echo_n "checking where to find the target otool... " >&6; }
14994if test "x${build}" != "x${host}" ; then
14995 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
14996 # We already found the complete path
14997 ac_dir=`dirname $OTOOL_FOR_TARGET`
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14999$as_echo "pre-installed in $ac_dir" >&6; }
15000 else
15001 # Canadian cross, just use what we found
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15003$as_echo "pre-installed" >&6; }
15004 fi
15005else
15006 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15007 # We already found the complete path
15008 ac_dir=`dirname $OTOOL_FOR_TARGET`
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15010$as_echo "pre-installed in $ac_dir" >&6; }
15011 elif test "x$target" = "x$host"; then
15012 # We can use an host tool
15013 OTOOL_FOR_TARGET='$(OTOOL)'
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15015$as_echo "host tool" >&6; }
15016 else
15017 # We need a cross tool
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15019$as_echo "pre-installed" >&6; }
15020 fi
15021fi
15022
5213506e
RW
15023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
15024$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 15025if test "x${build}" != "x${host}" ; then
e8b05380
PB
15026 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15027 # We already found the complete path
172e41aa 15028 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15030$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15031 else
15032 # Canadian cross, just use what we found
5213506e
RW
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15034$as_echo "pre-installed" >&6; }
e8b05380 15035 fi
2abefe3d
PB
15036else
15037 ok=yes
15038 case " ${configdirs} " in
15039 *" binutils "*) ;;
15040 *) ok=no ;;
15041 esac
1c710c3c 15042
2abefe3d
PB
15043 if test $ok = yes; then
15044 # An in-tree tool is available and we can use it
15045 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15047$as_echo "just compiled" >&6; }
e8b05380
PB
15048 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15049 # We already found the complete path
172e41aa 15050 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15052$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15053 elif test "x$target" = "x$host"; then
15054 # We can use an host tool
15055 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15057$as_echo "host tool" >&6; }
2abefe3d
PB
15058 else
15059 # We need a cross tool
5213506e
RW
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15061$as_echo "pre-installed" >&6; }
2abefe3d
PB
15062 fi
15063fi
0b0dc272 15064
e7a82751
RM
15065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
15066$as_echo_n "checking where to find the target readelf... " >&6; }
15067if test "x${build}" != "x${host}" ; then
15068 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15069 # We already found the complete path
15070 ac_dir=`dirname $READELF_FOR_TARGET`
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15072$as_echo "pre-installed in $ac_dir" >&6; }
15073 else
15074 # Canadian cross, just use what we found
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15076$as_echo "pre-installed" >&6; }
15077 fi
15078else
15079 ok=yes
15080 case " ${configdirs} " in
15081 *" binutils "*) ;;
15082 *) ok=no ;;
15083 esac
15084
15085 if test $ok = yes; then
15086 # An in-tree tool is available and we can use it
15087 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15089$as_echo "just compiled" >&6; }
15090 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15091 # We already found the complete path
15092 ac_dir=`dirname $READELF_FOR_TARGET`
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15094$as_echo "pre-installed in $ac_dir" >&6; }
15095 elif test "x$target" = "x$host"; then
15096 # We can use an host tool
15097 READELF_FOR_TARGET='$(READELF)'
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15099$as_echo "host tool" >&6; }
15100 else
15101 # We need a cross tool
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15103$as_echo "pre-installed" >&6; }
15104 fi
15105fi
15106
5213506e
RW
15107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
15108$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 15109if test "x${build}" != "x${host}" ; then
e8b05380
PB
15110 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15111 # We already found the complete path
172e41aa 15112 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15114$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15115 else
15116 # Canadian cross, just use what we found
5213506e
RW
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15118$as_echo "pre-installed" >&6; }
e8b05380 15119 fi
2abefe3d
PB
15120else
15121 ok=yes
15122 case " ${configdirs} " in
15123 *" binutils "*) ;;
15124 *) ok=no ;;
15125 esac
1c710c3c 15126
2abefe3d
PB
15127 if test $ok = yes; then
15128 # An in-tree tool is available and we can use it
455c8f48 15129 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15131$as_echo "just compiled" >&6; }
e8b05380
PB
15132 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15133 # We already found the complete path
172e41aa 15134 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15136$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15137 elif test "x$target" = "x$host"; then
15138 # We can use an host tool
15139 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15141$as_echo "host tool" >&6; }
2abefe3d
PB
15142 else
15143 # We need a cross tool
5213506e
RW
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15145$as_echo "pre-installed" >&6; }
2abefe3d
PB
15146 fi
15147fi
0b0dc272 15148
5213506e
RW
15149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
15150$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 15151if test "x${build}" != "x${host}" ; then
e8b05380
PB
15152 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15153 # We already found the complete path
172e41aa 15154 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15156$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15157 else
15158 # Canadian cross, just use what we found
5213506e
RW
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15160$as_echo "pre-installed" >&6; }
e8b05380 15161 fi
2abefe3d
PB
15162else
15163 ok=yes
15164 case " ${configdirs} " in
15165 *" binutils "*) ;;
15166 *) ok=no ;;
15167 esac
1c710c3c 15168
2abefe3d
PB
15169 if test $ok = yes; then
15170 # An in-tree tool is available and we can use it
15171 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15173$as_echo "just compiled" >&6; }
e8b05380
PB
15174 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15175 # We already found the complete path
172e41aa 15176 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15178$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15179 elif test "x$target" = "x$host"; then
15180 # We can use an host tool
15181 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15183$as_echo "host tool" >&6; }
2abefe3d
PB
15184 else
15185 # We need a cross tool
5213506e
RW
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15187$as_echo "pre-installed" >&6; }
2abefe3d 15188 fi
671aa708 15189fi
be912515 15190
5213506e
RW
15191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15192$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
15193if test "x${build}" != "x${host}" ; then
15194 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15195 # We already found the complete path
15196 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15198$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
15199 else
15200 # Canadian cross, just use what we found
5213506e
RW
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15202$as_echo "pre-installed" >&6; }
901119ae
KT
15203 fi
15204else
15205 ok=yes
15206 case " ${configdirs} " in
15207 *" binutils "*) ;;
15208 *) ok=no ;;
15209 esac
15210
15211 if test $ok = yes; then
15212 # An in-tree tool is available and we can use it
15213 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15215$as_echo "just compiled" >&6; }
901119ae
KT
15216 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15217 # We already found the complete path
15218 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15220$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
15221 elif test "x$target" = "x$host"; then
15222 # We can use an host tool
15223 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15225$as_echo "host tool" >&6; }
901119ae
KT
15226 else
15227 # We need a cross tool
5213506e
RW
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15229$as_echo "pre-installed" >&6; }
901119ae
KT
15230 fi
15231fi
15232
be912515
NN
15233
15234
2abefe3d 15235
0b0dc272 15236
671aa708
NN
15237# Certain tools may need extra flags.
15238AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15239RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15240NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15241
2abefe3d
PB
15242# When building target libraries, except in a Canadian cross, we use
15243# the same toolchain as the compiler we just built.
15244COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15245COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15246COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15247if test $host = $build; then
15248 case " $configdirs " in
15249 *" gcc "*)
15250 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15251 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15252 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15253 ;;
15254 esac
15255fi
15256
15257
15258
15259
15260
5213506e
RW
15261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15262$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15263# Check whether --enable-maintainer-mode was given.
15264if test "${enable_maintainer_mode+set}" = set; then :
15265 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
15266else
15267 USE_MAINTAINER_MODE=no
5213506e
RW
15268fi
15269
15270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15271$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
15272
15273
15274if test "$USE_MAINTAINER_MODE" = yes; then
15275 MAINTAINER_MODE_TRUE=
15276 MAINTAINER_MODE_FALSE='#'
15277else
15278 MAINTAINER_MODE_TRUE='#'
15279 MAINTAINER_MODE_FALSE=
1c710c3c 15280fi
ee03dc5e
AO
15281MAINT=$MAINTAINER_MODE_TRUE
15282
2805b53a
NN
15283# ---------------------
15284# GCC bootstrap support
15285# ---------------------
15286
15287# Stage specific cflags for build.
15288stage1_cflags="-g"
15289case $build in
15290 vax-*-*)
15291 case ${GCC} in
15292 yes) stage1_cflags="-g -Wa,-J" ;;
15293 *) stage1_cflags="-g -J" ;;
15294 esac ;;
2805b53a
NN
15295esac
15296
0b50988a 15297
2805b53a 15298
8efea775 15299# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
15300# Check whether --enable-stage1-checking was given.
15301if test "${enable_stage1_checking+set}" = set; then :
15302 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 15303else
e643dc23 15304 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
15305 # For --disable-checking or implicit --enable-checking=release, avoid
15306 # setting --enable-checking=gc in the default stage1 checking for LTO
15307 # bootstraps. See PR62077.
c10b5ea0
JJ
15308 case $BUILD_CONFIG in
15309 *lto*)
7db11a5a
JJ
15310 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15311 *)
15312 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 15313 esac
7db11a5a
JJ
15314 if test "x$enable_checking" = x && \
15315 test -d ${srcdir}/gcc && \
15316 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 15317 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 15318 fi
8efea775 15319else
e643dc23 15320 stage1_checking=--enable-checking=$enable_checking,types
8efea775 15321fi
5213506e 15322fi
8efea775
PB
15323
15324
2aeb72e9 15325
5213506e
RW
15326# Enable -Werror in bootstrap stage2 and later.
15327# Check whether --enable-werror was given.
15328if test "${enable_werror+set}" = set; then :
15329 enableval=$enable_werror;
09a9c095
NN
15330case ${enable_werror} in
15331 yes) stage2_werror_flag="--enable-werror-always" ;;
15332 *) stage2_werror_flag="" ;;
2805b53a
NN
15333esac
15334
afd88efc
ML
15335else
15336
01c712cb
ML
15337if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15338 case $BUILD_CONFIG in
15339 bootstrap-debug)
15340 stage2_werror_flag="--enable-werror-always" ;;
15341 "")
15342 stage2_werror_flag="--enable-werror-always" ;;
15343 esac
15344fi
15345
afd88efc
ML
15346fi
15347
15348
01c712cb 15349
2805b53a 15350
f2689b09
SE
15351# Specify what files to not compare during bootstrap.
15352
15353compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15354case "$target" in
15355 hppa*64*-*-hpux*) ;;
510555e0 15356 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
d91491e5 15357 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
15358esac
15359
15360
5213506e
RW
15361ac_config_files="$ac_config_files Makefile"
15362
1c710c3c 15363cat >confcache <<\_ACEOF
671aa708
NN
15364# This file is a shell script that caches the results of configure
15365# tests run on this system so they can be shared between configure
1c710c3c
DJ
15366# scripts and configure runs, see configure's option --config-cache.
15367# It is not useful on other systems. If it contains results you don't
15368# want to keep, you may remove or edit it.
671aa708 15369#
1c710c3c
DJ
15370# config.status only pays attention to the cache file if you give it
15371# the --recheck option to rerun configure.
671aa708 15372#
1c710c3c
DJ
15373# `ac_cv_env_foo' variables (set or unset) will be overridden when
15374# loading this file, other *unset* `ac_cv_foo' will be assigned the
15375# following values.
15376
15377_ACEOF
15378
671aa708
NN
15379# The following way of writing the cache mishandles newlines in values,
15380# but we know of no workaround that is simple, portable, and efficient.
5213506e 15381# So, we kill variables containing newlines.
671aa708
NN
15382# Ultrix sh set writes to stderr and can't be redirected directly,
15383# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
15384(
15385 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15386 eval ac_val=\$$ac_var
15387 case $ac_val in #(
15388 *${as_nl}*)
15389 case $ac_var in #(
15390 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15391$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15392 esac
15393 case $ac_var in #(
15394 _ | IFS | as_nl) ;; #(
15395 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15396 *) { eval $ac_var=; unset $ac_var;} ;;
15397 esac ;;
15398 esac
15399 done
15400
1c710c3c 15401 (set) 2>&1 |
5213506e
RW
15402 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15403 *${as_nl}ac_space=\ *)
15404 # `set' does not quote correctly, so add quotes: double-quote
15405 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
15406 sed -n \
15407 "s/'/'\\\\''/g;
15408 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 15409 ;; #(
1c710c3c
DJ
15410 *)
15411 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 15412 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 15413 ;;
5213506e
RW
15414 esac |
15415 sort
15416) |
1c710c3c 15417 sed '
5213506e 15418 /^ac_cv_env_/b end
1c710c3c 15419 t clear
5213506e 15420 :clear
1c710c3c
DJ
15421 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15422 t end
5213506e
RW
15423 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15424 :end' >>confcache
15425if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15426 if test -w "$cache_file"; then
22e05272 15427 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15429$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
15430 if test ! -f "$cache_file" || test -h "$cache_file"; then
15431 cat confcache >"$cache_file"
15432 else
15433 case $cache_file in #(
15434 */* | ?:*)
15435 mv -f confcache "$cache_file"$$ &&
15436 mv -f "$cache_file"$$ "$cache_file" ;; #(
15437 *)
15438 mv -f confcache "$cache_file" ;;
15439 esac
15440 fi
15441 fi
671aa708 15442 else
5213506e
RW
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15444$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 15445 fi
4977bab6 15446fi
671aa708 15447rm -f confcache
79c06341 15448
671aa708
NN
15449test "x$prefix" = xNONE && prefix=$ac_default_prefix
15450# Let make expand exec_prefix.
15451test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 15452
671aa708
NN
15453# Transform confdefs.h into DEFS.
15454# Protect against shell expansion while executing Makefile rules.
15455# Protect against Makefile macro expansion.
1c710c3c
DJ
15456#
15457# If the first sed substitution is executed (which looks for macros that
5213506e 15458# take arguments), then branch to the quote section. Otherwise,
1c710c3c 15459# look for a macro that doesn't take arguments.
5213506e
RW
15460ac_script='
15461:mline
15462/\\$/{
15463 N
15464 s,\\\n,,
15465 b mline
15466}
1c710c3c 15467t clear
5213506e
RW
15468:clear
15469s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 15470t quote
5213506e 15471s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 15472t quote
5213506e
RW
15473b any
15474:quote
15475s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15476s/\[/\\&/g
15477s/\]/\\&/g
15478s/\$/$$/g
15479H
15480:any
15481${
15482 g
15483 s/^\n//
15484 s/\n/ /g
15485 p
15486}
15487'
15488DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
15489
15490
15491ac_libobjs=
15492ac_ltlibobjs=
22e05272 15493U=
1c710c3c
DJ
15494for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15495 # 1. Remove the extension, and $U if already installed.
5213506e
RW
15496 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15497 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15498 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15499 # will be set to the directory where LIBOBJS objects are built.
15500 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15501 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
15502done
15503LIBOBJS=$ac_libobjs
fb0103e5 15504
1c710c3c 15505LTLIBOBJS=$ac_ltlibobjs
0b0dc272 15506
af71363e 15507
1c710c3c 15508
22e05272 15509: "${CONFIG_STATUS=./config.status}"
5213506e 15510ac_write_fail=0
1c710c3c
DJ
15511ac_clean_files_save=$ac_clean_files
15512ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
15513{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15514$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15515as_write_fail=0
15516cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
15517#! $SHELL
15518# Generated by $as_me.
671aa708 15519# Run this file to recreate the current configuration.
671aa708 15520# Compiler output produced by configure, useful for debugging
1c710c3c 15521# configure, is in config.log if it exists.
0b0dc272 15522
1c710c3c
DJ
15523debug=false
15524ac_cs_recheck=false
15525ac_cs_silent=false
1c710c3c 15526
5213506e
RW
15527SHELL=\${CONFIG_SHELL-$SHELL}
15528export SHELL
15529_ASEOF
15530cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15531## -------------------- ##
15532## M4sh Initialization. ##
15533## -------------------- ##
15534
15535# Be more Bourne compatible
15536DUALCASE=1; export DUALCASE # for MKS sh
15537if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
15538 emulate sh
15539 NULLCMD=:
5213506e 15540 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
15541 # is contrary to our usage. Disable this feature.
15542 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
15543 setopt NO_GLOB_SUBST
15544else
15545 case `(set -o) 2>/dev/null` in #(
15546 *posix*) :
15547 set -o posix ;; #(
15548 *) :
15549 ;;
15550esac
1c710c3c 15551fi
1c710c3c 15552
5213506e
RW
15553
15554as_nl='
15555'
15556export as_nl
15557# Printing a long string crashes Solaris 7 /usr/bin/printf.
15558as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15559as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15560as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15561# Prefer a ksh shell builtin over an external printf program on Solaris,
15562# but without wasting forks for bash or zsh.
15563if test -z "$BASH_VERSION$ZSH_VERSION" \
15564 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15565 as_echo='print -r --'
15566 as_echo_n='print -rn --'
15567elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15568 as_echo='printf %s\n'
15569 as_echo_n='printf %s'
15570else
15571 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15572 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15573 as_echo_n='/usr/ucb/echo -n'
15574 else
15575 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15576 as_echo_n_body='eval
15577 arg=$1;
15578 case $arg in #(
15579 *"$as_nl"*)
15580 expr "X$arg" : "X\\(.*\\)$as_nl";
15581 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15582 esac;
15583 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15584 '
15585 export as_echo_n_body
15586 as_echo_n='sh -c $as_echo_n_body as_echo'
15587 fi
15588 export as_echo_body
15589 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
15590fi
15591
5213506e
RW
15592# The user is always right.
15593if test "${PATH_SEPARATOR+set}" != set; then
15594 PATH_SEPARATOR=:
15595 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15596 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15597 PATH_SEPARATOR=';'
15598 }
15599fi
15600
15601
15602# IFS
15603# We need space, tab and new line, in precisely that order. Quoting is
15604# there to prevent editors from complaining about space-tab.
15605# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15606# splitting by setting IFS to empty value.)
15607IFS=" "" $as_nl"
15608
15609# Find who we are. Look in the path if we contain no directory separator.
22e05272 15610as_myself=
5213506e
RW
15611case $0 in #((
15612 *[\\/]* ) as_myself=$0 ;;
15613 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15614for as_dir in $PATH
15615do
15616 IFS=$as_save_IFS
15617 test -z "$as_dir" && as_dir=.
15618 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15619 done
15620IFS=$as_save_IFS
15621
15622 ;;
15623esac
15624# We did not find ourselves, most probably we were run as `sh COMMAND'
15625# in which case we are not to be found in the path.
15626if test "x$as_myself" = x; then
15627 as_myself=$0
15628fi
15629if test ! -f "$as_myself"; then
15630 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15631 exit 1
15632fi
1c710c3c 15633
5213506e
RW
15634# Unset variables that we do not need and which cause bugs (e.g. in
15635# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15636# suppresses any "Segmentation fault" message there. '((' could
15637# trigger a bug in pdksh 5.2.14.
15638for as_var in BASH_ENV ENV MAIL MAILPATH
15639do eval test x\${$as_var+set} = xset \
15640 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15641done
1c710c3c
DJ
15642PS1='$ '
15643PS2='> '
15644PS4='+ '
15645
15646# NLS nuisances.
5213506e
RW
15647LC_ALL=C
15648export LC_ALL
15649LANGUAGE=C
15650export LANGUAGE
15651
15652# CDPATH.
15653(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15654
15655
22e05272
JM
15656# as_fn_error STATUS ERROR [LINENO LOG_FD]
15657# ----------------------------------------
5213506e
RW
15658# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15659# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 15660# script with STATUS, using 1 if that was 0.
5213506e
RW
15661as_fn_error ()
15662{
22e05272
JM
15663 as_status=$1; test $as_status -eq 0 && as_status=1
15664 if test "$4"; then
15665 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15666 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1c710c3c 15667 fi
22e05272 15668 $as_echo "$as_me: error: $2" >&2
5213506e
RW
15669 as_fn_exit $as_status
15670} # as_fn_error
15671
15672
15673# as_fn_set_status STATUS
15674# -----------------------
15675# Set $? to STATUS, without forking.
15676as_fn_set_status ()
15677{
15678 return $1
15679} # as_fn_set_status
15680
15681# as_fn_exit STATUS
15682# -----------------
15683# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15684as_fn_exit ()
15685{
15686 set +e
15687 as_fn_set_status $1
15688 exit $1
15689} # as_fn_exit
15690
15691# as_fn_unset VAR
15692# ---------------
15693# Portably unset VAR.
15694as_fn_unset ()
15695{
15696 { eval $1=; unset $1;}
15697}
15698as_unset=as_fn_unset
15699# as_fn_append VAR VALUE
15700# ----------------------
15701# Append the text in VALUE to the end of the definition contained in VAR. Take
15702# advantage of any shell optimizations that allow amortized linear growth over
15703# repeated appends, instead of the typical quadratic growth present in naive
15704# implementations.
15705if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15706 eval 'as_fn_append ()
15707 {
15708 eval $1+=\$2
15709 }'
15710else
15711 as_fn_append ()
15712 {
15713 eval $1=\$$1\$2
15714 }
15715fi # as_fn_append
15716
15717# as_fn_arith ARG...
15718# ------------------
15719# Perform arithmetic evaluation on the ARGs, and store the result in the
15720# global $as_val. Take advantage of shells that can avoid forks. The arguments
15721# must be portable across $(()) and expr.
15722if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15723 eval 'as_fn_arith ()
15724 {
15725 as_val=$(( $* ))
15726 }'
15727else
15728 as_fn_arith ()
15729 {
15730 as_val=`expr "$@" || test $? -eq 1`
15731 }
15732fi # as_fn_arith
15733
1c710c3c 15734
5213506e
RW
15735if expr a : '\(a\)' >/dev/null 2>&1 &&
15736 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
15737 as_expr=expr
15738else
15739 as_expr=false
15740fi
15741
5213506e 15742if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
15743 as_basename=basename
15744else
15745 as_basename=false
15746fi
15747
5213506e
RW
15748if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15749 as_dirname=dirname
15750else
15751 as_dirname=false
15752fi
1c710c3c 15753
5213506e 15754as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
15755$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15756 X"$0" : 'X\(//\)$' \| \
5213506e
RW
15757 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15758$as_echo X/"$0" |
15759 sed '/^.*\/\([^/][^/]*\)\/*$/{
15760 s//\1/
15761 q
15762 }
15763 /^X\/\(\/\/\)$/{
15764 s//\1/
15765 q
15766 }
15767 /^X\/\(\/\).*/{
15768 s//\1/
15769 q
15770 }
15771 s/.*/./; q'`
2aeb72e9 15772
2aeb72e9
DD
15773# Avoid depending upon Character Ranges.
15774as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15775as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15776as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15777as_cr_digits='0123456789'
15778as_cr_alnum=$as_cr_Letters$as_cr_digits
15779
5213506e
RW
15780ECHO_C= ECHO_N= ECHO_T=
15781case `echo -n x` in #(((((
15782-n*)
15783 case `echo 'xy\c'` in
15784 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15785 xy) ECHO_C='\c';;
15786 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15787 ECHO_T=' ';;
15788 esac;;
15789*)
15790 ECHO_N='-n';;
1c710c3c
DJ
15791esac
15792
5213506e
RW
15793rm -f conf$$ conf$$.exe conf$$.file
15794if test -d conf$$.dir; then
15795 rm -f conf$$.dir/conf$$.file
1c710c3c 15796else
5213506e
RW
15797 rm -f conf$$.dir
15798 mkdir conf$$.dir 2>/dev/null
1c710c3c 15799fi
5213506e
RW
15800if (echo >conf$$.file) 2>/dev/null; then
15801 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 15802 as_ln_s='ln -s'
5213506e
RW
15803 # ... but there are two gotchas:
15804 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15805 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 15806 # In both cases, we have to default to `cp -pR'.
5213506e 15807 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 15808 as_ln_s='cp -pR'
5213506e
RW
15809 elif ln conf$$.file conf$$ 2>/dev/null; then
15810 as_ln_s=ln
15811 else
22e05272 15812 as_ln_s='cp -pR'
2aeb72e9 15813 fi
1c710c3c 15814else
22e05272 15815 as_ln_s='cp -pR'
1c710c3c 15816fi
5213506e
RW
15817rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15818rmdir conf$$.dir 2>/dev/null
15819
15820
15821# as_fn_mkdir_p
15822# -------------
15823# Create "$as_dir" as a directory, including parents if necessary.
15824as_fn_mkdir_p ()
15825{
15826
15827 case $as_dir in #(
15828 -*) as_dir=./$as_dir;;
15829 esac
15830 test -d "$as_dir" || eval $as_mkdir_p || {
15831 as_dirs=
15832 while :; do
15833 case $as_dir in #(
15834 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15835 *) as_qdir=$as_dir;;
15836 esac
15837 as_dirs="'$as_qdir' $as_dirs"
15838 as_dir=`$as_dirname -- "$as_dir" ||
15839$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15840 X"$as_dir" : 'X\(//\)[^/]' \| \
15841 X"$as_dir" : 'X\(//\)$' \| \
15842 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15843$as_echo X"$as_dir" |
15844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15845 s//\1/
15846 q
15847 }
15848 /^X\(\/\/\)[^/].*/{
15849 s//\1/
15850 q
15851 }
15852 /^X\(\/\/\)$/{
15853 s//\1/
15854 q
15855 }
15856 /^X\(\/\).*/{
15857 s//\1/
15858 q
15859 }
15860 s/.*/./; q'`
15861 test -d "$as_dir" && break
15862 done
15863 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 15864 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 15865
1c710c3c 15866
5213506e 15867} # as_fn_mkdir_p
1c710c3c 15868if mkdir -p . 2>/dev/null; then
5213506e 15869 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
15870else
15871 test -d ./-p && rmdir ./-p
15872 as_mkdir_p=false
15873fi
15874
22e05272
JM
15875
15876# as_fn_executable_p FILE
15877# -----------------------
15878# Test if FILE is an executable regular file.
15879as_fn_executable_p ()
15880{
15881 test -f "$1" && test -x "$1"
15882} # as_fn_executable_p
15883as_test_x='test -x'
15884as_executable_p=as_fn_executable_p
1c710c3c
DJ
15885
15886# Sed expression to map a string onto a valid CPP name.
15887as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15888
15889# Sed expression to map a string onto a valid variable name.
15890as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15891
15892
1c710c3c 15893exec 6>&1
5213506e
RW
15894## ----------------------------------- ##
15895## Main body of $CONFIG_STATUS script. ##
15896## ----------------------------------- ##
15897_ASEOF
15898test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15899
15900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15901# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15902# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15903# values after options handling.
15904ac_log="
1c710c3c 15905This file was extended by $as_me, which was
22e05272 15906generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
15907
15908 CONFIG_FILES = $CONFIG_FILES
15909 CONFIG_HEADERS = $CONFIG_HEADERS
15910 CONFIG_LINKS = $CONFIG_LINKS
15911 CONFIG_COMMANDS = $CONFIG_COMMANDS
15912 $ $0 $@
15913
5213506e
RW
15914on `(hostname || uname -n) 2>/dev/null | sed 1q`
15915"
15916
1c710c3c
DJ
15917_ACEOF
15918
5213506e
RW
15919case $ac_config_files in *"
15920"*) set x $ac_config_files; shift; ac_config_files=$*;;
15921esac
1c710c3c 15922
2aeb72e9 15923
2aeb72e9 15924
5213506e
RW
15925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15926# Files that config.status was made for.
15927config_files="$ac_config_files"
1c710c3c 15928
5213506e 15929_ACEOF
2aeb72e9 15930
5213506e 15931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15932ac_cs_usage="\
5213506e
RW
15933\`$as_me' instantiates files and other configuration actions
15934from templates according to the current configuration. Unless the files
15935and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15936
5213506e 15937Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15938
15939 -h, --help print this help, then exit
5213506e 15940 -V, --version print version number and configuration settings, then exit
22e05272 15941 --config print configuration, then exit
5213506e
RW
15942 -q, --quiet, --silent
15943 do not print progress messages
1c710c3c
DJ
15944 -d, --debug don't remove temporary files
15945 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15946 --file=FILE[:TEMPLATE]
15947 instantiate the configuration file FILE
1c710c3c
DJ
15948
15949Configuration files:
15950$config_files
15951
5213506e 15952Report bugs to the package provider."
2aeb72e9 15953
5213506e
RW
15954_ACEOF
15955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 15956ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1c710c3c
DJ
15957ac_cs_version="\\
15958config.status
22e05272
JM
15959configured by $0, generated by GNU Autoconf 2.69,
15960 with options \\"\$ac_cs_config\\"
1c710c3c 15961
22e05272 15962Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
15963This config.status script is free software; the Free Software Foundation
15964gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15965
15966ac_pwd='$ac_pwd'
15967srcdir='$srcdir'
15968INSTALL='$INSTALL'
87264276 15969AWK='$AWK'
5213506e 15970test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15971_ACEOF
15972
5213506e
RW
15973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15974# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15975ac_need_defaults=:
15976while test $# != 0
a4b9e93e 15977do
1c710c3c 15978 case $1 in
22e05272 15979 --*=?*)
5213506e
RW
15980 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15981 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15982 ac_shift=:
15983 ;;
22e05272
JM
15984 --*=)
15985 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15986 ac_optarg=
15987 ac_shift=:
15988 ;;
5213506e 15989 *)
1c710c3c
DJ
15990 ac_option=$1
15991 ac_optarg=$2
15992 ac_shift=shift
15993 ;;
1c710c3c
DJ
15994 esac
15995
15996 case $ac_option in
15997 # Handling of the options.
671aa708 15998 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15999 ac_cs_recheck=: ;;
5213506e
RW
16000 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16001 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
16002 --config | --confi | --conf | --con | --co | --c )
16003 $as_echo "$ac_cs_config"; exit ;;
5213506e 16004 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
16005 debug=: ;;
16006 --file | --fil | --fi | --f )
16007 $ac_shift
5213506e
RW
16008 case $ac_optarg in
16009 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 16010 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
16011 esac
16012 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 16013 ac_need_defaults=false;;
5213506e
RW
16014 --he | --h | --help | --hel | -h )
16015 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
16016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16017 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16018 ac_cs_silent=: ;;
16019
16020 # This is an error.
22e05272 16021 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 16022Try \`$0 --help' for more information." ;;
1c710c3c 16023
5213506e
RW
16024 *) as_fn_append ac_config_targets " $1"
16025 ac_need_defaults=false ;;
1c710c3c 16026
0b0dc272 16027 esac
1c710c3c 16028 shift
0b0dc272
AM
16029done
16030
1c710c3c 16031ac_configure_extra_args=
0b0dc272 16032
1c710c3c
DJ
16033if $ac_cs_silent; then
16034 exec 6>/dev/null
16035 ac_configure_extra_args="$ac_configure_extra_args --silent"
16036fi
0b0dc272 16037
1c710c3c 16038_ACEOF
5213506e 16039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 16040if \$ac_cs_recheck; then
22e05272 16041 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
16042 shift
16043 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16044 CONFIG_SHELL='$SHELL'
16045 export CONFIG_SHELL
16046 exec "\$@"
1c710c3c
DJ
16047fi
16048
16049_ACEOF
5213506e
RW
16050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16051exec 5>>config.log
16052{
16053 echo
16054 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16055## Running $as_me. ##
16056_ASBOX
16057 $as_echo "$ac_log"
16058} >&5
1c710c3c 16059
5213506e
RW
16060_ACEOF
16061cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
16062#
16063# INIT-COMMANDS
16064#
16065extrasub_build="$extrasub_build"
16066 extrasub_host="$extrasub_host"
16067 extrasub_target="$extrasub_target"
16068
5213506e 16069_ACEOF
1c710c3c 16070
5213506e 16071cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 16072
5213506e 16073# Handling of arguments.
1c710c3c
DJ
16074for ac_config_target in $ac_config_targets
16075do
5213506e
RW
16076 case $ac_config_target in
16077 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16078
22e05272 16079 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
16080 esac
16081done
16082
5213506e 16083
1c710c3c
DJ
16084# If the user did not use the arguments to specify the items to instantiate,
16085# then the envvar interface is used. Set only those that are not.
16086# We use the long form for the default assignment because of an extremely
16087# bizarre bug on SunOS 4.1.3.
16088if $ac_need_defaults; then
16089 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16090fi
16091
16092# Have a temporary directory for convenience. Make it in the build tree
5213506e 16093# simply because there is no reason against having it here, and in addition,
1c710c3c 16094# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
16095# Hook for its removal unless debugging.
16096# Note that there is a small window in which the directory will not be cleaned:
16097# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
16098$debug ||
16099{
22e05272 16100 tmp= ac_tmp=
5213506e 16101 trap 'exit_status=$?
22e05272
JM
16102 : "${ac_tmp:=$tmp}"
16103 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
16104' 0
16105 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 16106}
1c710c3c
DJ
16107# Create a (secure) tmp directory for tmp files.
16108
16109{
5213506e 16110 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 16111 test -d "$tmp"
1c710c3c
DJ
16112} ||
16113{
5213506e
RW
16114 tmp=./conf$$-$RANDOM
16115 (umask 077 && mkdir "$tmp")
22e05272
JM
16116} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16117ac_tmp=$tmp
5213506e
RW
16118
16119# Set up the scripts for CONFIG_FILES section.
16120# No need to generate them if there are no CONFIG_FILES.
16121# This happens for instance with `./config.status config.h'.
16122if test -n "$CONFIG_FILES"; then
16123
16124if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16125 ac_cs_awk_getline=:
16126 ac_cs_awk_pipe_init=
16127 ac_cs_awk_read_file='
16128 while ((getline aline < (F[key])) > 0)
16129 print(aline)
16130 close(F[key])'
16131 ac_cs_awk_pipe_fini=
16132else
16133 ac_cs_awk_getline=false
16134 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16135 ac_cs_awk_read_file='
16136 print "|#_!!_#|"
16137 print "cat " F[key] " &&"
16138 '$ac_cs_awk_pipe_init
16139 # The final `:' finishes the AND list.
16140 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16141fi
16142ac_cr=`echo X | tr X '\015'`
16143# On cygwin, bash can eat \r inside `` if the user requested igncr.
16144# But we know of no other shell where ac_cr would be empty at this
16145# point, so we can use a bashism as a fallback.
16146if test "x$ac_cr" = x; then
16147 eval ac_cr=\$\'\\r\'
16148fi
16149ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16150if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 16151 ac_cs_awk_cr='\\r'
5213506e
RW
16152else
16153 ac_cs_awk_cr=$ac_cr
16154fi
16155
22e05272 16156echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
16157_ACEOF
16158
16159# Create commands to substitute file output variables.
1c710c3c 16160{
5213506e 16161 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22e05272 16162 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
5213506e
RW
16163 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16164 echo "_ACAWK" &&
16165 echo "_ACEOF"
16166} >conf$$files.sh &&
16167. ./conf$$files.sh ||
22e05272 16168 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e 16169rm -f conf$$files.sh
1c710c3c 16170
5213506e
RW
16171{
16172 echo "cat >conf$$subs.awk <<_ACEOF" &&
16173 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16174 echo "_ACEOF"
16175} >conf$$subs.sh ||
22e05272
JM
16176 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16177ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
16178ac_delim='%!_!# '
16179for ac_last_try in false false false false false :; do
16180 . ./conf$$subs.sh ||
22e05272 16181 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
16182
16183 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16184 if test $ac_delim_n = $ac_delim_num; then
16185 break
16186 elif $ac_last_try; then
22e05272 16187 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
16188 else
16189 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16190 fi
16191done
16192rm -f conf$$subs.sh
16193
16194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16195cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 16196_ACEOF
5213506e
RW
16197sed -n '
16198h
16199s/^/S["/; s/!.*/"]=/
16200p
16201g
16202s/^[^!]*!//
16203:repl
16204t repl
16205s/'"$ac_delim"'$//
16206t delim
16207:nl
16208h
22e05272 16209s/\(.\{148\}\)..*/\1/
5213506e
RW
16210t more1
16211s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16212p
16213n
16214b repl
16215:more1
16216s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16217p
16218g
16219s/.\{148\}//
16220t nl
16221:delim
16222h
22e05272 16223s/\(.\{148\}\)..*/\1/
5213506e
RW
16224t more2
16225s/["\\]/\\&/g; s/^/"/; s/$/"/
16226p
16227b
16228:more2
16229s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16230p
16231g
16232s/.\{148\}//
16233t delim
16234' <conf$$subs.awk | sed '
16235/^[^""]/{
16236 N
16237 s/\n//
16238}
16239' >>$CONFIG_STATUS || ac_write_fail=1
16240rm -f conf$$subs.awk
16241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16242_ACAWK
22e05272 16243cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
16244 for (key in S) S_is_set[key] = 1
16245 FS = "\a"
16246 \$ac_cs_awk_pipe_init
16247}
16248{
16249 line = $ 0
16250 nfields = split(line, field, "@")
16251 substed = 0
16252 len = length(field[1])
16253 for (i = 2; i < nfields; i++) {
16254 key = field[i]
16255 keylen = length(key)
16256 if (S_is_set[key]) {
16257 value = S[key]
16258 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16259 len += length(value) + length(field[++i])
16260 substed = 1
16261 } else
16262 len += 1 + keylen
16263 }
16264 if (nfields == 3 && !substed) {
16265 key = field[2]
16266 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16267 \$ac_cs_awk_read_file
16268 next
16269 }
16270 }
16271 print line
16272}
16273\$ac_cs_awk_pipe_fini
16274_ACAWK
16275_ACEOF
16276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16277if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16278 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16279else
16280 cat
22e05272
JM
16281fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16282 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
16283_ACEOF
16284
22e05272
JM
16285# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16286# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
16287# trailing colons and then remove the whole line if VPATH becomes empty
16288# (actually we leave an empty line to preserve line numbers).
16289if test "x$srcdir" = x.; then
22e05272
JM
16290 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16291h
16292s///
16293s/^/:/
16294s/[ ]*$/:/
16295s/:\$(srcdir):/:/g
16296s/:\${srcdir}:/:/g
16297s/:@srcdir@:/:/g
16298s/^:*//
5213506e 16299s/:*$//
22e05272
JM
16300x
16301s/\(=[ ]*\).*/\1/
16302G
16303s/\n//
5213506e
RW
16304s/^[^=]*=[ ]*$//
16305}'
16306fi
2aeb72e9 16307
5213506e
RW
16308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16309fi # test -n "$CONFIG_FILES"
2aeb72e9 16310
1c710c3c 16311
5213506e
RW
16312eval set X " :F $CONFIG_FILES "
16313shift
16314for ac_tag
16315do
16316 case $ac_tag in
16317 :[FHLC]) ac_mode=$ac_tag; continue;;
16318 esac
16319 case $ac_mode$ac_tag in
16320 :[FHL]*:*);;
22e05272 16321 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
16322 :[FH]-) ac_tag=-:-;;
16323 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16324 esac
16325 ac_save_IFS=$IFS
16326 IFS=:
16327 set x $ac_tag
16328 IFS=$ac_save_IFS
16329 shift
16330 ac_file=$1
16331 shift
79c06341 16332
5213506e
RW
16333 case $ac_mode in
16334 :L) ac_source=$1;;
16335 :[FH])
16336 ac_file_inputs=
16337 for ac_f
16338 do
16339 case $ac_f in
22e05272 16340 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
16341 *) # Look for the file first in the build tree, then in the source tree
16342 # (if the path is not absolute). The absolute path cannot be DOS-style,
16343 # because $ac_f cannot contain `:'.
16344 test -f "$ac_f" ||
16345 case $ac_f in
16346 [\\/$]*) false;;
16347 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16348 esac ||
22e05272 16349 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
16350 esac
16351 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16352 as_fn_append ac_file_inputs " '$ac_f'"
16353 done
1c710c3c 16354
5213506e
RW
16355 # Let's still pretend it is `configure' which instantiates (i.e., don't
16356 # use $as_me), people would be surprised to read:
16357 # /* config.h. Generated by config.status. */
16358 configure_input='Generated from '`
16359 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16360 `' by configure.'
16361 if test x"$ac_file" != x-; then
16362 configure_input="$ac_file. $configure_input"
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16364$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 16365 fi
5213506e
RW
16366 # Neutralize special characters interpreted by sed in replacement strings.
16367 case $configure_input in #(
16368 *\&* | *\|* | *\\* )
16369 ac_sed_conf_input=`$as_echo "$configure_input" |
16370 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16371 *) ac_sed_conf_input=$configure_input;;
16372 esac
11a67599 16373
5213506e 16374 case $ac_tag in
22e05272
JM
16375 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16376 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
16377 esac
16378 ;;
11a67599
ZW
16379 esac
16380
5213506e 16381 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
16382$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16383 X"$ac_file" : 'X\(//\)[^/]' \| \
16384 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
16385 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16386$as_echo X"$ac_file" |
16387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16388 s//\1/
16389 q
16390 }
16391 /^X\(\/\/\)[^/].*/{
16392 s//\1/
16393 q
16394 }
16395 /^X\(\/\/\)$/{
16396 s//\1/
16397 q
16398 }
16399 /^X\(\/\).*/{
16400 s//\1/
16401 q
16402 }
16403 s/.*/./; q'`
16404 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 16405 ac_builddir=.
0b0dc272 16406
5213506e
RW
16407case "$ac_dir" in
16408.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16409*)
16410 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16411 # A ".." for each directory in $ac_dir_suffix.
16412 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16413 case $ac_top_builddir_sub in
16414 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16415 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16416 esac ;;
16417esac
16418ac_abs_top_builddir=$ac_pwd
16419ac_abs_builddir=$ac_pwd$ac_dir_suffix
16420# for backward compatibility:
16421ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
16422
16423case $srcdir in
5213506e 16424 .) # We are building in place.
1c710c3c 16425 ac_srcdir=.
5213506e
RW
16426 ac_top_srcdir=$ac_top_builddir_sub
16427 ac_abs_top_srcdir=$ac_pwd ;;
16428 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 16429 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
16430 ac_top_srcdir=$srcdir
16431 ac_abs_top_srcdir=$srcdir ;;
16432 *) # Relative name.
16433 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16434 ac_top_srcdir=$ac_top_build_prefix$srcdir
16435 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 16436esac
5213506e 16437ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 16438
0b0dc272 16439
5213506e
RW
16440 case $ac_mode in
16441 :F)
16442 #
16443 # CONFIG_FILE
16444 #
1c710c3c
DJ
16445
16446 case $INSTALL in
16447 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 16448 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 16449 esac
5213506e 16450_ACEOF
11a67599 16451
5213506e
RW
16452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16453# If the template does not know about datarootdir, expand it.
16454# FIXME: This hack should be removed a few years after 2.60.
16455ac_datarootdir_hack=; ac_datarootdir_seen=
16456ac_sed_dataroot='
16457/datarootdir/ {
16458 p
16459 q
16460}
16461/@datadir@/p
16462/@docdir@/p
16463/@infodir@/p
16464/@localedir@/p
16465/@mandir@/p'
16466case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16467*datarootdir*) ac_datarootdir_seen=yes;;
16468*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16470$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 16471_ACEOF
5213506e
RW
16472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16473 ac_datarootdir_hack='
16474 s&@datadir@&$datadir&g
16475 s&@docdir@&$docdir&g
16476 s&@infodir@&$infodir&g
16477 s&@localedir@&$localedir&g
16478 s&@mandir@&$mandir&g
16479 s&\\\${datarootdir}&$datarootdir&g' ;;
16480esac
16481_ACEOF
16482
16483# Neutralize VPATH when `$srcdir' = `.'.
16484# Shell code in configure.ac might set extrasub.
16485# FIXME: do we really want to maintain this feature?
16486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16487ac_sed_extra="$ac_vpsub
1c710c3c
DJ
16488$extrasub
16489_ACEOF
5213506e 16490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
16491:t
16492/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
16493s|@configure_input@|$ac_sed_conf_input|;t t
16494s&@top_builddir@&$ac_top_builddir_sub&;t t
16495s&@top_build_prefix@&$ac_top_build_prefix&;t t
16496s&@srcdir@&$ac_srcdir&;t t
16497s&@abs_srcdir@&$ac_abs_srcdir&;t t
16498s&@top_srcdir@&$ac_top_srcdir&;t t
16499s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16500s&@builddir@&$ac_builddir&;t t
16501s&@abs_builddir@&$ac_abs_builddir&;t t
16502s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16503s&@INSTALL@&$ac_INSTALL&;t t
16504$ac_datarootdir_hack
16505"
16506eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16507if $ac_cs_awk_getline; then
22e05272 16508 $AWK -f "$ac_tmp/subs.awk"
5213506e 16509else
22e05272
JM
16510 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16511fi \
16512 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
16513
16514test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
16515 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16516 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16517 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 16518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16519which seems to be undefined. Please make sure it is defined" >&5
5213506e 16520$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16521which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 16522
22e05272 16523 rm -f "$ac_tmp/stdin"
5213506e 16524 case $ac_file in
22e05272
JM
16525 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16526 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 16527 esac \
22e05272 16528 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 16529 ;;
11a67599 16530
11a67599 16531
79c06341 16532
5213506e
RW
16533 esac
16534
3e54529c
RW
16535
16536 case $ac_file$ac_mode in
16537 "Makefile":F) sed "$extrasub_build" Makefile |
16538 sed "$extrasub_host" |
16539 sed "$extrasub_target" > mf$$
16540 mv -f mf$$ Makefile ;;
16541
16542 esac
5213506e
RW
16543done # for ac_tag
16544
16545
16546as_fn_exit 0
1c710c3c 16547_ACEOF
1c710c3c
DJ
16548ac_clean_files=$ac_clean_files_save
16549
5213506e 16550test $ac_write_fail = 0 ||
22e05272 16551 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 16552
1c710c3c
DJ
16553
16554# configure is writing to config.log, and then calls config.status.
16555# config.status does its own redirection, appending to config.log.
16556# Unfortunately, on DOS this fails, as config.log is still kept open
16557# by configure, so config.status won't be able to write to it; its
16558# output is simply discarded. So we exec the FD to /dev/null,
16559# effectively closing config.log, so it can be properly (re)opened and
16560# appended to by config.status. When coming back to configure, we
16561# need to make the FD available again.
16562if test "$no_create" != yes; then
16563 ac_cs_success=:
16564 ac_config_status_args=
16565 test "$silent" = yes &&
16566 ac_config_status_args="$ac_config_status_args --quiet"
16567 exec 5>/dev/null
16568 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16569 exec 5>>config.log
16570 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16571 # would make configure fail if this is the last instruction.
22e05272 16572 $ac_cs_success || as_fn_exit 1
5213506e
RW
16573fi
16574if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16576$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 16577fi
79c06341 16578