]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
c++: array new initialized from a call [PR99643]
[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 3681 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
96b32c86 3682 && ! test -d ${srcdir}/gmp \
6de9cd9a
DN
3683 && test -f /usr/local/include/gmp.h; then
3684 with_gmp=/usr/local
3685 fi
6de9cd9a 3686 ;;
ef4e7569
US
3687 *-*-kaos*)
3688 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3689 noconfigdirs="$noconfigdirs target-libgloss"
3690 ;;
671aa708 3691 *-*-netbsd*)
671aa708 3692 ;;
61fec9ff 3693 *-*-netware*)
671aa708 3694 ;;
fd6487af
JS
3695 *-*-phoenix*)
3696 noconfigdirs="$noconfigdirs target-libgloss"
3697 ;;
671aa708 3698 *-*-rtems*)
2909494b 3699 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3700 ;;
a8ba31f2
EC
3701 # The tpf target doesn't support gdb yet.
3702 *-*-tpf*)
6a789d5e 3703 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3704 ;;
5785c0ed 3705 *-*-uclinux*)
6a789d5e 3706 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3707 ;;
671aa708 3708 *-*-vxworks*)
671aa708
NN
3709 ;;
3710 alpha*-dec-osf*)
3711 # ld works, but does not support shared libraries.
671aa708 3712 # gas doesn't generate exception information.
6a789d5e 3713 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3714 ;;
3715 alpha*-*-*vms*)
2909494b 3716 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3717 ;;
671aa708
NN
3718 alpha*-*-*)
3719 # newlib is not 64 bit ready
2909494b 3720 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3721 ;;
671aa708 3722 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3723 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3724 ;;
2fd88f4f
AK
3725 arc*-*-*)
3726 noconfigdirs="$noconfigdirs sim"
3727 ;;
671aa708 3728 arm-*-pe*)
2909494b 3729 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3730 ;;
671aa708 3731 arm-*-riscix*)
0036370f 3732 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3733 ;;
b588ae30
GJL
3734 avr-*-*)
3735 if test x${with_avrlibc} != xno; then
3736 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3737 fi
3738 ;;
671aa708 3739 c4x-*-* | tic4x-*-*)
0036370f 3740 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3741 ;;
0036370f
JM
3742 tic54x-*-*)
3743 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3744 ;;
671aa708 3745 d10v-*-*)
0036370f 3746 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3747 ;;
3748 d30v-*-*)
0036370f 3749 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3750 ;;
3751 fr30-*-elf*)
2909494b 3752 noconfigdirs="$noconfigdirs gdb"
671aa708 3753 ;;
a05c2c75
L
3754 ft32-*-*)
3755 noconfigdirs="$noconfigdirs target-rda gprof"
3756 ;;
55f2d967 3757 moxie-*-*)
a05c2c75 3758 noconfigdirs="$noconfigdirs"
55f2d967 3759 ;;
671aa708 3760 h8300*-*-*)
2909494b 3761 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3762 ;;
3763 h8500-*-*)
0036370f 3764 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3765 ;;
ee6a22df 3766 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3767 ;;
a05c2c75
L
3768 hppa*64*-*-hpux*)
3769 noconfigdirs="$noconfigdirs gdb"
3770 ;;
3771 hppa*-*-hpux11*)
3772 noconfigdirs="$noconfigdirs gdb ld"
3773 ;;
4569f85e 3774 hppa*64*-*-linux*)
671aa708 3775 ;;
56f8587a 3776 hppa*-*-linux*)
3e732ba0 3777 ;;
671aa708 3778 hppa*-*-*elf* | \
671aa708
NN
3779 hppa*-*-lites* | \
3780 hppa*-*-openbsd* | \
3781 hppa*64*-*-*)
671aa708 3782 ;;
c03353e2 3783 hppa*-*-pro*)
c03353e2 3784 ;;
671aa708 3785 hppa*-*-*)
2909494b 3786 noconfigdirs="$noconfigdirs ld"
671aa708 3787 ;;
fb87ad5d 3788 i960-*-*)
0036370f 3789 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3790 ;;
671aa708
NN
3791 ia64*-*-elf*)
3792 # No gdb support yet.
1bcce263 3793 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3794 ;;
3795 ia64*-**-hpux*)
5a2931d1 3796 # No ld support yet.
a05c2c75 3797 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3798 ;;
52535a64 3799 ia64*-*-*vms*)
091fe9ca
TG
3800 # No ld support yet.
3801 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3802 ;;
ef4c4300 3803 i[3456789]86-w64-mingw*)
ef4c4300
KT
3804 ;;
3805 i[3456789]86-*-mingw*)
b91f0a41 3806 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3807 ;;
671aa708
NN
3808 *-*-cygwin*)
3809 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3810 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3811 # always build newlib if winsup directory is present.
b91f0a41 3812 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3813 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3814 elif test -d "$srcdir/newlib"; then
b91f0a41 3815 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3816 fi
1c710c3c 3817 ;;
f2a0e225 3818 i[3456789]86-*-pe)
ebb9f8b0 3819 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3820 ;;
f2a0e225 3821 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3822 # The linker does not yet know about weak symbols in COFF,
3823 # and is not configured to handle mixed ELF and COFF.
0036370f 3824 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3825 ;;
f2a0e225 3826 i[3456789]86-*-sco*)
0036370f 3827 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3828 ;;
fbdd5d87 3829 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3830 noconfigdirs="$noconfigdirs target-libgloss"
3831 ;;
f2a0e225 3832 i[3456789]86-*-sysv4*)
0036370f 3833 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3834 ;;
f2a0e225 3835 i[3456789]86-*-beos*)
6a789d5e 3836 noconfigdirs="$noconfigdirs gdb"
3aa83176 3837 ;;
d1f8db0c 3838 i[3456789]86-*-rdos*)
6a789d5e 3839 noconfigdirs="$noconfigdirs gdb"
c03353e2 3840 ;;
671aa708 3841 mmix-*-*)
2909494b 3842 noconfigdirs="$noconfigdirs gdb"
671aa708 3843 ;;
ab34901f 3844 mt-*-*)
79dd769c
AH
3845 noconfigdirs="$noconfigdirs sim"
3846 ;;
58b40a67
FT
3847 nfp-*-*)
3848 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3849 noconfigdirs="$noconfigdirs $target_libraries"
3850 ;;
671aa708
NN
3851 powerpc-*-aix*)
3852 # copied from rs6000-*-* entry
6a789d5e 3853 noconfigdirs="$noconfigdirs gprof"
671aa708 3854 ;;
4569f85e 3855 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3856 target_configdirs="$target_configdirs target-winsup"
0036370f 3857 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3858 # always build newlib.
3859 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3860 ;;
3861 # This is temporary until we can link against shared libraries
3862 powerpcle-*-solaris*)
0036370f 3863 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3864 ;;
3865 powerpc-*-beos*)
6a789d5e 3866 noconfigdirs="$noconfigdirs gdb"
671aa708 3867 ;;
671aa708 3868 rs6000-*-lynxos*)
6a789d5e 3869 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3870 ;;
3871 rs6000-*-aix*)
6a789d5e 3872 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3873 ;;
3874 rs6000-*-*)
2909494b 3875 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3876 ;;
3877 m68k-apollo-*)
0036370f 3878 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3879 ;;
ca9fe997 3880 microblaze*)
2909494b 3881 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3882 ;;
d896cc4d 3883 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3884 if test x$with_newlib = xyes; then
3885 noconfigdirs="$noconfigdirs gprof"
3886 fi
d9dced13 3887 ;;
671aa708 3888 mips*-*-irix5*)
0036370f 3889 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3890 ;;
3891 mips*-*-irix6*)
2909494b 3892 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3893 ;;
671aa708 3894 mips*-*-bsd*)
bc98bcc4 3895 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3896 ;;
671aa708 3897 mips*-*-linux*)
671aa708 3898 ;;
bc98bcc4
JBG
3899 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3900 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3901 noconfigdirs="$noconfigdirs ld gas gprof"
3902 ;;
671aa708 3903 mips*-*-*)
2909494b 3904 noconfigdirs="$noconfigdirs gprof"
671aa708 3905 ;;
738f2522 3906 nvptx*-*-*)
738f2522
BS
3907 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3908 ;;
bc6d9014 3909 sh-*-*)
ea2002ba
CB
3910 case "${target}" in
3911 sh*-*-elf)
2909494b 3912 ;;
ea2002ba 3913 *)
2909494b 3914 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3915 esac
671aa708 3916 ;;
671aa708 3917 sparc-*-sunos4*)
6a789d5e 3918 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3919 use_gnu_ld=no
3920 fi
3921 ;;
b42f0d7e 3922 tic6x-*-*)
0d557ff8 3923 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3924 ;;
341c653c 3925 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
3926 noconfigdirs="$noconfigdirs sim"
3927 ;;
671aa708 3928 v810-*-*)
0036370f 3929 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3930 ;;
3931 vax-*-*)
2909494b 3932 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3933 ;;
1fc1d82e
MR
3934 wasm32-*-*)
3935 noconfigdirs="$noconfigdirs ld"
3936 ;;
671aa708 3937esac
79c06341 3938
671aa708
NN
3939# If we aren't building newlib, then don't build libgloss, since libgloss
3940# depends upon some newlib header files.
3941case "${noconfigdirs}" in
3942 *target-libgloss*) ;;
3943 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3944esac
3945
671aa708 3946# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3947host_makefile_frag=/dev/null
3948if test -d ${srcdir}/config ; then
3949case "${host}" in
f2a0e225 3950 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3951 host_makefile_frag="config/mh-djgpp"
3952 ;;
3953 *-cygwin*)
2a79c47f 3954
5213506e
RW
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3956$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3957echo a >cygwin-cat-check
e25a8c82 3958if test `cat cygwin-cat-check` = a ; then
2a79c47f 3959 rm cygwin-cat-check
5213506e
RW
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3961$as_echo "yes" >&6; }
2a79c47f
NC
3962else
3963 rm cygwin-cat-check
5213506e
RW
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965$as_echo "no" >&6; }
22e05272 3966 as_fn_error $? "The cat command does not ignore carriage return characters.
2a79c47f
NC
3967 Please either mount the build directory in binary mode or run the following
3968 commands before running any configure script:
3969set -o igncr
3970export SHELLOPTS
5213506e 3971 " "$LINENO" 5
2a79c47f
NC
3972fi
3973
671aa708
NN
3974 host_makefile_frag="config/mh-cygwin"
3975 ;;
c53a18d3 3976 *-mingw*)
1f5a6b84 3977 host_makefile_frag="config/mh-mingw"
95af8923 3978 ;;
cabb9d59 3979 alpha*-linux*)
13be44ed
UB
3980 host_makefile_frag="config/mh-alpha-linux"
3981 ;;
efd41714 3982 hppa*-hp-hpux10*)
efd41714 3983 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3984 ;;
111eeb6e 3985 hppa*-hp-hpux*)
efd41714
PB
3986 host_makefile_frag="config/mh-pa"
3987 ;;
3988 hppa*-*)
3989 host_makefile_frag="config/mh-pa"
3990 ;;
d8ed14ce
IS
3991 *-*-darwin*)
3992 host_makefile_frag="config/mh-darwin"
be8fff81 3993 ;;
d19bca38
PB
3994 powerpc-*-aix*)
3995 host_makefile_frag="config/mh-ppc-aix"
3996 ;;
3997 rs6000-*-aix*)
3998 host_makefile_frag="config/mh-ppc-aix"
3999 ;;
671aa708
NN
4000esac
4001fi
4002
55ffb5ed 4003if test "${build}" != "${host}" ; then
0999159b
PB
4004 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4005 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4006 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b 4007 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
0999159b 4008 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4009 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
b4c522fa 4010 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
0999159b
PB
4011 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4012 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4013 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4014 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4015 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4016 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4017else
4018 AR_FOR_BUILD="\$(AR)"
4019 AS_FOR_BUILD="\$(AS)"
fb0103e5 4020 CC_FOR_BUILD="\$(CC)"
0999159b 4021 CXX_FOR_BUILD="\$(CXX)"
0999159b 4022 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4023 GOC_FOR_BUILD="\$(GOC)"
b4c522fa 4024 GDC_FOR_BUILD="\$(GDC)"
0999159b
PB
4025 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4026 LD_FOR_BUILD="\$(LD)"
4027 NM_FOR_BUILD="\$(NM)"
4028 RANLIB_FOR_BUILD="\$(RANLIB)"
4029 WINDRES_FOR_BUILD="\$(WINDRES)"
4030 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4031fi
4032
4033ac_ext=c
1c710c3c
DJ
4034ac_cpp='$CPP $CPPFLAGS'
4035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038if test -n "$ac_tool_prefix"; then
4039 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4040set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4043if ${ac_cv_prog_CC+:} false; then :
5213506e 4044 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4045else
4046 if test -n "$CC"; then
4047 ac_cv_prog_CC="$CC" # Let the user override the test.
4048else
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
5213506e 4054 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4056 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4058 break 2
4059 fi
4060done
5213506e
RW
4061 done
4062IFS=$as_save_IFS
1c710c3c
DJ
4063
4064fi
4065fi
4066CC=$ac_cv_prog_CC
4067if test -n "$CC"; then
5213506e
RW
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4069$as_echo "$CC" >&6; }
1c710c3c 4070else
5213506e
RW
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072$as_echo "no" >&6; }
1c710c3c
DJ
4073fi
4074
5213506e 4075
1c710c3c
DJ
4076fi
4077if test -z "$ac_cv_prog_CC"; then
4078 ac_ct_CC=$CC
fb0103e5
RG
4079 # Extract the first word of "gcc", so it can be a program name with args.
4080set dummy gcc; ac_word=$2
5213506e
RW
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4083if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4084 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4085else
4086 if test -n "$ac_ct_CC"; then
4087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4088else
4089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090for as_dir in $PATH
4091do
4092 IFS=$as_save_IFS
4093 test -z "$as_dir" && as_dir=.
5213506e 4094 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4096 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4098 break 2
4099 fi
4100done
5213506e
RW
4101 done
4102IFS=$as_save_IFS
1c710c3c
DJ
4103
4104fi
4105fi
4106ac_ct_CC=$ac_cv_prog_ac_ct_CC
4107if test -n "$ac_ct_CC"; then
5213506e
RW
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4109$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4110else
5213506e
RW
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4112$as_echo "no" >&6; }
1c710c3c
DJ
4113fi
4114
5213506e
RW
4115 if test "x$ac_ct_CC" = x; then
4116 CC=""
4117 else
4118 case $cross_compiling:$ac_tool_warned in
4119yes:)
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4122ac_tool_warned=yes ;;
4123esac
4124 CC=$ac_ct_CC
4125 fi
1c710c3c
DJ
4126else
4127 CC="$ac_cv_prog_CC"
4128fi
4129
4130if test -z "$CC"; then
5213506e
RW
4131 if test -n "$ac_tool_prefix"; then
4132 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4133set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4135$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4136if ${ac_cv_prog_CC+:} false; then :
5213506e 4137 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4138else
4139 if test -n "$CC"; then
4140 ac_cv_prog_CC="$CC" # Let the user override the test.
4141else
1c710c3c
DJ
4142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143for as_dir in $PATH
4144do
4145 IFS=$as_save_IFS
4146 test -z "$as_dir" && as_dir=.
5213506e 4147 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4149 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4151 break 2
4152 fi
4153done
5213506e
RW
4154 done
4155IFS=$as_save_IFS
1c710c3c 4156
0b0dc272 4157fi
0b0dc272 4158fi
1c710c3c 4159CC=$ac_cv_prog_CC
af71363e 4160if test -n "$CC"; then
5213506e
RW
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4162$as_echo "$CC" >&6; }
2aeb72e9 4163else
5213506e
RW
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4165$as_echo "no" >&6; }
2aeb72e9
DD
4166fi
4167
2aeb72e9 4168
5213506e 4169 fi
1c710c3c 4170fi
55ffb5ed
NN
4171if test -z "$CC"; then
4172 # Extract the first word of "cc", so it can be a program name with args.
4173set dummy cc; ac_word=$2
5213506e
RW
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4176if ${ac_cv_prog_CC+:} false; then :
5213506e 4177 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4178else
4179 if test -n "$CC"; then
4180 ac_cv_prog_CC="$CC" # Let the user override the test.
4181else
0b0dc272 4182 ac_prog_rejected=no
1c710c3c
DJ
4183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184for as_dir in $PATH
4185do
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
5213506e 4188 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4190 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4191 ac_prog_rejected=yes
4192 continue
4193 fi
4194 ac_cv_prog_CC="cc"
5213506e 4195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4196 break 2
4197 fi
4198done
5213506e
RW
4199 done
4200IFS=$as_save_IFS
1c710c3c 4201
55ffb5ed
NN
4202if test $ac_prog_rejected = yes; then
4203 # We found a bogon in the path, so make sure we never use it.
4204 set dummy $ac_cv_prog_CC
4205 shift
1c710c3c 4206 if test $# != 0; then
55ffb5ed
NN
4207 # We chose a different compiler from the bogus one.
4208 # However, it has the same basename, so the bogon will be chosen
4209 # first if we set CC to just the basename; use the full file name.
4210 shift
1c710c3c 4211 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4212 fi
4213fi
4214fi
4215fi
1c710c3c 4216CC=$ac_cv_prog_CC
55ffb5ed 4217if test -n "$CC"; then
5213506e
RW
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4219$as_echo "$CC" >&6; }
55ffb5ed 4220else
5213506e
RW
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222$as_echo "no" >&6; }
55ffb5ed
NN
4223fi
4224
5213506e 4225
1c710c3c
DJ
4226fi
4227if test -z "$CC"; then
4228 if test -n "$ac_tool_prefix"; then
5213506e 4229 for ac_prog in cl.exe
1c710c3c
DJ
4230 do
4231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4232set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4234$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4235if ${ac_cv_prog_CC+:} false; then :
5213506e 4236 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4237else
4238 if test -n "$CC"; then
4239 ac_cv_prog_CC="$CC" # Let the user override the test.
4240else
1c710c3c
DJ
4241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242for as_dir in $PATH
4243do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
5213506e 4246 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4248 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4250 break 2
4251 fi
4252done
5213506e
RW
4253 done
4254IFS=$as_save_IFS
1c710c3c 4255
55ffb5ed
NN
4256fi
4257fi
1c710c3c 4258CC=$ac_cv_prog_CC
55ffb5ed 4259if test -n "$CC"; then
5213506e
RW
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4261$as_echo "$CC" >&6; }
a4b9e93e 4262else
5213506e
RW
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264$as_echo "no" >&6; }
fb0103e5 4265fi
af71363e 4266
5213506e 4267
1c710c3c
DJ
4268 test -n "$CC" && break
4269 done
af71363e 4270fi
1c710c3c
DJ
4271if test -z "$CC"; then
4272 ac_ct_CC=$CC
5213506e 4273 for ac_prog in cl.exe
1c710c3c
DJ
4274do
4275 # Extract the first word of "$ac_prog", so it can be a program name with args.
4276set dummy $ac_prog; ac_word=$2
5213506e
RW
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4278$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4279if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4280 $as_echo_n "(cached) " >&6
0b0dc272 4281else
1c710c3c
DJ
4282 if test -n "$ac_ct_CC"; then
4283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4284else
1c710c3c
DJ
4285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286for as_dir in $PATH
4287do
4288 IFS=$as_save_IFS
4289 test -z "$as_dir" && as_dir=.
5213506e 4290 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4292 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4294 break 2
4295 fi
4296done
5213506e
RW
4297 done
4298IFS=$as_save_IFS
1c710c3c 4299
af71363e
AS
4300fi
4301fi
1c710c3c
DJ
4302ac_ct_CC=$ac_cv_prog_ac_ct_CC
4303if test -n "$ac_ct_CC"; then
5213506e
RW
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4305$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4306else
5213506e
RW
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4308$as_echo "no" >&6; }
af71363e 4309fi
0b0dc272 4310
5213506e 4311
1c710c3c
DJ
4312 test -n "$ac_ct_CC" && break
4313done
4314
5213506e
RW
4315 if test "x$ac_ct_CC" = x; then
4316 CC=""
4317 else
4318 case $cross_compiling:$ac_tool_warned in
4319yes:)
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4322ac_tool_warned=yes ;;
4323esac
4324 CC=$ac_ct_CC
4325 fi
1c710c3c
DJ
4326fi
4327
4328fi
4329
4330
5213506e
RW
4331test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4333as_fn_error $? "no acceptable C compiler found in \$PATH
4334See \`config.log' for more details" "$LINENO" 5; }
1c710c3c
DJ
4335
4336# Provide some information about the compiler.
5213506e
RW
4337$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4338set X $ac_compile
4339ac_compiler=$2
4340for ac_option in --version -v -V -qversion; do
4341 { { ac_try="$ac_compiler $ac_option >&5"
4342case "(($ac_try" in
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4345esac
4346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4347$as_echo "$ac_try_echo"; } >&5
4348 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4349 ac_status=$?
5213506e
RW
4350 if test -s conftest.err; then
4351 sed '10a\
4352... rest of stderr output deleted ...
4353 10q' conftest.err >conftest.er1
4354 cat conftest.er1 >&5
5213506e 4355 fi
22e05272 4356 rm -f conftest.er1 conftest.err
5213506e
RW
4357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4358 test $ac_status = 0; }
4359done
1c710c3c 4360
5213506e 4361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4362/* end confdefs.h. */
4363
4364int
4365main ()
4366{
4367
4368 ;
4369 return 0;
4370}
4371_ACEOF
4372ac_clean_files_save=$ac_clean_files
22e05272 4373ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1c710c3c
DJ
4374# Try to create an executable without -o first, disregard a.out.
4375# It will help us diagnose broken compilers, and finding out an intuition
4376# of exeext.
22e05272
JM
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4378$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4379ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4380
4381# The possible output files:
4382ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4383
4384ac_rmfiles=
4385for ac_file in $ac_files
4386do
4387 case $ac_file in
4388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4389 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4390 esac
4391done
4392rm -f $ac_rmfiles
4393
4394if { { ac_try="$ac_link_default"
4395case "(($ac_try" in
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4398esac
4399eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4400$as_echo "$ac_try_echo"; } >&5
4401 (eval "$ac_link_default") 2>&5
1c710c3c 4402 ac_status=$?
5213506e
RW
4403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4404 test $ac_status = 0; }; then :
4405 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4406# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4407# in a Makefile. We should not override ac_cv_exeext if it was cached,
4408# so that the user can short-circuit this test for compilers unknown to
4409# Autoconf.
4410for ac_file in $ac_files ''
1c710c3c
DJ
4411do
4412 test -f "$ac_file" || continue
4413 case $ac_file in
5213506e 4414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4415 ;;
4416 [ab].out )
4417 # We found the default executable, but exeext='' is most
4418 # certainly right.
4419 break;;
4420 *.* )
5213506e
RW
4421 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4422 then :; else
4423 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4424 fi
4425 # We set ac_cv_exeext here because the later test for it is not
4426 # safe: cross compilers may not add the suffix if given an `-o'
4427 # argument, so we may need to know it at that point already.
4428 # Even if this section looks crufty: it has the advantage of
4429 # actually working.
1c710c3c
DJ
4430 break;;
4431 * )
4432 break;;
4433 esac
4434done
5213506e
RW
4435test "$ac_cv_exeext" = no && ac_cv_exeext=
4436
1c710c3c 4437else
5213506e
RW
4438 ac_file=''
4439fi
5213506e 4440if test -z "$ac_file"; then :
22e05272
JM
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442$as_echo "no" >&6; }
4443$as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4444sed 's/^/| /' conftest.$ac_ext >&5
4445
5213506e
RW
4446{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4448as_fn_error 77 "C compiler cannot create executables
4449See \`config.log' for more details" "$LINENO" 5; }
4450else
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4452$as_echo "yes" >&6; }
1c710c3c 4453fi
22e05272
JM
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4455$as_echo_n "checking for C compiler default output file name... " >&6; }
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4457$as_echo "$ac_file" >&6; }
1c710c3c 4458ac_exeext=$ac_cv_exeext
1c710c3c 4459
22e05272 4460rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1c710c3c 4461ac_clean_files=$ac_clean_files_save
5213506e
RW
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4463$as_echo_n "checking for suffix of executables... " >&6; }
4464if { { ac_try="$ac_link"
4465case "(($ac_try" in
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4468esac
4469eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4470$as_echo "$ac_try_echo"; } >&5
4471 (eval "$ac_link") 2>&5
1c710c3c 4472 ac_status=$?
5213506e
RW
4473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4474 test $ac_status = 0; }; then :
1c710c3c
DJ
4475 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4476# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4477# work properly (i.e., refer to `conftest.exe'), while it won't with
4478# `rm'.
4479for ac_file in conftest.exe conftest conftest.*; do
4480 test -f "$ac_file" || continue
4481 case $ac_file in
5213506e 4482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4483 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4484 break;;
4485 * ) break;;
4486 esac
4487done
af71363e 4488else
5213506e
RW
4489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4491as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4492See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4493fi
22e05272 4494rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4496$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4497
4498rm -f conftest.$ac_ext
4499EXEEXT=$ac_cv_exeext
4500ac_exeext=$EXEEXT
22e05272
JM
4501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502/* end confdefs.h. */
4503#include <stdio.h>
4504int
4505main ()
4506{
4507FILE *f = fopen ("conftest.out", "w");
4508 return ferror (f) || fclose (f) != 0;
4509
4510 ;
4511 return 0;
4512}
4513_ACEOF
4514ac_clean_files="$ac_clean_files conftest.out"
4515# Check that the compiler produces executables we can run. If not, either
4516# the compiler is broken, or we cross compile.
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4518$as_echo_n "checking whether we are cross compiling... " >&6; }
4519if test "$cross_compiling" != yes; then
4520 { { ac_try="$ac_link"
4521case "(($ac_try" in
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4524esac
4525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4526$as_echo "$ac_try_echo"; } >&5
4527 (eval "$ac_link") 2>&5
4528 ac_status=$?
4529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4530 test $ac_status = 0; }
4531 if { ac_try='./conftest$ac_cv_exeext'
4532 { { case "(($ac_try" in
4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534 *) ac_try_echo=$ac_try;;
4535esac
4536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4537$as_echo "$ac_try_echo"; } >&5
4538 (eval "$ac_try") 2>&5
4539 ac_status=$?
4540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4541 test $ac_status = 0; }; }; then
4542 cross_compiling=no
4543 else
4544 if test "$cross_compiling" = maybe; then
4545 cross_compiling=yes
4546 else
4547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4549as_fn_error $? "cannot run C compiled programs.
4550If you meant to cross compile, use \`--host'.
4551See \`config.log' for more details" "$LINENO" 5; }
4552 fi
4553 fi
4554fi
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4556$as_echo "$cross_compiling" >&6; }
4557
4558rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4559ac_clean_files=$ac_clean_files_save
5213506e
RW
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4561$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4562if ${ac_cv_objext+:} false; then :
5213506e 4563 $as_echo_n "(cached) " >&6
1c710c3c 4564else
5213506e 4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4566/* end confdefs.h. */
4567
4568int
4569main ()
4570{
4571
4572 ;
4573 return 0;
4574}
4575_ACEOF
4576rm -f conftest.o conftest.obj
5213506e
RW
4577if { { ac_try="$ac_compile"
4578case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581esac
4582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4583$as_echo "$ac_try_echo"; } >&5
4584 (eval "$ac_compile") 2>&5
1c710c3c 4585 ac_status=$?
5213506e
RW
4586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4587 test $ac_status = 0; }; then :
4588 for ac_file in conftest.o conftest.obj conftest.*; do
4589 test -f "$ac_file" || continue;
1c710c3c 4590 case $ac_file in
5213506e 4591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4592 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4593 break;;
4594 esac
4595done
4596else
5213506e 4597 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4598sed 's/^/| /' conftest.$ac_ext >&5
4599
5213506e
RW
4600{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4602as_fn_error $? "cannot compute suffix of object files: cannot compile
4603See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4604fi
1c710c3c
DJ
4605rm -f conftest.$ac_cv_objext conftest.$ac_ext
4606fi
5213506e
RW
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4608$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4609OBJEXT=$ac_cv_objext
4610ac_objext=$OBJEXT
5213506e
RW
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4612$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4613if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4614 $as_echo_n "(cached) " >&6
1c710c3c 4615else
5213506e 4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4617/* end confdefs.h. */
4618
4619int
4620main ()
4621{
4622#ifndef __GNUC__
4623 choke me
4624#endif
4625
4626 ;
4627 return 0;
4628}
4629_ACEOF
5213506e 4630if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4631 ac_compiler_gnu=yes
4632else
5213506e 4633 ac_compiler_gnu=no
1c710c3c 4634fi
5213506e 4635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4636ac_cv_c_compiler_gnu=$ac_compiler_gnu
4637
4638fi
5213506e
RW
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4640$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4641if test $ac_compiler_gnu = yes; then
4642 GCC=yes
4643else
4644 GCC=
4645fi
1c710c3c
DJ
4646ac_test_CFLAGS=${CFLAGS+set}
4647ac_save_CFLAGS=$CFLAGS
5213506e
RW
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4649$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4650if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4651 $as_echo_n "(cached) " >&6
4652else
4653 ac_save_c_werror_flag=$ac_c_werror_flag
4654 ac_c_werror_flag=yes
4655 ac_cv_prog_cc_g=no
4656 CFLAGS="-g"
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4658/* end confdefs.h. */
4659
4660int
4661main ()
4662{
4663
4664 ;
4665 return 0;
4666}
4667_ACEOF
5213506e 4668if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4669 ac_cv_prog_cc_g=yes
4670else
5213506e
RW
4671 CFLAGS=""
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673/* end confdefs.h. */
4674
4675int
4676main ()
4677{
4678
4679 ;
4680 return 0;
4681}
4682_ACEOF
4683if ac_fn_c_try_compile "$LINENO"; then :
4684
4685else
4686 ac_c_werror_flag=$ac_save_c_werror_flag
4687 CFLAGS="-g"
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689/* end confdefs.h. */
af71363e 4690
5213506e
RW
4691int
4692main ()
4693{
4694
4695 ;
4696 return 0;
4697}
4698_ACEOF
4699if ac_fn_c_try_compile "$LINENO"; then :
4700 ac_cv_prog_cc_g=yes
4701fi
4702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4703fi
5213506e 4704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4705fi
5213506e
RW
4706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707 ac_c_werror_flag=$ac_save_c_werror_flag
4708fi
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4710$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4711if test "$ac_test_CFLAGS" = set; then
1c710c3c 4712 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4713elif test $ac_cv_prog_cc_g = yes; then
4714 if test "$GCC" = yes; then
4715 CFLAGS="-g -O2"
4716 else
4717 CFLAGS="-g"
4718 fi
4719else
4720 if test "$GCC" = yes; then
4721 CFLAGS="-O2"
4722 else
4723 CFLAGS=
4724 fi
4725fi
5213506e
RW
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4727$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4728if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4729 $as_echo_n "(cached) " >&6
1c710c3c 4730else
5213506e 4731 ac_cv_prog_cc_c89=no
1c710c3c 4732ac_save_CC=$CC
5213506e 4733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4734/* end confdefs.h. */
4735#include <stdarg.h>
4736#include <stdio.h>
22e05272 4737struct stat;
1c710c3c
DJ
4738/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4739struct buf { int x; };
4740FILE * (*rcsopen) (struct buf *, struct stat *, int);
4741static char *e (p, i)
4742 char **p;
4743 int i;
4744{
4745 return p[i];
4746}
4747static char *f (char * (*g) (char **, int), char **p, ...)
4748{
4749 char *s;
4750 va_list v;
4751 va_start (v,p);
4752 s = g (p, va_arg (v,int));
4753 va_end (v);
4754 return s;
4755}
4756
4757/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4758 function prototypes and stuff, but not '\xHH' hex character constants.
4759 These don't provoke an error unfortunately, instead are silently treated
5213506e 4760 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4761 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4762 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4763 that's true only with -std. */
1c710c3c
DJ
4764int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4765
5213506e
RW
4766/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4767 inside strings and character constants. */
4768#define FOO(x) 'x'
4769int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4770
1c710c3c
DJ
4771int test (int i, double x);
4772struct s1 {int (*f) (int a);};
4773struct s2 {int (*f) (double a);};
4774int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4775int argc;
4776char **argv;
4777int
4778main ()
4779{
4780return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4781 ;
4782 return 0;
4783}
4784_ACEOF
5213506e
RW
4785for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4786 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4787do
4788 CC="$ac_save_CC $ac_arg"
5213506e
RW
4789 if ac_fn_c_try_compile "$LINENO"; then :
4790 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4791fi
5213506e
RW
4792rm -f core conftest.err conftest.$ac_objext
4793 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4794done
5213506e 4795rm -f conftest.$ac_ext
1c710c3c
DJ
4796CC=$ac_save_CC
4797
4798fi
5213506e
RW
4799# AC_CACHE_VAL
4800case "x$ac_cv_prog_cc_c89" in
4801 x)
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4803$as_echo "none needed" >&6; } ;;
4804 xno)
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4806$as_echo "unsupported" >&6; } ;;
1c710c3c 4807 *)
5213506e
RW
4808 CC="$CC $ac_cv_prog_cc_c89"
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4810$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4811esac
5213506e 4812if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4813
2aeb72e9
DD
4814fi
4815
2aeb72e9
DD
4816ac_ext=c
4817ac_cpp='$CPP $CPPFLAGS'
4818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4820ac_compiler_gnu=$ac_cv_c_compiler_gnu
4821
5213506e 4822ac_ext=cpp
2aeb72e9
DD
4823ac_cpp='$CXXCPP $CPPFLAGS'
4824ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4825ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4826ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4827if test -z "$CXX"; then
4828 if test -n "$CCC"; then
4829 CXX=$CCC
4830 else
4831 if test -n "$ac_tool_prefix"; then
4832 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4833 do
4834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4835set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4837$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4838if ${ac_cv_prog_CXX+:} false; then :
5213506e 4839 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4840else
4841 if test -n "$CXX"; then
4842 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4843else
4844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845for as_dir in $PATH
4846do
4847 IFS=$as_save_IFS
4848 test -z "$as_dir" && as_dir=.
5213506e 4849 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2aeb72e9 4851 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4853 break 2
4854 fi
4855done
5213506e
RW
4856 done
4857IFS=$as_save_IFS
55ffb5ed 4858
c3a86da9
DJ
4859fi
4860fi
4861CXX=$ac_cv_prog_CXX
4862if test -n "$CXX"; then
5213506e
RW
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4864$as_echo "$CXX" >&6; }
c3a86da9 4865else
5213506e
RW
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867$as_echo "no" >&6; }
c3a86da9
DJ
4868fi
4869
5213506e 4870
c3a86da9
DJ
4871 test -n "$CXX" && break
4872 done
4873fi
4874if test -z "$CXX"; then
4875 ac_ct_CXX=$CXX
5213506e 4876 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4877do
4878 # Extract the first word of "$ac_prog", so it can be a program name with args.
4879set dummy $ac_prog; ac_word=$2
5213506e
RW
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4882if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5213506e 4883 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4884else
4885 if test -n "$ac_ct_CXX"; then
4886 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4887else
4888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889for as_dir in $PATH
4890do
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
5213506e 4893 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9 4895 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4897 break 2
4898 fi
4899done
5213506e
RW
4900 done
4901IFS=$as_save_IFS
c3a86da9
DJ
4902
4903fi
4904fi
4905ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4906if test -n "$ac_ct_CXX"; then
5213506e
RW
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4908$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4909else
5213506e
RW
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911$as_echo "no" >&6; }
c3a86da9
DJ
4912fi
4913
5213506e 4914
c3a86da9
DJ
4915 test -n "$ac_ct_CXX" && break
4916done
c3a86da9 4917
5213506e
RW
4918 if test "x$ac_ct_CXX" = x; then
4919 CXX="g++"
4920 else
4921 case $cross_compiling:$ac_tool_warned in
4922yes:)
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4925ac_tool_warned=yes ;;
4926esac
4927 CXX=$ac_ct_CXX
4928 fi
c3a86da9
DJ
4929fi
4930
5213506e
RW
4931 fi
4932fi
c3a86da9 4933# Provide some information about the compiler.
5213506e
RW
4934$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4935set X $ac_compile
4936ac_compiler=$2
4937for ac_option in --version -v -V -qversion; do
4938 { { ac_try="$ac_compiler $ac_option >&5"
4939case "(($ac_try" in
4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941 *) ac_try_echo=$ac_try;;
4942esac
4943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4944$as_echo "$ac_try_echo"; } >&5
4945 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4946 ac_status=$?
5213506e
RW
4947 if test -s conftest.err; then
4948 sed '10a\
4949... rest of stderr output deleted ...
4950 10q' conftest.err >conftest.er1
4951 cat conftest.er1 >&5
5213506e 4952 fi
22e05272 4953 rm -f conftest.er1 conftest.err
5213506e
RW
4954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4955 test $ac_status = 0; }
4956done
c3a86da9 4957
5213506e
RW
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4959$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 4960if ${ac_cv_cxx_compiler_gnu+:} false; then :
5213506e 4961 $as_echo_n "(cached) " >&6
c3a86da9 4962else
5213506e 4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4964/* end confdefs.h. */
4965
4966int
4967main ()
4968{
4969#ifndef __GNUC__
4970 choke me
4971#endif
4972
4973 ;
4974 return 0;
4975}
4976_ACEOF
5213506e 4977if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4978 ac_compiler_gnu=yes
4979else
5213506e 4980 ac_compiler_gnu=no
c3a86da9 4981fi
5213506e 4982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4983ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4984
4985fi
5213506e
RW
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4987$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4988if test $ac_compiler_gnu = yes; then
4989 GXX=yes
4990else
4991 GXX=
4992fi
c3a86da9
DJ
4993ac_test_CXXFLAGS=${CXXFLAGS+set}
4994ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4996$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 4997if ${ac_cv_prog_cxx_g+:} false; then :
5213506e
RW
4998 $as_echo_n "(cached) " >&6
4999else
5000 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5001 ac_cxx_werror_flag=yes
5002 ac_cv_prog_cxx_g=no
5003 CXXFLAGS="-g"
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5005/* end confdefs.h. */
5006
5007int
5008main ()
5009{
5010
5011 ;
5012 return 0;
5013}
5014_ACEOF
5213506e 5015if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5016 ac_cv_prog_cxx_g=yes
5017else
5213506e
RW
5018 CXXFLAGS=""
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5020/* end confdefs.h. */
5213506e 5021
c3a86da9
DJ
5022int
5023main ()
5024{
5213506e 5025
c3a86da9
DJ
5026 ;
5027 return 0;
5028}
5029_ACEOF
5213506e 5030if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5031
5213506e
RW
5032else
5033 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5034 CXXFLAGS="-g"
5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5036/* end confdefs.h. */
5213506e 5037
c3a86da9
DJ
5038int
5039main ()
5040{
5213506e 5041
c3a86da9
DJ
5042 ;
5043 return 0;
5044}
5045_ACEOF
5213506e
RW
5046if ac_fn_cxx_try_compile "$LINENO"; then :
5047 ac_cv_prog_cxx_g=yes
11a67599 5048fi
5213506e
RW
5049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050fi
5051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052fi
5053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5054 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5055fi
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5057$as_echo "$ac_cv_prog_cxx_g" >&6; }
5058if test "$ac_test_CXXFLAGS" = set; then
5059 CXXFLAGS=$ac_save_CXXFLAGS
5060elif test $ac_cv_prog_cxx_g = yes; then
5061 if test "$GXX" = yes; then
5062 CXXFLAGS="-g -O2"
5063 else
5064 CXXFLAGS="-g"
5065 fi
5066else
5067 if test "$GXX" = yes; then
5068 CXXFLAGS="-O2"
5069 else
5070 CXXFLAGS=
5071 fi
c3a86da9 5072fi
c3a86da9
DJ
5073ac_ext=c
5074ac_cpp='$CPP $CPPFLAGS'
5075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5077ac_compiler_gnu=$ac_cv_c_compiler_gnu
5078
5079
5080# We must set the default linker to the linker used by gcc for the correct
5081# operation of libtool. If LD is not defined and we are using gcc, try to
5082# set the LD default to the ld used by gcc.
5083if test -z "$LD"; then
5084 if test "$GCC" = yes; then
5085 case $build in
5086 *-*-mingw*)
5087 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5088 *)
5089 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5090 esac
5091 case $gcc_prog_ld in
5092 # Accept absolute paths.
5093 [\\/]* | [A-Za-z]:[\\/]*)
5094 LD="$gcc_prog_ld" ;;
5095 esac
5096 fi
23f6b2f9
PB
5097fi
5098
0b21f5d3
EB
5099# Check whether -static-libstdc++ -static-libgcc is supported.
5100have_static_libs=no
5101if test "$GCC" = yes; then
5102 saved_LDFLAGS="$LDFLAGS"
5103
5104 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5106$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5107 ac_ext=cpp
5108ac_cpp='$CXXCPP $CPPFLAGS'
5109ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5110ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5112
5113
5114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115/* end confdefs.h. */
0d6414b2
EB
5116
5117#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5118#error -static-libstdc++ not implemented
5119#endif
0b21f5d3
EB
5120int main() {}
5121_ACEOF
5122if ac_fn_cxx_try_link "$LINENO"; then :
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5124$as_echo "yes" >&6; }; have_static_libs=yes
5125else
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127$as_echo "no" >&6; }
5128fi
5129rm -f core conftest.err conftest.$ac_objext \
5130 conftest$ac_exeext conftest.$ac_ext
5131 ac_ext=c
5132ac_cpp='$CPP $CPPFLAGS'
5133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135ac_compiler_gnu=$ac_cv_c_compiler_gnu
5136
5137
5138 LDFLAGS="$saved_LDFLAGS"
5139fi
5140
23f6b2f9
PB
5141
5142
55ffb5ed 5143
1c710c3c
DJ
5144if test -n "$ac_tool_prefix"; then
5145 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5146set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5149if ${ac_cv_prog_GNATBIND+:} false; then :
5213506e 5150 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5151else
5152 if test -n "$GNATBIND"; then
5153 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5154else
1c710c3c
DJ
5155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156for as_dir in $PATH
5157do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5213506e 5160 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5162 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5164 break 2
5165 fi
5166done
5213506e
RW
5167 done
5168IFS=$as_save_IFS
1c710c3c 5169
55ffb5ed
NN
5170fi
5171fi
1c710c3c 5172GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5173if test -n "$GNATBIND"; then
5213506e
RW
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5175$as_echo "$GNATBIND" >&6; }
55ffb5ed 5176else
5213506e
RW
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178$as_echo "no" >&6; }
55ffb5ed
NN
5179fi
5180
5213506e 5181
1c710c3c 5182fi
55ffb5ed 5183if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5184 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5185 # Extract the first word of "gnatbind", so it can be a program name with args.
5186set dummy gnatbind; ac_word=$2
5213506e
RW
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5189if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5213506e 5190 $as_echo_n "(cached) " >&6
55ffb5ed 5191else
1c710c3c
DJ
5192 if test -n "$ac_ct_GNATBIND"; then
5193 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5194else
1c710c3c
DJ
5195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196for as_dir in $PATH
5197do
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5213506e 5200 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5202 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5204 break 2
5205 fi
5206done
5213506e
RW
5207 done
5208IFS=$as_save_IFS
1c710c3c 5209
55ffb5ed
NN
5210fi
5211fi
1c710c3c
DJ
5212ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5213if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5215$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5216else
5213506e
RW
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218$as_echo "no" >&6; }
55ffb5ed
NN
5219fi
5220
5213506e
RW
5221 if test "x$ac_ct_GNATBIND" = x; then
5222 GNATBIND="no"
5223 else
5224 case $cross_compiling:$ac_tool_warned in
5225yes:)
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5228ac_tool_warned=yes ;;
5229esac
5230 GNATBIND=$ac_ct_GNATBIND
5231 fi
55ffb5ed 5232else
1c710c3c 5233 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5234fi
5235
1c710c3c
DJ
5236if test -n "$ac_tool_prefix"; then
5237 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5238set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5240$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5241if ${ac_cv_prog_GNATMAKE+:} false; then :
5213506e 5242 $as_echo_n "(cached) " >&6
5305be7e
RG
5243else
5244 if test -n "$GNATMAKE"; then
5245 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5246else
1c710c3c
DJ
5247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248for as_dir in $PATH
5249do
5250 IFS=$as_save_IFS
5251 test -z "$as_dir" && as_dir=.
5213506e 5252 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5254 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5256 break 2
5257 fi
5258done
5213506e
RW
5259 done
5260IFS=$as_save_IFS
1c710c3c 5261
5305be7e
RG
5262fi
5263fi
1c710c3c 5264GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5265if test -n "$GNATMAKE"; then
5213506e
RW
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5267$as_echo "$GNATMAKE" >&6; }
5305be7e 5268else
5213506e
RW
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5270$as_echo "no" >&6; }
5305be7e
RG
5271fi
5272
5213506e 5273
1c710c3c 5274fi
5305be7e 5275if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5276 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5277 # Extract the first word of "gnatmake", so it can be a program name with args.
5278set dummy gnatmake; ac_word=$2
5213506e
RW
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5281if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5213506e 5282 $as_echo_n "(cached) " >&6
5305be7e 5283else
1c710c3c
DJ
5284 if test -n "$ac_ct_GNATMAKE"; then
5285 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5286else
1c710c3c
DJ
5287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288for as_dir in $PATH
5289do
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5213506e 5292 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5294 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5296 break 2
5297 fi
5298done
5213506e
RW
5299 done
5300IFS=$as_save_IFS
1c710c3c 5301
5305be7e
RG
5302fi
5303fi
1c710c3c
DJ
5304ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5305if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5307$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5308else
5213506e
RW
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310$as_echo "no" >&6; }
5305be7e
RG
5311fi
5312
5213506e
RW
5313 if test "x$ac_ct_GNATMAKE" = x; then
5314 GNATMAKE="no"
5315 else
5316 case $cross_compiling:$ac_tool_warned in
5317yes:)
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5320ac_tool_warned=yes ;;
5321esac
5322 GNATMAKE=$ac_ct_GNATMAKE
5323 fi
5305be7e 5324else
1c710c3c 5325 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5326fi
5327
5213506e
RW
5328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5329$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
22e05272 5330if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5213506e 5331 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5332else
5333 cat >conftest.adb <<EOF
5334procedure conftest is begin null; end conftest;
5335EOF
5336acx_cv_cc_gcc_supports_ada=no
5337# There is a bug in old released versions of GCC which causes the
5338# driver to exit successfully when the appropriate language module
5339# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5340# Therefore we must check for the error message as well as an
5341# unsuccessful exit.
1db673ca
RO
5342# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5343# given a .adb file, but produce no object file. So we must check
5344# if an object file was really produced to guard against this.
55ffb5ed 5345errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5346if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5347 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5348fi
5349rm -f conftest.*
5350fi
5213506e
RW
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5352$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5353
7cb62ef1 5354if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5355 have_gnat=yes
5356else
5357 have_gnat=no
5358fi
5359
5213506e
RW
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5361$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
22e05272 5362if ${gcc_cv_prog_cmp_skip+:} false; then :
5213506e 5363 $as_echo_n "(cached) " >&6
a76494aa
PB
5364else
5365 echo abfoo >t1
5366 echo cdfoo >t2
b55e6680 5367 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5368 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5369 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5370 :
5371 else
5372 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5373 fi
5374 fi
a76494aa
PB
5375 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5376 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5377 :
a76494aa
PB
5378 else
5379 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5380 fi
5381 fi
5382 rm t1 t2
5383
5384fi
5213506e
RW
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5386$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5387do_compare="$gcc_cv_prog_cmp_skip"
5388
5389
55ffb5ed 5390
ff3ac0f4
ILT
5391# Check whether --enable-bootstrap was given.
5392if test "${enable_bootstrap+set}" = set; then :
5393 enableval=$enable_bootstrap;
5394else
5395 enable_bootstrap=default
5396fi
5397
5398
5399# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5400if test -r $srcdir/gcc/configure; then
5401 have_compiler=yes
5402else
5403 have_compiler=no
5404fi
ff3ac0f4
ILT
5405
5406case "$have_compiler:$host:$target:$enable_bootstrap" in
5407 *:*:*:no) ;;
5408
5409 # Default behavior. Enable bootstrap if we have a compiler
5410 # and we are in a native configuration.
5411 yes:$build:$build:default)
5412 enable_bootstrap=yes ;;
5413
5414 *:*:*:default)
5415 enable_bootstrap=no ;;
5416
5417 # We have a compiler and we are in a native configuration, bootstrap is ok
5418 yes:$build:$build:yes)
5419 ;;
5420
5421 # Other configurations, but we have a compiler. Assume the user knows
5422 # what he's doing.
5423 yes:*:*:yes)
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5425$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5426 ;;
5427
5428 # No compiler: if they passed --enable-bootstrap explicitly, fail
5429 no:*:*:yes)
22e05272 5430 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ff3ac0f4
ILT
5431
5432 # Fail if wrong command line
5433 *)
22e05272 5434 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ff3ac0f4
ILT
5435 ;;
5436esac
5437
46070488
JM
5438# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5439# C++98 compiler can still start the bootstrap.
5440if test "$enable_bootstrap:$GXX" = "yes:yes"; then
8ca528d9 5441 CXX="$CXX -std=gnu++98"
46070488
JM
5442fi
5443
592c90ff
KG
5444# Used for setting $lt_cv_objdir
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5446$as_echo_n "checking for objdir... " >&6; }
22e05272 5447if ${lt_cv_objdir+:} false; then :
592c90ff
KG
5448 $as_echo_n "(cached) " >&6
5449else
5450 rm -f .libs 2>/dev/null
5451mkdir .libs 2>/dev/null
5452if test -d .libs; then
5453 lt_cv_objdir=.libs
5454else
5455 # MS-DOS does not allow filenames that begin with a dot.
5456 lt_cv_objdir=_libs
5457fi
5458rmdir .libs 2>/dev/null
5459fi
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5461$as_echo "$lt_cv_objdir" >&6; }
5462objdir=$lt_cv_objdir
5463
5464
5465
5466
5467
5468cat >>confdefs.h <<_ACEOF
5469#define LT_OBJDIR "$lt_cv_objdir/"
5470_ACEOF
5471
5472
5473
acd26225 5474# Check for GMP, MPFR and MPC
3a5729ea 5475gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5476gmpinc=
e69bf64b 5477have_gmp=no
acd26225
KG
5478
5479# Specify a location for mpc
5480# check for this first so it ends up on the link line before mpfr.
5481
5213506e
RW
5482# Check whether --with-mpc was given.
5483if test "${with_mpc+set}" = set; then :
5484 withval=$with_mpc;
5485fi
acd26225 5486
acd26225 5487
9965e3cd 5488# Check whether --with-mpc-include was given.
5213506e
RW
5489if test "${with_mpc_include+set}" = set; then :
5490 withval=$with_mpc_include;
5491fi
acd26225 5492
acd26225 5493
9965e3cd 5494# Check whether --with-mpc-lib was given.
5213506e
RW
5495if test "${with_mpc_lib+set}" = set; then :
5496 withval=$with_mpc_lib;
5497fi
acd26225 5498
acd26225
KG
5499
5500if test "x$with_mpc" != x; then
3a5729ea
KG
5501 gmplibs="-L$with_mpc/lib $gmplibs"
5502 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5503fi
5504if test "x$with_mpc_include" != x; then
3a5729ea 5505 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5506fi
5507if test "x$with_mpc_lib" != x; then
3a5729ea 5508 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5509fi
5510if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5511 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5512 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5513 # Do not test the mpc version. Assume that it is sufficient, since
5514 # it is in the source tree, and the library has not been built yet
5515 # but it would be included on the link line in the version check below
5516 # hence making the test fail.
3a5729ea 5517 have_gmp=yes
acd26225 5518fi
e69bf64b 5519
bebf829d
PB
5520# Specify a location for mpfr
5521# check for this first so it ends up on the link line before gmp.
1c710c3c 5522
5213506e
RW
5523# Check whether --with-mpfr-dir was given.
5524if test "${with_mpfr_dir+set}" = set; then :
22e05272 5525 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5213506e
RW
5526Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5527fi
5528
bebf829d
PB
5529
5530
5213506e
RW
5531# Check whether --with-mpfr was given.
5532if test "${with_mpfr+set}" = set; then :
5533 withval=$with_mpfr;
5534fi
1c710c3c 5535
bebf829d 5536
9965e3cd 5537# Check whether --with-mpfr-include was given.
5213506e
RW
5538if test "${with_mpfr_include+set}" = set; then :
5539 withval=$with_mpfr_include;
5540fi
1c710c3c 5541
8a877c9c 5542
9965e3cd 5543# Check whether --with-mpfr-lib was given.
5213506e
RW
5544if test "${with_mpfr_lib+set}" = set; then :
5545 withval=$with_mpfr_lib;
5546fi
8a877c9c 5547
bebf829d
PB
5548
5549if test "x$with_mpfr" != x; then
5550 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5551 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5552fi
8a877c9c 5553if test "x$with_mpfr_include" != x; then
3a5729ea 5554 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5555fi
5556if test "x$with_mpfr_lib" != x; then
5557 gmplibs="-L$with_mpfr_lib $gmplibs"
5558fi
e69bf64b 5559if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
5560 # MPFR v3.1.0 moved the sources into a src sub-directory.
5561 if ! test -d ${srcdir}/mpfr/src; then
22e05272 5562 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8f3675f8 5563 fi
00f35794
BE
5564 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5565 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5566 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
5567 # Do not test the mpfr version. Assume that it is sufficient, since
5568 # it is in the source tree, and the library has not been built yet
5569 # but it would be included on the link line in the version check below
5570 # hence making the test fail.
5571 have_gmp=yes
5572fi
bebf829d 5573
6de9cd9a 5574# Specify a location for gmp
1c710c3c 5575
5213506e
RW
5576# Check whether --with-gmp-dir was given.
5577if test "${with_gmp_dir+set}" = set; then :
22e05272 5578 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5213506e
RW
5579Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5580fi
5581
6de9cd9a 5582
6de9cd9a 5583
5213506e
RW
5584# Check whether --with-gmp was given.
5585if test "${with_gmp+set}" = set; then :
5586 withval=$with_gmp;
5587fi
1c710c3c 5588
6de9cd9a 5589
9965e3cd 5590# Check whether --with-gmp-include was given.
5213506e
RW
5591if test "${with_gmp_include+set}" = set; then :
5592 withval=$with_gmp_include;
5593fi
1c710c3c 5594
8a877c9c 5595
9965e3cd 5596# Check whether --with-gmp-lib was given.
5213506e
RW
5597if test "${with_gmp_lib+set}" = set; then :
5598 withval=$with_gmp_lib;
5599fi
8a877c9c
KG
5600
5601
6de9cd9a 5602
bebf829d
PB
5603if test "x$with_gmp" != x; then
5604 gmplibs="-L$with_gmp/lib $gmplibs"
5605 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5606fi
8a877c9c
KG
5607if test "x$with_gmp_include" != x; then
5608 gmpinc="-I$with_gmp_include $gmpinc"
5609fi
5610if test "x$with_gmp_lib" != x; then
5611 gmplibs="-L$with_gmp_lib $gmplibs"
5612fi
e69bf64b 5613if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5614 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5615 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5616 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5617 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5618 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5619 # Do not test the gmp version. Assume that it is sufficient, since
5620 # it is in the source tree, and the library has not been built yet
5621 # but it would be included on the link line in the version check below
5622 # hence making the test fail.
5623 have_gmp=yes
5624fi
6de9cd9a 5625
d943d7c4 5626if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5627 have_gmp=yes
5628 saved_CFLAGS="$CFLAGS"
5629 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5630 # Check for the recommended and required versions of GMP.
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5632$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5633
5634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5635/* end confdefs.h. */
5636#include "gmp.h"
5637int
5638main ()
5639{
5640
5641 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5642 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5643 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5644 choke me
5645 #endif
5646
5647 ;
5648 return 0;
5649}
5650_ACEOF
5651if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5653/* end confdefs.h. */
362c6d2f 5654#include <gmp.h>
1c710c3c
DJ
5655int
5656main ()
5657{
6de9cd9a 5658
362c6d2f
KG
5659 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5660 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5661 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5662 choke me
5663 #endif
1c710c3c
DJ
5664
5665 ;
5666 return 0;
5667}
5668_ACEOF
5213506e
RW
5669if ac_fn_c_try_compile "$LINENO"; then :
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5671$as_echo "yes" >&6; }
362c6d2f
KG
5672else
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5674$as_echo "buggy but acceptable" >&6; }
5675fi
5676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5677else
5213506e
RW
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5680fi
5213506e 5681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5682
acd26225 5683 # If we have GMP, check the MPFR version.
e69bf64b 5684 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5685 # Check for the recommended and required versions of MPFR.
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5687$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5689/* end confdefs.h. */
70ec446f 5690#include <gmp.h>
e69bf64b 5691 #include <mpfr.h>
1c710c3c
DJ
5692int
5693main ()
5694{
e48d66a9 5695
f7d6bc01 5696 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5697 choke me
5698 #endif
1c710c3c
DJ
5699
5700 ;
5701 return 0;
5702}
5703_ACEOF
5213506e
RW
5704if ac_fn_c_try_compile "$LINENO"; then :
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5706/* end confdefs.h. */
a3993f33 5707#include <gmp.h>
e69bf64b 5708 #include <mpfr.h>
1c710c3c
DJ
5709int
5710main ()
5711{
a3993f33 5712
362c6d2f 5713 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5714 choke me
5715 #endif
acd26225
KG
5716
5717 ;
5718 return 0;
5719}
5720_ACEOF
5213506e
RW
5721if ac_fn_c_try_compile "$LINENO"; then :
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5723$as_echo "yes" >&6; }
acd26225 5724else
5213506e
RW
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5726$as_echo "buggy but acceptable" >&6; }
acd26225 5727fi
5213506e 5728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5729else
5213506e
RW
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731$as_echo "no" >&6; }; have_gmp=no
acd26225 5732fi
5213506e 5733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5734 fi
5735
5736 # Check for the MPC header version.
3a5729ea 5737 if test x"$have_gmp" = xyes ; then
362c6d2f 5738 # Check for the recommended and required versions of MPC.
5213506e
RW
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5740$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5742/* end confdefs.h. */
5743#include <mpc.h>
5744int
5745main ()
5746{
5747
362c6d2f
KG
5748 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5749 choke me
5750 #endif
5751
5752 ;
5753 return 0;
5754}
5755_ACEOF
5756if ac_fn_c_try_compile "$LINENO"; then :
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758/* end confdefs.h. */
5759#include <mpc.h>
5760int
5761main ()
5762{
5763
5764 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5765 choke me
5766 #endif
5767
5768 ;
5769 return 0;
5770}
5771_ACEOF
5213506e
RW
5772if ac_fn_c_try_compile "$LINENO"; then :
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5774$as_echo "yes" >&6; }
362c6d2f
KG
5775else
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5777$as_echo "buggy but acceptable" >&6; }
5778fi
5779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5780else
5213506e 5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5782$as_echo "no" >&6; }; have_gmp=no
acd26225 5783fi
5213506e 5784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5785 fi
5786
5787 # Now check the MPFR library.
5788 if test x"$have_gmp" = xyes; then
5789 saved_LIBS="$LIBS"
5790 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5792$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5794/* end confdefs.h. */
3a5729ea 5795#include <mpc.h>
acd26225
KG
5796int
5797main ()
5798{
5799
5800 mpfr_t n;
5801 mpfr_t x;
3a5729ea 5802 mpc_t c;
acd26225
KG
5803 int t;
5804 mpfr_init (n);
5805 mpfr_init (x);
5806 mpfr_atan2 (n, n, x, GMP_RNDN);
5807 mpfr_erfc (n, x, GMP_RNDN);
5808 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5809 mpfr_clear(n);
5810 mpfr_clear(x);
5811 mpc_init2 (c, 53);
5812 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5813 mpc_cosh (c, c, MPC_RNDNN);
5814 mpc_pow (c, c, c, MPC_RNDNN);
5815 mpc_acosh (c, c, MPC_RNDNN);
5816 mpc_clear (c);
1c710c3c
DJ
5817
5818 ;
5819 return 0;
5820}
5821_ACEOF
5213506e
RW
5822if ac_fn_c_try_link "$LINENO"; then :
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5824$as_echo "yes" >&6; }
1c710c3c 5825else
5213506e
RW
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5828fi
5213506e
RW
5829rm -f core conftest.err conftest.$ac_objext \
5830 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5831 LIBS="$saved_LIBS"
5832 fi
5833
e69bf64b 5834 CFLAGS="$saved_CFLAGS"
6de9cd9a 5835
362c6d2f
KG
5836# The library versions listed in the error message below should match
5837# the HARD-minimums enforced above.
e69bf64b 5838 if test x$have_gmp != xyes; then
22e05272 5839 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5840Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5841their locations. Source code for these libraries can be found at
5842their respective hosting sites as well as at
5843ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5844http://gcc.gnu.org/install/prerequisites.html for additional info. If
5845you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5846make sure that you have installed both the libraries and the header
5847files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5848 fi
70ec446f
KG
5849fi
5850
acd26225
KG
5851# Flags needed for both GMP, MPFR and/or MPC.
5852
5853
6de9cd9a
DN
5854
5855
5856
9e3eba15 5857
0ff2d841 5858
0b21f5d3 5859# Libraries to use for stage1 or when not bootstrapping.
00020c16 5860
0b21f5d3
EB
5861# Check whether --with-stage1-libs was given.
5862if test "${with_stage1_libs+set}" = set; then :
5863 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5864 stage1_libs=
00020c16 5865 else
0b21f5d3 5866 stage1_libs=$withval
00020c16
ILT
5867 fi
5868else
5dc85f7e 5869 stage1_libs=
5213506e
RW
5870fi
5871
00020c16
ILT
5872
5873
0b21f5d3 5874# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5875
0b21f5d3
EB
5876# Check whether --with-stage1-ldflags was given.
5877if test "${with_stage1_ldflags+set}" = set; then :
5878 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5879 stage1_ldflags=
00020c16 5880 else
0b21f5d3 5881 stage1_ldflags=$withval
00020c16
ILT
5882 fi
5883else
0b21f5d3
EB
5884 stage1_ldflags=
5885 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5886 # if supported. But if the user explicitly specified the libraries to use,
5887 # trust that they are doing what they want.
5888 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5889 stage1_ldflags="-static-libstdc++ -static-libgcc"
5890 fi
5213506e
RW
5891fi
5892
00020c16
ILT
5893
5894
5dc85f7e 5895# Libraries to use for stage2 and later builds.
00020c16 5896
5213506e
RW
5897# Check whether --with-boot-libs was given.
5898if test "${with_boot_libs+set}" = set; then :
5899 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5900 poststage1_libs=
5901 else
5902 poststage1_libs=$withval
5903 fi
5904else
5dc85f7e 5905 poststage1_libs=
5213506e
RW
5906fi
5907
00020c16
ILT
5908
5909
ed2eaa9f
ILT
5910# Linker flags to use for stage2 and later builds.
5911
5912# Check whether --with-boot-ldflags was given.
5913if test "${with_boot_ldflags+set}" = set; then :
5914 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5915 poststage1_ldflags=
5916 else
5917 poststage1_ldflags=$withval
5918 fi
5919else
5920 poststage1_ldflags=
bec93d73
ILT
5921 # In stages 2 and 3, default to linking libstdc++ and libgcc
5922 # statically. But if the user explicitly specified the libraries to
5923 # use, trust that they are doing what they want.
5924 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5925 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5926 fi
5927fi
5928
5929
5930
e357a5e0 5931# GCC GRAPHITE dependency isl.
4a9bb2aa 5932# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
5933
5934
33ad93b9
RG
5935# Check whether --with-isl was given.
5936if test "${with_isl+set}" = set; then :
5937 withval=$with_isl;
5213506e 5938fi
f8bf9252 5939
f8bf9252 5940
eae1a5d4 5941# Treat --without-isl as a request to disable
625afa23 5942# GRAPHITE support and skip all following checks.
eae1a5d4 5943if test "x$with_isl" != "xno"; then
e357a5e0 5944 # Check for isl
625afa23
RG
5945
5946
33ad93b9
RG
5947# Check whether --with-isl-include was given.
5948if test "${with_isl_include+set}" = set; then :
5949 withval=$with_isl_include;
5213506e
RW
5950fi
5951
f8bf9252 5952
33ad93b9
RG
5953# Check whether --with-isl-lib was given.
5954if test "${with_isl_lib+set}" = set; then :
5955 withval=$with_isl_lib;
5213506e 5956fi
f8bf9252 5957
f8bf9252 5958
33ad93b9
RG
5959 # Check whether --enable-isl-version-check was given.
5960if test "${enable_isl_version_check+set}" = set; then :
5961 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5962else
5963 ENABLE_ISL_CHECK=yes
7d32a440
SP
5964fi
5965
5966
33ad93b9
RG
5967 # Initialize isllibs and islinc.
5968 case $with_isl in
5969 no)
5970 isllibs=
5971 islinc=
5972 ;;
5973 "" | yes)
5974 ;;
5975 *)
5976 isllibs="-L$with_isl/lib"
5977 islinc="-I$with_isl/include"
5978 ;;
5979 esac
5980 if test "x${with_isl_include}" != x ; then
5981 islinc="-I$with_isl_include"
5982 fi
5983 if test "x${with_isl_lib}" != x; then
5984 isllibs="-L$with_isl_lib"
5985 fi
5986 if test "x${islinc}" = x && test "x${isllibs}" = x \
5987 && test -d ${srcdir}/isl; then
5988 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5989 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5990 ENABLE_ISL_CHECK=no
560d18d3
AK
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5992$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 5993 fi
7d32a440 5994
eae1a5d4
RG
5995 isllibs="${isllibs} -lisl"
5996
7d32a440 5997
7d32a440 5998
9847828b
RB
5999 if test "${ENABLE_ISL_CHECK}" = yes ; then
6000 _isl_saved_CFLAGS=$CFLAGS
6001 _isl_saved_LDFLAGS=$LDFLAGS
6002 _isl_saved_LIBS=$LIBS
6003
6004 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
6005 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6006 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 6007
f877b3ad
RB
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6009$as_echo_n "checking for isl 0.15 or later... " >&6; }
e0c0c325 6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 6011/* end confdefs.h. */
f877b3ad 6012#include <isl/schedule.h>
622dbadf
BC
6013int
6014main ()
6015{
f877b3ad 6016isl_options_set_schedule_serialize_sccs (NULL, 0);
622dbadf
BC
6017 ;
6018 return 0;
6019}
6020_ACEOF
6021if ac_fn_c_try_link "$LINENO"; then :
9847828b 6022 gcc_cv_isl=yes
622dbadf
BC
6023else
6024 gcc_cv_isl=no
6025fi
6026rm -f core conftest.err conftest.$ac_objext \
6027 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6029$as_echo "$gcc_cv_isl" >&6; }
6030
560d18d3 6031 if test "${gcc_cv_isl}" = no ; then
f877b3ad
RB
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6033$as_echo "required isl version is 0.15 or later" >&6; }
1e050c90
AK
6034 fi
6035
9847828b
RB
6036 CFLAGS=$_isl_saved_CFLAGS
6037 LDFLAGS=$_isl_saved_LDFLAGS
6038 LIBS=$_isl_saved_LIBS
6039 fi
6040
6041
f8bf9252 6042
f8bf9252 6043
33ad93b9
RG
6044
6045
33ad93b9
RG
6046 if test "x${with_isl}" = xno; then
6047 graphite_requested=no
6048 elif test "x${with_isl}" != x \
6049 || test "x${with_isl_include}" != x \
6050 || test "x${with_isl_lib}" != x ; then
6051 graphite_requested=yes
6052 else
6053 graphite_requested=no
7d32a440 6054 fi
d789184e 6055
d789184e
SP
6056
6057
33ad93b9
RG
6058 if test "${gcc_cv_isl}" = no ; then
6059 isllibs=
6060 islinc=
6061 fi
6062
6063 if test "${graphite_requested}" = yes \
6064 && test "x${isllibs}" = x \
6065 && test "x${islinc}" = x ; then
f8bf9252 6066
22e05272 6067 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 6068 fi
f8bf9252 6069
d32ef397 6070
d32ef397
AS
6071fi
6072
e357a5e0 6073# If the isl check failed, disable builds of in-tree variant of isl
625afa23 6074if test "x$with_isl" = xno ||
625afa23 6075 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 6076 noconfigdirs="$noconfigdirs isl"
625afa23 6077 islinc=
32d024bf
RG
6078fi
6079
625afa23
RG
6080
6081
6082
d7f09764
DN
6083# Check for LTO support.
6084# Check whether --enable-lto was given.
6085if test "${enable_lto+set}" = set; then :
6086 enableval=$enable_lto; enable_lto=$enableval
6087else
6088 enable_lto=yes; default_enable_lto=yes
6089fi
6090
6091
7413962d 6092
9a02962b
DK
6093
6094
6095target_elf=no
6096case $target in
6097 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6098 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 6099 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 6100 nvptx-*-none)
9a02962b
DK
6101 target_elf=no
6102 ;;
6103 *)
6104 target_elf=yes
6105 ;;
6106esac
6107
6108if test $target_elf = yes; then :
48215350
DK
6109 # ELF platforms build the lto-plugin always.
6110 build_lto_plugin=yes
9a02962b 6111
9a02962b
DK
6112else
6113 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6114 case $target in
deeba76a 6115 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 6116 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6117 *) enable_lto=no ;;
6118 esac
9a02962b 6119 else
db50fe7d
IS
6120 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6121 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6122 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6123 # warn during gcc/ subconfigure; unless you're bootstrapping with
6124 # -flto it won't be needed until after installation anyway.
6125 case $target in
9e530bcd 6126 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b 6127 *) if test x"$enable_lto" = x"yes"; then
22e05272 6128 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9a02962b
DK
6129 fi
6130 ;;
6131 esac
6132 fi
1cd0b716 6133 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6134 # Build it unless LTO was explicitly disabled.
1cd0b716 6135 case $target in
48215350 6136 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6137 *) ;;
6138 esac
48215350 6139
9a02962b
DK
6140fi
6141
d7f09764 6142
45b3824d
TS
6143# Check whether --enable-linker-plugin-configure-flags was given.
6144if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6145 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6146else
6147 extra_linker_plugin_configure_flags=
6148fi
6149
6150
6151# Check whether --enable-linker-plugin-flags was given.
6152if test "${enable_linker_plugin_flags+set}" = set; then :
6153 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6154else
6155 extra_linker_plugin_flags=
6156fi
6157
6158
6159
cdfee50a
NS
6160# Enable --enable-host-shared.
6161# Checked early to determine whether jit is an 'all' language
6162# Check whether --enable-host-shared was given.
6163if test "${enable_host_shared+set}" = set; then :
6164 enableval=$enable_host_shared; host_shared=$enableval
6165else
6166 host_shared=no
6167fi
6168
6169
f8bf9252 6170
0823efed 6171# By default, C and C++ are the only stage 1 languages.
e1888513 6172stage1_languages=,c,
2805b53a 6173
00020c16 6174# Target libraries that we bootstrap.
ad1e5170 6175bootstrap_target_libs=,target-libgcc,
00020c16 6176
55ffb5ed
NN
6177# Figure out what language subdirectories are present.
6178# Look if the user specified --enable-languages="..."; if not, use
6179# the environment variable $LANGUAGES if defined. $LANGUAGES might
6180# go away some day.
6181# NB: embedded tabs in this IF block -- do not untabify
6182if test -d ${srcdir}/gcc; then
6183 if test x"${enable_languages+set}" != xset; then
6184 if test x"${LANGUAGES+set}" = xset; then
6185 enable_languages="${LANGUAGES}"
6b1786aa 6186 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed 6187 else
cdfee50a 6188 enable_languages=default
55ffb5ed
NN
6189 fi
6190 else
6191 if test x"${enable_languages}" = x ||
6192 test x"${enable_languages}" = xyes;
6193 then
6b1786aa 6194 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
6195 exit 1
6196 fi
6197 fi
6198 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6199
7f26dfa3
FXC
6200 # 'f95' is the old name for the 'fortran' language. We issue a warning
6201 # and make the substitution.
6202 case ,${enable_languages}, in
6203 *,f95,*)
6b1786aa 6204 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
6205 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6206 ;;
6207 esac
6208
0823efed
DN
6209 # If bootstrapping, C++ must be enabled.
6210 case ",$enable_languages,:$enable_bootstrap" in
6211 *,c++,*:*) ;;
6212 *:yes)
ff3ac0f4
ILT
6213 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6214 enable_languages="${enable_languages},c++"
6215 else
22e05272 6216 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6217 fi
6218 ;;
6219 esac
6220
55ffb5ed
NN
6221 # First scan to see if an enabled language requires some other language.
6222 # We assume that a given config-lang.in will list all the language
6223 # front ends it requires, even if some are required indirectly.
6224 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6225 case ${lang_frag} in
6226 ..) ;;
6227 # The odd quoting in the next line works around
6228 # an apparent bug in bash 1.12 on linux.
6229 ${srcdir}/gcc/[*]/config-lang.in) ;;
6230 *)
69ecd18f
ILT
6231 # From the config-lang.in, get $language, $lang_requires, and
6232 # $lang_requires_boot_languages.
55ffb5ed
NN
6233 language=
6234 lang_requires=
69ecd18f 6235 lang_requires_boot_languages=
d4360477
NS
6236 # set srcdir during sourcing lang_frag to the gcc dir.
6237 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6238 # polutes this shell
6239 saved_srcdir=${srcdir}
6240 srcdir=${srcdir}/gcc . ${lang_frag}
6241 srcdir=${saved_srcdir}
69ecd18f 6242 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6243 case ,${enable_languages}, in
6244 *,$other,*) ;;
cdfee50a 6245 *,default,*) ;;
55ffb5ed
NN
6246 *,all,*) ;;
6247 *,$language,*)
6248 echo " \`$other' language required by \`$language'; enabling" 1>&2
6249 enable_languages="${enable_languages},${other}"
6250 ;;
6251 esac
6252 done
69ecd18f
ILT
6253 for other in ${lang_requires_boot_languages} ; do
6254 if test "$other" != "c"; then
6255 case ,${enable_stage1_languages}, in
6256 *,$other,*) ;;
cdfee50a 6257 *,default,*) ;;
69ecd18f
ILT
6258 *,all,*) ;;
6259 *)
6260 case ,${enable_languages}, in
6261 *,$language,*)
6262 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6263 enable_stage1_languages="$enable_stage1_languages,${other}"
6264 ;;
6265 esac
6266 ;;
6267 esac
6268 fi
6269 done
55ffb5ed
NN
6270 ;;
6271 esac
6272 done
6273
e1888513 6274 new_enable_languages=,c,
d7f09764
DN
6275
6276 # If LTO is enabled, add the LTO front end.
d7f09764 6277 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6278 case ,${enable_languages}, in
6279 *,lto,*) ;;
6280 *) enable_languages="${enable_languages},lto" ;;
6281 esac
1cd0b716 6282 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 6283 configdirs="$configdirs lto-plugin"
d7f09764
DN
6284 fi
6285 fi
6286
426c1eb0
TS
6287 # If we're building an offloading compiler, add the LTO front end.
6288 if test x"$enable_as_accelerator_for" != x ; then
6289 case ,${enable_languages}, in
6290 *,lto,*) ;;
6291 *) enable_languages="${enable_languages},lto" ;;
6292 esac
6293 fi
6294
cdfee50a 6295 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6296 potential_languages=,c,
55ffb5ed 6297
4da3b0f8
ILT
6298 enabled_target_libs=
6299 disabled_target_libs=
6300
55ffb5ed
NN
6301 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6302 case ${lang_frag} in
6303 ..) ;;
6304 # The odd quoting in the next line works around
6305 # an apparent bug in bash 1.12 on linux.
6306 ${srcdir}/gcc/[*]/config-lang.in) ;;
6307 *)
1c710c3c 6308 # From the config-lang.in, get $language, $target_libs,
2805b53a 6309 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6310 language=
6311 target_libs=
6312 lang_dirs=
1546bb64 6313 subdir_requires=
e1888513
PB
6314 boot_language=no
6315 build_by_default=yes
d4360477
NS
6316 # set srcdir during sourcing. See above about save & restore
6317 saved_srcdir=${srcdir}
6318 srcdir=${srcdir}/gcc . ${lang_frag}
6319 srcdir=${saved_srcdir}
e1888513
PB
6320 if test x${language} = x; then
6321 echo "${lang_frag} doesn't set \$language." 1>&2
6322 exit 1
6323 fi
6324
78767fd9 6325 if test "$language" = "c++"; then
0823efed 6326 boot_language=yes
00020c16
ILT
6327 fi
6328
178f875a 6329 add_this_lang=no
cdfee50a
NS
6330 # C is always enabled, so no need to add it again
6331 if test "$language" != "c"; then
6332 case ,${enable_languages}, in
6333 *,${language},*)
6334 # Language was explicitly selected; include it
d4a10d0a 6335 add_this_lang=yes
cdfee50a
NS
6336 ;;
6337 *,all,*)
6338 # All languages are enabled
6339 add_this_lang=all
6340 ;;
6341 *,default,*)
6342 # 'default' was selected, select it if it is a default language
178f875a 6343 add_this_lang=${build_by_default}
cdfee50a
NS
6344 ;;
6345 esac
6346 fi
6de9cd9a 6347
1546bb64 6348 # Disable languages that need other directories if these aren't available.
95695ad3 6349 for i in $subdir_requires; do
b6348cb3 6350 test -f "$srcdir/gcc/$i/config-lang.in" && continue
cdfee50a
NS
6351 case ${add_this_lang} in
6352 yes)
1546bb64 6353 # Specifically requested language; tell them.
22e05272 6354 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64 6355 ;;
cdfee50a
NS
6356 all)
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6358$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6359 add_this_lang=unsupported
6360 ;;
1546bb64
PB
6361 *)
6362 # Silently disable.
e1888513 6363 add_this_lang=unsupported
1546bb64
PB
6364 ;;
6365 esac
6366 done
6367
e1888513 6368 # Disable Ada if no preexisting GNAT is available.
cdfee50a
NS
6369 case ${add_this_lang}:${language}:${have_gnat} in
6370 yes:ada:no)
e1888513 6371 # Specifically requested language; tell them.
22e05272 6372 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
e1888513 6373 ;;
cdfee50a
NS
6374 all:ada:no)
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6376$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6377 add_this_lang=unsupported
6378 ;;
e1888513
PB
6379 *:ada:no)
6380 # Silently disable.
6381 add_this_lang=unsupported
6382 ;;
6383 esac
6384
cdfee50a
NS
6385 # Disable jit if -enable-host-shared not specified
6386 case ${add_this_lang}:${language}:${host_shared} in
6387 yes:jit:no)
6388 # PR jit/64780: explicitly specify --enable-host-shared
22e05272 6389 as_fn_error $? "
cdfee50a
NS
6390Enabling language \"jit\" requires --enable-host-shared.
6391
6392--enable-host-shared typically slows the rest of the compiler down by
6393a few %, so you must explicitly enable it.
6394
6395If you want to build both the jit and the regular compiler, it is often
6396best to do this via two separate configure/builds, in separate
6397directories, to avoid imposing the performance cost of
6398--enable-host-shared on the regular compiler." "$LINENO" 5
6399 ;;
6400 all:jit:no)
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6402$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6403 add_this_lang=unsupported
6404 ;;
6405 *:jit:no)
6406 # Silently disable.
6407 add_this_lang=unsupported
6408 ;;
6409 esac
6410
6411 # Disable a language that is unsupported by the target.
6412 case "${add_this_lang}: $unsupported_languages " in
6413 no:*) ;;
6414 unsupported:*) ;;
6415 *:*" $language "*)
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6417$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
e1888513 6418 add_this_lang=unsupported
4fab7234
HPN
6419 ;;
6420 esac
6421
6de9cd9a 6422 case $add_this_lang in
e1888513 6423 unsupported)
55ffb5ed 6424 # Remove language-dependent dirs.
4da3b0f8
ILT
6425 disabled_target_libs="$disabled_target_libs $target_libs"
6426 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6427 ;;
e1888513
PB
6428 no)
6429 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6430 disabled_target_libs="$disabled_target_libs $target_libs"
6431 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6432 potential_languages="${potential_languages}${language},"
6433 ;;
cdfee50a 6434 all|yes)
e1888513
PB
6435 new_enable_languages="${new_enable_languages}${language},"
6436 potential_languages="${potential_languages}${language},"
2805b53a 6437 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6438 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6439 case "${boot_language}:,$enable_stage1_languages," in
6440 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6441 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6442 case ",$stage1_languages," in
6443 *,$language,* | ,yes, | ,all,) ;;
6444 *) stage1_languages="${stage1_languages}${language}," ;;
6445 esac
00020c16
ILT
6446 # We need to bootstrap any supporting libraries.
6447 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6448 ;;
6449 esac
6450 ;;
55ffb5ed
NN
6451 esac
6452 ;;
6453 esac
6454 done
6455
4da3b0f8
ILT
6456 # Add target libraries which are only needed for disabled languages
6457 # to noconfigdirs.
6458 if test -n "$disabled_target_libs"; then
6459 for dir in $disabled_target_libs; do
6460 case " $enabled_target_libs " in
6461 *" ${dir} "*) ;;
6462 *) noconfigdirs="$noconfigdirs $dir" ;;
6463 esac
6464 done
6465 fi
6466
5213506e
RW
6467 # Check whether --enable-stage1-languages was given.
6468if test "${enable_stage1_languages+set}" = set; then :
6469 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6470 ,no,|,,)
6471 # Set it to something that will have no effect in the loop below
6472 enable_stage1_languages=c ;;
6473 ,yes,)
6474 enable_stage1_languages=`echo $new_enable_languages | \
6475 sed -e "s/^,//" -e "s/,$//" ` ;;
6476 *,all,*)
6477 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6478 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6479 esac
6480
6481 # Add "good" languages from enable_stage1_languages to stage1_languages,
6482 # while "bad" languages go in missing_languages. Leave no duplicates.
6483 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6484 case $potential_languages in
6485 *,$i,*)
6486 case $stage1_languages in
6487 *,$i,*) ;;
6488 *) stage1_languages="$stage1_languages$i," ;;
6489 esac ;;
6490 *)
6491 case $missing_languages in
6492 *,$i,*) ;;
6493 *) missing_languages="$missing_languages$i," ;;
6494 esac ;;
6495 esac
6496 done
5213506e
RW
6497fi
6498
e1888513
PB
6499
6500 # Remove leading/trailing commas that were added for simplicity
6501 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6502 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6503 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6504 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6505
55ffb5ed 6506 if test "x$missing_languages" != x; then
22e05272 6507 as_fn_error $? "
0cf085e4 6508The following requested languages could not be built: ${missing_languages}
5213506e 6509Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6510 fi
55ffb5ed
NN
6511 if test "x$new_enable_languages" != "x$enable_languages"; then
6512 echo The following languages will be built: ${new_enable_languages}
e1888513 6513 enable_languages="$new_enable_languages"
55ffb5ed 6514 fi
e1888513 6515
1c710c3c 6516
b2eaac4a 6517 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6518fi
6519
27079765
AH
6520# Handle --disable-<component> generically.
6521for dir in $configdirs $build_configdirs $target_configdirs ; do
6522 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6523 varname=`echo $dirname | sed -e s/+/_/g`
6524 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6525 noconfigdirs="$noconfigdirs $dir"
6526 fi
6527done
6528
43c40f3e
RO
6529# Check for Boehm's garbage collector
6530# Check whether --enable-objc-gc was given.
6531if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
6532 enableval=$enable_objc_gc;
6533fi
6534
6535
6536# Check whether --with-target-bdw-gc was given.
6537if test "${with_target_bdw_gc+set}" = set; then :
6538 withval=$with_target_bdw_gc;
6539fi
6540
6541
6542# Check whether --with-target-bdw-gc-include was given.
6543if test "${with_target_bdw_gc_include+set}" = set; then :
6544 withval=$with_target_bdw_gc_include;
6545fi
6546
6547
6548# Check whether --with-target-bdw-gc-lib was given.
6549if test "${with_target_bdw_gc_lib+set}" = set; then :
6550 withval=$with_target_bdw_gc_lib;
6551fi
6552
6553
6554case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6556$as_echo_n "checking for bdw garbage collector... " >&6; }
6557 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6559$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
6560 else
6561 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
22e05272 6562 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
114bf3f1 6563 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
22e05272 6564 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
114bf3f1
MK
6565 else
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6567$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6568 fi
6569 fi
43c40f3e
RO
6570esac
6571
5e9d6aa4 6572# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 6573case ,${enable_languages}, in
1007a55c 6574 *,c++,*)
5e9d6aa4 6575 # Disable libitm, libsanitizer if we're not building libstdc++
1007a55c
JW
6576 case "${noconfigdirs}" in
6577 *target-libstdc++-v3*)
5e9d6aa4 6578 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1007a55c
JW
6579 ;;
6580 *) ;;
6581 esac
6582 ;;
99776ebd 6583 *)
5e9d6aa4 6584 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6585 ;;
6586esac
6587
ee6a22df
L
6588# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6589# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6590# If we have the source for $noconfigdirs entries, add them to $notsupp.
6591
6592notsupp=""
6593for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6594 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6595 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6596 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6597 if test -r $srcdir/$dirname/configure ; then
6598 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6599 true
6600 else
6601 notsupp="$notsupp $dir"
6602 fi
6603 fi
6604 fi
ee6a22df
L
6605 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6606 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6607 if test -r $srcdir/$dirname/configure ; then
6608 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6609 true
6610 else
6611 notsupp="$notsupp $dir"
6612 fi
6613 fi
6614 fi
55ffb5ed
NN
6615 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6616 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6617 if test -r $srcdir/$dirname/configure ; then
6618 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6619 true
6620 else
6621 notsupp="$notsupp $dir"
6622 fi
6623 fi
6624 fi
6625done
6626
55ffb5ed
NN
6627# Quietly strip out all directories which aren't configurable in this tree.
6628# This relies on all configurable subdirectories being autoconfiscated, which
6629# is now the case.
23f6b2f9
PB
6630build_configdirs_all="$build_configdirs"
6631build_configdirs=
6632for i in ${build_configdirs_all} ; do
1c710c3c 6633 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6634 if test -f ${srcdir}/$j/configure ; then
6635 build_configdirs="${build_configdirs} $i"
6636 fi
6637done
6638
55ffb5ed
NN
6639configdirs_all="$configdirs"
6640configdirs=
6641for i in ${configdirs_all} ; do
6642 if test -f ${srcdir}/$i/configure ; then
6643 configdirs="${configdirs} $i"
6644 fi
6645done
23f6b2f9 6646
55ffb5ed
NN
6647target_configdirs_all="$target_configdirs"
6648target_configdirs=
6649for i in ${target_configdirs_all} ; do
1c710c3c 6650 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6651 if test -f ${srcdir}/$j/configure ; then
6652 target_configdirs="${target_configdirs} $i"
6653 fi
6654done
6655
45b3824d
TS
6656# libiberty-linker-plugin is special: it doesn't have its own source directory,
6657# so we have to add it after the preceding checks.
6658if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6659then
6660 case " $configdirs " in
6661 *" libiberty "*)
6662 # If we can build libiberty, we can also build libiberty-linker-plugin.
6663 configdirs="$configdirs libiberty-linker-plugin"
6664 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6665 --with-libiberty=../libiberty-linker-plugin";;
6666 *)
22e05272 6667 as_fn_error $? "libiberty missing" "$LINENO" 5;;
45b3824d
TS
6668 esac
6669fi
6670
fca38047
TS
6671# Sometimes we have special requirements for the host libiberty.
6672extra_host_libiberty_configure_flags=
1c01ebf6 6673extra_host_zlib_configure_flags=
fca38047
TS
6674case " $configdirs " in
6675 *" lto-plugin "* | *" libcc1 "*)
6676 # When these are to be built as shared libraries, the same applies to
6677 # libiberty.
6678 extra_host_libiberty_configure_flags=--enable-shared
6679 ;;
1c01ebf6
L
6680 *" bfd "*)
6681 # When bfd is to be built as a shared library, the same applies to
6682 # zlib.
6683 if test "$enable_shared" = "yes"; then
6684 extra_host_zlib_configure_flags=--enable-host-shared
6685 fi
6686 ;;
fca38047
TS
6687esac
6688
6689
1c01ebf6 6690
55ffb5ed
NN
6691# Produce a warning message for the subdirs we can't configure.
6692# This isn't especially interesting in the Cygnus tree, but in the individual
6693# FSF releases, it's important to let people know when their machine isn't
6694# supported by the one or two programs in a package.
6695
6696if test -n "${notsupp}" && test -z "${norecursion}" ; then
6697 # If $appdirs is non-empty, at least one of those directories must still
6698 # be configured, or we error out. (E.g., if the gas release supports a
6699 # specified target in some subdirs but not the gas subdir, we shouldn't
6700 # pretend that all is well.)
6701 if test -n "$appdirs" ; then
6702 for dir in $appdirs ; do
6703 if test -r $dir/Makefile.in ; then
6704 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6705 appdirs=""
6706 break
6707 fi
23f6b2f9 6708 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6709 appdirs=""
6710 break
6711 fi
6712 fi
6713 done
6714 if test -n "$appdirs" ; then
6715 echo "*** This configuration is not supported by this package." 1>&2
6716 exit 1
6717 fi
6718 fi
6719 # Okay, some application will build, or we don't care to check. Still
6720 # notify of subdirs not getting built.
6721 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6722 echo " ${notsupp}" 1>&2
6723 echo " (Any other directories should still work fine.)" 1>&2
6724fi
6725
6726case "$host" in
6727 *msdosdjgpp*)
6728 enable_gdbtk=no ;;
6729esac
6730
c3a86da9
DJ
6731# To find our prefix, in gcc_cv_tool_prefix.
6732
6733# The user is always right.
6734if test "${PATH_SEPARATOR+set}" != set; then
6735 echo "#! /bin/sh" >conf$$.sh
6736 echo "exit 0" >>conf$$.sh
6737 chmod +x conf$$.sh
6738 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6739 PATH_SEPARATOR=';'
6740 else
6741 PATH_SEPARATOR=:
6742 fi
6743 rm -f conf$$.sh
6744fi
6745
6746
3c36aa6b
JJ
6747 get_gcc_base_ver="cat"
6748
6749# Check whether --with-gcc-major-version-only was given.
6750if test "${with_gcc_major_version_only+set}" = set; then :
6751 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
31db0fe0 6752 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
6753 fi
6754
6755fi
6756
6757
6758
6759
6760
c3a86da9
DJ
6761
6762if test "x$exec_prefix" = xNONE; then
6763 if test "x$prefix" = xNONE; then
6764 gcc_cv_tool_prefix=$ac_default_prefix
6765 else
6766 gcc_cv_tool_prefix=$prefix
6767 fi
6768else
6769 gcc_cv_tool_prefix=$exec_prefix
6770fi
6771
6772# If there is no compiler in the tree, use the PATH only. In any
6773# case, if there is no compiler in the tree nobody should use
6774# AS_FOR_TARGET and LD_FOR_TARGET.
6775if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
6776 if test x$with_gcc_major_version_only = xyes ; then
6777 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6778 else
6779 gcc_version=`cat $srcdir/gcc/BASE-VER`
6780 fi
c3a86da9
DJ
6781 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6782 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6783 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6784 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6785 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6786 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6787else
6788 gcc_cv_tool_dirs=
6789fi
6790
6791if test x$build = x$target && test -n "$md_exec_prefix"; then
6792 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6793fi
6794
6795
6796
55ffb5ed
NN
6797copy_dirs=
6798
1c710c3c 6799
5213506e
RW
6800# Check whether --with-build-sysroot was given.
6801if test "${with_build_sysroot+set}" = set; then :
6802 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6803 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6804 fi
6805else
6806 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6807fi
526635cb
MM
6808
6809
c8aea42c 6810
5213506e
RW
6811
6812# Check whether --with-debug-prefix-map was given.
6813if test "${with_debug_prefix_map+set}" = set; then :
6814 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6815 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6816 for debug_map in $withval; do
6817 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6818 done
6819 fi
6820else
6821 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6822fi
6823
c8aea42c
PB
6824
6825
1c8bd6a3
PB
6826# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6827# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6828# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6829# We want to ensure that TARGET libraries (which we know are built with
6830# gcc) are built with "-O2 -g", so include those options when setting
6831# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6832if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6833 if test "x${is_cross_compiler}" = xyes; then
6834 CFLAGS_FOR_TARGET="-g -O2"
6835 else
6836 CFLAGS_FOR_TARGET=$CFLAGS
6837 case " $CFLAGS " in
6838 *" -O2 "*) ;;
6839 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6840 esac
6841 case " $CFLAGS " in
6842 *" -g "* | *" -g3 "*) ;;
6843 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6844 esac
6845 fi
1c8bd6a3
PB
6846fi
6847
6848
6849if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6850 if test "x${is_cross_compiler}" = xyes; then
6851 CXXFLAGS_FOR_TARGET="-g -O2"
6852 else
6853 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6854 case " $CXXFLAGS " in
6855 *" -O2 "*) ;;
6856 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6857 esac
6858 case " $CXXFLAGS " in
6859 *" -g "* | *" -g3 "*) ;;
6860 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6861 esac
6862 fi
1c8bd6a3
PB
6863fi
6864
6865
6f57bdf6
DK
6866
6867
55ffb5ed
NN
6868# Handle --with-headers=XXX. If the value is not "yes", the contents of
6869# the named directory are copied to $(tooldir)/sys-include.
6870if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6871 if test x${is_cross_compiler} = xno ; then
6872 echo 1>&2 '***' --with-headers is only supported when cross compiling
6873 exit 1
6874 fi
6875 if test x"${with_headers}" != xyes ; then
c3a86da9 6876 x=${gcc_cv_tool_prefix}
1c710c3c 6877 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6878 fi
6879fi
6880
6881# Handle --with-libs=XXX. If the value is not "yes", the contents of
6882# the name directories are copied to $(tooldir)/lib. Multiple directories
6883# are permitted.
6884if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6885 if test x${is_cross_compiler} = xno ; then
6886 echo 1>&2 '***' --with-libs is only supported when cross compiling
6887 exit 1
6888 fi
6889 if test x"${with_libs}" != xyes ; then
6890 # Copy the libraries in reverse order, so that files in the first named
6891 # library override files in subsequent libraries.
c3a86da9 6892 x=${gcc_cv_tool_prefix}
55ffb5ed 6893 for l in ${with_libs}; do
1c710c3c 6894 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6895 done
6896 fi
6897fi
6898
d7f09764 6899# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6900#
6901# This is done by determining whether or not the appropriate directory
6902# is available, and by checking whether or not specific configurations
6903# have requested that this magic not happen.
1c710c3c
DJ
6904#
6905# The command line options always override the explicit settings in
6b1786aa 6906# configure.ac, and the settings in configure.ac override this magic.
e8b05380 6907#
1c710c3c 6908# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6909# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6910# --without-gnu-ld options for the configure script. Similarly, if
6911# the default is to use the included zlib and you don't want to do that,
6912# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6913
6914if test x${use_gnu_as} = x &&
6915 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6916 with_gnu_as=yes
6917 extra_host_args="$extra_host_args --with-gnu-as"
6918fi
6919
6920if test x${use_gnu_ld} = x &&
5afab7ad 6921 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6922 with_gnu_ld=yes
6923 extra_host_args="$extra_host_args --with-gnu-ld"
6924fi
6925
d7f09764
DN
6926if test x${use_included_zlib} = x &&
6927 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6928 :
6929else
6930 with_system_zlib=yes
6931 extra_host_args="$extra_host_args --with-system-zlib"
6932fi
6933
e8b05380
PB
6934# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6935# can detect this case.
6936
6937if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6938 with_newlib=yes
6939 extra_host_args="$extra_host_args --with-newlib"
6940fi
6941
55ffb5ed
NN
6942# Handle ${copy_dirs}
6943set fnord ${copy_dirs}
6944shift
6945while test $# != 0 ; do
6946 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6947 :
6948 else
6949 echo Copying $1 to $2
6950
6951 # Use the install script to create the directory and all required
6952 # parent directories.
6953 if test -d $2 ; then
6954 :
6955 else
6956 echo >config.temp
6957 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6958 fi
6959
6960 # Copy the directory, assuming we have tar.
6961 # FIXME: Should we use B in the second tar? Not all systems support it.
6962 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6963
6964 # It is the responsibility of the user to correctly adjust all
6965 # symlinks. If somebody can figure out how to handle them correctly
6966 # here, feel free to add the code.
6967
6968 echo $1 > $2/COPIED
6969 fi
6970 shift; shift
6971done
6972
e8b05380
PB
6973# Determine a target-dependent exec_prefix that the installed
6974# gcc will search in. Keep this list sorted by triplet, with
6975# the *-*-osname triplets last.
6976md_exec_prefix=
6977case "${target}" in
30b74385 6978 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6979 md_exec_prefix=/dev/env/DJDIR/bin
6980 ;;
e8b05380 6981 *-*-hpux* | \
e8b05380 6982 *-*-nto-qnx* | \
6de66370 6983 *-*-solaris2*)
e8b05380
PB
6984 md_exec_prefix=/usr/ccs/bin
6985 ;;
6986esac
6987
671aa708
NN
6988extra_arflags_for_target=
6989extra_nmflags_for_target=
6990extra_ranlibflags_for_target=
6991target_makefile_frag=/dev/null
6992case "${target}" in
58e24147
AM
6993 spu-*-*)
6994 target_makefile_frag="config/mt-spu"
6995 ;;
d896cc4d 6996 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
6997 target_makefile_frag="config/mt-sde"
6998 ;;
1ec3b87b
RS
6999 mipsisa*-*-elfoabi*)
7000 target_makefile_frag="config/mt-mips-elfoabi"
7001 ;;
08d0963a
RS
7002 mips*-*-*linux* | mips*-*-gnu*)
7003 target_makefile_frag="config/mt-mips-gnu"
7004 ;;
707f1839
SL
7005 nios2-*-elf*)
7006 target_makefile_frag="config/mt-nios2-elf"
7007 ;;
76052545
EB
7008 *-*-linux-android*)
7009 target_makefile_frag="config/mt-android"
7010 ;;
416ac4d4 7011 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 7012 target_makefile_frag="config/mt-gnu"
671aa708
NN
7013 ;;
7014 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 7015 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
7016 # commands to handle both 32-bit and 64-bit objects. These flags are
7017 # harmless if we're using GNU nm or ar.
7018 extra_arflags_for_target=" -X32_64"
7019 extra_nmflags_for_target=" -B -X32_64"
7020 ;;
671aa708
NN
7021esac
7022
7023alphaieee_frag=/dev/null
7024case $target in
7025 alpha*-*-*)
7026 # This just makes sure to use the -mieee option to build target libs.
7027 # This should probably be set individually by each library.
7028 alphaieee_frag="config/mt-alphaieee"
7029 ;;
7030esac
7031
7032# If --enable-target-optspace always use -Os instead of -O2 to build
7033# the target libraries, similarly if it is not specified, use -Os
7034# on selected platforms.
7035ospace_frag=/dev/null
7036case "${enable_target_optspace}:${target}" in
7037 yes:*)
7038 ospace_frag="config/mt-ospace"
7039 ;;
7040 :d30v-*)
7041 ospace_frag="config/mt-d30v"
7042 ;;
d9063947 7043 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
7044 ospace_frag="config/mt-ospace"
7045 ;;
7046 no:* | :*)
7047 ;;
7048 *)
7049 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7050 ;;
7051esac
7052
671aa708
NN
7053# Some systems (e.g., one of the i386-aix systems the gas testers are
7054# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 7055tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
7056build_tooldir=${tooldir}
7057
671aa708
NN
7058# Create a .gdbinit file which runs the one in srcdir
7059# and tells GDB to look there for source files.
7060
7061if test -r ${srcdir}/.gdbinit ; then
7062 case ${srcdir} in
7063 .) ;;
7064 *) cat > ./.gdbinit <<EOF
7065# ${NO_EDIT}
7066dir ${srcdir}
7067dir .
7068source ${srcdir}/.gdbinit
7069EOF
7070 ;;
7071 esac
7072fi
7073
671aa708
NN
7074# Make sure that the compiler is able to generate an executable. If it
7075# can't, we are probably in trouble. We don't care whether we can run the
7076# executable--we might be using a cross compiler--we only care whether it
7077# can be created. At this point the main configure script has set CC.
7078we_are_ok=no
7079echo "int main () { return 0; }" > conftest.c
7080${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7081if test $? = 0 ; then
7082 if test -s conftest || test -s conftest.exe ; then
7083 we_are_ok=yes
7084 fi
1c710c3c 7085fi
671aa708
NN
7086case $we_are_ok in
7087 no)
7088 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7089 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7090 rm -f conftest*
7091 exit 1
7092 ;;
7093esac
7094rm -f conftest*
7095
d89f0ad6 7096# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
7097case "${host}" in
7098 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 7099 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 7100 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
7101 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7102esac
7103
d89f0ad6
AL
7104# On systems where the dynamic library environment variable is PATH,
7105# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7106# built executables to PATH.
7107if test "$RPATH_ENVVAR" = PATH; then
7108 GCC_SHLIB_SUBDIR=/shlib
7109else
7110 GCC_SHLIB_SUBDIR=
7111fi
7112
beeda1d9
JJ
7113# Adjust the toplevel makefile according to whether bootstrap was selected.
7114case $enable_bootstrap in
7115 yes)
7116 bootstrap_suffix=bootstrap
7117 BUILD_CONFIG=bootstrap-debug
7118 ;;
7119 no)
7120 bootstrap_suffix=no-bootstrap
7121 BUILD_CONFIG=
7122 ;;
7123esac
7124
7125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7126$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7127
7128
7129# Check whether --with-build-config was given.
7130if test "${with_build_config+set}" = set; then :
7131 withval=$with_build_config; case $with_build_config in
7132 yes) with_build_config= ;;
7133 no) with_build_config= BUILD_CONFIG= ;;
7134 esac
7135fi
7136
7137
7138if test "x${with_build_config}" != x; then
7139 BUILD_CONFIG=$with_build_config
7140else
7141 case $BUILD_CONFIG in
7142 bootstrap-debug)
7143 if echo "int f (void) { return 0; }" > conftest.c &&
7144 ${CC} -c conftest.c &&
7145 mv conftest.o conftest.o.g0 &&
7146 ${CC} -c -g conftest.c &&
7147 mv conftest.o conftest.o.g &&
7148 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7149 :
7150 else
7151 BUILD_CONFIG=
7152 fi
7153 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7154 ;;
7155 esac
7156fi
7157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7158$as_echo "$BUILD_CONFIG" >&6; }
7159
7160
7161# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7163$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7164# Check whether --enable-vtable-verify was given.
7165if test "${enable_vtable_verify+set}" = set; then :
7166 enableval=$enable_vtable_verify; case "$enableval" in
7167 yes) enable_vtable_verify=yes ;;
7168 no) enable_vtable_verify=no ;;
7169 *) enable_vtable_verify=no;;
7170 esac
7171else
7172 enable_vtable_verify=no
7173fi
7174
7175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7176$as_echo "$enable_vtable_verify" >&6; }
7177
671aa708
NN
7178# Record target_configdirs and the configure arguments for target and
7179# build configuration in Makefile.
7180target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7181build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 7182bootstrap_fixincludes=no
671aa708 7183
ad1e5170
JR
7184# If we are building libgomp, bootstrap it.
7185if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7186 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7187fi
7188
beeda1d9
JJ
7189# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7190# or bootstrap-ubsan, bootstrap it.
7191if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7192 case "$BUILD_CONFIG" in
7193 *bootstrap-asan* | *bootstrap-ubsan* )
7194 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7195 bootstrap_fixincludes=yes
beeda1d9
JJ
7196 ;;
7197 esac
ac8701fe
L
7198fi
7199
beeda1d9
JJ
7200# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7201if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7202 test "$enable_vtable_verify" != no; then
2077db1b
CT
7203 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7204fi
7205
671aa708
NN
7206# Determine whether gdb needs tk/tcl or not.
7207# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7208# and in that case we want gdb to be built without tk. Ugh!
7209# In fact I believe gdb is the *only* package directly dependent on tk,
7210# so we should be able to put the 'maybe's in unconditionally and
7211# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7212# 100% sure that that's safe though.
e914a571 7213
b4f96efe 7214gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7215case "$enable_gdbtk" in
7216 no)
7217 GDB_TK="" ;;
e914a571
AC
7218 yes)
7219 GDB_TK="${gdb_tk}" ;;
671aa708 7220 *)
e914a571
AC
7221 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7222 # distro. Eventually someone will fix this and move Insight, nee
7223 # gdbtk to a separate directory.
7224 if test -d ${srcdir}/gdb/gdbtk ; then
7225 GDB_TK="${gdb_tk}"
7226 else
7227 GDB_TK=""
7228 fi
7229 ;;
671aa708 7230esac
ef9db8d5
DJ
7231CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7232INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7233
60975492 7234# Strip out unwanted targets.
8b87bb96
NN
7235
7236# While at that, we remove Makefiles if we were started for recursive
7237# configuration, so that the top-level Makefile reconfigures them,
7238# like we used to do when configure itself was recursive.
8b87bb96 7239
3e54529c
RW
7240# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7241# but now we're fixing up the Makefile ourselves with the additional
7242# commands passed to AC_CONFIG_FILES. Use separate variables
7243# extrasub-{build,host,target} not because there is any reason to split
7244# the substitutions up that way, but only to remain below the limit of
7245# 99 commands in a script, for HP-UX sed.
da34ca3f
AO
7246
7247# Do not nest @if/@endif or @unless/@endunless pairs, because
7248# configure will not warn you at all.
8b87bb96 7249
79cd2b23
RW
7250case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7251 yes:yes:*\ gold\ *:*,c++,*) ;;
7252 yes:yes:*\ gold\ *:*)
22e05272 7253 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
79cd2b23
RW
7254 ;;
7255esac
7256
3e54529c 7257extrasub_build=
23f6b2f9 7258for module in ${build_configdirs} ; do
5607edfd
PB
7259 if test -z "${no_recursion}" \
7260 && test -f ${build_subdir}/${module}/Makefile; then
7261 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7262 rm -f ${build_subdir}/${module}/Makefile
7263 fi
3e54529c 7264 extrasub_build="$extrasub_build
5607edfd
PB
7265/^@if build-$module\$/d
7266/^@endif build-$module\$/d
da34ca3f 7267/^@unless build-$module\$/,/^@endunless build-$module\$/d
5607edfd 7268/^@if build-$module-$bootstrap_suffix\$/d
da34ca3f
AO
7269/^@endif build-$module-$bootstrap_suffix\$/d
7270/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
5607edfd 7271done
3e54529c 7272extrasub_host=
5607edfd 7273for module in ${configdirs} ; do
a6fbc1e2 7274 if test -z "${no_recursion}"; then
f063a9ed 7275 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7276 if test -f ${file}; then
7277 echo 1>&2 "*** removing ${file} to force reconfigure"
7278 rm -f ${file}
7279 fi
7280 done
5607edfd 7281 fi
9e1c8fc1
JJ
7282 case ${module},${bootstrap_fixincludes} in
7283 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7284 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7285 esac
3e54529c 7286 extrasub_host="$extrasub_host
5607edfd
PB
7287/^@if $module\$/d
7288/^@endif $module\$/d
da34ca3f 7289/^@unless $module\$/,/^@endunless $module\$/d
9e1c8fc1 7290/^@if $module-$host_bootstrap_suffix\$/d
da34ca3f
AO
7291/^@endif $module-$host_bootstrap_suffix\$/d
7292/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
5607edfd 7293done
3e54529c 7294extrasub_target=
5607edfd
PB
7295for module in ${target_configdirs} ; do
7296 if test -z "${no_recursion}" \
7297 && test -f ${target_subdir}/${module}/Makefile; then
7298 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7299 rm -f ${target_subdir}/${module}/Makefile
7300 fi
00020c16
ILT
7301
7302 # We only bootstrap target libraries listed in bootstrap_target_libs.
7303 case $bootstrap_target_libs in
7304 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7305 *) target_bootstrap_suffix=no-bootstrap ;;
7306 esac
7307
3e54529c 7308 extrasub_target="$extrasub_target
5607edfd
PB
7309/^@if target-$module\$/d
7310/^@endif target-$module\$/d
da34ca3f 7311/^@unless target-$module\$/,/^@endunless target-$module\$/d
00020c16 7312/^@if target-$module-$target_bootstrap_suffix\$/d
da34ca3f
AO
7313/^@endif target-$module-$target_bootstrap_suffix\$/d
7314/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7315done
7316
3e54529c
RW
7317# Do the final fixup along with target modules.
7318extrasub_target="$extrasub_target
da34ca3f
AO
7319/^@if /,/^@endif /d
7320/^@unless /d
7321/^@endunless /d"
671aa708
NN
7322
7323# Create the serialization dependencies. This uses a temporary file.
7324
5213506e
RW
7325# Check whether --enable-serial-configure was given.
7326if test "${enable_serial_configure+set}" = set; then :
7327 enableval=$enable_serial_configure;
7328fi
ade82b16
AO
7329
7330
bf1d3e81
NN
7331case ${enable_serial_configure} in
7332 yes)
7333 enable_serial_build_configure=yes
7334 enable_serial_host_configure=yes
7335 enable_serial_target_configure=yes
7336 ;;
7337esac
7338
671aa708
NN
7339# These force 'configure's to be done one at a time, to avoid problems
7340# with contention over a shared config.cache.
7341rm -f serdep.tmp
ade82b16 7342echo '# serdep.tmp' > serdep.tmp
671aa708 7343olditem=
bf1d3e81 7344test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7345for item in ${build_configdirs} ; do
7346 case ${olditem} in
7347 "") ;;
ade82b16 7348 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7349 esac
7350 olditem=${item}
7351done
7352olditem=
bf1d3e81 7353test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7354for item in ${configdirs} ; do
7355 case ${olditem} in
7356 "") ;;
ade82b16 7357 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7358 esac
7359 olditem=${item}
7360done
7361olditem=
bf1d3e81 7362test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7363for item in ${target_configdirs} ; do
7364 case ${olditem} in
7365 "") ;;
ade82b16 7366 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7367 esac
7368 olditem=${item}
7369done
7370serialization_dependencies=serdep.tmp
7371
7372
ade82b16 7373# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7374# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7375# might not want to pass down to subconfigures. The exception being
7376# --cache-file=/dev/null, which is used to turn off the use of cache
7377# files altogether, and which should be passed on to subconfigures.
7378# Also strip program-prefix, program-suffix, and program-transform-name,
7379# so that we can pass down a consistent program-transform-name.
1c710c3c 7380baseargs=
29a63921 7381tbaseargs=
1c710c3c
DJ
7382keep_next=no
7383skip_next=no
7384eval "set -- $ac_configure_args"
44bfc3ac
DJ
7385for ac_arg
7386do
1c710c3c
DJ
7387 if test X"$skip_next" = X"yes"; then
7388 skip_next=no
7389 continue
7390 fi
7391 if test X"$keep_next" = X"yes"; then
7392 case $ac_arg in
7393 *\'*)
7394 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7395 esac
7396 baseargs="$baseargs '$ac_arg'"
29a63921 7397 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7398 keep_next=no
7399 continue
7400 fi
7401
7402 # Handle separated arguments. Based on the logic generated by
7403 # autoconf 2.59.
7404 case $ac_arg in
7405 *=* | --config-cache | -C | -disable-* | --disable-* \
7406 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7407 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7408 | -with-* | --with-* | -without-* | --without-* | --x)
7409 separate_arg=no
7410 ;;
7411 -*)
7412 separate_arg=yes
7413 ;;
7414 *)
7415 separate_arg=no
7416 ;;
7417 esac
7418
29a63921
AO
7419 skip_targ=no
7420 case $ac_arg in
7421
7422 --with-* | --without-*)
7423 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7424
7425 case $libopt in
7426 *[-_]include)
7427 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7428 ;;
7429 *[-_]lib)
7430 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7431 ;;
7432 *)
7433 lib=$libopt
7434 ;;
7435 esac
7436
7437
7438 case $lib in
4a9bb2aa 7439 mpc | mpfr | gmp | isl)
29a63921
AO
7440 # If we're processing --with-$lib, --with-$lib-include or
7441 # --with-$lib-lib, for one of the libs above, and target is
7442 # different from host, don't pass the current argument to any
7443 # target library's configure.
7444 if test x$is_cross_compiler = xyes; then
7445 skip_targ=yes
7446 fi
7447 ;;
7448 esac
7449 ;;
7450 esac
7451
1c710c3c 7452 case "$ac_arg" in
f1a036e4
NC
7453 --cache-file=/dev/null | \
7454 -cache-file=/dev/null )
7455 # Handled here to avoid the test to skip args below.
7456 baseargs="$baseargs '$ac_arg'"
29a63921 7457 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7458 # Assert: $separate_arg should always be no.
7459 keep_next=$separate_arg
7460 ;;
1c710c3c
DJ
7461 --no*)
7462 continue
7463 ;;
7464 --c* | \
7465 --sr* | \
7466 --ho* | \
7467 --bu* | \
7468 --t* | \
7469 --program-* | \
7470 -cache_file* | \
7471 -srcdir* | \
7472 -host* | \
7473 -build* | \
7474 -target* | \
7475 -program-prefix* | \
7476 -program-suffix* | \
7477 -program-transform-name* )
7478 skip_next=$separate_arg
7479 continue
7480 ;;
7481 -*)
7482 # An option. Add it.
7483 case $ac_arg in
7484 *\'*)
7485 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7486 esac
7487 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7488 if test X"$skip_targ" = Xno; then
7489 tbaseargs="$tbaseargs '$ac_arg'"
7490 fi
1c710c3c
DJ
7491 keep_next=$separate_arg
7492 ;;
7493 *)
7494 # Either a variable assignment, or a nonopt (triplet). Don't
7495 # pass it down; let the Makefile handle this.
7496 continue
7497 ;;
7498 esac
7499done
7500# Remove the initial space we just introduced and, as these will be
7501# expanded by make, quote '$'.
7502baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7503
43bb47c2
DJ
7504# Add in --program-transform-name, after --program-prefix and
7505# --program-suffix have been applied to it. Autoconf has already
7506# doubled dollar signs and backslashes in program_transform_name; we want
7507# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7508# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7509# Also, because we want to override the logic in subdir configure scripts to
7510# choose program_transform_name, replace any s,x,x, with s,y,y,.
7511sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7512${program_transform_name}
7513EOF_SED
7514gcc_transform_name=`cat conftestsed.out`
7515rm -f conftestsed.out
7516baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7517tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7518if test "$silent" = yes; then
7519 baseargs="$baseargs --silent"
29a63921 7520 tbaseargs="$tbaseargs --silent"
d9acb717 7521fi
0115d4a3 7522baseargs="$baseargs --disable-option-checking"
29a63921 7523tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7524
ffedf511
RW
7525# Record and document user additions to sub configure arguments.
7526
7527
7528
7529
671aa708
NN
7530# For the build-side libraries, we just need to pretend we're native,
7531# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
7532# desired. We can't even use the same cache file for all build-side
7533# libraries, as they're compiled differently; some with C, some with
7534# C++ or with different feature-enabling options.
7535build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
7536
7537# For host modules, accept cache file option, or specification as blank.
7538case "${cache_file}" in
7539"") # empty
7540 cache_file_option="" ;;
7541/* | [A-Za-z]:[\\/]* ) # absolute path
7542 cache_file_option="--cache-file=${cache_file}" ;;
7543*) # relative path
7544 cache_file_option="--cache-file=../${cache_file}" ;;
7545esac
7546
09438bde
NN
7547# Host dirs don't like to share a cache file either, horribly enough.
7548# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7549host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7550
29a63921 7551target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7552
7553# Passing a --with-cross-host argument lets the target libraries know
7554# whether they are being built with a cross-compiler or being built
7555# native. However, it would be better to use other mechanisms to make the
7556# sorts of decisions they want to make on this basis. Please consider
7557# this option to be deprecated. FIXME.
7558if test x${is_cross_compiler} = xyes ; then
1c710c3c 7559 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7560fi
7561
79e0604d
FXC
7562# Special user-friendly check for native x86_64-linux build, if
7563# multilib is not explicitly enabled.
7564case "$target:$have_compiler:$host:$target:$enable_multilib" in
7565 x86_64-*linux*:yes:$build:$build:)
e640447c 7566 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
7567 dev64=no
7568 echo "int main () { return 0; }" > conftest.c
7569 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7570 if test $? = 0 ; then
7571 if test -s conftest || test -s conftest.exe ; then
7572 dev64=yes
7573 fi
7574 fi
7575 rm -f conftest*
7576 if test x${dev64} != xyes ; then
22e05272 7577 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
7578 fi
7579 ;;
7580esac
7581
dc683a3f
RW
7582# Default to --enable-multilib.
7583if test x${enable_multilib} = x ; then
671aa708 7584 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7585fi
671aa708
NN
7586
7587# Pass --with-newlib if appropriate. Note that target_configdirs has
7588# changed from the earlier setting of with_newlib.
7589if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7590 target_configargs="--with-newlib ${target_configargs}"
7591fi
7592
6b9eb62c
NN
7593# Different target subdirs use different values of certain variables
7594# (notably CXX). Worse, multilibs use *lots* of different values.
7595# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7596# it doesn't automatically accept command-line overrides of them.
7597# This means it's not safe for target subdirs to share a cache file,
7598# which is disgusting, but there you have it. Hopefully this can be
7599# fixed in future. It's still worthwhile to use a cache file for each
7600# directory. I think.
7601
bebcd931
MS
7602# Pass the appropriate --build, --host, --target and --cache-file arguments.
7603# We need to pass --target, as newer autoconf's requires consistency
7604# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7605target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7606
671aa708
NN
7607FLAGS_FOR_TARGET=
7608case " $target_configdirs " in
7609 *" newlib "*)
7610 case " $target_configargs " in
7611 *" --with-newlib "*)
7612 case "$target" in
5d571eaa 7613 *-cygwin*)
443e6238 7614 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7615 ;;
671aa708
NN
7616 esac
7617
7618 # If we're not building GCC, don't discard standard headers.
7619 if test -d ${srcdir}/gcc; then
7620 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7621
7622 if test "${build}" != "${host}"; then
7623 # On Canadian crosses, CC_FOR_TARGET will have already been set
7624 # by `configure', so we won't have an opportunity to add -Bgcc/
7625 # to it. This is right: we don't want to search that directory
7626 # for binaries, but we want the header files in there, so add
7627 # them explicitly.
0463992b 7628 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7629
7630 # Someone might think of using the pre-installed headers on
7631 # Canadian crosses, in case the installed compiler is not fully
7632 # compatible with the compiler being built. In this case, it
7633 # would be better to flag an error than risking having
7634 # incompatible object files being constructed. We can't
7635 # guarantee that an error will be flagged, but let's hope the
7636 # compiler will do it, when presented with incompatible header
7637 # files.
7638 fi
7639 fi
7640
7641 case "${target}-${is_cross_compiler}" in
f2a0e225 7642 i[3456789]86-*-linux*-no)
671aa708
NN
7643 # Here host == target, so we don't need to build gcc,
7644 # so we don't want to discard standard headers.
7645 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7646 ;;
7647 *)
7648 # If we're building newlib, use its generic headers last, but search
7649 # for any libc-related directories first (so make it the last -B
7650 # switch).
7651 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
7652
7653 # If we're building libgloss, find the startup file, simulator library
7654 # and linker script.
7655 case " $target_configdirs " in
7656 *" libgloss "*)
7657 # Look for startup file, simulator library and maybe linker script.
7658 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7659 # Look for libnosys.a in case the target needs it.
7660 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7661 # Most targets have the linker script in the source directory.
7662 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7663 ;;
7664 esac
671aa708
NN
7665 ;;
7666 esac
7667 ;;
7668 esac
7669 ;;
7670esac
5d571eaa 7671
b91f0a41 7672case "$target" in
5d571eaa
OS
7673 x86_64-*mingw* | *-w64-mingw*)
7674 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7675 # however, use a symlink named 'mingw' in ${prefix} .
7676 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7677 ;;
7678 *-mingw*)
7679 # MinGW can't be handled as Cygwin above since it does not use newlib.
7680 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'
7681 ;;
b91f0a41 7682esac
671aa708 7683
6691a79e
ME
7684# Allow the user to override the flags for
7685# our build compiler if desired.
f019adc1
MF
7686if test x"${build}" = x"${host}" ; then
7687 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7688 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7689 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7690fi
6691a79e 7691
671aa708
NN
7692# On Canadian crosses, we'll be searching the right directories for
7693# the previously-installed cross compiler, so don't bother to add
7694# flags for directories within the install tree of the compiler
7695# being built; programs in there won't even run.
7696if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7697 # Search for pre-installed headers if nothing else fits.
9124bc53 7698 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
7699fi
7700
7701if test "x${use_gnu_ld}" = x &&
7702 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7703 # Arrange for us to find uninstalled linker scripts.
215c351a 7704 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7705fi
7706
e88a2c09
DD
7707# Search for other target-specific linker scripts and such.
7708case "${target}" in
3e19841a
PB
7709 mep*)
7710 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7711 ;;
e88a2c09
DD
7712esac
7713
671aa708 7714# Makefile fragments.
7b61653a
PE
7715for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7716do
7717 eval fragval=\$$frag
7718 if test $fragval != /dev/null; then
7719 eval $frag=${srcdir}/$fragval
7720 fi
7721done
671aa708
NN
7722
7723
7724
7725
7726
7727# Miscellanea: directories, flags, etc.
7728
7729
7730
7731
7732
7733
7734
d89f0ad6 7735
23f6b2f9 7736# Build module lists & subconfigure args.
671aa708
NN
7737
7738
7739
2abefe3d
PB
7740# Host module lists & subconfigure args.
7741
7742
7743
aae29963 7744
2abefe3d
PB
7745# Target module lists & subconfigure args.
7746
7747
7748
7749# Build tools.
7750
7751
7752
0999159b
PB
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
b4c522fa 7766
2abefe3d
PB
7767# Generate default definitions for YACC, M4, LEX and other programs that run
7768# on the build machine. These are used if the Makefile can't locate these
7769# programs in objdir.
7770MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7771
7772for ac_prog in 'bison -y' byacc yacc
7773do
1c710c3c 7774 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7775set dummy $ac_prog; ac_word=$2
5213506e
RW
7776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7778if ${ac_cv_prog_YACC+:} false; then :
5213506e 7779 $as_echo_n "(cached) " >&6
2abefe3d
PB
7780else
7781 if test -n "$YACC"; then
7782 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7783else
1c710c3c
DJ
7784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785for as_dir in $PATH
7786do
7787 IFS=$as_save_IFS
7788 test -z "$as_dir" && as_dir=.
5213506e 7789 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7791 ac_cv_prog_YACC="$ac_prog"
5213506e 7792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7793 break 2
7794 fi
7795done
5213506e
RW
7796 done
7797IFS=$as_save_IFS
1c710c3c 7798
2abefe3d
PB
7799fi
7800fi
1c710c3c 7801YACC=$ac_cv_prog_YACC
2abefe3d 7802if test -n "$YACC"; then
5213506e
RW
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7804$as_echo "$YACC" >&6; }
2abefe3d 7805else
5213506e
RW
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807$as_echo "no" >&6; }
2abefe3d
PB
7808fi
7809
5213506e 7810
1c710c3c 7811 test -n "$YACC" && break
2abefe3d
PB
7812done
7813test -n "$YACC" || YACC="$MISSING bison -y"
7814
7815case " $build_configdirs " in
7816 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7817esac
7818
7819for ac_prog in bison
7820do
1c710c3c 7821 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7822set dummy $ac_prog; ac_word=$2
5213506e
RW
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7825if ${ac_cv_prog_BISON+:} false; then :
5213506e 7826 $as_echo_n "(cached) " >&6
2abefe3d
PB
7827else
7828 if test -n "$BISON"; then
7829 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7830else
1c710c3c
DJ
7831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832for as_dir in $PATH
7833do
7834 IFS=$as_save_IFS
7835 test -z "$as_dir" && as_dir=.
5213506e 7836 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7838 ac_cv_prog_BISON="$ac_prog"
5213506e 7839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7840 break 2
7841 fi
7842done
5213506e
RW
7843 done
7844IFS=$as_save_IFS
1c710c3c 7845
2abefe3d
PB
7846fi
7847fi
1c710c3c 7848BISON=$ac_cv_prog_BISON
2abefe3d 7849if test -n "$BISON"; then
5213506e
RW
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7851$as_echo "$BISON" >&6; }
2abefe3d 7852else
5213506e
RW
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854$as_echo "no" >&6; }
2abefe3d
PB
7855fi
7856
5213506e 7857
1c710c3c 7858 test -n "$BISON" && break
2abefe3d
PB
7859done
7860test -n "$BISON" || BISON="$MISSING bison"
7861
7862case " $build_configdirs " in
7863 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7864esac
7865
7866for ac_prog in gm4 gnum4 m4
7867do
1c710c3c 7868 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7869set dummy $ac_prog; ac_word=$2
5213506e
RW
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7871$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7872if ${ac_cv_prog_M4+:} false; then :
5213506e 7873 $as_echo_n "(cached) " >&6
2abefe3d
PB
7874else
7875 if test -n "$M4"; then
7876 ac_cv_prog_M4="$M4" # Let the user override the test.
7877else
1c710c3c
DJ
7878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879for as_dir in $PATH
7880do
7881 IFS=$as_save_IFS
7882 test -z "$as_dir" && as_dir=.
5213506e 7883 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7885 ac_cv_prog_M4="$ac_prog"
5213506e 7886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7887 break 2
7888 fi
7889done
5213506e
RW
7890 done
7891IFS=$as_save_IFS
1c710c3c 7892
2abefe3d
PB
7893fi
7894fi
1c710c3c 7895M4=$ac_cv_prog_M4
2abefe3d 7896if test -n "$M4"; then
5213506e
RW
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7898$as_echo "$M4" >&6; }
2abefe3d 7899else
5213506e
RW
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901$as_echo "no" >&6; }
2abefe3d
PB
7902fi
7903
5213506e 7904
1c710c3c 7905 test -n "$M4" && break
2abefe3d
PB
7906done
7907test -n "$M4" || M4="$MISSING m4"
7908
7909case " $build_configdirs " in
7910 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7911esac
7912
7913for ac_prog in flex lex
7914do
1c710c3c 7915 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7916set dummy $ac_prog; ac_word=$2
5213506e
RW
7917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7918$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7919if ${ac_cv_prog_LEX+:} false; then :
5213506e 7920 $as_echo_n "(cached) " >&6
2abefe3d
PB
7921else
7922 if test -n "$LEX"; then
7923 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7924else
1c710c3c
DJ
7925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926for as_dir in $PATH
7927do
7928 IFS=$as_save_IFS
7929 test -z "$as_dir" && as_dir=.
5213506e 7930 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7932 ac_cv_prog_LEX="$ac_prog"
5213506e 7933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7934 break 2
7935 fi
7936done
5213506e
RW
7937 done
7938IFS=$as_save_IFS
1c710c3c 7939
2abefe3d
PB
7940fi
7941fi
1c710c3c 7942LEX=$ac_cv_prog_LEX
2abefe3d 7943if test -n "$LEX"; then
5213506e
RW
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7945$as_echo "$LEX" >&6; }
2abefe3d 7946else
5213506e
RW
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948$as_echo "no" >&6; }
2abefe3d
PB
7949fi
7950
5213506e 7951
1c710c3c 7952 test -n "$LEX" && break
2abefe3d
PB
7953done
7954test -n "$LEX" || LEX="$MISSING flex"
7955
7956case " $build_configdirs " in
7957 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7958 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7959esac
7960
7961for ac_prog in flex
7962do
1c710c3c 7963 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7964set dummy $ac_prog; ac_word=$2
5213506e
RW
7965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7966$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7967if ${ac_cv_prog_FLEX+:} false; then :
5213506e 7968 $as_echo_n "(cached) " >&6
2abefe3d
PB
7969else
7970 if test -n "$FLEX"; then
7971 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7972else
1c710c3c
DJ
7973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974for as_dir in $PATH
7975do
7976 IFS=$as_save_IFS
7977 test -z "$as_dir" && as_dir=.
5213506e 7978 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7980 ac_cv_prog_FLEX="$ac_prog"
5213506e 7981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7982 break 2
7983 fi
7984done
5213506e
RW
7985 done
7986IFS=$as_save_IFS
1c710c3c 7987
2abefe3d
PB
7988fi
7989fi
1c710c3c 7990FLEX=$ac_cv_prog_FLEX
2abefe3d 7991if test -n "$FLEX"; then
5213506e
RW
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7993$as_echo "$FLEX" >&6; }
2abefe3d 7994else
5213506e
RW
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996$as_echo "no" >&6; }
2abefe3d
PB
7997fi
7998
5213506e 7999
1c710c3c 8000 test -n "$FLEX" && break
2abefe3d
PB
8001done
8002test -n "$FLEX" || FLEX="$MISSING flex"
8003
8004case " $build_configdirs " in
8005 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8006esac
8007
8008for ac_prog in makeinfo
8009do
1c710c3c 8010 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8011set dummy $ac_prog; ac_word=$2
5213506e
RW
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8014if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 8015 $as_echo_n "(cached) " >&6
2abefe3d
PB
8016else
8017 if test -n "$MAKEINFO"; then
8018 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8019else
1c710c3c
DJ
8020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
5213506e 8025 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8027 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8029 break 2
8030 fi
8031done
5213506e
RW
8032 done
8033IFS=$as_save_IFS
1c710c3c 8034
2abefe3d
PB
8035fi
8036fi
1c710c3c 8037MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 8038if test -n "$MAKEINFO"; then
5213506e
RW
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8040$as_echo "$MAKEINFO" >&6; }
2abefe3d 8041else
5213506e
RW
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043$as_echo "no" >&6; }
2abefe3d
PB
8044fi
8045
5213506e 8046
1c710c3c 8047 test -n "$MAKEINFO" && break
2abefe3d
PB
8048done
8049test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8050
8051case " $build_configdirs " in
8052 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8053 *)
8054
d18ff35a 8055 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
8056 # higher, else we use the "missing" dummy.
8057 if ${MAKEINFO} --version \
d18ff35a 8058 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
8059 :
8060 else
8061 MAKEINFO="$MISSING makeinfo"
8062 fi
8063 ;;
8064
8065esac
671aa708 8066
2abefe3d 8067# FIXME: expect and dejagnu may become build tools?
671aa708 8068
2abefe3d
PB
8069for ac_prog in expect
8070do
1c710c3c 8071 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8072set dummy $ac_prog; ac_word=$2
5213506e
RW
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8075if ${ac_cv_prog_EXPECT+:} false; then :
5213506e 8076 $as_echo_n "(cached) " >&6
2abefe3d
PB
8077else
8078 if test -n "$EXPECT"; then
8079 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8080else
1c710c3c
DJ
8081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082for as_dir in $PATH
8083do
8084 IFS=$as_save_IFS
8085 test -z "$as_dir" && as_dir=.
5213506e 8086 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8088 ac_cv_prog_EXPECT="$ac_prog"
5213506e 8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8090 break 2
8091 fi
8092done
5213506e
RW
8093 done
8094IFS=$as_save_IFS
1c710c3c 8095
2abefe3d
PB
8096fi
8097fi
1c710c3c 8098EXPECT=$ac_cv_prog_EXPECT
2abefe3d 8099if test -n "$EXPECT"; then
5213506e
RW
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8101$as_echo "$EXPECT" >&6; }
2abefe3d 8102else
5213506e
RW
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104$as_echo "no" >&6; }
2abefe3d 8105fi
671aa708 8106
5213506e 8107
1c710c3c 8108 test -n "$EXPECT" && break
2abefe3d
PB
8109done
8110test -n "$EXPECT" || EXPECT="expect"
671aa708 8111
2abefe3d
PB
8112case " $configdirs " in
8113 *" expect "*)
8114 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8115 ;;
8116esac
671aa708 8117
2abefe3d
PB
8118for ac_prog in runtest
8119do
1c710c3c 8120 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8121set dummy $ac_prog; ac_word=$2
5213506e
RW
8122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8124if ${ac_cv_prog_RUNTEST+:} false; then :
5213506e 8125 $as_echo_n "(cached) " >&6
2abefe3d
PB
8126else
8127 if test -n "$RUNTEST"; then
8128 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 8129else
1c710c3c
DJ
8130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131for as_dir in $PATH
8132do
8133 IFS=$as_save_IFS
8134 test -z "$as_dir" && as_dir=.
5213506e 8135 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8137 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 8138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8139 break 2
8140 fi
8141done
5213506e
RW
8142 done
8143IFS=$as_save_IFS
1c710c3c 8144
2abefe3d
PB
8145fi
8146fi
1c710c3c 8147RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8148if test -n "$RUNTEST"; then
5213506e
RW
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8150$as_echo "$RUNTEST" >&6; }
2abefe3d 8151else
5213506e
RW
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153$as_echo "no" >&6; }
2abefe3d 8154fi
671aa708 8155
5213506e 8156
1c710c3c 8157 test -n "$RUNTEST" && break
2abefe3d
PB
8158done
8159test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8160
2abefe3d
PB
8161case " $configdirs " in
8162 *" dejagnu "*)
c394e891 8163 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8164 ;;
8165esac
671aa708
NN
8166
8167
671aa708 8168# Host tools.
ca9f4b81
AO
8169ncn_tool_prefix=
8170test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8171ncn_target_tool_prefix=
8172test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8173
278a7a38
AO
8174
8175
8176if test -n "$AR"; then
8177 ac_cv_prog_AR=$AR
8178elif test -n "$ac_cv_prog_AR"; then
8179 AR=$ac_cv_prog_AR
8180fi
8181
8182if test -n "$ac_cv_prog_AR"; then
8183 for ncn_progname in ar; do
8184 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8185set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8187$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8188if ${ac_cv_prog_AR+:} false; then :
5213506e 8189 $as_echo_n "(cached) " >&6
278a7a38
AO
8190else
8191 if test -n "$AR"; then
8192 ac_cv_prog_AR="$AR" # Let the user override the test.
8193else
8194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195for as_dir in $PATH
8196do
8197 IFS=$as_save_IFS
8198 test -z "$as_dir" && as_dir=.
5213506e 8199 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8201 ac_cv_prog_AR="${ncn_progname}"
5213506e 8202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8203 break 2
8204 fi
8205done
5213506e
RW
8206 done
8207IFS=$as_save_IFS
278a7a38
AO
8208
8209fi
8210fi
8211AR=$ac_cv_prog_AR
8212if test -n "$AR"; then
5213506e
RW
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8214$as_echo "$AR" >&6; }
278a7a38 8215else
5213506e
RW
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217$as_echo "no" >&6; }
278a7a38
AO
8218fi
8219
5213506e 8220
278a7a38
AO
8221 done
8222fi
8223
8224for ncn_progname in ar; do
2693c0b0
PB
8225 if test -n "$ncn_tool_prefix"; then
8226 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8227set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8230if ${ac_cv_prog_AR+:} false; then :
5213506e 8231 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8232else
8233 if test -n "$AR"; then
8234 ac_cv_prog_AR="$AR" # Let the user override the test.
8235else
1c710c3c
DJ
8236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237for as_dir in $PATH
8238do
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
5213506e 8241 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8243 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8245 break 2
8246 fi
8247done
5213506e
RW
8248 done
8249IFS=$as_save_IFS
1c710c3c 8250
ca9f4b81
AO
8251fi
8252fi
1c710c3c 8253AR=$ac_cv_prog_AR
ca9f4b81 8254if test -n "$AR"; then
5213506e
RW
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8256$as_echo "$AR" >&6; }
ca9f4b81 8257else
5213506e
RW
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259$as_echo "no" >&6; }
ca9f4b81
AO
8260fi
8261
5213506e 8262
2693c0b0
PB
8263 fi
8264 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8265 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8266set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8268$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8269if ${ac_cv_prog_AR+:} false; then :
5213506e 8270 $as_echo_n "(cached) " >&6
ca9f4b81 8271else
2693c0b0 8272 if test -n "$AR"; then
af71363e
AS
8273 ac_cv_prog_AR="$AR" # Let the user override the test.
8274else
1c710c3c
DJ
8275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276for as_dir in $PATH
8277do
8278 IFS=$as_save_IFS
8279 test -z "$as_dir" && as_dir=.
5213506e 8280 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8282 ac_cv_prog_AR="${ncn_progname}"
5213506e 8283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8284 break 2
8285 fi
8286done
5213506e
RW
8287 done
8288IFS=$as_save_IFS
1c710c3c 8289
ca9f4b81
AO
8290fi
8291fi
1c710c3c 8292AR=$ac_cv_prog_AR
2693c0b0 8293if test -n "$AR"; then
5213506e
RW
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8295$as_echo "$AR" >&6; }
ca9f4b81 8296else
5213506e
RW
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298$as_echo "no" >&6; }
ca9f4b81 8299fi
1c710c3c 8300
5213506e 8301
2693c0b0
PB
8302 fi
8303 test -n "$ac_cv_prog_AR" && break
8304done
8305
8306if test -z "$ac_cv_prog_AR" ; then
8307 set dummy ar
8308 if test $build = $host ; then
8309 AR="$2"
ca9f4b81 8310 else
2693c0b0 8311 AR="${ncn_tool_prefix}$2"
ca9f4b81 8312 fi
ca9f4b81
AO
8313fi
8314
278a7a38
AO
8315
8316
8317if test -n "$AS"; then
8318 ac_cv_prog_AS=$AS
8319elif test -n "$ac_cv_prog_AS"; then
8320 AS=$ac_cv_prog_AS
8321fi
8322
8323if test -n "$ac_cv_prog_AS"; then
8324 for ncn_progname in as; do
8325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8326set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8329if ${ac_cv_prog_AS+:} false; then :
5213506e 8330 $as_echo_n "(cached) " >&6
278a7a38
AO
8331else
8332 if test -n "$AS"; then
8333 ac_cv_prog_AS="$AS" # Let the user override the test.
8334else
8335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336for as_dir in $PATH
8337do
8338 IFS=$as_save_IFS
8339 test -z "$as_dir" && as_dir=.
5213506e 8340 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8342 ac_cv_prog_AS="${ncn_progname}"
5213506e 8343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8344 break 2
8345 fi
8346done
5213506e
RW
8347 done
8348IFS=$as_save_IFS
278a7a38
AO
8349
8350fi
8351fi
8352AS=$ac_cv_prog_AS
8353if test -n "$AS"; then
5213506e
RW
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8355$as_echo "$AS" >&6; }
278a7a38 8356else
5213506e
RW
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358$as_echo "no" >&6; }
278a7a38
AO
8359fi
8360
5213506e 8361
278a7a38
AO
8362 done
8363fi
8364
8365for ncn_progname in as; do
2693c0b0
PB
8366 if test -n "$ncn_tool_prefix"; then
8367 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8368set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8370$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8371if ${ac_cv_prog_AS+:} false; then :
5213506e 8372 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8373else
8374 if test -n "$AS"; then
8375 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8376else
1c710c3c
DJ
8377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378for as_dir in $PATH
8379do
8380 IFS=$as_save_IFS
8381 test -z "$as_dir" && as_dir=.
5213506e 8382 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8384 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8386 break 2
8387 fi
8388done
5213506e
RW
8389 done
8390IFS=$as_save_IFS
1c710c3c 8391
ca9f4b81
AO
8392fi
8393fi
1c710c3c 8394AS=$ac_cv_prog_AS
ca9f4b81 8395if test -n "$AS"; then
5213506e
RW
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8397$as_echo "$AS" >&6; }
ca9f4b81 8398else
5213506e
RW
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400$as_echo "no" >&6; }
ca9f4b81
AO
8401fi
8402
5213506e 8403
2693c0b0
PB
8404 fi
8405 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8406 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8407set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8409$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8410if ${ac_cv_prog_AS+:} false; then :
5213506e 8411 $as_echo_n "(cached) " >&6
ca9f4b81 8412else
2693c0b0
PB
8413 if test -n "$AS"; then
8414 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8415else
1c710c3c
DJ
8416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417for as_dir in $PATH
8418do
8419 IFS=$as_save_IFS
8420 test -z "$as_dir" && as_dir=.
5213506e 8421 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8423 ac_cv_prog_AS="${ncn_progname}"
5213506e 8424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8425 break 2
8426 fi
8427done
5213506e
RW
8428 done
8429IFS=$as_save_IFS
1c710c3c 8430
ca9f4b81
AO
8431fi
8432fi
1c710c3c 8433AS=$ac_cv_prog_AS
2693c0b0 8434if test -n "$AS"; then
5213506e
RW
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8436$as_echo "$AS" >&6; }
ca9f4b81 8437else
5213506e
RW
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8439$as_echo "no" >&6; }
ca9f4b81 8440fi
1c710c3c 8441
5213506e 8442
2693c0b0
PB
8443 fi
8444 test -n "$ac_cv_prog_AS" && break
8445done
8446
8447if test -z "$ac_cv_prog_AS" ; then
8448 set dummy as
8449 if test $build = $host ; then
8450 AS="$2"
ca9f4b81 8451 else
2693c0b0 8452 AS="${ncn_tool_prefix}$2"
ca9f4b81 8453 fi
ca9f4b81
AO
8454fi
8455
278a7a38
AO
8456
8457
8458if test -n "$DLLTOOL"; then
8459 ac_cv_prog_DLLTOOL=$DLLTOOL
8460elif test -n "$ac_cv_prog_DLLTOOL"; then
8461 DLLTOOL=$ac_cv_prog_DLLTOOL
8462fi
8463
8464if test -n "$ac_cv_prog_DLLTOOL"; then
8465 for ncn_progname in dlltool; do
8466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8467set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8469$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8470if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 8471 $as_echo_n "(cached) " >&6
278a7a38
AO
8472else
8473 if test -n "$DLLTOOL"; then
8474 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8475else
8476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477for as_dir in $PATH
8478do
8479 IFS=$as_save_IFS
8480 test -z "$as_dir" && as_dir=.
5213506e 8481 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8483 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8485 break 2
8486 fi
8487done
5213506e
RW
8488 done
8489IFS=$as_save_IFS
278a7a38
AO
8490
8491fi
8492fi
8493DLLTOOL=$ac_cv_prog_DLLTOOL
8494if test -n "$DLLTOOL"; then
5213506e
RW
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8496$as_echo "$DLLTOOL" >&6; }
278a7a38 8497else
5213506e
RW
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8499$as_echo "no" >&6; }
278a7a38
AO
8500fi
8501
5213506e 8502
278a7a38
AO
8503 done
8504fi
8505
8506for ncn_progname in dlltool; do
2693c0b0
PB
8507 if test -n "$ncn_tool_prefix"; then
8508 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8509set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8512if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 8513 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8514else
8515 if test -n "$DLLTOOL"; then
8516 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8517else
1c710c3c
DJ
8518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519for as_dir in $PATH
8520do
8521 IFS=$as_save_IFS
8522 test -z "$as_dir" && as_dir=.
5213506e 8523 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8525 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8527 break 2
8528 fi
8529done
5213506e
RW
8530 done
8531IFS=$as_save_IFS
1c710c3c 8532
ca9f4b81
AO
8533fi
8534fi
1c710c3c 8535DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8536if test -n "$DLLTOOL"; then
5213506e
RW
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8538$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8539else
5213506e
RW
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541$as_echo "no" >&6; }
ca9f4b81
AO
8542fi
8543
5213506e 8544
2693c0b0
PB
8545 fi
8546 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8547 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8548set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8550$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8551if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 8552 $as_echo_n "(cached) " >&6
ca9f4b81 8553else
2693c0b0
PB
8554 if test -n "$DLLTOOL"; then
8555 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8556else
1c710c3c
DJ
8557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558for as_dir in $PATH
8559do
8560 IFS=$as_save_IFS
8561 test -z "$as_dir" && as_dir=.
5213506e 8562 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8564 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8566 break 2
8567 fi
8568done
5213506e
RW
8569 done
8570IFS=$as_save_IFS
1c710c3c 8571
ca9f4b81
AO
8572fi
8573fi
1c710c3c 8574DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8575if test -n "$DLLTOOL"; then
5213506e
RW
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8577$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8578else
5213506e
RW
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580$as_echo "no" >&6; }
ca9f4b81 8581fi
1c710c3c 8582
5213506e 8583
2693c0b0
PB
8584 fi
8585 test -n "$ac_cv_prog_DLLTOOL" && break
8586done
8587
8588if test -z "$ac_cv_prog_DLLTOOL" ; then
8589 set dummy dlltool
8590 if test $build = $host ; then
8591 DLLTOOL="$2"
ca9f4b81 8592 else
2693c0b0 8593 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8594 fi
ca9f4b81
AO
8595fi
8596
278a7a38
AO
8597
8598
8599if test -n "$LD"; then
8600 ac_cv_prog_LD=$LD
8601elif test -n "$ac_cv_prog_LD"; then
8602 LD=$ac_cv_prog_LD
8603fi
8604
8605if test -n "$ac_cv_prog_LD"; then
8606 for ncn_progname in ld; do
8607 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8608set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8610$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8611if ${ac_cv_prog_LD+:} false; then :
5213506e 8612 $as_echo_n "(cached) " >&6
278a7a38
AO
8613else
8614 if test -n "$LD"; then
8615 ac_cv_prog_LD="$LD" # Let the user override the test.
8616else
8617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618for as_dir in $PATH
8619do
8620 IFS=$as_save_IFS
8621 test -z "$as_dir" && as_dir=.
5213506e 8622 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8624 ac_cv_prog_LD="${ncn_progname}"
5213506e 8625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8626 break 2
8627 fi
8628done
5213506e
RW
8629 done
8630IFS=$as_save_IFS
278a7a38
AO
8631
8632fi
8633fi
8634LD=$ac_cv_prog_LD
8635if test -n "$LD"; then
5213506e
RW
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8637$as_echo "$LD" >&6; }
278a7a38 8638else
5213506e
RW
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8640$as_echo "no" >&6; }
278a7a38
AO
8641fi
8642
5213506e 8643
278a7a38
AO
8644 done
8645fi
8646
8647for ncn_progname in ld; do
2693c0b0
PB
8648 if test -n "$ncn_tool_prefix"; then
8649 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8650set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8653if ${ac_cv_prog_LD+:} false; then :
5213506e 8654 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8655else
8656 if test -n "$LD"; then
8657 ac_cv_prog_LD="$LD" # Let the user override the test.
8658else
1c710c3c
DJ
8659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660for as_dir in $PATH
8661do
8662 IFS=$as_save_IFS
8663 test -z "$as_dir" && as_dir=.
5213506e 8664 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8666 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8668 break 2
8669 fi
8670done
5213506e
RW
8671 done
8672IFS=$as_save_IFS
1c710c3c 8673
ca9f4b81
AO
8674fi
8675fi
1c710c3c 8676LD=$ac_cv_prog_LD
ca9f4b81 8677if test -n "$LD"; then
5213506e
RW
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8679$as_echo "$LD" >&6; }
ca9f4b81 8680else
5213506e
RW
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682$as_echo "no" >&6; }
ca9f4b81
AO
8683fi
8684
5213506e 8685
2693c0b0
PB
8686 fi
8687 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8688 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8689set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8692if ${ac_cv_prog_LD+:} false; then :
5213506e 8693 $as_echo_n "(cached) " >&6
ca9f4b81 8694else
2693c0b0
PB
8695 if test -n "$LD"; then
8696 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8697else
1c710c3c
DJ
8698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699for as_dir in $PATH
8700do
8701 IFS=$as_save_IFS
8702 test -z "$as_dir" && as_dir=.
5213506e 8703 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8705 ac_cv_prog_LD="${ncn_progname}"
5213506e 8706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8707 break 2
8708 fi
8709done
5213506e
RW
8710 done
8711IFS=$as_save_IFS
1c710c3c 8712
ca9f4b81
AO
8713fi
8714fi
1c710c3c 8715LD=$ac_cv_prog_LD
2693c0b0 8716if test -n "$LD"; then
5213506e
RW
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8718$as_echo "$LD" >&6; }
ca9f4b81 8719else
5213506e
RW
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721$as_echo "no" >&6; }
ca9f4b81 8722fi
1c710c3c 8723
5213506e 8724
2693c0b0
PB
8725 fi
8726 test -n "$ac_cv_prog_LD" && break
8727done
8728
8729if test -z "$ac_cv_prog_LD" ; then
8730 set dummy ld
8731 if test $build = $host ; then
8732 LD="$2"
ca9f4b81 8733 else
2693c0b0 8734 LD="${ncn_tool_prefix}$2"
ca9f4b81 8735 fi
ca9f4b81
AO
8736fi
8737
278a7a38
AO
8738
8739
8740if test -n "$LIPO"; then
8741 ac_cv_prog_LIPO=$LIPO
8742elif test -n "$ac_cv_prog_LIPO"; then
8743 LIPO=$ac_cv_prog_LIPO
8744fi
8745
8746if test -n "$ac_cv_prog_LIPO"; then
8747 for ncn_progname in lipo; do
8748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8749set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8751$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8752if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8753 $as_echo_n "(cached) " >&6
278a7a38
AO
8754else
8755 if test -n "$LIPO"; then
8756 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8757else
8758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8759for as_dir in $PATH
8760do
8761 IFS=$as_save_IFS
8762 test -z "$as_dir" && as_dir=.
5213506e 8763 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8765 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8767 break 2
8768 fi
8769done
5213506e
RW
8770 done
8771IFS=$as_save_IFS
278a7a38
AO
8772
8773fi
8774fi
8775LIPO=$ac_cv_prog_LIPO
8776if test -n "$LIPO"; then
5213506e
RW
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8778$as_echo "$LIPO" >&6; }
278a7a38 8779else
5213506e
RW
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781$as_echo "no" >&6; }
278a7a38
AO
8782fi
8783
5213506e 8784
278a7a38
AO
8785 done
8786fi
8787
8788for ncn_progname in lipo; do
2abefe3d
PB
8789 if test -n "$ncn_tool_prefix"; then
8790 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8791set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8793$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8794if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8795 $as_echo_n "(cached) " >&6
2abefe3d
PB
8796else
8797 if test -n "$LIPO"; then
8798 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8799else
1c710c3c
DJ
8800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801for as_dir in $PATH
8802do
8803 IFS=$as_save_IFS
8804 test -z "$as_dir" && as_dir=.
5213506e 8805 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8807 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8809 break 2
8810 fi
8811done
5213506e
RW
8812 done
8813IFS=$as_save_IFS
1c710c3c 8814
2abefe3d
PB
8815fi
8816fi
1c710c3c 8817LIPO=$ac_cv_prog_LIPO
2abefe3d 8818if test -n "$LIPO"; then
5213506e
RW
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8820$as_echo "$LIPO" >&6; }
2abefe3d 8821else
5213506e
RW
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823$as_echo "no" >&6; }
2abefe3d
PB
8824fi
8825
5213506e 8826
2abefe3d
PB
8827 fi
8828 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8830set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8832$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8833if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8834 $as_echo_n "(cached) " >&6
2abefe3d
PB
8835else
8836 if test -n "$LIPO"; then
8837 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8838else
1c710c3c
DJ
8839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8840for as_dir in $PATH
8841do
8842 IFS=$as_save_IFS
8843 test -z "$as_dir" && as_dir=.
5213506e 8844 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8846 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8848 break 2
8849 fi
8850done
5213506e
RW
8851 done
8852IFS=$as_save_IFS
1c710c3c 8853
2abefe3d
PB
8854fi
8855fi
1c710c3c 8856LIPO=$ac_cv_prog_LIPO
2abefe3d 8857if test -n "$LIPO"; then
5213506e
RW
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8859$as_echo "$LIPO" >&6; }
2abefe3d 8860else
5213506e
RW
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862$as_echo "no" >&6; }
2abefe3d 8863fi
1c710c3c 8864
5213506e 8865
2abefe3d
PB
8866 fi
8867 test -n "$ac_cv_prog_LIPO" && break
8868done
8869
8870if test -z "$ac_cv_prog_LIPO" ; then
8871 set dummy lipo
8872 if test $build = $host ; then
8873 LIPO="$2"
8874 else
8875 LIPO="${ncn_tool_prefix}$2"
8876 fi
8877fi
8878
278a7a38
AO
8879
8880
8881if test -n "$NM"; then
8882 ac_cv_prog_NM=$NM
8883elif test -n "$ac_cv_prog_NM"; then
8884 NM=$ac_cv_prog_NM
8885fi
8886
8887if test -n "$ac_cv_prog_NM"; then
8888 for ncn_progname in nm; do
8889 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8890set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8892$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8893if ${ac_cv_prog_NM+:} false; then :
5213506e 8894 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8895else
8896 if test -n "$NM"; then
8897 ac_cv_prog_NM="$NM" # Let the user override the test.
8898else
1c710c3c
DJ
8899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8900for as_dir in $PATH
8901do
8902 IFS=$as_save_IFS
8903 test -z "$as_dir" && as_dir=.
5213506e 8904 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8906 ac_cv_prog_NM="${ncn_progname}"
5213506e 8907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8908 break 2
8909 fi
8910done
5213506e
RW
8911 done
8912IFS=$as_save_IFS
1c710c3c 8913
ca9f4b81
AO
8914fi
8915fi
1c710c3c 8916NM=$ac_cv_prog_NM
ca9f4b81 8917if test -n "$NM"; then
5213506e
RW
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8919$as_echo "$NM" >&6; }
ca9f4b81 8920else
5213506e
RW
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8922$as_echo "no" >&6; }
ca9f4b81
AO
8923fi
8924
5213506e 8925
278a7a38
AO
8926 done
8927fi
8928
8929for ncn_progname in nm; do
8930 if test -n "$ncn_tool_prefix"; then
8931 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8932set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8934$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8935if ${ac_cv_prog_NM+:} false; then :
5213506e 8936 $as_echo_n "(cached) " >&6
ca9f4b81 8937else
2693c0b0
PB
8938 if test -n "$NM"; then
8939 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8940else
1c710c3c
DJ
8941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8942for as_dir in $PATH
8943do
8944 IFS=$as_save_IFS
8945 test -z "$as_dir" && as_dir=.
5213506e 8946 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8948 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8950 break 2
8951 fi
8952done
5213506e
RW
8953 done
8954IFS=$as_save_IFS
1c710c3c 8955
ca9f4b81
AO
8956fi
8957fi
1c710c3c 8958NM=$ac_cv_prog_NM
2693c0b0 8959if test -n "$NM"; then
5213506e
RW
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8961$as_echo "$NM" >&6; }
ca9f4b81 8962else
5213506e
RW
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964$as_echo "no" >&6; }
ca9f4b81 8965fi
1c710c3c 8966
5213506e 8967
2693c0b0 8968 fi
278a7a38
AO
8969 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8971set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8973$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8974if ${ac_cv_prog_NM+:} false; then :
5213506e 8975 $as_echo_n "(cached) " >&6
278a7a38
AO
8976else
8977 if test -n "$NM"; then
8978 ac_cv_prog_NM="$NM" # Let the user override the test.
8979else
8980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8981for as_dir in $PATH
8982do
8983 IFS=$as_save_IFS
8984 test -z "$as_dir" && as_dir=.
5213506e 8985 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8987 ac_cv_prog_NM="${ncn_progname}"
5213506e 8988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8989 break 2
8990 fi
8991done
5213506e
RW
8992 done
8993IFS=$as_save_IFS
278a7a38
AO
8994
8995fi
8996fi
8997NM=$ac_cv_prog_NM
8998if test -n "$NM"; then
5213506e
RW
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9000$as_echo "$NM" >&6; }
278a7a38 9001else
5213506e
RW
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003$as_echo "no" >&6; }
278a7a38
AO
9004fi
9005
5213506e 9006
278a7a38
AO
9007 fi
9008 test -n "$ac_cv_prog_NM" && break
9009done
9010
9011if test -z "$ac_cv_prog_NM" ; then
9012 set dummy nm
9013 if test $build = $host ; then
9014 NM="$2"
9015 else
9016 NM="${ncn_tool_prefix}$2"
9017 fi
9018fi
9019
9020
9021
9022if test -n "$RANLIB"; then
9023 ac_cv_prog_RANLIB=$RANLIB
9024elif test -n "$ac_cv_prog_RANLIB"; then
9025 RANLIB=$ac_cv_prog_RANLIB
9026fi
9027
9028if test -n "$ac_cv_prog_RANLIB"; then
9029 for ncn_progname in ranlib; do
9030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9031set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9033$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9034if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9035 $as_echo_n "(cached) " >&6
278a7a38
AO
9036else
9037 if test -n "$RANLIB"; then
9038 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9039else
9040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9041for as_dir in $PATH
9042do
9043 IFS=$as_save_IFS
9044 test -z "$as_dir" && as_dir=.
5213506e 9045 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9047 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9049 break 2
9050 fi
9051done
5213506e
RW
9052 done
9053IFS=$as_save_IFS
278a7a38
AO
9054
9055fi
9056fi
9057RANLIB=$ac_cv_prog_RANLIB
9058if test -n "$RANLIB"; then
5213506e
RW
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9060$as_echo "$RANLIB" >&6; }
278a7a38 9061else
5213506e
RW
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9063$as_echo "no" >&6; }
278a7a38
AO
9064fi
9065
5213506e 9066
278a7a38
AO
9067 done
9068fi
ca9f4b81 9069
278a7a38 9070for ncn_progname in ranlib; do
2693c0b0
PB
9071 if test -n "$ncn_tool_prefix"; then
9072 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9073set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9075$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9076if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9077 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9078else
9079 if test -n "$RANLIB"; then
9080 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9081else
1c710c3c
DJ
9082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9083for as_dir in $PATH
9084do
9085 IFS=$as_save_IFS
9086 test -z "$as_dir" && as_dir=.
5213506e 9087 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9089 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 9090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9091 break 2
9092 fi
9093done
5213506e
RW
9094 done
9095IFS=$as_save_IFS
1c710c3c 9096
ca9f4b81
AO
9097fi
9098fi
1c710c3c 9099RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 9100if test -n "$RANLIB"; then
5213506e
RW
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9102$as_echo "$RANLIB" >&6; }
ca9f4b81 9103else
5213506e
RW
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105$as_echo "no" >&6; }
ca9f4b81
AO
9106fi
9107
5213506e 9108
2693c0b0
PB
9109 fi
9110 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9112set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9115if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9116 $as_echo_n "(cached) " >&6
ca9f4b81 9117else
2693c0b0
PB
9118 if test -n "$RANLIB"; then
9119 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 9120else
1c710c3c
DJ
9121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122for as_dir in $PATH
9123do
9124 IFS=$as_save_IFS
9125 test -z "$as_dir" && as_dir=.
5213506e 9126 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9128 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9130 break 2
9131 fi
9132done
5213506e
RW
9133 done
9134IFS=$as_save_IFS
1c710c3c 9135
ca9f4b81
AO
9136fi
9137fi
1c710c3c 9138RANLIB=$ac_cv_prog_RANLIB
2693c0b0 9139if test -n "$RANLIB"; then
5213506e
RW
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9141$as_echo "$RANLIB" >&6; }
ca9f4b81 9142else
5213506e
RW
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144$as_echo "no" >&6; }
ca9f4b81 9145fi
1c710c3c 9146
5213506e 9147
ca9f4b81 9148 fi
2693c0b0
PB
9149 test -n "$ac_cv_prog_RANLIB" && break
9150done
9151
9152if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9153 RANLIB="true"
ca9f4b81
AO
9154fi
9155
278a7a38
AO
9156
9157
9158if test -n "$STRIP"; then
9159 ac_cv_prog_STRIP=$STRIP
9160elif test -n "$ac_cv_prog_STRIP"; then
9161 STRIP=$ac_cv_prog_STRIP
9162fi
9163
9164if test -n "$ac_cv_prog_STRIP"; then
9165 for ncn_progname in strip; do
9166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9167set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9169$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9170if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9171 $as_echo_n "(cached) " >&6
278a7a38
AO
9172else
9173 if test -n "$STRIP"; then
9174 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9175else
9176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9177for as_dir in $PATH
9178do
9179 IFS=$as_save_IFS
9180 test -z "$as_dir" && as_dir=.
5213506e 9181 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9183 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9185 break 2
9186 fi
9187done
5213506e
RW
9188 done
9189IFS=$as_save_IFS
278a7a38
AO
9190
9191fi
9192fi
9193STRIP=$ac_cv_prog_STRIP
9194if test -n "$STRIP"; then
5213506e
RW
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9196$as_echo "$STRIP" >&6; }
278a7a38 9197else
5213506e
RW
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9199$as_echo "no" >&6; }
278a7a38
AO
9200fi
9201
5213506e 9202
278a7a38
AO
9203 done
9204fi
9205
9206for ncn_progname in strip; do
2abefe3d
PB
9207 if test -n "$ncn_tool_prefix"; then
9208 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9209set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9211$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9212if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9213 $as_echo_n "(cached) " >&6
2abefe3d
PB
9214else
9215 if test -n "$STRIP"; then
9216 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9217else
1c710c3c
DJ
9218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9219for as_dir in $PATH
9220do
9221 IFS=$as_save_IFS
9222 test -z "$as_dir" && as_dir=.
5213506e 9223 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9225 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9227 break 2
9228 fi
9229done
5213506e
RW
9230 done
9231IFS=$as_save_IFS
1c710c3c 9232
2abefe3d
PB
9233fi
9234fi
1c710c3c 9235STRIP=$ac_cv_prog_STRIP
2abefe3d 9236if test -n "$STRIP"; then
5213506e
RW
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9238$as_echo "$STRIP" >&6; }
2abefe3d 9239else
5213506e
RW
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9241$as_echo "no" >&6; }
2abefe3d
PB
9242fi
9243
5213506e 9244
2abefe3d
PB
9245 fi
9246 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9247 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9248set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9250$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9251if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9252 $as_echo_n "(cached) " >&6
2abefe3d
PB
9253else
9254 if test -n "$STRIP"; then
9255 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9256else
1c710c3c
DJ
9257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258for as_dir in $PATH
9259do
9260 IFS=$as_save_IFS
9261 test -z "$as_dir" && as_dir=.
5213506e 9262 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9264 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9266 break 2
9267 fi
9268done
5213506e
RW
9269 done
9270IFS=$as_save_IFS
1c710c3c 9271
2abefe3d
PB
9272fi
9273fi
1c710c3c 9274STRIP=$ac_cv_prog_STRIP
2abefe3d 9275if test -n "$STRIP"; then
5213506e
RW
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9277$as_echo "$STRIP" >&6; }
2abefe3d 9278else
5213506e
RW
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280$as_echo "no" >&6; }
2abefe3d 9281fi
1c710c3c 9282
5213506e 9283
2abefe3d
PB
9284 fi
9285 test -n "$ac_cv_prog_STRIP" && break
9286done
9287
9288if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9289 STRIP="true"
2abefe3d
PB
9290fi
9291
278a7a38
AO
9292
9293
9294if test -n "$WINDRES"; then
9295 ac_cv_prog_WINDRES=$WINDRES
9296elif test -n "$ac_cv_prog_WINDRES"; then
9297 WINDRES=$ac_cv_prog_WINDRES
9298fi
9299
9300if test -n "$ac_cv_prog_WINDRES"; then
9301 for ncn_progname in windres; do
9302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9303set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9305$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9306if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 9307 $as_echo_n "(cached) " >&6
278a7a38
AO
9308else
9309 if test -n "$WINDRES"; then
9310 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9311else
9312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9313for as_dir in $PATH
9314do
9315 IFS=$as_save_IFS
9316 test -z "$as_dir" && as_dir=.
5213506e 9317 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9319 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9321 break 2
9322 fi
9323done
5213506e
RW
9324 done
9325IFS=$as_save_IFS
278a7a38
AO
9326
9327fi
9328fi
9329WINDRES=$ac_cv_prog_WINDRES
9330if test -n "$WINDRES"; then
5213506e
RW
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9332$as_echo "$WINDRES" >&6; }
278a7a38 9333else
5213506e
RW
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9335$as_echo "no" >&6; }
278a7a38
AO
9336fi
9337
5213506e 9338
278a7a38
AO
9339 done
9340fi
9341
9342for ncn_progname in windres; do
2693c0b0
PB
9343 if test -n "$ncn_tool_prefix"; then
9344 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9345set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9347$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9348if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 9349 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9350else
9351 if test -n "$WINDRES"; then
9352 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9353else
1c710c3c
DJ
9354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9355for as_dir in $PATH
9356do
9357 IFS=$as_save_IFS
9358 test -z "$as_dir" && as_dir=.
5213506e 9359 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9361 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9363 break 2
9364 fi
9365done
5213506e
RW
9366 done
9367IFS=$as_save_IFS
1c710c3c 9368
ca9f4b81
AO
9369fi
9370fi
1c710c3c 9371WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9372if test -n "$WINDRES"; then
5213506e
RW
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9374$as_echo "$WINDRES" >&6; }
ca9f4b81 9375else
5213506e
RW
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9377$as_echo "no" >&6; }
ca9f4b81
AO
9378fi
9379
5213506e 9380
2693c0b0
PB
9381 fi
9382 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9383 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9384set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9386$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9387if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 9388 $as_echo_n "(cached) " >&6
ca9f4b81 9389else
2693c0b0
PB
9390 if test -n "$WINDRES"; then
9391 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9392else
1c710c3c
DJ
9393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9394for as_dir in $PATH
9395do
9396 IFS=$as_save_IFS
9397 test -z "$as_dir" && as_dir=.
5213506e 9398 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9400 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9402 break 2
9403 fi
9404done
5213506e
RW
9405 done
9406IFS=$as_save_IFS
1c710c3c 9407
ca9f4b81
AO
9408fi
9409fi
1c710c3c 9410WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9411if test -n "$WINDRES"; then
5213506e
RW
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9413$as_echo "$WINDRES" >&6; }
ca9f4b81 9414else
5213506e
RW
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9416$as_echo "no" >&6; }
ca9f4b81 9417fi
1c710c3c 9418
5213506e 9419
2693c0b0
PB
9420 fi
9421 test -n "$ac_cv_prog_WINDRES" && break
9422done
9423
9424if test -z "$ac_cv_prog_WINDRES" ; then
9425 set dummy windres
9426 if test $build = $host ; then
9427 WINDRES="$2"
ca9f4b81 9428 else
2693c0b0 9429 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9430 fi
ca9f4b81
AO
9431fi
9432
278a7a38
AO
9433
9434
901119ae
KT
9435if test -n "$WINDMC"; then
9436 ac_cv_prog_WINDMC=$WINDMC
9437elif test -n "$ac_cv_prog_WINDMC"; then
9438 WINDMC=$ac_cv_prog_WINDMC
9439fi
9440
9441if test -n "$ac_cv_prog_WINDMC"; then
9442 for ncn_progname in windmc; do
9443 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9444set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9446$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9447if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 9448 $as_echo_n "(cached) " >&6
901119ae
KT
9449else
9450 if test -n "$WINDMC"; then
9451 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9452else
9453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9454for as_dir in $PATH
9455do
9456 IFS=$as_save_IFS
9457 test -z "$as_dir" && as_dir=.
5213506e 9458 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 9460 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9462 break 2
9463 fi
9464done
5213506e
RW
9465 done
9466IFS=$as_save_IFS
901119ae
KT
9467
9468fi
9469fi
9470WINDMC=$ac_cv_prog_WINDMC
9471if test -n "$WINDMC"; then
5213506e
RW
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9473$as_echo "$WINDMC" >&6; }
901119ae 9474else
5213506e
RW
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9476$as_echo "no" >&6; }
901119ae
KT
9477fi
9478
5213506e 9479
901119ae
KT
9480 done
9481fi
9482
9483for ncn_progname in windmc; do
9484 if test -n "$ncn_tool_prefix"; then
9485 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9486set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9488$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9489if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 9490 $as_echo_n "(cached) " >&6
901119ae
KT
9491else
9492 if test -n "$WINDMC"; then
9493 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9494else
9495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9496for as_dir in $PATH
9497do
9498 IFS=$as_save_IFS
9499 test -z "$as_dir" && as_dir=.
5213506e 9500 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 9502 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9504 break 2
9505 fi
9506done
5213506e
RW
9507 done
9508IFS=$as_save_IFS
901119ae
KT
9509
9510fi
9511fi
9512WINDMC=$ac_cv_prog_WINDMC
9513if test -n "$WINDMC"; then
5213506e
RW
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9515$as_echo "$WINDMC" >&6; }
901119ae 9516else
5213506e
RW
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9518$as_echo "no" >&6; }
901119ae
KT
9519fi
9520
5213506e 9521
901119ae
KT
9522 fi
9523 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9525set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9527$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9528if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 9529 $as_echo_n "(cached) " >&6
901119ae
KT
9530else
9531 if test -n "$WINDMC"; then
9532 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9533else
9534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9535for as_dir in $PATH
9536do
9537 IFS=$as_save_IFS
9538 test -z "$as_dir" && as_dir=.
5213506e 9539 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 9541 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9543 break 2
9544 fi
9545done
5213506e
RW
9546 done
9547IFS=$as_save_IFS
901119ae
KT
9548
9549fi
9550fi
9551WINDMC=$ac_cv_prog_WINDMC
9552if test -n "$WINDMC"; then
5213506e
RW
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9554$as_echo "$WINDMC" >&6; }
901119ae 9555else
5213506e
RW
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9557$as_echo "no" >&6; }
901119ae
KT
9558fi
9559
5213506e 9560
901119ae
KT
9561 fi
9562 test -n "$ac_cv_prog_WINDMC" && break
9563done
9564
9565if test -z "$ac_cv_prog_WINDMC" ; then
9566 set dummy windmc
9567 if test $build = $host ; then
9568 WINDMC="$2"
9569 else
9570 WINDMC="${ncn_tool_prefix}$2"
9571 fi
9572fi
9573
9574
9575
278a7a38
AO
9576if test -n "$OBJCOPY"; then
9577 ac_cv_prog_OBJCOPY=$OBJCOPY
9578elif test -n "$ac_cv_prog_OBJCOPY"; then
9579 OBJCOPY=$ac_cv_prog_OBJCOPY
9580fi
9581
9582if test -n "$ac_cv_prog_OBJCOPY"; then
9583 for ncn_progname in objcopy; do
9584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9585set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9587$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9588if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 9589 $as_echo_n "(cached) " >&6
278a7a38
AO
9590else
9591 if test -n "$OBJCOPY"; then
9592 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9593else
9594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9595for as_dir in $PATH
9596do
9597 IFS=$as_save_IFS
9598 test -z "$as_dir" && as_dir=.
5213506e 9599 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9601 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9603 break 2
9604 fi
9605done
5213506e
RW
9606 done
9607IFS=$as_save_IFS
278a7a38
AO
9608
9609fi
9610fi
9611OBJCOPY=$ac_cv_prog_OBJCOPY
9612if test -n "$OBJCOPY"; then
5213506e
RW
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9614$as_echo "$OBJCOPY" >&6; }
278a7a38 9615else
5213506e
RW
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9617$as_echo "no" >&6; }
278a7a38
AO
9618fi
9619
5213506e 9620
278a7a38
AO
9621 done
9622fi
9623
9624for ncn_progname in objcopy; do
2693c0b0
PB
9625 if test -n "$ncn_tool_prefix"; then
9626 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9627set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9629$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9630if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 9631 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9632else
9633 if test -n "$OBJCOPY"; then
9634 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9635else
1c710c3c
DJ
9636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637for as_dir in $PATH
9638do
9639 IFS=$as_save_IFS
9640 test -z "$as_dir" && as_dir=.
5213506e 9641 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9643 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9645 break 2
9646 fi
9647done
5213506e
RW
9648 done
9649IFS=$as_save_IFS
1c710c3c 9650
ca9f4b81
AO
9651fi
9652fi
1c710c3c 9653OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9654if test -n "$OBJCOPY"; then
5213506e
RW
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9656$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9657else
5213506e
RW
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659$as_echo "no" >&6; }
ca9f4b81
AO
9660fi
9661
5213506e 9662
2693c0b0
PB
9663 fi
9664 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9665 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9666set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9668$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9669if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 9670 $as_echo_n "(cached) " >&6
ca9f4b81 9671else
2693c0b0
PB
9672 if test -n "$OBJCOPY"; then
9673 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9674else
1c710c3c
DJ
9675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9676for as_dir in $PATH
9677do
9678 IFS=$as_save_IFS
9679 test -z "$as_dir" && as_dir=.
5213506e 9680 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9682 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9684 break 2
9685 fi
9686done
5213506e
RW
9687 done
9688IFS=$as_save_IFS
1c710c3c 9689
ca9f4b81
AO
9690fi
9691fi
1c710c3c 9692OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9693if test -n "$OBJCOPY"; then
5213506e
RW
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9695$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9696else
5213506e
RW
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9698$as_echo "no" >&6; }
ca9f4b81 9699fi
1c710c3c 9700
5213506e 9701
2693c0b0
PB
9702 fi
9703 test -n "$ac_cv_prog_OBJCOPY" && break
9704done
9705
9706if test -z "$ac_cv_prog_OBJCOPY" ; then
9707 set dummy objcopy
9708 if test $build = $host ; then
9709 OBJCOPY="$2"
ca9f4b81 9710 else
2693c0b0 9711 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9712 fi
ca9f4b81
AO
9713fi
9714
278a7a38
AO
9715
9716
9717if test -n "$OBJDUMP"; then
9718 ac_cv_prog_OBJDUMP=$OBJDUMP
9719elif test -n "$ac_cv_prog_OBJDUMP"; then
9720 OBJDUMP=$ac_cv_prog_OBJDUMP
9721fi
9722
9723if test -n "$ac_cv_prog_OBJDUMP"; then
9724 for ncn_progname in objdump; do
9725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9726set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9728$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9729if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 9730 $as_echo_n "(cached) " >&6
278a7a38
AO
9731else
9732 if test -n "$OBJDUMP"; then
9733 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9734else
9735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9736for as_dir in $PATH
9737do
9738 IFS=$as_save_IFS
9739 test -z "$as_dir" && as_dir=.
5213506e 9740 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9742 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9744 break 2
9745 fi
9746done
5213506e
RW
9747 done
9748IFS=$as_save_IFS
278a7a38
AO
9749
9750fi
9751fi
9752OBJDUMP=$ac_cv_prog_OBJDUMP
9753if test -n "$OBJDUMP"; then
5213506e
RW
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9755$as_echo "$OBJDUMP" >&6; }
278a7a38 9756else
5213506e
RW
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9758$as_echo "no" >&6; }
278a7a38
AO
9759fi
9760
5213506e 9761
278a7a38
AO
9762 done
9763fi
9764
9765for ncn_progname in objdump; do
2693c0b0
PB
9766 if test -n "$ncn_tool_prefix"; then
9767 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9768set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9770$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9771if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 9772 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9773else
9774 if test -n "$OBJDUMP"; then
9775 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9776else
1c710c3c
DJ
9777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9778for as_dir in $PATH
9779do
9780 IFS=$as_save_IFS
9781 test -z "$as_dir" && as_dir=.
5213506e 9782 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9784 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9786 break 2
9787 fi
9788done
5213506e
RW
9789 done
9790IFS=$as_save_IFS
1c710c3c 9791
ca9f4b81
AO
9792fi
9793fi
1c710c3c 9794OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9795if test -n "$OBJDUMP"; then
5213506e
RW
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9797$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9798else
5213506e
RW
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9800$as_echo "no" >&6; }
ca9f4b81
AO
9801fi
9802
5213506e 9803
2693c0b0
PB
9804 fi
9805 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9807set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9809$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9810if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 9811 $as_echo_n "(cached) " >&6
ca9f4b81 9812else
2693c0b0
PB
9813 if test -n "$OBJDUMP"; then
9814 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9815else
1c710c3c
DJ
9816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9817for as_dir in $PATH
9818do
9819 IFS=$as_save_IFS
9820 test -z "$as_dir" && as_dir=.
5213506e 9821 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9823 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9825 break 2
9826 fi
9827done
5213506e
RW
9828 done
9829IFS=$as_save_IFS
1c710c3c 9830
ca9f4b81
AO
9831fi
9832fi
1c710c3c 9833OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9834if test -n "$OBJDUMP"; then
5213506e
RW
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9836$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9837else
5213506e
RW
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9839$as_echo "no" >&6; }
ca9f4b81 9840fi
1c710c3c 9841
5213506e 9842
2693c0b0
PB
9843 fi
9844 test -n "$ac_cv_prog_OBJDUMP" && break
9845done
9846
9847if test -z "$ac_cv_prog_OBJDUMP" ; then
9848 set dummy objdump
9849 if test $build = $host ; then
9850 OBJDUMP="$2"
ca9f4b81 9851 else
2693c0b0 9852 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9853 fi
ca9f4b81
AO
9854fi
9855
671aa708
NN
9856
9857
e4a9a572
IS
9858if test -n "$OTOOL"; then
9859 ac_cv_prog_OTOOL=$OTOOL
9860elif test -n "$ac_cv_prog_OTOOL"; then
9861 OTOOL=$ac_cv_prog_OTOOL
9862fi
9863
9864if test -n "$ac_cv_prog_OTOOL"; then
9865 for ncn_progname in otool; do
9866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9867set dummy ${ncn_progname}; ac_word=$2
9868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9869$as_echo_n "checking for $ac_word... " >&6; }
9870if ${ac_cv_prog_OTOOL+:} false; then :
9871 $as_echo_n "(cached) " >&6
9872else
9873 if test -n "$OTOOL"; then
9874 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9875else
9876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877for as_dir in $PATH
9878do
9879 IFS=$as_save_IFS
9880 test -z "$as_dir" && as_dir=.
9881 for ac_exec_ext in '' $ac_executable_extensions; do
9882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9883 ac_cv_prog_OTOOL="${ncn_progname}"
9884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9885 break 2
9886 fi
9887done
9888 done
9889IFS=$as_save_IFS
9890
9891fi
9892fi
9893OTOOL=$ac_cv_prog_OTOOL
9894if test -n "$OTOOL"; then
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9896$as_echo "$OTOOL" >&6; }
9897else
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9899$as_echo "no" >&6; }
9900fi
9901
9902
9903 done
9904fi
9905
9906for ncn_progname in otool; do
9907 if test -n "$ncn_tool_prefix"; then
9908 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9909set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9911$as_echo_n "checking for $ac_word... " >&6; }
9912if ${ac_cv_prog_OTOOL+:} false; then :
9913 $as_echo_n "(cached) " >&6
9914else
9915 if test -n "$OTOOL"; then
9916 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9917else
9918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9919for as_dir in $PATH
9920do
9921 IFS=$as_save_IFS
9922 test -z "$as_dir" && as_dir=.
9923 for ac_exec_ext in '' $ac_executable_extensions; do
9924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9925 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
9926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9927 break 2
9928 fi
9929done
9930 done
9931IFS=$as_save_IFS
9932
9933fi
9934fi
9935OTOOL=$ac_cv_prog_OTOOL
9936if test -n "$OTOOL"; then
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9938$as_echo "$OTOOL" >&6; }
9939else
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9941$as_echo "no" >&6; }
9942fi
9943
9944
9945 fi
9946 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
9947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9948set dummy ${ncn_progname}; ac_word=$2
9949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950$as_echo_n "checking for $ac_word... " >&6; }
9951if ${ac_cv_prog_OTOOL+:} false; then :
9952 $as_echo_n "(cached) " >&6
9953else
9954 if test -n "$OTOOL"; then
9955 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9956else
9957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958for as_dir in $PATH
9959do
9960 IFS=$as_save_IFS
9961 test -z "$as_dir" && as_dir=.
9962 for ac_exec_ext in '' $ac_executable_extensions; do
9963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9964 ac_cv_prog_OTOOL="${ncn_progname}"
9965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9966 break 2
9967 fi
9968done
9969 done
9970IFS=$as_save_IFS
9971
9972fi
9973fi
9974OTOOL=$ac_cv_prog_OTOOL
9975if test -n "$OTOOL"; then
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9977$as_echo "$OTOOL" >&6; }
9978else
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980$as_echo "no" >&6; }
9981fi
9982
9983
9984 fi
9985 test -n "$ac_cv_prog_OTOOL" && break
9986done
9987
9988if test -z "$ac_cv_prog_OTOOL" ; then
9989 set dummy otool
9990 if test $build = $host ; then
9991 OTOOL="$2"
9992 else
9993 OTOOL="${ncn_tool_prefix}$2"
9994 fi
9995fi
9996
9997
9998
e7a82751
RM
9999if test -n "$READELF"; then
10000 ac_cv_prog_READELF=$READELF
10001elif test -n "$ac_cv_prog_READELF"; then
10002 READELF=$ac_cv_prog_READELF
10003fi
10004
10005if test -n "$ac_cv_prog_READELF"; then
10006 for ncn_progname in readelf; do
10007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10008set dummy ${ncn_progname}; ac_word=$2
10009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10010$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10011if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
10012 $as_echo_n "(cached) " >&6
10013else
10014 if test -n "$READELF"; then
10015 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10016else
10017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10018for as_dir in $PATH
10019do
10020 IFS=$as_save_IFS
10021 test -z "$as_dir" && as_dir=.
10022 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
10024 ac_cv_prog_READELF="${ncn_progname}"
10025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10026 break 2
10027 fi
10028done
10029 done
10030IFS=$as_save_IFS
10031
10032fi
10033fi
10034READELF=$ac_cv_prog_READELF
10035if test -n "$READELF"; then
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10037$as_echo "$READELF" >&6; }
10038else
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10040$as_echo "no" >&6; }
10041fi
10042
10043
10044 done
10045fi
10046
10047for ncn_progname in readelf; do
10048 if test -n "$ncn_tool_prefix"; then
10049 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10050set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10052$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10053if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
10054 $as_echo_n "(cached) " >&6
10055else
10056 if test -n "$READELF"; then
10057 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10058else
10059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10060for as_dir in $PATH
10061do
10062 IFS=$as_save_IFS
10063 test -z "$as_dir" && as_dir=.
10064 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
10066 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10068 break 2
10069 fi
10070done
10071 done
10072IFS=$as_save_IFS
10073
10074fi
10075fi
10076READELF=$ac_cv_prog_READELF
10077if test -n "$READELF"; then
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10079$as_echo "$READELF" >&6; }
10080else
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082$as_echo "no" >&6; }
10083fi
10084
10085
10086 fi
10087 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10089set dummy ${ncn_progname}; ac_word=$2
10090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10091$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10092if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
10093 $as_echo_n "(cached) " >&6
10094else
10095 if test -n "$READELF"; then
10096 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10097else
10098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10099for as_dir in $PATH
10100do
10101 IFS=$as_save_IFS
10102 test -z "$as_dir" && as_dir=.
10103 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
10105 ac_cv_prog_READELF="${ncn_progname}"
10106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10107 break 2
10108 fi
10109done
10110 done
10111IFS=$as_save_IFS
10112
10113fi
10114fi
10115READELF=$ac_cv_prog_READELF
10116if test -n "$READELF"; then
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10118$as_echo "$READELF" >&6; }
10119else
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121$as_echo "no" >&6; }
10122fi
10123
10124
10125 fi
10126 test -n "$ac_cv_prog_READELF" && break
10127done
10128
10129if test -z "$ac_cv_prog_READELF" ; then
10130 set dummy readelf
10131 if test $build = $host ; then
10132 READELF="$2"
10133 else
10134 READELF="${ncn_tool_prefix}$2"
10135 fi
10136fi
10137
10138
10139
671aa708
NN
10140
10141
10142
2abefe3d 10143# Target tools.
1c710c3c 10144
5213506e
RW
10145# Check whether --with-build-time-tools was given.
10146if test "${with_build_time_tools+set}" = set; then :
10147 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
10148 x/*) ;;
10149 *)
10150 with_build_time_tools=
5213506e
RW
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10152$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
10153 ;;
10154 esac
ca9f4b81 10155else
e8b05380 10156 with_build_time_tools=
5213506e
RW
10157fi
10158
ca9f4b81 10159
278a7a38
AO
10160
10161
10162if test -n "$CC_FOR_TARGET"; then
10163 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10164elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10165 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10166fi
10167
10168if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10169 for ncn_progname in cc gcc; do
10170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10171set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10173$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10174if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10175 $as_echo_n "(cached) " >&6
278a7a38
AO
10176else
10177 if test -n "$CC_FOR_TARGET"; then
10178 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10179else
10180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181for as_dir in $PATH
10182do
10183 IFS=$as_save_IFS
10184 test -z "$as_dir" && as_dir=.
5213506e 10185 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10187 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10189 break 2
10190 fi
10191done
5213506e
RW
10192 done
10193IFS=$as_save_IFS
278a7a38
AO
10194
10195fi
10196fi
10197CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10198if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10200$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 10201else
5213506e
RW
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10203$as_echo "no" >&6; }
278a7a38
AO
10204fi
10205
5213506e 10206
278a7a38
AO
10207 done
10208fi
10209
10210if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10211 for ncn_progname in cc gcc; do
5213506e
RW
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10213$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10214 if test -x $with_build_time_tools/${ncn_progname}; then
10215 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10217$as_echo "yes" >&6; }
72a7ab82 10218 break
e8b05380 10219 else
5213506e
RW
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221$as_echo "no" >&6; }
72a7ab82
AP
10222 fi
10223 done
4de997d1
PB
10224fi
10225
e8b05380
PB
10226if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10227 for ncn_progname in cc gcc; do
10228 if test -n "$ncn_target_tool_prefix"; then
10229 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10230set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10232$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10233if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10234 $as_echo_n "(cached) " >&6
4de997d1
PB
10235else
10236 if test -n "$CC_FOR_TARGET"; then
10237 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10238else
1c710c3c
DJ
10239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10240for as_dir in $PATH
10241do
10242 IFS=$as_save_IFS
10243 test -z "$as_dir" && as_dir=.
5213506e 10244 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10246 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10248 break 2
10249 fi
10250done
5213506e
RW
10251 done
10252IFS=$as_save_IFS
1c710c3c 10253
4de997d1
PB
10254fi
10255fi
1c710c3c 10256CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 10257if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10259$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10260else
5213506e
RW
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10262$as_echo "no" >&6; }
4de997d1
PB
10263fi
10264
5213506e 10265
e8b05380
PB
10266 fi
10267 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10269set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10271$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10272if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10273 $as_echo_n "(cached) " >&6
4de997d1 10274else
2693c0b0
PB
10275 if test -n "$CC_FOR_TARGET"; then
10276 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 10277else
1c710c3c
DJ
10278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279for as_dir in $PATH
10280do
10281 IFS=$as_save_IFS
10282 test -z "$as_dir" && as_dir=.
5213506e 10283 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10285 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10287 break 2
10288 fi
10289done
5213506e
RW
10290 done
10291IFS=$as_save_IFS
1c710c3c 10292
4de997d1
PB
10293fi
10294fi
1c710c3c 10295CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 10296if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10298$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10299else
5213506e
RW
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10301$as_echo "no" >&6; }
4de997d1 10302fi
1c710c3c 10303
5213506e 10304
e8b05380
PB
10305 fi
10306 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10307 done
10308fi
1c710c3c 10309
2693c0b0
PB
10310if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10311 set dummy cc gcc
10312 if test $build = $target ; then
10313 CC_FOR_TARGET="$2"
4de997d1 10314 else
2693c0b0 10315 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10316 fi
1c00b503
PB
10317else
10318 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10319fi
10320
278a7a38
AO
10321
10322
10323if test -n "$CXX_FOR_TARGET"; then
10324 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10325elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10326 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10327fi
10328
10329if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10330 for ncn_progname in c++ g++ cxx gxx; do
10331 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10332set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10334$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10335if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10336 $as_echo_n "(cached) " >&6
278a7a38
AO
10337else
10338 if test -n "$CXX_FOR_TARGET"; then
10339 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10340else
10341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342for as_dir in $PATH
10343do
10344 IFS=$as_save_IFS
10345 test -z "$as_dir" && as_dir=.
5213506e 10346 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10348 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10350 break 2
10351 fi
10352done
5213506e
RW
10353 done
10354IFS=$as_save_IFS
278a7a38
AO
10355
10356fi
10357fi
10358CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10359if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10361$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10362else
5213506e
RW
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364$as_echo "no" >&6; }
278a7a38
AO
10365fi
10366
5213506e 10367
278a7a38
AO
10368 done
10369fi
10370
10371if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10372 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10374$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10375 if test -x $with_build_time_tools/${ncn_progname}; then
10376 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10378$as_echo "yes" >&6; }
e8b05380
PB
10379 break
10380 else
5213506e
RW
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10382$as_echo "no" >&6; }
e8b05380
PB
10383 fi
10384 done
10385fi
10386
10387if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10388 for ncn_progname in c++ g++ cxx gxx; do
10389 if test -n "$ncn_target_tool_prefix"; then
10390 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10391set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10393$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10394if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10395 $as_echo_n "(cached) " >&6
4de997d1
PB
10396else
10397 if test -n "$CXX_FOR_TARGET"; then
10398 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10399else
1c710c3c
DJ
10400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10401for as_dir in $PATH
10402do
10403 IFS=$as_save_IFS
10404 test -z "$as_dir" && as_dir=.
5213506e 10405 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10407 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10409 break 2
10410 fi
10411done
5213506e
RW
10412 done
10413IFS=$as_save_IFS
1c710c3c 10414
4de997d1
PB
10415fi
10416fi
1c710c3c 10417CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10418if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10420$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10421else
5213506e
RW
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10423$as_echo "no" >&6; }
4de997d1
PB
10424fi
10425
5213506e 10426
e8b05380
PB
10427 fi
10428 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10429 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10430set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10432$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10433if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10434 $as_echo_n "(cached) " >&6
4de997d1 10435else
2693c0b0
PB
10436 if test -n "$CXX_FOR_TARGET"; then
10437 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10438else
1c710c3c
DJ
10439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10440for as_dir in $PATH
10441do
10442 IFS=$as_save_IFS
10443 test -z "$as_dir" && as_dir=.
5213506e 10444 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10446 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10448 break 2
10449 fi
10450done
5213506e
RW
10451 done
10452IFS=$as_save_IFS
1c710c3c 10453
4de997d1
PB
10454fi
10455fi
1c710c3c 10456CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10457if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10459$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10460else
5213506e
RW
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10462$as_echo "no" >&6; }
4de997d1 10463fi
1c710c3c 10464
5213506e 10465
e8b05380
PB
10466 fi
10467 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10468 done
10469fi
1c710c3c 10470
2693c0b0
PB
10471if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10472 set dummy c++ g++ cxx gxx
10473 if test $build = $target ; then
10474 CXX_FOR_TARGET="$2"
4de997d1 10475 else
2693c0b0 10476 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10477 fi
1c00b503
PB
10478else
10479 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10480fi
10481
278a7a38
AO
10482
10483
10484if test -n "$GCC_FOR_TARGET"; then
10485 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10486elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10487 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10488fi
10489
10490if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10491 for ncn_progname in gcc; do
10492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10493set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10495$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10496if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10497 $as_echo_n "(cached) " >&6
278a7a38
AO
10498else
10499 if test -n "$GCC_FOR_TARGET"; then
10500 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10501else
10502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10503for as_dir in $PATH
10504do
10505 IFS=$as_save_IFS
10506 test -z "$as_dir" && as_dir=.
5213506e 10507 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10509 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10511 break 2
10512 fi
10513done
5213506e
RW
10514 done
10515IFS=$as_save_IFS
278a7a38
AO
10516
10517fi
10518fi
10519GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10520if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10522$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10523else
5213506e
RW
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10525$as_echo "no" >&6; }
278a7a38
AO
10526fi
10527
5213506e 10528
278a7a38
AO
10529 done
10530fi
10531
10532if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10533 for ncn_progname in gcc; do
5213506e
RW
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10535$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10536 if test -x $with_build_time_tools/${ncn_progname}; then
10537 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10539$as_echo "yes" >&6; }
e8b05380
PB
10540 break
10541 else
5213506e
RW
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10543$as_echo "no" >&6; }
e8b05380
PB
10544 fi
10545 done
10546fi
10547
10548if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10549 for ncn_progname in gcc; do
10550 if test -n "$ncn_target_tool_prefix"; then
10551 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10552set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10554$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10555if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10556 $as_echo_n "(cached) " >&6
ca9f4b81 10557else
e8b05380
PB
10558 if test -n "$GCC_FOR_TARGET"; then
10559 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10560else
1c710c3c
DJ
10561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562for as_dir in $PATH
10563do
10564 IFS=$as_save_IFS
10565 test -z "$as_dir" && as_dir=.
5213506e 10566 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10568 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10570 break 2
10571 fi
10572done
5213506e
RW
10573 done
10574IFS=$as_save_IFS
1c710c3c 10575
ca9f4b81
AO
10576fi
10577fi
1c710c3c 10578GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10579if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10581$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10582else
5213506e
RW
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584$as_echo "no" >&6; }
ca9f4b81
AO
10585fi
10586
5213506e 10587
e8b05380
PB
10588 fi
10589 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10591set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10593$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10594if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10595 $as_echo_n "(cached) " >&6
ca9f4b81 10596else
e8b05380
PB
10597 if test -n "$GCC_FOR_TARGET"; then
10598 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10599else
1c710c3c
DJ
10600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10601for as_dir in $PATH
10602do
10603 IFS=$as_save_IFS
10604 test -z "$as_dir" && as_dir=.
5213506e 10605 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10607 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10609 break 2
10610 fi
10611done
5213506e
RW
10612 done
10613IFS=$as_save_IFS
1c710c3c 10614
ca9f4b81
AO
10615fi
10616fi
1c710c3c 10617GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10618if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10620$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10621else
5213506e
RW
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10623$as_echo "no" >&6; }
ca9f4b81 10624fi
1c710c3c 10625
5213506e 10626
e8b05380
PB
10627 fi
10628 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10629 done
10630fi
1c710c3c 10631
e8b05380
PB
10632if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10633 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10634else
10635 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10636fi
10637
278a7a38
AO
10638
10639
278a7a38
AO
10640if test -n "$GFORTRAN_FOR_TARGET"; then
10641 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10642elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10643 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10644fi
10645
278a7a38
AO
10646if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10647 for ncn_progname in gfortran; do
10648 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10649set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10651$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10652if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10653 $as_echo_n "(cached) " >&6
e8b05380 10654else
278a7a38
AO
10655 if test -n "$GFORTRAN_FOR_TARGET"; then
10656 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10657else
1c710c3c
DJ
10658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10659for as_dir in $PATH
10660do
10661 IFS=$as_save_IFS
10662 test -z "$as_dir" && as_dir=.
5213506e 10663 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10665 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10667 break 2
10668 fi
10669done
5213506e
RW
10670 done
10671IFS=$as_save_IFS
1c710c3c 10672
e8b05380
PB
10673fi
10674fi
278a7a38
AO
10675GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10676if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10678$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10679else
5213506e
RW
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681$as_echo "no" >&6; }
e8b05380 10682fi
1c710c3c 10683
5213506e 10684
e8b05380
PB
10685 done
10686fi
1c710c3c 10687
278a7a38 10688if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10689 for ncn_progname in gfortran; do
5213506e
RW
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10691$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10692 if test -x $with_build_time_tools/${ncn_progname}; then
10693 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10695$as_echo "yes" >&6; }
e8b05380
PB
10696 break
10697 else
5213506e
RW
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10699$as_echo "no" >&6; }
e8b05380
PB
10700 fi
10701 done
10702fi
10703
10704if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10705 for ncn_progname in gfortran; do
10706 if test -n "$ncn_target_tool_prefix"; then
10707 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10708set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10710$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10711if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10712 $as_echo_n "(cached) " >&6
e8b05380
PB
10713else
10714 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10715 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10716else
10717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718for as_dir in $PATH
10719do
10720 IFS=$as_save_IFS
10721 test -z "$as_dir" && as_dir=.
5213506e 10722 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10724 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10726 break 2
10727 fi
10728done
5213506e
RW
10729 done
10730IFS=$as_save_IFS
1c710c3c 10731
e8b05380
PB
10732fi
10733fi
1c710c3c 10734GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10735if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10737$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10738else
5213506e
RW
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10740$as_echo "no" >&6; }
e8b05380
PB
10741fi
10742
5213506e 10743
e8b05380
PB
10744 fi
10745 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10746 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10747set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10749$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10750if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10751 $as_echo_n "(cached) " >&6
e8b05380
PB
10752else
10753 if test -n "$GFORTRAN_FOR_TARGET"; then
10754 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10755else
1c710c3c
DJ
10756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757for as_dir in $PATH
10758do
10759 IFS=$as_save_IFS
10760 test -z "$as_dir" && as_dir=.
5213506e 10761 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10763 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10765 break 2
10766 fi
10767done
5213506e
RW
10768 done
10769IFS=$as_save_IFS
1c710c3c 10770
e8b05380
PB
10771fi
10772fi
1c710c3c 10773GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10774if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10776$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10777else
5213506e
RW
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10779$as_echo "no" >&6; }
e8b05380 10780fi
1c710c3c 10781
5213506e 10782
e8b05380
PB
10783 fi
10784 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10785 done
10786fi
1c710c3c 10787
e8b05380
PB
10788if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10789 set dummy gfortran
2693c0b0 10790 if test $build = $target ; then
e8b05380 10791 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10792 else
e8b05380
PB
10793 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10794 fi
1c00b503
PB
10795else
10796 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10797fi
10798
10799
10800
632e2a07
ILT
10801if test -n "$GOC_FOR_TARGET"; then
10802 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10803elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10804 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10805fi
10806
10807if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10808 for ncn_progname in gccgo; do
10809 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10810set dummy ${ncn_progname}; ac_word=$2
10811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10812$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10813if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
10814 $as_echo_n "(cached) " >&6
10815else
10816 if test -n "$GOC_FOR_TARGET"; then
10817 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10818else
10819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820for as_dir in $PATH
10821do
10822 IFS=$as_save_IFS
10823 test -z "$as_dir" && as_dir=.
10824 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
10826 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10828 break 2
10829 fi
10830done
10831 done
10832IFS=$as_save_IFS
10833
10834fi
10835fi
10836GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10837if test -n "$GOC_FOR_TARGET"; then
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10839$as_echo "$GOC_FOR_TARGET" >&6; }
10840else
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10842$as_echo "no" >&6; }
10843fi
10844
10845
10846 done
10847fi
10848
10849if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10850 for ncn_progname in gccgo; do
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10852$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10853 if test -x $with_build_time_tools/${ncn_progname}; then
10854 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10856$as_echo "yes" >&6; }
10857 break
10858 else
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860$as_echo "no" >&6; }
10861 fi
10862 done
10863fi
10864
10865if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10866 for ncn_progname in gccgo; do
10867 if test -n "$ncn_target_tool_prefix"; then
10868 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10869set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10871$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10872if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
10873 $as_echo_n "(cached) " >&6
10874else
10875 if test -n "$GOC_FOR_TARGET"; then
10876 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10877else
10878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10879for as_dir in $PATH
10880do
10881 IFS=$as_save_IFS
10882 test -z "$as_dir" && as_dir=.
10883 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
10885 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10887 break 2
10888 fi
10889done
10890 done
10891IFS=$as_save_IFS
10892
10893fi
10894fi
10895GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10896if test -n "$GOC_FOR_TARGET"; then
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10898$as_echo "$GOC_FOR_TARGET" >&6; }
10899else
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901$as_echo "no" >&6; }
10902fi
10903
10904
10905 fi
10906 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10907 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10908set dummy ${ncn_progname}; ac_word=$2
10909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10910$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10911if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
10912 $as_echo_n "(cached) " >&6
10913else
10914 if test -n "$GOC_FOR_TARGET"; then
10915 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10916else
10917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10918for as_dir in $PATH
10919do
10920 IFS=$as_save_IFS
10921 test -z "$as_dir" && as_dir=.
10922 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
10924 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10926 break 2
10927 fi
10928done
10929 done
10930IFS=$as_save_IFS
10931
10932fi
10933fi
10934GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10935if test -n "$GOC_FOR_TARGET"; then
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10937$as_echo "$GOC_FOR_TARGET" >&6; }
10938else
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10940$as_echo "no" >&6; }
10941fi
10942
10943
10944 fi
10945 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10946 done
10947fi
10948
10949if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10950 set dummy gccgo
10951 if test $build = $target ; then
10952 GOC_FOR_TARGET="$2"
10953 else
10954 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10955 fi
10956else
10957 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10958fi
10959
10960
10961
b4c522fa
IB
10962if test -n "$GDC_FOR_TARGET"; then
10963 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
10964elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
10965 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
10966fi
10967
10968if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
10969 for ncn_progname in gdc; do
10970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10971set dummy ${ncn_progname}; ac_word=$2
10972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10973$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10974if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
10975 $as_echo_n "(cached) " >&6
10976else
10977 if test -n "$GDC_FOR_TARGET"; then
10978 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
10979else
10980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981for as_dir in $PATH
10982do
10983 IFS=$as_save_IFS
10984 test -z "$as_dir" && as_dir=.
10985 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
10987 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
10988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10989 break 2
10990 fi
10991done
10992 done
10993IFS=$as_save_IFS
10994
10995fi
10996fi
10997GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
10998if test -n "$GDC_FOR_TARGET"; then
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11000$as_echo "$GDC_FOR_TARGET" >&6; }
11001else
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11003$as_echo "no" >&6; }
11004fi
11005
11006
11007 done
11008fi
11009
11010if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11011 for ncn_progname in gdc; do
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11013$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11014 if test -x $with_build_time_tools/${ncn_progname}; then
11015 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11017$as_echo "yes" >&6; }
11018 break
11019 else
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021$as_echo "no" >&6; }
11022 fi
11023 done
11024fi
11025
11026if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
11027 for ncn_progname in gdc; do
11028 if test -n "$ncn_target_tool_prefix"; then
11029 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11030set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11033if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
11034 $as_echo_n "(cached) " >&6
11035else
11036 if test -n "$GDC_FOR_TARGET"; then
11037 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11038else
11039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11040for as_dir in $PATH
11041do
11042 IFS=$as_save_IFS
11043 test -z "$as_dir" && as_dir=.
11044 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
11046 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11048 break 2
11049 fi
11050done
11051 done
11052IFS=$as_save_IFS
11053
11054fi
11055fi
11056GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11057if test -n "$GDC_FOR_TARGET"; then
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11059$as_echo "$GDC_FOR_TARGET" >&6; }
11060else
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062$as_echo "no" >&6; }
11063fi
11064
11065
11066 fi
11067 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
11068 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11069set dummy ${ncn_progname}; ac_word=$2
11070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11071$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11072if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
11073 $as_echo_n "(cached) " >&6
11074else
11075 if test -n "$GDC_FOR_TARGET"; then
11076 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11077else
11078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11079for as_dir in $PATH
11080do
11081 IFS=$as_save_IFS
11082 test -z "$as_dir" && as_dir=.
11083 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
11085 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11087 break 2
11088 fi
11089done
11090 done
11091IFS=$as_save_IFS
11092
11093fi
11094fi
11095GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11096if test -n "$GDC_FOR_TARGET"; then
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11098$as_echo "$GDC_FOR_TARGET" >&6; }
11099else
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11101$as_echo "no" >&6; }
11102fi
11103
11104
11105 fi
11106 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
11107 done
11108fi
11109
11110if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
11111 set dummy gdc
11112 if test $build = $target ; then
11113 GDC_FOR_TARGET="$2"
11114 else
11115 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11116 fi
11117else
11118 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
11119fi
11120
11121
11122
e8b05380
PB
11123cat > conftest.c << \EOF
11124#ifdef __GNUC__
11125 gcc_yay;
11126#endif
11127EOF
11128if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11129 have_gcc_for_target=yes
11130else
11131 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11132 have_gcc_for_target=no
11133fi
11134rm conftest.c
11135
11136
11137
11138
11139if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11140 if test -n "$with_build_time_tools"; then
5213506e
RW
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11142$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11143 if test -x $with_build_time_tools/ar; then
11144 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11145 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11147$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 11148 else
5213506e
RW
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11150$as_echo "no" >&6; }
d1f8db0c 11151 fi
e8b05380
PB
11152 elif test $build != $host && test $have_gcc_for_target = yes; then
11153 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
11154 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11155 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
11156 fi
11157fi
3e19841a 11158if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11159 # Extract the first word of "ar", so it can be a program name with args.
11160set dummy ar; ac_word=$2
5213506e
RW
11161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11162$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11163if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
5213506e 11164 $as_echo_n "(cached) " >&6
e8b05380 11165else
1c710c3c
DJ
11166 case $AR_FOR_TARGET in
11167 [\\/]* | ?:[\\/]*)
e8b05380
PB
11168 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11169 ;;
e8b05380 11170 *)
1c710c3c
DJ
11171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11172for as_dir in $gcc_cv_tool_dirs
11173do
11174 IFS=$as_save_IFS
11175 test -z "$as_dir" && as_dir=.
5213506e 11176 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11178 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11180 break 2
11181 fi
11182done
5213506e
RW
11183 done
11184IFS=$as_save_IFS
1c710c3c 11185
e8b05380
PB
11186 ;;
11187esac
11188fi
1c710c3c 11189AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 11190if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11192$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11193else
5213506e
RW
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195$as_echo "no" >&6; }
4de997d1
PB
11196fi
11197
5213506e 11198
e8b05380
PB
11199fi
11200if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
11201
11202
11203if test -n "$AR_FOR_TARGET"; then
11204 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11205elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11206 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11207fi
11208
11209if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11210 for ncn_progname in ar; do
11211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11212set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11214$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11215if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11216 $as_echo_n "(cached) " >&6
278a7a38
AO
11217else
11218 if test -n "$AR_FOR_TARGET"; then
11219 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11220else
11221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222for as_dir in $PATH
11223do
11224 IFS=$as_save_IFS
11225 test -z "$as_dir" && as_dir=.
5213506e 11226 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11228 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11230 break 2
11231 fi
11232done
5213506e
RW
11233 done
11234IFS=$as_save_IFS
278a7a38
AO
11235
11236fi
11237fi
11238AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11239if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11241$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 11242else
5213506e
RW
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11244$as_echo "no" >&6; }
278a7a38
AO
11245fi
11246
5213506e 11247
278a7a38
AO
11248 done
11249fi
11250
11251if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11252 for ncn_progname in ar; do
5213506e
RW
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11254$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11255 if test -x $with_build_time_tools/${ncn_progname}; then
11256 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11258$as_echo "yes" >&6; }
e8b05380
PB
11259 break
11260 else
5213506e
RW
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262$as_echo "no" >&6; }
e8b05380
PB
11263 fi
11264 done
11265fi
11266
11267if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11268 for ncn_progname in ar; do
11269 if test -n "$ncn_target_tool_prefix"; then
11270 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11271set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11273$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11274if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11275 $as_echo_n "(cached) " >&6
4de997d1 11276else
e8b05380
PB
11277 if test -n "$AR_FOR_TARGET"; then
11278 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 11279else
1c710c3c
DJ
11280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11281for as_dir in $PATH
11282do
11283 IFS=$as_save_IFS
11284 test -z "$as_dir" && as_dir=.
5213506e 11285 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11287 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11289 break 2
11290 fi
11291done
5213506e
RW
11292 done
11293IFS=$as_save_IFS
1c710c3c 11294
4de997d1
PB
11295fi
11296fi
1c710c3c 11297AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11298if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11300$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 11301else
5213506e
RW
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11303$as_echo "no" >&6; }
4de997d1
PB
11304fi
11305
5213506e 11306
e8b05380
PB
11307 fi
11308 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11309 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11310set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11312$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11313if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11314 $as_echo_n "(cached) " >&6
e8b05380
PB
11315else
11316 if test -n "$AR_FOR_TARGET"; then
11317 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11318else
1c710c3c
DJ
11319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11320for as_dir in $PATH
11321do
11322 IFS=$as_save_IFS
11323 test -z "$as_dir" && as_dir=.
5213506e 11324 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11326 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11328 break 2
11329 fi
11330done
5213506e
RW
11331 done
11332IFS=$as_save_IFS
1c710c3c 11333
e8b05380
PB
11334fi
11335fi
1c710c3c 11336AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11337if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11339$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11340else
5213506e
RW
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11342$as_echo "no" >&6; }
e8b05380 11343fi
1c710c3c 11344
5213506e 11345
e8b05380
PB
11346 fi
11347 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11348 done
11349fi
1c710c3c 11350
e8b05380
PB
11351if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11352 set dummy ar
11353 if test $build = $target ; then
11354 AR_FOR_TARGET="$2"
11355 else
11356 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11357 fi
1c00b503
PB
11358else
11359 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11360fi
11361
d1f8db0c
PB
11362else
11363 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11364fi
11365
11366
11367
11368
11369if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11370 if test -n "$with_build_time_tools"; then
5213506e
RW
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11372$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11373 if test -x $with_build_time_tools/as; then
11374 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11375 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11377$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11378 else
5213506e
RW
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11380$as_echo "no" >&6; }
d1f8db0c 11381 fi
e8b05380
PB
11382 elif test $build != $host && test $have_gcc_for_target = yes; then
11383 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11384 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11385 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11386 fi
11387fi
3e19841a 11388if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11389 # Extract the first word of "as", so it can be a program name with args.
11390set dummy as; ac_word=$2
5213506e
RW
11391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11392$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11393if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
5213506e 11394 $as_echo_n "(cached) " >&6
e8b05380 11395else
1c710c3c
DJ
11396 case $AS_FOR_TARGET in
11397 [\\/]* | ?:[\\/]*)
e8b05380
PB
11398 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11399 ;;
e8b05380 11400 *)
1c710c3c
DJ
11401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11402for as_dir in $gcc_cv_tool_dirs
11403do
11404 IFS=$as_save_IFS
11405 test -z "$as_dir" && as_dir=.
5213506e 11406 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11408 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11410 break 2
11411 fi
11412done
5213506e
RW
11413 done
11414IFS=$as_save_IFS
1c710c3c 11415
e8b05380
PB
11416 ;;
11417esac
11418fi
1c710c3c 11419AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11420if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11422$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11423else
5213506e
RW
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11425$as_echo "no" >&6; }
e8b05380
PB
11426fi
11427
5213506e 11428
e8b05380
PB
11429fi
11430if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11431
11432
11433if test -n "$AS_FOR_TARGET"; then
11434 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11435elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11436 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11437fi
11438
11439if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11440 for ncn_progname in as; do
11441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11442set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11444$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11445if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11446 $as_echo_n "(cached) " >&6
278a7a38
AO
11447else
11448 if test -n "$AS_FOR_TARGET"; then
11449 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11450else
11451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11452for as_dir in $PATH
11453do
11454 IFS=$as_save_IFS
11455 test -z "$as_dir" && as_dir=.
5213506e 11456 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11458 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11460 break 2
11461 fi
11462done
5213506e
RW
11463 done
11464IFS=$as_save_IFS
278a7a38
AO
11465
11466fi
11467fi
11468AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11469if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11471$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11472else
5213506e
RW
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474$as_echo "no" >&6; }
278a7a38
AO
11475fi
11476
5213506e 11477
278a7a38
AO
11478 done
11479fi
11480
11481if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11482 for ncn_progname in as; do
5213506e
RW
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11484$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11485 if test -x $with_build_time_tools/${ncn_progname}; then
11486 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11488$as_echo "yes" >&6; }
e8b05380
PB
11489 break
11490 else
5213506e
RW
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492$as_echo "no" >&6; }
e8b05380
PB
11493 fi
11494 done
11495fi
11496
11497if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11498 for ncn_progname in as; do
11499 if test -n "$ncn_target_tool_prefix"; then
11500 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11501set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11503$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11504if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11505 $as_echo_n "(cached) " >&6
e8b05380
PB
11506else
11507 if test -n "$AS_FOR_TARGET"; then
11508 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11509else
1c710c3c
DJ
11510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11511for as_dir in $PATH
11512do
11513 IFS=$as_save_IFS
11514 test -z "$as_dir" && as_dir=.
5213506e 11515 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11517 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11519 break 2
11520 fi
11521done
5213506e
RW
11522 done
11523IFS=$as_save_IFS
1c710c3c 11524
e8b05380
PB
11525fi
11526fi
1c710c3c 11527AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11528if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11530$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11531else
5213506e
RW
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11533$as_echo "no" >&6; }
e8b05380
PB
11534fi
11535
5213506e 11536
e8b05380
PB
11537 fi
11538 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11539 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11540set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11542$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11543if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11544 $as_echo_n "(cached) " >&6
4de997d1 11545else
e8b05380
PB
11546 if test -n "$AS_FOR_TARGET"; then
11547 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11548else
1c710c3c
DJ
11549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11550for as_dir in $PATH
11551do
11552 IFS=$as_save_IFS
11553 test -z "$as_dir" && as_dir=.
5213506e 11554 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11556 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11558 break 2
11559 fi
11560done
5213506e
RW
11561 done
11562IFS=$as_save_IFS
1c710c3c 11563
4de997d1
PB
11564fi
11565fi
1c710c3c 11566AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11567if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11569$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11570else
5213506e
RW
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11572$as_echo "no" >&6; }
4de997d1 11573fi
1c710c3c 11574
5213506e 11575
e8b05380
PB
11576 fi
11577 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11578 done
11579fi
1c710c3c 11580
e8b05380
PB
11581if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11582 set dummy as
11583 if test $build = $target ; then
11584 AS_FOR_TARGET="$2"
11585 else
11586 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11587 fi
1c00b503
PB
11588else
11589 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11590fi
2693c0b0 11591
d1f8db0c
PB
11592else
11593 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11594fi
11595
e8b05380
PB
11596
11597
11598
11599if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11600 if test -n "$with_build_time_tools"; then
5213506e
RW
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11602$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11603 if test -x $with_build_time_tools/dlltool; then
11604 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11605 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11607$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11608 else
5213506e
RW
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11610$as_echo "no" >&6; }
d1f8db0c 11611 fi
e8b05380
PB
11612 elif test $build != $host && test $have_gcc_for_target = yes; then
11613 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11614 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11615 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11616 fi
11617fi
3e19841a 11618if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11619 # Extract the first word of "dlltool", so it can be a program name with args.
11620set dummy dlltool; ac_word=$2
5213506e
RW
11621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11622$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11623if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11624 $as_echo_n "(cached) " >&6
4de997d1 11625else
1c710c3c
DJ
11626 case $DLLTOOL_FOR_TARGET in
11627 [\\/]* | ?:[\\/]*)
e8b05380
PB
11628 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11629 ;;
e8b05380 11630 *)
1c710c3c
DJ
11631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632for as_dir in $gcc_cv_tool_dirs
11633do
11634 IFS=$as_save_IFS
11635 test -z "$as_dir" && as_dir=.
5213506e 11636 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11638 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11640 break 2
11641 fi
11642done
5213506e
RW
11643 done
11644IFS=$as_save_IFS
1c710c3c 11645
e8b05380
PB
11646 ;;
11647esac
4de997d1 11648fi
1c710c3c 11649DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11650if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11652$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11653else
5213506e
RW
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655$as_echo "no" >&6; }
4de997d1
PB
11656fi
11657
5213506e 11658
e8b05380
PB
11659fi
11660if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11661
11662
11663if test -n "$DLLTOOL_FOR_TARGET"; then
11664 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11665elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11666 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11667fi
11668
11669if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11670 for ncn_progname in dlltool; do
11671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11672set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11674$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11675if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11676 $as_echo_n "(cached) " >&6
278a7a38
AO
11677else
11678 if test -n "$DLLTOOL_FOR_TARGET"; then
11679 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11680else
11681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682for as_dir in $PATH
11683do
11684 IFS=$as_save_IFS
11685 test -z "$as_dir" && as_dir=.
5213506e 11686 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11688 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11690 break 2
11691 fi
11692done
5213506e
RW
11693 done
11694IFS=$as_save_IFS
278a7a38
AO
11695
11696fi
11697fi
11698DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11699if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11701$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11702else
5213506e
RW
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11704$as_echo "no" >&6; }
278a7a38
AO
11705fi
11706
5213506e 11707
278a7a38
AO
11708 done
11709fi
11710
11711if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11712 for ncn_progname in dlltool; do
5213506e
RW
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11714$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11715 if test -x $with_build_time_tools/${ncn_progname}; then
11716 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11718$as_echo "yes" >&6; }
e8b05380
PB
11719 break
11720 else
5213506e
RW
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11722$as_echo "no" >&6; }
e8b05380
PB
11723 fi
11724 done
11725fi
11726
11727if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11728 for ncn_progname in dlltool; do
11729 if test -n "$ncn_target_tool_prefix"; then
11730 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11731set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11733$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11734if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11735 $as_echo_n "(cached) " >&6
4de997d1 11736else
e8b05380
PB
11737 if test -n "$DLLTOOL_FOR_TARGET"; then
11738 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11739else
1c710c3c
DJ
11740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741for as_dir in $PATH
11742do
11743 IFS=$as_save_IFS
11744 test -z "$as_dir" && as_dir=.
5213506e 11745 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11747 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11749 break 2
11750 fi
11751done
5213506e
RW
11752 done
11753IFS=$as_save_IFS
1c710c3c 11754
4de997d1
PB
11755fi
11756fi
1c710c3c 11757DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11758if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11760$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11761else
5213506e
RW
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763$as_echo "no" >&6; }
4de997d1 11764fi
4de997d1 11765
5213506e 11766
e8b05380
PB
11767 fi
11768 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11769 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11770set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11772$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11773if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11774 $as_echo_n "(cached) " >&6
4de997d1 11775else
e8b05380
PB
11776 if test -n "$DLLTOOL_FOR_TARGET"; then
11777 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11778else
1c710c3c
DJ
11779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11780for as_dir in $PATH
11781do
11782 IFS=$as_save_IFS
11783 test -z "$as_dir" && as_dir=.
5213506e 11784 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11786 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11788 break 2
11789 fi
11790done
5213506e
RW
11791 done
11792IFS=$as_save_IFS
1c710c3c 11793
4de997d1
PB
11794fi
11795fi
1c710c3c 11796DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11797if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11799$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11800else
5213506e
RW
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11802$as_echo "no" >&6; }
4de997d1 11803fi
1c710c3c 11804
5213506e 11805
e8b05380
PB
11806 fi
11807 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11808 done
11809fi
1c710c3c 11810
e8b05380
PB
11811if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11812 set dummy dlltool
11813 if test $build = $target ; then
11814 DLLTOOL_FOR_TARGET="$2"
11815 else
11816 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11817 fi
1c00b503
PB
11818else
11819 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11820fi
11821
d1f8db0c
PB
11822else
11823 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11824fi
11825
4de997d1 11826
e8b05380
PB
11827
11828
11829if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11830 if test -n "$with_build_time_tools"; then
5213506e
RW
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11832$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11833 if test -x $with_build_time_tools/ld; then
11834 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11835 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11837$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11838 else
5213506e
RW
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840$as_echo "no" >&6; }
d1f8db0c 11841 fi
e8b05380
PB
11842 elif test $build != $host && test $have_gcc_for_target = yes; then
11843 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11844 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11845 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11846 fi
e8b05380 11847fi
3e19841a 11848if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11849 # Extract the first word of "ld", so it can be a program name with args.
11850set dummy ld; ac_word=$2
5213506e
RW
11851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11852$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11853if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
5213506e 11854 $as_echo_n "(cached) " >&6
4de997d1 11855else
1c710c3c
DJ
11856 case $LD_FOR_TARGET in
11857 [\\/]* | ?:[\\/]*)
e8b05380
PB
11858 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11859 ;;
e8b05380 11860 *)
1c710c3c
DJ
11861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862for as_dir in $gcc_cv_tool_dirs
11863do
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
5213506e 11866 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11868 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11870 break 2
11871 fi
11872done
5213506e
RW
11873 done
11874IFS=$as_save_IFS
1c710c3c 11875
e8b05380
PB
11876 ;;
11877esac
4de997d1 11878fi
1c710c3c 11879LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11880if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11882$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11883else
5213506e
RW
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885$as_echo "no" >&6; }
4de997d1 11886fi
2693c0b0 11887
5213506e 11888
e8b05380
PB
11889fi
11890if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11891
11892
11893if test -n "$LD_FOR_TARGET"; then
11894 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11895elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11896 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11897fi
11898
11899if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11900 for ncn_progname in ld; do
11901 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11902set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11904$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11905if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 11906 $as_echo_n "(cached) " >&6
278a7a38
AO
11907else
11908 if test -n "$LD_FOR_TARGET"; then
11909 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11910else
11911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11912for as_dir in $PATH
11913do
11914 IFS=$as_save_IFS
11915 test -z "$as_dir" && as_dir=.
5213506e 11916 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11918 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11920 break 2
11921 fi
11922done
5213506e
RW
11923 done
11924IFS=$as_save_IFS
278a7a38
AO
11925
11926fi
11927fi
11928LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11929if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11931$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11932else
5213506e
RW
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934$as_echo "no" >&6; }
278a7a38
AO
11935fi
11936
5213506e 11937
278a7a38
AO
11938 done
11939fi
11940
11941if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11942 for ncn_progname in ld; do
5213506e
RW
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11944$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11945 if test -x $with_build_time_tools/${ncn_progname}; then
11946 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11948$as_echo "yes" >&6; }
e8b05380
PB
11949 break
11950 else
5213506e
RW
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11952$as_echo "no" >&6; }
e8b05380
PB
11953 fi
11954 done
ca9f4b81
AO
11955fi
11956
e8b05380
PB
11957if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11958 for ncn_progname in ld; do
11959 if test -n "$ncn_target_tool_prefix"; then
11960 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11961set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11963$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11964if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 11965 $as_echo_n "(cached) " >&6
ca9f4b81 11966else
4de997d1
PB
11967 if test -n "$LD_FOR_TARGET"; then
11968 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11969else
1c710c3c
DJ
11970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11971for as_dir in $PATH
11972do
11973 IFS=$as_save_IFS
11974 test -z "$as_dir" && as_dir=.
5213506e 11975 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11977 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11979 break 2
11980 fi
11981done
5213506e
RW
11982 done
11983IFS=$as_save_IFS
1c710c3c 11984
ca9f4b81
AO
11985fi
11986fi
1c710c3c 11987LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11988if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11990$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11991else
5213506e
RW
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11993$as_echo "no" >&6; }
ca9f4b81
AO
11994fi
11995
5213506e 11996
e8b05380
PB
11997 fi
11998 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11999 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12000set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12002$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12003if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 12004 $as_echo_n "(cached) " >&6
ca9f4b81 12005else
2693c0b0
PB
12006 if test -n "$LD_FOR_TARGET"; then
12007 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 12008else
1c710c3c
DJ
12009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12010for as_dir in $PATH
12011do
12012 IFS=$as_save_IFS
12013 test -z "$as_dir" && as_dir=.
5213506e 12014 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12016 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 12017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12018 break 2
12019 fi
12020done
5213506e
RW
12021 done
12022IFS=$as_save_IFS
1c710c3c 12023
ca9f4b81
AO
12024fi
12025fi
1c710c3c 12026LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 12027if test -n "$LD_FOR_TARGET"; then
5213506e
RW
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12029$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 12030else
5213506e
RW
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032$as_echo "no" >&6; }
ca9f4b81 12033fi
1c710c3c 12034
5213506e 12035
e8b05380
PB
12036 fi
12037 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12038 done
12039fi
1c710c3c 12040
2693c0b0
PB
12041if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12042 set dummy ld
12043 if test $build = $target ; then
12044 LD_FOR_TARGET="$2"
ca9f4b81 12045 else
2693c0b0 12046 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12047 fi
1c00b503
PB
12048else
12049 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
12050fi
12051
d1f8db0c
PB
12052else
12053 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
12054fi
12055
12056
12057
12058
12059if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12060 if test -n "$with_build_time_tools"; then
5213506e
RW
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12062$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12063 if test -x $with_build_time_tools/lipo; then
12064 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12065 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12067$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 12068 else
5213506e
RW
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12070$as_echo "no" >&6; }
d1f8db0c 12071 fi
e8b05380
PB
12072 elif test $build != $host && test $have_gcc_for_target = yes; then
12073 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
12074 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12075 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
12076 fi
12077fi
278a7a38
AO
12078if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12079 # Extract the first word of "lipo", so it can be a program name with args.
12080set dummy lipo; ac_word=$2
5213506e
RW
12081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12082$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12083if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
5213506e 12084 $as_echo_n "(cached) " >&6
278a7a38
AO
12085else
12086 case $LIPO_FOR_TARGET in
12087 [\\/]* | ?:[\\/]*)
12088 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12089 ;;
12090 *)
12091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092for as_dir in $gcc_cv_tool_dirs
12093do
12094 IFS=$as_save_IFS
12095 test -z "$as_dir" && as_dir=.
5213506e 12096 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12098 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12100 break 2
12101 fi
12102done
5213506e
RW
12103 done
12104IFS=$as_save_IFS
278a7a38
AO
12105
12106 ;;
12107esac
12108fi
12109LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 12110if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12112$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 12113else
5213506e
RW
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115$as_echo "no" >&6; }
278a7a38
AO
12116fi
12117
5213506e 12118
278a7a38
AO
12119fi
12120if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12121
12122
12123if test -n "$LIPO_FOR_TARGET"; then
12124 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12125elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12126 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12127fi
12128
12129if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12130 for ncn_progname in lipo; do
12131 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12132set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12134$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12135if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12136 $as_echo_n "(cached) " >&6
e8b05380 12137else
278a7a38
AO
12138 if test -n "$LIPO_FOR_TARGET"; then
12139 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12140else
12141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12142for as_dir in $PATH
1c710c3c
DJ
12143do
12144 IFS=$as_save_IFS
12145 test -z "$as_dir" && as_dir=.
5213506e 12146 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12148 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12150 break 2
12151 fi
12152done
5213506e
RW
12153 done
12154IFS=$as_save_IFS
1c710c3c 12155
e8b05380 12156fi
278a7a38
AO
12157fi
12158LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 12159if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12161$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 12162else
5213506e
RW
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164$as_echo "no" >&6; }
e8b05380
PB
12165fi
12166
5213506e 12167
278a7a38 12168 done
e8b05380 12169fi
278a7a38
AO
12170
12171if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12172 for ncn_progname in lipo; do
5213506e
RW
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12174$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12175 if test -x $with_build_time_tools/${ncn_progname}; then
12176 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12178$as_echo "yes" >&6; }
e8b05380
PB
12179 break
12180 else
5213506e
RW
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12182$as_echo "no" >&6; }
e8b05380
PB
12183 fi
12184 done
12185fi
12186
12187if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12188 for ncn_progname in lipo; do
12189 if test -n "$ncn_target_tool_prefix"; then
12190 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12191set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12193$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12194if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12195 $as_echo_n "(cached) " >&6
040b1c5a
GK
12196else
12197 if test -n "$LIPO_FOR_TARGET"; then
12198 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12199else
1c710c3c
DJ
12200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12201for as_dir in $PATH
12202do
12203 IFS=$as_save_IFS
12204 test -z "$as_dir" && as_dir=.
5213506e 12205 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12207 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12209 break 2
12210 fi
12211done
5213506e
RW
12212 done
12213IFS=$as_save_IFS
1c710c3c 12214
040b1c5a
GK
12215fi
12216fi
1c710c3c 12217LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12218if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12220$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12221else
5213506e
RW
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12223$as_echo "no" >&6; }
040b1c5a
GK
12224fi
12225
5213506e 12226
e8b05380
PB
12227 fi
12228 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12229 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12230set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12233if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12234 $as_echo_n "(cached) " >&6
040b1c5a
GK
12235else
12236 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
12237 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12238else
1c710c3c
DJ
12239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240for as_dir in $PATH
12241do
12242 IFS=$as_save_IFS
12243 test -z "$as_dir" && as_dir=.
5213506e 12244 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12246 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12248 break 2
12249 fi
12250done
5213506e
RW
12251 done
12252IFS=$as_save_IFS
1c710c3c 12253
040b1c5a
GK
12254fi
12255fi
1c710c3c 12256LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12257if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12259$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12260else
5213506e
RW
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262$as_echo "no" >&6; }
040b1c5a 12263fi
1c710c3c 12264
5213506e 12265
e8b05380
PB
12266 fi
12267 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12268 done
12269fi
1c710c3c 12270
040b1c5a
GK
12271if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12272 set dummy lipo
12273 if test $build = $target ; then
12274 LIPO_FOR_TARGET="$2"
12275 else
12276 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12277 fi
1c00b503
PB
12278else
12279 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
12280fi
12281
d1f8db0c
PB
12282else
12283 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
12284fi
12285
12286
12287
12288
12289if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12290 if test -n "$with_build_time_tools"; then
5213506e
RW
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12292$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12293 if test -x $with_build_time_tools/nm; then
12294 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12295 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12297$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 12298 else
5213506e
RW
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300$as_echo "no" >&6; }
d1f8db0c 12301 fi
e8b05380
PB
12302 elif test $build != $host && test $have_gcc_for_target = yes; then
12303 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
12304 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12305 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
12306 fi
12307fi
3e19841a 12308if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12309 # Extract the first word of "nm", so it can be a program name with args.
12310set dummy nm; ac_word=$2
5213506e
RW
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12312$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12313if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
5213506e 12314 $as_echo_n "(cached) " >&6
e8b05380 12315else
1c710c3c
DJ
12316 case $NM_FOR_TARGET in
12317 [\\/]* | ?:[\\/]*)
e8b05380
PB
12318 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12319 ;;
e8b05380 12320 *)
1c710c3c
DJ
12321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322for as_dir in $gcc_cv_tool_dirs
12323do
12324 IFS=$as_save_IFS
12325 test -z "$as_dir" && as_dir=.
5213506e 12326 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12328 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12330 break 2
12331 fi
12332done
5213506e
RW
12333 done
12334IFS=$as_save_IFS
1c710c3c 12335
e8b05380
PB
12336 ;;
12337esac
12338fi
1c710c3c 12339NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12340if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12342$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12343else
5213506e
RW
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345$as_echo "no" >&6; }
e8b05380
PB
12346fi
12347
5213506e 12348
e8b05380
PB
12349fi
12350if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12351
12352
12353if test -n "$NM_FOR_TARGET"; then
12354 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12355elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12356 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12357fi
12358
12359if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12360 for ncn_progname in nm; do
12361 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12362set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12364$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12365if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12366 $as_echo_n "(cached) " >&6
278a7a38
AO
12367else
12368 if test -n "$NM_FOR_TARGET"; then
12369 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12370else
12371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372for as_dir in $PATH
12373do
12374 IFS=$as_save_IFS
12375 test -z "$as_dir" && as_dir=.
5213506e 12376 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12378 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12380 break 2
12381 fi
12382done
5213506e
RW
12383 done
12384IFS=$as_save_IFS
278a7a38
AO
12385
12386fi
12387fi
12388NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12389if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12391$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12392else
5213506e
RW
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394$as_echo "no" >&6; }
278a7a38
AO
12395fi
12396
5213506e 12397
278a7a38
AO
12398 done
12399fi
12400
12401if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12402 for ncn_progname in nm; do
5213506e
RW
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12404$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12405 if test -x $with_build_time_tools/${ncn_progname}; then
12406 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12408$as_echo "yes" >&6; }
e8b05380
PB
12409 break
12410 else
5213506e
RW
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12412$as_echo "no" >&6; }
e8b05380
PB
12413 fi
12414 done
12415fi
12416
12417if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12418 for ncn_progname in nm; do
12419 if test -n "$ncn_target_tool_prefix"; then
12420 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12421set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12423$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12424if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12425 $as_echo_n "(cached) " >&6
ca9f4b81 12426else
4de997d1
PB
12427 if test -n "$NM_FOR_TARGET"; then
12428 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12429else
1c710c3c
DJ
12430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12431for as_dir in $PATH
12432do
12433 IFS=$as_save_IFS
12434 test -z "$as_dir" && as_dir=.
5213506e 12435 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12437 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12439 break 2
12440 fi
12441done
5213506e
RW
12442 done
12443IFS=$as_save_IFS
1c710c3c 12444
ca9f4b81
AO
12445fi
12446fi
1c710c3c 12447NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12448if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12450$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12451else
5213506e
RW
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453$as_echo "no" >&6; }
ca9f4b81
AO
12454fi
12455
5213506e 12456
e8b05380
PB
12457 fi
12458 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12459 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12460set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12462$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12463if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12464 $as_echo_n "(cached) " >&6
ca9f4b81 12465else
2693c0b0
PB
12466 if test -n "$NM_FOR_TARGET"; then
12467 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12468else
1c710c3c
DJ
12469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12470for as_dir in $PATH
12471do
12472 IFS=$as_save_IFS
12473 test -z "$as_dir" && as_dir=.
5213506e 12474 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12476 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12478 break 2
12479 fi
12480done
5213506e
RW
12481 done
12482IFS=$as_save_IFS
1c710c3c 12483
ca9f4b81
AO
12484fi
12485fi
1c710c3c 12486NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12487if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12489$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12490else
5213506e
RW
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12492$as_echo "no" >&6; }
ca9f4b81 12493fi
1c710c3c 12494
5213506e 12495
e8b05380
PB
12496 fi
12497 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12498 done
12499fi
1c710c3c 12500
2693c0b0
PB
12501if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12502 set dummy nm
12503 if test $build = $target ; then
12504 NM_FOR_TARGET="$2"
ca9f4b81 12505 else
2693c0b0 12506 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12507 fi
1c00b503
PB
12508else
12509 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12510fi
12511
d1f8db0c
PB
12512else
12513 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12514fi
12515
12516
12517
12518
9bccfdf5
AP
12519if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12520 if test -n "$with_build_time_tools"; then
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12522$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12523 if test -x $with_build_time_tools/objcopy; then
12524 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12525 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12527$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12528 else
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12530$as_echo "no" >&6; }
12531 fi
12532 elif test $build != $host && test $have_gcc_for_target = yes; then
12533 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12534 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12535 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12536 fi
12537fi
12538if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12539 # Extract the first word of "objcopy", so it can be a program name with args.
12540set dummy objcopy; ac_word=$2
12541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12542$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12543if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12544 $as_echo_n "(cached) " >&6
12545else
12546 case $OBJCOPY_FOR_TARGET in
12547 [\\/]* | ?:[\\/]*)
12548 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12549 ;;
12550 *)
12551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552for as_dir in $gcc_cv_tool_dirs
12553do
12554 IFS=$as_save_IFS
12555 test -z "$as_dir" && as_dir=.
12556 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12558 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12560 break 2
12561 fi
12562done
12563 done
12564IFS=$as_save_IFS
12565
12566 ;;
12567esac
12568fi
12569OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12570if test -n "$OBJCOPY_FOR_TARGET"; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12572$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12573else
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575$as_echo "no" >&6; }
12576fi
12577
12578
12579fi
12580if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12581
12582
12583if test -n "$OBJCOPY_FOR_TARGET"; then
12584 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12585elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12586 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12587fi
12588
12589if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12590 for ncn_progname in objcopy; do
12591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12592set dummy ${ncn_progname}; ac_word=$2
12593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12594$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12595if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12596 $as_echo_n "(cached) " >&6
12597else
12598 if test -n "$OBJCOPY_FOR_TARGET"; then
12599 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12600else
12601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12602for as_dir in $PATH
12603do
12604 IFS=$as_save_IFS
12605 test -z "$as_dir" && as_dir=.
12606 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12608 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12610 break 2
12611 fi
12612done
12613 done
12614IFS=$as_save_IFS
12615
12616fi
12617fi
12618OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12619if test -n "$OBJCOPY_FOR_TARGET"; then
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12621$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12622else
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624$as_echo "no" >&6; }
12625fi
12626
12627
12628 done
12629fi
12630
12631if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12632 for ncn_progname in objcopy; do
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12634$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12635 if test -x $with_build_time_tools/${ncn_progname}; then
12636 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12638$as_echo "yes" >&6; }
12639 break
12640 else
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12642$as_echo "no" >&6; }
12643 fi
12644 done
12645fi
12646
12647if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12648 for ncn_progname in objcopy; do
12649 if test -n "$ncn_target_tool_prefix"; then
12650 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12651set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12653$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12654if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12655 $as_echo_n "(cached) " >&6
12656else
12657 if test -n "$OBJCOPY_FOR_TARGET"; then
12658 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12659else
12660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12661for as_dir in $PATH
12662do
12663 IFS=$as_save_IFS
12664 test -z "$as_dir" && as_dir=.
12665 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12667 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12669 break 2
12670 fi
12671done
12672 done
12673IFS=$as_save_IFS
12674
12675fi
12676fi
12677OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12678if test -n "$OBJCOPY_FOR_TARGET"; then
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12680$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12681else
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12683$as_echo "no" >&6; }
12684fi
12685
12686
12687 fi
12688 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12689 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12690set dummy ${ncn_progname}; ac_word=$2
12691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12692$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12693if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12694 $as_echo_n "(cached) " >&6
12695else
12696 if test -n "$OBJCOPY_FOR_TARGET"; then
12697 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12698else
12699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12700for as_dir in $PATH
12701do
12702 IFS=$as_save_IFS
12703 test -z "$as_dir" && as_dir=.
12704 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12706 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12708 break 2
12709 fi
12710done
12711 done
12712IFS=$as_save_IFS
12713
12714fi
12715fi
12716OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12717if test -n "$OBJCOPY_FOR_TARGET"; then
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12719$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12720else
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722$as_echo "no" >&6; }
12723fi
12724
12725
12726 fi
12727 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12728 done
12729fi
12730
12731if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12732 set dummy objcopy
12733 if test $build = $target ; then
12734 OBJCOPY_FOR_TARGET="$2"
12735 else
12736 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12737 fi
12738else
12739 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12740fi
12741
12742else
12743 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12744fi
12745
12746
12747
12748
e8b05380
PB
12749if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12750 if test -n "$with_build_time_tools"; then
5213506e
RW
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12752$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12753 if test -x $with_build_time_tools/objdump; then
12754 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12755 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12757$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12758 else
5213506e
RW
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760$as_echo "no" >&6; }
d1f8db0c 12761 fi
e8b05380
PB
12762 elif test $build != $host && test $have_gcc_for_target = yes; then
12763 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12764 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12765 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12766 fi
12767fi
3e19841a 12768if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12769 # Extract the first word of "objdump", so it can be a program name with args.
12770set dummy objdump; ac_word=$2
5213506e
RW
12771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12772$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12773if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12774 $as_echo_n "(cached) " >&6
e8b05380 12775else
1c710c3c
DJ
12776 case $OBJDUMP_FOR_TARGET in
12777 [\\/]* | ?:[\\/]*)
e8b05380
PB
12778 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12779 ;;
e8b05380 12780 *)
1c710c3c
DJ
12781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782for as_dir in $gcc_cv_tool_dirs
12783do
12784 IFS=$as_save_IFS
12785 test -z "$as_dir" && as_dir=.
5213506e 12786 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12788 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12790 break 2
12791 fi
12792done
5213506e
RW
12793 done
12794IFS=$as_save_IFS
1c710c3c 12795
e8b05380
PB
12796 ;;
12797esac
12798fi
1c710c3c 12799OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12800if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12802$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12803else
5213506e
RW
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805$as_echo "no" >&6; }
e8b05380
PB
12806fi
12807
5213506e 12808
e8b05380
PB
12809fi
12810if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12811
12812
12813if test -n "$OBJDUMP_FOR_TARGET"; then
12814 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12815elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12816 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12817fi
12818
12819if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12820 for ncn_progname in objdump; do
12821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12822set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12824$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12825if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12826 $as_echo_n "(cached) " >&6
278a7a38
AO
12827else
12828 if test -n "$OBJDUMP_FOR_TARGET"; then
12829 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12830else
12831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832for as_dir in $PATH
12833do
12834 IFS=$as_save_IFS
12835 test -z "$as_dir" && as_dir=.
5213506e 12836 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12838 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12840 break 2
12841 fi
12842done
5213506e
RW
12843 done
12844IFS=$as_save_IFS
278a7a38
AO
12845
12846fi
12847fi
12848OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12849if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12851$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12852else
5213506e
RW
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12854$as_echo "no" >&6; }
278a7a38
AO
12855fi
12856
5213506e 12857
278a7a38
AO
12858 done
12859fi
12860
12861if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12862 for ncn_progname in objdump; do
5213506e
RW
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12864$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12865 if test -x $with_build_time_tools/${ncn_progname}; then
12866 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12868$as_echo "yes" >&6; }
e8b05380
PB
12869 break
12870 else
5213506e
RW
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12872$as_echo "no" >&6; }
e8b05380
PB
12873 fi
12874 done
12875fi
12876
12877if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12878 for ncn_progname in objdump; do
12879 if test -n "$ncn_target_tool_prefix"; then
12880 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12881set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12883$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12884if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12885 $as_echo_n "(cached) " >&6
d739199a
DJ
12886else
12887 if test -n "$OBJDUMP_FOR_TARGET"; then
12888 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12889else
1c710c3c
DJ
12890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12891for as_dir in $PATH
12892do
12893 IFS=$as_save_IFS
12894 test -z "$as_dir" && as_dir=.
5213506e 12895 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12897 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12899 break 2
12900 fi
12901done
5213506e
RW
12902 done
12903IFS=$as_save_IFS
1c710c3c 12904
d739199a
DJ
12905fi
12906fi
1c710c3c 12907OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12908if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12910$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12911else
5213506e
RW
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12913$as_echo "no" >&6; }
d739199a
DJ
12914fi
12915
5213506e 12916
e8b05380
PB
12917 fi
12918 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12919 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12920set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12922$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12923if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12924 $as_echo_n "(cached) " >&6
d739199a
DJ
12925else
12926 if test -n "$OBJDUMP_FOR_TARGET"; then
12927 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12928else
1c710c3c
DJ
12929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12930for as_dir in $PATH
12931do
12932 IFS=$as_save_IFS
12933 test -z "$as_dir" && as_dir=.
5213506e 12934 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12936 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12938 break 2
12939 fi
12940done
5213506e
RW
12941 done
12942IFS=$as_save_IFS
1c710c3c 12943
d739199a
DJ
12944fi
12945fi
1c710c3c 12946OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12947if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12949$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12950else
5213506e
RW
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12952$as_echo "no" >&6; }
d739199a 12953fi
1c710c3c 12954
5213506e 12955
e8b05380
PB
12956 fi
12957 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12958 done
12959fi
1c710c3c 12960
d739199a
DJ
12961if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12962 set dummy objdump
12963 if test $build = $target ; then
12964 OBJDUMP_FOR_TARGET="$2"
12965 else
12966 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12967 fi
1c00b503
PB
12968else
12969 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12970fi
12971
d1f8db0c
PB
12972else
12973 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12974fi
12975
12976
12977
12978
e4a9a572
IS
12979if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
12980 if test -n "$with_build_time_tools"; then
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
12982$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
12983 if test -x $with_build_time_tools/otool; then
12984 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
12985 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
12987$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
12988 else
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12990$as_echo "no" >&6; }
12991 fi
12992 elif test $build != $host && test $have_gcc_for_target = yes; then
12993 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
12994 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
12995 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
12996 fi
12997fi
12998if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12999 # Extract the first word of "otool", so it can be a program name with args.
13000set dummy otool; ac_word=$2
13001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13002$as_echo_n "checking for $ac_word... " >&6; }
13003if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
13004 $as_echo_n "(cached) " >&6
13005else
13006 case $OTOOL_FOR_TARGET in
13007 [\\/]* | ?:[\\/]*)
13008 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
13009 ;;
13010 *)
13011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13012for as_dir in $gcc_cv_tool_dirs
13013do
13014 IFS=$as_save_IFS
13015 test -z "$as_dir" && as_dir=.
13016 for ac_exec_ext in '' $ac_executable_extensions; do
13017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13018 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13020 break 2
13021 fi
13022done
13023 done
13024IFS=$as_save_IFS
13025
13026 ;;
13027esac
13028fi
13029OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13030if test -n "$OTOOL_FOR_TARGET"; then
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13032$as_echo "$OTOOL_FOR_TARGET" >&6; }
13033else
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13035$as_echo "no" >&6; }
13036fi
13037
13038
13039fi
13040if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13041
13042
13043if test -n "$OTOOL_FOR_TARGET"; then
13044 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13045elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13046 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13047fi
13048
13049if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13050 for ncn_progname in otool; do
13051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13052set dummy ${ncn_progname}; ac_word=$2
13053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13054$as_echo_n "checking for $ac_word... " >&6; }
13055if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13056 $as_echo_n "(cached) " >&6
13057else
13058 if test -n "$OTOOL_FOR_TARGET"; then
13059 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13060else
13061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13062for as_dir in $PATH
13063do
13064 IFS=$as_save_IFS
13065 test -z "$as_dir" && as_dir=.
13066 for ac_exec_ext in '' $ac_executable_extensions; do
13067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13068 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13070 break 2
13071 fi
13072done
13073 done
13074IFS=$as_save_IFS
13075
13076fi
13077fi
13078OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13079if test -n "$OTOOL_FOR_TARGET"; then
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13081$as_echo "$OTOOL_FOR_TARGET" >&6; }
13082else
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13084$as_echo "no" >&6; }
13085fi
13086
13087
13088 done
13089fi
13090
13091if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
13092 for ncn_progname in otool; do
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13094$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13095 if test -x $with_build_time_tools/${ncn_progname}; then
13096 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13098$as_echo "yes" >&6; }
13099 break
13100 else
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13102$as_echo "no" >&6; }
13103 fi
13104 done
13105fi
13106
13107if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13108 for ncn_progname in otool; do
13109 if test -n "$ncn_target_tool_prefix"; then
13110 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13111set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13113$as_echo_n "checking for $ac_word... " >&6; }
13114if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13115 $as_echo_n "(cached) " >&6
13116else
13117 if test -n "$OTOOL_FOR_TARGET"; then
13118 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13119else
13120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13121for as_dir in $PATH
13122do
13123 IFS=$as_save_IFS
13124 test -z "$as_dir" && as_dir=.
13125 for ac_exec_ext in '' $ac_executable_extensions; do
13126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13127 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13129 break 2
13130 fi
13131done
13132 done
13133IFS=$as_save_IFS
13134
13135fi
13136fi
13137OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13138if test -n "$OTOOL_FOR_TARGET"; then
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13140$as_echo "$OTOOL_FOR_TARGET" >&6; }
13141else
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13143$as_echo "no" >&6; }
13144fi
13145
13146
13147 fi
13148 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
13149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13150set dummy ${ncn_progname}; ac_word=$2
13151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13152$as_echo_n "checking for $ac_word... " >&6; }
13153if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13154 $as_echo_n "(cached) " >&6
13155else
13156 if test -n "$OTOOL_FOR_TARGET"; then
13157 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13158else
13159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13160for as_dir in $PATH
13161do
13162 IFS=$as_save_IFS
13163 test -z "$as_dir" && as_dir=.
13164 for ac_exec_ext in '' $ac_executable_extensions; do
13165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13166 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13168 break 2
13169 fi
13170done
13171 done
13172IFS=$as_save_IFS
13173
13174fi
13175fi
13176OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13177if test -n "$OTOOL_FOR_TARGET"; then
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13179$as_echo "$OTOOL_FOR_TARGET" >&6; }
13180else
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13182$as_echo "no" >&6; }
13183fi
13184
13185
13186 fi
13187 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
13188 done
13189fi
13190
13191if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
13192 set dummy otool
13193 if test $build = $target ; then
13194 OTOOL_FOR_TARGET="$2"
13195 else
13196 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
13197 fi
13198else
13199 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
13200fi
13201
13202else
13203 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13204fi
13205
13206
13207
13208
e8b05380
PB
13209if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13210 if test -n "$with_build_time_tools"; then
5213506e
RW
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13212$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13213 if test -x $with_build_time_tools/ranlib; then
13214 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13215 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13217$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 13218 else
5213506e
RW
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13220$as_echo "no" >&6; }
d1f8db0c 13221 fi
e8b05380
PB
13222 elif test $build != $host && test $have_gcc_for_target = yes; then
13223 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
13224 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13225 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
13226 fi
13227fi
3e19841a 13228if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13229 # Extract the first word of "ranlib", so it can be a program name with args.
13230set dummy ranlib; ac_word=$2
5213506e
RW
13231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13232$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13233if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
5213506e 13234 $as_echo_n "(cached) " >&6
e8b05380 13235else
1c710c3c
DJ
13236 case $RANLIB_FOR_TARGET in
13237 [\\/]* | ?:[\\/]*)
e8b05380
PB
13238 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13239 ;;
e8b05380 13240 *)
1c710c3c
DJ
13241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242for as_dir in $gcc_cv_tool_dirs
13243do
13244 IFS=$as_save_IFS
13245 test -z "$as_dir" && as_dir=.
5213506e 13246 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13248 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13250 break 2
13251 fi
13252done
5213506e
RW
13253 done
13254IFS=$as_save_IFS
1c710c3c 13255
e8b05380
PB
13256 ;;
13257esac
13258fi
1c710c3c 13259RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 13260if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13262$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 13263else
5213506e
RW
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265$as_echo "no" >&6; }
e8b05380
PB
13266fi
13267
5213506e 13268
e8b05380
PB
13269fi
13270if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
13271
13272
13273if test -n "$RANLIB_FOR_TARGET"; then
13274 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13275elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13276 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13277fi
13278
13279if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13280 for ncn_progname in ranlib; do
13281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13282set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13284$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13285if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 13286 $as_echo_n "(cached) " >&6
278a7a38
AO
13287else
13288 if test -n "$RANLIB_FOR_TARGET"; then
13289 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13290else
13291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13292for as_dir in $PATH
13293do
13294 IFS=$as_save_IFS
13295 test -z "$as_dir" && as_dir=.
5213506e 13296 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13298 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 13299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13300 break 2
13301 fi
13302done
5213506e
RW
13303 done
13304IFS=$as_save_IFS
278a7a38
AO
13305
13306fi
13307fi
13308RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13309if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13311$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 13312else
5213506e
RW
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314$as_echo "no" >&6; }
278a7a38
AO
13315fi
13316
5213506e 13317
278a7a38
AO
13318 done
13319fi
13320
13321if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13322 for ncn_progname in ranlib; do
5213506e
RW
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13324$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13325 if test -x $with_build_time_tools/${ncn_progname}; then
13326 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13328$as_echo "yes" >&6; }
e8b05380
PB
13329 break
13330 else
5213506e
RW
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13332$as_echo "no" >&6; }
e8b05380
PB
13333 fi
13334 done
13335fi
13336
13337if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13338 for ncn_progname in ranlib; do
13339 if test -n "$ncn_target_tool_prefix"; then
13340 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 13341set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13343$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13344if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 13345 $as_echo_n "(cached) " >&6
ca9f4b81 13346else
4de997d1
PB
13347 if test -n "$RANLIB_FOR_TARGET"; then
13348 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 13349else
1c710c3c
DJ
13350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13351for as_dir in $PATH
13352do
13353 IFS=$as_save_IFS
13354 test -z "$as_dir" && as_dir=.
5213506e 13355 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13357 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13359 break 2
13360 fi
13361done
5213506e
RW
13362 done
13363IFS=$as_save_IFS
1c710c3c 13364
ca9f4b81
AO
13365fi
13366fi
1c710c3c 13367RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 13368if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13370$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 13371else
5213506e
RW
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13373$as_echo "no" >&6; }
ca9f4b81
AO
13374fi
13375
5213506e 13376
e8b05380
PB
13377 fi
13378 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13380set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13382$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13383if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 13384 $as_echo_n "(cached) " >&6
ca9f4b81 13385else
2693c0b0
PB
13386 if test -n "$RANLIB_FOR_TARGET"; then
13387 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 13388else
1c710c3c
DJ
13389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13390for as_dir in $PATH
13391do
13392 IFS=$as_save_IFS
13393 test -z "$as_dir" && as_dir=.
5213506e 13394 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13396 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 13397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13398 break 2
13399 fi
13400done
5213506e
RW
13401 done
13402IFS=$as_save_IFS
1c710c3c 13403
ca9f4b81
AO
13404fi
13405fi
1c710c3c 13406RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 13407if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13409$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 13410else
5213506e
RW
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13412$as_echo "no" >&6; }
ca9f4b81 13413fi
1c710c3c 13414
5213506e 13415
e8b05380
PB
13416 fi
13417 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13418 done
13419fi
1c710c3c 13420
e8b05380
PB
13421if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13422 set dummy ranlib
13423 if test $build = $target ; then
13424 RANLIB_FOR_TARGET="$2"
13425 else
13426 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13427 fi
1c00b503
PB
13428else
13429 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 13430fi
2693c0b0 13431
d1f8db0c
PB
13432else
13433 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
13434fi
13435
e8b05380
PB
13436
13437
13438
e7a82751
RM
13439if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13440 if test -n "$with_build_time_tools"; then
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13442$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13443 if test -x $with_build_time_tools/readelf; then
13444 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13445 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13447$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13448 else
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13450$as_echo "no" >&6; }
13451 fi
13452 elif test $build != $host && test $have_gcc_for_target = yes; then
13453 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13454 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13455 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13456 fi
13457fi
13458if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13459 # Extract the first word of "readelf", so it can be a program name with args.
13460set dummy readelf; ac_word=$2
13461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13462$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13463if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13464 $as_echo_n "(cached) " >&6
13465else
13466 case $READELF_FOR_TARGET in
13467 [\\/]* | ?:[\\/]*)
13468 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13469 ;;
13470 *)
13471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13472for as_dir in $gcc_cv_tool_dirs
13473do
13474 IFS=$as_save_IFS
13475 test -z "$as_dir" && as_dir=.
13476 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13478 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13480 break 2
13481 fi
13482done
13483 done
13484IFS=$as_save_IFS
13485
13486 ;;
13487esac
13488fi
13489READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13490if test -n "$READELF_FOR_TARGET"; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13492$as_echo "$READELF_FOR_TARGET" >&6; }
13493else
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13495$as_echo "no" >&6; }
13496fi
13497
13498
13499fi
13500if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13501
13502
13503if test -n "$READELF_FOR_TARGET"; then
13504 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13505elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13506 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13507fi
13508
13509if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13510 for ncn_progname in readelf; do
13511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13512set dummy ${ncn_progname}; ac_word=$2
13513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13514$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13515if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13516 $as_echo_n "(cached) " >&6
13517else
13518 if test -n "$READELF_FOR_TARGET"; then
13519 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13520else
13521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13522for as_dir in $PATH
13523do
13524 IFS=$as_save_IFS
13525 test -z "$as_dir" && as_dir=.
13526 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13528 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13530 break 2
13531 fi
13532done
13533 done
13534IFS=$as_save_IFS
13535
13536fi
13537fi
13538READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13539if test -n "$READELF_FOR_TARGET"; then
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13541$as_echo "$READELF_FOR_TARGET" >&6; }
13542else
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13544$as_echo "no" >&6; }
13545fi
13546
13547
13548 done
13549fi
13550
13551if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13552 for ncn_progname in readelf; do
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13554$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13555 if test -x $with_build_time_tools/${ncn_progname}; then
13556 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13558$as_echo "yes" >&6; }
13559 break
13560 else
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13562$as_echo "no" >&6; }
13563 fi
13564 done
13565fi
13566
13567if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13568 for ncn_progname in readelf; do
13569 if test -n "$ncn_target_tool_prefix"; then
13570 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13571set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13573$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13574if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13575 $as_echo_n "(cached) " >&6
13576else
13577 if test -n "$READELF_FOR_TARGET"; then
13578 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13579else
13580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13581for as_dir in $PATH
13582do
13583 IFS=$as_save_IFS
13584 test -z "$as_dir" && as_dir=.
13585 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13587 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13589 break 2
13590 fi
13591done
13592 done
13593IFS=$as_save_IFS
13594
13595fi
13596fi
13597READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13598if test -n "$READELF_FOR_TARGET"; then
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13600$as_echo "$READELF_FOR_TARGET" >&6; }
13601else
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13603$as_echo "no" >&6; }
13604fi
13605
13606
13607 fi
13608 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13609 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13610set dummy ${ncn_progname}; ac_word=$2
13611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13612$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13613if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13614 $as_echo_n "(cached) " >&6
13615else
13616 if test -n "$READELF_FOR_TARGET"; then
13617 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13618else
13619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13620for as_dir in $PATH
13621do
13622 IFS=$as_save_IFS
13623 test -z "$as_dir" && as_dir=.
13624 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13626 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13628 break 2
13629 fi
13630done
13631 done
13632IFS=$as_save_IFS
13633
13634fi
13635fi
13636READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13637if test -n "$READELF_FOR_TARGET"; then
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13639$as_echo "$READELF_FOR_TARGET" >&6; }
13640else
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13642$as_echo "no" >&6; }
13643fi
13644
13645
13646 fi
13647 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13648 done
13649fi
13650
13651if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13652 set dummy readelf
13653 if test $build = $target ; then
13654 READELF_FOR_TARGET="$2"
13655 else
13656 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13657 fi
13658else
13659 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13660fi
13661
13662else
13663 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13664fi
13665
13666
13667
13668
e8b05380
PB
13669if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13670 if test -n "$with_build_time_tools"; then
5213506e
RW
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13672$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13673 if test -x $with_build_time_tools/strip; then
13674 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13675 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13677$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 13678 else
5213506e
RW
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13680$as_echo "no" >&6; }
d1f8db0c 13681 fi
e8b05380
PB
13682 elif test $build != $host && test $have_gcc_for_target = yes; then
13683 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
13684 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13685 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
13686 fi
13687fi
3e19841a 13688if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13689 # Extract the first word of "strip", so it can be a program name with args.
13690set dummy strip; ac_word=$2
5213506e
RW
13691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13692$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13693if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
5213506e 13694 $as_echo_n "(cached) " >&6
e8b05380 13695else
1c710c3c
DJ
13696 case $STRIP_FOR_TARGET in
13697 [\\/]* | ?:[\\/]*)
e8b05380
PB
13698 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13699 ;;
e8b05380 13700 *)
1c710c3c
DJ
13701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13702for as_dir in $gcc_cv_tool_dirs
13703do
13704 IFS=$as_save_IFS
13705 test -z "$as_dir" && as_dir=.
5213506e 13706 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13708 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13710 break 2
13711 fi
13712done
5213506e
RW
13713 done
13714IFS=$as_save_IFS
1c710c3c 13715
e8b05380
PB
13716 ;;
13717esac
13718fi
1c710c3c 13719STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 13720if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13722$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 13723else
5213506e
RW
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13725$as_echo "no" >&6; }
e8b05380
PB
13726fi
13727
5213506e 13728
e8b05380
PB
13729fi
13730if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
13731
13732
13733if test -n "$STRIP_FOR_TARGET"; then
13734 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13735elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13736 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13737fi
13738
13739if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13740 for ncn_progname in strip; do
13741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13742set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13744$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13745if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 13746 $as_echo_n "(cached) " >&6
278a7a38
AO
13747else
13748 if test -n "$STRIP_FOR_TARGET"; then
13749 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13750else
13751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752for as_dir in $PATH
13753do
13754 IFS=$as_save_IFS
13755 test -z "$as_dir" && as_dir=.
5213506e 13756 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13758 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13760 break 2
13761 fi
13762done
5213506e
RW
13763 done
13764IFS=$as_save_IFS
278a7a38
AO
13765
13766fi
13767fi
13768STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13769if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13771$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13772else
5213506e
RW
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774$as_echo "no" >&6; }
278a7a38
AO
13775fi
13776
5213506e 13777
278a7a38
AO
13778 done
13779fi
13780
13781if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13782 for ncn_progname in strip; do
5213506e
RW
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13784$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13785 if test -x $with_build_time_tools/${ncn_progname}; then
13786 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13788$as_echo "yes" >&6; }
e8b05380
PB
13789 break
13790 else
5213506e
RW
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13792$as_echo "no" >&6; }
e8b05380
PB
13793 fi
13794 done
13795fi
13796
13797if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13798 for ncn_progname in strip; do
13799 if test -n "$ncn_target_tool_prefix"; then
13800 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13801set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13803$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13804if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 13805 $as_echo_n "(cached) " >&6
af71363e
AS
13806else
13807 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13808 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13809else
13810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13811for as_dir in $PATH
13812do
13813 IFS=$as_save_IFS
13814 test -z "$as_dir" && as_dir=.
5213506e 13815 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13817 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13819 break 2
13820 fi
13821done
5213506e
RW
13822 done
13823IFS=$as_save_IFS
1c710c3c 13824
040b1c5a
GK
13825fi
13826fi
1c710c3c 13827STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13828if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13830$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13831else
5213506e
RW
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13833$as_echo "no" >&6; }
040b1c5a
GK
13834fi
13835
5213506e 13836
e8b05380
PB
13837 fi
13838 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13840set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13842$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13843if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 13844 $as_echo_n "(cached) " >&6
040b1c5a
GK
13845else
13846 if test -n "$STRIP_FOR_TARGET"; then
13847 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13848else
1c710c3c
DJ
13849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13850for as_dir in $PATH
13851do
13852 IFS=$as_save_IFS
13853 test -z "$as_dir" && as_dir=.
5213506e 13854 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13856 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13858 break 2
13859 fi
13860done
5213506e
RW
13861 done
13862IFS=$as_save_IFS
1c710c3c 13863
040b1c5a
GK
13864fi
13865fi
1c710c3c 13866STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13867if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13869$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13870else
5213506e
RW
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13872$as_echo "no" >&6; }
040b1c5a 13873fi
1c710c3c 13874
5213506e 13875
e8b05380
PB
13876 fi
13877 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13878 done
13879fi
1c710c3c 13880
040b1c5a
GK
13881if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13882 set dummy strip
13883 if test $build = $target ; then
13884 STRIP_FOR_TARGET="$2"
13885 else
13886 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13887 fi
1c00b503
PB
13888else
13889 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13890fi
13891
d1f8db0c
PB
13892else
13893 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13894fi
13895
13896
13897
13898
13899if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13900 if test -n "$with_build_time_tools"; then
5213506e
RW
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13902$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13903 if test -x $with_build_time_tools/windres; then
13904 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13905 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13907$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13908 else
5213506e
RW
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13910$as_echo "no" >&6; }
d1f8db0c 13911 fi
e8b05380
PB
13912 elif test $build != $host && test $have_gcc_for_target = yes; then
13913 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13914 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13915 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13916 fi
13917fi
3e19841a 13918if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13919 # Extract the first word of "windres", so it can be a program name with args.
13920set dummy windres; ac_word=$2
5213506e
RW
13921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13922$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13923if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
5213506e 13924 $as_echo_n "(cached) " >&6
e8b05380 13925else
1c710c3c
DJ
13926 case $WINDRES_FOR_TARGET in
13927 [\\/]* | ?:[\\/]*)
e8b05380
PB
13928 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13929 ;;
e8b05380 13930 *)
1c710c3c
DJ
13931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13932for as_dir in $gcc_cv_tool_dirs
13933do
13934 IFS=$as_save_IFS
13935 test -z "$as_dir" && as_dir=.
5213506e 13936 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13938 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13940 break 2
13941 fi
13942done
5213506e
RW
13943 done
13944IFS=$as_save_IFS
1c710c3c 13945
e8b05380
PB
13946 ;;
13947esac
13948fi
1c710c3c 13949WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13950if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13952$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13953else
5213506e
RW
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13955$as_echo "no" >&6; }
e8b05380
PB
13956fi
13957
5213506e 13958
e8b05380
PB
13959fi
13960if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13961
13962
13963if test -n "$WINDRES_FOR_TARGET"; then
13964 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13965elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13966 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13967fi
13968
13969if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13970 for ncn_progname in windres; do
13971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13972set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13974$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13975if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 13976 $as_echo_n "(cached) " >&6
278a7a38
AO
13977else
13978 if test -n "$WINDRES_FOR_TARGET"; then
13979 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13980else
13981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13982for as_dir in $PATH
13983do
13984 IFS=$as_save_IFS
13985 test -z "$as_dir" && as_dir=.
5213506e 13986 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13988 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13990 break 2
13991 fi
13992done
5213506e
RW
13993 done
13994IFS=$as_save_IFS
278a7a38
AO
13995
13996fi
13997fi
13998WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13999if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14001$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 14002else
5213506e
RW
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14004$as_echo "no" >&6; }
278a7a38
AO
14005fi
14006
5213506e 14007
278a7a38
AO
14008 done
14009fi
14010
14011if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14012 for ncn_progname in windres; do
5213506e
RW
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14014$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14015 if test -x $with_build_time_tools/${ncn_progname}; then
14016 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14018$as_echo "yes" >&6; }
e8b05380
PB
14019 break
14020 else
5213506e
RW
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022$as_echo "no" >&6; }
e8b05380
PB
14023 fi
14024 done
14025fi
14026
14027if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14028 for ncn_progname in windres; do
14029 if test -n "$ncn_target_tool_prefix"; then
14030 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14031set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14033$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14034if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 14035 $as_echo_n "(cached) " >&6
ca9f4b81 14036else
4de997d1
PB
14037 if test -n "$WINDRES_FOR_TARGET"; then
14038 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 14039else
1c710c3c
DJ
14040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14041for as_dir in $PATH
14042do
14043 IFS=$as_save_IFS
14044 test -z "$as_dir" && as_dir=.
5213506e 14045 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14047 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14049 break 2
14050 fi
14051done
5213506e
RW
14052 done
14053IFS=$as_save_IFS
1c710c3c 14054
ca9f4b81
AO
14055fi
14056fi
1c710c3c 14057WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 14058if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14060$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 14061else
5213506e
RW
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14063$as_echo "no" >&6; }
ca9f4b81
AO
14064fi
14065
5213506e 14066
e8b05380
PB
14067 fi
14068 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
14069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14070set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14072$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14073if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 14074 $as_echo_n "(cached) " >&6
ca9f4b81 14075else
2693c0b0
PB
14076 if test -n "$WINDRES_FOR_TARGET"; then
14077 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 14078else
1c710c3c
DJ
14079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14080for as_dir in $PATH
14081do
14082 IFS=$as_save_IFS
14083 test -z "$as_dir" && as_dir=.
5213506e 14084 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14086 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 14087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14088 break 2
14089 fi
14090done
5213506e
RW
14091 done
14092IFS=$as_save_IFS
1c710c3c 14093
ca9f4b81
AO
14094fi
14095fi
1c710c3c 14096WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 14097if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14099$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 14100else
5213506e
RW
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14102$as_echo "no" >&6; }
ca9f4b81 14103fi
1c710c3c 14104
5213506e 14105
e8b05380
PB
14106 fi
14107 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14108 done
14109fi
1c710c3c 14110
2693c0b0
PB
14111if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14112 set dummy windres
14113 if test $build = $target ; then
14114 WINDRES_FOR_TARGET="$2"
ca9f4b81 14115 else
2693c0b0 14116 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 14117 fi
1c00b503
PB
14118else
14119 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
14120fi
14121
d1f8db0c
PB
14122else
14123 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
14124fi
14125
4977bab6 14126
901119ae
KT
14127
14128
14129if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14130 if test -n "$with_build_time_tools"; then
5213506e
RW
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14132$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
14133 if test -x $with_build_time_tools/windmc; then
14134 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14135 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14137$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 14138 else
5213506e
RW
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14140$as_echo "no" >&6; }
901119ae
KT
14141 fi
14142 elif test $build != $host && test $have_gcc_for_target = yes; then
14143 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
14144 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14145 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
14146 fi
14147fi
14148if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14149 # Extract the first word of "windmc", so it can be a program name with args.
14150set dummy windmc; ac_word=$2
5213506e
RW
14151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14152$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14153if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
5213506e 14154 $as_echo_n "(cached) " >&6
901119ae
KT
14155else
14156 case $WINDMC_FOR_TARGET in
14157 [\\/]* | ?:[\\/]*)
14158 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14159 ;;
14160 *)
14161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14162for as_dir in $gcc_cv_tool_dirs
14163do
14164 IFS=$as_save_IFS
14165 test -z "$as_dir" && as_dir=.
5213506e 14166 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14168 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14170 break 2
14171 fi
14172done
5213506e
RW
14173 done
14174IFS=$as_save_IFS
901119ae
KT
14175
14176 ;;
14177esac
14178fi
14179WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 14180if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14182$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14183else
5213506e
RW
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14185$as_echo "no" >&6; }
901119ae
KT
14186fi
14187
5213506e 14188
901119ae
KT
14189fi
14190if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14191
14192
14193if test -n "$WINDMC_FOR_TARGET"; then
14194 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14195elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14196 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14197fi
14198
14199if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14200 for ncn_progname in windmc; do
14201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14202set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14204$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14205if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 14206 $as_echo_n "(cached) " >&6
901119ae
KT
14207else
14208 if test -n "$WINDMC_FOR_TARGET"; then
14209 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14210else
14211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14212for as_dir in $PATH
14213do
14214 IFS=$as_save_IFS
14215 test -z "$as_dir" && as_dir=.
5213506e 14216 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14218 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 14219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14220 break 2
14221 fi
14222done
5213506e
RW
14223 done
14224IFS=$as_save_IFS
901119ae
KT
14225
14226fi
14227fi
14228WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14229if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14231$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14232else
5213506e
RW
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14234$as_echo "no" >&6; }
901119ae
KT
14235fi
14236
5213506e 14237
901119ae
KT
14238 done
14239fi
14240
14241if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14242 for ncn_progname in windmc; do
5213506e
RW
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14244$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
14245 if test -x $with_build_time_tools/${ncn_progname}; then
14246 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14248$as_echo "yes" >&6; }
901119ae
KT
14249 break
14250 else
5213506e
RW
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14252$as_echo "no" >&6; }
901119ae
KT
14253 fi
14254 done
14255fi
14256
14257if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14258 for ncn_progname in windmc; do
14259 if test -n "$ncn_target_tool_prefix"; then
14260 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14261set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14263$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14264if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 14265 $as_echo_n "(cached) " >&6
901119ae
KT
14266else
14267 if test -n "$WINDMC_FOR_TARGET"; then
14268 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14269else
14270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14271for as_dir in $PATH
14272do
14273 IFS=$as_save_IFS
14274 test -z "$as_dir" && as_dir=.
5213506e 14275 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14277 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14279 break 2
14280 fi
14281done
5213506e
RW
14282 done
14283IFS=$as_save_IFS
901119ae
KT
14284
14285fi
14286fi
14287WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14288if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14290$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14291else
5213506e
RW
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14293$as_echo "no" >&6; }
901119ae
KT
14294fi
14295
5213506e 14296
901119ae
KT
14297 fi
14298 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14300set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14302$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14303if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 14304 $as_echo_n "(cached) " >&6
901119ae
KT
14305else
14306 if test -n "$WINDMC_FOR_TARGET"; then
14307 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14308else
14309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14310for as_dir in $PATH
14311do
14312 IFS=$as_save_IFS
14313 test -z "$as_dir" && as_dir=.
5213506e 14314 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14316 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 14317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14318 break 2
14319 fi
14320done
5213506e
RW
14321 done
14322IFS=$as_save_IFS
901119ae
KT
14323
14324fi
14325fi
14326WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14327if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14329$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14330else
5213506e
RW
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14332$as_echo "no" >&6; }
901119ae
KT
14333fi
14334
5213506e 14335
901119ae
KT
14336 fi
14337 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14338 done
14339fi
14340
14341if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14342 set dummy windmc
14343 if test $build = $target ; then
14344 WINDMC_FOR_TARGET="$2"
14345 else
14346 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14347 fi
1c00b503
PB
14348else
14349 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
14350fi
14351
14352else
14353 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14354fi
14355
14356
2abefe3d
PB
14357RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14358
5213506e
RW
14359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14360$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 14361if test "x${build}" != "x${host}" ; then
e8b05380
PB
14362 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14363 # We already found the complete path
172e41aa 14364 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14366$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14367 else
14368 # Canadian cross, just use what we found
5213506e
RW
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14370$as_echo "pre-installed" >&6; }
e8b05380 14371 fi
2abefe3d
PB
14372else
14373 ok=yes
14374 case " ${configdirs} " in
14375 *" binutils "*) ;;
14376 *) ok=no ;;
14377 esac
1c710c3c 14378
2abefe3d
PB
14379 if test $ok = yes; then
14380 # An in-tree tool is available and we can use it
14381 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14383$as_echo "just compiled" >&6; }
e8b05380
PB
14384 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14385 # We already found the complete path
172e41aa 14386 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14388$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14389 elif test "x$target" = "x$host"; then
14390 # We can use an host tool
14391 AR_FOR_TARGET='$(AR)'
5213506e
RW
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14393$as_echo "host tool" >&6; }
2abefe3d
PB
14394 else
14395 # We need a cross tool
5213506e
RW
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14397$as_echo "pre-installed" >&6; }
2abefe3d
PB
14398 fi
14399fi
0b0dc272 14400
5213506e
RW
14401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14402$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 14403if test "x${build}" != "x${host}" ; then
e8b05380
PB
14404 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14405 # We already found the complete path
172e41aa 14406 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14408$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14409 else
14410 # Canadian cross, just use what we found
5213506e
RW
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14412$as_echo "pre-installed" >&6; }
e8b05380 14413 fi
2abefe3d
PB
14414else
14415 ok=yes
14416 case " ${configdirs} " in
14417 *" gas "*) ;;
14418 *) ok=no ;;
14419 esac
1c710c3c 14420
2abefe3d
PB
14421 if test $ok = yes; then
14422 # An in-tree tool is available and we can use it
14423 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14425$as_echo "just compiled" >&6; }
e8b05380
PB
14426 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14427 # We already found the complete path
172e41aa 14428 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14430$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14431 elif test "x$target" = "x$host"; then
14432 # We can use an host tool
14433 AS_FOR_TARGET='$(AS)'
5213506e
RW
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14435$as_echo "host tool" >&6; }
2abefe3d
PB
14436 else
14437 # We need a cross tool
5213506e
RW
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14439$as_echo "pre-installed" >&6; }
2abefe3d
PB
14440 fi
14441fi
0b0dc272 14442
5213506e
RW
14443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14444$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 14445if test "x${build}" != "x${host}" ; then
e8b05380
PB
14446 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14447 # We already found the complete path
172e41aa 14448 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14450$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14451 else
14452 # Canadian cross, just use what we found
5213506e
RW
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14454$as_echo "pre-installed" >&6; }
e8b05380 14455 fi
2abefe3d
PB
14456else
14457 ok=yes
14458 case " ${configdirs} " in
14459 *" gcc "*) ;;
14460 *) ok=no ;;
14461 esac
1c710c3c 14462
2abefe3d
PB
14463 if test $ok = yes; then
14464 # An in-tree tool is available and we can use it
14465 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14467$as_echo "just compiled" >&6; }
e8b05380
PB
14468 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14469 # We already found the complete path
172e41aa 14470 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14472$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14473 elif test "x$target" = "x$host"; then
14474 # We can use an host tool
14475 CC_FOR_TARGET='$(CC)'
5213506e
RW
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14477$as_echo "host tool" >&6; }
2abefe3d
PB
14478 else
14479 # We need a cross tool
5213506e
RW
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14481$as_echo "pre-installed" >&6; }
2abefe3d
PB
14482 fi
14483fi
0b0dc272 14484
5213506e
RW
14485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14486$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 14487if test "x${build}" != "x${host}" ; then
e8b05380
PB
14488 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14489 # We already found the complete path
172e41aa 14490 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14492$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14493 else
14494 # Canadian cross, just use what we found
5213506e
RW
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14496$as_echo "pre-installed" >&6; }
e8b05380 14497 fi
2abefe3d
PB
14498else
14499 ok=yes
14500 case " ${configdirs} " in
14501 *" gcc "*) ;;
14502 *) ok=no ;;
14503 esac
14504 case ,${enable_languages}, in
14505 *,c++,*) ;;
14506 *) ok=no ;;
14507 esac
14508 if test $ok = yes; then
14509 # An in-tree tool is available and we can use it
2077db1b 14510 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
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14512$as_echo "just compiled" >&6; }
e8b05380
PB
14513 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14514 # We already found the complete path
172e41aa 14515 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14517$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14518 elif test "x$target" = "x$host"; then
14519 # We can use an host tool
14520 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14522$as_echo "host tool" >&6; }
2abefe3d
PB
14523 else
14524 # We need a cross tool
5213506e
RW
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14526$as_echo "pre-installed" >&6; }
2abefe3d
PB
14527 fi
14528fi
0b0dc272 14529
5213506e
RW
14530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14531$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 14532if test "x${build}" != "x${host}" ; then
e8b05380
PB
14533 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14534 # We already found the complete path
172e41aa 14535 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14537$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14538 else
14539 # Canadian cross, just use what we found
5213506e
RW
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14541$as_echo "pre-installed" >&6; }
e8b05380 14542 fi
2abefe3d
PB
14543else
14544 ok=yes
14545 case " ${configdirs} " in
14546 *" gcc "*) ;;
14547 *) ok=no ;;
14548 esac
14549 case ,${enable_languages}, in
14550 *,c++,*) ;;
14551 *) ok=no ;;
14552 esac
14553 if test $ok = yes; then
14554 # An in-tree tool is available and we can use it
2077db1b 14555 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
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14557$as_echo "just compiled" >&6; }
e8b05380
PB
14558 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14559 # We already found the complete path
172e41aa 14560 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14562$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14563 elif test "x$target" = "x$host"; then
14564 # We can use an host tool
14565 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14567$as_echo "host tool" >&6; }
2abefe3d
PB
14568 else
14569 # We need a cross tool
5213506e
RW
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14571$as_echo "pre-installed" >&6; }
2abefe3d
PB
14572 fi
14573fi
0b0dc272 14574
5213506e
RW
14575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14576$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 14577if test "x${build}" != "x${host}" ; then
e8b05380
PB
14578 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14579 # We already found the complete path
172e41aa 14580 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14582$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14583 else
14584 # Canadian cross, just use what we found
5213506e
RW
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14586$as_echo "pre-installed" >&6; }
e8b05380 14587 fi
2abefe3d
PB
14588else
14589 ok=yes
14590 case " ${configdirs} " in
14591 *" binutils "*) ;;
14592 *) ok=no ;;
14593 esac
1c710c3c 14594
2abefe3d
PB
14595 if test $ok = yes; then
14596 # An in-tree tool is available and we can use it
14597 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14599$as_echo "just compiled" >&6; }
e8b05380
PB
14600 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14601 # We already found the complete path
172e41aa 14602 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14604$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14605 elif test "x$target" = "x$host"; then
14606 # We can use an host tool
14607 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14609$as_echo "host tool" >&6; }
2abefe3d
PB
14610 else
14611 # We need a cross tool
5213506e
RW
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14613$as_echo "pre-installed" >&6; }
2abefe3d
PB
14614 fi
14615fi
0b0dc272 14616
5213506e
RW
14617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14618$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 14619if test "x${build}" != "x${host}" ; then
e8b05380
PB
14620 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14621 # We already found the complete path
172e41aa 14622 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14624$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14625 else
14626 # Canadian cross, just use what we found
5213506e
RW
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14628$as_echo "pre-installed" >&6; }
e8b05380 14629 fi
2abefe3d
PB
14630else
14631 ok=yes
14632 case " ${configdirs} " in
14633 *" gcc "*) ;;
14634 *) ok=no ;;
14635 esac
1c710c3c 14636
2abefe3d
PB
14637 if test $ok = yes; then
14638 # An in-tree tool is available and we can use it
14639 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14641$as_echo "just compiled" >&6; }
e8b05380
PB
14642 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14643 # We already found the complete path
172e41aa 14644 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14646$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14647 elif test "x$target" = "x$host"; then
14648 # We can use an host tool
14649 GCC_FOR_TARGET='$()'
5213506e
RW
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14651$as_echo "host tool" >&6; }
2abefe3d
PB
14652 else
14653 # We need a cross tool
5213506e
RW
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14655$as_echo "pre-installed" >&6; }
2abefe3d
PB
14656 fi
14657fi
0b0dc272 14658
5213506e
RW
14659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14660$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 14661if test "x${build}" != "x${host}" ; then
e8b05380
PB
14662 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14663 # We already found the complete path
172e41aa 14664 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14666$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14667 else
14668 # Canadian cross, just use what we found
5213506e
RW
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14670$as_echo "pre-installed" >&6; }
e8b05380 14671 fi
2abefe3d
PB
14672else
14673 ok=yes
14674 case " ${configdirs} " in
14675 *" gcc "*) ;;
14676 *) ok=no ;;
14677 esac
14678 case ,${enable_languages}, in
14679 *,fortran,*) ;;
14680 *) ok=no ;;
14681 esac
14682 if test $ok = yes; then
14683 # An in-tree tool is available and we can use it
14684 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14686$as_echo "just compiled" >&6; }
e8b05380
PB
14687 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14688 # We already found the complete path
172e41aa 14689 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14691$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14692 elif test "x$target" = "x$host"; then
14693 # We can use an host tool
14694 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14696$as_echo "host tool" >&6; }
2abefe3d
PB
14697 else
14698 # We need a cross tool
5213506e
RW
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14700$as_echo "pre-installed" >&6; }
2abefe3d
PB
14701 fi
14702fi
0b0dc272 14703
632e2a07
ILT
14704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14705$as_echo_n "checking where to find the target gccgo... " >&6; }
14706if test "x${build}" != "x${host}" ; then
14707 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14708 # We already found the complete path
14709 ac_dir=`dirname $GOC_FOR_TARGET`
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14711$as_echo "pre-installed in $ac_dir" >&6; }
14712 else
14713 # Canadian cross, just use what we found
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14715$as_echo "pre-installed" >&6; }
14716 fi
14717else
14718 ok=yes
14719 case " ${configdirs} " in
14720 *" gcc "*) ;;
14721 *) ok=no ;;
14722 esac
14723 case ,${enable_languages}, in
14724 *,go,*) ;;
14725 *) ok=no ;;
14726 esac
14727 if test $ok = yes; then
14728 # An in-tree tool is available and we can use it
14729 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14731$as_echo "just compiled" >&6; }
14732 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14733 # We already found the complete path
14734 ac_dir=`dirname $GOC_FOR_TARGET`
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14736$as_echo "pre-installed in $ac_dir" >&6; }
14737 elif test "x$target" = "x$host"; then
14738 # We can use an host tool
14739 GOC_FOR_TARGET='$(GOC)'
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14741$as_echo "host tool" >&6; }
14742 else
14743 # We need a cross tool
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14745$as_echo "pre-installed" >&6; }
14746 fi
14747fi
14748
b4c522fa
IB
14749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
14750$as_echo_n "checking where to find the target gdc... " >&6; }
14751if test "x${build}" != "x${host}" ; then
14752 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14753 # We already found the complete path
14754 ac_dir=`dirname $GDC_FOR_TARGET`
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14756$as_echo "pre-installed in $ac_dir" >&6; }
14757 else
14758 # Canadian cross, just use what we found
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14760$as_echo "pre-installed" >&6; }
14761 fi
14762else
14763 ok=yes
14764 case " ${configdirs} " in
14765 *" gcc "*) ;;
14766 *) ok=no ;;
14767 esac
14768 case ,${enable_languages}, in
14769 *,d,*) ;;
14770 *) ok=no ;;
14771 esac
14772 if test $ok = yes; then
14773 # An in-tree tool is available and we can use it
14774 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14776$as_echo "just compiled" >&6; }
14777 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14778 # We already found the complete path
14779 ac_dir=`dirname $GDC_FOR_TARGET`
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14781$as_echo "pre-installed in $ac_dir" >&6; }
14782 elif test "x$target" = "x$host"; then
14783 # We can use an host tool
14784 GDC_FOR_TARGET='$(GDC)'
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14786$as_echo "host tool" >&6; }
14787 else
14788 # We need a cross tool
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14790$as_echo "pre-installed" >&6; }
14791 fi
14792fi
14793
5213506e
RW
14794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14795$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14796if test "x${build}" != "x${host}" ; then
e8b05380
PB
14797 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14798 # We already found the complete path
172e41aa 14799 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14801$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14802 else
14803 # Canadian cross, just use what we found
5213506e
RW
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14805$as_echo "pre-installed" >&6; }
e8b05380 14806 fi
2abefe3d
PB
14807else
14808 ok=yes
14809 case " ${configdirs} " in
14810 *" ld "*) ;;
14811 *) ok=no ;;
14812 esac
1c710c3c 14813
2abefe3d
PB
14814 if test $ok = yes; then
14815 # An in-tree tool is available and we can use it
14816 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14818$as_echo "just compiled" >&6; }
e8b05380
PB
14819 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14820 # We already found the complete path
172e41aa 14821 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14823$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14824 elif test "x$target" = "x$host"; then
14825 # We can use an host tool
14826 LD_FOR_TARGET='$(LD)'
5213506e
RW
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14828$as_echo "host tool" >&6; }
2abefe3d
PB
14829 else
14830 # We need a cross tool
5213506e
RW
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14832$as_echo "pre-installed" >&6; }
2abefe3d
PB
14833 fi
14834fi
0b0dc272 14835
5213506e
RW
14836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14837$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14838if test "x${build}" != "x${host}" ; then
e8b05380
PB
14839 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14840 # We already found the complete path
172e41aa 14841 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14843$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14844 else
14845 # Canadian cross, just use what we found
5213506e
RW
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14847$as_echo "pre-installed" >&6; }
e8b05380 14848 fi
2abefe3d 14849else
e8b05380
PB
14850 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14851 # We already found the complete path
172e41aa 14852 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14854$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14855 elif test "x$target" = "x$host"; then
2abefe3d
PB
14856 # We can use an host tool
14857 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14859$as_echo "host tool" >&6; }
2abefe3d
PB
14860 else
14861 # We need a cross tool
5213506e
RW
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14863$as_echo "pre-installed" >&6; }
2abefe3d
PB
14864 fi
14865fi
0b0dc272 14866
5213506e
RW
14867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14868$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14869if test "x${build}" != "x${host}" ; then
e8b05380
PB
14870 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14871 # We already found the complete path
172e41aa 14872 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14874$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14875 else
14876 # Canadian cross, just use what we found
5213506e
RW
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14878$as_echo "pre-installed" >&6; }
e8b05380 14879 fi
2abefe3d
PB
14880else
14881 ok=yes
14882 case " ${configdirs} " in
14883 *" binutils "*) ;;
14884 *) ok=no ;;
14885 esac
1c710c3c 14886
2abefe3d
PB
14887 if test $ok = yes; then
14888 # An in-tree tool is available and we can use it
14889 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14891$as_echo "just compiled" >&6; }
e8b05380
PB
14892 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14893 # We already found the complete path
172e41aa 14894 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14896$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14897 elif test "x$target" = "x$host"; then
14898 # We can use an host tool
14899 NM_FOR_TARGET='$(NM)'
5213506e
RW
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14901$as_echo "host tool" >&6; }
2abefe3d
PB
14902 else
14903 # We need a cross tool
5213506e
RW
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14905$as_echo "pre-installed" >&6; }
2abefe3d
PB
14906 fi
14907fi
0b0dc272 14908
9bccfdf5
AP
14909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14910$as_echo_n "checking where to find the target objcopy... " >&6; }
14911if test "x${build}" != "x${host}" ; then
14912 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14913 # We already found the complete path
14914 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14916$as_echo "pre-installed in $ac_dir" >&6; }
14917 else
14918 # Canadian cross, just use what we found
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14920$as_echo "pre-installed" >&6; }
14921 fi
14922else
14923 ok=yes
14924 case " ${configdirs} " in
14925 *" binutils "*) ;;
14926 *) ok=no ;;
14927 esac
14928
14929 if test $ok = yes; then
14930 # An in-tree tool is available and we can use it
14931 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14933$as_echo "just compiled" >&6; }
14934 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14935 # We already found the complete path
14936 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14938$as_echo "pre-installed in $ac_dir" >&6; }
14939 elif test "x$target" = "x$host"; then
14940 # We can use an host tool
ec8fd1c0 14941 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14943$as_echo "host tool" >&6; }
14944 else
14945 # We need a cross tool
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14947$as_echo "pre-installed" >&6; }
14948 fi
14949fi
14950
5213506e
RW
14951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14952$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14953if test "x${build}" != "x${host}" ; then
e8b05380
PB
14954 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14955 # We already found the complete path
172e41aa 14956 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14958$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14959 else
14960 # Canadian cross, just use what we found
5213506e
RW
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14962$as_echo "pre-installed" >&6; }
e8b05380 14963 fi
2abefe3d
PB
14964else
14965 ok=yes
14966 case " ${configdirs} " in
14967 *" binutils "*) ;;
14968 *) ok=no ;;
14969 esac
1c710c3c 14970
2abefe3d
PB
14971 if test $ok = yes; then
14972 # An in-tree tool is available and we can use it
14973 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14975$as_echo "just compiled" >&6; }
e8b05380
PB
14976 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14977 # We already found the complete path
172e41aa 14978 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14980$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14981 elif test "x$target" = "x$host"; then
14982 # We can use an host tool
14983 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14985$as_echo "host tool" >&6; }
2abefe3d
PB
14986 else
14987 # We need a cross tool
5213506e
RW
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14989$as_echo "pre-installed" >&6; }
2abefe3d
PB
14990 fi
14991fi
0b0dc272 14992
e4a9a572
IS
14993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
14994$as_echo_n "checking where to find the target otool... " >&6; }
14995if test "x${build}" != "x${host}" ; then
14996 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
14997 # We already found the complete path
14998 ac_dir=`dirname $OTOOL_FOR_TARGET`
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15000$as_echo "pre-installed in $ac_dir" >&6; }
15001 else
15002 # Canadian cross, just use what we found
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15004$as_echo "pre-installed" >&6; }
15005 fi
15006else
15007 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15008 # We already found the complete path
15009 ac_dir=`dirname $OTOOL_FOR_TARGET`
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15011$as_echo "pre-installed in $ac_dir" >&6; }
15012 elif test "x$target" = "x$host"; then
15013 # We can use an host tool
15014 OTOOL_FOR_TARGET='$(OTOOL)'
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15016$as_echo "host tool" >&6; }
15017 else
15018 # We need a cross tool
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15020$as_echo "pre-installed" >&6; }
15021 fi
15022fi
15023
5213506e
RW
15024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
15025$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 15026if test "x${build}" != "x${host}" ; then
e8b05380
PB
15027 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15028 # We already found the complete path
172e41aa 15029 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15031$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15032 else
15033 # Canadian cross, just use what we found
5213506e
RW
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15035$as_echo "pre-installed" >&6; }
e8b05380 15036 fi
2abefe3d
PB
15037else
15038 ok=yes
15039 case " ${configdirs} " in
15040 *" binutils "*) ;;
15041 *) ok=no ;;
15042 esac
1c710c3c 15043
2abefe3d
PB
15044 if test $ok = yes; then
15045 # An in-tree tool is available and we can use it
15046 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15048$as_echo "just compiled" >&6; }
e8b05380
PB
15049 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15050 # We already found the complete path
172e41aa 15051 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15053$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15054 elif test "x$target" = "x$host"; then
15055 # We can use an host tool
15056 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15058$as_echo "host tool" >&6; }
2abefe3d
PB
15059 else
15060 # We need a cross tool
5213506e
RW
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15062$as_echo "pre-installed" >&6; }
2abefe3d
PB
15063 fi
15064fi
0b0dc272 15065
e7a82751
RM
15066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
15067$as_echo_n "checking where to find the target readelf... " >&6; }
15068if test "x${build}" != "x${host}" ; then
15069 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15070 # We already found the complete path
15071 ac_dir=`dirname $READELF_FOR_TARGET`
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15073$as_echo "pre-installed in $ac_dir" >&6; }
15074 else
15075 # Canadian cross, just use what we found
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15077$as_echo "pre-installed" >&6; }
15078 fi
15079else
15080 ok=yes
15081 case " ${configdirs} " in
15082 *" binutils "*) ;;
15083 *) ok=no ;;
15084 esac
15085
15086 if test $ok = yes; then
15087 # An in-tree tool is available and we can use it
15088 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15090$as_echo "just compiled" >&6; }
15091 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15092 # We already found the complete path
15093 ac_dir=`dirname $READELF_FOR_TARGET`
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15095$as_echo "pre-installed in $ac_dir" >&6; }
15096 elif test "x$target" = "x$host"; then
15097 # We can use an host tool
15098 READELF_FOR_TARGET='$(READELF)'
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15100$as_echo "host tool" >&6; }
15101 else
15102 # We need a cross tool
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15104$as_echo "pre-installed" >&6; }
15105 fi
15106fi
15107
5213506e
RW
15108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
15109$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 15110if test "x${build}" != "x${host}" ; then
e8b05380
PB
15111 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15112 # We already found the complete path
172e41aa 15113 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15115$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15116 else
15117 # Canadian cross, just use what we found
5213506e
RW
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15119$as_echo "pre-installed" >&6; }
e8b05380 15120 fi
2abefe3d
PB
15121else
15122 ok=yes
15123 case " ${configdirs} " in
15124 *" binutils "*) ;;
15125 *) ok=no ;;
15126 esac
1c710c3c 15127
2abefe3d
PB
15128 if test $ok = yes; then
15129 # An in-tree tool is available and we can use it
455c8f48 15130 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15132$as_echo "just compiled" >&6; }
e8b05380
PB
15133 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15134 # We already found the complete path
172e41aa 15135 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15137$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15138 elif test "x$target" = "x$host"; then
15139 # We can use an host tool
15140 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15142$as_echo "host tool" >&6; }
2abefe3d
PB
15143 else
15144 # We need a cross tool
5213506e
RW
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15146$as_echo "pre-installed" >&6; }
2abefe3d
PB
15147 fi
15148fi
0b0dc272 15149
5213506e
RW
15150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
15151$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 15152if test "x${build}" != "x${host}" ; then
e8b05380
PB
15153 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15154 # We already found the complete path
172e41aa 15155 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15157$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15158 else
15159 # Canadian cross, just use what we found
5213506e
RW
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15161$as_echo "pre-installed" >&6; }
e8b05380 15162 fi
2abefe3d
PB
15163else
15164 ok=yes
15165 case " ${configdirs} " in
15166 *" binutils "*) ;;
15167 *) ok=no ;;
15168 esac
1c710c3c 15169
2abefe3d
PB
15170 if test $ok = yes; then
15171 # An in-tree tool is available and we can use it
15172 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15174$as_echo "just compiled" >&6; }
e8b05380
PB
15175 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15176 # We already found the complete path
172e41aa 15177 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15179$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15180 elif test "x$target" = "x$host"; then
15181 # We can use an host tool
15182 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15184$as_echo "host tool" >&6; }
2abefe3d
PB
15185 else
15186 # We need a cross tool
5213506e
RW
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15188$as_echo "pre-installed" >&6; }
2abefe3d 15189 fi
671aa708 15190fi
be912515 15191
5213506e
RW
15192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15193$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
15194if test "x${build}" != "x${host}" ; then
15195 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15196 # We already found the complete path
15197 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15199$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
15200 else
15201 # Canadian cross, just use what we found
5213506e
RW
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15203$as_echo "pre-installed" >&6; }
901119ae
KT
15204 fi
15205else
15206 ok=yes
15207 case " ${configdirs} " in
15208 *" binutils "*) ;;
15209 *) ok=no ;;
15210 esac
15211
15212 if test $ok = yes; then
15213 # An in-tree tool is available and we can use it
15214 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15216$as_echo "just compiled" >&6; }
901119ae
KT
15217 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15218 # We already found the complete path
15219 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15221$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
15222 elif test "x$target" = "x$host"; then
15223 # We can use an host tool
15224 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15226$as_echo "host tool" >&6; }
901119ae
KT
15227 else
15228 # We need a cross tool
5213506e
RW
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15230$as_echo "pre-installed" >&6; }
901119ae
KT
15231 fi
15232fi
15233
be912515
NN
15234
15235
2abefe3d 15236
0b0dc272 15237
671aa708
NN
15238# Certain tools may need extra flags.
15239AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15240RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15241NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15242
2abefe3d
PB
15243# When building target libraries, except in a Canadian cross, we use
15244# the same toolchain as the compiler we just built.
15245COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15246COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15247COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15248if test $host = $build; then
15249 case " $configdirs " in
15250 *" gcc "*)
15251 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15252 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15253 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15254 ;;
15255 esac
15256fi
15257
15258
15259
15260
15261
5213506e
RW
15262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15263$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15264# Check whether --enable-maintainer-mode was given.
15265if test "${enable_maintainer_mode+set}" = set; then :
15266 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
15267else
15268 USE_MAINTAINER_MODE=no
5213506e
RW
15269fi
15270
15271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15272$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
15273
15274
15275if test "$USE_MAINTAINER_MODE" = yes; then
15276 MAINTAINER_MODE_TRUE=
15277 MAINTAINER_MODE_FALSE='#'
15278else
15279 MAINTAINER_MODE_TRUE='#'
15280 MAINTAINER_MODE_FALSE=
1c710c3c 15281fi
ee03dc5e
AO
15282MAINT=$MAINTAINER_MODE_TRUE
15283
2805b53a
NN
15284# ---------------------
15285# GCC bootstrap support
15286# ---------------------
15287
15288# Stage specific cflags for build.
15289stage1_cflags="-g"
15290case $build in
15291 vax-*-*)
15292 case ${GCC} in
15293 yes) stage1_cflags="-g -Wa,-J" ;;
15294 *) stage1_cflags="-g -J" ;;
15295 esac ;;
2805b53a
NN
15296esac
15297
0b50988a 15298
2805b53a 15299
8efea775 15300# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
15301# Check whether --enable-stage1-checking was given.
15302if test "${enable_stage1_checking+set}" = set; then :
15303 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 15304else
e643dc23 15305 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
15306 # For --disable-checking or implicit --enable-checking=release, avoid
15307 # setting --enable-checking=gc in the default stage1 checking for LTO
15308 # bootstraps. See PR62077.
c10b5ea0
JJ
15309 case $BUILD_CONFIG in
15310 *lto*)
7db11a5a
JJ
15311 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15312 *)
15313 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 15314 esac
7db11a5a
JJ
15315 if test "x$enable_checking" = x && \
15316 test -d ${srcdir}/gcc && \
15317 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 15318 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 15319 fi
8efea775 15320else
e643dc23 15321 stage1_checking=--enable-checking=$enable_checking,types
8efea775 15322fi
5213506e 15323fi
8efea775
PB
15324
15325
2aeb72e9 15326
5213506e
RW
15327# Enable -Werror in bootstrap stage2 and later.
15328# Check whether --enable-werror was given.
15329if test "${enable_werror+set}" = set; then :
15330 enableval=$enable_werror;
09a9c095
NN
15331case ${enable_werror} in
15332 yes) stage2_werror_flag="--enable-werror-always" ;;
15333 *) stage2_werror_flag="" ;;
2805b53a
NN
15334esac
15335
afd88efc
ML
15336else
15337
01c712cb
ML
15338if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15339 case $BUILD_CONFIG in
15340 bootstrap-debug)
15341 stage2_werror_flag="--enable-werror-always" ;;
15342 "")
15343 stage2_werror_flag="--enable-werror-always" ;;
15344 esac
15345fi
15346
afd88efc
ML
15347fi
15348
15349
01c712cb 15350
2805b53a 15351
f2689b09
SE
15352# Specify what files to not compare during bootstrap.
15353
15354compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15355case "$target" in
15356 hppa*64*-*-hpux*) ;;
510555e0 15357 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
d91491e5 15358 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
15359esac
15360
15361
5213506e
RW
15362ac_config_files="$ac_config_files Makefile"
15363
1c710c3c 15364cat >confcache <<\_ACEOF
671aa708
NN
15365# This file is a shell script that caches the results of configure
15366# tests run on this system so they can be shared between configure
1c710c3c
DJ
15367# scripts and configure runs, see configure's option --config-cache.
15368# It is not useful on other systems. If it contains results you don't
15369# want to keep, you may remove or edit it.
671aa708 15370#
1c710c3c
DJ
15371# config.status only pays attention to the cache file if you give it
15372# the --recheck option to rerun configure.
671aa708 15373#
1c710c3c
DJ
15374# `ac_cv_env_foo' variables (set or unset) will be overridden when
15375# loading this file, other *unset* `ac_cv_foo' will be assigned the
15376# following values.
15377
15378_ACEOF
15379
671aa708
NN
15380# The following way of writing the cache mishandles newlines in values,
15381# but we know of no workaround that is simple, portable, and efficient.
5213506e 15382# So, we kill variables containing newlines.
671aa708
NN
15383# Ultrix sh set writes to stderr and can't be redirected directly,
15384# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
15385(
15386 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15387 eval ac_val=\$$ac_var
15388 case $ac_val in #(
15389 *${as_nl}*)
15390 case $ac_var in #(
15391 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15392$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15393 esac
15394 case $ac_var in #(
15395 _ | IFS | as_nl) ;; #(
15396 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15397 *) { eval $ac_var=; unset $ac_var;} ;;
15398 esac ;;
15399 esac
15400 done
15401
1c710c3c 15402 (set) 2>&1 |
5213506e
RW
15403 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15404 *${as_nl}ac_space=\ *)
15405 # `set' does not quote correctly, so add quotes: double-quote
15406 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
15407 sed -n \
15408 "s/'/'\\\\''/g;
15409 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 15410 ;; #(
1c710c3c
DJ
15411 *)
15412 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 15413 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 15414 ;;
5213506e
RW
15415 esac |
15416 sort
15417) |
1c710c3c 15418 sed '
5213506e 15419 /^ac_cv_env_/b end
1c710c3c 15420 t clear
5213506e 15421 :clear
1c710c3c
DJ
15422 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15423 t end
5213506e
RW
15424 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15425 :end' >>confcache
15426if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15427 if test -w "$cache_file"; then
22e05272 15428 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15430$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
15431 if test ! -f "$cache_file" || test -h "$cache_file"; then
15432 cat confcache >"$cache_file"
15433 else
15434 case $cache_file in #(
15435 */* | ?:*)
15436 mv -f confcache "$cache_file"$$ &&
15437 mv -f "$cache_file"$$ "$cache_file" ;; #(
15438 *)
15439 mv -f confcache "$cache_file" ;;
15440 esac
15441 fi
15442 fi
671aa708 15443 else
5213506e
RW
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15445$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 15446 fi
4977bab6 15447fi
671aa708 15448rm -f confcache
79c06341 15449
671aa708
NN
15450test "x$prefix" = xNONE && prefix=$ac_default_prefix
15451# Let make expand exec_prefix.
15452test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 15453
671aa708
NN
15454# Transform confdefs.h into DEFS.
15455# Protect against shell expansion while executing Makefile rules.
15456# Protect against Makefile macro expansion.
1c710c3c
DJ
15457#
15458# If the first sed substitution is executed (which looks for macros that
5213506e 15459# take arguments), then branch to the quote section. Otherwise,
1c710c3c 15460# look for a macro that doesn't take arguments.
5213506e
RW
15461ac_script='
15462:mline
15463/\\$/{
15464 N
15465 s,\\\n,,
15466 b mline
15467}
1c710c3c 15468t clear
5213506e
RW
15469:clear
15470s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 15471t quote
5213506e 15472s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 15473t quote
5213506e
RW
15474b any
15475:quote
15476s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15477s/\[/\\&/g
15478s/\]/\\&/g
15479s/\$/$$/g
15480H
15481:any
15482${
15483 g
15484 s/^\n//
15485 s/\n/ /g
15486 p
15487}
15488'
15489DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
15490
15491
15492ac_libobjs=
15493ac_ltlibobjs=
22e05272 15494U=
1c710c3c
DJ
15495for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15496 # 1. Remove the extension, and $U if already installed.
5213506e
RW
15497 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15498 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15499 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15500 # will be set to the directory where LIBOBJS objects are built.
15501 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15502 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
15503done
15504LIBOBJS=$ac_libobjs
fb0103e5 15505
1c710c3c 15506LTLIBOBJS=$ac_ltlibobjs
0b0dc272 15507
af71363e 15508
1c710c3c 15509
22e05272 15510: "${CONFIG_STATUS=./config.status}"
5213506e 15511ac_write_fail=0
1c710c3c
DJ
15512ac_clean_files_save=$ac_clean_files
15513ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
15514{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15515$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15516as_write_fail=0
15517cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
15518#! $SHELL
15519# Generated by $as_me.
671aa708 15520# Run this file to recreate the current configuration.
671aa708 15521# Compiler output produced by configure, useful for debugging
1c710c3c 15522# configure, is in config.log if it exists.
0b0dc272 15523
1c710c3c
DJ
15524debug=false
15525ac_cs_recheck=false
15526ac_cs_silent=false
1c710c3c 15527
5213506e
RW
15528SHELL=\${CONFIG_SHELL-$SHELL}
15529export SHELL
15530_ASEOF
15531cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15532## -------------------- ##
15533## M4sh Initialization. ##
15534## -------------------- ##
15535
15536# Be more Bourne compatible
15537DUALCASE=1; export DUALCASE # for MKS sh
15538if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
15539 emulate sh
15540 NULLCMD=:
5213506e 15541 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
15542 # is contrary to our usage. Disable this feature.
15543 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
15544 setopt NO_GLOB_SUBST
15545else
15546 case `(set -o) 2>/dev/null` in #(
15547 *posix*) :
15548 set -o posix ;; #(
15549 *) :
15550 ;;
15551esac
1c710c3c 15552fi
1c710c3c 15553
5213506e
RW
15554
15555as_nl='
15556'
15557export as_nl
15558# Printing a long string crashes Solaris 7 /usr/bin/printf.
15559as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15560as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15561as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15562# Prefer a ksh shell builtin over an external printf program on Solaris,
15563# but without wasting forks for bash or zsh.
15564if test -z "$BASH_VERSION$ZSH_VERSION" \
15565 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15566 as_echo='print -r --'
15567 as_echo_n='print -rn --'
15568elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15569 as_echo='printf %s\n'
15570 as_echo_n='printf %s'
15571else
15572 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15573 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15574 as_echo_n='/usr/ucb/echo -n'
15575 else
15576 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15577 as_echo_n_body='eval
15578 arg=$1;
15579 case $arg in #(
15580 *"$as_nl"*)
15581 expr "X$arg" : "X\\(.*\\)$as_nl";
15582 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15583 esac;
15584 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15585 '
15586 export as_echo_n_body
15587 as_echo_n='sh -c $as_echo_n_body as_echo'
15588 fi
15589 export as_echo_body
15590 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
15591fi
15592
5213506e
RW
15593# The user is always right.
15594if test "${PATH_SEPARATOR+set}" != set; then
15595 PATH_SEPARATOR=:
15596 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15597 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15598 PATH_SEPARATOR=';'
15599 }
15600fi
15601
15602
15603# IFS
15604# We need space, tab and new line, in precisely that order. Quoting is
15605# there to prevent editors from complaining about space-tab.
15606# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15607# splitting by setting IFS to empty value.)
15608IFS=" "" $as_nl"
15609
15610# Find who we are. Look in the path if we contain no directory separator.
22e05272 15611as_myself=
5213506e
RW
15612case $0 in #((
15613 *[\\/]* ) as_myself=$0 ;;
15614 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15615for as_dir in $PATH
15616do
15617 IFS=$as_save_IFS
15618 test -z "$as_dir" && as_dir=.
15619 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15620 done
15621IFS=$as_save_IFS
15622
15623 ;;
15624esac
15625# We did not find ourselves, most probably we were run as `sh COMMAND'
15626# in which case we are not to be found in the path.
15627if test "x$as_myself" = x; then
15628 as_myself=$0
15629fi
15630if test ! -f "$as_myself"; then
15631 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15632 exit 1
15633fi
1c710c3c 15634
5213506e
RW
15635# Unset variables that we do not need and which cause bugs (e.g. in
15636# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15637# suppresses any "Segmentation fault" message there. '((' could
15638# trigger a bug in pdksh 5.2.14.
15639for as_var in BASH_ENV ENV MAIL MAILPATH
15640do eval test x\${$as_var+set} = xset \
15641 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15642done
1c710c3c
DJ
15643PS1='$ '
15644PS2='> '
15645PS4='+ '
15646
15647# NLS nuisances.
5213506e
RW
15648LC_ALL=C
15649export LC_ALL
15650LANGUAGE=C
15651export LANGUAGE
15652
15653# CDPATH.
15654(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15655
15656
22e05272
JM
15657# as_fn_error STATUS ERROR [LINENO LOG_FD]
15658# ----------------------------------------
5213506e
RW
15659# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15660# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 15661# script with STATUS, using 1 if that was 0.
5213506e
RW
15662as_fn_error ()
15663{
22e05272
JM
15664 as_status=$1; test $as_status -eq 0 && as_status=1
15665 if test "$4"; then
15666 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15667 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1c710c3c 15668 fi
22e05272 15669 $as_echo "$as_me: error: $2" >&2
5213506e
RW
15670 as_fn_exit $as_status
15671} # as_fn_error
15672
15673
15674# as_fn_set_status STATUS
15675# -----------------------
15676# Set $? to STATUS, without forking.
15677as_fn_set_status ()
15678{
15679 return $1
15680} # as_fn_set_status
15681
15682# as_fn_exit STATUS
15683# -----------------
15684# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15685as_fn_exit ()
15686{
15687 set +e
15688 as_fn_set_status $1
15689 exit $1
15690} # as_fn_exit
15691
15692# as_fn_unset VAR
15693# ---------------
15694# Portably unset VAR.
15695as_fn_unset ()
15696{
15697 { eval $1=; unset $1;}
15698}
15699as_unset=as_fn_unset
15700# as_fn_append VAR VALUE
15701# ----------------------
15702# Append the text in VALUE to the end of the definition contained in VAR. Take
15703# advantage of any shell optimizations that allow amortized linear growth over
15704# repeated appends, instead of the typical quadratic growth present in naive
15705# implementations.
15706if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15707 eval 'as_fn_append ()
15708 {
15709 eval $1+=\$2
15710 }'
15711else
15712 as_fn_append ()
15713 {
15714 eval $1=\$$1\$2
15715 }
15716fi # as_fn_append
15717
15718# as_fn_arith ARG...
15719# ------------------
15720# Perform arithmetic evaluation on the ARGs, and store the result in the
15721# global $as_val. Take advantage of shells that can avoid forks. The arguments
15722# must be portable across $(()) and expr.
15723if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15724 eval 'as_fn_arith ()
15725 {
15726 as_val=$(( $* ))
15727 }'
15728else
15729 as_fn_arith ()
15730 {
15731 as_val=`expr "$@" || test $? -eq 1`
15732 }
15733fi # as_fn_arith
15734
1c710c3c 15735
5213506e
RW
15736if expr a : '\(a\)' >/dev/null 2>&1 &&
15737 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
15738 as_expr=expr
15739else
15740 as_expr=false
15741fi
15742
5213506e 15743if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
15744 as_basename=basename
15745else
15746 as_basename=false
15747fi
15748
5213506e
RW
15749if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15750 as_dirname=dirname
15751else
15752 as_dirname=false
15753fi
1c710c3c 15754
5213506e 15755as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
15756$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15757 X"$0" : 'X\(//\)$' \| \
5213506e
RW
15758 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15759$as_echo X/"$0" |
15760 sed '/^.*\/\([^/][^/]*\)\/*$/{
15761 s//\1/
15762 q
15763 }
15764 /^X\/\(\/\/\)$/{
15765 s//\1/
15766 q
15767 }
15768 /^X\/\(\/\).*/{
15769 s//\1/
15770 q
15771 }
15772 s/.*/./; q'`
2aeb72e9 15773
2aeb72e9
DD
15774# Avoid depending upon Character Ranges.
15775as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15776as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15777as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15778as_cr_digits='0123456789'
15779as_cr_alnum=$as_cr_Letters$as_cr_digits
15780
5213506e
RW
15781ECHO_C= ECHO_N= ECHO_T=
15782case `echo -n x` in #(((((
15783-n*)
15784 case `echo 'xy\c'` in
15785 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15786 xy) ECHO_C='\c';;
15787 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15788 ECHO_T=' ';;
15789 esac;;
15790*)
15791 ECHO_N='-n';;
1c710c3c
DJ
15792esac
15793
5213506e
RW
15794rm -f conf$$ conf$$.exe conf$$.file
15795if test -d conf$$.dir; then
15796 rm -f conf$$.dir/conf$$.file
1c710c3c 15797else
5213506e
RW
15798 rm -f conf$$.dir
15799 mkdir conf$$.dir 2>/dev/null
1c710c3c 15800fi
5213506e
RW
15801if (echo >conf$$.file) 2>/dev/null; then
15802 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 15803 as_ln_s='ln -s'
5213506e
RW
15804 # ... but there are two gotchas:
15805 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15806 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 15807 # In both cases, we have to default to `cp -pR'.
5213506e 15808 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 15809 as_ln_s='cp -pR'
5213506e
RW
15810 elif ln conf$$.file conf$$ 2>/dev/null; then
15811 as_ln_s=ln
15812 else
22e05272 15813 as_ln_s='cp -pR'
2aeb72e9 15814 fi
1c710c3c 15815else
22e05272 15816 as_ln_s='cp -pR'
1c710c3c 15817fi
5213506e
RW
15818rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15819rmdir conf$$.dir 2>/dev/null
15820
15821
15822# as_fn_mkdir_p
15823# -------------
15824# Create "$as_dir" as a directory, including parents if necessary.
15825as_fn_mkdir_p ()
15826{
15827
15828 case $as_dir in #(
15829 -*) as_dir=./$as_dir;;
15830 esac
15831 test -d "$as_dir" || eval $as_mkdir_p || {
15832 as_dirs=
15833 while :; do
15834 case $as_dir in #(
15835 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15836 *) as_qdir=$as_dir;;
15837 esac
15838 as_dirs="'$as_qdir' $as_dirs"
15839 as_dir=`$as_dirname -- "$as_dir" ||
15840$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15841 X"$as_dir" : 'X\(//\)[^/]' \| \
15842 X"$as_dir" : 'X\(//\)$' \| \
15843 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15844$as_echo X"$as_dir" |
15845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15846 s//\1/
15847 q
15848 }
15849 /^X\(\/\/\)[^/].*/{
15850 s//\1/
15851 q
15852 }
15853 /^X\(\/\/\)$/{
15854 s//\1/
15855 q
15856 }
15857 /^X\(\/\).*/{
15858 s//\1/
15859 q
15860 }
15861 s/.*/./; q'`
15862 test -d "$as_dir" && break
15863 done
15864 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 15865 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 15866
1c710c3c 15867
5213506e 15868} # as_fn_mkdir_p
1c710c3c 15869if mkdir -p . 2>/dev/null; then
5213506e 15870 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
15871else
15872 test -d ./-p && rmdir ./-p
15873 as_mkdir_p=false
15874fi
15875
22e05272
JM
15876
15877# as_fn_executable_p FILE
15878# -----------------------
15879# Test if FILE is an executable regular file.
15880as_fn_executable_p ()
15881{
15882 test -f "$1" && test -x "$1"
15883} # as_fn_executable_p
15884as_test_x='test -x'
15885as_executable_p=as_fn_executable_p
1c710c3c
DJ
15886
15887# Sed expression to map a string onto a valid CPP name.
15888as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15889
15890# Sed expression to map a string onto a valid variable name.
15891as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15892
15893
1c710c3c 15894exec 6>&1
5213506e
RW
15895## ----------------------------------- ##
15896## Main body of $CONFIG_STATUS script. ##
15897## ----------------------------------- ##
15898_ASEOF
15899test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15900
15901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15902# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15903# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15904# values after options handling.
15905ac_log="
1c710c3c 15906This file was extended by $as_me, which was
22e05272 15907generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
15908
15909 CONFIG_FILES = $CONFIG_FILES
15910 CONFIG_HEADERS = $CONFIG_HEADERS
15911 CONFIG_LINKS = $CONFIG_LINKS
15912 CONFIG_COMMANDS = $CONFIG_COMMANDS
15913 $ $0 $@
15914
5213506e
RW
15915on `(hostname || uname -n) 2>/dev/null | sed 1q`
15916"
15917
1c710c3c
DJ
15918_ACEOF
15919
5213506e
RW
15920case $ac_config_files in *"
15921"*) set x $ac_config_files; shift; ac_config_files=$*;;
15922esac
1c710c3c 15923
2aeb72e9 15924
2aeb72e9 15925
5213506e
RW
15926cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15927# Files that config.status was made for.
15928config_files="$ac_config_files"
1c710c3c 15929
5213506e 15930_ACEOF
2aeb72e9 15931
5213506e 15932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15933ac_cs_usage="\
5213506e
RW
15934\`$as_me' instantiates files and other configuration actions
15935from templates according to the current configuration. Unless the files
15936and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15937
5213506e 15938Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15939
15940 -h, --help print this help, then exit
5213506e 15941 -V, --version print version number and configuration settings, then exit
22e05272 15942 --config print configuration, then exit
5213506e
RW
15943 -q, --quiet, --silent
15944 do not print progress messages
1c710c3c
DJ
15945 -d, --debug don't remove temporary files
15946 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15947 --file=FILE[:TEMPLATE]
15948 instantiate the configuration file FILE
1c710c3c
DJ
15949
15950Configuration files:
15951$config_files
15952
5213506e 15953Report bugs to the package provider."
2aeb72e9 15954
5213506e
RW
15955_ACEOF
15956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 15957ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1c710c3c
DJ
15958ac_cs_version="\\
15959config.status
22e05272
JM
15960configured by $0, generated by GNU Autoconf 2.69,
15961 with options \\"\$ac_cs_config\\"
1c710c3c 15962
22e05272 15963Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
15964This config.status script is free software; the Free Software Foundation
15965gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15966
15967ac_pwd='$ac_pwd'
15968srcdir='$srcdir'
15969INSTALL='$INSTALL'
87264276 15970AWK='$AWK'
5213506e 15971test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15972_ACEOF
15973
5213506e
RW
15974cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15975# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15976ac_need_defaults=:
15977while test $# != 0
a4b9e93e 15978do
1c710c3c 15979 case $1 in
22e05272 15980 --*=?*)
5213506e
RW
15981 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15982 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15983 ac_shift=:
15984 ;;
22e05272
JM
15985 --*=)
15986 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15987 ac_optarg=
15988 ac_shift=:
15989 ;;
5213506e 15990 *)
1c710c3c
DJ
15991 ac_option=$1
15992 ac_optarg=$2
15993 ac_shift=shift
15994 ;;
1c710c3c
DJ
15995 esac
15996
15997 case $ac_option in
15998 # Handling of the options.
671aa708 15999 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 16000 ac_cs_recheck=: ;;
5213506e
RW
16001 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16002 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
16003 --config | --confi | --conf | --con | --co | --c )
16004 $as_echo "$ac_cs_config"; exit ;;
5213506e 16005 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
16006 debug=: ;;
16007 --file | --fil | --fi | --f )
16008 $ac_shift
5213506e
RW
16009 case $ac_optarg in
16010 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 16011 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
16012 esac
16013 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 16014 ac_need_defaults=false;;
5213506e
RW
16015 --he | --h | --help | --hel | -h )
16016 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
16017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16018 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16019 ac_cs_silent=: ;;
16020
16021 # This is an error.
22e05272 16022 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 16023Try \`$0 --help' for more information." ;;
1c710c3c 16024
5213506e
RW
16025 *) as_fn_append ac_config_targets " $1"
16026 ac_need_defaults=false ;;
1c710c3c 16027
0b0dc272 16028 esac
1c710c3c 16029 shift
0b0dc272
AM
16030done
16031
1c710c3c 16032ac_configure_extra_args=
0b0dc272 16033
1c710c3c
DJ
16034if $ac_cs_silent; then
16035 exec 6>/dev/null
16036 ac_configure_extra_args="$ac_configure_extra_args --silent"
16037fi
0b0dc272 16038
1c710c3c 16039_ACEOF
5213506e 16040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 16041if \$ac_cs_recheck; then
22e05272 16042 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
16043 shift
16044 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16045 CONFIG_SHELL='$SHELL'
16046 export CONFIG_SHELL
16047 exec "\$@"
1c710c3c
DJ
16048fi
16049
16050_ACEOF
5213506e
RW
16051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16052exec 5>>config.log
16053{
16054 echo
16055 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16056## Running $as_me. ##
16057_ASBOX
16058 $as_echo "$ac_log"
16059} >&5
1c710c3c 16060
5213506e
RW
16061_ACEOF
16062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
16063#
16064# INIT-COMMANDS
16065#
16066extrasub_build="$extrasub_build"
16067 extrasub_host="$extrasub_host"
16068 extrasub_target="$extrasub_target"
16069
5213506e 16070_ACEOF
1c710c3c 16071
5213506e 16072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 16073
5213506e 16074# Handling of arguments.
1c710c3c
DJ
16075for ac_config_target in $ac_config_targets
16076do
5213506e
RW
16077 case $ac_config_target in
16078 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16079
22e05272 16080 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
16081 esac
16082done
16083
5213506e 16084
1c710c3c
DJ
16085# If the user did not use the arguments to specify the items to instantiate,
16086# then the envvar interface is used. Set only those that are not.
16087# We use the long form for the default assignment because of an extremely
16088# bizarre bug on SunOS 4.1.3.
16089if $ac_need_defaults; then
16090 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16091fi
16092
16093# Have a temporary directory for convenience. Make it in the build tree
5213506e 16094# simply because there is no reason against having it here, and in addition,
1c710c3c 16095# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
16096# Hook for its removal unless debugging.
16097# Note that there is a small window in which the directory will not be cleaned:
16098# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
16099$debug ||
16100{
22e05272 16101 tmp= ac_tmp=
5213506e 16102 trap 'exit_status=$?
22e05272
JM
16103 : "${ac_tmp:=$tmp}"
16104 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
16105' 0
16106 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 16107}
1c710c3c
DJ
16108# Create a (secure) tmp directory for tmp files.
16109
16110{
5213506e 16111 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 16112 test -d "$tmp"
1c710c3c
DJ
16113} ||
16114{
5213506e
RW
16115 tmp=./conf$$-$RANDOM
16116 (umask 077 && mkdir "$tmp")
22e05272
JM
16117} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16118ac_tmp=$tmp
5213506e
RW
16119
16120# Set up the scripts for CONFIG_FILES section.
16121# No need to generate them if there are no CONFIG_FILES.
16122# This happens for instance with `./config.status config.h'.
16123if test -n "$CONFIG_FILES"; then
16124
16125if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16126 ac_cs_awk_getline=:
16127 ac_cs_awk_pipe_init=
16128 ac_cs_awk_read_file='
16129 while ((getline aline < (F[key])) > 0)
16130 print(aline)
16131 close(F[key])'
16132 ac_cs_awk_pipe_fini=
16133else
16134 ac_cs_awk_getline=false
16135 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16136 ac_cs_awk_read_file='
16137 print "|#_!!_#|"
16138 print "cat " F[key] " &&"
16139 '$ac_cs_awk_pipe_init
16140 # The final `:' finishes the AND list.
16141 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16142fi
16143ac_cr=`echo X | tr X '\015'`
16144# On cygwin, bash can eat \r inside `` if the user requested igncr.
16145# But we know of no other shell where ac_cr would be empty at this
16146# point, so we can use a bashism as a fallback.
16147if test "x$ac_cr" = x; then
16148 eval ac_cr=\$\'\\r\'
16149fi
16150ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16151if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 16152 ac_cs_awk_cr='\\r'
5213506e
RW
16153else
16154 ac_cs_awk_cr=$ac_cr
16155fi
16156
22e05272 16157echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
16158_ACEOF
16159
16160# Create commands to substitute file output variables.
1c710c3c 16161{
5213506e 16162 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22e05272 16163 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
5213506e
RW
16164 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16165 echo "_ACAWK" &&
16166 echo "_ACEOF"
16167} >conf$$files.sh &&
16168. ./conf$$files.sh ||
22e05272 16169 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e 16170rm -f conf$$files.sh
1c710c3c 16171
5213506e
RW
16172{
16173 echo "cat >conf$$subs.awk <<_ACEOF" &&
16174 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16175 echo "_ACEOF"
16176} >conf$$subs.sh ||
22e05272
JM
16177 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16178ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
16179ac_delim='%!_!# '
16180for ac_last_try in false false false false false :; do
16181 . ./conf$$subs.sh ||
22e05272 16182 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
16183
16184 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16185 if test $ac_delim_n = $ac_delim_num; then
16186 break
16187 elif $ac_last_try; then
22e05272 16188 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
16189 else
16190 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16191 fi
16192done
16193rm -f conf$$subs.sh
16194
16195cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16196cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 16197_ACEOF
5213506e
RW
16198sed -n '
16199h
16200s/^/S["/; s/!.*/"]=/
16201p
16202g
16203s/^[^!]*!//
16204:repl
16205t repl
16206s/'"$ac_delim"'$//
16207t delim
16208:nl
16209h
22e05272 16210s/\(.\{148\}\)..*/\1/
5213506e
RW
16211t more1
16212s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16213p
16214n
16215b repl
16216:more1
16217s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16218p
16219g
16220s/.\{148\}//
16221t nl
16222:delim
16223h
22e05272 16224s/\(.\{148\}\)..*/\1/
5213506e
RW
16225t more2
16226s/["\\]/\\&/g; s/^/"/; s/$/"/
16227p
16228b
16229:more2
16230s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16231p
16232g
16233s/.\{148\}//
16234t delim
16235' <conf$$subs.awk | sed '
16236/^[^""]/{
16237 N
16238 s/\n//
16239}
16240' >>$CONFIG_STATUS || ac_write_fail=1
16241rm -f conf$$subs.awk
16242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16243_ACAWK
22e05272 16244cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
16245 for (key in S) S_is_set[key] = 1
16246 FS = "\a"
16247 \$ac_cs_awk_pipe_init
16248}
16249{
16250 line = $ 0
16251 nfields = split(line, field, "@")
16252 substed = 0
16253 len = length(field[1])
16254 for (i = 2; i < nfields; i++) {
16255 key = field[i]
16256 keylen = length(key)
16257 if (S_is_set[key]) {
16258 value = S[key]
16259 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16260 len += length(value) + length(field[++i])
16261 substed = 1
16262 } else
16263 len += 1 + keylen
16264 }
16265 if (nfields == 3 && !substed) {
16266 key = field[2]
16267 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16268 \$ac_cs_awk_read_file
16269 next
16270 }
16271 }
16272 print line
16273}
16274\$ac_cs_awk_pipe_fini
16275_ACAWK
16276_ACEOF
16277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16278if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16279 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16280else
16281 cat
22e05272
JM
16282fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16283 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
16284_ACEOF
16285
22e05272
JM
16286# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16287# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
16288# trailing colons and then remove the whole line if VPATH becomes empty
16289# (actually we leave an empty line to preserve line numbers).
16290if test "x$srcdir" = x.; then
22e05272
JM
16291 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16292h
16293s///
16294s/^/:/
16295s/[ ]*$/:/
16296s/:\$(srcdir):/:/g
16297s/:\${srcdir}:/:/g
16298s/:@srcdir@:/:/g
16299s/^:*//
5213506e 16300s/:*$//
22e05272
JM
16301x
16302s/\(=[ ]*\).*/\1/
16303G
16304s/\n//
5213506e
RW
16305s/^[^=]*=[ ]*$//
16306}'
16307fi
2aeb72e9 16308
5213506e
RW
16309cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16310fi # test -n "$CONFIG_FILES"
2aeb72e9 16311
1c710c3c 16312
5213506e
RW
16313eval set X " :F $CONFIG_FILES "
16314shift
16315for ac_tag
16316do
16317 case $ac_tag in
16318 :[FHLC]) ac_mode=$ac_tag; continue;;
16319 esac
16320 case $ac_mode$ac_tag in
16321 :[FHL]*:*);;
22e05272 16322 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
16323 :[FH]-) ac_tag=-:-;;
16324 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16325 esac
16326 ac_save_IFS=$IFS
16327 IFS=:
16328 set x $ac_tag
16329 IFS=$ac_save_IFS
16330 shift
16331 ac_file=$1
16332 shift
79c06341 16333
5213506e
RW
16334 case $ac_mode in
16335 :L) ac_source=$1;;
16336 :[FH])
16337 ac_file_inputs=
16338 for ac_f
16339 do
16340 case $ac_f in
22e05272 16341 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
16342 *) # Look for the file first in the build tree, then in the source tree
16343 # (if the path is not absolute). The absolute path cannot be DOS-style,
16344 # because $ac_f cannot contain `:'.
16345 test -f "$ac_f" ||
16346 case $ac_f in
16347 [\\/$]*) false;;
16348 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16349 esac ||
22e05272 16350 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
16351 esac
16352 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16353 as_fn_append ac_file_inputs " '$ac_f'"
16354 done
1c710c3c 16355
5213506e
RW
16356 # Let's still pretend it is `configure' which instantiates (i.e., don't
16357 # use $as_me), people would be surprised to read:
16358 # /* config.h. Generated by config.status. */
16359 configure_input='Generated from '`
16360 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16361 `' by configure.'
16362 if test x"$ac_file" != x-; then
16363 configure_input="$ac_file. $configure_input"
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16365$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 16366 fi
5213506e
RW
16367 # Neutralize special characters interpreted by sed in replacement strings.
16368 case $configure_input in #(
16369 *\&* | *\|* | *\\* )
16370 ac_sed_conf_input=`$as_echo "$configure_input" |
16371 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16372 *) ac_sed_conf_input=$configure_input;;
16373 esac
11a67599 16374
5213506e 16375 case $ac_tag in
22e05272
JM
16376 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16377 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
16378 esac
16379 ;;
11a67599
ZW
16380 esac
16381
5213506e 16382 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
16383$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16384 X"$ac_file" : 'X\(//\)[^/]' \| \
16385 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
16386 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16387$as_echo X"$ac_file" |
16388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16389 s//\1/
16390 q
16391 }
16392 /^X\(\/\/\)[^/].*/{
16393 s//\1/
16394 q
16395 }
16396 /^X\(\/\/\)$/{
16397 s//\1/
16398 q
16399 }
16400 /^X\(\/\).*/{
16401 s//\1/
16402 q
16403 }
16404 s/.*/./; q'`
16405 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 16406 ac_builddir=.
0b0dc272 16407
5213506e
RW
16408case "$ac_dir" in
16409.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16410*)
16411 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16412 # A ".." for each directory in $ac_dir_suffix.
16413 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16414 case $ac_top_builddir_sub in
16415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16417 esac ;;
16418esac
16419ac_abs_top_builddir=$ac_pwd
16420ac_abs_builddir=$ac_pwd$ac_dir_suffix
16421# for backward compatibility:
16422ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
16423
16424case $srcdir in
5213506e 16425 .) # We are building in place.
1c710c3c 16426 ac_srcdir=.
5213506e
RW
16427 ac_top_srcdir=$ac_top_builddir_sub
16428 ac_abs_top_srcdir=$ac_pwd ;;
16429 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 16430 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
16431 ac_top_srcdir=$srcdir
16432 ac_abs_top_srcdir=$srcdir ;;
16433 *) # Relative name.
16434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16435 ac_top_srcdir=$ac_top_build_prefix$srcdir
16436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 16437esac
5213506e 16438ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 16439
0b0dc272 16440
5213506e
RW
16441 case $ac_mode in
16442 :F)
16443 #
16444 # CONFIG_FILE
16445 #
1c710c3c
DJ
16446
16447 case $INSTALL in
16448 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 16449 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 16450 esac
5213506e 16451_ACEOF
11a67599 16452
5213506e
RW
16453cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16454# If the template does not know about datarootdir, expand it.
16455# FIXME: This hack should be removed a few years after 2.60.
16456ac_datarootdir_hack=; ac_datarootdir_seen=
16457ac_sed_dataroot='
16458/datarootdir/ {
16459 p
16460 q
16461}
16462/@datadir@/p
16463/@docdir@/p
16464/@infodir@/p
16465/@localedir@/p
16466/@mandir@/p'
16467case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16468*datarootdir*) ac_datarootdir_seen=yes;;
16469*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16471$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 16472_ACEOF
5213506e
RW
16473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16474 ac_datarootdir_hack='
16475 s&@datadir@&$datadir&g
16476 s&@docdir@&$docdir&g
16477 s&@infodir@&$infodir&g
16478 s&@localedir@&$localedir&g
16479 s&@mandir@&$mandir&g
16480 s&\\\${datarootdir}&$datarootdir&g' ;;
16481esac
16482_ACEOF
16483
16484# Neutralize VPATH when `$srcdir' = `.'.
16485# Shell code in configure.ac might set extrasub.
16486# FIXME: do we really want to maintain this feature?
16487cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16488ac_sed_extra="$ac_vpsub
1c710c3c
DJ
16489$extrasub
16490_ACEOF
5213506e 16491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
16492:t
16493/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
16494s|@configure_input@|$ac_sed_conf_input|;t t
16495s&@top_builddir@&$ac_top_builddir_sub&;t t
16496s&@top_build_prefix@&$ac_top_build_prefix&;t t
16497s&@srcdir@&$ac_srcdir&;t t
16498s&@abs_srcdir@&$ac_abs_srcdir&;t t
16499s&@top_srcdir@&$ac_top_srcdir&;t t
16500s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16501s&@builddir@&$ac_builddir&;t t
16502s&@abs_builddir@&$ac_abs_builddir&;t t
16503s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16504s&@INSTALL@&$ac_INSTALL&;t t
16505$ac_datarootdir_hack
16506"
16507eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16508if $ac_cs_awk_getline; then
22e05272 16509 $AWK -f "$ac_tmp/subs.awk"
5213506e 16510else
22e05272
JM
16511 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16512fi \
16513 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
16514
16515test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
16516 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16517 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16518 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 16519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16520which seems to be undefined. Please make sure it is defined" >&5
5213506e 16521$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16522which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 16523
22e05272 16524 rm -f "$ac_tmp/stdin"
5213506e 16525 case $ac_file in
22e05272
JM
16526 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16527 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 16528 esac \
22e05272 16529 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 16530 ;;
11a67599 16531
11a67599 16532
79c06341 16533
5213506e
RW
16534 esac
16535
3e54529c
RW
16536
16537 case $ac_file$ac_mode in
16538 "Makefile":F) sed "$extrasub_build" Makefile |
16539 sed "$extrasub_host" |
16540 sed "$extrasub_target" > mf$$
16541 mv -f mf$$ Makefile ;;
16542
16543 esac
5213506e
RW
16544done # for ac_tag
16545
16546
16547as_fn_exit 0
1c710c3c 16548_ACEOF
1c710c3c
DJ
16549ac_clean_files=$ac_clean_files_save
16550
5213506e 16551test $ac_write_fail = 0 ||
22e05272 16552 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 16553
1c710c3c
DJ
16554
16555# configure is writing to config.log, and then calls config.status.
16556# config.status does its own redirection, appending to config.log.
16557# Unfortunately, on DOS this fails, as config.log is still kept open
16558# by configure, so config.status won't be able to write to it; its
16559# output is simply discarded. So we exec the FD to /dev/null,
16560# effectively closing config.log, so it can be properly (re)opened and
16561# appended to by config.status. When coming back to configure, we
16562# need to make the FD available again.
16563if test "$no_create" != yes; then
16564 ac_cs_success=:
16565 ac_config_status_args=
16566 test "$silent" = yes &&
16567 ac_config_status_args="$ac_config_status_args --quiet"
16568 exec 5>/dev/null
16569 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16570 exec 5>>config.log
16571 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16572 # would make configure fail if this is the last instruction.
22e05272 16573 $ac_cs_success || as_fn_exit 1
5213506e
RW
16574fi
16575if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16577$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 16578fi
79c06341 16579