]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
configure: Pass CPPFLAGS_FOR_BUILD to subdirs
[thirdparty/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
d0ac1c44
SM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 90as_myself=
81ecdfbb
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
c6b750e1
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d0ac1c44
SM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
d0ac1c44
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
81ecdfbb
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
8e957354
PB
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
81ecdfbb
RW
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
c6b750e1 211do
81ecdfbb
RW
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
d0ac1c44
SM
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
81ecdfbb
RW
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
c6b750e1 266 else
81ecdfbb
RW
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
c6b750e1 271 fi
81ecdfbb
RW
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
c6b750e1 301
81ecdfbb
RW
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
356
357
358} # as_fn_mkdir_p
d0ac1c44
SM
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
81ecdfbb
RW
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
d0ac1c44
SM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
81ecdfbb
RW
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 407# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
408as_fn_error ()
409{
d0ac1c44
SM
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 414 fi
d0ac1c44 415 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
421 as_expr=expr
422else
423 as_expr=false
424fi
425
81ecdfbb 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
427 as_basename=basename
428else
429 as_basename=false
430fi
431
81ecdfbb
RW
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
c6b750e1 437
81ecdfbb 438as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
c6b750e1 456
c6b750e1
DJ
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
c6b750e1 464
81ecdfbb
RW
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
c6b750e1 474 sed '
81ecdfbb
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
c6b750e1 479 N
81ecdfbb
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 482 t loop
81ecdfbb 483 s/-\n.*//
c6b750e1 484 ' >$as_me.lineno &&
81ecdfbb
RW
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
c6b750e1 487
d0ac1c44
SM
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
c6b750e1
DJ
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
c6b750e1
DJ
496 # Exit status is that of the last command.
497 exit
498}
499
81ecdfbb
RW
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
c6b750e1
DJ
511esac
512
81ecdfbb
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
c6b750e1 516else
81ecdfbb
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
c6b750e1 519fi
81ecdfbb
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 522 as_ln_s='ln -s'
81ecdfbb
RW
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 526 # In both cases, we have to default to `cp -pR'.
81ecdfbb 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 528 as_ln_s='cp -pR'
81ecdfbb
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
d0ac1c44 532 as_ln_s='cp -pR'
c6b750e1 533 fi
c6b750e1 534else
d0ac1c44 535 as_ln_s='cp -pR'
c6b750e1 536fi
81ecdfbb
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
539
540if mkdir -p . 2>/dev/null; then
81ecdfbb 541 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
d0ac1c44
SM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
c6b750e1
DJ
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
d0ac1c44
SM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
a0da8069 559
c6b750e1 560# Name of the host.
d0ac1c44 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
c6b750e1
DJ
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
c6b750e1
DJ
565#
566# Initializations.
567#
a0da8069 568ac_default_prefix=/usr/local
81ecdfbb 569ac_clean_files=
c6b750e1 570ac_config_libobj_dir=.
81ecdfbb 571LIBOBJS=
c6b750e1
DJ
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
c6b750e1
DJ
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
81ecdfbb 583PACKAGE_URL=
c6b750e1
DJ
584
585ac_unique_file="move-if-change"
81ecdfbb
RW
586enable_option_checking=no
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589compare_exclusions
590stage2_werror_flag
591stage1_checking
592stage1_cflags
593MAINT
594MAINTAINER_MODE_FALSE
595MAINTAINER_MODE_TRUE
596COMPILER_NM_FOR_TARGET
597COMPILER_LD_FOR_TARGET
598COMPILER_AS_FOR_TARGET
599FLAGS_FOR_TARGET
600RAW_CXX_FOR_TARGET
601WINDMC_FOR_TARGET
602WINDRES_FOR_TARGET
603STRIP_FOR_TARGET
b121d7d4 604READELF_FOR_TARGET
81ecdfbb
RW
605RANLIB_FOR_TARGET
606OBJDUMP_FOR_TARGET
6b91c541 607OBJCOPY_FOR_TARGET
81ecdfbb
RW
608NM_FOR_TARGET
609LIPO_FOR_TARGET
610LD_FOR_TARGET
611DLLTOOL_FOR_TARGET
612AS_FOR_TARGET
613AR_FOR_TARGET
e552509b 614GOC_FOR_TARGET
81ecdfbb 615GFORTRAN_FOR_TARGET
81ecdfbb
RW
616GCC_FOR_TARGET
617CXX_FOR_TARGET
618CC_FOR_TARGET
50ad1254
L
619RANLIB_PLUGIN_OPTION
620AR_PLUGIN_OPTION
de83289e 621PKG_CONFIG_PATH
b121d7d4 622READELF
81ecdfbb
RW
623OBJDUMP
624OBJCOPY
625WINDMC
626WINDRES
627STRIP
628RANLIB
629NM
630LIPO
631LD
632DLLTOOL
633AS
634AR
635RUNTEST
636EXPECT
637MAKEINFO
638FLEX
639LEX
640M4
641BISON
642YACC
81ecdfbb
RW
643WINDRES_FOR_BUILD
644WINDMC_FOR_BUILD
645RANLIB_FOR_BUILD
646NM_FOR_BUILD
647LD_FOR_BUILD
648LDFLAGS_FOR_BUILD
e552509b 649GOC_FOR_BUILD
81ecdfbb 650GFORTRAN_FOR_BUILD
81ecdfbb
RW
651DLLTOOL_FOR_BUILD
652CXX_FOR_BUILD
653CXXFLAGS_FOR_BUILD
e472ec9f 654CPPFLAGS_FOR_BUILD
81ecdfbb
RW
655CFLAGS_FOR_BUILD
656CC_FOR_BUILD
657AS_FOR_BUILD
658AR_FOR_BUILD
911e63d0 659target_configdirs
81ecdfbb 660configdirs
81ecdfbb 661build_configdirs
81ecdfbb
RW
662INSTALL_GDB_TK
663GDB_TK
664CONFIGURE_GDB_TK
665build_tooldir
666tooldir
667GCC_SHLIB_SUBDIR
668RPATH_ENVVAR
4074d5f2
RW
669target_configargs
670host_configargs
671build_configargs
96655cc4 672BUILD_CONFIG
91c1f14c 673LDFLAGS_FOR_TARGET
81ecdfbb
RW
674CXXFLAGS_FOR_TARGET
675CFLAGS_FOR_TARGET
676DEBUG_PREFIX_CFLAGS_FOR_TARGET
677SYSROOT_CFLAGS_FOR_TARGET
bf41f30d 678get_gcc_base_ver
e81d5d05 679extra_host_zlib_configure_flags
700d40ca 680extra_host_libiberty_configure_flags
1b6c0831 681stage1_languages
bf41f30d 682host_shared
1b6c0831
L
683extra_linker_plugin_flags
684extra_linker_plugin_configure_flags
7ec59b9e 685islinc
1b6c0831 686isllibs
81ecdfbb 687poststage1_ldflags
143754cd 688poststage1_libs
81ecdfbb 689stage1_ldflags
b3676d82 690stage1_libs
7ec59b9e 691extra_isl_gmp_configure_flags
81ecdfbb
RW
692extra_mpc_mpfr_configure_flags
693extra_mpc_gmp_configure_flags
694extra_mpfr_configure_flags
695gmpinc
696gmplibs
af019bfd
L
697PGO_BUILD_LTO_CFLAGS
698PGO_BUILD_USE_CFLAGS
699PGO_BUILD_GEN_CFLAGS
81ecdfbb
RW
700do_compare
701GNATMAKE
702GNATBIND
703ac_ct_CXX
704CXXFLAGS
705CXX
706OBJEXT
707EXEEXT
708ac_ct_CC
709CPPFLAGS
710LDFLAGS
711CFLAGS
712CC
1b6c0831 713extra_liboffloadmic_configure_flags
81ecdfbb
RW
714target_subdir
715host_subdir
716build_subdir
717build_libsubdir
8e957354
PB
718AWK
719SED
81ecdfbb
RW
720LN_S
721LN
722INSTALL_DATA
723INSTALL_SCRIPT
724INSTALL_PROGRAM
725target_os
726target_vendor
727target_cpu
728target
729host_os
730host_vendor
731host_cpu
732host
733target_noncanonical
734host_noncanonical
735build_noncanonical
736build_os
737build_vendor
738build_cpu
739build
740TOPLEVEL_CONFIGURE_ARGUMENTS
741target_alias
742host_alias
743build_alias
744LIBS
745ECHO_T
746ECHO_N
747ECHO_C
748DEFS
749mandir
750localedir
751libdir
752psdir
753pdfdir
754dvidir
755htmldir
756infodir
757docdir
758oldincludedir
759includedir
760localstatedir
761sharedstatedir
762sysconfdir
763datadir
764datarootdir
765libexecdir
766sbindir
767bindir
768program_transform_name
769prefix
770exec_prefix
771PACKAGE_URL
772PACKAGE_BUGREPORT
773PACKAGE_STRING
774PACKAGE_VERSION
775PACKAGE_TARNAME
776PACKAGE_NAME
777PATH_SEPARATOR
778SHELL'
779ac_subst_files='serialization_dependencies
780host_makefile_frag
781target_makefile_frag
782alphaieee_frag
783ospace_frag'
784ac_user_opts='
785enable_option_checking
786with_build_libsubdir
cf39cfc5 787with_system_zlib
1b6c0831
L
788enable_as_accelerator_for
789enable_offload_targets
81ecdfbb 790enable_gold
c7791212 791enable_ld
bb368aad 792enable_gprofng
edeefb67 793enable_compressed_debug_sections
e5f2f7d9 794enable_year2038
89a1e9c3
PB
795enable_libquadmath
796enable_libquadmath_support
81ecdfbb
RW
797enable_libada
798enable_libssp
f66a9a70 799enable_libstdcxx
1b6c0831 800enable_liboffloadmic
ffdd6afc 801enable_bootstrap
af019bfd 802enable_pgo_build
81ecdfbb
RW
803with_mpc
804with_mpc_include
805with_mpc_lib
806with_mpfr_dir
807with_mpfr
808with_mpfr_include
809with_mpfr_lib
810with_gmp_dir
811with_gmp
812with_gmp_include
813with_gmp_lib
81ecdfbb 814with_stage1_libs
c1a5d03a 815with_static_standard_libraries
b3676d82 816with_stage1_ldflags
81ecdfbb 817with_boot_libs
143754cd 818with_boot_ldflags
7ec59b9e
L
819with_isl
820with_isl_include
821with_isl_lib
822enable_isl_version_check
700d40ca 823enable_lto
1b6c0831
L
824enable_linker_plugin_configure_flags
825enable_linker_plugin_flags
bf41f30d 826enable_host_shared
81ecdfbb
RW
827enable_stage1_languages
828enable_objc_gc
05a13254
NC
829with_target_bdw_gc
830with_target_bdw_gc_include
831with_target_bdw_gc_lib
bf41f30d 832with_gcc_major_version_only
81ecdfbb
RW
833with_build_sysroot
834with_debug_prefix_map
96655cc4 835with_build_config
730af8ee 836enable_vtable_verify
81ecdfbb
RW
837enable_serial_configure
838with_build_time_tools
839enable_maintainer_mode
840enable_stage1_checking
841enable_werror
81ecdfbb
RW
842'
843 ac_precious_vars='build_alias
844host_alias
845target_alias
846CC
847CFLAGS
848LDFLAGS
849LIBS
850CPPFLAGS
851CXX
852CXXFLAGS
853CCC
4074d5f2
RW
854build_configargs
855host_configargs
856target_configargs
81ecdfbb
RW
857AR
858AS
859DLLTOOL
860LD
861LIPO
862NM
863RANLIB
864STRIP
865WINDRES
866WINDMC
867OBJCOPY
868OBJDUMP
b121d7d4 869READELF
81ecdfbb
RW
870CC_FOR_TARGET
871CXX_FOR_TARGET
872GCC_FOR_TARGET
81ecdfbb 873GFORTRAN_FOR_TARGET
e552509b 874GOC_FOR_TARGET
81ecdfbb
RW
875AR_FOR_TARGET
876AS_FOR_TARGET
877DLLTOOL_FOR_TARGET
878LD_FOR_TARGET
879LIPO_FOR_TARGET
880NM_FOR_TARGET
6b91c541 881OBJCOPY_FOR_TARGET
81ecdfbb
RW
882OBJDUMP_FOR_TARGET
883RANLIB_FOR_TARGET
b121d7d4 884READELF_FOR_TARGET
81ecdfbb
RW
885STRIP_FOR_TARGET
886WINDRES_FOR_TARGET
887WINDMC_FOR_TARGET'
888
a0da8069
NN
889
890# Initialize some variables set by options.
c6b750e1
DJ
891ac_init_help=
892ac_init_version=false
81ecdfbb
RW
893ac_unrecognized_opts=
894ac_unrecognized_sep=
a0da8069
NN
895# The variables have the same names as the options, with
896# dashes changed to underlines.
c6b750e1 897cache_file=/dev/null
a0da8069 898exec_prefix=NONE
a0da8069 899no_create=
a0da8069
NN
900no_recursion=
901prefix=NONE
902program_prefix=NONE
903program_suffix=NONE
904program_transform_name=s,x,x,
905silent=
906site=
907srcdir=
a0da8069
NN
908verbose=
909x_includes=NONE
910x_libraries=NONE
c6b750e1
DJ
911
912# Installation directory options.
913# These are left unexpanded so users can "make install exec_prefix=/foo"
914# and all the variables that are supposed to be based on exec_prefix
915# by default will actually change.
916# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 917# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
918bindir='${exec_prefix}/bin'
919sbindir='${exec_prefix}/sbin'
920libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
921datarootdir='${prefix}/share'
922datadir='${datarootdir}'
a0da8069
NN
923sysconfdir='${prefix}/etc'
924sharedstatedir='${prefix}/com'
925localstatedir='${prefix}/var'
a0da8069
NN
926includedir='${prefix}/include'
927oldincludedir='/usr/include'
81ecdfbb
RW
928docdir='${datarootdir}/doc/${PACKAGE}'
929infodir='${datarootdir}/info'
930htmldir='${docdir}'
931dvidir='${docdir}'
932pdfdir='${docdir}'
933psdir='${docdir}'
934libdir='${exec_prefix}/lib'
935localedir='${datarootdir}/locale'
936mandir='${datarootdir}/man'
252b5132 937
a0da8069 938ac_prev=
81ecdfbb 939ac_dashdash=
a0da8069
NN
940for ac_option
941do
a0da8069
NN
942 # If the previous option needs an argument, assign it.
943 if test -n "$ac_prev"; then
81ecdfbb 944 eval $ac_prev=\$ac_option
a0da8069
NN
945 ac_prev=
946 continue
947 fi
252b5132 948
81ecdfbb 949 case $ac_option in
d0ac1c44
SM
950 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951 *=) ac_optarg= ;;
952 *) ac_optarg=yes ;;
81ecdfbb 953 esac
a0da8069
NN
954
955 # Accept the important Cygnus configure options, so we can diagnose typos.
956
81ecdfbb
RW
957 case $ac_dashdash$ac_option in
958 --)
959 ac_dashdash=yes ;;
a0da8069
NN
960
961 -bindir | --bindir | --bindi | --bind | --bin | --bi)
962 ac_prev=bindir ;;
963 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 964 bindir=$ac_optarg ;;
a0da8069
NN
965
966 -build | --build | --buil | --bui | --bu)
c6b750e1 967 ac_prev=build_alias ;;
a0da8069 968 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 969 build_alias=$ac_optarg ;;
a0da8069
NN
970
971 -cache-file | --cache-file | --cache-fil | --cache-fi \
972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973 ac_prev=cache_file ;;
974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
976 cache_file=$ac_optarg ;;
977
978 --config-cache | -C)
979 cache_file=config.cache ;;
a0da8069 980
81ecdfbb 981 -datadir | --datadir | --datadi | --datad)
a0da8069 982 ac_prev=datadir ;;
81ecdfbb 983 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 984 datadir=$ac_optarg ;;
a0da8069 985
81ecdfbb
RW
986 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987 | --dataroo | --dataro | --datar)
988 ac_prev=datarootdir ;;
989 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991 datarootdir=$ac_optarg ;;
992
a0da8069 993 -disable-* | --disable-*)
81ecdfbb 994 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 995 # Reject names that are not valid shell variable names.
81ecdfbb 996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 997 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002"enable_$ac_useropt"
1003"*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=no ;;
1008
1009 -docdir | --docdir | --docdi | --doc | --do)
1010 ac_prev=docdir ;;
1011 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012 docdir=$ac_optarg ;;
1013
1014 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015 ac_prev=dvidir ;;
1016 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017 dvidir=$ac_optarg ;;
a0da8069
NN
1018
1019 -enable-* | --enable-*)
81ecdfbb 1020 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 1021 # Reject names that are not valid shell variable names.
81ecdfbb 1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1023 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1027 *"
1028"enable_$ac_useropt"
1029"*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
a0da8069 1032 esac
81ecdfbb 1033 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1034
1035 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037 | --exec | --exe | --ex)
1038 ac_prev=exec_prefix ;;
1039 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041 | --exec=* | --exe=* | --ex=*)
c6b750e1 1042 exec_prefix=$ac_optarg ;;
a0da8069
NN
1043
1044 -gas | --gas | --ga | --g)
1045 # Obsolete; use --with-gas.
1046 with_gas=yes ;;
1047
c6b750e1
DJ
1048 -help | --help | --hel | --he | -h)
1049 ac_init_help=long ;;
1050 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051 ac_init_help=recursive ;;
1052 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053 ac_init_help=short ;;
a0da8069
NN
1054
1055 -host | --host | --hos | --ho)
c6b750e1 1056 ac_prev=host_alias ;;
a0da8069 1057 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1058 host_alias=$ac_optarg ;;
a0da8069 1059
81ecdfbb
RW
1060 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1061 ac_prev=htmldir ;;
1062 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1063 | --ht=*)
1064 htmldir=$ac_optarg ;;
1065
a0da8069
NN
1066 -includedir | --includedir | --includedi | --included | --include \
1067 | --includ | --inclu | --incl | --inc)
1068 ac_prev=includedir ;;
1069 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1071 includedir=$ac_optarg ;;
a0da8069
NN
1072
1073 -infodir | --infodir | --infodi | --infod | --info | --inf)
1074 ac_prev=infodir ;;
1075 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1076 infodir=$ac_optarg ;;
a0da8069
NN
1077
1078 -libdir | --libdir | --libdi | --libd)
1079 ac_prev=libdir ;;
1080 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1081 libdir=$ac_optarg ;;
a0da8069
NN
1082
1083 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084 | --libexe | --libex | --libe)
1085 ac_prev=libexecdir ;;
1086 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1088 libexecdir=$ac_optarg ;;
a0da8069 1089
81ecdfbb
RW
1090 -localedir | --localedir | --localedi | --localed | --locale)
1091 ac_prev=localedir ;;
1092 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093 localedir=$ac_optarg ;;
1094
a0da8069 1095 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1096 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1097 ac_prev=localstatedir ;;
1098 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1099 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1100 localstatedir=$ac_optarg ;;
a0da8069
NN
1101
1102 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1103 ac_prev=mandir ;;
1104 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1105 mandir=$ac_optarg ;;
a0da8069
NN
1106
1107 -nfp | --nfp | --nf)
1108 # Obsolete; use --without-fp.
1109 with_fp=no ;;
1110
1111 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1112 | --no-cr | --no-c | -n)
a0da8069
NN
1113 no_create=yes ;;
1114
1115 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117 no_recursion=yes ;;
1118
1119 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121 | --oldin | --oldi | --old | --ol | --o)
1122 ac_prev=oldincludedir ;;
1123 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1126 oldincludedir=$ac_optarg ;;
a0da8069
NN
1127
1128 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1129 ac_prev=prefix ;;
1130 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1131 prefix=$ac_optarg ;;
a0da8069
NN
1132
1133 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134 | --program-pre | --program-pr | --program-p)
1135 ac_prev=program_prefix ;;
1136 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1138 program_prefix=$ac_optarg ;;
a0da8069
NN
1139
1140 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141 | --program-suf | --program-su | --program-s)
1142 ac_prev=program_suffix ;;
1143 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1145 program_suffix=$ac_optarg ;;
a0da8069
NN
1146
1147 -program-transform-name | --program-transform-name \
1148 | --program-transform-nam | --program-transform-na \
1149 | --program-transform-n | --program-transform- \
1150 | --program-transform | --program-transfor \
1151 | --program-transfo | --program-transf \
1152 | --program-trans | --program-tran \
1153 | --progr-tra | --program-tr | --program-t)
1154 ac_prev=program_transform_name ;;
1155 -program-transform-name=* | --program-transform-name=* \
1156 | --program-transform-nam=* | --program-transform-na=* \
1157 | --program-transform-n=* | --program-transform-=* \
1158 | --program-transform=* | --program-transfor=* \
1159 | --program-transfo=* | --program-transf=* \
1160 | --program-trans=* | --program-tran=* \
1161 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1162 program_transform_name=$ac_optarg ;;
a0da8069 1163
81ecdfbb
RW
1164 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1165 ac_prev=pdfdir ;;
1166 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167 pdfdir=$ac_optarg ;;
1168
1169 -psdir | --psdir | --psdi | --psd | --ps)
1170 ac_prev=psdir ;;
1171 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172 psdir=$ac_optarg ;;
1173
a0da8069
NN
1174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175 | -silent | --silent | --silen | --sile | --sil)
1176 silent=yes ;;
1177
1178 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1179 ac_prev=sbindir ;;
1180 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1181 | --sbi=* | --sb=*)
c6b750e1 1182 sbindir=$ac_optarg ;;
a0da8069
NN
1183
1184 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186 | --sharedst | --shareds | --shared | --share | --shar \
1187 | --sha | --sh)
1188 ac_prev=sharedstatedir ;;
1189 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1192 | --sha=* | --sh=*)
c6b750e1 1193 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1194
1195 -site | --site | --sit)
1196 ac_prev=site ;;
1197 -site=* | --site=* | --sit=*)
c6b750e1 1198 site=$ac_optarg ;;
a0da8069
NN
1199
1200 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1201 ac_prev=srcdir ;;
1202 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1203 srcdir=$ac_optarg ;;
a0da8069
NN
1204
1205 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206 | --syscon | --sysco | --sysc | --sys | --sy)
1207 ac_prev=sysconfdir ;;
1208 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1210 sysconfdir=$ac_optarg ;;
a0da8069
NN
1211
1212 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1213 ac_prev=target_alias ;;
a0da8069 1214 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1215 target_alias=$ac_optarg ;;
a0da8069
NN
1216
1217 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1218 verbose=yes ;;
1219
c6b750e1
DJ
1220 -version | --version | --versio | --versi | --vers | -V)
1221 ac_init_version=: ;;
a0da8069
NN
1222
1223 -with-* | --with-*)
81ecdfbb 1224 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1225 # Reject names that are not valid shell variable names.
81ecdfbb 1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1227 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1231 *"
1232"with_$ac_useropt"
1233"*) ;;
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
a0da8069 1236 esac
81ecdfbb 1237 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1238
1239 -without-* | --without-*)
81ecdfbb 1240 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1241 # Reject names that are not valid shell variable names.
81ecdfbb 1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1243 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1247 *"
1248"with_$ac_useropt"
1249"*) ;;
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1252 esac
1253 eval with_$ac_useropt=no ;;
a0da8069
NN
1254
1255 --x)
1256 # Obsolete; use --with-x.
1257 with_x=yes ;;
1258
1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260 | --x-incl | --x-inc | --x-in | --x-i)
1261 ac_prev=x_includes ;;
1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1264 x_includes=$ac_optarg ;;
a0da8069
NN
1265
1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268 ac_prev=x_libraries ;;
1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1271 x_libraries=$ac_optarg ;;
a0da8069 1272
d0ac1c44
SM
1273 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1274Try \`$0 --help' for more information"
a0da8069
NN
1275 ;;
1276
c6b750e1
DJ
1277 *=*)
1278 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1279 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1280 case $ac_envvar in #(
1281 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1282 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1283 esac
1284 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1285 export $ac_envvar ;;
1286
a0da8069 1287 *)
c6b750e1 1288 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1289 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1291 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1292 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
a0da8069
NN
1293 ;;
1294
1295 esac
1296done
1297
1298if test -n "$ac_prev"; then
c6b750e1 1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1300 as_fn_error $? "missing argument to $ac_option"
a0da8069 1301fi
a0da8069 1302
81ecdfbb
RW
1303if test -n "$ac_unrecognized_opts"; then
1304 case $enable_option_checking in
1305 no) ;;
d0ac1c44 1306 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1307 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1308 esac
81ecdfbb 1309fi
a0da8069 1310
81ecdfbb
RW
1311# Check all directory arguments for consistency.
1312for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313 datadir sysconfdir sharedstatedir localstatedir includedir \
1314 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315 libdir localedir mandir
a0da8069 1316do
81ecdfbb
RW
1317 eval ac_val=\$$ac_var
1318 # Remove trailing slashes.
1319 case $ac_val in
1320 */ )
1321 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1322 eval $ac_var=\$ac_val;;
1323 esac
1324 # Be sure to have absolute directory names.
c6b750e1 1325 case $ac_val in
81ecdfbb
RW
1326 [\\/$]* | ?:[\\/]* ) continue;;
1327 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1328 esac
d0ac1c44 1329 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1330done
1331
c6b750e1
DJ
1332# There might be people who depend on the old broken behavior: `$host'
1333# used to hold the argument of --host etc.
1334# FIXME: To remove some day.
1335build=$build_alias
1336host=$host_alias
1337target=$target_alias
376a0e54 1338
c6b750e1
DJ
1339# FIXME: To remove some day.
1340if test "x$host_alias" != x; then
1341 if test "x$build_alias" = x; then
1342 cross_compiling=maybe
c6b750e1
DJ
1343 elif test "x$build_alias" != "x$host_alias"; then
1344 cross_compiling=yes
1345 fi
1346fi
1347
1348ac_tool_prefix=
1349test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350
1351test "$silent" = yes && exec 6>/dev/null
a0da8069 1352
a0da8069 1353
81ecdfbb
RW
1354ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355ac_ls_di=`ls -di .` &&
1356ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1357 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1358test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1359 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1360
1361
a0da8069
NN
1362# Find the source files, if location was not specified.
1363if test -z "$srcdir"; then
1364 ac_srcdir_defaulted=yes
81ecdfbb
RW
1365 # Try the directory containing this script, then the parent directory.
1366 ac_confdir=`$as_dirname -- "$as_myself" ||
1367$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368 X"$as_myself" : 'X\(//\)[^/]' \| \
1369 X"$as_myself" : 'X\(//\)$' \| \
1370 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371$as_echo X"$as_myself" |
1372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\/\)[^/].*/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\/\)$/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\).*/{
1385 s//\1/
1386 q
1387 }
1388 s/.*/./; q'`
a0da8069 1389 srcdir=$ac_confdir
81ecdfbb 1390 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1391 srcdir=..
1392 fi
1393else
1394 ac_srcdir_defaulted=no
1395fi
81ecdfbb
RW
1396if test ! -r "$srcdir/$ac_unique_file"; then
1397 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1398 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1399fi
1400ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401ac_abs_confdir=`(
d0ac1c44 1402 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1403 pwd)`
1404# When building in place, set srcdir=.
1405if test "$ac_abs_confdir" = "$ac_pwd"; then
1406 srcdir=.
1407fi
1408# Remove unnecessary trailing slashes from srcdir.
1409# Double slashes in file names in object file debugging info
1410# mess up M-x gdb in Emacs.
1411case $srcdir in
1412*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413esac
6d0cd39e
AM
1414case $srcdir in
1415 *" "*)
d0ac1c44 1416 as_fn_error $? "path to source, $srcdir, contains spaces"
6d0cd39e
AM
1417 ;;
1418esac
9cc8ae67
PB
1419ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1420
81ecdfbb
RW
1421for ac_var in $ac_precious_vars; do
1422 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_${ac_var}_value=\$${ac_var}
1424 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426done
c6b750e1
DJ
1427
1428#
1429# Report the --help message.
1430#
1431if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1434 cat <<_ACEOF
1435\`configure' configures this package to adapt to many kinds of systems.
1436
1437Usage: $0 [OPTION]... [VAR=VALUE]...
1438
1439To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440VAR=VALUE. See below for descriptions of some of the useful variables.
1441
1442Defaults for the options are specified in brackets.
1443
1444Configuration:
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
d0ac1c44 1449 -q, --quiet, --silent do not print \`checking ...' messages
c6b750e1
DJ
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454
c6b750e1
DJ
1455Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1457 [$ac_default_prefix]
c6b750e1 1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1459 [PREFIX]
c6b750e1
DJ
1460
1461By default, \`make install' will install all the files in
1462\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464for instance \`--prefix=\$HOME'.
1465
1466For better control, use the options below.
1467
1468Fine tuning of the installation directories:
81ecdfbb
RW
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --libdir=DIR object code libraries [EPREFIX/lib]
1476 --includedir=DIR C header files [PREFIX/include]
1477 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480 --infodir=DIR info documentation [DATAROOTDIR/info]
1481 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482 --mandir=DIR man documentation [DATAROOTDIR/man]
1483 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1484 --htmldir=DIR html documentation [DOCDIR]
1485 --dvidir=DIR dvi documentation [DOCDIR]
1486 --pdfdir=DIR pdf documentation [DOCDIR]
1487 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1488_ACEOF
1489
1490 cat <<\_ACEOF
1491
1492Program names:
1493 --program-prefix=PREFIX prepend PREFIX to installed program names
1494 --program-suffix=SUFFIX append SUFFIX to installed program names
1495 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1496
1497System types:
1498 --build=BUILD configure for building on BUILD [guessed]
1499 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1500 --target=TARGET configure for building compilers for TARGET [HOST]
1501_ACEOF
a0da8069 1502fi
a0da8069 1503
c6b750e1
DJ
1504if test -n "$ac_init_help"; then
1505
1506 cat <<\_ACEOF
1507
1508Optional Features:
81ecdfbb 1509 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1b6c0831
L
1512 --enable-as-accelerator-for=ARG
1513 build as offload target compiler. Specify offload
1514 host triple by ARG
1515 --enable-offload-targets=LIST
1516 enable offloading to devices from comma-separated
1517 LIST of TARGET[=DIR]. Use optional path to find
1518 offload target compiler during the build
c7791212 1519 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1520 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
bb368aad 1521 --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
6c3bc0f8 1522 --enable-compressed-debug-sections={all,gas,gold,ld,none}
edeefb67
L
1523 Enable compressed debug sections for gas, gold or ld
1524 by default
e5f2f7d9 1525 --enable-year2038 enable support for timestamps past the year 2038
89a1e9c3
PB
1526 --disable-libquadmath do not build libquadmath directory
1527 --disable-libquadmath-support
1528 disable libquadmath support for Fortran
521ec477
DD
1529 --enable-libada build libada directory
1530 --enable-libssp build libssp directory
f66a9a70 1531 --disable-libstdcxx do not build libstdc++-v3 directory
1b6c0831
L
1532 --enable-liboffloadmic=ARG
1533 build liboffloadmic [ARG={no,host,target}]
ffdd6afc 1534 --enable-bootstrap enable bootstrapping [yes if native build]
af019bfd
L
1535 --enable-pgo-build[=lto]
1536 enable the PGO build
7ec59b9e 1537 --disable-isl-version-check
4849dfd8 1538 disable check for isl version
700d40ca 1539 --enable-lto enable link time optimization support
1b6c0831
L
1540 --enable-linker-plugin-configure-flags=FLAGS
1541 additional flags for configuring linker plugins
1542 [none]
1543 --enable-linker-plugin-flags=FLAGS
1544 additional flags for configuring and building linker
1545 plugins [none]
bf41f30d 1546 --enable-host-shared build host code as shared libraries
7837304f
AS
1547 --enable-stage1-languages[=all]
1548 choose additional languages to build during stage1.
1549 Mostly useful for compiler development
1550 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1551 Objective-C runtime
ce6c656d 1552 --enable-vtable-verify Enable vtable verification feature
521ec477 1553 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1554 force sequential configuration of sub-packages for
1555 the host, target or build machine, or all
1556 sub-packages
1557 --enable-maintainer-mode
1558 enable make rules and dependencies not useful (and
1559 sometimes confusing) to the casual installer
1560 --enable-stage1-checking[=all]
1561 choose additional checking for stage1 of the
1562 compiler
c6b750e1
DJ
1563 --enable-werror enable -Werror in bootstrap stage2 and later
1564
1565Optional Packages:
1566 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1567 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1568 --with-build-libsubdir=DIR Directory where to find libraries for build system
cf39cfc5 1569 --with-system-zlib use installed libz
7837304f
AS
1570 --with-mpc=PATH specify prefix directory for installed MPC package.
1571 Equivalent to --with-mpc-include=PATH/include plus
1572 --with-mpc-lib=PATH/lib
1573 --with-mpc-include=PATH specify directory for installed MPC include files
1574 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1575 --with-mpfr-dir=PATH this option has been REMOVED
1576 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1577 Equivalent to --with-mpfr-include=PATH/include plus
1578 --with-mpfr-lib=PATH/lib
c6b750e1 1579 --with-mpfr-include=PATH
521ec477
DD
1580 specify directory for installed MPFR include files
1581 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1582 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1583 --with-gmp=PATH specify prefix directory for the installed GMP
1584 package. Equivalent to
1585 --with-gmp-include=PATH/include plus
1586 --with-gmp-lib=PATH/lib
521ec477
DD
1587 --with-gmp-include=PATH specify directory for installed GMP include files
1588 --with-gmp-lib=PATH specify directory for the installed GMP library
b3676d82 1589 --with-stage1-libs=LIBS libraries for stage1
c1a5d03a
TT
1590 --with-static-standard-libraries
1591 use -static-libstdc++ and -static-libgcc
1592 (default=auto)
7837304f
AS
1593 --with-stage1-ldflags=FLAGS
1594 linker flags for stage1
7837304f
AS
1595 --with-boot-libs=LIBS libraries for stage2 and later
1596 --with-boot-ldflags=FLAGS
1597 linker flags for stage2 and later
4849dfd8 1598 --with-isl=PATH Specify prefix directory for the installed isl
7837304f 1599 package. Equivalent to
7ec59b9e
L
1600 --with-isl-include=PATH/include plus
1601 --with-isl-lib=PATH/lib
4849dfd8
NC
1602 --with-isl-include=PATH Specify directory for installed isl include files
1603 --with-isl-lib=PATH Specify the directory for the installed isl library
05a13254
NC
1604 --with-target-bdw-gc=PATHLIST
1605 specify prefix directory for installed bdw-gc
1606 package. Equivalent to
1607 --with-target-bdw-gc-include=PATH/include plus
1608 --with-target-bdw-gc-lib=PATH/lib
1609 --with-target-bdw-gc-include=PATHLIST
1610 specify directories for installed bdw-gc include
1611 files
1612 --with-target-bdw-gc-lib=PATHLIST
1613 specify directories for installed bdw-gc library
bf41f30d
NC
1614 --with-gcc-major-version-only
1615 use only GCC major number in filesystem paths
521ec477 1616 --with-build-sysroot=SYSROOT
c6b750e1 1617 use sysroot as the system root during the build
8a6ee3ab 1618 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1619 map A to B, C to D ... in debug information
1620 --with-build-config='NAME NAME2...'
1621 use config/NAME.mk build configuration
521ec477 1622 --with-build-time-tools=PATH
c6b750e1 1623 use given path to find target tools during the build
c6b750e1
DJ
1624
1625Some influential environment variables:
1626 CC C compiler command
1627 CFLAGS C compiler flags
1628 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1629 nonstandard directory <lib dir>
81ecdfbb 1630 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1631 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1632 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1633 CXX C++ compiler command
1634 CXXFLAGS C++ compiler flags
4074d5f2
RW
1635 build_configargs
1636 additional configure arguments for build directories
1637 host_configargs
1638 additional configure arguments for host directories
1639 target_configargs
1640 additional configure arguments for target directories
9a819804
AO
1641 AR AR for the host
1642 AS AS for the host
1643 DLLTOOL DLLTOOL for the host
1644 LD LD for the host
1645 LIPO LIPO for the host
1646 NM NM for the host
1647 RANLIB RANLIB for the host
1648 STRIP STRIP for the host
1649 WINDRES WINDRES for the host
0c24b341 1650 WINDMC WINDMC for the host
9a819804
AO
1651 OBJCOPY OBJCOPY for the host
1652 OBJDUMP OBJDUMP for the host
b121d7d4 1653 READELF READELF for the host
9a819804
AO
1654 CC_FOR_TARGET
1655 CC for the target
1656 CXX_FOR_TARGET
1657 CXX for the target
1658 GCC_FOR_TARGET
1659 GCC for the target
9a819804
AO
1660 GFORTRAN_FOR_TARGET
1661 GFORTRAN for the target
e552509b
ILT
1662 GOC_FOR_TARGET
1663 GOC for the target
9a819804
AO
1664 AR_FOR_TARGET
1665 AR for the target
1666 AS_FOR_TARGET
1667 AS for the target
1668 DLLTOOL_FOR_TARGET
1669 DLLTOOL for the target
1670 LD_FOR_TARGET
1671 LD for the target
1672 LIPO_FOR_TARGET
1673 LIPO for the target
1674 NM_FOR_TARGET
1675 NM for the target
6b91c541
AP
1676 OBJCOPY_FOR_TARGET
1677 OBJCOPY for the target
9a819804
AO
1678 OBJDUMP_FOR_TARGET
1679 OBJDUMP for the target
1680 RANLIB_FOR_TARGET
1681 RANLIB for the target
b121d7d4
DD
1682 READELF_FOR_TARGET
1683 READELF for the target
9a819804
AO
1684 STRIP_FOR_TARGET
1685 STRIP for the target
1686 WINDRES_FOR_TARGET
1687 WINDRES for the target
0c24b341
NC
1688 WINDMC_FOR_TARGET
1689 WINDMC for the target
c6b750e1
DJ
1690
1691Use these variables to override the choices made by `configure' or to help
1692it to find libraries and programs with nonstandard names/locations.
1693
81ecdfbb 1694Report bugs to the package provider.
c6b750e1 1695_ACEOF
81ecdfbb 1696ac_status=$?
c6b750e1
DJ
1697fi
1698
1699if test "$ac_init_help" = "recursive"; then
1700 # If there are subdirs, report their specific --help.
c6b750e1 1701 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1702 test -d "$ac_dir" ||
1703 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1704 continue
c6b750e1
DJ
1705 ac_builddir=.
1706
81ecdfbb
RW
1707case "$ac_dir" in
1708.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709*)
1710 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1711 # A ".." for each directory in $ac_dir_suffix.
1712 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1713 case $ac_top_builddir_sub in
1714 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1716 esac ;;
1717esac
1718ac_abs_top_builddir=$ac_pwd
1719ac_abs_builddir=$ac_pwd$ac_dir_suffix
1720# for backward compatibility:
1721ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1722
1723case $srcdir in
81ecdfbb 1724 .) # We are building in place.
c6b750e1 1725 ac_srcdir=.
81ecdfbb
RW
1726 ac_top_srcdir=$ac_top_builddir_sub
1727 ac_abs_top_srcdir=$ac_pwd ;;
1728 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1729 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1730 ac_top_srcdir=$srcdir
1731 ac_abs_top_srcdir=$srcdir ;;
1732 *) # Relative name.
1733 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1734 ac_top_srcdir=$ac_top_build_prefix$srcdir
1735 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1736esac
81ecdfbb
RW
1737ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1738
1739 cd "$ac_dir" || { ac_status=$?; continue; }
1740 # Check for guested configure.
1741 if test -f "$ac_srcdir/configure.gnu"; then
1742 echo &&
1743 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1744 elif test -f "$ac_srcdir/configure"; then
1745 echo &&
1746 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1747 else
81ecdfbb
RW
1748 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1749 fi || ac_status=$?
1750 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1751 done
1752fi
1753
81ecdfbb 1754test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1755if $ac_init_version; then
1756 cat <<\_ACEOF
81ecdfbb 1757configure
d0ac1c44 1758generated by GNU Autoconf 2.69
c6b750e1 1759
d0ac1c44 1760Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
1761This configure script is free software; the Free Software Foundation
1762gives unlimited permission to copy, distribute and modify it.
1763_ACEOF
81ecdfbb 1764 exit
c6b750e1 1765fi
81ecdfbb
RW
1766
1767## ------------------------ ##
1768## Autoconf initialization. ##
1769## ------------------------ ##
1770
1771# ac_fn_c_try_compile LINENO
1772# --------------------------
1773# Try to compile conftest.$ac_ext, and return whether this succeeded.
1774ac_fn_c_try_compile ()
1775{
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 rm -f conftest.$ac_objext
1778 if { { ac_try="$ac_compile"
1779case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782esac
1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784$as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_compile") 2>conftest.err
1786 ac_status=$?
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1791 fi
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && {
1794 test -z "$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1796 } && test -s conftest.$ac_objext; then :
1797 ac_retval=0
1798else
1799 $as_echo "$as_me: failed program was:" >&5
1800sed 's/^/| /' conftest.$ac_ext >&5
1801
1802 ac_retval=1
1803fi
d0ac1c44
SM
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
81ecdfbb
RW
1806
1807} # ac_fn_c_try_compile
1808
1809# ac_fn_cxx_try_compile LINENO
1810# ----------------------------
1811# Try to compile conftest.$ac_ext, and return whether this succeeded.
1812ac_fn_cxx_try_compile ()
1813{
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 rm -f conftest.$ac_objext
1816 if { { ac_try="$ac_compile"
1817case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820esac
1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822$as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_compile") 2>conftest.err
1824 ac_status=$?
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1829 fi
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && {
1832 test -z "$ac_cxx_werror_flag" ||
1833 test ! -s conftest.err
1834 } && test -s conftest.$ac_objext; then :
1835 ac_retval=0
1836else
1837 $as_echo "$as_me: failed program was:" >&5
1838sed 's/^/| /' conftest.$ac_ext >&5
1839
1840 ac_retval=1
1841fi
d0ac1c44
SM
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
81ecdfbb
RW
1844
1845} # ac_fn_cxx_try_compile
1846
b3676d82
EB
1847# ac_fn_cxx_try_link LINENO
1848# -------------------------
1849# Try to link conftest.$ac_ext, and return whether this succeeded.
1850ac_fn_cxx_try_link ()
1851{
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext conftest$ac_exeext
1854 if { { ac_try="$ac_link"
1855case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858esac
1859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860$as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>conftest.err
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1867 fi
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_cxx_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest$ac_exeext && {
1873 test "$cross_compiling" = yes ||
d0ac1c44 1874 test -x conftest$ac_exeext
b3676d82
EB
1875 }; then :
1876 ac_retval=0
1877else
1878 $as_echo "$as_me: failed program was:" >&5
1879sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 ac_retval=1
1882fi
1883 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1884 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1885 # interfere with the next link command; also delete a directory that is
1886 # left behind by Apple's compiler. We do this before executing the actions.
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
b3676d82
EB
1890
1891} # ac_fn_cxx_try_link
1892
81ecdfbb
RW
1893# ac_fn_c_try_link LINENO
1894# -----------------------
1895# Try to link conftest.$ac_ext, and return whether this succeeded.
1896ac_fn_c_try_link ()
1897{
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext conftest$ac_exeext
1900 if { { ac_try="$ac_link"
1901case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904esac
1905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906$as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1913 fi
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_c_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest$ac_exeext && {
1919 test "$cross_compiling" = yes ||
d0ac1c44 1920 test -x conftest$ac_exeext
81ecdfbb
RW
1921 }; then :
1922 ac_retval=0
1923else
1924 $as_echo "$as_me: failed program was:" >&5
1925sed 's/^/| /' conftest.$ac_ext >&5
1926
1927 ac_retval=1
1928fi
1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931 # interfere with the next link command; also delete a directory that is
1932 # left behind by Apple's compiler. We do this before executing the actions.
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
81ecdfbb
RW
1936
1937} # ac_fn_c_try_link
1938cat >config.log <<_ACEOF
c6b750e1
DJ
1939This file contains any messages produced by compilers while
1940running configure, to aid debugging if configure makes a mistake.
1941
1942It was created by $as_me, which was
d0ac1c44 1943generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
1944
1945 $ $0 $@
1946
1947_ACEOF
81ecdfbb 1948exec 5>>config.log
c6b750e1
DJ
1949{
1950cat <<_ASUNAME
1951## --------- ##
1952## Platform. ##
1953## --------- ##
1954
1955hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1956uname -m = `(uname -m) 2>/dev/null || echo unknown`
1957uname -r = `(uname -r) 2>/dev/null || echo unknown`
1958uname -s = `(uname -s) 2>/dev/null || echo unknown`
1959uname -v = `(uname -v) 2>/dev/null || echo unknown`
1960
1961/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1962/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1963
1964/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1965/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1966/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1967/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1968/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1969/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1970/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1971
1972_ASUNAME
1973
1974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975for as_dir in $PATH
1976do
1977 IFS=$as_save_IFS
1978 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1979 $as_echo "PATH: $as_dir"
1980 done
1981IFS=$as_save_IFS
c6b750e1
DJ
1982
1983} >&5
1984
1985cat >&5 <<_ACEOF
1986
1987
1988## ----------- ##
1989## Core tests. ##
1990## ----------- ##
1991
1992_ACEOF
1993
1994
1995# Keep a trace of the command line.
1996# Strip out --no-create and --no-recursion so they do not pile up.
1997# Strip out --silent because we don't want to record it for future runs.
1998# Also quote any args containing shell meta-characters.
1999# Make two passes to allow for proper duplicate-argument suppression.
2000ac_configure_args=
2001ac_configure_args0=
2002ac_configure_args1=
c6b750e1
DJ
2003ac_must_keep_next=false
2004for ac_pass in 1 2
2005do
2006 for ac_arg
2007 do
2008 case $ac_arg in
2009 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2011 | -silent | --silent | --silen | --sile | --sil)
2012 continue ;;
81ecdfbb
RW
2013 *\'*)
2014 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2015 esac
2016 case $ac_pass in
81ecdfbb 2017 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 2018 2)
81ecdfbb 2019 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
2020 if test $ac_must_keep_next = true; then
2021 ac_must_keep_next=false # Got value, back to normal.
2022 else
2023 case $ac_arg in
2024 *=* | --config-cache | -C | -disable-* | --disable-* \
2025 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2026 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2027 | -with-* | --with-* | -without-* | --without-* | --x)
2028 case "$ac_configure_args0 " in
2029 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2030 esac
2031 ;;
2032 -* ) ac_must_keep_next=true ;;
2033 esac
2034 fi
81ecdfbb 2035 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
2036 ;;
2037 esac
2038 done
2039done
81ecdfbb
RW
2040{ ac_configure_args0=; unset ac_configure_args0;}
2041{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
2042
2043# When interrupted or exit'd, cleanup temporary files, and complete
2044# config.log. We remove comments because anyway the quotes in there
2045# would cause problems or look ugly.
81ecdfbb
RW
2046# WARNING: Use '\'' to represent an apostrophe within the trap.
2047# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
2048trap 'exit_status=$?
2049 # Save into config.log some information that might help in debugging.
2050 {
2051 echo
2052
d0ac1c44 2053 $as_echo "## ---------------- ##
c6b750e1 2054## Cache variables. ##
d0ac1c44 2055## ---------------- ##"
c6b750e1
DJ
2056 echo
2057 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2058(
2059 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2060 eval ac_val=\$$ac_var
2061 case $ac_val in #(
2062 *${as_nl}*)
2063 case $ac_var in #(
2064 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2065$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2066 esac
2067 case $ac_var in #(
2068 _ | IFS | as_nl) ;; #(
2069 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2070 *) { eval $ac_var=; unset $ac_var;} ;;
2071 esac ;;
2072 esac
2073 done
c6b750e1 2074 (set) 2>&1 |
81ecdfbb
RW
2075 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2076 *${as_nl}ac_space=\ *)
c6b750e1 2077 sed -n \
81ecdfbb
RW
2078 "s/'\''/'\''\\\\'\'''\''/g;
2079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2080 ;; #(
c6b750e1 2081 *)
81ecdfbb 2082 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2083 ;;
81ecdfbb
RW
2084 esac |
2085 sort
2086)
c6b750e1
DJ
2087 echo
2088
d0ac1c44 2089 $as_echo "## ----------------- ##
c6b750e1 2090## Output variables. ##
d0ac1c44 2091## ----------------- ##"
c6b750e1
DJ
2092 echo
2093 for ac_var in $ac_subst_vars
2094 do
81ecdfbb
RW
2095 eval ac_val=\$$ac_var
2096 case $ac_val in
2097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098 esac
2099 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2100 done | sort
2101 echo
2102
2103 if test -n "$ac_subst_files"; then
d0ac1c44 2104 $as_echo "## ------------------- ##
81ecdfbb 2105## File substitutions. ##
d0ac1c44 2106## ------------------- ##"
c6b750e1
DJ
2107 echo
2108 for ac_var in $ac_subst_files
2109 do
81ecdfbb
RW
2110 eval ac_val=\$$ac_var
2111 case $ac_val in
2112 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2113 esac
2114 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2115 done | sort
2116 echo
2117 fi
2118
2119 if test -s confdefs.h; then
d0ac1c44 2120 $as_echo "## ----------- ##
c6b750e1 2121## confdefs.h. ##
d0ac1c44 2122## ----------- ##"
c6b750e1 2123 echo
81ecdfbb 2124 cat confdefs.h
c6b750e1
DJ
2125 echo
2126 fi
2127 test "$ac_signal" != 0 &&
81ecdfbb
RW
2128 $as_echo "$as_me: caught signal $ac_signal"
2129 $as_echo "$as_me: exit $exit_status"
c6b750e1 2130 } >&5
81ecdfbb
RW
2131 rm -f core *.core core.conftest.* &&
2132 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2133 exit $exit_status
81ecdfbb 2134' 0
c6b750e1 2135for ac_signal in 1 2 13 15; do
81ecdfbb 2136 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2137done
2138ac_signal=0
2139
2140# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2141rm -f -r conftest* confdefs.h
2142
2143$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2144
2145# Predefined preprocessor variables.
2146
2147cat >>confdefs.h <<_ACEOF
2148#define PACKAGE_NAME "$PACKAGE_NAME"
2149_ACEOF
2150
c6b750e1
DJ
2151cat >>confdefs.h <<_ACEOF
2152#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2153_ACEOF
2154
c6b750e1
DJ
2155cat >>confdefs.h <<_ACEOF
2156#define PACKAGE_VERSION "$PACKAGE_VERSION"
2157_ACEOF
2158
c6b750e1
DJ
2159cat >>confdefs.h <<_ACEOF
2160#define PACKAGE_STRING "$PACKAGE_STRING"
2161_ACEOF
2162
c6b750e1
DJ
2163cat >>confdefs.h <<_ACEOF
2164#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2165_ACEOF
2166
81ecdfbb
RW
2167cat >>confdefs.h <<_ACEOF
2168#define PACKAGE_URL "$PACKAGE_URL"
2169_ACEOF
2170
c6b750e1
DJ
2171
2172# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2173# Prefer an explicitly selected file to automatically selected ones.
2174ac_site_file1=NONE
2175ac_site_file2=NONE
2176if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2177 # We do not want a PATH search for config.site.
2178 case $CONFIG_SITE in #((
2179 -*) ac_site_file1=./$CONFIG_SITE;;
2180 */*) ac_site_file1=$CONFIG_SITE;;
2181 *) ac_site_file1=./$CONFIG_SITE;;
2182 esac
81ecdfbb
RW
2183elif test "x$prefix" != xNONE; then
2184 ac_site_file1=$prefix/share/config.site
2185 ac_site_file2=$prefix/etc/config.site
2186else
2187 ac_site_file1=$ac_default_prefix/share/config.site
2188 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2189fi
81ecdfbb
RW
2190for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2191do
2192 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2193 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2195$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2196 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2197 . "$ac_site_file" \
2198 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2200as_fn_error $? "failed to load site script $ac_site_file
2201See \`config.log' for more details" "$LINENO" 5; }
a0da8069
NN
2202 fi
2203done
2204
2205if test -r "$cache_file"; then
d0ac1c44
SM
2206 # Some versions of bash will fail to source /dev/null (special files
2207 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2208 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2210$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2211 case $cache_file in
81ecdfbb
RW
2212 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2213 *) . "./$cache_file";;
c6b750e1
DJ
2214 esac
2215 fi
a0da8069 2216else
81ecdfbb
RW
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2218$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2219 >$cache_file
2220fi
2221
2222# Check that the precious variables saved in the cache have kept the same
2223# value.
2224ac_cache_corrupted=false
81ecdfbb 2225for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2226 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2227 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2228 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2229 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2230 case $ac_old_set,$ac_new_set in
2231 set,)
81ecdfbb
RW
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2233$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2234 ac_cache_corrupted=: ;;
2235 ,set)
81ecdfbb
RW
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2237$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2238 ac_cache_corrupted=: ;;
2239 ,);;
2240 *)
2241 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2242 # differences in whitespace do not lead to failure.
2243 ac_old_val_w=`echo x $ac_old_val`
2244 ac_new_val_w=`echo x $ac_new_val`
2245 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2247$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2248 ac_cache_corrupted=:
2249 else
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2251$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2252 eval $ac_var=\$ac_old_val
2253 fi
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2255$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2257$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2258 fi;;
2259 esac
2260 # Pass precious variables to config.status.
2261 if test "$ac_new_set" = set; then
2262 case $ac_new_val in
81ecdfbb 2263 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2264 *) ac_arg=$ac_var=$ac_new_val ;;
2265 esac
2266 case " $ac_configure_args " in
2267 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2268 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2269 esac
2270 fi
2271done
2272if $ac_cache_corrupted; then
81ecdfbb
RW
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2276$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2277 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2278fi
81ecdfbb
RW
2279## -------------------- ##
2280## Main body of script. ##
2281## -------------------- ##
a0da8069
NN
2282
2283ac_ext=c
a0da8069 2284ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287ac_compiler_gnu=$ac_cv_c_compiler_gnu
2288
2289
2290
2291
c6b750e1
DJ
2292
2293
34a0f3cf 2294
c6b750e1 2295
5b553f7e
RW
2296progname=$0
2297# if PWD already has a value, it is probably wrong.
2298if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2299
2300# Export original configure arguments for use by sub-configures.
2301# Quote arguments with shell meta charatcers.
2302TOPLEVEL_CONFIGURE_ARGUMENTS=
2303set -- "$progname" "$@"
2304for ac_arg
2305do
2306 case "$ac_arg" in
2307 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2308 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2309 # if the argument is of the form -foo=baz, quote the baz part only
2310 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2311 *) ;;
2312 esac
2313 # Add the quoted argument to the list.
2314 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2315done
2316if test "$silent" = yes; then
2317 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2318fi
2319# Remove the initial space we just introduced and, as these will be
2320# expanded by make, quote '$'.
2321TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2322
c6b750e1
DJ
2323
2324# Find the build, host, and target systems.
a0da8069 2325ac_aux_dir=
81ecdfbb 2326for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2327 if test -f "$ac_dir/install-sh"; then
2328 ac_aux_dir=$ac_dir
2329 ac_install_sh="$ac_aux_dir/install-sh -c"
2330 break
2331 elif test -f "$ac_dir/install.sh"; then
2332 ac_aux_dir=$ac_dir
2333 ac_install_sh="$ac_aux_dir/install.sh -c"
2334 break
2335 elif test -f "$ac_dir/shtool"; then
2336 ac_aux_dir=$ac_dir
2337 ac_install_sh="$ac_aux_dir/shtool install -c"
2338 break
2339 fi
a0da8069
NN
2340done
2341if test -z "$ac_aux_dir"; then
d0ac1c44 2342 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2343fi
81ecdfbb
RW
2344
2345# These three variables are undocumented and unsupported,
2346# and are intended to be withdrawn in a future Autoconf release.
2347# They can cause serious problems if a builder's source tree is in a directory
2348# whose full name contains unusual characters.
2349ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2350ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2351ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2352
a0da8069 2353
c6b750e1 2354# Make sure we can run config.sub.
81ecdfbb 2355$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2356 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2357
2358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2359$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2360if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2361 $as_echo_n "(cached) " >&6
2362else
2363 ac_build_alias=$build_alias
2364test "x$ac_build_alias" = x &&
2365 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2366test "x$ac_build_alias" = x &&
d0ac1c44 2367 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2368ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2369 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2370
2371fi
2372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2373$as_echo "$ac_cv_build" >&6; }
2374case $ac_cv_build in
2375*-*-*) ;;
d0ac1c44 2376*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2377esac
c6b750e1 2378build=$ac_cv_build
81ecdfbb
RW
2379ac_save_IFS=$IFS; IFS='-'
2380set x $ac_cv_build
2381shift
2382build_cpu=$1
2383build_vendor=$2
2384shift; shift
2385# Remember, the first character of IFS is used to create $*,
2386# except with old shells:
2387build_os=$*
2388IFS=$ac_save_IFS
2389case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2390
a0da8069 2391
c6b750e1
DJ
2392 case ${build_alias} in
2393 "") build_noncanonical=${build} ;;
2394 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2395esac
2396
2397
cac3d6c4 2398
c6b750e1
DJ
2399 case ${host_alias} in
2400 "") host_noncanonical=${build_noncanonical} ;;
2401 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2402esac
2403
cac3d6c4 2404
c6b750e1
DJ
2405
2406 case ${target_alias} in
2407 "") target_noncanonical=${host_noncanonical} ;;
2408 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2409esac
2410
cac3d6c4 2411
c6b750e1
DJ
2412
2413
2414test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2415 test "$program_prefix$program_suffix$program_transform_name" = \
2416 NONENONEs,x,x, &&
c6b750e1 2417 program_transform_name=s,y,y,
cac3d6c4 2418
81ecdfbb
RW
2419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2420$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2421if ${ac_cv_host+:} false; then :
81ecdfbb 2422 $as_echo_n "(cached) " >&6
cac3d6c4 2423else
81ecdfbb
RW
2424 if test "x$host_alias" = x; then
2425 ac_cv_host=$ac_cv_build
2426else
2427 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2428 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2429fi
c6b750e1
DJ
2430
2431fi
81ecdfbb
RW
2432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2433$as_echo "$ac_cv_host" >&6; }
2434case $ac_cv_host in
2435*-*-*) ;;
d0ac1c44 2436*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2437esac
c6b750e1 2438host=$ac_cv_host
81ecdfbb
RW
2439ac_save_IFS=$IFS; IFS='-'
2440set x $ac_cv_host
2441shift
2442host_cpu=$1
2443host_vendor=$2
2444shift; shift
2445# Remember, the first character of IFS is used to create $*,
2446# except with old shells:
2447host_os=$*
2448IFS=$ac_save_IFS
2449case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2450
2451
81ecdfbb
RW
2452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2453$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2454if ${ac_cv_target+:} false; then :
81ecdfbb 2455 $as_echo_n "(cached) " >&6
c6b750e1 2456else
81ecdfbb
RW
2457 if test "x$target_alias" = x; then
2458 ac_cv_target=$ac_cv_host
2459else
2460 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2461 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2462fi
c6b750e1 2463
cac3d6c4 2464fi
81ecdfbb
RW
2465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2466$as_echo "$ac_cv_target" >&6; }
2467case $ac_cv_target in
2468*-*-*) ;;
d0ac1c44 2469*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2470esac
c6b750e1 2471target=$ac_cv_target
81ecdfbb
RW
2472ac_save_IFS=$IFS; IFS='-'
2473set x $ac_cv_target
2474shift
2475target_cpu=$1
2476target_vendor=$2
2477shift; shift
2478# Remember, the first character of IFS is used to create $*,
2479# except with old shells:
2480target_os=$*
2481IFS=$ac_save_IFS
2482case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2483
2484
2485# The aliases save the names the user supplied, while $host etc.
2486# will get canonicalized.
2487test -n "$target_alias" &&
2488 test "$program_prefix$program_suffix$program_transform_name" = \
2489 NONENONEs,x,x, &&
2490 program_prefix=${target_alias}-
81ecdfbb 2491
a0da8069 2492test "$program_prefix" != NONE &&
81ecdfbb 2493 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2494# Use a double $ so make ignores it.
2495test "$program_suffix" != NONE &&
81ecdfbb
RW
2496 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2497# Double any \ or $.
c6b750e1 2498# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2499ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2500program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2501
a0da8069
NN
2502
2503
e5c3f801
NN
2504# Get 'install' or 'install-sh' and its variants.
2505# Find a good install program. We prefer a C program (faster),
2506# so one script is as good as another. But avoid the broken or
2507# incompatible versions:
2508# SysV /etc/install, /usr/sbin/install
2509# SunOS /usr/etc/install
2510# IRIX /sbin/install
2511# AIX /bin/install
c6b750e1 2512# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2513# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2514# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2515# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2516# OS/2's system install, which has a completely different semantic
e5c3f801 2517# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2518# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2520$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2521if test -z "$INSTALL"; then
d0ac1c44 2522if ${ac_cv_path_install+:} false; then :
81ecdfbb 2523 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2524else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH
2527do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2530 # Account for people who put trailing slashes in PATH elements.
2531case $as_dir/ in #((
2532 ./ | .// | /[cC]/* | \
c6b750e1 2533 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2534 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2535 /usr/ucb/* ) ;;
2536 *)
2537 # OSF1 and SCO ODT 3.0 have their own names for install.
2538 # Don't use installbsd from OSF since it installs stuff as root
2539 # by default.
2540 for ac_prog in ginstall scoinst install; do
2541 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2542 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 2543 if test $ac_prog = install &&
c6b750e1 2544 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2545 # AIX install. It has an incompatible calling convention.
2546 :
c6b750e1
DJ
2547 elif test $ac_prog = install &&
2548 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2549 # program-specific install script used by HP pwplus--don't use.
2550 :
e5c3f801 2551 else
58c85be7
RW
2552 rm -rf conftest.one conftest.two conftest.dir
2553 echo one > conftest.one
2554 echo two > conftest.two
2555 mkdir conftest.dir
2556 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2557 test -s conftest.one && test -s conftest.two &&
2558 test -s conftest.dir/conftest.one &&
2559 test -s conftest.dir/conftest.two
2560 then
2561 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2562 break 3
2563 fi
e5c3f801
NN
2564 fi
2565 fi
2566 done
c6b750e1
DJ
2567 done
2568 ;;
2569esac
81ecdfbb
RW
2570
2571 done
2572IFS=$as_save_IFS
c6b750e1 2573
58c85be7 2574rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2575
2576fi
2577 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2578 INSTALL=$ac_cv_path_install
e5c3f801 2579 else
58c85be7
RW
2580 # As a last resort, use the slow shell script. Don't cache a
2581 # value for INSTALL within a source directory, because that will
e5c3f801 2582 # break other packages using the cache if that directory is
58c85be7 2583 # removed, or if the value is a relative name.
c6b750e1 2584 INSTALL=$ac_install_sh
e5c3f801
NN
2585 fi
2586fi
81ecdfbb
RW
2587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2588$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2589
2590# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2591# It thinks the first close brace ends the variable substitution.
2592test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2593
c6b750e1 2594test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2595
2596test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2597
81ecdfbb
RW
2598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2599$as_echo_n "checking whether ln works... " >&6; }
d0ac1c44 2600if ${acx_cv_prog_LN+:} false; then :
81ecdfbb 2601 $as_echo_n "(cached) " >&6
656fdd47
PB
2602else
2603 rm -f conftestdata_t
2604echo >conftestdata_f
2605if ln conftestdata_f conftestdata_t 2>/dev/null
2606then
2607 acx_cv_prog_LN=ln
2608else
2609 acx_cv_prog_LN=no
2610fi
2611rm -f conftestdata_f conftestdata_t
2612
2613fi
2614if test $acx_cv_prog_LN = no; then
2615 LN="cp"
81ecdfbb
RW
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2617$as_echo "no, using $LN" >&6; }
656fdd47
PB
2618else
2619 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2621$as_echo "yes" >&6; }
656fdd47
PB
2622fi
2623
81ecdfbb
RW
2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2625$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2626LN_S=$as_ln_s
2627if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2629$as_echo "yes" >&6; }
cac3d6c4 2630else
81ecdfbb
RW
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2632$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2633fi
2634
8e957354
PB
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2636$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 2637if ${ac_cv_path_SED+:} false; then :
8e957354
PB
2638 $as_echo_n "(cached) " >&6
2639else
2640 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2641 for ac_i in 1 2 3 4 5 6 7; do
2642 ac_script="$ac_script$as_nl$ac_script"
2643 done
2644 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2645 { ac_script=; unset ac_script;}
2646 if test -z "$SED"; then
2647 ac_path_SED_found=false
2648 # Loop through the user's path and test for each of PROGNAME-LIST
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650for as_dir in $PATH
2651do
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 for ac_prog in sed gsed; do
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 2657 as_fn_executable_p "$ac_path_SED" || continue
8e957354
PB
2658# Check for GNU ac_path_SED and select it if it is found.
2659 # Check for GNU $ac_path_SED
2660case `"$ac_path_SED" --version 2>&1` in
2661*GNU*)
2662 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2663*)
2664 ac_count=0
2665 $as_echo_n 0123456789 >"conftest.in"
2666 while :
2667 do
2668 cat "conftest.in" "conftest.in" >"conftest.tmp"
2669 mv "conftest.tmp" "conftest.in"
2670 cp "conftest.in" "conftest.nl"
2671 $as_echo '' >> "conftest.nl"
2672 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2673 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2674 as_fn_arith $ac_count + 1 && ac_count=$as_val
2675 if test $ac_count -gt ${ac_path_SED_max-0}; then
2676 # Best one so far, save it but keep looking for a better one
2677 ac_cv_path_SED="$ac_path_SED"
2678 ac_path_SED_max=$ac_count
2679 fi
2680 # 10*(2^10) chars as input seems more than enough
2681 test $ac_count -gt 10 && break
2682 done
2683 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2684esac
2685
2686 $ac_path_SED_found && break 3
2687 done
2688 done
2689 done
2690IFS=$as_save_IFS
2691 if test -z "$ac_cv_path_SED"; then
d0ac1c44 2692 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8e957354
PB
2693 fi
2694else
2695 ac_cv_path_SED=$SED
2696fi
2697
2698fi
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2700$as_echo "$ac_cv_path_SED" >&6; }
2701 SED="$ac_cv_path_SED"
2702 rm -f conftest.sed
2703
2704for ac_prog in gawk mawk nawk awk
2705do
2706 # Extract the first word of "$ac_prog", so it can be a program name with args.
2707set dummy $ac_prog; ac_word=$2
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2710if ${ac_cv_prog_AWK+:} false; then :
8e957354
PB
2711 $as_echo_n "(cached) " >&6
2712else
2713 if test -n "$AWK"; then
2714 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2715else
2716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717for as_dir in $PATH
2718do
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8e957354
PB
2723 ac_cv_prog_AWK="$ac_prog"
2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 break 2
2726 fi
2727done
2728 done
2729IFS=$as_save_IFS
2730
2731fi
2732fi
2733AWK=$ac_cv_prog_AWK
2734if test -n "$AWK"; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2736$as_echo "$AWK" >&6; }
2737else
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739$as_echo "no" >&6; }
2740fi
2741
2742
2743 test -n "$AWK" && break
2744done
2745
e5c3f801 2746
0fdbe983
DJ
2747srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2748
2749# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2750# a relative path.
2751if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2752 INSTALL="${srcpwd}/install-sh -c"
2753fi
2754
a0da8069
NN
2755# Set srcdir to "." if that's what it is.
2756# This is important for multilib support.
2757pwd=`${PWDCMD-pwd}`
a0da8069
NN
2758if test "${pwd}" = "${srcpwd}" ; then
2759 srcdir=.
252b5132
RH
2760fi
2761
a0da8069 2762topsrcdir=$srcpwd
252b5132 2763
a0da8069 2764extra_host_args=
afefada0 2765
a0da8069
NN
2766### To add a new directory to the tree, first choose whether it is a target
2767### or a host dependent tool. Then put it into the appropriate list
2768### (library or tools, host or target), doing a dependency sort.
252b5132 2769
c6b750e1 2770# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2771# configdirs, or target_configdirs; see the serialization section below.
252b5132 2772
c6b750e1
DJ
2773# Dependency sorting is only needed when *configuration* must be done in
2774# a particular order. In all cases a dependency should be specified in
a0da8069 2775# the Makefile, whether or not it's implicitly specified here.
252b5132 2776
a0da8069
NN
2777# Double entries in build_configdirs, configdirs, or target_configdirs may
2778# cause circular dependencies and break everything horribly.
252b5132 2779
6a9cf61e
PB
2780# these library is used by various programs built for the build
2781# environment
2782#
1b6c0831 2783build_libs="build-libiberty build-libcpp"
6a9cf61e
PB
2784
2785# these tools are built for the build environment
a90ef4bf 2786build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2787
a0da8069 2788# these libraries are used by various programs built for the host environment
1b6c0831 2789#f
0e65dfba 2790host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
a0da8069 2791
a0da8069
NN
2792# these tools are built for the host environment
2793# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2794# know that we are building the simulator.
2795# binutils, gas and ld appear in that order because it makes sense to run
2796# "make check" in that particular order.
e6de499b 2797# If --enable-gold is used, "gold" may replace "ld".
919adfe8 2798host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
a0da8069 2799
a0da8069
NN
2800# these libraries are built for the target environment, and are built after
2801# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2802# Note that libiberty is not a target library.
b1299c4e 2803target_libraries="target-libgcc \
2bf680c4 2804 target-libbacktrace \
a0da8069
NN
2805 target-libgloss \
2806 target-newlib \
cff87f51 2807 target-libgomp \
1b6c0831 2808 target-liboffloadmic \
bf41f30d 2809 target-libhsail-rt \
7ec59b9e 2810 target-libatomic \
d32e2926 2811 target-libitm \
b9459e83 2812 target-libstdc++-v3 \
5286fdef 2813 target-libsanitizer \
95e43135 2814 target-libvtv \
bb780410 2815 target-libssp \
e552509b 2816 target-libquadmath \
4b1cb4fe 2817 target-libgfortran \
05a13254 2818 target-libffi \
a2592b1b 2819 target-libobjc \
e552509b 2820 target-libada \
e3f56a99 2821 target-libgo"
a0da8069 2822
9c14acb8
NN
2823# these tools are built using the target libraries, and are intended to
2824# run only in the target environment
a0da8069 2825#
9c14acb8 2826# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2827# list belongs in this list.
a0da8069 2828#
a90ef4bf 2829target_tools="target-rda"
252b5132 2830
a0da8069 2831################################################################################
252b5132 2832
a0da8069
NN
2833## All tools belong in one of the four categories, and are assigned above
2834## We assign ${configdirs} this way to remove all embedded newlines. This
2835## is important because configure will choke if they ever get through.
2836## ${configdirs} is directories we build using the host tools.
2837## ${target_configdirs} is directories we build using the target tools.
a0da8069 2838configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2839target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2840build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2841
9cc8ae67
PB
2842
2843
a0da8069 2844################################################################################
252b5132 2845
a0da8069 2846srcname="gnu development package"
252b5132 2847
a0da8069
NN
2848# This gets set non-empty for some net releases of packages.
2849appdirs=""
252b5132 2850
a0da8069
NN
2851# Define is_cross_compiler to save on calls to 'test'.
2852is_cross_compiler=
2853if test x"${host}" = x"${target}" ; then
2854 is_cross_compiler=no
252b5132 2855else
a0da8069 2856 is_cross_compiler=yes
c6b750e1 2857fi
252b5132 2858
9175bfc0 2859# Find the build and target subdir names.
dd12c3a8 2860
66a79c16
DJ
2861# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2862# have matching libraries, they should use host libraries: Makefile.tpl
2863# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2864# However, they still use the build modules, because the corresponding
2865# host modules (e.g. bison) are only built for the host when bootstrap
2866# finishes. So:
2867# - build_subdir is where we find build modules, and never changes.
2868# - build_libsubdir is where we find build libraries, and can be overridden.
2869
2870# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2871build_subdir="build-${build_noncanonical}"
c6b750e1 2872
81ecdfbb
RW
2873# Check whether --with-build-libsubdir was given.
2874if test "${with_build_libsubdir+set}" = set; then :
2875 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2876else
2877 build_libsubdir="$build_subdir"
81ecdfbb
RW
2878fi
2879
b00612cc
PB
2880# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2881if ( test $srcdir = . && test -d gcc ) \
2882 || test -d $srcdir/../host-${host_noncanonical}; then
2883 host_subdir="host-${host_noncanonical}"
2884else
2885 host_subdir=.
2886fi
dd12c3a8
NN
2887# No prefix.
2888target_subdir=${target_noncanonical}
c6b750e1 2889
2fd0b40b
RW
2890# Be sure to cover against remnants of an in-tree build.
2891if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
d0ac1c44 2892 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2fd0b40b
RW
2893Use a pristine source tree when building in a separate tree" "$LINENO" 5
2894fi
252b5132 2895
a0da8069
NN
2896# Skipdirs are removed silently.
2897skipdirs=
2898# Noconfigdirs are removed loudly.
2899noconfigdirs=""
252b5132 2900
a0da8069
NN
2901use_gnu_ld=
2902# Make sure we don't let GNU ld be added if we didn't want it.
2903if test x$with_gnu_ld = xno ; then
2904 use_gnu_ld=no
93f9b408 2905 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2906fi
2907
a0da8069
NN
2908use_gnu_as=
2909# Make sure we don't let GNU as be added if we didn't want it.
2910if test x$with_gnu_as = xno ; then
2911 use_gnu_as=no
2912 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2913fi
2914
700d40ca 2915use_included_zlib=
cf39cfc5
L
2916
2917# Check whether --with-system-zlib was given.
2918if test "${with_system_zlib+set}" = set; then :
2919 withval=$with_system_zlib;
2920fi
2921
700d40ca
ILT
2922# Make sure we don't let ZLIB be added if we didn't want it.
2923if test x$with_system_zlib = xyes ; then
2924 use_included_zlib=no
2925 noconfigdirs="$noconfigdirs zlib"
2926fi
2927
69961a84
ДП
2928# Don't compile the bundled readline/libreadline.a if --with-system-readline
2929# is provided.
2930if test x$with_system_readline = xyes ; then
2931 noconfigdirs="$noconfigdirs readline"
2932fi
2933
c6b750e1 2934# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2935# it's not even worth trying to configure, much less build, that tool.
252b5132 2936
a0da8069
NN
2937case ${with_x} in
2938 yes | "") ;; # the default value for this tree is that X11 is available
2939 no)
675c6968 2940 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2941 # We won't be able to build gdbtk without X.
c6b750e1 2942 enable_gdbtk=no
a0da8069
NN
2943 ;;
2944 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2945esac
252b5132 2946
0377a422 2947# Some are only suitable for cross toolchains.
a0da8069
NN
2948# Remove these if host=target.
2949cross_only="target-libgloss target-newlib target-opcodes"
2950
2951case $is_cross_compiler in
2952 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2953esac
252b5132 2954
a0da8069
NN
2955# If both --with-headers and --with-libs are specified, default to
2956# --without-newlib.
32be62b5
RS
2957if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2958 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2959 if test x"${with_newlib}" = x ; then
2960 with_newlib=no
2961 fi
252b5132
RH
2962fi
2963
a0da8069
NN
2964# Recognize --with-newlib/--without-newlib.
2965case ${with_newlib} in
2966 no) skipdirs="${skipdirs} target-newlib" ;;
2967 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2968esac
252b5132 2969
1b6c0831
L
2970# Check whether --enable-as-accelerator-for was given.
2971if test "${enable_as_accelerator_for+set}" = set; then :
2972 enableval=$enable_as_accelerator_for;
2973fi
2974
2975
2976# Check whether --enable-offload-targets was given.
2977if test "${enable_offload_targets+set}" = set; then :
2978 enableval=$enable_offload_targets;
2979 if test x"$enable_offload_targets" = x; then
d0ac1c44 2980 as_fn_error $? "no offload targets specified" "$LINENO" 5
1b6c0831
L
2981 fi
2982
2983else
2984 enable_offload_targets=
2985fi
2986
2987
c7791212
NC
2988# Handle --enable-gold, --enable-ld.
2989# --disable-gold [--enable-ld]
2990# Build only ld. Default option.
d3b50760
L
2991# --enable-gold [--enable-ld]
2992# Build both gold and ld. Install gold as "ld.gold", install ld
2993# as "ld.bfd" and "ld".
2994# --enable-gold=default [--enable-ld]
c7791212
NC
2995# Build both gold and ld. Install gold as "ld.gold" and "ld",
2996# install ld as "ld.bfd".
2997# --enable-gold[=default] --disable-ld
2998# Build only gold, which is then installed as both "ld.gold" and "ld".
2999# --enable-gold --enable-ld=default
d3b50760
L
3000# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3001# and ld.bfd).
c7791212
NC
3002# In other words, ld is default
3003# --enable-gold=default --enable-ld=default
3004# Error.
3005
3006default_ld=
81ecdfbb
RW
3007# Check whether --enable-gold was given.
3008if test "${enable_gold+set}" = set; then :
3009 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
3010else
3011 ENABLE_GOLD=no
81ecdfbb
RW
3012fi
3013
c7791212
NC
3014case "${ENABLE_GOLD}" in
3015 yes|default)
e6de499b
NC
3016 # Check for ELF target.
3017 is_elf=no
3018 case "${target}" in
3019 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2344b8da 3020 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 3021 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
d85e70a3 3022 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
e6de499b
NC
3023 case "${target}" in
3024 *-*-linux*aout* | *-*-linux*oldld*)
3025 ;;
3026 *)
3027 is_elf=yes
3028 ;;
3029 esac
3030 esac
3031
3032 if test "$is_elf" = "yes"; then
3033 # Check for target supported by gold.
93f9b408 3034 case "${target}" in
6d26190c 3035 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
ea016470 3036 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
c7791212
NC
3037 configdirs="$configdirs gold"
3038 if test x${ENABLE_GOLD} = xdefault; then
3039 default_ld=gold
3040 fi
e6de499b 3041 ENABLE_GOLD=yes
93f9b408
ILT
3042 ;;
3043 esac
e6de499b
NC
3044 fi
3045 ;;
3046 no)
3047 ;;
3048 *)
d0ac1c44 3049 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
e6de499b 3050 ;;
c7791212
NC
3051esac
3052
3053# Check whether --enable-ld was given.
3054if test "${enable_ld+set}" = set; then :
3055 enableval=$enable_ld; ENABLE_LD=$enableval
3056else
3057 ENABLE_LD=yes
3058fi
3059
3060
3061case "${ENABLE_LD}" in
3062 default)
d3b50760 3063 if test x${default_ld} != x; then
d0ac1c44 3064 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
c7791212
NC
3065 fi
3066 ;;
3067 yes)
3068 ;;
3069 no)
3070 if test x${ENABLE_GOLD} != xyes; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3072$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3073 fi
3074 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3075 ;;
3076 *)
d0ac1c44 3077 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
c7791212
NC
3078 ;;
3079esac
93f9b408 3080
bb368aad
VM
3081# Check whether --enable-gprofng was given.
3082if test "${enable_gprofng+set}" = set; then :
3083 enableval=$enable_gprofng; enable_gprofng=$enableval
3084else
3085 enable_gprofng=yes
3086fi
3087
3088if test "$enable_gprofng" = "yes"; then
3089 case "${target}" in
3090 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3091 configdirs="$configdirs gprofng"
3092 ;;
3093 esac
3094fi
3095
3096
edeefb67
L
3097# PR gas/19109
3098# Decide the default method for compressing debug sections.
3099# Provide a configure time option to override our default.
3100# Check whether --enable-compressed_debug_sections was given.
3101if test "${enable_compressed_debug_sections+set}" = set; then :
3102 enableval=$enable_compressed_debug_sections;
3103 if test x"$enable_compressed_debug_sections" = xyes; then
d0ac1c44 3104 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
edeefb67
L
3105 fi
3106
3107else
3108 enable_compressed_debug_sections=
3109fi
3110
3111
a0da8069 3112# Configure extra directories which are host specific
252b5132 3113
a0da8069
NN
3114case "${host}" in
3115 *-cygwin*)
3116 configdirs="$configdirs libtermcap" ;;
3117esac
252b5132 3118
59f7ec45
HPN
3119# A target can indicate whether a language isn't supported for some reason.
3120# Only spaces may be used in this macro; not newlines or tabs.
3121unsupported_languages=
3122
c6b750e1 3123# Remove more programs from consideration, based on the host or
a0da8069
NN
3124# target this usually means that a port of the program doesn't
3125# exist yet.
252b5132 3126
a0da8069 3127case "${host}" in
3516a403 3128 i[3456789]86-*-msdosdjgpp*)
6a608608 3129 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3130 ;;
a0da8069 3131esac
252b5132 3132
e5f2f7d9
LM
3133# Default to --disable-year2038 until we can handle differences between
3134# projects that use gnulib (which understands year 2038) and projects that
3135# do not (like BFD).
3136# Check whether --enable-year2038 was given.
3137if test "${enable_year2038+set}" = set; then :
3138 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3139else
3140 ENABLE_YEAR2038=no
3141fi
3142
3143enable_year2038=
3144if test "${ENABLE_YEAR2038}" = "no" ; then
3145 enable_year2038=no
3146fi
4b1cb4fe 3147
89a1e9c3
PB
3148# Check whether --enable-libquadmath was given.
3149if test "${enable_libquadmath+set}" = set; then :
3150 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3151else
3152 ENABLE_LIBQUADMATH=yes
3153fi
3154
3155if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3156 noconfigdirs="$noconfigdirs target-libquadmath"
3157fi
3158
3159
3160# Check whether --enable-libquadmath-support was given.
3161if test "${enable_libquadmath_support+set}" = set; then :
3162 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3163else
3164 ENABLE_LIBQUADMATH_SUPPORT=yes
3165fi
3166
3167enable_libquadmath_support=
3168if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3169 enable_libquadmath_support=no
3170fi
3171
3172
81ecdfbb
RW
3173# Check whether --enable-libada was given.
3174if test "${enable_libada+set}" = set; then :
3175 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3176else
3177 ENABLE_LIBADA=yes
81ecdfbb
RW
3178fi
3179
a2592b1b 3180if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3181 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3182fi
3183
81ecdfbb
RW
3184# Check whether --enable-libssp was given.
3185if test "${enable_libssp+set}" = set; then :
3186 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3187else
3188 ENABLE_LIBSSP=yes
81ecdfbb
RW
3189fi
3190
5f128533 3191
f66a9a70
L
3192# Check whether --enable-libstdcxx was given.
3193if test "${enable_libstdcxx+set}" = set; then :
3194 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3195else
3196 ENABLE_LIBSTDCXX=default
3197fi
3198
3199if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1b6c0831
L
3200 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3201fi
3202
3203# If this is accelerator compiler and its target is intelmic we enable
3204# target liboffloadmic by default. If this is compiler with offloading
3205# for intelmic we enable host liboffloadmic by default. Otherwise
3206# liboffloadmic is disabled by default.
3207# Check whether --enable-liboffloadmic was given.
3208if test "${enable_liboffloadmic+set}" = set; then :
3209 enableval=$enable_liboffloadmic; case "$enableval" in
3210 no | host | target)
3211 enable_liboffloadmic=$enableval ;;
3212 *)
d0ac1c44 3213 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
1b6c0831
L
3214esac
3215else
3216 if test x"$enable_as_accelerator_for" != x; then
3217 case "${target}" in
3218 *-intelmic-* | *-intelmicemul-*)
3219 enable_liboffloadmic=target
3220 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3221 ;;
3222 *)
3223 enable_liboffloadmic=no
3224 ;;
3225 esac
3226else
3227 case "${enable_offload_targets}" in
3228 *-intelmic-* | *-intelmicemul-*)
3229 enable_liboffloadmic=host
3230 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3231 ;;
3232 *)
3233 enable_liboffloadmic=no
3234 ;;
3235 esac
3236fi
f66a9a70
L
3237fi
3238
1b6c0831
L
3239
3240
68996839 3241# Enable libgomp by default on hosted POSIX systems, and a few others.
a6df5a19 3242if test x$enable_libgomp = x ; then
b3ded179 3243 case "${target}" in
29383458 3244 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3245 ;;
5b806d27 3246 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3247 ;;
2479f722 3248 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3249 ;;
3250 *-*-darwin* | *-*-aix*)
3251 ;;
68996839
NC
3252 nvptx*-*-*)
3253 ;;
b3ded179
PB
3254 *)
3255 noconfigdirs="$noconfigdirs target-libgomp"
3256 ;;
3257 esac
a6df5a19 3258fi
b3ded179 3259
7ec59b9e
L
3260# Disable libatomic on unsupported systems.
3261if test -d ${srcdir}/libatomic; then
3262 if test x$enable_libatomic = x; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3264$as_echo_n "checking for libatomic support... " >&6; }
3265 if (srcdir=${srcdir}/libatomic; \
3266 . ${srcdir}/configure.tgt; \
3267 test -n "$UNSUPPORTED")
3268 then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270$as_echo "no" >&6; }
3271 noconfigdirs="$noconfigdirs target-libatomic"
3272 else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3274$as_echo "yes" >&6; }
3275 fi
3276 fi
3277fi
3278
1b6c0831
L
3279# Disable liboffloadmic on unsupported systems.
3280if test -d ${srcdir}/liboffloadmic; then
3281 if test x$enable_liboffloadmic != xno; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3283$as_echo_n "checking for liboffloadmic support... " >&6; }
3284 if (srcdir=${srcdir}/liboffloadmic; \
3285 . ${srcdir}/configure.tgt; \
3286 test -n "$UNSUPPORTED")
3287 then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289$as_echo "no" >&6; }
3290 noconfigdirs="$noconfigdirs target-liboffloadmic"
3291 else
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3293$as_echo "yes" >&6; }
3294 fi
3295 fi
3296fi
3297
d32e2926
RH
3298# Disable libitm on unsupported systems.
3299if test -d ${srcdir}/libitm; then
3300 if test x$enable_libitm = x; then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3302$as_echo_n "checking for libitm support... " >&6; }
3303 if (srcdir=${srcdir}/libitm; \
3304 . ${srcdir}/configure.tgt; \
3305 test -n "$UNSUPPORTED")
3306 then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308$as_echo "no" >&6; }
3309 noconfigdirs="$noconfigdirs target-libitm"
3310 else
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3312$as_echo "yes" >&6; }
3313 fi
3314 fi
3315fi
3316
5286fdef
L
3317# Disable libsanitizer on unsupported systems.
3318if test -d ${srcdir}/libsanitizer; then
3319 if test x$enable_libsanitizer = x; then
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3321$as_echo_n "checking for libsanitizer support... " >&6; }
3322 if (srcdir=${srcdir}/libsanitizer; \
3323 . ${srcdir}/configure.tgt; \
3324 test -n "$UNSUPPORTED")
3325 then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327$as_echo "no" >&6; }
3328 noconfigdirs="$noconfigdirs target-libsanitizer"
3329 else
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3331$as_echo "yes" >&6; }
3332 fi
3333 fi
3334fi
3335
95e43135
JBG
3336# Disable libvtv on unsupported systems.
3337if test -d ${srcdir}/libvtv; then
3338 if test x$enable_libvtv = x; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3340$as_echo_n "checking for libvtv support... " >&6; }
3341 if (srcdir=${srcdir}/libvtv; \
3342 . ${srcdir}/configure.tgt; \
3343 test "$VTV_SUPPORTED" != "yes")
3344 then
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346$as_echo "no" >&6; }
3347 noconfigdirs="$noconfigdirs target-libvtv"
3348 else
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3350$as_echo "yes" >&6; }
3351 fi
3352 fi
3353fi
3354
1b6c0831 3355
bf41f30d
NC
3356# Disable libhsail-rt on unsupported systems.
3357if test -d ${srcdir}/libhsail-rt; then
3358 if test x$enable_libhsail_rt = x; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3360$as_echo_n "checking for libhsail-rt support... " >&6; }
3361 if (srcdir=${srcdir}/libhsail-rt; \
3362 . ${srcdir}/configure.tgt; \
3363 test -n "$UNSUPPORTED")
3364 then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366$as_echo "no" >&6; }
3367 unsupported_languages="$unsupported_languages brig"
3368 # This implicitly disables also target-libhsail-rt as it won't
3369 # get added to the build without BRIG FE.
3370 else
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3372$as_echo "yes" >&6; }
3373 fi
3374 fi
3375fi
1b6c0831
L
3376
3377
1488e230
DE
3378# Disable libquadmath for some systems.
3379case "${target}" in
5286fdef
L
3380 avr-*-*)
3381 noconfigdirs="$noconfigdirs target-libquadmath"
3382 ;;
1488e230
DE
3383 # libquadmath is unused on AIX and libquadmath build process use of
3384 # LD_LIBRARY_PATH can break AIX bootstrap.
3385 powerpc-*-aix* | rs6000-*-aix*)
3386 noconfigdirs="$noconfigdirs target-libquadmath"
3387 ;;
3388esac
3389
065a5627
JM
3390# Disable libssp for some systems.
3391case "${target}" in
3392 avr-*-*)
c5f5c3c2 3393 # No hosted I/O support.
065a5627
JM
3394 noconfigdirs="$noconfigdirs target-libssp"
3395 ;;
3396 powerpc-*-aix* | rs6000-*-aix*)
3397 noconfigdirs="$noconfigdirs target-libssp"
3398 ;;
99c513f6 3399 rl78-*-*)
202e2356
NC
3400 # libssp uses a misaligned load to trigger a fault, but the RL78
3401 # doesn't fault for those - instead, it gives a build-time error
3402 # for explicit misaligned loads.
99c513f6
DD
3403 noconfigdirs="$noconfigdirs target-libssp"
3404 ;;
1b6c0831
L
3405 visium-*-*)
3406 # No hosted I/O support.
3407 noconfigdirs="$noconfigdirs target-libssp"
3408 ;;
065a5627
JM
3409esac
3410
065a5627 3411# Disable libstdc++-v3 for some systems.
f66a9a70
L
3412# Allow user to override this if they pass --enable-libstdc++-v3
3413if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3414 case "${target}" in
3415 *-*-vxworks*)
3416 # VxWorks uses the Dinkumware C++ library.
3417 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3418 ;;
3419 arm*-wince-pe*)
3420 # the C++ libraries don't build on top of CE's C libraries
3421 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3422 ;;
3423 avr-*-*)
3424 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3425 ;;
969b1713
L
3426 ft32-*-*)
3427 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3428 ;;
f66a9a70
L
3429 esac
3430fi
065a5627
JM
3431
3432# Disable Fortran for some systems.
3433case "${target}" in
3434 mmix-*-*)
3435 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3436 unsupported_languages="$unsupported_languages fortran"
3437 ;;
3438esac
3439
05a13254 3440# Disable libffi for some systems.
0827f9a6 3441case "${target}" in
9863d716
JM
3442 powerpc-*-darwin*)
3443 ;;
3444 i[3456789]86-*-darwin*)
3445 ;;
3446 x86_64-*-darwin[912]*)
3447 ;;
3448 *-*-darwin*)
05a13254 3449 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3450 ;;
9863d716 3451 *-*-netware*)
05a13254
NC
3452 noconfigdirs="$noconfigdirs target-libffi"
3453 ;;
3454 *-*-phoenix*)
3455 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3456 ;;
3457 *-*-rtems*)
05a13254 3458 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3459 ;;
3460 *-*-tpf*)
05a13254 3461 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3462 ;;
3463 *-*-uclinux*)
05a13254 3464 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3465 ;;
3466 *-*-vxworks*)
05a13254
NC
3467 noconfigdirs="$noconfigdirs target-libffi"
3468 ;;
3469 aarch64*-*-freebsd*)
3470 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3471 ;;
9863d716 3472 alpha*-*-*vms*)
05a13254 3473 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3474 ;;
1b6c0831 3475 arm*-*-freebsd*)
05a13254 3476 noconfigdirs="$noconfigdirs target-libffi"
1b6c0831 3477 ;;
0827f9a6 3478 arm-wince-pe)
05a13254 3479 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3480 ;;
9863d716 3481 cris-*-* | crisv32-*-*)
9863d716
JM
3482 case "${target}" in
3483 *-*-linux*)
3484 ;;
3485 *) # See PR46792 regarding target-libffi.
05a13254 3486 noconfigdirs="$noconfigdirs target-libffi";;
9863d716
JM
3487 esac
3488 ;;
82ae827f 3489 hppa*64*-*-hpux*)
05a13254 3490 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3491 ;;
3492 hppa*-hp-hpux11*)
3493 ;;
82ae827f 3494 hppa*-*-hpux*)
05a13254 3495 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3496 ;;
9863d716 3497 ia64*-*-*vms*)
05a13254 3498 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3499 ;;
9863d716 3500 i[3456789]86-w64-mingw*)
05a13254 3501 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3502 ;;
3503 i[3456789]86-*-mingw*)
05a13254 3504 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3505 ;;
3506 x86_64-*-mingw*)
05a13254 3507 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3508 ;;
9863d716 3509 mmix-*-*)
05a13254 3510 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3511 ;;
3512 powerpc-*-aix*)
9863d716 3513 ;;
9863d716 3514 rs6000-*-aix*)
9863d716 3515 ;;
3f8107ab 3516 ft32-*-*)
05a13254 3517 noconfigdirs="$noconfigdirs target-libffi"
3f8107ab 3518 ;;
9863d716 3519 *-*-lynxos*)
05a13254 3520 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3521 ;;
9863d716
JM
3522esac
3523
1b6c0831
L
3524# Disable the go frontend on systems where it is known to not work. Please keep
3525# this in sync with contrib/config-list.mk.
3526case "${target}" in
bf41f30d 3527*-*-darwin* | *-*-cygwin* | *-*-mingw*)
1b6c0831
L
3528 unsupported_languages="$unsupported_languages go"
3529 ;;
3530esac
3531
919adfe8
TT
3532# Only allow gdbserver on some systems.
3533if test -d ${srcdir}/gdbserver; then
3534 if test x$enable_gdbserver = x; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3536$as_echo_n "checking for gdbserver support... " >&6; }
3537 if (srcdir=${srcdir}/gdbserver; \
3538 . ${srcdir}/configure.srv; \
3539 test -n "$UNSUPPORTED")
3540 then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542$as_echo "no" >&6; }
3543 noconfigdirs="$noconfigdirs gdbserver"
3544 else
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3546$as_echo "yes" >&6; }
3547 fi
3548 fi
3549fi
3550
a413f71a
ILT
3551# Disable libgo for some systems where it is known to not work.
3552# For testing, you can easily override this with --enable-libgo.
3553if test x$enable_libgo = x; then
3554 case "${target}" in
3555 *-*-darwin*)
3556 # PR 46986
3557 noconfigdirs="$noconfigdirs target-libgo"
3558 ;;
3559 *-*-cygwin* | *-*-mingw*)
3560 noconfigdirs="$noconfigdirs target-libgo"
3561 ;;
a413f71a
ILT
3562 esac
3563fi
3564
691bb5a1
DD
3565# Default libgloss CPU subdirectory.
3566libgloss_dir="$target_cpu"
4b1cb4fe 3567
ff46fb8f
JM
3568case "${target}" in
3569 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3570 libgloss_dir=wince
3571 ;;
f1dd87fc
YZ
3572 aarch64*-*-* )
3573 libgloss_dir=aarch64
3574 ;;
ff46fb8f
JM
3575 arm*-*-*)
3576 libgloss_dir=arm
3577 ;;
3578 cris-*-* | crisv32-*-*)
3579 libgloss_dir=cris
3580 ;;
3581 hppa*-*-*)
3582 libgloss_dir=pa
3583 ;;
3584 i[3456789]86-*-*)
3585 libgloss_dir=i386
3586 ;;
3587 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3588 libgloss_dir=m68hc11
3589 ;;
3590 m68*-*-* | fido-*-*)
3591 libgloss_dir=m68k
3592 ;;
3593 mips*-*-*)
3594 libgloss_dir=mips
3595 ;;
3596 powerpc*-*-*)
3597 libgloss_dir=rs6000
3598 ;;
3599 sparc*-*-*)
3600 libgloss_dir=sparc
3601 ;;
3602esac
3603
c7e4b184 3604# Disable newlib and libgloss for various target OSes.
a0da8069 3605case "${target}" in
c7e4b184
JM
3606 alpha*-dec-osf*)
3607 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3608 ;;
3609 i[3456789]86-*-linux*)
3610 # This section makes it possible to build newlib natively on linux.
3611 # If we are using a cross compiler then don't configure newlib.
3612 if test x${is_cross_compiler} != xno ; then
3613 noconfigdirs="$noconfigdirs target-newlib"
3614 fi
3615 noconfigdirs="$noconfigdirs target-libgloss"
3616 # If we are not using a cross compiler, do configure newlib.
3617 # Note however, that newlib will only be configured in this situation
3618 # if the --with-newlib option has been given, because otherwise
3619 # 'target-newlib' will appear in skipdirs.
3620 ;;
3621 i[3456789]86-*-rdos*)
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623 ;;
3624 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3625 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626 ;;
3627 sparc-*-sunos4*)
3628 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629 ;;
3630 *-*-aix*)
3631 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632 ;;
3633 *-*-beos*)
3634 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3635 ;;
a0da8069 3636 *-*-chorusos)
b2f14e4a 3637 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3638 ;;
c7e4b184
JM
3639 *-*-dragonfly*)
3640 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3641 ;;
3642 *-*-freebsd*)
3643 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3644 ;;
3645 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3646 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3647 ;;
3648 *-*-lynxos*)
3649 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3650 ;;
3651 *-*-mingw*)
3652 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3653 ;;
3654 *-*-netbsd*)
3655 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3656 ;;
3657 *-*-netware*)
3658 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3659 ;;
3660 *-*-tpf*)
3661 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3662 ;;
3663 *-*-uclinux*)
3664 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3665 ;;
3666 *-*-vxworks*)
3667 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3668 ;;
3669esac
3670
3671case "${target}" in
3672 *-*-chorusos)
3673 ;;
f075eb5e
TG
3674 aarch64-*-darwin*)
3675 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3676 noconfigdirs="$noconfigdirs sim target-rda"
3677 ;;
3678 arm-*-darwin*)
3679 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3680 noconfigdirs="$noconfigdirs sim target-rda"
3681 ;;
24741ab2 3682 powerpc-*-darwin*)
9d39db92 3683 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3684 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3685 ;;
85bd1942
TG
3686 i[3456789]86-*-darwin*)
3687 noconfigdirs="$noconfigdirs ld gprof"
3688 noconfigdirs="$noconfigdirs sim target-rda"
3689 ;;
e8a5fa9c 3690 x86_64-*-darwin[912]*)
652dec25
TG
3691 noconfigdirs="$noconfigdirs ld gas gprof"
3692 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3693 ;;
04d1ab34 3694 *-*-darwin*)
d320aacb 3695 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3696 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3697 ;;
5b806d27 3698 *-*-dragonfly*)
5b806d27 3699 ;;
de0b4a87 3700 *-*-freebsd*)
4b1cb4fe
DD
3701 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3702 && test -f /usr/local/include/gmp.h; then
3703 with_gmp=/usr/local
3704 fi
4b1cb4fe 3705 ;;
f8a495c8
NC
3706 *-*-kaos*)
3707 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3708 noconfigdirs="$noconfigdirs target-libgloss"
3709 ;;
a0da8069 3710 *-*-netbsd*)
a0da8069 3711 ;;
2a3124ca 3712 *-*-netware*)
a0da8069 3713 ;;
05a13254
NC
3714 *-*-phoenix*)
3715 noconfigdirs="$noconfigdirs target-libgloss"
3716 ;;
a0da8069 3717 *-*-rtems*)
9863d716 3718 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3719 ;;
1587117a
EC
3720 # The tpf target doesn't support gdb yet.
3721 *-*-tpf*)
c7e4b184 3722 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3723 ;;
c1968181 3724 *-*-uclinux*)
c7e4b184 3725 noconfigdirs="$noconfigdirs target-rda"
c1968181 3726 ;;
a0da8069 3727 *-*-vxworks*)
a0da8069
NN
3728 ;;
3729 alpha*-dec-osf*)
3730 # ld works, but does not support shared libraries.
a0da8069 3731 # gas doesn't generate exception information.
c7e4b184 3732 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3733 ;;
3734 alpha*-*-*vms*)
9863d716 3735 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3736 ;;
a0da8069
NN
3737 alpha*-*-*)
3738 # newlib is not 64 bit ready
9863d716 3739 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3740 ;;
a0da8069 3741 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3742 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3743 ;;
05a13254
NC
3744 arc*-*-*)
3745 noconfigdirs="$noconfigdirs sim"
a0da8069 3746 ;;
a0da8069 3747 arm-*-pe*)
9863d716 3748 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3749 ;;
a0da8069 3750 arm-*-riscix*)
b2f14e4a 3751 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3752 ;;
8e71395b
L
3753 avr-*-*)
3754 if test x${with_avrlibc} != xno; then
3755 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3756 fi
3757 ;;
a0da8069 3758 c4x-*-* | tic4x-*-*)
b2f14e4a 3759 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3760 ;;
b2f14e4a
JM
3761 tic54x-*-*)
3762 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3763 ;;
a0da8069 3764 d10v-*-*)
b2f14e4a 3765 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3766 ;;
3767 d30v-*-*)
b2f14e4a 3768 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3769 ;;
3770 fr30-*-elf*)
9863d716 3771 noconfigdirs="$noconfigdirs gdb"
a0da8069 3772 ;;
3f8107ab
AM
3773 ft32-*-*)
3774 noconfigdirs="$noconfigdirs target-rda gprof"
3775 ;;
20135e4c 3776 moxie-*-*)
10b8fe5e 3777 noconfigdirs="$noconfigdirs"
20135e4c 3778 ;;
a0da8069 3779 h8300*-*-*)
9863d716 3780 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3781 ;;
3782 h8500-*-*)
b2f14e4a 3783 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3784 ;;
caeba88f 3785 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3786 ;;
5569a85f
JDA
3787 hppa*64*-*-hpux*)
3788 noconfigdirs="$noconfigdirs gdb"
3789 ;;
3790 hppa*-*-hpux11*)
3791 noconfigdirs="$noconfigdirs gdb ld"
3792 ;;
93cc359e 3793 hppa*64*-*-linux*)
a0da8069 3794 ;;
f0ff0f90 3795 hppa*-*-linux*)
5dcac624 3796 ;;
a0da8069 3797 hppa*-*-*elf* | \
a0da8069
NN
3798 hppa*-*-lites* | \
3799 hppa*-*-openbsd* | \
3800 hppa*64*-*-*)
4f0ef2d8 3801 ;;
691bb5a1 3802 hppa*-*-pro*)
691bb5a1 3803 ;;
a0da8069 3804 hppa*-*-*)
9863d716 3805 noconfigdirs="$noconfigdirs ld"
a0da8069 3806 ;;
b07c2aad 3807 i960-*-*)
b2f14e4a 3808 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3809 ;;
a0da8069
NN
3810 ia64*-*-elf*)
3811 # No gdb support yet.
0377a422 3812 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3813 ;;
3814 ia64*-**-hpux*)
92c9a463 3815 # No ld support yet.
5569a85f 3816 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
a0da8069 3817 ;;
19e99079 3818 ia64*-*-*vms*)
7ec59b9e
L
3819 # No ld support yet.
3820 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3821 ;;
1f53ca9a 3822 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3823 ;;
3824 i[3456789]86-*-mingw*)
45055374 3825 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3826 ;;
a0da8069
NN
3827 *-*-cygwin*)
3828 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3829 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3830 # always build newlib if winsup directory is present.
45055374 3831 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3832 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3833 elif test -d "$srcdir/newlib"; then
45055374 3834 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3835 fi
c6b750e1 3836 ;;
ec11bdc6 3837 i[3456789]86-*-pe)
782cb41f 3838 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3839 ;;
ec11bdc6 3840 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3841 # The linker does not yet know about weak symbols in COFF,
3842 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3843 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3844 ;;
ec11bdc6 3845 i[3456789]86-*-sco*)
b2f14e4a 3846 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3847 ;;
cff32a7c 3848 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3849 noconfigdirs="$noconfigdirs target-libgloss"
3850 ;;
ec11bdc6 3851 i[3456789]86-*-sysv4*)
b2f14e4a 3852 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3853 ;;
ec11bdc6 3854 i[3456789]86-*-beos*)
c7e4b184 3855 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3856 ;;
b59bea8a 3857 i[3456789]86-*-rdos*)
c7e4b184 3858 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3859 ;;
a0da8069 3860 mmix-*-*)
9863d716 3861 noconfigdirs="$noconfigdirs gdb"
a0da8069 3862 ;;
4970f871 3863 mt-*-*)
cdb9b172
AH
3864 noconfigdirs="$noconfigdirs sim"
3865 ;;
1063beb5
FT
3866 nfp-*-*)
3867 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3868 noconfigdirs="$noconfigdirs $target_libraries"
3869 ;;
11104e42
SC
3870 pdp11-*-*)
3871 noconfigdirs="$noconfigdirs gdb gprof"
3872 ;;
a0da8069
NN
3873 powerpc-*-aix*)
3874 # copied from rs6000-*-* entry
c7e4b184 3875 noconfigdirs="$noconfigdirs gprof"
a0da8069 3876 ;;
93cc359e 3877 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3878 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3879 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3880 # always build newlib.
3881 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3882 ;;
3883 # This is temporary until we can link against shared libraries
3884 powerpcle-*-solaris*)
b2f14e4a 3885 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3886 ;;
3887 powerpc-*-beos*)
c7e4b184 3888 noconfigdirs="$noconfigdirs gdb"
a0da8069 3889 ;;
a0da8069 3890 rs6000-*-lynxos*)
c7e4b184 3891 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3892 ;;
3893 rs6000-*-aix*)
c7e4b184 3894 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3895 ;;
3896 rs6000-*-*)
9863d716 3897 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3898 ;;
3899 m68k-apollo-*)
b2f14e4a 3900 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3901 ;;
25a07265 3902 microblaze*)
9863d716 3903 noconfigdirs="$noconfigdirs gprof"
25a07265 3904 ;;
a9d58c06 3905 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
5bd8be13
RS
3906 if test x$with_newlib = xyes; then
3907 noconfigdirs="$noconfigdirs gprof"
3908 fi
5bd8be13 3909 ;;
a0da8069 3910 mips*-*-irix5*)
b2f14e4a 3911 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3912 ;;
3913 mips*-*-irix6*)
9863d716 3914 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3915 ;;
a0da8069 3916 mips*-*-bsd*)
e8044f35 3917 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 3918 ;;
a0da8069 3919 mips*-*-linux*)
a0da8069 3920 ;;
e8044f35
RS
3921 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3922 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3923 noconfigdirs="$noconfigdirs ld gas gprof"
3924 ;;
a0da8069 3925 mips*-*-*)
9863d716 3926 noconfigdirs="$noconfigdirs gprof"
a0da8069 3927 ;;
1b6c0831 3928 nvptx*-*-*)
1b6c0831
L
3929 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3930 ;;
05a13254 3931 sh-*-*)
e8a5fa9c
RW
3932 case "${target}" in
3933 sh*-*-elf)
9863d716 3934 ;;
e8a5fa9c 3935 *)
9863d716 3936 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3937 esac
a0da8069 3938 ;;
a0da8069 3939 sparc-*-sunos4*)
c7e4b184 3940 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3941 use_gnu_ld=no
3942 fi
3943 ;;
619a3713 3944 tic6x-*-*)
40ae9136 3945 noconfigdirs="$noconfigdirs sim"
619a3713 3946 ;;
05a13254 3947 tilepro*-*-* | tilegx*-*-*)
eb4b2452
NC
3948 noconfigdirs="$noconfigdirs sim"
3949 ;;
a0da8069 3950 v810-*-*)
b2f14e4a 3951 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3952 ;;
3953 vax-*-*)
9863d716 3954 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3955 ;;
b29d2641
MR
3956 wasm32-*-*)
3957 noconfigdirs="$noconfigdirs ld"
3958 ;;
a0da8069 3959esac
252b5132 3960
a0da8069
NN
3961# If we aren't building newlib, then don't build libgloss, since libgloss
3962# depends upon some newlib header files.
3963case "${noconfigdirs}" in
3964 *target-libgloss*) ;;
3965 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3966esac
3967
a0da8069 3968# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3969host_makefile_frag=/dev/null
3970if test -d ${srcdir}/config ; then
3971case "${host}" in
ec11bdc6 3972 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3973 host_makefile_frag="config/mh-djgpp"
3974 ;;
3975 *-cygwin*)
e33b51a6 3976
81ecdfbb
RW
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3978$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3979echo a >cygwin-cat-check
1f53ca9a 3980if test `cat cygwin-cat-check` = a ; then
8ade07e9 3981 rm cygwin-cat-check
81ecdfbb
RW
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3983$as_echo "yes" >&6; }
e33b51a6 3984else
8ade07e9 3985 rm cygwin-cat-check
81ecdfbb
RW
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987$as_echo "no" >&6; }
d0ac1c44 3988 as_fn_error $? "The cat command does not ignore carriage return characters.
e33b51a6
NC
3989 Please either mount the build directory in binary mode or run the following
3990 commands before running any configure script:
3991set -o igncr
3992export SHELLOPTS
81ecdfbb 3993 " "$LINENO" 5
e33b51a6 3994fi
e33b51a6 3995
a0da8069
NN
3996 host_makefile_frag="config/mh-cygwin"
3997 ;;
8a1599ab 3998 *-mingw*)
84e7906e 3999 host_makefile_frag="config/mh-mingw"
2d1e8239 4000 ;;
ce6c656d
L
4001 alpha*-linux*)
4002 host_makefile_frag="config/mh-alpha-linux"
4003 ;;
da888c87 4004 hppa*-hp-hpux10*)
da888c87 4005 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 4006 ;;
3516a403 4007 hppa*-hp-hpux*)
da888c87
PB
4008 host_makefile_frag="config/mh-pa"
4009 ;;
4010 hppa*-*)
4011 host_makefile_frag="config/mh-pa"
4012 ;;
e552509b
ILT
4013 *-*-darwin*)
4014 host_makefile_frag="config/mh-darwin"
0df3d27f 4015 ;;
f6d183c0
PB
4016 powerpc-*-aix*)
4017 host_makefile_frag="config/mh-ppc-aix"
4018 ;;
4019 rs6000-*-aix*)
4020 host_makefile_frag="config/mh-ppc-aix"
4021 ;;
a0da8069
NN
4022esac
4023fi
4024
9e07f89d 4025if test "${build}" != "${host}" ; then
1576798e
PB
4026 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4027 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 4028 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e 4029 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
1576798e 4030 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 4031 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
4032 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4033 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4034 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4035 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4036 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4037 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4038else
4039 AR_FOR_BUILD="\$(AR)"
4040 AS_FOR_BUILD="\$(AS)"
512b7dfb 4041 CC_FOR_BUILD="\$(CC)"
1576798e 4042 CXX_FOR_BUILD="\$(CXX)"
1576798e 4043 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 4044 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
4045 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4046 LD_FOR_BUILD="\$(LD)"
4047 NM_FOR_BUILD="\$(NM)"
4048 RANLIB_FOR_BUILD="\$(RANLIB)"
4049 WINDRES_FOR_BUILD="\$(WINDRES)"
4050 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
4051fi
4052
4053ac_ext=c
c6b750e1
DJ
4054ac_cpp='$CPP $CPPFLAGS'
4055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058if test -n "$ac_tool_prefix"; then
4059 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4060set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4062$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4063if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4064 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4065else
4066 if test -n "$CC"; then
4067 ac_cv_prog_CC="$CC" # Let the user override the test.
4068else
4069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070for as_dir in $PATH
4071do
4072 IFS=$as_save_IFS
4073 test -z "$as_dir" && as_dir=.
81ecdfbb 4074 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4076 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4078 break 2
4079 fi
4080done
81ecdfbb
RW
4081 done
4082IFS=$as_save_IFS
c6b750e1
DJ
4083
4084fi
4085fi
4086CC=$ac_cv_prog_CC
4087if test -n "$CC"; then
81ecdfbb
RW
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4089$as_echo "$CC" >&6; }
c6b750e1 4090else
81ecdfbb
RW
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4092$as_echo "no" >&6; }
c6b750e1
DJ
4093fi
4094
81ecdfbb 4095
c6b750e1
DJ
4096fi
4097if test -z "$ac_cv_prog_CC"; then
4098 ac_ct_CC=$CC
6a9cf61e 4099 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 4100set dummy gcc; ac_word=$2
81ecdfbb
RW
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4103if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4104 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4105else
4106 if test -n "$ac_ct_CC"; then
4107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4108else
4109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110for as_dir in $PATH
4111do
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
81ecdfbb 4114 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4116 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4118 break 2
4119 fi
4120done
81ecdfbb
RW
4121 done
4122IFS=$as_save_IFS
c6b750e1
DJ
4123
4124fi
4125fi
4126ac_ct_CC=$ac_cv_prog_ac_ct_CC
4127if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4129$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4130else
81ecdfbb
RW
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132$as_echo "no" >&6; }
c6b750e1
DJ
4133fi
4134
81ecdfbb
RW
4135 if test "x$ac_ct_CC" = x; then
4136 CC=""
4137 else
4138 case $cross_compiling:$ac_tool_warned in
4139yes:)
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4142ac_tool_warned=yes ;;
4143esac
4144 CC=$ac_ct_CC
4145 fi
c6b750e1
DJ
4146else
4147 CC="$ac_cv_prog_CC"
4148fi
4149
4150if test -z "$CC"; then
81ecdfbb
RW
4151 if test -n "$ac_tool_prefix"; then
4152 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4153set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4156if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4157 $as_echo_n "(cached) " >&6
9e07f89d
NN
4158else
4159 if test -n "$CC"; then
4160 ac_cv_prog_CC="$CC" # Let the user override the test.
4161else
c6b750e1
DJ
4162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163for as_dir in $PATH
4164do
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
81ecdfbb 4167 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4169 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4171 break 2
4172 fi
4173done
81ecdfbb
RW
4174 done
4175IFS=$as_save_IFS
c6b750e1 4176
9e07f89d
NN
4177fi
4178fi
c6b750e1 4179CC=$ac_cv_prog_CC
9e07f89d 4180if test -n "$CC"; then
81ecdfbb
RW
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4182$as_echo "$CC" >&6; }
c6b750e1 4183else
81ecdfbb
RW
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185$as_echo "no" >&6; }
c6b750e1
DJ
4186fi
4187
c6b750e1 4188
81ecdfbb 4189 fi
c6b750e1 4190fi
9e07f89d
NN
4191if test -z "$CC"; then
4192 # Extract the first word of "cc", so it can be a program name with args.
4193set dummy cc; ac_word=$2
81ecdfbb
RW
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4195$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4196if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4197 $as_echo_n "(cached) " >&6
9e07f89d
NN
4198else
4199 if test -n "$CC"; then
4200 ac_cv_prog_CC="$CC" # Let the user override the test.
4201else
9e07f89d 4202 ac_prog_rejected=no
c6b750e1
DJ
4203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204for as_dir in $PATH
4205do
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
81ecdfbb 4208 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1
DJ
4210 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4211 ac_prog_rejected=yes
4212 continue
4213 fi
4214 ac_cv_prog_CC="cc"
81ecdfbb 4215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4216 break 2
4217 fi
4218done
81ecdfbb
RW
4219 done
4220IFS=$as_save_IFS
c6b750e1 4221
9e07f89d
NN
4222if test $ac_prog_rejected = yes; then
4223 # We found a bogon in the path, so make sure we never use it.
4224 set dummy $ac_cv_prog_CC
4225 shift
c6b750e1 4226 if test $# != 0; then
9e07f89d
NN
4227 # We chose a different compiler from the bogus one.
4228 # However, it has the same basename, so the bogon will be chosen
4229 # first if we set CC to just the basename; use the full file name.
4230 shift
c6b750e1 4231 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4232 fi
4233fi
4234fi
4235fi
c6b750e1 4236CC=$ac_cv_prog_CC
9e07f89d 4237if test -n "$CC"; then
81ecdfbb
RW
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4239$as_echo "$CC" >&6; }
9e07f89d 4240else
81ecdfbb
RW
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242$as_echo "no" >&6; }
9e07f89d
NN
4243fi
4244
81ecdfbb 4245
c6b750e1
DJ
4246fi
4247if test -z "$CC"; then
4248 if test -n "$ac_tool_prefix"; then
81ecdfbb 4249 for ac_prog in cl.exe
c6b750e1
DJ
4250 do
4251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4252set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4254$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4255if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4256 $as_echo_n "(cached) " >&6
9e07f89d
NN
4257else
4258 if test -n "$CC"; then
4259 ac_cv_prog_CC="$CC" # Let the user override the test.
4260else
c6b750e1
DJ
4261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262for as_dir in $PATH
4263do
4264 IFS=$as_save_IFS
4265 test -z "$as_dir" && as_dir=.
81ecdfbb 4266 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4268 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4270 break 2
376a0e54 4271 fi
c6b750e1 4272done
81ecdfbb
RW
4273 done
4274IFS=$as_save_IFS
cac3d6c4 4275
c6b750e1
DJ
4276fi
4277fi
4278CC=$ac_cv_prog_CC
4279if test -n "$CC"; then
81ecdfbb
RW
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4281$as_echo "$CC" >&6; }
cac3d6c4 4282else
81ecdfbb
RW
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284$as_echo "no" >&6; }
9e07f89d 4285fi
cac3d6c4 4286
81ecdfbb 4287
c6b750e1
DJ
4288 test -n "$CC" && break
4289 done
cac3d6c4 4290fi
c6b750e1
DJ
4291if test -z "$CC"; then
4292 ac_ct_CC=$CC
81ecdfbb 4293 for ac_prog in cl.exe
c6b750e1
DJ
4294do
4295 # Extract the first word of "$ac_prog", so it can be a program name with args.
4296set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4298$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4299if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4300 $as_echo_n "(cached) " >&6
cac3d6c4 4301else
c6b750e1
DJ
4302 if test -n "$ac_ct_CC"; then
4303 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4304else
c6b750e1
DJ
4305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306for as_dir in $PATH
4307do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
81ecdfbb 4310 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4312 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4314 break 2
4315 fi
4316done
81ecdfbb
RW
4317 done
4318IFS=$as_save_IFS
c6b750e1 4319
cac3d6c4
CM
4320fi
4321fi
c6b750e1
DJ
4322ac_ct_CC=$ac_cv_prog_ac_ct_CC
4323if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4325$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4326else
81ecdfbb
RW
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328$as_echo "no" >&6; }
cac3d6c4 4329fi
376a0e54 4330
81ecdfbb 4331
c6b750e1
DJ
4332 test -n "$ac_ct_CC" && break
4333done
4334
81ecdfbb
RW
4335 if test "x$ac_ct_CC" = x; then
4336 CC=""
4337 else
4338 case $cross_compiling:$ac_tool_warned in
4339yes:)
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4342ac_tool_warned=yes ;;
4343esac
4344 CC=$ac_ct_CC
4345 fi
c6b750e1
DJ
4346fi
4347
4348fi
4349
4350
81ecdfbb
RW
4351test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4353as_fn_error $? "no acceptable C compiler found in \$PATH
4354See \`config.log' for more details" "$LINENO" 5; }
c6b750e1
DJ
4355
4356# Provide some information about the compiler.
81ecdfbb
RW
4357$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4358set X $ac_compile
4359ac_compiler=$2
4360for ac_option in --version -v -V -qversion; do
4361 { { ac_try="$ac_compiler $ac_option >&5"
4362case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4365esac
4366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4367$as_echo "$ac_try_echo"; } >&5
4368 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4369 ac_status=$?
81ecdfbb
RW
4370 if test -s conftest.err; then
4371 sed '10a\
4372... rest of stderr output deleted ...
4373 10q' conftest.err >conftest.er1
4374 cat conftest.er1 >&5
81ecdfbb 4375 fi
d0ac1c44 4376 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4378 test $ac_status = 0; }
4379done
c6b750e1 4380
81ecdfbb 4381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4382/* end confdefs.h. */
4383
4384int
4385main ()
4386{
4387
4388 ;
4389 return 0;
4390}
4391_ACEOF
4392ac_clean_files_save=$ac_clean_files
d0ac1c44 4393ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
c6b750e1
DJ
4394# Try to create an executable without -o first, disregard a.out.
4395# It will help us diagnose broken compilers, and finding out an intuition
4396# of exeext.
d0ac1c44
SM
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4398$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
4399ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4400
4401# The possible output files:
4402ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4403
4404ac_rmfiles=
4405for ac_file in $ac_files
4406do
4407 case $ac_file in
4408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4409 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4410 esac
4411done
4412rm -f $ac_rmfiles
4413
4414if { { ac_try="$ac_link_default"
4415case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4418esac
4419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4420$as_echo "$ac_try_echo"; } >&5
4421 (eval "$ac_link_default") 2>&5
c6b750e1 4422 ac_status=$?
81ecdfbb
RW
4423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4424 test $ac_status = 0; }; then :
4425 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4426# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4427# in a Makefile. We should not override ac_cv_exeext if it was cached,
4428# so that the user can short-circuit this test for compilers unknown to
4429# Autoconf.
4430for ac_file in $ac_files ''
c6b750e1
DJ
4431do
4432 test -f "$ac_file" || continue
4433 case $ac_file in
81ecdfbb 4434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4435 ;;
4436 [ab].out )
4437 # We found the default executable, but exeext='' is most
4438 # certainly right.
4439 break;;
4440 *.* )
81ecdfbb
RW
4441 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4442 then :; else
4443 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4444 fi
4445 # We set ac_cv_exeext here because the later test for it is not
4446 # safe: cross compilers may not add the suffix if given an `-o'
4447 # argument, so we may need to know it at that point already.
4448 # Even if this section looks crufty: it has the advantage of
4449 # actually working.
c6b750e1
DJ
4450 break;;
4451 * )
4452 break;;
4453 esac
4454done
81ecdfbb
RW
4455test "$ac_cv_exeext" = no && ac_cv_exeext=
4456
c6b750e1 4457else
81ecdfbb
RW
4458 ac_file=''
4459fi
81ecdfbb 4460if test -z "$ac_file"; then :
d0ac1c44
SM
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462$as_echo "no" >&6; }
4463$as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4464sed 's/^/| /' conftest.$ac_ext >&5
4465
81ecdfbb
RW
4466{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4468as_fn_error 77 "C compiler cannot create executables
4469See \`config.log' for more details" "$LINENO" 5; }
4470else
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4472$as_echo "yes" >&6; }
c6b750e1 4473fi
d0ac1c44
SM
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4475$as_echo_n "checking for C compiler default output file name... " >&6; }
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4477$as_echo "$ac_file" >&6; }
c6b750e1 4478ac_exeext=$ac_cv_exeext
c6b750e1 4479
d0ac1c44 4480rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
c6b750e1 4481ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4483$as_echo_n "checking for suffix of executables... " >&6; }
4484if { { ac_try="$ac_link"
4485case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4488esac
4489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4490$as_echo "$ac_try_echo"; } >&5
4491 (eval "$ac_link") 2>&5
c6b750e1 4492 ac_status=$?
81ecdfbb
RW
4493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4494 test $ac_status = 0; }; then :
c6b750e1
DJ
4495 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4496# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4497# work properly (i.e., refer to `conftest.exe'), while it won't with
4498# `rm'.
4499for ac_file in conftest.exe conftest conftest.*; do
4500 test -f "$ac_file" || continue
4501 case $ac_file in
81ecdfbb 4502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4503 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4504 break;;
4505 * ) break;;
4506 esac
4507done
4508else
81ecdfbb
RW
4509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4511as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4512See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4513fi
d0ac1c44 4514rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4516$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4517
4518rm -f conftest.$ac_ext
4519EXEEXT=$ac_cv_exeext
4520ac_exeext=$EXEEXT
d0ac1c44
SM
4521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522/* end confdefs.h. */
4523#include <stdio.h>
4524int
4525main ()
4526{
4527FILE *f = fopen ("conftest.out", "w");
4528 return ferror (f) || fclose (f) != 0;
4529
4530 ;
4531 return 0;
4532}
4533_ACEOF
4534ac_clean_files="$ac_clean_files conftest.out"
4535# Check that the compiler produces executables we can run. If not, either
4536# the compiler is broken, or we cross compile.
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4538$as_echo_n "checking whether we are cross compiling... " >&6; }
4539if test "$cross_compiling" != yes; then
4540 { { ac_try="$ac_link"
4541case "(($ac_try" in
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4544esac
4545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4546$as_echo "$ac_try_echo"; } >&5
4547 (eval "$ac_link") 2>&5
4548 ac_status=$?
4549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4550 test $ac_status = 0; }
4551 if { ac_try='./conftest$ac_cv_exeext'
4552 { { case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4555esac
4556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4557$as_echo "$ac_try_echo"; } >&5
4558 (eval "$ac_try") 2>&5
4559 ac_status=$?
4560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4561 test $ac_status = 0; }; }; then
4562 cross_compiling=no
4563 else
4564 if test "$cross_compiling" = maybe; then
4565 cross_compiling=yes
4566 else
4567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4569as_fn_error $? "cannot run C compiled programs.
4570If you meant to cross compile, use \`--host'.
4571See \`config.log' for more details" "$LINENO" 5; }
4572 fi
4573 fi
4574fi
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4576$as_echo "$cross_compiling" >&6; }
4577
4578rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4579ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4581$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 4582if ${ac_cv_objext+:} false; then :
81ecdfbb 4583 $as_echo_n "(cached) " >&6
c6b750e1 4584else
81ecdfbb 4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4586/* end confdefs.h. */
4587
4588int
4589main ()
4590{
4591
4592 ;
4593 return 0;
4594}
4595_ACEOF
4596rm -f conftest.o conftest.obj
81ecdfbb
RW
4597if { { ac_try="$ac_compile"
4598case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4601esac
4602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4603$as_echo "$ac_try_echo"; } >&5
4604 (eval "$ac_compile") 2>&5
c6b750e1 4605 ac_status=$?
81ecdfbb
RW
4606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4607 test $ac_status = 0; }; then :
4608 for ac_file in conftest.o conftest.obj conftest.*; do
4609 test -f "$ac_file" || continue;
c6b750e1 4610 case $ac_file in
81ecdfbb 4611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4612 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4613 break;;
4614 esac
4615done
cac3d6c4 4616else
81ecdfbb 4617 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4618sed 's/^/| /' conftest.$ac_ext >&5
4619
81ecdfbb
RW
4620{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4622as_fn_error $? "cannot compute suffix of object files: cannot compile
4623See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4624fi
c6b750e1
DJ
4625rm -f conftest.$ac_cv_objext conftest.$ac_ext
4626fi
81ecdfbb
RW
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4628$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4629OBJEXT=$ac_cv_objext
4630ac_objext=$OBJEXT
81ecdfbb
RW
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4632$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4633if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 4634 $as_echo_n "(cached) " >&6
c6b750e1 4635else
81ecdfbb 4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4637/* end confdefs.h. */
4638
4639int
4640main ()
4641{
4642#ifndef __GNUC__
4643 choke me
4644#endif
4645
4646 ;
4647 return 0;
4648}
4649_ACEOF
81ecdfbb 4650if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4651 ac_compiler_gnu=yes
4652else
81ecdfbb 4653 ac_compiler_gnu=no
c6b750e1 4654fi
81ecdfbb 4655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4656ac_cv_c_compiler_gnu=$ac_compiler_gnu
4657
4658fi
81ecdfbb
RW
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4660$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4661if test $ac_compiler_gnu = yes; then
4662 GCC=yes
4663else
4664 GCC=
4665fi
c6b750e1
DJ
4666ac_test_CFLAGS=${CFLAGS+set}
4667ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4669$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4670if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
4671 $as_echo_n "(cached) " >&6
4672else
4673 ac_save_c_werror_flag=$ac_c_werror_flag
4674 ac_c_werror_flag=yes
4675 ac_cv_prog_cc_g=no
4676 CFLAGS="-g"
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4678/* end confdefs.h. */
4679
4680int
4681main ()
4682{
4683
4684 ;
4685 return 0;
4686}
4687_ACEOF
81ecdfbb 4688if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4689 ac_cv_prog_cc_g=yes
4690else
81ecdfbb
RW
4691 CFLAGS=""
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693/* end confdefs.h. */
4694
4695int
4696main ()
4697{
4698
4699 ;
4700 return 0;
4701}
4702_ACEOF
4703if ac_fn_c_try_compile "$LINENO"; then :
4704
4705else
4706 ac_c_werror_flag=$ac_save_c_werror_flag
4707 CFLAGS="-g"
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709/* end confdefs.h. */
cac3d6c4 4710
81ecdfbb
RW
4711int
4712main ()
4713{
4714
4715 ;
4716 return 0;
4717}
4718_ACEOF
4719if ac_fn_c_try_compile "$LINENO"; then :
4720 ac_cv_prog_cc_g=yes
4721fi
4722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4723fi
81ecdfbb 4724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4725fi
81ecdfbb
RW
4726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727 ac_c_werror_flag=$ac_save_c_werror_flag
4728fi
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4730$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4731if test "$ac_test_CFLAGS" = set; then
c6b750e1 4732 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4733elif test $ac_cv_prog_cc_g = yes; then
4734 if test "$GCC" = yes; then
4735 CFLAGS="-g -O2"
4736 else
4737 CFLAGS="-g"
4738 fi
4739else
4740 if test "$GCC" = yes; then
4741 CFLAGS="-O2"
4742 else
4743 CFLAGS=
4744 fi
4745fi
81ecdfbb
RW
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4747$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4748if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 4749 $as_echo_n "(cached) " >&6
c6b750e1 4750else
81ecdfbb 4751 ac_cv_prog_cc_c89=no
c6b750e1 4752ac_save_CC=$CC
81ecdfbb 4753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4754/* end confdefs.h. */
4755#include <stdarg.h>
4756#include <stdio.h>
d0ac1c44 4757struct stat;
c6b750e1
DJ
4758/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4759struct buf { int x; };
4760FILE * (*rcsopen) (struct buf *, struct stat *, int);
4761static char *e (p, i)
4762 char **p;
4763 int i;
4764{
4765 return p[i];
4766}
4767static char *f (char * (*g) (char **, int), char **p, ...)
4768{
4769 char *s;
4770 va_list v;
4771 va_start (v,p);
4772 s = g (p, va_arg (v,int));
4773 va_end (v);
4774 return s;
4775}
4776
4777/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4778 function prototypes and stuff, but not '\xHH' hex character constants.
4779 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4780 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4781 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4782 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4783 that's true only with -std. */
c6b750e1
DJ
4784int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4785
81ecdfbb
RW
4786/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4787 inside strings and character constants. */
4788#define FOO(x) 'x'
4789int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4790
c6b750e1
DJ
4791int test (int i, double x);
4792struct s1 {int (*f) (int a);};
4793struct s2 {int (*f) (double a);};
4794int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4795int argc;
4796char **argv;
4797int
4798main ()
4799{
4800return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4801 ;
4802 return 0;
4803}
4804_ACEOF
81ecdfbb
RW
4805for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4806 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4807do
4808 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4809 if ac_fn_c_try_compile "$LINENO"; then :
4810 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4811fi
81ecdfbb
RW
4812rm -f core conftest.err conftest.$ac_objext
4813 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4814done
81ecdfbb 4815rm -f conftest.$ac_ext
c6b750e1
DJ
4816CC=$ac_save_CC
4817
4818fi
81ecdfbb
RW
4819# AC_CACHE_VAL
4820case "x$ac_cv_prog_cc_c89" in
4821 x)
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4823$as_echo "none needed" >&6; } ;;
4824 xno)
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4826$as_echo "unsupported" >&6; } ;;
c6b750e1 4827 *)
81ecdfbb
RW
4828 CC="$CC $ac_cv_prog_cc_c89"
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4830$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4831esac
81ecdfbb 4832if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4833
c6b750e1
DJ
4834fi
4835
c6b750e1
DJ
4836ac_ext=c
4837ac_cpp='$CPP $CPPFLAGS'
4838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4841
a8d6316b
NC
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4843$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4844if ${ac_cv_prog_cc_c99+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846else
4847 ac_cv_prog_cc_c99=no
4848ac_save_CC=$CC
4849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850/* end confdefs.h. */
4851#include <stdarg.h>
4852#include <stdbool.h>
4853#include <stdlib.h>
4854#include <wchar.h>
4855#include <stdio.h>
4856
4857// Check varargs macros. These examples are taken from C99 6.10.3.5.
4858#define debug(...) fprintf (stderr, __VA_ARGS__)
4859#define showlist(...) puts (#__VA_ARGS__)
4860#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4861static void
4862test_varargs_macros (void)
4863{
4864 int x = 1234;
4865 int y = 5678;
4866 debug ("Flag");
4867 debug ("X = %d\n", x);
4868 showlist (The first, second, and third items.);
4869 report (x>y, "x is %d but y is %d", x, y);
4870}
4871
4872// Check long long types.
4873#define BIG64 18446744073709551615ull
4874#define BIG32 4294967295ul
4875#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4876#if !BIG_OK
4877 your preprocessor is broken;
4878#endif
4879#if BIG_OK
4880#else
4881 your preprocessor is broken;
4882#endif
4883static long long int bignum = -9223372036854775807LL;
4884static unsigned long long int ubignum = BIG64;
4885
4886struct incomplete_array
4887{
4888 int datasize;
4889 double data[];
4890};
4891
4892struct named_init {
4893 int number;
4894 const wchar_t *name;
4895 double average;
4896};
4897
4898typedef const char *ccp;
4899
4900static inline int
4901test_restrict (ccp restrict text)
4902{
4903 // See if C++-style comments work.
4904 // Iterate through items via the restricted pointer.
4905 // Also check for declarations in for loops.
4906 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4907 continue;
4908 return 0;
4909}
4910
4911// Check varargs and va_copy.
4912static void
4913test_varargs (const char *format, ...)
4914{
4915 va_list args;
4916 va_start (args, format);
4917 va_list args_copy;
4918 va_copy (args_copy, args);
4919
4920 const char *str;
4921 int number;
4922 float fnumber;
4923
4924 while (*format)
4925 {
4926 switch (*format++)
4927 {
4928 case 's': // string
4929 str = va_arg (args_copy, const char *);
4930 break;
4931 case 'd': // int
4932 number = va_arg (args_copy, int);
4933 break;
4934 case 'f': // float
4935 fnumber = va_arg (args_copy, double);
4936 break;
4937 default:
4938 break;
4939 }
4940 }
4941 va_end (args_copy);
4942 va_end (args);
4943}
4944
4945int
4946main ()
4947{
4948
4949 // Check bool.
4950 _Bool success = false;
4951
4952 // Check restrict.
4953 if (test_restrict ("String literal") == 0)
4954 success = true;
4955 char *restrict newvar = "Another string";
4956
4957 // Check varargs.
4958 test_varargs ("s, d' f .", "string", 65, 34.234);
4959 test_varargs_macros ();
4960
4961 // Check flexible array members.
4962 struct incomplete_array *ia =
4963 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4964 ia->datasize = 10;
4965 for (int i = 0; i < ia->datasize; ++i)
4966 ia->data[i] = i * 1.234;
4967
4968 // Check named initializers.
4969 struct named_init ni = {
4970 .number = 34,
4971 .name = L"Test wide string",
4972 .average = 543.34343,
4973 };
4974
4975 ni.number = 58;
4976
4977 int dynamic_array[ni.number];
4978 dynamic_array[ni.number - 1] = 543;
4979
4980 // work around unused variable warnings
4981 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4982 || dynamic_array[ni.number - 1] != 543);
4983
4984 ;
4985 return 0;
4986}
4987_ACEOF
4988for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4989do
4990 CC="$ac_save_CC $ac_arg"
4991 if ac_fn_c_try_compile "$LINENO"; then :
4992 ac_cv_prog_cc_c99=$ac_arg
4993fi
4994rm -f core conftest.err conftest.$ac_objext
4995 test "x$ac_cv_prog_cc_c99" != "xno" && break
4996done
4997rm -f conftest.$ac_ext
4998CC=$ac_save_CC
4999
5000fi
5001# AC_CACHE_VAL
5002case "x$ac_cv_prog_cc_c99" in
5003 x)
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5005$as_echo "none needed" >&6; } ;;
5006 xno)
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5008$as_echo "unsupported" >&6; } ;;
5009 *)
5010 CC="$CC $ac_cv_prog_cc_c99"
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5012$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5013esac
5014if test "x$ac_cv_prog_cc_c99" != xno; then :
5015
5016fi
5017
5018
81ecdfbb 5019ac_ext=cpp
18f6b6ee
PB
5020ac_cpp='$CXXCPP $CPPFLAGS'
5021ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5022ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5023ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
5024if test -z "$CXX"; then
5025 if test -n "$CCC"; then
5026 CXX=$CCC
5027 else
5028 if test -n "$ac_tool_prefix"; then
5029 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
5030 do
5031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5032set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5035if ${ac_cv_prog_CXX+:} false; then :
81ecdfbb 5036 $as_echo_n "(cached) " >&6
18f6b6ee
PB
5037else
5038 if test -n "$CXX"; then
5039 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5040else
5041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042for as_dir in $PATH
5043do
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
81ecdfbb 5046 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 5048 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
5050 break 2
5051 fi
5052done
81ecdfbb
RW
5053 done
5054IFS=$as_save_IFS
512b7dfb 5055
18f6b6ee
PB
5056fi
5057fi
5058CXX=$ac_cv_prog_CXX
5059if test -n "$CXX"; then
81ecdfbb
RW
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5061$as_echo "$CXX" >&6; }
18f6b6ee 5062else
81ecdfbb
RW
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064$as_echo "no" >&6; }
18f6b6ee
PB
5065fi
5066
81ecdfbb 5067
18f6b6ee
PB
5068 test -n "$CXX" && break
5069 done
5070fi
5071if test -z "$CXX"; then
5072 ac_ct_CXX=$CXX
81ecdfbb 5073 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
5074do
5075 # Extract the first word of "$ac_prog", so it can be a program name with args.
5076set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5079if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 5080 $as_echo_n "(cached) " >&6
18f6b6ee
PB
5081else
5082 if test -n "$ac_ct_CXX"; then
5083 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5084else
5085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086for as_dir in $PATH
5087do
5088 IFS=$as_save_IFS
5089 test -z "$as_dir" && as_dir=.
81ecdfbb 5090 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 5092 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 5093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 5094 break 2
512b7dfb 5095 fi
18f6b6ee 5096done
81ecdfbb
RW
5097 done
5098IFS=$as_save_IFS
512b7dfb 5099
18f6b6ee
PB
5100fi
5101fi
5102ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5103if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5105$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 5106else
81ecdfbb
RW
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108$as_echo "no" >&6; }
18f6b6ee
PB
5109fi
5110
81ecdfbb 5111
18f6b6ee
PB
5112 test -n "$ac_ct_CXX" && break
5113done
18f6b6ee 5114
81ecdfbb
RW
5115 if test "x$ac_ct_CXX" = x; then
5116 CXX="g++"
5117 else
5118 case $cross_compiling:$ac_tool_warned in
5119yes:)
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5122ac_tool_warned=yes ;;
5123esac
5124 CXX=$ac_ct_CXX
5125 fi
18f6b6ee
PB
5126fi
5127
81ecdfbb
RW
5128 fi
5129fi
18f6b6ee 5130# Provide some information about the compiler.
81ecdfbb
RW
5131$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5132set X $ac_compile
5133ac_compiler=$2
5134for ac_option in --version -v -V -qversion; do
5135 { { ac_try="$ac_compiler $ac_option >&5"
5136case "(($ac_try" in
5137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138 *) ac_try_echo=$ac_try;;
5139esac
5140eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5141$as_echo "$ac_try_echo"; } >&5
5142 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 5143 ac_status=$?
81ecdfbb
RW
5144 if test -s conftest.err; then
5145 sed '10a\
5146... rest of stderr output deleted ...
5147 10q' conftest.err >conftest.er1
5148 cat conftest.er1 >&5
81ecdfbb 5149 fi
d0ac1c44 5150 rm -f conftest.er1 conftest.err
81ecdfbb
RW
5151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5152 test $ac_status = 0; }
5153done
18f6b6ee 5154
81ecdfbb
RW
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5156$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 5157if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 5158 $as_echo_n "(cached) " >&6
18f6b6ee 5159else
81ecdfbb 5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
5161/* end confdefs.h. */
5162
5163int
5164main ()
5165{
5166#ifndef __GNUC__
5167 choke me
5168#endif
5169
5170 ;
5171 return 0;
5172}
5173_ACEOF
81ecdfbb 5174if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
5175 ac_compiler_gnu=yes
5176else
81ecdfbb 5177 ac_compiler_gnu=no
18f6b6ee 5178fi
81ecdfbb 5179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
5180ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5181
5182fi
81ecdfbb
RW
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5184$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5185if test $ac_compiler_gnu = yes; then
5186 GXX=yes
5187else
5188 GXX=
5189fi
18f6b6ee
PB
5190ac_test_CXXFLAGS=${CXXFLAGS+set}
5191ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5193$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 5194if ${ac_cv_prog_cxx_g+:} false; then :
81ecdfbb
RW
5195 $as_echo_n "(cached) " >&6
5196else
5197 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5198 ac_cxx_werror_flag=yes
5199 ac_cv_prog_cxx_g=no
5200 CXXFLAGS="-g"
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
5202/* end confdefs.h. */
5203
5204int
5205main ()
5206{
5207
5208 ;
5209 return 0;
5210}
5211_ACEOF
81ecdfbb 5212if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
5213 ac_cv_prog_cxx_g=yes
5214else
81ecdfbb
RW
5215 CXXFLAGS=""
5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5217/* end confdefs.h. */
81ecdfbb 5218
18f6b6ee
PB
5219int
5220main ()
5221{
81ecdfbb 5222
18f6b6ee
PB
5223 ;
5224 return 0;
5225}
5226_ACEOF
81ecdfbb 5227if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 5228
81ecdfbb
RW
5229else
5230 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5231 CXXFLAGS="-g"
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5233/* end confdefs.h. */
81ecdfbb 5234
18f6b6ee
PB
5235int
5236main ()
5237{
81ecdfbb 5238
18f6b6ee
PB
5239 ;
5240 return 0;
5241}
5242_ACEOF
81ecdfbb
RW
5243if ac_fn_cxx_try_compile "$LINENO"; then :
5244 ac_cv_prog_cxx_g=yes
18f6b6ee 5245fi
81ecdfbb
RW
5246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247fi
5248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5249fi
5250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5252fi
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5254$as_echo "$ac_cv_prog_cxx_g" >&6; }
5255if test "$ac_test_CXXFLAGS" = set; then
5256 CXXFLAGS=$ac_save_CXXFLAGS
5257elif test $ac_cv_prog_cxx_g = yes; then
5258 if test "$GXX" = yes; then
5259 CXXFLAGS="-g -O2"
5260 else
5261 CXXFLAGS="-g"
5262 fi
5263else
5264 if test "$GXX" = yes; then
5265 CXXFLAGS="-O2"
5266 else
5267 CXXFLAGS=
5268 fi
18f6b6ee 5269fi
18f6b6ee
PB
5270ac_ext=c
5271ac_cpp='$CPP $CPPFLAGS'
5272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5274ac_compiler_gnu=$ac_cv_c_compiler_gnu
5275
5276
5277# We must set the default linker to the linker used by gcc for the correct
5278# operation of libtool. If LD is not defined and we are using gcc, try to
5279# set the LD default to the ld used by gcc.
5280if test -z "$LD"; then
5281 if test "$GCC" = yes; then
5282 case $build in
5283 *-*-mingw*)
5284 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5285 *)
5286 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5287 esac
5288 case $gcc_prog_ld in
5289 # Accept absolute paths.
5290 [\\/]* | [A-Za-z]:[\\/]*)
5291 LD="$gcc_prog_ld" ;;
5292 esac
5293 fi
512b7dfb
PB
5294fi
5295
b3676d82
EB
5296# Check whether -static-libstdc++ -static-libgcc is supported.
5297have_static_libs=no
5298if test "$GCC" = yes; then
5299 saved_LDFLAGS="$LDFLAGS"
5300
5301 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5303$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5304 ac_ext=cpp
5305ac_cpp='$CXXCPP $CPPFLAGS'
5306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5309
5310
5311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312/* end confdefs.h. */
a882be68
EB
5313
5314#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5315#error -static-libstdc++ not implemented
5316#endif
b3676d82
EB
5317int main() {}
5318_ACEOF
5319if ac_fn_cxx_try_link "$LINENO"; then :
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5321$as_echo "yes" >&6; }; have_static_libs=yes
5322else
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324$as_echo "no" >&6; }
5325fi
5326rm -f core conftest.err conftest.$ac_objext \
5327 conftest$ac_exeext conftest.$ac_ext
5328 ac_ext=c
5329ac_cpp='$CPP $CPPFLAGS'
5330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5332ac_compiler_gnu=$ac_cv_c_compiler_gnu
5333
5334
5335 LDFLAGS="$saved_LDFLAGS"
5336fi
5337
512b7dfb
PB
5338
5339
5340
c6b750e1 5341if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5342 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5343set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5346if ${ac_cv_prog_GNATBIND+:} false; then :
81ecdfbb 5347 $as_echo_n "(cached) " >&6
9e07f89d 5348else
512b7dfb
PB
5349 if test -n "$GNATBIND"; then
5350 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5351else
c6b750e1
DJ
5352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353for as_dir in $PATH
5354do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
81ecdfbb 5357 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5359 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5361 break 2
5362 fi
5363done
81ecdfbb
RW
5364 done
5365IFS=$as_save_IFS
c6b750e1 5366
9e07f89d
NN
5367fi
5368fi
512b7dfb
PB
5369GNATBIND=$ac_cv_prog_GNATBIND
5370if test -n "$GNATBIND"; then
81ecdfbb
RW
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5372$as_echo "$GNATBIND" >&6; }
9e07f89d 5373else
81ecdfbb
RW
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375$as_echo "no" >&6; }
9e07f89d
NN
5376fi
5377
81ecdfbb 5378
c6b750e1 5379fi
512b7dfb
PB
5380if test -z "$ac_cv_prog_GNATBIND"; then
5381 ac_ct_GNATBIND=$GNATBIND
5382 # Extract the first word of "gnatbind", so it can be a program name with args.
5383set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5385$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5386if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
81ecdfbb 5387 $as_echo_n "(cached) " >&6
9e07f89d 5388else
512b7dfb
PB
5389 if test -n "$ac_ct_GNATBIND"; then
5390 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5391else
c6b750e1
DJ
5392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393for as_dir in $PATH
5394do
5395 IFS=$as_save_IFS
5396 test -z "$as_dir" && as_dir=.
81ecdfbb 5397 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5399 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5401 break 2
5402 fi
5403done
81ecdfbb
RW
5404 done
5405IFS=$as_save_IFS
c6b750e1 5406
9e07f89d
NN
5407fi
5408fi
512b7dfb
PB
5409ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5410if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5412$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5413else
81ecdfbb
RW
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415$as_echo "no" >&6; }
9e07f89d
NN
5416fi
5417
81ecdfbb
RW
5418 if test "x$ac_ct_GNATBIND" = x; then
5419 GNATBIND="no"
5420 else
5421 case $cross_compiling:$ac_tool_warned in
5422yes:)
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5425ac_tool_warned=yes ;;
5426esac
5427 GNATBIND=$ac_ct_GNATBIND
5428 fi
24ff9987 5429else
512b7dfb 5430 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5431fi
5432
7df2cd5d 5433if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5434 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5435set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5438if ${ac_cv_prog_GNATMAKE+:} false; then :
81ecdfbb 5439 $as_echo_n "(cached) " >&6
7df2cd5d 5440else
512b7dfb
PB
5441 if test -n "$GNATMAKE"; then
5442 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5443else
5444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445for as_dir in $PATH
5446do
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
81ecdfbb 5449 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5451 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5453 break 2
5454 fi
5455done
81ecdfbb
RW
5456 done
5457IFS=$as_save_IFS
7df2cd5d
PB
5458
5459fi
5460fi
512b7dfb
PB
5461GNATMAKE=$ac_cv_prog_GNATMAKE
5462if test -n "$GNATMAKE"; then
81ecdfbb
RW
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5464$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5465else
81ecdfbb
RW
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467$as_echo "no" >&6; }
7df2cd5d
PB
5468fi
5469
81ecdfbb 5470
7df2cd5d 5471fi
512b7dfb
PB
5472if test -z "$ac_cv_prog_GNATMAKE"; then
5473 ac_ct_GNATMAKE=$GNATMAKE
5474 # Extract the first word of "gnatmake", so it can be a program name with args.
5475set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5477$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5478if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
81ecdfbb 5479 $as_echo_n "(cached) " >&6
7df2cd5d 5480else
512b7dfb
PB
5481 if test -n "$ac_ct_GNATMAKE"; then
5482 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5483else
5484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485for as_dir in $PATH
5486do
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
81ecdfbb 5489 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5491 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5493 break 2
5494 fi
5495done
81ecdfbb
RW
5496 done
5497IFS=$as_save_IFS
7df2cd5d 5498
7df2cd5d
PB
5499fi
5500fi
512b7dfb
PB
5501ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5502if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5504$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5505else
81ecdfbb
RW
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507$as_echo "no" >&6; }
7df2cd5d
PB
5508fi
5509
81ecdfbb
RW
5510 if test "x$ac_ct_GNATMAKE" = x; then
5511 GNATMAKE="no"
5512 else
5513 case $cross_compiling:$ac_tool_warned in
5514yes:)
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5517ac_tool_warned=yes ;;
5518esac
5519 GNATMAKE=$ac_ct_GNATMAKE
5520 fi
7df2cd5d 5521else
512b7dfb 5522 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5523fi
5524
81ecdfbb
RW
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5526$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
d0ac1c44 5527if ${acx_cv_cc_gcc_supports_ada+:} false; then :
81ecdfbb 5528 $as_echo_n "(cached) " >&6
9e07f89d
NN
5529else
5530 cat >conftest.adb <<EOF
5531procedure conftest is begin null; end conftest;
5532EOF
5533acx_cv_cc_gcc_supports_ada=no
5534# There is a bug in old released versions of GCC which causes the
5535# driver to exit successfully when the appropriate language module
5536# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5537# Therefore we must check for the error message as well as an
5538# unsuccessful exit.
b8908782
DD
5539# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5540# given a .adb file, but produce no object file. So we must check
5541# if an object file was really produced to guard against this.
9e07f89d 5542errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5543if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5544 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5545fi
5546rm -f conftest.*
5547fi
81ecdfbb
RW
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5549$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5550
64b986c0 5551if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5552 have_gnat=yes
5553else
5554 have_gnat=no
5555fi
5556
81ecdfbb
RW
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5558$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
d0ac1c44 5559if ${gcc_cv_prog_cmp_skip+:} false; then :
81ecdfbb 5560 $as_echo_n "(cached) " >&6
b8908782
DD
5561else
5562 echo abfoo >t1
5563 echo cdfoo >t2
da17fe9d 5564 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5565 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5566 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5567 :
5568 else
5569 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5570 fi
5571 fi
b8908782
DD
5572 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5573 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5574 :
b8908782
DD
5575 else
5576 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5577 fi
5578 fi
5579 rm t1 t2
5580
5581fi
81ecdfbb
RW
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5583$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5584do_compare="$gcc_cv_prog_cmp_skip"
5585
5586
9e07f89d 5587
ffdd6afc
ILT
5588# Check whether --enable-bootstrap was given.
5589if test "${enable_bootstrap+set}" = set; then :
5590 enableval=$enable_bootstrap;
5591else
5592 enable_bootstrap=default
5593fi
5594
5595
5596# Issue errors and warnings for invalid/strange bootstrap combinations.
5597if test -r $srcdir/gcc/configure; then
5598 have_compiler=yes
5599else
5600 have_compiler=no
5601fi
5602
5603case "$have_compiler:$host:$target:$enable_bootstrap" in
5604 *:*:*:no) ;;
5605
5606 # Default behavior. Enable bootstrap if we have a compiler
5607 # and we are in a native configuration.
5608 yes:$build:$build:default)
5609 enable_bootstrap=yes ;;
5610
5611 *:*:*:default)
5612 enable_bootstrap=no ;;
5613
5614 # We have a compiler and we are in a native configuration, bootstrap is ok
5615 yes:$build:$build:yes)
5616 ;;
5617
5618 # Other configurations, but we have a compiler. Assume the user knows
5619 # what he's doing.
5620 yes:*:*:yes)
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5622$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5623 ;;
5624
5625 # No compiler: if they passed --enable-bootstrap explicitly, fail
5626 no:*:*:yes)
d0ac1c44 5627 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ffdd6afc
ILT
5628
5629 # Fail if wrong command line
5630 *)
d0ac1c44 5631 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ffdd6afc
ILT
5632 ;;
5633esac
5634
ce6c656d
L
5635# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5636# C++98 compiler can still start the bootstrap.
5637if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5638 CXX="$CXX -std=gnu++98"
5639fi
5640
af019bfd
L
5641# Check whether --enable-pgo-build was given.
5642if test "${enable_pgo_build+set}" = set; then :
5643 enableval=$enable_pgo_build; enable_pgo_build=$enableval
5644else
5645 enable_pgo_build=no
5646fi
5647
5648
5649# Issue errors and warnings for invalid/strange PGO build combinations.
5650case "$have_compiler:$host:$target:$enable_pgo_build" in
5651 *:*:*:no) ;;
5652
5653 # Allow the PGO build only if we aren't building a compiler and
5654 # we are in a native configuration.
5655 no:$build:$build:yes | no:$build:$build:lto) ;;
5656
5657 # Disallow the PGO bootstrap if we are building a compiler.
5658 yes:*:*:yes | yes:*:*:lto)
5659 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
5660
5661 *)
5662 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
5663 ;;
5664esac
5665
5666if test "$enable_pgo_build" != "no"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
5668$as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
5669 old_CFLAGS="$CFLAGS"
5670 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
5671 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
5672
5673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674/* end confdefs.h. */
5675int foo;
5676_ACEOF
5677if ac_fn_c_try_compile "$LINENO"; then :
5678
5679else
5680 PGO_BUILD_GEN_CFLAGS=
5681fi
5682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 CFLAGS="$old_CFLAGS"
5684 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5686$as_echo "yes" >&6; }
5687 PGO_BUILD_USE_CFLAGS="-fprofile-use"
5688 else
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690$as_echo "no" >&6; }
5691 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
5692 fi
5693
5694 if test "$enable_pgo_build" = "lto"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
5696$as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
5697 old_CFLAGS="$CFLAGS"
5698 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
5699 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701/* end confdefs.h. */
5702int foo;
5703_ACEOF
5704if ac_fn_c_try_compile "$LINENO"; then :
5705
5706else
5707 PGO_BUILD_LTO_CFLAGS=
5708fi
5709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 CFLAGS="$old_CFLAGS"
5711 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5713$as_echo "yes" >&6; }
5714 else
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716$as_echo "no" >&6; }
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
5718$as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
5719 fi
5720 fi
5721fi
5722
5723
5724
5725
d5f2ee2e
KG
5726# Used for setting $lt_cv_objdir
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5728$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 5729if ${lt_cv_objdir+:} false; then :
d5f2ee2e
KG
5730 $as_echo_n "(cached) " >&6
5731else
5732 rm -f .libs 2>/dev/null
5733mkdir .libs 2>/dev/null
5734if test -d .libs; then
5735 lt_cv_objdir=.libs
5736else
5737 # MS-DOS does not allow filenames that begin with a dot.
5738 lt_cv_objdir=_libs
5739fi
5740rmdir .libs 2>/dev/null
5741fi
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5743$as_echo "$lt_cv_objdir" >&6; }
5744objdir=$lt_cv_objdir
5745
5746
5747
5748
5749
5750cat >>confdefs.h <<_ACEOF
5751#define LT_OBJDIR "$lt_cv_objdir/"
5752_ACEOF
5753
5754
5755
e8a5fa9c 5756# Check for GMP, MPFR and MPC
d9b76ff9 5757gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5758gmpinc=
4b900473 5759have_gmp=no
e8a5fa9c
RW
5760
5761# Specify a location for mpc
5762# check for this first so it ends up on the link line before mpfr.
5763
81ecdfbb
RW
5764# Check whether --with-mpc was given.
5765if test "${with_mpc+set}" = set; then :
5766 withval=$with_mpc;
5767fi
e8a5fa9c 5768
e8a5fa9c 5769
e552509b 5770# Check whether --with-mpc-include was given.
81ecdfbb
RW
5771if test "${with_mpc_include+set}" = set; then :
5772 withval=$with_mpc_include;
5773fi
e8a5fa9c 5774
e8a5fa9c 5775
e552509b 5776# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5777if test "${with_mpc_lib+set}" = set; then :
5778 withval=$with_mpc_lib;
5779fi
e8a5fa9c 5780
e8a5fa9c
RW
5781
5782if test "x$with_mpc" != x; then
d9b76ff9
KG
5783 gmplibs="-L$with_mpc/lib $gmplibs"
5784 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5785fi
5786if test "x$with_mpc_include" != x; then
d9b76ff9 5787 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5788fi
5789if test "x$with_mpc_lib" != x; then
d9b76ff9 5790 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5791fi
5792if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5793 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5794 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5795 # Do not test the mpc version. Assume that it is sufficient, since
5796 # it is in the source tree, and the library has not been built yet
5797 # but it would be included on the link line in the version check below
5798 # hence making the test fail.
d9b76ff9 5799 have_gmp=yes
e8a5fa9c 5800fi
4b900473 5801
11b04d1f
DD
5802# Specify a location for mpfr
5803# check for this first so it ends up on the link line before gmp.
c6b750e1 5804
81ecdfbb
RW
5805# Check whether --with-mpfr-dir was given.
5806if test "${with_mpfr_dir+set}" = set; then :
d0ac1c44 5807 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
81ecdfbb
RW
5808Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5809fi
5810
11b04d1f
DD
5811
5812
81ecdfbb
RW
5813# Check whether --with-mpfr was given.
5814if test "${with_mpfr+set}" = set; then :
5815 withval=$with_mpfr;
5816fi
c6b750e1 5817
11b04d1f 5818
e552509b 5819# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5820if test "${with_mpfr_include+set}" = set; then :
5821 withval=$with_mpfr_include;
5822fi
c6b750e1 5823
8a0d8a5c 5824
e552509b 5825# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5826if test "${with_mpfr_lib+set}" = set; then :
5827 withval=$with_mpfr_lib;
5828fi
8a0d8a5c 5829
11b04d1f
DD
5830
5831if test "x$with_mpfr" != x; then
5832 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5833 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5834fi
8a0d8a5c 5835if test "x$with_mpfr_include" != x; then
d9b76ff9 5836 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5837fi
5838if test "x$with_mpfr_lib" != x; then
5839 gmplibs="-L$with_mpfr_lib $gmplibs"
5840fi
4b900473 5841if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21 5842 # MPFR v3.1.0 moved the sources into a src sub-directory.
05a13254 5843 if ! test -d ${srcdir}/mpfr/src; then
d0ac1c44 5844 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
58b1dd21 5845 fi
05a13254
NC
5846 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5847 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5848 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
4b900473
PB
5849 # Do not test the mpfr version. Assume that it is sufficient, since
5850 # it is in the source tree, and the library has not been built yet
5851 # but it would be included on the link line in the version check below
5852 # hence making the test fail.
5853 have_gmp=yes
5854fi
11b04d1f 5855
4b1cb4fe 5856# Specify a location for gmp
c6b750e1 5857
81ecdfbb
RW
5858# Check whether --with-gmp-dir was given.
5859if test "${with_gmp_dir+set}" = set; then :
d0ac1c44 5860 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
81ecdfbb
RW
5861Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5862fi
5863
4b1cb4fe
DD
5864
5865
81ecdfbb
RW
5866# Check whether --with-gmp was given.
5867if test "${with_gmp+set}" = set; then :
5868 withval=$with_gmp;
5869fi
c6b750e1 5870
4b1cb4fe 5871
e552509b 5872# Check whether --with-gmp-include was given.
81ecdfbb
RW
5873if test "${with_gmp_include+set}" = set; then :
5874 withval=$with_gmp_include;
5875fi
c6b750e1 5876
8a0d8a5c 5877
e552509b 5878# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5879if test "${with_gmp_lib+set}" = set; then :
5880 withval=$with_gmp_lib;
5881fi
8a0d8a5c
PB
5882
5883
4b1cb4fe 5884
11b04d1f
DD
5885if test "x$with_gmp" != x; then
5886 gmplibs="-L$with_gmp/lib $gmplibs"
5887 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5888fi
8a0d8a5c
PB
5889if test "x$with_gmp_include" != x; then
5890 gmpinc="-I$with_gmp_include $gmpinc"
5891fi
5892if test "x$with_gmp_lib" != x; then
5893 gmplibs="-L$with_gmp_lib $gmplibs"
5894fi
4b900473 5895if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5896 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5897 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5898 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5899 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5900 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5901 # Do not test the gmp version. Assume that it is sufficient, since
5902 # it is in the source tree, and the library has not been built yet
5903 # but it would be included on the link line in the version check below
5904 # hence making the test fail.
5905 have_gmp=yes
5906fi
4b1cb4fe 5907
ceb92e78 5908if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5909 have_gmp=yes
5910 saved_CFLAGS="$CFLAGS"
5911 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5912 # Check for the recommended and required versions of GMP.
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5914$as_echo_n "checking for the correct version of gmp.h... " >&6; }
af019bfd 5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5916/* end confdefs.h. */
5917#include "gmp.h"
5918int
5919main ()
5920{
5921
5922 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5923 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5924 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5925 choke me
5926 #endif
5927
5928 ;
5929 return 0;
5930}
5931_ACEOF
5932if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5934/* end confdefs.h. */
a6b5846e 5935#include <gmp.h>
c6b750e1
DJ
5936int
5937main ()
5938{
4b1cb4fe 5939
a6b5846e
KG
5940 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5941 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5942 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5943 choke me
5944 #endif
c6b750e1
DJ
5945
5946 ;
5947 return 0;
5948}
5949_ACEOF
81ecdfbb
RW
5950if ac_fn_c_try_compile "$LINENO"; then :
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5952$as_echo "yes" >&6; }
a6b5846e
KG
5953else
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5955$as_echo "buggy but acceptable" >&6; }
5956fi
5957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5958else
81ecdfbb
RW
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5961fi
81ecdfbb 5962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5963
e8a5fa9c 5964 # If we have GMP, check the MPFR version.
4b900473 5965 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5966 # Check for the recommended and required versions of MPFR.
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5968$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5970/* end confdefs.h. */
9b134994 5971#include <gmp.h>
4b900473 5972 #include <mpfr.h>
c6b750e1
DJ
5973int
5974main ()
5975{
9b134994 5976
7ec59b9e 5977 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5978 choke me
5979 #endif
c6b750e1
DJ
5980
5981 ;
5982 return 0;
5983}
5984_ACEOF
81ecdfbb
RW
5985if ac_fn_c_try_compile "$LINENO"; then :
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5987/* end confdefs.h. */
4b1cb4fe 5988#include <gmp.h>
4b900473 5989 #include <mpfr.h>
c6b750e1
DJ
5990int
5991main ()
5992{
9dbaa842 5993
a6b5846e 5994 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5995 choke me
5996 #endif
e8a5fa9c
RW
5997
5998 ;
5999 return 0;
6000}
6001_ACEOF
81ecdfbb
RW
6002if ac_fn_c_try_compile "$LINENO"; then :
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6004$as_echo "yes" >&6; }
e8a5fa9c 6005else
81ecdfbb
RW
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6007$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 6008fi
81ecdfbb 6009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 6010else
81ecdfbb
RW
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 6013fi
81ecdfbb 6014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
6015 fi
6016
6017 # Check for the MPC header version.
d9b76ff9 6018 if test x"$have_gmp" = xyes ; then
a6b5846e 6019 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
6021$as_echo_n "checking for the correct version of mpc.h... " >&6; }
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
6023/* end confdefs.h. */
6024#include <mpc.h>
6025int
6026main ()
6027{
6028
a6b5846e
KG
6029 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
6030 choke me
6031 #endif
6032
6033 ;
6034 return 0;
6035}
6036_ACEOF
6037if ac_fn_c_try_compile "$LINENO"; then :
6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039/* end confdefs.h. */
6040#include <mpc.h>
6041int
6042main ()
6043{
6044
6045 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
6046 choke me
6047 #endif
6048
6049 ;
6050 return 0;
6051}
6052_ACEOF
81ecdfbb
RW
6053if ac_fn_c_try_compile "$LINENO"; then :
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 6055$as_echo "yes" >&6; }
a6b5846e
KG
6056else
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6058$as_echo "buggy but acceptable" >&6; }
6059fi
6060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 6061else
81ecdfbb 6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 6063$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 6064fi
81ecdfbb 6065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
6066 fi
6067
6068 # Now check the MPFR library.
6069 if test x"$have_gmp" = xyes; then
6070 saved_LIBS="$LIBS"
6071 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
6073$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 6075/* end confdefs.h. */
d9b76ff9 6076#include <mpc.h>
e8a5fa9c
RW
6077int
6078main ()
6079{
6080
6081 mpfr_t n;
6082 mpfr_t x;
d9b76ff9 6083 mpc_t c;
e8a5fa9c
RW
6084 int t;
6085 mpfr_init (n);
6086 mpfr_init (x);
6087 mpfr_atan2 (n, n, x, GMP_RNDN);
6088 mpfr_erfc (n, x, GMP_RNDN);
6089 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
6090 mpfr_clear(n);
6091 mpfr_clear(x);
6092 mpc_init2 (c, 53);
6093 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
6094 mpc_cosh (c, c, MPC_RNDNN);
6095 mpc_pow (c, c, c, MPC_RNDNN);
6096 mpc_acosh (c, c, MPC_RNDNN);
6097 mpc_clear (c);
c6b750e1
DJ
6098
6099 ;
6100 return 0;
6101}
6102_ACEOF
81ecdfbb
RW
6103if ac_fn_c_try_link "$LINENO"; then :
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6105$as_echo "yes" >&6; }
c6b750e1 6106else
81ecdfbb
RW
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108$as_echo "no" >&6; }; have_gmp=no
c6b750e1 6109fi
81ecdfbb
RW
6110rm -f core conftest.err conftest.$ac_objext \
6111 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
6112 LIBS="$saved_LIBS"
6113 fi
6114
4b900473 6115 CFLAGS="$saved_CFLAGS"
4b1cb4fe 6116
a6b5846e
KG
6117# The library versions listed in the error message below should match
6118# the HARD-minimums enforced above.
4b900473 6119 if test x$have_gmp != xyes; then
d0ac1c44 6120 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
6121Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
6122their locations. Source code for these libraries can be found at
6123their respective hosting sites as well as at
6124ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
6125http://gcc.gnu.org/install/prerequisites.html for additional info. If
6126you obtained GMP, MPFR and/or MPC from a vendor distribution package,
6127make sure that you have installed both the libraries and the header
6128files. They may be located in separate packages." "$LINENO" 5
4b900473 6129 fi
9dbaa842
DD
6130fi
6131
e8a5fa9c
RW
6132# Flags needed for both GMP, MPFR and/or MPC.
6133
6134
6135
4b1cb4fe
DD
6136
6137
6138
7ec59b9e 6139
b3676d82 6140# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 6141
b3676d82
EB
6142# Check whether --with-stage1-libs was given.
6143if test "${with_stage1_libs+set}" = set; then :
6144 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6145 stage1_libs=
e8a5fa9c 6146 else
b3676d82 6147 stage1_libs=$withval
e8a5fa9c
RW
6148 fi
6149else
68996839 6150 stage1_libs=
81ecdfbb
RW
6151fi
6152
e8a5fa9c
RW
6153
6154
c1a5d03a
TT
6155# Whether or not to use -static-libstdc++ and -static-libgcc. The
6156# default is yes if gcc is being built; no otherwise. The reason for
6157# this default is that gdb is sometimes linked against GNU Source
6158# Highlight, which is a shared library that uses C++ exceptions. In
6159# this case, -static-libstdc++ will cause crashes.
6160
6161# Check whether --with-static-standard-libraries was given.
6162if test "${with_static_standard_libraries+set}" = set; then :
6163 withval=$with_static_standard_libraries;
6164else
6165 with_static_standard_libraries=auto
6166fi
6167
6168if test "$with_static_standard_libraries" = auto; then
6169 with_static_standard_libraries=$have_compiler
6170fi
6171
b3676d82 6172# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 6173
b3676d82
EB
6174# Check whether --with-stage1-ldflags was given.
6175if test "${with_stage1_ldflags+set}" = set; then :
6176 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6177 stage1_ldflags=
e8a5fa9c 6178 else
b3676d82 6179 stage1_ldflags=$withval
e8a5fa9c
RW
6180 fi
6181else
b3676d82
EB
6182 stage1_ldflags=
6183 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
6184 # if supported. But if the user explicitly specified the libraries to use,
6185 # trust that they are doing what they want.
c1a5d03a
TT
6186 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
6187 -a "$have_static_libs" = yes; then
b3676d82
EB
6188 stage1_ldflags="-static-libstdc++ -static-libgcc"
6189 fi
81ecdfbb
RW
6190fi
6191
e8a5fa9c
RW
6192
6193
68996839 6194# Libraries to use for stage2 and later builds.
e8a5fa9c 6195
81ecdfbb
RW
6196# Check whether --with-boot-libs was given.
6197if test "${with_boot_libs+set}" = set; then :
6198 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
6199 poststage1_libs=
6200 else
6201 poststage1_libs=$withval
6202 fi
6203else
68996839 6204 poststage1_libs=
81ecdfbb
RW
6205fi
6206
e8a5fa9c
RW
6207
6208
143754cd
NC
6209# Linker flags to use for stage2 and later builds.
6210
6211# Check whether --with-boot-ldflags was given.
6212if test "${with_boot_ldflags+set}" = set; then :
6213 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6214 poststage1_ldflags=
6215 else
6216 poststage1_ldflags=$withval
6217 fi
6218else
6219 poststage1_ldflags=
4f11b223
ILT
6220 # In stages 2 and 3, default to linking libstdc++ and libgcc
6221 # statically. But if the user explicitly specified the libraries to
6222 # use, trust that they are doing what they want.
6223 if test "$poststage1_libs" = ""; then
143754cd
NC
6224 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6225 fi
6226fi
6227
6228
6229
4849dfd8 6230# GCC GRAPHITE dependency isl.
1b6c0831 6231# Basic setup is inlined here, actual checks are in config/isl.m4
e28c595f
JM
6232
6233
7ec59b9e
L
6234# Check whether --with-isl was given.
6235if test "${with_isl+set}" = set; then :
6236 withval=$with_isl;
81ecdfbb 6237fi
e28c595f 6238
e28c595f 6239
1b6c0831 6240# Treat --without-isl as a request to disable
8e71395b 6241# GRAPHITE support and skip all following checks.
1b6c0831 6242if test "x$with_isl" != "xno"; then
4849dfd8 6243 # Check for isl
8e71395b
L
6244
6245
7ec59b9e
L
6246# Check whether --with-isl-include was given.
6247if test "${with_isl_include+set}" = set; then :
6248 withval=$with_isl_include;
81ecdfbb
RW
6249fi
6250
e28c595f 6251
7ec59b9e
L
6252# Check whether --with-isl-lib was given.
6253if test "${with_isl_lib+set}" = set; then :
6254 withval=$with_isl_lib;
81ecdfbb 6255fi
e28c595f 6256
e28c595f 6257
7ec59b9e
L
6258 # Check whether --enable-isl-version-check was given.
6259if test "${enable_isl_version_check+set}" = set; then :
6260 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6261else
6262 ENABLE_ISL_CHECK=yes
b123da99
SP
6263fi
6264
6265
7ec59b9e
L
6266 # Initialize isllibs and islinc.
6267 case $with_isl in
6268 no)
6269 isllibs=
6270 islinc=
6271 ;;
6272 "" | yes)
6273 ;;
6274 *)
6275 isllibs="-L$with_isl/lib"
6276 islinc="-I$with_isl/include"
6277 ;;
6278 esac
6279 if test "x${with_isl_include}" != x ; then
6280 islinc="-I$with_isl_include"
6281 fi
6282 if test "x${with_isl_lib}" != x; then
6283 isllibs="-L$with_isl_lib"
6284 fi
6285 if test "x${islinc}" = x && test "x${isllibs}" = x \
6286 && test -d ${srcdir}/isl; then
6287 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6288 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6289 ENABLE_ISL_CHECK=no
4849dfd8
NC
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6291$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
7ec59b9e 6292 fi
b123da99 6293
1b6c0831 6294 isllibs="${isllibs} -lisl"
b123da99 6295
e28c595f 6296
b3fc79f8
JBG
6297
6298 if test "${ENABLE_ISL_CHECK}" = yes ; then
6299 _isl_saved_CFLAGS=$CFLAGS
6300 _isl_saved_LDFLAGS=$LDFLAGS
6301 _isl_saved_LIBS=$LIBS
6302
6303 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
4849dfd8
NC
6304 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6305 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
b3fc79f8 6306
bf41f30d
NC
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6308$as_echo_n "checking for isl 0.15 or later... " >&6; }
1b6c0831 6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3fc79f8 6310/* end confdefs.h. */
bf41f30d 6311#include <isl/schedule.h>
b3fc79f8
JBG
6312int
6313main ()
6314{
bf41f30d 6315isl_options_set_schedule_serialize_sccs (NULL, 0);
b3fc79f8
JBG
6316 ;
6317 return 0;
6318}
6319_ACEOF
1b6c0831 6320if ac_fn_c_try_link "$LINENO"; then :
b3fc79f8
JBG
6321 gcc_cv_isl=yes
6322else
6323 gcc_cv_isl=no
6324fi
1b6c0831
L
6325rm -f core conftest.err conftest.$ac_objext \
6326 conftest$ac_exeext conftest.$ac_ext
b3fc79f8
JBG
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6328$as_echo "$gcc_cv_isl" >&6; }
6329
4849dfd8 6330 if test "${gcc_cv_isl}" = no ; then
bf41f30d
NC
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6332$as_echo "required isl version is 0.15 or later" >&6; }
4849dfd8
NC
6333 fi
6334
b3fc79f8
JBG
6335 CFLAGS=$_isl_saved_CFLAGS
6336 LDFLAGS=$_isl_saved_LDFLAGS
6337 LIBS=$_isl_saved_LIBS
6338 fi
6339
6340
e28c595f 6341
e28c595f 6342
7ec59b9e
L
6343
6344
7ec59b9e
L
6345 if test "x${with_isl}" = xno; then
6346 graphite_requested=no
6347 elif test "x${with_isl}" != x \
6348 || test "x${with_isl_include}" != x \
6349 || test "x${with_isl_lib}" != x ; then
6350 graphite_requested=yes
6351 else
6352 graphite_requested=no
b123da99 6353 fi
e28c595f 6354
e28c595f
JM
6355
6356
7ec59b9e
L
6357 if test "${gcc_cv_isl}" = no ; then
6358 isllibs=
6359 islinc=
6360 fi
e28c595f 6361
7ec59b9e
L
6362 if test "${graphite_requested}" = yes \
6363 && test "x${isllibs}" = x \
6364 && test "x${islinc}" = x ; then
e28c595f 6365
d0ac1c44 6366 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
7ec59b9e 6367 fi
e552509b 6368
e28c595f 6369
e552509b
ILT
6370fi
6371
4849dfd8 6372# If the isl check failed, disable builds of in-tree variant of isl
8e71395b 6373if test "x$with_isl" = xno ||
8e71395b 6374 test "x$gcc_cv_isl" = xno; then
1b6c0831 6375 noconfigdirs="$noconfigdirs isl"
8e71395b 6376 islinc=
7ec59b9e
L
6377fi
6378
8e71395b
L
6379
6380
6381
700d40ca
ILT
6382# Check for LTO support.
6383# Check whether --enable-lto was given.
6384if test "${enable_lto+set}" = set; then :
6385 enableval=$enable_lto; enable_lto=$enableval
6386else
6387 enable_lto=yes; default_enable_lto=yes
6388fi
6389
6390
143754cd 6391
e49e5c92
DK
6392
6393
6394target_elf=no
6395case $target in
6396 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 6397 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
1b6c0831
L
6398 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6399 nvptx-*-none)
e49e5c92
DK
6400 target_elf=no
6401 ;;
6402 *)
6403 target_elf=yes
6404 ;;
6405esac
6406
6407if test $target_elf = yes; then :
74cea91b
DK
6408 # ELF platforms build the lto-plugin always.
6409 build_lto_plugin=yes
e49e5c92 6410
e49e5c92
DK
6411else
6412 if test x"$default_enable_lto" = x"yes" ; then
29821356 6413 case $target in
bf41f30d 6414 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
74cea91b 6415 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6416 *) enable_lto=no ;;
6417 esac
e49e5c92 6418 else
29821356
RW
6419 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6420 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6421 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6422 # warn during gcc/ subconfigure; unless you're bootstrapping with
6423 # -flto it won't be needed until after installation anyway.
6424 case $target in
52cf9762 6425 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
e49e5c92 6426 *) if test x"$enable_lto" = x"yes"; then
d0ac1c44 6427 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
e49e5c92
DK
6428 fi
6429 ;;
6430 esac
6431 fi
a8eb3f0a 6432 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6433 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6434 case $target in
74cea91b 6435 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6436 *) ;;
6437 esac
74cea91b 6438
e49e5c92
DK
6439fi
6440
700d40ca 6441
1b6c0831
L
6442# Check whether --enable-linker-plugin-configure-flags was given.
6443if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6444 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6445else
6446 extra_linker_plugin_configure_flags=
6447fi
6448
6449
6450# Check whether --enable-linker-plugin-flags was given.
6451if test "${enable_linker_plugin_flags+set}" = set; then :
6452 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6453else
6454 extra_linker_plugin_flags=
6455fi
6456
6457
6458
bf41f30d
NC
6459# Enable --enable-host-shared.
6460# Checked early to determine whether jit is an 'all' language
6461# Check whether --enable-host-shared was given.
6462if test "${enable_host_shared+set}" = set; then :
6463 enableval=$enable_host_shared; host_shared=$enableval
6464else
6465 host_shared=no
6466fi
6467
6468
e28c595f 6469
7ec59b9e 6470# By default, C and C++ are the only stage 1 languages.
9b134994 6471stage1_languages=,c,
1d39f329 6472
e8a5fa9c 6473# Target libraries that we bootstrap.
2aa2364a 6474bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6475
9e07f89d
NN
6476# Figure out what language subdirectories are present.
6477# Look if the user specified --enable-languages="..."; if not, use
6478# the environment variable $LANGUAGES if defined. $LANGUAGES might
6479# go away some day.
6480# NB: embedded tabs in this IF block -- do not untabify
6481if test -d ${srcdir}/gcc; then
6482 if test x"${enable_languages+set}" != xset; then
6483 if test x"${LANGUAGES+set}" = xset; then
6484 enable_languages="${LANGUAGES}"
136bb21f 6485 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9e07f89d 6486 else
bf41f30d 6487 enable_languages=default
9e07f89d
NN
6488 fi
6489 else
6490 if test x"${enable_languages}" = x ||
6491 test x"${enable_languages}" = xyes;
6492 then
136bb21f 6493 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9e07f89d
NN
6494 exit 1
6495 fi
6496 fi
6497 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6498
096f7d00
DE
6499 # 'f95' is the old name for the 'fortran' language. We issue a warning
6500 # and make the substitution.
6501 case ,${enable_languages}, in
6502 *,f95,*)
136bb21f 6503 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
096f7d00
DE
6504 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6505 ;;
6506 esac
6507
7ec59b9e
L
6508 # If bootstrapping, C++ must be enabled.
6509 case ",$enable_languages,:$enable_bootstrap" in
6510 *,c++,*:*) ;;
6511 *:yes)
ffdd6afc
ILT
6512 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6513 enable_languages="${enable_languages},c++"
6514 else
d0ac1c44 6515 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6516 fi
6517 ;;
6518 esac
6519
9e07f89d
NN
6520 # First scan to see if an enabled language requires some other language.
6521 # We assume that a given config-lang.in will list all the language
6522 # front ends it requires, even if some are required indirectly.
6523 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6524 case ${lang_frag} in
6525 ..) ;;
6526 # The odd quoting in the next line works around
6527 # an apparent bug in bash 1.12 on linux.
6528 ${srcdir}/gcc/[*]/config-lang.in) ;;
6529 *)
e552509b
ILT
6530 # From the config-lang.in, get $language, $lang_requires, and
6531 # $lang_requires_boot_languages.
9e07f89d
NN
6532 language=
6533 lang_requires=
e552509b 6534 lang_requires_boot_languages=
bf41f30d
NC
6535 # set srcdir during sourcing lang_frag to the gcc dir.
6536 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6537 # polutes this shell
6538 saved_srcdir=${srcdir}
6539 srcdir=${srcdir}/gcc . ${lang_frag}
6540 srcdir=${saved_srcdir}
e552509b 6541 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6542 case ,${enable_languages}, in
6543 *,$other,*) ;;
bf41f30d 6544 *,default,*) ;;
9e07f89d
NN
6545 *,all,*) ;;
6546 *,$language,*)
6547 echo " \`$other' language required by \`$language'; enabling" 1>&2
6548 enable_languages="${enable_languages},${other}"
6549 ;;
6550 esac
6551 done
e552509b
ILT
6552 for other in ${lang_requires_boot_languages} ; do
6553 if test "$other" != "c"; then
6554 case ,${enable_stage1_languages}, in
6555 *,$other,*) ;;
bf41f30d 6556 *,default,*) ;;
e552509b
ILT
6557 *,all,*) ;;
6558 *)
6559 case ,${enable_languages}, in
6560 *,$language,*)
6561 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6562 enable_stage1_languages="$enable_stage1_languages,${other}"
6563 ;;
6564 esac
6565 ;;
6566 esac
6567 fi
6568 done
9e07f89d
NN
6569 ;;
6570 esac
6571 done
6572
9b134994 6573 new_enable_languages=,c,
700d40ca
ILT
6574
6575 # If LTO is enabled, add the LTO front end.
700d40ca 6576 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6577 case ,${enable_languages}, in
6578 *,lto,*) ;;
6579 *) enable_languages="${enable_languages},lto" ;;
6580 esac
a8eb3f0a 6581 if test "${build_lto_plugin}" = "yes" ; then
700d40ca 6582 configdirs="$configdirs lto-plugin"
700d40ca
ILT
6583 fi
6584 fi
6585
1b6c0831
L
6586 # If we're building an offloading compiler, add the LTO front end.
6587 if test x"$enable_as_accelerator_for" != x ; then
6588 case ,${enable_languages}, in
6589 *,lto,*) ;;
6590 *) enable_languages="${enable_languages},lto" ;;
6591 esac
6592 fi
700d40ca 6593
bf41f30d 6594 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6595 potential_languages=,c,
9e07f89d 6596
9e1a94f4
ILT
6597 enabled_target_libs=
6598 disabled_target_libs=
6599
9e07f89d
NN
6600 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6601 case ${lang_frag} in
6602 ..) ;;
6603 # The odd quoting in the next line works around
6604 # an apparent bug in bash 1.12 on linux.
6605 ${srcdir}/gcc/[*]/config-lang.in) ;;
6606 *)
c6b750e1 6607 # From the config-lang.in, get $language, $target_libs,
1d39f329 6608 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6609 language=
6610 target_libs=
6611 lang_dirs=
64ce424c 6612 subdir_requires=
9b134994
PB
6613 boot_language=no
6614 build_by_default=yes
bf41f30d
NC
6615 # set srcdir during sourcing. See above about save & restore
6616 saved_srcdir=${srcdir}
6617 srcdir=${srcdir}/gcc . ${lang_frag}
6618 srcdir=${saved_srcdir}
9b134994
PB
6619 if test x${language} = x; then
6620 echo "${lang_frag} doesn't set \$language." 1>&2
6621 exit 1
6622 fi
6623
ffdd6afc 6624 if test "$language" = "c++"; then
7ec59b9e 6625 boot_language=yes
e8a5fa9c
RW
6626 fi
6627
8e71395b 6628 add_this_lang=no
bf41f30d
NC
6629 # C is always enabled, so no need to add it again
6630 if test "$language" != "c"; then
6631 case ,${enable_languages}, in
6632 *,${language},*)
6633 # Language was explicitly selected; include it
7ec59b9e 6634 add_this_lang=yes
bf41f30d
NC
6635 ;;
6636 *,all,*)
6637 # All languages are enabled
6638 add_this_lang=all
6639 ;;
6640 *,default,*)
6641 # 'default' was selected, select it if it is a default language
8e71395b 6642 add_this_lang=${build_by_default}
bf41f30d
NC
6643 ;;
6644 esac
6645 fi
4b1cb4fe 6646
64ce424c 6647 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6648 for i in $subdir_requires; do
3d3adb43 6649 test -f "$srcdir/gcc/$i/config-lang.in" && continue
bf41f30d
NC
6650 case ${add_this_lang} in
6651 yes)
64ce424c 6652 # Specifically requested language; tell them.
d0ac1c44 6653 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c 6654 ;;
bf41f30d
NC
6655 all)
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6657$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6658 add_this_lang=unsupported
6659 ;;
64ce424c
PB
6660 *)
6661 # Silently disable.
9b134994 6662 add_this_lang=unsupported
64ce424c
PB
6663 ;;
6664 esac
6665 done
6666
9b134994 6667 # Disable Ada if no preexisting GNAT is available.
bf41f30d
NC
6668 case ${add_this_lang}:${language}:${have_gnat} in
6669 yes:ada:no)
9b134994 6670 # Specifically requested language; tell them.
d0ac1c44 6671 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9b134994 6672 ;;
bf41f30d
NC
6673 all:ada:no)
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6675$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6676 add_this_lang=unsupported
6677 ;;
9b134994
PB
6678 *:ada:no)
6679 # Silently disable.
6680 add_this_lang=unsupported
6681 ;;
6682 esac
6683
bf41f30d
NC
6684 # Disable jit if -enable-host-shared not specified
6685 case ${add_this_lang}:${language}:${host_shared} in
6686 yes:jit:no)
6687 # PR jit/64780: explicitly specify --enable-host-shared
d0ac1c44 6688 as_fn_error $? "
bf41f30d
NC
6689Enabling language \"jit\" requires --enable-host-shared.
6690
6691--enable-host-shared typically slows the rest of the compiler down by
6692a few %, so you must explicitly enable it.
6693
6694If you want to build both the jit and the regular compiler, it is often
6695best to do this via two separate configure/builds, in separate
6696directories, to avoid imposing the performance cost of
6697--enable-host-shared on the regular compiler." "$LINENO" 5
6698 ;;
6699 all:jit:no)
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6701$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6702 add_this_lang=unsupported
6703 ;;
6704 *:jit:no)
6705 # Silently disable.
6706 add_this_lang=unsupported
6707 ;;
6708 esac
6709
6710 # Disable a language that is unsupported by the target.
6711 case "${add_this_lang}: $unsupported_languages " in
6712 no:*) ;;
6713 unsupported:*) ;;
6714 *:*" $language "*)
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6716$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9b134994 6717 add_this_lang=unsupported
59f7ec45
HPN
6718 ;;
6719 esac
6720
4b1cb4fe 6721 case $add_this_lang in
9b134994 6722 unsupported)
9e07f89d 6723 # Remove language-dependent dirs.
9e1a94f4
ILT
6724 disabled_target_libs="$disabled_target_libs $target_libs"
6725 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6726 ;;
9b134994
PB
6727 no)
6728 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6729 disabled_target_libs="$disabled_target_libs $target_libs"
6730 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6731 potential_languages="${potential_languages}${language},"
6732 ;;
bf41f30d 6733 all|yes)
9b134994
PB
6734 new_enable_languages="${new_enable_languages}${language},"
6735 potential_languages="${potential_languages}${language},"
1d39f329 6736 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6737 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6738 case "${boot_language}:,$enable_stage1_languages," in
6739 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6740 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6741 case ",$stage1_languages," in
6742 *,$language,* | ,yes, | ,all,) ;;
6743 *) stage1_languages="${stage1_languages}${language}," ;;
6744 esac
e8a5fa9c
RW
6745 # We need to bootstrap any supporting libraries.
6746 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6747 ;;
6748 esac
6749 ;;
9e07f89d
NN
6750 esac
6751 ;;
6752 esac
6753 done
6754
9e1a94f4
ILT
6755 # Add target libraries which are only needed for disabled languages
6756 # to noconfigdirs.
6757 if test -n "$disabled_target_libs"; then
6758 for dir in $disabled_target_libs; do
6759 case " $enabled_target_libs " in
6760 *" ${dir} "*) ;;
6761 *) noconfigdirs="$noconfigdirs $dir" ;;
6762 esac
6763 done
6764 fi
6765
81ecdfbb
RW
6766 # Check whether --enable-stage1-languages was given.
6767if test "${enable_stage1_languages+set}" = set; then :
6768 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6769 ,no,|,,)
6770 # Set it to something that will have no effect in the loop below
6771 enable_stage1_languages=c ;;
6772 ,yes,)
6773 enable_stage1_languages=`echo $new_enable_languages | \
6774 sed -e "s/^,//" -e "s/,$//" ` ;;
6775 *,all,*)
6776 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6777 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6778 esac
6779
6780 # Add "good" languages from enable_stage1_languages to stage1_languages,
6781 # while "bad" languages go in missing_languages. Leave no duplicates.
6782 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6783 case $potential_languages in
6784 *,$i,*)
6785 case $stage1_languages in
6786 *,$i,*) ;;
6787 *) stage1_languages="$stage1_languages$i," ;;
6788 esac ;;
6789 *)
6790 case $missing_languages in
6791 *,$i,*) ;;
6792 *) missing_languages="$missing_languages$i," ;;
6793 esac ;;
6794 esac
6795 done
81ecdfbb
RW
6796fi
6797
9b134994
PB
6798
6799 # Remove leading/trailing commas that were added for simplicity
6800 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6801 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6802 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6803 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6804
9e07f89d 6805 if test "x$missing_languages" != x; then
d0ac1c44 6806 as_fn_error $? "
27258dd4 6807The following requested languages could not be built: ${missing_languages}
81ecdfbb 6808Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6809 fi
9e07f89d
NN
6810 if test "x$new_enable_languages" != "x$enable_languages"; then
6811 echo The following languages will be built: ${new_enable_languages}
9b134994 6812 enable_languages="$new_enable_languages"
9e07f89d 6813 fi
9b134994 6814
c6b750e1 6815
81ec575a 6816 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6817fi
6818
a6df5a19
PB
6819# Handle --disable-<component> generically.
6820for dir in $configdirs $build_configdirs $target_configdirs ; do
6821 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6822 varname=`echo $dirname | sed -e s/+/_/g`
6823 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6824 noconfigdirs="$noconfigdirs $dir"
6825 fi
6826done
6827
4f0ef2d8 6828# Check for Boehm's garbage collector
81ecdfbb
RW
6829# Check whether --enable-objc-gc was given.
6830if test "${enable_objc_gc+set}" = set; then :
05a13254 6831 enableval=$enable_objc_gc;
81ecdfbb
RW
6832fi
6833
4f0ef2d8 6834
05a13254
NC
6835# Check whether --with-target-bdw-gc was given.
6836if test "${with_target_bdw_gc+set}" = set; then :
6837 withval=$with_target_bdw_gc;
6838fi
6839
6840
6841# Check whether --with-target-bdw-gc-include was given.
6842if test "${with_target_bdw_gc_include+set}" = set; then :
6843 withval=$with_target_bdw_gc_include;
6844fi
6845
6846
6847# Check whether --with-target-bdw-gc-lib was given.
6848if test "${with_target_bdw_gc_lib+set}" = set; then :
6849 withval=$with_target_bdw_gc_lib;
6850fi
6851
6852
6853case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6855$as_echo_n "checking for bdw garbage collector... " >&6; }
6856 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6858$as_echo "using bdw-gc in default locations" >&6; }
6859 else
6860 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
d0ac1c44 6861 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
05a13254 6862 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
d0ac1c44 6863 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
05a13254
NC
6864 else
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6866$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
d42c4017 6867 fi
05a13254 6868 fi
4f0ef2d8
CD
6869esac
6870
bf41f30d 6871# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
7ec59b9e 6872case ,${enable_languages}, in
1b6c0831 6873 *,c++,*)
bf41f30d 6874 # Disable libitm, libsanitizer if we're not building libstdc++
1b6c0831
L
6875 case "${noconfigdirs}" in
6876 *target-libstdc++-v3*)
bf41f30d 6877 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1b6c0831
L
6878 ;;
6879 *) ;;
6880 esac
6881 ;;
7ec59b9e 6882 *)
bf41f30d 6883 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
6884 ;;
6885esac
6886
d33228c9
AB
6887# If gcc/ is not in the source tree then we'll not be building a
6888# target compiler, assume in that case we don't want to build any
6889# target libraries or tools.
6890#
6891# This was added primarily for the benefit for binutils-gdb who reuse
6892# this configure script, but don't always have target tools available.
6893if test ! -d ${srcdir}/gcc; then
6894 skipdirs="${skipdirs} ${target_configdirs}"
6895fi
6896
caeba88f
AL
6897# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6898# $build_configdirs and $target_configdirs.
9e07f89d
NN
6899# If we have the source for $noconfigdirs entries, add them to $notsupp.
6900
6901notsupp=""
6902for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6903 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6904 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6905 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6906 if test -r $srcdir/$dirname/configure ; then
6907 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6908 true
6909 else
6910 notsupp="$notsupp $dir"
6911 fi
6912 fi
6913 fi
caeba88f
AL
6914 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6915 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6916 if test -r $srcdir/$dirname/configure ; then
6917 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6918 true
6919 else
6920 notsupp="$notsupp $dir"
6921 fi
6922 fi
6923 fi
9e07f89d
NN
6924 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6925 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6926 if test -r $srcdir/$dirname/configure ; then
6927 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6928 true
6929 else
6930 notsupp="$notsupp $dir"
6931 fi
6932 fi
6933 fi
6934done
6935
9e07f89d
NN
6936# Quietly strip out all directories which aren't configurable in this tree.
6937# This relies on all configurable subdirectories being autoconfiscated, which
6938# is now the case.
6a9cf61e
PB
6939build_configdirs_all="$build_configdirs"
6940build_configdirs=
6941for i in ${build_configdirs_all} ; do
c6b750e1 6942 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6943 if test -f ${srcdir}/$j/configure ; then
6944 build_configdirs="${build_configdirs} $i"
6945 fi
6946done
6947
9e07f89d
NN
6948configdirs_all="$configdirs"
6949configdirs=
6950for i in ${configdirs_all} ; do
6951 if test -f ${srcdir}/$i/configure ; then
6952 configdirs="${configdirs} $i"
6953 fi
6954done
6a9cf61e 6955
9e07f89d
NN
6956target_configdirs_all="$target_configdirs"
6957target_configdirs=
6958for i in ${target_configdirs_all} ; do
c6b750e1 6959 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6960 if test -f ${srcdir}/$j/configure ; then
6961 target_configdirs="${target_configdirs} $i"
6962 fi
6963done
6964
1b6c0831
L
6965# libiberty-linker-plugin is special: it doesn't have its own source directory,
6966# so we have to add it after the preceding checks.
6967if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6968then
6969 case " $configdirs " in
6970 *" libiberty "*)
6971 # If we can build libiberty, we can also build libiberty-linker-plugin.
6972 configdirs="$configdirs libiberty-linker-plugin"
6973 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6974 --with-libiberty=../libiberty-linker-plugin";;
6975 *)
d0ac1c44 6976 as_fn_error $? "libiberty missing" "$LINENO" 5;;
1b6c0831
L
6977 esac
6978fi
6979
6980# Sometimes we have special requirements for the host libiberty.
6981extra_host_libiberty_configure_flags=
6982case " $configdirs " in
a08bdb15 6983 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
1b6c0831
L
6984 # When these are to be built as shared libraries, the same applies to
6985 # libiberty.
6986 extra_host_libiberty_configure_flags=--enable-shared
6987 ;;
95127faf
TV
6988esac
6989
6990
6991# Sometimes we have special requirements for the host zlib.
6992extra_host_zlib_configure_flags=
6993case " $configdirs " in
e81d5d05
L
6994 *" bfd "*)
6995 # When bfd is to be built as a shared library, the same applies to
6996 # zlib.
6997 if test "$enable_shared" = "yes"; then
6998 extra_host_zlib_configure_flags=--enable-host-shared
6999 fi
7000 ;;
1b6c0831
L
7001esac
7002
7003
9e07f89d
NN
7004# Produce a warning message for the subdirs we can't configure.
7005# This isn't especially interesting in the Cygnus tree, but in the individual
7006# FSF releases, it's important to let people know when their machine isn't
7007# supported by the one or two programs in a package.
7008
7009if test -n "${notsupp}" && test -z "${norecursion}" ; then
7010 # If $appdirs is non-empty, at least one of those directories must still
7011 # be configured, or we error out. (E.g., if the gas release supports a
7012 # specified target in some subdirs but not the gas subdir, we shouldn't
7013 # pretend that all is well.)
7014 if test -n "$appdirs" ; then
7015 for dir in $appdirs ; do
7016 if test -r $dir/Makefile.in ; then
7017 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7018 appdirs=""
7019 break
7020 fi
6a9cf61e 7021 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
7022 appdirs=""
7023 break
7024 fi
7025 fi
7026 done
7027 if test -n "$appdirs" ; then
7028 echo "*** This configuration is not supported by this package." 1>&2
7029 exit 1
7030 fi
7031 fi
7032 # Okay, some application will build, or we don't care to check. Still
7033 # notify of subdirs not getting built.
7034 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
7035 echo " ${notsupp}" 1>&2
7036 echo " (Any other directories should still work fine.)" 1>&2
7037fi
7038
7039case "$host" in
7040 *msdosdjgpp*)
7041 enable_gdbtk=no ;;
7042esac
7043
18f6b6ee
PB
7044# To find our prefix, in gcc_cv_tool_prefix.
7045
7046# The user is always right.
7047if test "${PATH_SEPARATOR+set}" != set; then
7048 echo "#! /bin/sh" >conf$$.sh
7049 echo "exit 0" >>conf$$.sh
7050 chmod +x conf$$.sh
7051 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7052 PATH_SEPARATOR=';'
7053 else
7054 PATH_SEPARATOR=:
7055 fi
7056 rm -f conf$$.sh
7057fi
7058
7059
bf41f30d
NC
7060 get_gcc_base_ver="cat"
7061
7062# Check whether --with-gcc-major-version-only was given.
7063if test "${with_gcc_major_version_only+set}" = set; then :
7064 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
37f980dc 7065 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
bf41f30d
NC
7066 fi
7067
7068fi
7069
7070
7071
7072
7073
18f6b6ee
PB
7074
7075if test "x$exec_prefix" = xNONE; then
7076 if test "x$prefix" = xNONE; then
7077 gcc_cv_tool_prefix=$ac_default_prefix
7078 else
7079 gcc_cv_tool_prefix=$prefix
7080 fi
7081else
7082 gcc_cv_tool_prefix=$exec_prefix
7083fi
7084
7085# If there is no compiler in the tree, use the PATH only. In any
7086# case, if there is no compiler in the tree nobody should use
7087# AS_FOR_TARGET and LD_FOR_TARGET.
7088if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
bf41f30d
NC
7089 if test x$with_gcc_major_version_only = xyes ; then
7090 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
7091 else
7092 gcc_version=`cat $srcdir/gcc/BASE-VER`
7093 fi
18f6b6ee
PB
7094 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7095 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7096 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7097 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7098 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7099 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7100else
7101 gcc_cv_tool_dirs=
7102fi
7103
7104if test x$build = x$target && test -n "$md_exec_prefix"; then
7105 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7106fi
7107
7108
7109
9e07f89d
NN
7110copy_dirs=
7111
c6b750e1 7112
81ecdfbb
RW
7113# Check whether --with-build-sysroot was given.
7114if test "${with_build_sysroot+set}" = set; then :
7115 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
7116 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7117 fi
7118else
7119 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 7120fi
a19b6204
MM
7121
7122
8a6ee3ab 7123
81ecdfbb
RW
7124
7125# Check whether --with-debug-prefix-map was given.
7126if test "${with_debug_prefix_map+set}" = set; then :
7127 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
7128 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7129 for debug_map in $withval; do
7130 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7131 done
7132 fi
7133else
7134 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
7135fi
7136
8a6ee3ab
JM
7137
7138
7f6ef0c0
PB
7139# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7140# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
7141# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7142# We want to ensure that TARGET libraries (which we know are built with
7143# gcc) are built with "-O2 -g", so include those options when setting
7144# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7145if test "x$CFLAGS_FOR_TARGET" = x; then
1b6c0831
L
7146 if test "x${is_cross_compiler}" = xyes; then
7147 CFLAGS_FOR_TARGET="-g -O2"
7148 else
7149 CFLAGS_FOR_TARGET=$CFLAGS
7150 case " $CFLAGS " in
7151 *" -O2 "*) ;;
7152 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
7153 esac
7154 case " $CFLAGS " in
7155 *" -g "* | *" -g3 "*) ;;
7156 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
7157 esac
7158 fi
7f6ef0c0
PB
7159fi
7160
7161
7162if test "x$CXXFLAGS_FOR_TARGET" = x; then
1b6c0831
L
7163 if test "x${is_cross_compiler}" = xyes; then
7164 CXXFLAGS_FOR_TARGET="-g -O2"
7165 else
7166 CXXFLAGS_FOR_TARGET=$CXXFLAGS
7167 case " $CXXFLAGS " in
7168 *" -O2 "*) ;;
7169 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7170 esac
7171 case " $CXXFLAGS " in
7172 *" -g "* | *" -g3 "*) ;;
7173 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7174 esac
7175 fi
7f6ef0c0
PB
7176fi
7177
7178
91c1f14c
DK
7179
7180
9e07f89d
NN
7181# Handle --with-headers=XXX. If the value is not "yes", the contents of
7182# the named directory are copied to $(tooldir)/sys-include.
7183if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7184 if test x${is_cross_compiler} = xno ; then
7185 echo 1>&2 '***' --with-headers is only supported when cross compiling
7186 exit 1
7187 fi
7188 if test x"${with_headers}" != xyes ; then
18f6b6ee 7189 x=${gcc_cv_tool_prefix}
c6b750e1 7190 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
7191 fi
7192fi
7193
7194# Handle --with-libs=XXX. If the value is not "yes", the contents of
7195# the name directories are copied to $(tooldir)/lib. Multiple directories
7196# are permitted.
7197if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7198 if test x${is_cross_compiler} = xno ; then
7199 echo 1>&2 '***' --with-libs is only supported when cross compiling
7200 exit 1
7201 fi
7202 if test x"${with_libs}" != xyes ; then
7203 # Copy the libraries in reverse order, so that files in the first named
7204 # library override files in subsequent libraries.
18f6b6ee 7205 x=${gcc_cv_tool_prefix}
9e07f89d 7206 for l in ${with_libs}; do
c6b750e1 7207 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
7208 done
7209 fi
7210fi
7211
700d40ca 7212# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
7213#
7214# This is done by determining whether or not the appropriate directory
7215# is available, and by checking whether or not specific configurations
7216# have requested that this magic not happen.
c6b750e1
DJ
7217#
7218# The command line options always override the explicit settings in
136bb21f 7219# configure.ac, and the settings in configure.ac override this magic.
2429c060 7220#
c6b750e1 7221# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 7222# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
7223# --without-gnu-ld options for the configure script. Similarly, if
7224# the default is to use the included zlib and you don't want to do that,
7225# you should use the --with-system-zlib option for the configure script.
2429c060
PB
7226
7227if test x${use_gnu_as} = x &&
7228 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7229 with_gnu_as=yes
7230 extra_host_args="$extra_host_args --with-gnu-as"
7231fi
7232
7233if test x${use_gnu_ld} = x &&
93f9b408 7234 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
7235 with_gnu_ld=yes
7236 extra_host_args="$extra_host_args --with-gnu-ld"
7237fi
7238
700d40ca
ILT
7239if test x${use_included_zlib} = x &&
7240 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7241 :
7242else
7243 with_system_zlib=yes
7244 extra_host_args="$extra_host_args --with-system-zlib"
7245fi
7246
2429c060
PB
7247# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7248# can detect this case.
7249
7250if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7251 with_newlib=yes
7252 extra_host_args="$extra_host_args --with-newlib"
7253fi
7254
9e07f89d
NN
7255# Handle ${copy_dirs}
7256set fnord ${copy_dirs}
7257shift
7258while test $# != 0 ; do
7259 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7260 :
7261 else
7262 echo Copying $1 to $2
7263
7264 # Use the install script to create the directory and all required
7265 # parent directories.
7266 if test -d $2 ; then
7267 :
7268 else
7269 echo >config.temp
7270 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7271 fi
7272
7273 # Copy the directory, assuming we have tar.
7274 # FIXME: Should we use B in the second tar? Not all systems support it.
7275 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7276
7277 # It is the responsibility of the user to correctly adjust all
7278 # symlinks. If somebody can figure out how to handle them correctly
7279 # here, feel free to add the code.
7280
7281 echo $1 > $2/COPIED
7282 fi
7283 shift; shift
7284done
7285
2429c060
PB
7286# Determine a target-dependent exec_prefix that the installed
7287# gcc will search in. Keep this list sorted by triplet, with
7288# the *-*-osname triplets last.
7289md_exec_prefix=
7290case "${target}" in
521ec477 7291 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
7292 md_exec_prefix=/dev/env/DJDIR/bin
7293 ;;
2429c060 7294 *-*-hpux* | \
2429c060 7295 *-*-nto-qnx* | \
1f111696 7296 *-*-solaris2*)
2429c060
PB
7297 md_exec_prefix=/usr/ccs/bin
7298 ;;
7299esac
7300
a0da8069
NN
7301extra_arflags_for_target=
7302extra_nmflags_for_target=
7303extra_ranlibflags_for_target=
7304target_makefile_frag=/dev/null
7305case "${target}" in
77d7106f
AM
7306 spu-*-*)
7307 target_makefile_frag="config/mt-spu"
7308 ;;
a9d58c06 7309 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
7310 target_makefile_frag="config/mt-sde"
7311 ;;
f3b1e08e
RS
7312 mipsisa*-*-elfoabi*)
7313 target_makefile_frag="config/mt-mips-elfoabi"
7314 ;;
e7c8859c
RS
7315 mips*-*-*linux* | mips*-*-gnu*)
7316 target_makefile_frag="config/mt-mips-gnu"
7317 ;;
d9e042ac
SL
7318 nios2-*-elf*)
7319 target_makefile_frag="config/mt-nios2-elf"
7320 ;;
bf41f30d
NC
7321 *-*-linux-android*)
7322 target_makefile_frag="config/mt-android"
7323 ;;
29383458 7324 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 7325 target_makefile_frag="config/mt-gnu"
a0da8069
NN
7326 ;;
7327 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 7328 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
7329 # commands to handle both 32-bit and 64-bit objects. These flags are
7330 # harmless if we're using GNU nm or ar.
7331 extra_arflags_for_target=" -X32_64"
7332 extra_nmflags_for_target=" -B -X32_64"
7333 ;;
a0da8069
NN
7334esac
7335
7336alphaieee_frag=/dev/null
7337case $target in
7338 alpha*-*-*)
7339 # This just makes sure to use the -mieee option to build target libs.
7340 # This should probably be set individually by each library.
7341 alphaieee_frag="config/mt-alphaieee"
7342 ;;
7343esac
7344
7345# If --enable-target-optspace always use -Os instead of -O2 to build
7346# the target libraries, similarly if it is not specified, use -Os
7347# on selected platforms.
7348ospace_frag=/dev/null
7349case "${enable_target_optspace}:${target}" in
7350 yes:*)
7351 ospace_frag="config/mt-ospace"
7352 ;;
7353 :d30v-*)
7354 ospace_frag="config/mt-d30v"
7355 ;;
16beab3d 7356 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
a0da8069
NN
7357 ospace_frag="config/mt-ospace"
7358 ;;
7359 no:* | :*)
7360 ;;
7361 *)
7362 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7363 ;;
7364esac
7365
a0da8069
NN
7366# Some systems (e.g., one of the i386-aix systems the gas testers are
7367# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 7368tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
7369build_tooldir=${tooldir}
7370
a0da8069
NN
7371# Create a .gdbinit file which runs the one in srcdir
7372# and tells GDB to look there for source files.
7373
7374if test -r ${srcdir}/.gdbinit ; then
7375 case ${srcdir} in
7376 .) ;;
7377 *) cat > ./.gdbinit <<EOF
7378# ${NO_EDIT}
7379dir ${srcdir}
7380dir .
7381source ${srcdir}/.gdbinit
7382EOF
7383 ;;
7384 esac
7385fi
7386
a0da8069
NN
7387# Make sure that the compiler is able to generate an executable. If it
7388# can't, we are probably in trouble. We don't care whether we can run the
7389# executable--we might be using a cross compiler--we only care whether it
7390# can be created. At this point the main configure script has set CC.
7391we_are_ok=no
7392echo "int main () { return 0; }" > conftest.c
7393${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7394if test $? = 0 ; then
7395 if test -s conftest || test -s conftest.exe ; then
7396 we_are_ok=yes
7397 fi
c6b750e1 7398fi
a0da8069
NN
7399case $we_are_ok in
7400 no)
7401 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7402 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7403 rm -f conftest*
7404 exit 1
7405 ;;
7406esac
7407rm -f conftest*
7408
3bbd2f8f 7409# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
7410case "${host}" in
7411 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 7412 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 7413 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
7414 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7415esac
7416
3bbd2f8f 7417# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7418# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7419# built executables to PATH.
3bbd2f8f
AL
7420if test "$RPATH_ENVVAR" = PATH; then
7421 GCC_SHLIB_SUBDIR=/shlib
7422else
7423 GCC_SHLIB_SUBDIR=
7424fi
7425
730af8ee 7426# Adjust the toplevel makefile according to whether bootstrap was selected.
7427case $enable_bootstrap in
7428 yes)
7429 bootstrap_suffix=bootstrap
7430 BUILD_CONFIG=bootstrap-debug
7431 ;;
7432 no)
7433 bootstrap_suffix=no-bootstrap
7434 BUILD_CONFIG=
7435 ;;
7436esac
7437
7438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7439$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7440
7441
7442# Check whether --with-build-config was given.
7443if test "${with_build_config+set}" = set; then :
7444 withval=$with_build_config; case $with_build_config in
7445 yes) with_build_config= ;;
7446 no) with_build_config= BUILD_CONFIG= ;;
7447 esac
7448fi
7449
7450
7451if test "x${with_build_config}" != x; then
7452 BUILD_CONFIG=$with_build_config
7453else
7454 case $BUILD_CONFIG in
7455 bootstrap-debug)
7456 if echo "int f (void) { return 0; }" > conftest.c &&
7457 ${CC} -c conftest.c &&
7458 mv conftest.o conftest.o.g0 &&
7459 ${CC} -c -g conftest.c &&
7460 mv conftest.o conftest.o.g &&
7461 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7462 :
7463 else
7464 BUILD_CONFIG=
7465 fi
7466 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7467 ;;
7468 esac
7469fi
7470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7471$as_echo "$BUILD_CONFIG" >&6; }
7472
7473
7474# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7476$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7477# Check whether --enable-vtable-verify was given.
7478if test "${enable_vtable_verify+set}" = set; then :
7479 enableval=$enable_vtable_verify; case "$enableval" in
7480 yes) enable_vtable_verify=yes ;;
7481 no) enable_vtable_verify=no ;;
7482 *) enable_vtable_verify=no;;
7483 esac
7484else
7485 enable_vtable_verify=no
7486fi
7487
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7489$as_echo "$enable_vtable_verify" >&6; }
7490
a0da8069
NN
7491# Record target_configdirs and the configure arguments for target and
7492# build configuration in Makefile.
7493target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7494build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 7495bootstrap_fixincludes=no
a0da8069 7496
2aa2364a
JR
7497# If we are building libgomp, bootstrap it.
7498if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7499 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7500fi
7501
730af8ee 7502# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7503# or bootstrap-ubsan, bootstrap it.
7504if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7505 case "$BUILD_CONFIG" in
7506 *bootstrap-asan* | *bootstrap-ubsan* )
7507 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 7508 bootstrap_fixincludes=yes
730af8ee 7509 ;;
7510 esac
5eb08693
L
7511fi
7512
730af8ee 7513# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7514if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7515 test "$enable_vtable_verify" != no; then
95e43135
JBG
7516 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7517fi
7518
a0da8069
NN
7519# Determine whether gdb needs tk/tcl or not.
7520# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7521# and in that case we want gdb to be built without tk. Ugh!
7522# In fact I believe gdb is the *only* package directly dependent on tk,
7523# so we should be able to put the 'maybe's in unconditionally and
7524# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7525# 100% sure that that's safe though.
c180f501 7526
675c6968 7527gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7528case "$enable_gdbtk" in
7529 no)
7530 GDB_TK="" ;;
c180f501
AC
7531 yes)
7532 GDB_TK="${gdb_tk}" ;;
a0da8069 7533 *)
c180f501
AC
7534 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7535 # distro. Eventually someone will fix this and move Insight, nee
7536 # gdbtk to a separate directory.
7537 if test -d ${srcdir}/gdb/gdbtk ; then
7538 GDB_TK="${gdb_tk}"
7539 else
7540 GDB_TK=""
7541 fi
7542 ;;
a0da8069 7543esac
907be67c
DJ
7544CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7545INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7546
b6f9caee
TT
7547# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7548# else does, only include them if one of these is built. The Makefile
7549# provides the ordering, so it's enough here to add to the list.
7550case " ${configdirs} " in
7551 *\ gdb\ *)
7552 configdirs="${configdirs} gnulib gdbsupport"
7553 ;;
7554 *\ gdbserver\ *)
7555 configdirs="${configdirs} gnulib gdbsupport"
7556 ;;
5c9e84c2
MF
7557 *\ sim\ *)
7558 configdirs="${configdirs} gnulib"
7559 ;;
b6f9caee 7560esac
73cc7272 7561
6bd3dfaa 7562# Strip out unwanted targets.
dd12c3a8
NN
7563
7564# While at that, we remove Makefiles if we were started for recursive
7565# configuration, so that the top-level Makefile reconfigures them,
7566# like we used to do when configure itself was recursive.
dd12c3a8 7567
06a51eac
RW
7568# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7569# but now we're fixing up the Makefile ourselves with the additional
7570# commands passed to AC_CONFIG_FILES. Use separate variables
7571# extrasub-{build,host,target} not because there is any reason to split
7572# the substitutions up that way, but only to remain below the limit of
7573# 99 commands in a script, for HP-UX sed.
4119873a
AO
7574
7575# Do not nest @if/@endif or @unless/@endunless pairs, because
7576# configure will not warn you at all.
dd12c3a8 7577
16b1ad29
RW
7578case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7579 yes:yes:*\ gold\ *:*,c++,*) ;;
7580 yes:yes:*\ gold\ *:*)
d0ac1c44 7581 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
16b1ad29
RW
7582 ;;
7583esac
7584
06a51eac 7585extrasub_build=
6a9cf61e 7586for module in ${build_configdirs} ; do
498d4a71
CF
7587 if test -z "${no_recursion}" \
7588 && test -f ${build_subdir}/${module}/Makefile; then
7589 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7590 rm -f ${build_subdir}/${module}/Makefile
7591 fi
06a51eac 7592 extrasub_build="$extrasub_build
498d4a71
CF
7593/^@if build-$module\$/d
7594/^@endif build-$module\$/d
4119873a 7595/^@unless build-$module\$/,/^@endunless build-$module\$/d
498d4a71 7596/^@if build-$module-$bootstrap_suffix\$/d
4119873a
AO
7597/^@endif build-$module-$bootstrap_suffix\$/d
7598/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
498d4a71 7599done
06a51eac 7600extrasub_host=
498d4a71 7601for module in ${configdirs} ; do
80911fe1 7602 if test -z "${no_recursion}"; then
8cf39b1b 7603 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7604 if test -f ${file}; then
7605 echo 1>&2 "*** removing ${file} to force reconfigure"
7606 rm -f ${file}
7607 fi
7608 done
498d4a71 7609 fi
201f096f 7610 case ${module},${bootstrap_fixincludes} in
7611 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7612 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7613 esac
06a51eac 7614 extrasub_host="$extrasub_host
498d4a71
CF
7615/^@if $module\$/d
7616/^@endif $module\$/d
4119873a 7617/^@unless $module\$/,/^@endunless $module\$/d
201f096f 7618/^@if $module-$host_bootstrap_suffix\$/d
4119873a
AO
7619/^@endif $module-$host_bootstrap_suffix\$/d
7620/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
498d4a71 7621done
06a51eac 7622extrasub_target=
498d4a71
CF
7623for module in ${target_configdirs} ; do
7624 if test -z "${no_recursion}" \
7625 && test -f ${target_subdir}/${module}/Makefile; then
7626 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7627 rm -f ${target_subdir}/${module}/Makefile
7628 fi
e8a5fa9c
RW
7629
7630 # We only bootstrap target libraries listed in bootstrap_target_libs.
7631 case $bootstrap_target_libs in
7632 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7633 *) target_bootstrap_suffix=no-bootstrap ;;
7634 esac
7635
06a51eac 7636 extrasub_target="$extrasub_target
498d4a71
CF
7637/^@if target-$module\$/d
7638/^@endif target-$module\$/d
4119873a 7639/^@unless target-$module\$/,/^@endunless target-$module\$/d
e8a5fa9c 7640/^@if target-$module-$target_bootstrap_suffix\$/d
4119873a
AO
7641/^@endif target-$module-$target_bootstrap_suffix\$/d
7642/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7643done
7644
06a51eac
RW
7645# Do the final fixup along with target modules.
7646extrasub_target="$extrasub_target
4119873a
AO
7647/^@if /,/^@endif /d
7648/^@unless /d
7649/^@endunless /d"
a0da8069 7650
af019bfd
L
7651if test "$enable_pgo_build" != "no"; then
7652 extrasub_build="$extrasub_build
7653/^@if pgo-build\$/d
7654/^@endif pgo-build\$/d"
7655fi
7656
a0da8069
NN
7657# Create the serialization dependencies. This uses a temporary file.
7658
81ecdfbb
RW
7659# Check whether --enable-serial-configure was given.
7660if test "${enable_serial_configure+set}" = set; then :
7661 enableval=$enable_serial_configure;
7662fi
e6bfb94a
AO
7663
7664
1047cb91
DD
7665case ${enable_serial_configure} in
7666 yes)
7667 enable_serial_build_configure=yes
7668 enable_serial_host_configure=yes
7669 enable_serial_target_configure=yes
7670 ;;
7671esac
7672
a0da8069
NN
7673# These force 'configure's to be done one at a time, to avoid problems
7674# with contention over a shared config.cache.
7675rm -f serdep.tmp
e6bfb94a 7676echo '# serdep.tmp' > serdep.tmp
a0da8069 7677olditem=
1047cb91 7678test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7679for item in ${build_configdirs} ; do
7680 case ${olditem} in
7681 "") ;;
e6bfb94a 7682 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7683 esac
7684 olditem=${item}
7685done
7686olditem=
1047cb91 7687test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7688for item in ${configdirs} ; do
7689 case ${olditem} in
7690 "") ;;
e6bfb94a 7691 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7692 esac
7693 olditem=${item}
7694done
7695olditem=
1047cb91 7696test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7697for item in ${target_configdirs} ; do
7698 case ${olditem} in
7699 "") ;;
e6bfb94a 7700 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7701 esac
7702 olditem=${item}
7703done
7704serialization_dependencies=serdep.tmp
7705
7706
e6bfb94a 7707# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7708# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7709# might not want to pass down to subconfigures. The exception being
7710# --cache-file=/dev/null, which is used to turn off the use of cache
7711# files altogether, and which should be passed on to subconfigures.
7712# Also strip program-prefix, program-suffix, and program-transform-name,
7713# so that we can pass down a consistent program-transform-name.
c6b750e1 7714baseargs=
65b4571a 7715tbaseargs=
c6b750e1
DJ
7716keep_next=no
7717skip_next=no
7718eval "set -- $ac_configure_args"
18f6b6ee
PB
7719for ac_arg
7720do
c6b750e1
DJ
7721 if test X"$skip_next" = X"yes"; then
7722 skip_next=no
7723 continue
7724 fi
7725 if test X"$keep_next" = X"yes"; then
7726 case $ac_arg in
7727 *\'*)
7728 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7729 esac
7730 baseargs="$baseargs '$ac_arg'"
65b4571a 7731 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7732 keep_next=no
7733 continue
7734 fi
7735
7736 # Handle separated arguments. Based on the logic generated by
7737 # autoconf 2.59.
7738 case $ac_arg in
7739 *=* | --config-cache | -C | -disable-* | --disable-* \
7740 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7741 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7742 | -with-* | --with-* | -without-* | --without-* | --x)
7743 separate_arg=no
7744 ;;
7745 -*)
7746 separate_arg=yes
7747 ;;
7748 *)
7749 separate_arg=no
7750 ;;
7751 esac
7752
65b4571a
AO
7753 skip_targ=no
7754 case $ac_arg in
7755
7756 --with-* | --without-*)
7757 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7758
7759 case $libopt in
7760 *[-_]include)
7761 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7762 ;;
7763 *[-_]lib)
7764 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7765 ;;
7766 *)
7767 lib=$libopt
7768 ;;
7769 esac
7770
7771
7772 case $lib in
1b6c0831 7773 mpc | mpfr | gmp | isl)
65b4571a
AO
7774 # If we're processing --with-$lib, --with-$lib-include or
7775 # --with-$lib-lib, for one of the libs above, and target is
7776 # different from host, don't pass the current argument to any
7777 # target library's configure.
7778 if test x$is_cross_compiler = xyes; then
7779 skip_targ=yes
7780 fi
7781 ;;
7782 esac
7783 ;;
7784 esac
7785
c6b750e1 7786 case "$ac_arg" in
30167e0a
NC
7787 --cache-file=/dev/null | \
7788 -cache-file=/dev/null )
7789 # Handled here to avoid the test to skip args below.
7790 baseargs="$baseargs '$ac_arg'"
65b4571a 7791 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7792 # Assert: $separate_arg should always be no.
7793 keep_next=$separate_arg
7794 ;;
c6b750e1
DJ
7795 --no*)
7796 continue
7797 ;;
7798 --c* | \
7799 --sr* | \
7800 --ho* | \
7801 --bu* | \
7802 --t* | \
7803 --program-* | \
7804 -cache_file* | \
7805 -srcdir* | \
7806 -host* | \
7807 -build* | \
7808 -target* | \
7809 -program-prefix* | \
7810 -program-suffix* | \
7811 -program-transform-name* )
7812 skip_next=$separate_arg
7813 continue
7814 ;;
7815 -*)
7816 # An option. Add it.
7817 case $ac_arg in
7818 *\'*)
7819 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7820 esac
7821 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7822 if test X"$skip_targ" = Xno; then
7823 tbaseargs="$tbaseargs '$ac_arg'"
7824 fi
c6b750e1
DJ
7825 keep_next=$separate_arg
7826 ;;
7827 *)
7828 # Either a variable assignment, or a nonopt (triplet). Don't
7829 # pass it down; let the Makefile handle this.
7830 continue
7831 ;;
7832 esac
7833done
7834# Remove the initial space we just introduced and, as these will be
7835# expanded by make, quote '$'.
7836baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7837
f27d4f92
DJ
7838# Add in --program-transform-name, after --program-prefix and
7839# --program-suffix have been applied to it. Autoconf has already
7840# doubled dollar signs and backslashes in program_transform_name; we want
7841# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7842# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7843# Also, because we want to override the logic in subdir configure scripts to
7844# choose program_transform_name, replace any s,x,x, with s,y,y,.
7845sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7846${program_transform_name}
7847EOF_SED
7848gcc_transform_name=`cat conftestsed.out`
7849rm -f conftestsed.out
7850baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7851tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7852if test "$silent" = yes; then
7853 baseargs="$baseargs --silent"
65b4571a 7854 tbaseargs="$tbaseargs --silent"
2444379b 7855fi
e5f2f7d9 7856
34a0f3cf 7857baseargs="$baseargs --disable-option-checking"
65b4571a 7858tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7859
e5f2f7d9
LM
7860if test "$enable_year2038" = no; then
7861 baseargs="$baseargs --disable-year2038"
7862 tbaseargs="$tbaseargs --disable-year2038"
7863fi
7864
4074d5f2
RW
7865# Record and document user additions to sub configure arguments.
7866
7867
7868
7869
a0da8069
NN
7870# For the build-side libraries, we just need to pretend we're native,
7871# and not use the same cache file. Multilibs are neither needed nor
1b6c0831
L
7872# desired. We can't even use the same cache file for all build-side
7873# libraries, as they're compiled differently; some with C, some with
7874# C++ or with different feature-enabling options.
7875build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
a0da8069
NN
7876
7877# For host modules, accept cache file option, or specification as blank.
7878case "${cache_file}" in
7879"") # empty
7880 cache_file_option="" ;;
7881/* | [A-Za-z]:[\\/]* ) # absolute path
7882 cache_file_option="--cache-file=${cache_file}" ;;
7883*) # relative path
7884 cache_file_option="--cache-file=../${cache_file}" ;;
7885esac
7886
82252c06
NN
7887# Host dirs don't like to share a cache file either, horribly enough.
7888# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7889host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7890
65b4571a 7891target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7892
7893# Passing a --with-cross-host argument lets the target libraries know
7894# whether they are being built with a cross-compiler or being built
7895# native. However, it would be better to use other mechanisms to make the
7896# sorts of decisions they want to make on this basis. Please consider
7897# this option to be deprecated. FIXME.
7898if test x${is_cross_compiler} = xyes ; then
c6b750e1 7899 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7900fi
7901
afc0578d 7902# Special user-friendly check for native x86_64-linux build, if
7903# multilib is not explicitly enabled.
7904case "$target:$have_compiler:$host:$target:$enable_multilib" in
7905 x86_64-*linux*:yes:$build:$build:)
ce6c656d 7906 # Make sure we have a development environment that handles 32-bit
afc0578d 7907 dev64=no
7908 echo "int main () { return 0; }" > conftest.c
7909 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7910 if test $? = 0 ; then
7911 if test -s conftest || test -s conftest.exe ; then
7912 dev64=yes
7913 fi
7914 fi
7915 rm -f conftest*
7916 if test x${dev64} != xyes ; then
d0ac1c44 7917 as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
afc0578d 7918 fi
7919 ;;
7920esac
7921
938d2b74
RW
7922# Default to --enable-multilib.
7923if test x${enable_multilib} = x ; then
a0da8069 7924 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7925fi
a0da8069
NN
7926
7927# Pass --with-newlib if appropriate. Note that target_configdirs has
7928# changed from the earlier setting of with_newlib.
7929if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7930 target_configargs="--with-newlib ${target_configargs}"
7931fi
7932
95036d20
NN
7933# Different target subdirs use different values of certain variables
7934# (notably CXX). Worse, multilibs use *lots* of different values.
7935# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7936# it doesn't automatically accept command-line overrides of them.
7937# This means it's not safe for target subdirs to share a cache file,
7938# which is disgusting, but there you have it. Hopefully this can be
7939# fixed in future. It's still worthwhile to use a cache file for each
7940# directory. I think.
7941
ae380b45
MS
7942# Pass the appropriate --build, --host, --target and --cache-file arguments.
7943# We need to pass --target, as newer autoconf's requires consistency
7944# for target_alias and gcc doesn't manage it consistently.
4b900473 7945target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7946
a0da8069
NN
7947FLAGS_FOR_TARGET=
7948case " $target_configdirs " in
7949 *" newlib "*)
7950 case " $target_configargs " in
7951 *" --with-newlib "*)
7952 case "$target" in
1f53ca9a 7953 *-cygwin*)
6d94c122 7954 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 7955 ;;
a0da8069
NN
7956 esac
7957
7958 # If we're not building GCC, don't discard standard headers.
7959 if test -d ${srcdir}/gcc; then
7960 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7961
7962 if test "${build}" != "${host}"; then
7963 # On Canadian crosses, CC_FOR_TARGET will have already been set
7964 # by `configure', so we won't have an opportunity to add -Bgcc/
7965 # to it. This is right: we don't want to search that directory
7966 # for binaries, but we want the header files in there, so add
7967 # them explicitly.
e552509b 7968 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7969
7970 # Someone might think of using the pre-installed headers on
7971 # Canadian crosses, in case the installed compiler is not fully
7972 # compatible with the compiler being built. In this case, it
7973 # would be better to flag an error than risking having
7974 # incompatible object files being constructed. We can't
7975 # guarantee that an error will be flagged, but let's hope the
7976 # compiler will do it, when presented with incompatible header
7977 # files.
7978 fi
7979 fi
7980
7981 case "${target}-${is_cross_compiler}" in
ec11bdc6 7982 i[3456789]86-*-linux*-no)
a0da8069
NN
7983 # Here host == target, so we don't need to build gcc,
7984 # so we don't want to discard standard headers.
7985 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7986 ;;
7987 *)
7988 # If we're building newlib, use its generic headers last, but search
7989 # for any libc-related directories first (so make it the last -B
7990 # switch).
7991 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
7992
7993 # If we're building libgloss, find the startup file, simulator library
7994 # and linker script.
7995 case " $target_configdirs " in
7996 *" libgloss "*)
7997 # Look for startup file, simulator library and maybe linker script.
7998 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7999 # Look for libnosys.a in case the target needs it.
8000 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
8001 # Most targets have the linker script in the source directory.
8002 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
8003 ;;
8004 esac
a0da8069
NN
8005 ;;
8006 esac
8007 ;;
8008 esac
8009 ;;
8010esac
1f53ca9a 8011
45055374 8012case "$target" in
1f53ca9a
AO
8013 x86_64-*mingw* | *-w64-mingw*)
8014 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
8015 # however, use a symlink named 'mingw' in ${prefix} .
8016 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
8017 ;;
8018 *-mingw*)
8019 # MinGW can't be handled as Cygwin above since it does not use newlib.
8020 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'
8021 ;;
45055374 8022esac
a0da8069 8023
5fbad20a
DD
8024# Allow the user to override the flags for
8025# our build compiler if desired.
c66487f8
NC
8026if test x"${build}" = x"${host}" ; then
8027 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
e472ec9f 8028 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
c66487f8
NC
8029 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
8030 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
8031fi
5fbad20a 8032
a0da8069
NN
8033# On Canadian crosses, we'll be searching the right directories for
8034# the previously-installed cross compiler, so don't bother to add
8035# flags for directories within the install tree of the compiler
8036# being built; programs in there won't even run.
8037if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
8038 # Search for pre-installed headers if nothing else fits.
bba45b8b 8039 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
8040fi
8041
8042if test "x${use_gnu_ld}" = x &&
8043 echo " ${configdirs} " | grep " ld " > /dev/null ; then
8044 # Arrange for us to find uninstalled linker scripts.
b00612cc 8045 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
8046fi
8047
a481dbb7
DD
8048# Search for other target-specific linker scripts and such.
8049case "${target}" in
4e206d7e
DB
8050 mep*)
8051 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
8052 ;;
8053esac
8054
a0da8069 8055# Makefile fragments.
3e707e94
PB
8056for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
8057do
8058 eval fragval=\$$frag
8059 if test $fragval != /dev/null; then
8060 eval $frag=${srcdir}/$fragval
8061 fi
8062done
a0da8069
NN
8063
8064
8065
8066
8067
8068# Miscellanea: directories, flags, etc.
8069
8070
8071
8072
8073
8074
8075
3bbd2f8f 8076
6a9cf61e 8077# Build module lists & subconfigure args.
a0da8069
NN
8078
8079
8080
be01d343
PB
8081# Host module lists & subconfigure args.
8082
8083
8084
911e63d0 8085
be01d343
PB
8086# Target module lists & subconfigure args.
8087
8088
8089
8090# Build tools.
8091
8092
8093
1576798e
PB
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
e472ec9f 8107
be01d343
PB
8108# Generate default definitions for YACC, M4, LEX and other programs that run
8109# on the build machine. These are used if the Makefile can't locate these
8110# programs in objdir.
8111MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8112
8113for ac_prog in 'bison -y' byacc yacc
8114do
c6b750e1 8115 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8116set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8119if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 8120 $as_echo_n "(cached) " >&6
be01d343
PB
8121else
8122 if test -n "$YACC"; then
8123 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8124else
c6b750e1
DJ
8125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126for as_dir in $PATH
8127do
8128 IFS=$as_save_IFS
8129 test -z "$as_dir" && as_dir=.
81ecdfbb 8130 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8132 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 8133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8134 break 2
8135 fi
8136done
81ecdfbb
RW
8137 done
8138IFS=$as_save_IFS
c6b750e1 8139
be01d343
PB
8140fi
8141fi
c6b750e1 8142YACC=$ac_cv_prog_YACC
be01d343 8143if test -n "$YACC"; then
81ecdfbb
RW
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8145$as_echo "$YACC" >&6; }
be01d343 8146else
81ecdfbb
RW
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148$as_echo "no" >&6; }
be01d343
PB
8149fi
8150
81ecdfbb 8151
c6b750e1 8152 test -n "$YACC" && break
be01d343
PB
8153done
8154test -n "$YACC" || YACC="$MISSING bison -y"
8155
8156case " $build_configdirs " in
8157 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
8158esac
8159
8160for ac_prog in bison
8161do
c6b750e1 8162 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8163set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8166if ${ac_cv_prog_BISON+:} false; then :
81ecdfbb 8167 $as_echo_n "(cached) " >&6
be01d343
PB
8168else
8169 if test -n "$BISON"; then
8170 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8171else
c6b750e1
DJ
8172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173for as_dir in $PATH
8174do
8175 IFS=$as_save_IFS
8176 test -z "$as_dir" && as_dir=.
81ecdfbb 8177 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8179 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8181 break 2
8182 fi
8183done
81ecdfbb
RW
8184 done
8185IFS=$as_save_IFS
c6b750e1 8186
be01d343
PB
8187fi
8188fi
c6b750e1 8189BISON=$ac_cv_prog_BISON
be01d343 8190if test -n "$BISON"; then
81ecdfbb
RW
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8192$as_echo "$BISON" >&6; }
be01d343 8193else
81ecdfbb
RW
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195$as_echo "no" >&6; }
be01d343
PB
8196fi
8197
81ecdfbb 8198
c6b750e1 8199 test -n "$BISON" && break
be01d343
PB
8200done
8201test -n "$BISON" || BISON="$MISSING bison"
8202
8203case " $build_configdirs " in
8204 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8205esac
8206
8207for ac_prog in gm4 gnum4 m4
8208do
c6b750e1 8209 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8210set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8212$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8213if ${ac_cv_prog_M4+:} false; then :
81ecdfbb 8214 $as_echo_n "(cached) " >&6
be01d343
PB
8215else
8216 if test -n "$M4"; then
8217 ac_cv_prog_M4="$M4" # Let the user override the test.
8218else
c6b750e1
DJ
8219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220for as_dir in $PATH
8221do
8222 IFS=$as_save_IFS
8223 test -z "$as_dir" && as_dir=.
81ecdfbb 8224 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8226 ac_cv_prog_M4="$ac_prog"
81ecdfbb 8227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8228 break 2
8229 fi
8230done
81ecdfbb
RW
8231 done
8232IFS=$as_save_IFS
c6b750e1 8233
be01d343
PB
8234fi
8235fi
c6b750e1 8236M4=$ac_cv_prog_M4
be01d343 8237if test -n "$M4"; then
81ecdfbb
RW
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8239$as_echo "$M4" >&6; }
be01d343 8240else
81ecdfbb
RW
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242$as_echo "no" >&6; }
be01d343
PB
8243fi
8244
81ecdfbb 8245
c6b750e1 8246 test -n "$M4" && break
be01d343
PB
8247done
8248test -n "$M4" || M4="$MISSING m4"
8249
8250case " $build_configdirs " in
8251 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8252esac
8253
8254for ac_prog in flex lex
8255do
c6b750e1 8256 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8257set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8260if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 8261 $as_echo_n "(cached) " >&6
be01d343
PB
8262else
8263 if test -n "$LEX"; then
8264 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8265else
c6b750e1
DJ
8266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267for as_dir in $PATH
8268do
8269 IFS=$as_save_IFS
8270 test -z "$as_dir" && as_dir=.
81ecdfbb 8271 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8273 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 8274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8275 break 2
8276 fi
8277done
81ecdfbb
RW
8278 done
8279IFS=$as_save_IFS
c6b750e1 8280
be01d343
PB
8281fi
8282fi
c6b750e1 8283LEX=$ac_cv_prog_LEX
be01d343 8284if test -n "$LEX"; then
81ecdfbb
RW
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8286$as_echo "$LEX" >&6; }
be01d343 8287else
81ecdfbb
RW
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289$as_echo "no" >&6; }
be01d343
PB
8290fi
8291
81ecdfbb 8292
c6b750e1 8293 test -n "$LEX" && break
be01d343
PB
8294done
8295test -n "$LEX" || LEX="$MISSING flex"
8296
8297case " $build_configdirs " in
8298 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8299 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8300esac
8301
8302for ac_prog in flex
8303do
c6b750e1 8304 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8305set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8308if ${ac_cv_prog_FLEX+:} false; then :
81ecdfbb 8309 $as_echo_n "(cached) " >&6
be01d343
PB
8310else
8311 if test -n "$FLEX"; then
8312 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8313else
c6b750e1
DJ
8314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315for as_dir in $PATH
8316do
8317 IFS=$as_save_IFS
8318 test -z "$as_dir" && as_dir=.
81ecdfbb 8319 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8321 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 8322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8323 break 2
8324 fi
8325done
81ecdfbb
RW
8326 done
8327IFS=$as_save_IFS
c6b750e1 8328
be01d343
PB
8329fi
8330fi
c6b750e1 8331FLEX=$ac_cv_prog_FLEX
be01d343 8332if test -n "$FLEX"; then
81ecdfbb
RW
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8334$as_echo "$FLEX" >&6; }
be01d343 8335else
81ecdfbb
RW
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337$as_echo "no" >&6; }
be01d343
PB
8338fi
8339
81ecdfbb 8340
c6b750e1 8341 test -n "$FLEX" && break
be01d343
PB
8342done
8343test -n "$FLEX" || FLEX="$MISSING flex"
8344
8345case " $build_configdirs " in
8346 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8347esac
8348
8349for ac_prog in makeinfo
8350do
c6b750e1 8351 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8352set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8355if ${ac_cv_prog_MAKEINFO+:} false; then :
81ecdfbb 8356 $as_echo_n "(cached) " >&6
be01d343
PB
8357else
8358 if test -n "$MAKEINFO"; then
8359 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8360else
c6b750e1
DJ
8361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362for as_dir in $PATH
8363do
8364 IFS=$as_save_IFS
8365 test -z "$as_dir" && as_dir=.
81ecdfbb 8366 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8368 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 8369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8370 break 2
8371 fi
8372done
81ecdfbb
RW
8373 done
8374IFS=$as_save_IFS
c6b750e1 8375
be01d343
PB
8376fi
8377fi
c6b750e1 8378MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 8379if test -n "$MAKEINFO"; then
81ecdfbb
RW
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8381$as_echo "$MAKEINFO" >&6; }
be01d343 8382else
81ecdfbb
RW
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384$as_echo "no" >&6; }
be01d343
PB
8385fi
8386
81ecdfbb 8387
c6b750e1 8388 test -n "$MAKEINFO" && break
be01d343
PB
8389done
8390test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8391
8392case " $build_configdirs " in
8393 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8394 *)
8395
10ad8ef3 8396 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
8397 # higher, else we use the "missing" dummy.
8398 if ${MAKEINFO} --version \
10ad8ef3 8399 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
8400 :
8401 else
8402 MAKEINFO="$MISSING makeinfo"
8403 fi
8404 ;;
8405
8406esac
a0da8069 8407
be01d343 8408# FIXME: expect and dejagnu may become build tools?
a0da8069 8409
be01d343
PB
8410for ac_prog in expect
8411do
c6b750e1 8412 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8413set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8416if ${ac_cv_prog_EXPECT+:} false; then :
81ecdfbb 8417 $as_echo_n "(cached) " >&6
be01d343
PB
8418else
8419 if test -n "$EXPECT"; then
8420 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8421else
c6b750e1
DJ
8422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423for as_dir in $PATH
8424do
8425 IFS=$as_save_IFS
8426 test -z "$as_dir" && as_dir=.
81ecdfbb 8427 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8429 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8431 break 2
8432 fi
8433done
81ecdfbb
RW
8434 done
8435IFS=$as_save_IFS
c6b750e1 8436
be01d343
PB
8437fi
8438fi
c6b750e1 8439EXPECT=$ac_cv_prog_EXPECT
be01d343 8440if test -n "$EXPECT"; then
81ecdfbb
RW
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8442$as_echo "$EXPECT" >&6; }
be01d343 8443else
81ecdfbb
RW
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445$as_echo "no" >&6; }
be01d343 8446fi
a0da8069 8447
81ecdfbb 8448
c6b750e1 8449 test -n "$EXPECT" && break
be01d343
PB
8450done
8451test -n "$EXPECT" || EXPECT="expect"
a0da8069 8452
be01d343
PB
8453case " $configdirs " in
8454 *" expect "*)
8455 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8456 ;;
8457esac
a0da8069 8458
be01d343
PB
8459for ac_prog in runtest
8460do
c6b750e1 8461 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8462set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8464$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8465if ${ac_cv_prog_RUNTEST+:} false; then :
81ecdfbb 8466 $as_echo_n "(cached) " >&6
be01d343
PB
8467else
8468 if test -n "$RUNTEST"; then
8469 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8470else
c6b750e1
DJ
8471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472for as_dir in $PATH
8473do
8474 IFS=$as_save_IFS
8475 test -z "$as_dir" && as_dir=.
81ecdfbb 8476 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8478 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 8479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8480 break 2
8481 fi
8482done
81ecdfbb
RW
8483 done
8484IFS=$as_save_IFS
c6b750e1 8485
be01d343
PB
8486fi
8487fi
c6b750e1 8488RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8489if test -n "$RUNTEST"; then
81ecdfbb
RW
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8491$as_echo "$RUNTEST" >&6; }
be01d343 8492else
81ecdfbb
RW
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8494$as_echo "no" >&6; }
be01d343 8495fi
a0da8069 8496
81ecdfbb 8497
c6b750e1 8498 test -n "$RUNTEST" && break
be01d343
PB
8499done
8500test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8501
be01d343
PB
8502case " $configdirs " in
8503 *" dejagnu "*)
6b89cc21 8504 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8505 ;;
8506esac
a0da8069
NN
8507
8508
a0da8069 8509# Host tools.
859789af
AC
8510ncn_tool_prefix=
8511test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8512ncn_target_tool_prefix=
8513test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8514
9a819804
AO
8515
8516
8517if test -n "$AR"; then
8518 ac_cv_prog_AR=$AR
8519elif test -n "$ac_cv_prog_AR"; then
8520 AR=$ac_cv_prog_AR
8521fi
8522
8523if test -n "$ac_cv_prog_AR"; then
8524 for ncn_progname in ar; do
8525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8526set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8528$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8529if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8530 $as_echo_n "(cached) " >&6
9a819804
AO
8531else
8532 if test -n "$AR"; then
8533 ac_cv_prog_AR="$AR" # Let the user override the test.
8534else
8535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536for as_dir in $PATH
8537do
8538 IFS=$as_save_IFS
8539 test -z "$as_dir" && as_dir=.
81ecdfbb 8540 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8542 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8544 break 2
8545 fi
8546done
81ecdfbb
RW
8547 done
8548IFS=$as_save_IFS
9a819804
AO
8549
8550fi
8551fi
8552AR=$ac_cv_prog_AR
8553if test -n "$AR"; then
81ecdfbb
RW
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8555$as_echo "$AR" >&6; }
9a819804 8556else
81ecdfbb
RW
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8558$as_echo "no" >&6; }
9a819804
AO
8559fi
8560
81ecdfbb 8561
9a819804
AO
8562 done
8563fi
8564
8565for ncn_progname in ar; do
05cbd757
PB
8566 if test -n "$ncn_tool_prefix"; then
8567 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8568set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8570$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8571if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8572 $as_echo_n "(cached) " >&6
859789af
AC
8573else
8574 if test -n "$AR"; then
8575 ac_cv_prog_AR="$AR" # Let the user override the test.
8576else
c6b750e1
DJ
8577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8578for as_dir in $PATH
8579do
8580 IFS=$as_save_IFS
8581 test -z "$as_dir" && as_dir=.
81ecdfbb 8582 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8584 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8586 break 2
8587 fi
8588done
81ecdfbb
RW
8589 done
8590IFS=$as_save_IFS
c6b750e1 8591
859789af
AC
8592fi
8593fi
c6b750e1 8594AR=$ac_cv_prog_AR
859789af 8595if test -n "$AR"; then
81ecdfbb
RW
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8597$as_echo "$AR" >&6; }
859789af 8598else
81ecdfbb
RW
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8600$as_echo "no" >&6; }
859789af
AC
8601fi
8602
81ecdfbb 8603
05cbd757
PB
8604 fi
8605 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8607set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8610if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8611 $as_echo_n "(cached) " >&6
859789af 8612else
05cbd757
PB
8613 if test -n "$AR"; then
8614 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8615else
c6b750e1
DJ
8616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617for as_dir in $PATH
8618do
8619 IFS=$as_save_IFS
8620 test -z "$as_dir" && as_dir=.
81ecdfbb 8621 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8623 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8625 break 2
8626 fi
8627done
81ecdfbb
RW
8628 done
8629IFS=$as_save_IFS
c6b750e1 8630
859789af
AC
8631fi
8632fi
c6b750e1 8633AR=$ac_cv_prog_AR
05cbd757 8634if test -n "$AR"; then
81ecdfbb
RW
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8636$as_echo "$AR" >&6; }
859789af 8637else
81ecdfbb
RW
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639$as_echo "no" >&6; }
859789af 8640fi
c6b750e1 8641
81ecdfbb 8642
05cbd757
PB
8643 fi
8644 test -n "$ac_cv_prog_AR" && break
8645done
8646
8647if test -z "$ac_cv_prog_AR" ; then
8648 set dummy ar
8649 if test $build = $host ; then
8650 AR="$2"
859789af 8651 else
05cbd757 8652 AR="${ncn_tool_prefix}$2"
859789af 8653 fi
859789af
AC
8654fi
8655
9a819804
AO
8656
8657
8658if test -n "$AS"; then
8659 ac_cv_prog_AS=$AS
8660elif test -n "$ac_cv_prog_AS"; then
8661 AS=$ac_cv_prog_AS
8662fi
8663
8664if test -n "$ac_cv_prog_AS"; then
8665 for ncn_progname in as; do
8666 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8667set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8669$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8670if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8671 $as_echo_n "(cached) " >&6
9a819804
AO
8672else
8673 if test -n "$AS"; then
8674 ac_cv_prog_AS="$AS" # Let the user override the test.
8675else
8676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677for as_dir in $PATH
8678do
8679 IFS=$as_save_IFS
8680 test -z "$as_dir" && as_dir=.
81ecdfbb 8681 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8683 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8685 break 2
8686 fi
8687done
81ecdfbb
RW
8688 done
8689IFS=$as_save_IFS
9a819804
AO
8690
8691fi
8692fi
8693AS=$ac_cv_prog_AS
8694if test -n "$AS"; then
81ecdfbb
RW
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8696$as_echo "$AS" >&6; }
9a819804 8697else
81ecdfbb
RW
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8699$as_echo "no" >&6; }
9a819804
AO
8700fi
8701
81ecdfbb 8702
9a819804
AO
8703 done
8704fi
8705
8706for ncn_progname in as; do
05cbd757
PB
8707 if test -n "$ncn_tool_prefix"; then
8708 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8709set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8711$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8712if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8713 $as_echo_n "(cached) " >&6
859789af
AC
8714else
8715 if test -n "$AS"; then
8716 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8717else
8718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8719for as_dir in $PATH
8720do
8721 IFS=$as_save_IFS
8722 test -z "$as_dir" && as_dir=.
81ecdfbb 8723 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8725 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8727 break 2
8728 fi
8729done
81ecdfbb
RW
8730 done
8731IFS=$as_save_IFS
c6b750e1 8732
859789af
AC
8733fi
8734fi
c6b750e1 8735AS=$ac_cv_prog_AS
859789af 8736if test -n "$AS"; then
81ecdfbb
RW
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8738$as_echo "$AS" >&6; }
859789af 8739else
81ecdfbb
RW
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8741$as_echo "no" >&6; }
859789af
AC
8742fi
8743
81ecdfbb 8744
05cbd757
PB
8745 fi
8746 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8748set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8750$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8751if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8752 $as_echo_n "(cached) " >&6
859789af 8753else
05cbd757
PB
8754 if test -n "$AS"; then
8755 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8756else
c6b750e1
DJ
8757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758for as_dir in $PATH
8759do
8760 IFS=$as_save_IFS
8761 test -z "$as_dir" && as_dir=.
81ecdfbb 8762 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8764 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8766 break 2
8767 fi
8768done
81ecdfbb
RW
8769 done
8770IFS=$as_save_IFS
c6b750e1 8771
859789af
AC
8772fi
8773fi
c6b750e1 8774AS=$ac_cv_prog_AS
05cbd757 8775if test -n "$AS"; then
81ecdfbb
RW
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8777$as_echo "$AS" >&6; }
859789af 8778else
81ecdfbb
RW
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8780$as_echo "no" >&6; }
859789af 8781fi
c6b750e1 8782
81ecdfbb 8783
05cbd757
PB
8784 fi
8785 test -n "$ac_cv_prog_AS" && break
8786done
8787
8788if test -z "$ac_cv_prog_AS" ; then
8789 set dummy as
8790 if test $build = $host ; then
8791 AS="$2"
859789af 8792 else
05cbd757 8793 AS="${ncn_tool_prefix}$2"
859789af 8794 fi
859789af
AC
8795fi
8796
9a819804
AO
8797
8798
8799if test -n "$DLLTOOL"; then
8800 ac_cv_prog_DLLTOOL=$DLLTOOL
8801elif test -n "$ac_cv_prog_DLLTOOL"; then
8802 DLLTOOL=$ac_cv_prog_DLLTOOL
8803fi
8804
8805if test -n "$ac_cv_prog_DLLTOOL"; then
8806 for ncn_progname in dlltool; do
8807 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8808set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8810$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8811if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8812 $as_echo_n "(cached) " >&6
9a819804
AO
8813else
8814 if test -n "$DLLTOOL"; then
8815 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8816else
8817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818for as_dir in $PATH
8819do
8820 IFS=$as_save_IFS
8821 test -z "$as_dir" && as_dir=.
81ecdfbb 8822 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8824 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8826 break 2
8827 fi
8828done
81ecdfbb
RW
8829 done
8830IFS=$as_save_IFS
9a819804
AO
8831
8832fi
8833fi
8834DLLTOOL=$ac_cv_prog_DLLTOOL
8835if test -n "$DLLTOOL"; then
81ecdfbb
RW
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8837$as_echo "$DLLTOOL" >&6; }
9a819804 8838else
81ecdfbb
RW
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840$as_echo "no" >&6; }
9a819804
AO
8841fi
8842
81ecdfbb 8843
9a819804
AO
8844 done
8845fi
8846
8847for ncn_progname in dlltool; do
05cbd757
PB
8848 if test -n "$ncn_tool_prefix"; then
8849 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8850set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8852$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8853if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8854 $as_echo_n "(cached) " >&6
859789af
AC
8855else
8856 if test -n "$DLLTOOL"; then
8857 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8858else
c6b750e1
DJ
8859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8860for as_dir in $PATH
8861do
8862 IFS=$as_save_IFS
8863 test -z "$as_dir" && as_dir=.
81ecdfbb 8864 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8866 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8868 break 2
8869 fi
8870done
81ecdfbb
RW
8871 done
8872IFS=$as_save_IFS
c6b750e1 8873
859789af
AC
8874fi
8875fi
c6b750e1 8876DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8877if test -n "$DLLTOOL"; then
81ecdfbb
RW
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8879$as_echo "$DLLTOOL" >&6; }
859789af 8880else
81ecdfbb
RW
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8882$as_echo "no" >&6; }
859789af
AC
8883fi
8884
81ecdfbb 8885
05cbd757
PB
8886 fi
8887 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8889set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8891$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8892if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8893 $as_echo_n "(cached) " >&6
859789af 8894else
05cbd757
PB
8895 if test -n "$DLLTOOL"; then
8896 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8897else
c6b750e1
DJ
8898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899for as_dir in $PATH
8900do
8901 IFS=$as_save_IFS
8902 test -z "$as_dir" && as_dir=.
81ecdfbb 8903 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8905 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8907 break 2
8908 fi
8909done
81ecdfbb
RW
8910 done
8911IFS=$as_save_IFS
c6b750e1 8912
859789af
AC
8913fi
8914fi
c6b750e1 8915DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8916if test -n "$DLLTOOL"; then
81ecdfbb
RW
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8918$as_echo "$DLLTOOL" >&6; }
859789af 8919else
81ecdfbb
RW
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921$as_echo "no" >&6; }
859789af 8922fi
c6b750e1 8923
81ecdfbb 8924
05cbd757
PB
8925 fi
8926 test -n "$ac_cv_prog_DLLTOOL" && break
8927done
8928
8929if test -z "$ac_cv_prog_DLLTOOL" ; then
8930 set dummy dlltool
8931 if test $build = $host ; then
8932 DLLTOOL="$2"
859789af 8933 else
05cbd757 8934 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8935 fi
859789af
AC
8936fi
8937
9a819804
AO
8938
8939
8940if test -n "$LD"; then
8941 ac_cv_prog_LD=$LD
8942elif test -n "$ac_cv_prog_LD"; then
8943 LD=$ac_cv_prog_LD
8944fi
8945
8946if test -n "$ac_cv_prog_LD"; then
8947 for ncn_progname in ld; do
8948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8949set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8951$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8952if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8953 $as_echo_n "(cached) " >&6
9a819804
AO
8954else
8955 if test -n "$LD"; then
8956 ac_cv_prog_LD="$LD" # Let the user override the test.
8957else
8958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8959for as_dir in $PATH
8960do
8961 IFS=$as_save_IFS
8962 test -z "$as_dir" && as_dir=.
81ecdfbb 8963 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8965 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8967 break 2
8968 fi
8969done
81ecdfbb
RW
8970 done
8971IFS=$as_save_IFS
9a819804
AO
8972
8973fi
8974fi
8975LD=$ac_cv_prog_LD
8976if test -n "$LD"; then
81ecdfbb
RW
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8978$as_echo "$LD" >&6; }
9a819804 8979else
81ecdfbb
RW
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8981$as_echo "no" >&6; }
9a819804
AO
8982fi
8983
81ecdfbb 8984
9a819804
AO
8985 done
8986fi
8987
8988for ncn_progname in ld; do
05cbd757
PB
8989 if test -n "$ncn_tool_prefix"; then
8990 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8991set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8993$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8994if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8995 $as_echo_n "(cached) " >&6
859789af
AC
8996else
8997 if test -n "$LD"; then
8998 ac_cv_prog_LD="$LD" # Let the user override the test.
8999else
c6b750e1
DJ
9000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001for as_dir in $PATH
9002do
9003 IFS=$as_save_IFS
9004 test -z "$as_dir" && as_dir=.
81ecdfbb 9005 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9007 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9009 break 2
9010 fi
9011done
81ecdfbb
RW
9012 done
9013IFS=$as_save_IFS
c6b750e1 9014
859789af
AC
9015fi
9016fi
c6b750e1 9017LD=$ac_cv_prog_LD
859789af 9018if test -n "$LD"; then
81ecdfbb
RW
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9020$as_echo "$LD" >&6; }
859789af 9021else
81ecdfbb
RW
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9023$as_echo "no" >&6; }
859789af
AC
9024fi
9025
81ecdfbb 9026
05cbd757
PB
9027 fi
9028 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
9029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9030set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9032$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9033if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 9034 $as_echo_n "(cached) " >&6
859789af 9035else
05cbd757
PB
9036 if test -n "$LD"; then
9037 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 9038else
c6b750e1
DJ
9039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9040for as_dir in $PATH
9041do
9042 IFS=$as_save_IFS
9043 test -z "$as_dir" && as_dir=.
81ecdfbb 9044 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9046 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 9047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9048 break 2
9049 fi
9050done
81ecdfbb
RW
9051 done
9052IFS=$as_save_IFS
c6b750e1 9053
859789af
AC
9054fi
9055fi
c6b750e1 9056LD=$ac_cv_prog_LD
05cbd757 9057if test -n "$LD"; then
81ecdfbb
RW
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9059$as_echo "$LD" >&6; }
859789af 9060else
81ecdfbb
RW
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062$as_echo "no" >&6; }
859789af 9063fi
c6b750e1 9064
81ecdfbb 9065
05cbd757
PB
9066 fi
9067 test -n "$ac_cv_prog_LD" && break
9068done
9069
9070if test -z "$ac_cv_prog_LD" ; then
9071 set dummy ld
9072 if test $build = $host ; then
9073 LD="$2"
859789af 9074 else
05cbd757 9075 LD="${ncn_tool_prefix}$2"
859789af 9076 fi
859789af
AC
9077fi
9078
9a819804
AO
9079
9080
9081if test -n "$LIPO"; then
9082 ac_cv_prog_LIPO=$LIPO
9083elif test -n "$ac_cv_prog_LIPO"; then
9084 LIPO=$ac_cv_prog_LIPO
9085fi
9086
9087if test -n "$ac_cv_prog_LIPO"; then
9088 for ncn_progname in lipo; do
9089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9090set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9092$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9093if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 9094 $as_echo_n "(cached) " >&6
9a819804
AO
9095else
9096 if test -n "$LIPO"; then
9097 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9098else
9099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100for as_dir in $PATH
9101do
9102 IFS=$as_save_IFS
9103 test -z "$as_dir" && as_dir=.
81ecdfbb 9104 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9106 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 9107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9108 break 2
9109 fi
9110done
81ecdfbb
RW
9111 done
9112IFS=$as_save_IFS
9a819804
AO
9113
9114fi
9115fi
9116LIPO=$ac_cv_prog_LIPO
9117if test -n "$LIPO"; then
81ecdfbb
RW
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9119$as_echo "$LIPO" >&6; }
9a819804 9120else
81ecdfbb
RW
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9122$as_echo "no" >&6; }
9a819804
AO
9123fi
9124
81ecdfbb 9125
9a819804
AO
9126 done
9127fi
9128
9129for ncn_progname in lipo; do
be01d343
PB
9130 if test -n "$ncn_tool_prefix"; then
9131 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9132set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9134$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9135if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 9136 $as_echo_n "(cached) " >&6
be01d343
PB
9137else
9138 if test -n "$LIPO"; then
9139 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9140else
c6b750e1
DJ
9141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9142for as_dir in $PATH
9143do
9144 IFS=$as_save_IFS
9145 test -z "$as_dir" && as_dir=.
81ecdfbb 9146 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9148 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9150 break 2
9151 fi
9152done
81ecdfbb
RW
9153 done
9154IFS=$as_save_IFS
c6b750e1 9155
be01d343
PB
9156fi
9157fi
c6b750e1 9158LIPO=$ac_cv_prog_LIPO
be01d343 9159if test -n "$LIPO"; then
81ecdfbb
RW
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9161$as_echo "$LIPO" >&6; }
be01d343 9162else
81ecdfbb
RW
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9164$as_echo "no" >&6; }
be01d343
PB
9165fi
9166
81ecdfbb 9167
be01d343
PB
9168 fi
9169 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9171set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9173$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9174if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 9175 $as_echo_n "(cached) " >&6
be01d343
PB
9176else
9177 if test -n "$LIPO"; then
9178 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9179else
c6b750e1
DJ
9180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9181for as_dir in $PATH
9182do
9183 IFS=$as_save_IFS
9184 test -z "$as_dir" && as_dir=.
81ecdfbb 9185 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9187 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 9188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9189 break 2
9190 fi
9191done
81ecdfbb
RW
9192 done
9193IFS=$as_save_IFS
c6b750e1 9194
be01d343
PB
9195fi
9196fi
c6b750e1 9197LIPO=$ac_cv_prog_LIPO
be01d343 9198if test -n "$LIPO"; then
81ecdfbb
RW
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9200$as_echo "$LIPO" >&6; }
be01d343 9201else
81ecdfbb
RW
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203$as_echo "no" >&6; }
be01d343 9204fi
c6b750e1 9205
81ecdfbb 9206
be01d343
PB
9207 fi
9208 test -n "$ac_cv_prog_LIPO" && break
9209done
9210
9211if test -z "$ac_cv_prog_LIPO" ; then
9212 set dummy lipo
9213 if test $build = $host ; then
9214 LIPO="$2"
9215 else
9216 LIPO="${ncn_tool_prefix}$2"
9217 fi
9218fi
9219
9a819804
AO
9220
9221
9222if test -n "$NM"; then
9223 ac_cv_prog_NM=$NM
9224elif test -n "$ac_cv_prog_NM"; then
9225 NM=$ac_cv_prog_NM
9226fi
9227
9228if test -n "$ac_cv_prog_NM"; then
9229 for ncn_progname in nm; do
9230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9231set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9233$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9234if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 9235 $as_echo_n "(cached) " >&6
859789af
AC
9236else
9237 if test -n "$NM"; then
9238 ac_cv_prog_NM="$NM" # Let the user override the test.
9239else
c6b750e1
DJ
9240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9241for as_dir in $PATH
9242do
9243 IFS=$as_save_IFS
9244 test -z "$as_dir" && as_dir=.
81ecdfbb 9245 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9247 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 9248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9249 break 2
9250 fi
9251done
81ecdfbb
RW
9252 done
9253IFS=$as_save_IFS
c6b750e1 9254
859789af
AC
9255fi
9256fi
c6b750e1 9257NM=$ac_cv_prog_NM
859789af 9258if test -n "$NM"; then
81ecdfbb
RW
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9260$as_echo "$NM" >&6; }
859789af 9261else
81ecdfbb
RW
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9263$as_echo "no" >&6; }
859789af
AC
9264fi
9265
81ecdfbb 9266
9a819804
AO
9267 done
9268fi
9269
9270for ncn_progname in nm; do
9271 if test -n "$ncn_tool_prefix"; then
9272 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9273set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9275$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9276if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 9277 $as_echo_n "(cached) " >&6
859789af 9278else
05cbd757
PB
9279 if test -n "$NM"; then
9280 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 9281else
c6b750e1
DJ
9282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9283for as_dir in $PATH
9284do
9285 IFS=$as_save_IFS
9286 test -z "$as_dir" && as_dir=.
81ecdfbb 9287 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9289 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9291 break 2
9292 fi
9293done
81ecdfbb
RW
9294 done
9295IFS=$as_save_IFS
c6b750e1 9296
859789af
AC
9297fi
9298fi
c6b750e1 9299NM=$ac_cv_prog_NM
05cbd757 9300if test -n "$NM"; then
81ecdfbb
RW
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9302$as_echo "$NM" >&6; }
859789af 9303else
81ecdfbb
RW
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9305$as_echo "no" >&6; }
859789af 9306fi
c6b750e1 9307
81ecdfbb 9308
05cbd757 9309 fi
9a819804
AO
9310 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9312set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9314$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9315if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 9316 $as_echo_n "(cached) " >&6
9a819804
AO
9317else
9318 if test -n "$NM"; then
9319 ac_cv_prog_NM="$NM" # Let the user override the test.
9320else
9321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9322for as_dir in $PATH
9323do
9324 IFS=$as_save_IFS
9325 test -z "$as_dir" && as_dir=.
81ecdfbb 9326 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9328 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 9329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9330 break 2
9331 fi
9332done
81ecdfbb
RW
9333 done
9334IFS=$as_save_IFS
9a819804
AO
9335
9336fi
9337fi
9338NM=$ac_cv_prog_NM
9339if test -n "$NM"; then
81ecdfbb
RW
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9341$as_echo "$NM" >&6; }
9a819804 9342else
81ecdfbb
RW
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9344$as_echo "no" >&6; }
9a819804
AO
9345fi
9346
81ecdfbb 9347
9a819804
AO
9348 fi
9349 test -n "$ac_cv_prog_NM" && break
9350done
9351
9352if test -z "$ac_cv_prog_NM" ; then
9353 set dummy nm
9354 if test $build = $host ; then
9355 NM="$2"
9356 else
9357 NM="${ncn_tool_prefix}$2"
9358 fi
9359fi
9360
9361
9362
9363if test -n "$RANLIB"; then
9364 ac_cv_prog_RANLIB=$RANLIB
9365elif test -n "$ac_cv_prog_RANLIB"; then
9366 RANLIB=$ac_cv_prog_RANLIB
9367fi
9368
9369if test -n "$ac_cv_prog_RANLIB"; then
9370 for ncn_progname in ranlib; do
9371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9372set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9374$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9375if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9376 $as_echo_n "(cached) " >&6
9a819804
AO
9377else
9378 if test -n "$RANLIB"; then
9379 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9380else
9381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9382for as_dir in $PATH
9383do
9384 IFS=$as_save_IFS
9385 test -z "$as_dir" && as_dir=.
81ecdfbb 9386 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9388 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9390 break 2
9391 fi
9392done
81ecdfbb
RW
9393 done
9394IFS=$as_save_IFS
9a819804
AO
9395
9396fi
9397fi
9398RANLIB=$ac_cv_prog_RANLIB
9399if test -n "$RANLIB"; then
81ecdfbb
RW
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9401$as_echo "$RANLIB" >&6; }
9a819804 9402else
81ecdfbb
RW
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9404$as_echo "no" >&6; }
9a819804
AO
9405fi
9406
81ecdfbb 9407
9a819804
AO
9408 done
9409fi
859789af 9410
9a819804 9411for ncn_progname in ranlib; do
05cbd757
PB
9412 if test -n "$ncn_tool_prefix"; then
9413 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9414set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9416$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9417if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9418 $as_echo_n "(cached) " >&6
859789af
AC
9419else
9420 if test -n "$RANLIB"; then
9421 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9422else
c6b750e1
DJ
9423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424for as_dir in $PATH
9425do
9426 IFS=$as_save_IFS
9427 test -z "$as_dir" && as_dir=.
81ecdfbb 9428 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9430 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9432 break 2
9433 fi
9434done
81ecdfbb
RW
9435 done
9436IFS=$as_save_IFS
c6b750e1 9437
859789af
AC
9438fi
9439fi
c6b750e1 9440RANLIB=$ac_cv_prog_RANLIB
859789af 9441if test -n "$RANLIB"; then
81ecdfbb
RW
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9443$as_echo "$RANLIB" >&6; }
859789af 9444else
81ecdfbb
RW
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9446$as_echo "no" >&6; }
859789af
AC
9447fi
9448
81ecdfbb 9449
05cbd757
PB
9450 fi
9451 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9453set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9455$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9456if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9457 $as_echo_n "(cached) " >&6
859789af 9458else
05cbd757
PB
9459 if test -n "$RANLIB"; then
9460 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 9461else
c6b750e1
DJ
9462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463for as_dir in $PATH
9464do
9465 IFS=$as_save_IFS
9466 test -z "$as_dir" && as_dir=.
81ecdfbb 9467 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9469 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9471 break 2
9472 fi
9473done
81ecdfbb
RW
9474 done
9475IFS=$as_save_IFS
c6b750e1 9476
859789af
AC
9477fi
9478fi
c6b750e1 9479RANLIB=$ac_cv_prog_RANLIB
05cbd757 9480if test -n "$RANLIB"; then
81ecdfbb
RW
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9482$as_echo "$RANLIB" >&6; }
859789af 9483else
81ecdfbb
RW
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9485$as_echo "no" >&6; }
859789af 9486fi
c6b750e1 9487
81ecdfbb 9488
859789af 9489 fi
05cbd757
PB
9490 test -n "$ac_cv_prog_RANLIB" && break
9491done
9492
9493if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9494 RANLIB="true"
859789af
AC
9495fi
9496
9a819804
AO
9497
9498
9499if test -n "$STRIP"; then
9500 ac_cv_prog_STRIP=$STRIP
9501elif test -n "$ac_cv_prog_STRIP"; then
9502 STRIP=$ac_cv_prog_STRIP
9503fi
9504
9505if test -n "$ac_cv_prog_STRIP"; then
9506 for ncn_progname in strip; do
9507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9508set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9510$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9511if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9512 $as_echo_n "(cached) " >&6
9a819804
AO
9513else
9514 if test -n "$STRIP"; then
9515 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9516else
9517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9518for as_dir in $PATH
9519do
9520 IFS=$as_save_IFS
9521 test -z "$as_dir" && as_dir=.
81ecdfbb 9522 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9524 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9526 break 2
9527 fi
9528done
81ecdfbb
RW
9529 done
9530IFS=$as_save_IFS
9a819804
AO
9531
9532fi
9533fi
9534STRIP=$ac_cv_prog_STRIP
9535if test -n "$STRIP"; then
81ecdfbb
RW
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9537$as_echo "$STRIP" >&6; }
9a819804 9538else
81ecdfbb
RW
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9540$as_echo "no" >&6; }
9a819804
AO
9541fi
9542
81ecdfbb 9543
9a819804
AO
9544 done
9545fi
9546
9547for ncn_progname in strip; do
be01d343
PB
9548 if test -n "$ncn_tool_prefix"; then
9549 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9550set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9552$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9553if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9554 $as_echo_n "(cached) " >&6
be01d343
PB
9555else
9556 if test -n "$STRIP"; then
9557 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9558else
c6b750e1
DJ
9559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9560for as_dir in $PATH
9561do
9562 IFS=$as_save_IFS
9563 test -z "$as_dir" && as_dir=.
81ecdfbb 9564 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9566 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9568 break 2
9569 fi
9570done
81ecdfbb
RW
9571 done
9572IFS=$as_save_IFS
c6b750e1 9573
be01d343
PB
9574fi
9575fi
c6b750e1 9576STRIP=$ac_cv_prog_STRIP
be01d343 9577if test -n "$STRIP"; then
81ecdfbb
RW
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9579$as_echo "$STRIP" >&6; }
be01d343 9580else
81ecdfbb
RW
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9582$as_echo "no" >&6; }
be01d343
PB
9583fi
9584
81ecdfbb 9585
be01d343
PB
9586 fi
9587 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9588 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9589set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9591$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9592if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9593 $as_echo_n "(cached) " >&6
be01d343
PB
9594else
9595 if test -n "$STRIP"; then
9596 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9597else
c6b750e1
DJ
9598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9599for as_dir in $PATH
9600do
9601 IFS=$as_save_IFS
9602 test -z "$as_dir" && as_dir=.
81ecdfbb 9603 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9605 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9607 break 2
9608 fi
9609done
81ecdfbb
RW
9610 done
9611IFS=$as_save_IFS
c6b750e1 9612
be01d343
PB
9613fi
9614fi
c6b750e1 9615STRIP=$ac_cv_prog_STRIP
be01d343 9616if test -n "$STRIP"; then
81ecdfbb
RW
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9618$as_echo "$STRIP" >&6; }
be01d343 9619else
81ecdfbb
RW
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9621$as_echo "no" >&6; }
be01d343 9622fi
c6b750e1 9623
81ecdfbb 9624
be01d343
PB
9625 fi
9626 test -n "$ac_cv_prog_STRIP" && break
9627done
9628
9629if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9630 STRIP="true"
be01d343
PB
9631fi
9632
9a819804
AO
9633
9634
9635if test -n "$WINDRES"; then
9636 ac_cv_prog_WINDRES=$WINDRES
9637elif test -n "$ac_cv_prog_WINDRES"; then
9638 WINDRES=$ac_cv_prog_WINDRES
9639fi
9640
9641if test -n "$ac_cv_prog_WINDRES"; then
9642 for ncn_progname in windres; do
9643 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9644set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9646$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9647if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9648 $as_echo_n "(cached) " >&6
9a819804
AO
9649else
9650 if test -n "$WINDRES"; then
9651 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9652else
9653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654for as_dir in $PATH
9655do
9656 IFS=$as_save_IFS
9657 test -z "$as_dir" && as_dir=.
81ecdfbb 9658 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9660 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9662 break 2
9663 fi
9664done
81ecdfbb
RW
9665 done
9666IFS=$as_save_IFS
9a819804
AO
9667
9668fi
9669fi
9670WINDRES=$ac_cv_prog_WINDRES
9671if test -n "$WINDRES"; then
81ecdfbb
RW
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9673$as_echo "$WINDRES" >&6; }
9a819804 9674else
81ecdfbb
RW
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9676$as_echo "no" >&6; }
9a819804
AO
9677fi
9678
81ecdfbb 9679
9a819804
AO
9680 done
9681fi
9682
9683for ncn_progname in windres; do
05cbd757
PB
9684 if test -n "$ncn_tool_prefix"; then
9685 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9686set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9688$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9689if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9690 $as_echo_n "(cached) " >&6
859789af
AC
9691else
9692 if test -n "$WINDRES"; then
9693 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9694else
c6b750e1
DJ
9695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9696for as_dir in $PATH
9697do
9698 IFS=$as_save_IFS
9699 test -z "$as_dir" && as_dir=.
81ecdfbb 9700 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9702 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9704 break 2
9705 fi
9706done
81ecdfbb
RW
9707 done
9708IFS=$as_save_IFS
c6b750e1 9709
859789af
AC
9710fi
9711fi
c6b750e1 9712WINDRES=$ac_cv_prog_WINDRES
859789af 9713if test -n "$WINDRES"; then
81ecdfbb
RW
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9715$as_echo "$WINDRES" >&6; }
859789af 9716else
81ecdfbb
RW
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9718$as_echo "no" >&6; }
859789af
AC
9719fi
9720
81ecdfbb 9721
05cbd757
PB
9722 fi
9723 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9725set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9727$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9728if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9729 $as_echo_n "(cached) " >&6
859789af 9730else
05cbd757
PB
9731 if test -n "$WINDRES"; then
9732 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9733else
c6b750e1
DJ
9734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9735for as_dir in $PATH
9736do
9737 IFS=$as_save_IFS
9738 test -z "$as_dir" && as_dir=.
81ecdfbb 9739 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9741 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9743 break 2
9744 fi
9745done
81ecdfbb
RW
9746 done
9747IFS=$as_save_IFS
c6b750e1 9748
859789af
AC
9749fi
9750fi
c6b750e1 9751WINDRES=$ac_cv_prog_WINDRES
05cbd757 9752if test -n "$WINDRES"; then
81ecdfbb
RW
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9754$as_echo "$WINDRES" >&6; }
859789af 9755else
81ecdfbb
RW
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9757$as_echo "no" >&6; }
859789af 9758fi
c6b750e1 9759
81ecdfbb 9760
05cbd757
PB
9761 fi
9762 test -n "$ac_cv_prog_WINDRES" && break
9763done
9764
9765if test -z "$ac_cv_prog_WINDRES" ; then
9766 set dummy windres
9767 if test $build = $host ; then
9768 WINDRES="$2"
859789af 9769 else
05cbd757 9770 WINDRES="${ncn_tool_prefix}$2"
859789af 9771 fi
859789af
AC
9772fi
9773
9a819804
AO
9774
9775
0c24b341
NC
9776if test -n "$WINDMC"; then
9777 ac_cv_prog_WINDMC=$WINDMC
9778elif test -n "$ac_cv_prog_WINDMC"; then
9779 WINDMC=$ac_cv_prog_WINDMC
9780fi
9781
9782if test -n "$ac_cv_prog_WINDMC"; then
9783 for ncn_progname in windmc; do
9784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9785set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9787$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9788if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9789 $as_echo_n "(cached) " >&6
0c24b341
NC
9790else
9791 if test -n "$WINDMC"; then
9792 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9793else
9794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9795for as_dir in $PATH
9796do
9797 IFS=$as_save_IFS
9798 test -z "$as_dir" && as_dir=.
81ecdfbb 9799 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9801 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9803 break 2
9804 fi
9805done
81ecdfbb
RW
9806 done
9807IFS=$as_save_IFS
0c24b341
NC
9808
9809fi
9810fi
9811WINDMC=$ac_cv_prog_WINDMC
9812if test -n "$WINDMC"; then
81ecdfbb
RW
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9814$as_echo "$WINDMC" >&6; }
0c24b341 9815else
81ecdfbb
RW
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9817$as_echo "no" >&6; }
0c24b341
NC
9818fi
9819
81ecdfbb 9820
0c24b341
NC
9821 done
9822fi
9823
9824for ncn_progname in windmc; do
9825 if test -n "$ncn_tool_prefix"; then
9826 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9827set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9829$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9830if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9831 $as_echo_n "(cached) " >&6
0c24b341
NC
9832else
9833 if test -n "$WINDMC"; then
9834 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9835else
9836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9837for as_dir in $PATH
9838do
9839 IFS=$as_save_IFS
9840 test -z "$as_dir" && as_dir=.
81ecdfbb 9841 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9843 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9845 break 2
9846 fi
9847done
81ecdfbb
RW
9848 done
9849IFS=$as_save_IFS
0c24b341
NC
9850
9851fi
9852fi
9853WINDMC=$ac_cv_prog_WINDMC
9854if test -n "$WINDMC"; then
81ecdfbb
RW
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9856$as_echo "$WINDMC" >&6; }
0c24b341 9857else
81ecdfbb
RW
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9859$as_echo "no" >&6; }
0c24b341
NC
9860fi
9861
81ecdfbb 9862
0c24b341
NC
9863 fi
9864 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9866set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9868$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9869if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9870 $as_echo_n "(cached) " >&6
0c24b341
NC
9871else
9872 if test -n "$WINDMC"; then
9873 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9874else
9875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876for as_dir in $PATH
9877do
9878 IFS=$as_save_IFS
9879 test -z "$as_dir" && as_dir=.
81ecdfbb 9880 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9882 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9884 break 2
9885 fi
9886done
81ecdfbb
RW
9887 done
9888IFS=$as_save_IFS
0c24b341
NC
9889
9890fi
9891fi
9892WINDMC=$ac_cv_prog_WINDMC
9893if test -n "$WINDMC"; then
81ecdfbb
RW
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9895$as_echo "$WINDMC" >&6; }
0c24b341 9896else
81ecdfbb
RW
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9898$as_echo "no" >&6; }
0c24b341
NC
9899fi
9900
81ecdfbb 9901
0c24b341
NC
9902 fi
9903 test -n "$ac_cv_prog_WINDMC" && break
9904done
9905
9906if test -z "$ac_cv_prog_WINDMC" ; then
9907 set dummy windmc
9908 if test $build = $host ; then
9909 WINDMC="$2"
9910 else
9911 WINDMC="${ncn_tool_prefix}$2"
9912 fi
9913fi
9914
9915
9916
9a819804
AO
9917if test -n "$OBJCOPY"; then
9918 ac_cv_prog_OBJCOPY=$OBJCOPY
9919elif test -n "$ac_cv_prog_OBJCOPY"; then
9920 OBJCOPY=$ac_cv_prog_OBJCOPY
9921fi
9922
9923if test -n "$ac_cv_prog_OBJCOPY"; then
9924 for ncn_progname in objcopy; do
9925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9926set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9928$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9929if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9930 $as_echo_n "(cached) " >&6
9a819804
AO
9931else
9932 if test -n "$OBJCOPY"; then
9933 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9934else
9935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936for as_dir in $PATH
9937do
9938 IFS=$as_save_IFS
9939 test -z "$as_dir" && as_dir=.
81ecdfbb 9940 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9942 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9944 break 2
9945 fi
9946done
81ecdfbb
RW
9947 done
9948IFS=$as_save_IFS
9a819804
AO
9949
9950fi
9951fi
9952OBJCOPY=$ac_cv_prog_OBJCOPY
9953if test -n "$OBJCOPY"; then
81ecdfbb
RW
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9955$as_echo "$OBJCOPY" >&6; }
9a819804 9956else
81ecdfbb
RW
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958$as_echo "no" >&6; }
9a819804
AO
9959fi
9960
81ecdfbb 9961
9a819804
AO
9962 done
9963fi
9964
9965for ncn_progname in objcopy; do
05cbd757
PB
9966 if test -n "$ncn_tool_prefix"; then
9967 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9968set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9970$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9971if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9972 $as_echo_n "(cached) " >&6
859789af
AC
9973else
9974 if test -n "$OBJCOPY"; then
9975 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9976else
c6b750e1
DJ
9977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9978for as_dir in $PATH
9979do
9980 IFS=$as_save_IFS
9981 test -z "$as_dir" && as_dir=.
81ecdfbb 9982 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9984 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9986 break 2
9987 fi
9988done
81ecdfbb
RW
9989 done
9990IFS=$as_save_IFS
c6b750e1 9991
859789af
AC
9992fi
9993fi
c6b750e1 9994OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9995if test -n "$OBJCOPY"; then
81ecdfbb
RW
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9997$as_echo "$OBJCOPY" >&6; }
859789af 9998else
81ecdfbb
RW
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10000$as_echo "no" >&6; }
859789af
AC
10001fi
10002
81ecdfbb 10003
05cbd757
PB
10004 fi
10005 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
10006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10007set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10009$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10010if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 10011 $as_echo_n "(cached) " >&6
859789af 10012else
05cbd757
PB
10013 if test -n "$OBJCOPY"; then
10014 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 10015else
c6b750e1
DJ
10016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10017for as_dir in $PATH
10018do
10019 IFS=$as_save_IFS
10020 test -z "$as_dir" && as_dir=.
81ecdfbb 10021 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10023 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 10024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10025 break 2
10026 fi
10027done
81ecdfbb
RW
10028 done
10029IFS=$as_save_IFS
c6b750e1 10030
859789af
AC
10031fi
10032fi
c6b750e1 10033OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 10034if test -n "$OBJCOPY"; then
81ecdfbb
RW
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10036$as_echo "$OBJCOPY" >&6; }
859789af 10037else
81ecdfbb
RW
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039$as_echo "no" >&6; }
859789af 10040fi
c6b750e1 10041
81ecdfbb 10042
05cbd757
PB
10043 fi
10044 test -n "$ac_cv_prog_OBJCOPY" && break
10045done
10046
10047if test -z "$ac_cv_prog_OBJCOPY" ; then
10048 set dummy objcopy
10049 if test $build = $host ; then
10050 OBJCOPY="$2"
859789af 10051 else
05cbd757 10052 OBJCOPY="${ncn_tool_prefix}$2"
859789af 10053 fi
859789af
AC
10054fi
10055
9a819804
AO
10056
10057
10058if test -n "$OBJDUMP"; then
10059 ac_cv_prog_OBJDUMP=$OBJDUMP
10060elif test -n "$ac_cv_prog_OBJDUMP"; then
10061 OBJDUMP=$ac_cv_prog_OBJDUMP
10062fi
10063
10064if test -n "$ac_cv_prog_OBJDUMP"; then
10065 for ncn_progname in objdump; do
10066 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10067set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10069$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10070if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 10071 $as_echo_n "(cached) " >&6
9a819804
AO
10072else
10073 if test -n "$OBJDUMP"; then
10074 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10075else
10076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10077for as_dir in $PATH
10078do
10079 IFS=$as_save_IFS
10080 test -z "$as_dir" && as_dir=.
81ecdfbb 10081 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10083 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 10084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10085 break 2
10086 fi
10087done
81ecdfbb
RW
10088 done
10089IFS=$as_save_IFS
9a819804
AO
10090
10091fi
10092fi
10093OBJDUMP=$ac_cv_prog_OBJDUMP
10094if test -n "$OBJDUMP"; then
81ecdfbb
RW
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10096$as_echo "$OBJDUMP" >&6; }
9a819804 10097else
81ecdfbb
RW
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10099$as_echo "no" >&6; }
9a819804
AO
10100fi
10101
81ecdfbb 10102
9a819804
AO
10103 done
10104fi
10105
10106for ncn_progname in objdump; do
05cbd757
PB
10107 if test -n "$ncn_tool_prefix"; then
10108 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10109set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10111$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10112if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 10113 $as_echo_n "(cached) " >&6
859789af
AC
10114else
10115 if test -n "$OBJDUMP"; then
10116 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10117else
c6b750e1
DJ
10118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10119for as_dir in $PATH
10120do
10121 IFS=$as_save_IFS
10122 test -z "$as_dir" && as_dir=.
81ecdfbb 10123 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10125 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 10126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10127 break 2
10128 fi
10129done
81ecdfbb
RW
10130 done
10131IFS=$as_save_IFS
c6b750e1 10132
859789af
AC
10133fi
10134fi
c6b750e1 10135OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 10136if test -n "$OBJDUMP"; then
81ecdfbb
RW
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10138$as_echo "$OBJDUMP" >&6; }
859789af 10139else
81ecdfbb
RW
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141$as_echo "no" >&6; }
859789af
AC
10142fi
10143
81ecdfbb 10144
05cbd757
PB
10145 fi
10146 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10147 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10148set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10150$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10151if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 10152 $as_echo_n "(cached) " >&6
859789af 10153else
05cbd757
PB
10154 if test -n "$OBJDUMP"; then
10155 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 10156else
c6b750e1
DJ
10157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10158for as_dir in $PATH
10159do
10160 IFS=$as_save_IFS
10161 test -z "$as_dir" && as_dir=.
81ecdfbb 10162 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10164 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 10165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10166 break 2
10167 fi
10168done
81ecdfbb
RW
10169 done
10170IFS=$as_save_IFS
c6b750e1 10171
859789af
AC
10172fi
10173fi
c6b750e1 10174OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 10175if test -n "$OBJDUMP"; then
81ecdfbb
RW
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10177$as_echo "$OBJDUMP" >&6; }
859789af 10178else
81ecdfbb
RW
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10180$as_echo "no" >&6; }
859789af 10181fi
c6b750e1 10182
81ecdfbb 10183
05cbd757
PB
10184 fi
10185 test -n "$ac_cv_prog_OBJDUMP" && break
10186done
10187
10188if test -z "$ac_cv_prog_OBJDUMP" ; then
10189 set dummy objdump
10190 if test $build = $host ; then
10191 OBJDUMP="$2"
859789af 10192 else
05cbd757 10193 OBJDUMP="${ncn_tool_prefix}$2"
859789af 10194 fi
859789af
AC
10195fi
10196
a0da8069
NN
10197
10198
b121d7d4
DD
10199if test -n "$READELF"; then
10200 ac_cv_prog_READELF=$READELF
10201elif test -n "$ac_cv_prog_READELF"; then
10202 READELF=$ac_cv_prog_READELF
10203fi
10204
10205if test -n "$ac_cv_prog_READELF"; then
10206 for ncn_progname in readelf; do
10207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10208set dummy ${ncn_progname}; ac_word=$2
10209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10210$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10211if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
10212 $as_echo_n "(cached) " >&6
10213else
10214 if test -n "$READELF"; then
10215 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10216else
10217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218for as_dir in $PATH
10219do
10220 IFS=$as_save_IFS
10221 test -z "$as_dir" && as_dir=.
10222 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
10224 ac_cv_prog_READELF="${ncn_progname}"
10225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10226 break 2
10227 fi
10228done
10229 done
10230IFS=$as_save_IFS
10231
10232fi
10233fi
10234READELF=$ac_cv_prog_READELF
10235if test -n "$READELF"; then
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10237$as_echo "$READELF" >&6; }
10238else
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240$as_echo "no" >&6; }
10241fi
10242
10243
10244 done
10245fi
10246
10247for ncn_progname in readelf; do
10248 if test -n "$ncn_tool_prefix"; then
10249 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10250set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10252$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10253if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
10254 $as_echo_n "(cached) " >&6
10255else
10256 if test -n "$READELF"; then
10257 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10258else
10259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10260for as_dir in $PATH
10261do
10262 IFS=$as_save_IFS
10263 test -z "$as_dir" && as_dir=.
10264 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
10266 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10268 break 2
10269 fi
10270done
10271 done
10272IFS=$as_save_IFS
10273
10274fi
10275fi
10276READELF=$ac_cv_prog_READELF
10277if test -n "$READELF"; then
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10279$as_echo "$READELF" >&6; }
10280else
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10282$as_echo "no" >&6; }
10283fi
10284
10285
10286 fi
10287 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10289set dummy ${ncn_progname}; ac_word=$2
10290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10291$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10292if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
10293 $as_echo_n "(cached) " >&6
10294else
10295 if test -n "$READELF"; then
10296 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10297else
10298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299for as_dir in $PATH
10300do
10301 IFS=$as_save_IFS
10302 test -z "$as_dir" && as_dir=.
10303 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
10305 ac_cv_prog_READELF="${ncn_progname}"
10306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10307 break 2
10308 fi
10309done
10310 done
10311IFS=$as_save_IFS
10312
10313fi
10314fi
10315READELF=$ac_cv_prog_READELF
10316if test -n "$READELF"; then
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10318$as_echo "$READELF" >&6; }
10319else
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321$as_echo "no" >&6; }
10322fi
10323
10324
10325 fi
10326 test -n "$ac_cv_prog_READELF" && break
10327done
10328
10329if test -z "$ac_cv_prog_READELF" ; then
10330 set dummy readelf
10331 if test $build = $host ; then
10332 READELF="$2"
10333 else
10334 READELF="${ncn_tool_prefix}$2"
10335 fi
10336fi
10337
10338
10339
a0da8069
NN
10340
10341
10342
de83289e 10343
50ad1254
L
10344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
10345$as_echo_n "checking for -plugin option... " >&6; }
10346
10347plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
10348plugin_option=
10349for plugin in $plugin_names; do
10350 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
10351 if test x$plugin_so = x$plugin; then
10352 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
10353 fi
10354 if test x$plugin_so != x$plugin; then
10355 plugin_option="--plugin $plugin_so"
10356 break
10357 fi
10358done
03c02f31
L
10359if test -n "$ac_tool_prefix"; then
10360 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10361set dummy ${ac_tool_prefix}ar; ac_word=$2
10362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363$as_echo_n "checking for $ac_word... " >&6; }
10364if ${ac_cv_prog_AR+:} false; then :
10365 $as_echo_n "(cached) " >&6
10366else
10367 if test -n "$AR"; then
10368 ac_cv_prog_AR="$AR" # Let the user override the test.
10369else
10370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371for as_dir in $PATH
10372do
10373 IFS=$as_save_IFS
10374 test -z "$as_dir" && as_dir=.
10375 for ac_exec_ext in '' $ac_executable_extensions; do
10376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10377 ac_cv_prog_AR="${ac_tool_prefix}ar"
10378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10379 break 2
10380 fi
10381done
10382 done
10383IFS=$as_save_IFS
10384
10385fi
10386fi
10387AR=$ac_cv_prog_AR
10388if test -n "$AR"; then
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10390$as_echo "$AR" >&6; }
10391else
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393$as_echo "no" >&6; }
10394fi
10395
10396
10397fi
10398if test -z "$ac_cv_prog_AR"; then
10399 ac_ct_AR=$AR
10400 # Extract the first word of "ar", so it can be a program name with args.
10401set dummy ar; ac_word=$2
10402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10403$as_echo_n "checking for $ac_word... " >&6; }
10404if ${ac_cv_prog_ac_ct_AR+:} false; then :
10405 $as_echo_n "(cached) " >&6
10406else
10407 if test -n "$ac_ct_AR"; then
10408 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10409else
10410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411for as_dir in $PATH
10412do
10413 IFS=$as_save_IFS
10414 test -z "$as_dir" && as_dir=.
10415 for ac_exec_ext in '' $ac_executable_extensions; do
10416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10417 ac_cv_prog_ac_ct_AR="ar"
10418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10419 break 2
10420 fi
10421done
10422 done
10423IFS=$as_save_IFS
10424
10425fi
10426fi
10427ac_ct_AR=$ac_cv_prog_ac_ct_AR
10428if test -n "$ac_ct_AR"; then
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10430$as_echo "$ac_ct_AR" >&6; }
10431else
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433$as_echo "no" >&6; }
10434fi
10435
10436 if test "x$ac_ct_AR" = x; then
10437 AR=""
10438 else
10439 case $cross_compiling:$ac_tool_warned in
10440yes:)
10441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10443ac_tool_warned=yes ;;
10444esac
10445 AR=$ac_ct_AR
10446 fi
10447else
10448 AR="$ac_cv_prog_AR"
10449fi
10450
10451if test "${AR}" = "" ; then
10452 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
10453fi
10454touch conftest.c
10455${AR} $plugin_option rc conftest.a conftest.c
10456if test "$?" != 0; then
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
10458$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
10459 plugin_option=
10460fi
10461rm -f conftest.*
50ad1254
L
10462if test -n "$plugin_option"; then
10463 PLUGIN_OPTION="$plugin_option"
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
10465$as_echo "$plugin_option" >&6; }
10466else
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10468$as_echo "no" >&6; }
10469fi
10470
10471AR_PLUGIN_OPTION=
10472RANLIB_PLUGIN_OPTION=
10473if test -n "$PLUGIN_OPTION"; then
10474 if $AR --help 2>&1 | grep -q "\--plugin"; then
10475 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
10476 fi
10477 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
10478 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
10479 fi
44124a46
L
10480else
10481 if test "$enable_pgo_build" != "no"; then
10482 as_fn_error $? "AR with --plugin and rc is required for LTO build" "$LINENO" 5
10483 fi
50ad1254
L
10484fi
10485
10486
10487
be01d343 10488# Target tools.
c6b750e1 10489
81ecdfbb
RW
10490# Check whether --with-build-time-tools was given.
10491if test "${with_build_time_tools+set}" = set; then :
10492 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
10493 x/*) ;;
10494 *)
10495 with_build_time_tools=
81ecdfbb
RW
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10497$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
10498 ;;
10499 esac
859789af 10500else
2429c060 10501 with_build_time_tools=
81ecdfbb
RW
10502fi
10503
859789af 10504
9a819804
AO
10505
10506
10507if test -n "$CC_FOR_TARGET"; then
10508 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10509elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10510 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10511fi
10512
10513if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10514 for ncn_progname in cc gcc; do
10515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10516set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10518$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10519if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10520 $as_echo_n "(cached) " >&6
9a819804
AO
10521else
10522 if test -n "$CC_FOR_TARGET"; then
10523 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10524else
10525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10526for as_dir in $PATH
10527do
10528 IFS=$as_save_IFS
10529 test -z "$as_dir" && as_dir=.
81ecdfbb 10530 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10532 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10534 break 2
10535 fi
10536done
81ecdfbb
RW
10537 done
10538IFS=$as_save_IFS
9a819804
AO
10539
10540fi
10541fi
10542CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10543if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10545$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 10546else
81ecdfbb
RW
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548$as_echo "no" >&6; }
9a819804
AO
10549fi
10550
81ecdfbb 10551
9a819804
AO
10552 done
10553fi
10554
10555if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10556 for ncn_progname in cc gcc; do
81ecdfbb
RW
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10558$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10559 if test -x $with_build_time_tools/${ncn_progname}; then
10560 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10562$as_echo "yes" >&6; }
cac3d6c4 10563 break
2429c060 10564 else
81ecdfbb
RW
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566$as_echo "no" >&6; }
cac3d6c4
CM
10567 fi
10568 done
55db4b87
PB
10569fi
10570
2429c060
PB
10571if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10572 for ncn_progname in cc gcc; do
10573 if test -n "$ncn_target_tool_prefix"; then
10574 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10575set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10577$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10578if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10579 $as_echo_n "(cached) " >&6
55db4b87
PB
10580else
10581 if test -n "$CC_FOR_TARGET"; then
10582 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10583else
c6b750e1
DJ
10584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585for as_dir in $PATH
10586do
10587 IFS=$as_save_IFS
10588 test -z "$as_dir" && as_dir=.
81ecdfbb 10589 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10591 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10593 break 2
10594 fi
10595done
81ecdfbb
RW
10596 done
10597IFS=$as_save_IFS
c6b750e1 10598
55db4b87
PB
10599fi
10600fi
c6b750e1 10601CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 10602if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10604$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10605else
81ecdfbb
RW
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607$as_echo "no" >&6; }
55db4b87
PB
10608fi
10609
81ecdfbb 10610
2429c060
PB
10611 fi
10612 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10614set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10616$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10617if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10618 $as_echo_n "(cached) " >&6
55db4b87 10619else
05cbd757
PB
10620 if test -n "$CC_FOR_TARGET"; then
10621 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 10622else
c6b750e1
DJ
10623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624for as_dir in $PATH
10625do
10626 IFS=$as_save_IFS
10627 test -z "$as_dir" && as_dir=.
81ecdfbb 10628 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10630 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10632 break 2
10633 fi
10634done
81ecdfbb
RW
10635 done
10636IFS=$as_save_IFS
c6b750e1 10637
55db4b87
PB
10638fi
10639fi
c6b750e1 10640CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 10641if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10643$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10644else
81ecdfbb
RW
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646$as_echo "no" >&6; }
55db4b87 10647fi
c6b750e1 10648
81ecdfbb 10649
2429c060
PB
10650 fi
10651 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10652 done
10653fi
c6b750e1 10654
05cbd757
PB
10655if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10656 set dummy cc gcc
10657 if test $build = $target ; then
10658 CC_FOR_TARGET="$2"
55db4b87 10659 else
05cbd757 10660 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10661 fi
d3f5afc4
MS
10662else
10663 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10664fi
10665
9a819804
AO
10666
10667
10668if test -n "$CXX_FOR_TARGET"; then
10669 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10670elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10671 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10672fi
10673
10674if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10675 for ncn_progname in c++ g++ cxx gxx; do
10676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10677set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10679$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10680if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10681 $as_echo_n "(cached) " >&6
9a819804
AO
10682else
10683 if test -n "$CXX_FOR_TARGET"; then
10684 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10685else
10686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10687for as_dir in $PATH
10688do
10689 IFS=$as_save_IFS
10690 test -z "$as_dir" && as_dir=.
81ecdfbb 10691 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10693 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10695 break 2
10696 fi
10697done
81ecdfbb
RW
10698 done
10699IFS=$as_save_IFS
9a819804
AO
10700
10701fi
10702fi
10703CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10704if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10706$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10707else
81ecdfbb
RW
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10709$as_echo "no" >&6; }
9a819804
AO
10710fi
10711
81ecdfbb 10712
9a819804
AO
10713 done
10714fi
10715
10716if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10717 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10719$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10720 if test -x $with_build_time_tools/${ncn_progname}; then
10721 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10723$as_echo "yes" >&6; }
2429c060
PB
10724 break
10725 else
81ecdfbb
RW
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727$as_echo "no" >&6; }
2429c060
PB
10728 fi
10729 done
10730fi
10731
10732if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10733 for ncn_progname in c++ g++ cxx gxx; do
10734 if test -n "$ncn_target_tool_prefix"; then
10735 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10736set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10738$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10739if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10740 $as_echo_n "(cached) " >&6
55db4b87
PB
10741else
10742 if test -n "$CXX_FOR_TARGET"; then
10743 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10744else
c6b750e1
DJ
10745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10746for as_dir in $PATH
10747do
10748 IFS=$as_save_IFS
10749 test -z "$as_dir" && as_dir=.
81ecdfbb 10750 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10752 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10754 break 2
10755 fi
10756done
81ecdfbb
RW
10757 done
10758IFS=$as_save_IFS
c6b750e1 10759
55db4b87
PB
10760fi
10761fi
c6b750e1 10762CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10763if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10765$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10766else
81ecdfbb
RW
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768$as_echo "no" >&6; }
55db4b87
PB
10769fi
10770
81ecdfbb 10771
2429c060
PB
10772 fi
10773 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10774 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10775set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10777$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10778if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10779 $as_echo_n "(cached) " >&6
55db4b87 10780else
05cbd757
PB
10781 if test -n "$CXX_FOR_TARGET"; then
10782 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10783else
c6b750e1
DJ
10784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10785for as_dir in $PATH
10786do
10787 IFS=$as_save_IFS
10788 test -z "$as_dir" && as_dir=.
81ecdfbb 10789 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10791 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10793 break 2
10794 fi
10795done
81ecdfbb
RW
10796 done
10797IFS=$as_save_IFS
c6b750e1 10798
55db4b87
PB
10799fi
10800fi
c6b750e1 10801CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10802if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10804$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10805else
81ecdfbb
RW
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10807$as_echo "no" >&6; }
55db4b87 10808fi
c6b750e1 10809
81ecdfbb 10810
2429c060
PB
10811 fi
10812 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10813 done
10814fi
c6b750e1 10815
05cbd757
PB
10816if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10817 set dummy c++ g++ cxx gxx
10818 if test $build = $target ; then
10819 CXX_FOR_TARGET="$2"
55db4b87 10820 else
05cbd757 10821 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10822 fi
d3f5afc4
MS
10823else
10824 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10825fi
10826
9a819804
AO
10827
10828
10829if test -n "$GCC_FOR_TARGET"; then
10830 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10831elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10832 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10833fi
10834
10835if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10836 for ncn_progname in gcc; do
10837 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10838set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10840$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10841if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10842 $as_echo_n "(cached) " >&6
9a819804
AO
10843else
10844 if test -n "$GCC_FOR_TARGET"; then
10845 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10846else
10847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10848for as_dir in $PATH
10849do
10850 IFS=$as_save_IFS
10851 test -z "$as_dir" && as_dir=.
81ecdfbb 10852 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10854 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10856 break 2
10857 fi
10858done
81ecdfbb
RW
10859 done
10860IFS=$as_save_IFS
9a819804
AO
10861
10862fi
10863fi
10864GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10865if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10867$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10868else
81ecdfbb
RW
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10870$as_echo "no" >&6; }
9a819804
AO
10871fi
10872
81ecdfbb 10873
9a819804
AO
10874 done
10875fi
10876
10877if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10878 for ncn_progname in gcc; do
81ecdfbb
RW
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10880$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10881 if test -x $with_build_time_tools/${ncn_progname}; then
10882 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10884$as_echo "yes" >&6; }
2429c060
PB
10885 break
10886 else
81ecdfbb
RW
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888$as_echo "no" >&6; }
2429c060
PB
10889 fi
10890 done
10891fi
10892
10893if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10894 for ncn_progname in gcc; do
10895 if test -n "$ncn_target_tool_prefix"; then
10896 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10897set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10899$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10900if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10901 $as_echo_n "(cached) " >&6
859789af 10902else
2429c060
PB
10903 if test -n "$GCC_FOR_TARGET"; then
10904 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10905else
c6b750e1
DJ
10906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10907for as_dir in $PATH
10908do
10909 IFS=$as_save_IFS
10910 test -z "$as_dir" && as_dir=.
81ecdfbb 10911 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10913 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10915 break 2
10916 fi
10917done
81ecdfbb
RW
10918 done
10919IFS=$as_save_IFS
c6b750e1 10920
55db4b87
PB
10921fi
10922fi
c6b750e1 10923GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10924if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10926$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10927else
81ecdfbb
RW
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929$as_echo "no" >&6; }
55db4b87
PB
10930fi
10931
81ecdfbb 10932
2429c060
PB
10933 fi
10934 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10936set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10938$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10939if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10940 $as_echo_n "(cached) " >&6
55db4b87 10941else
05cbd757
PB
10942 if test -n "$GCC_FOR_TARGET"; then
10943 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10944else
c6b750e1
DJ
10945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946for as_dir in $PATH
10947do
10948 IFS=$as_save_IFS
10949 test -z "$as_dir" && as_dir=.
81ecdfbb 10950 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10952 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10954 break 2
10955 fi
10956done
81ecdfbb
RW
10957 done
10958IFS=$as_save_IFS
c6b750e1 10959
55db4b87
PB
10960fi
10961fi
c6b750e1 10962GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10963if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10965$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10966else
81ecdfbb
RW
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968$as_echo "no" >&6; }
55db4b87 10969fi
c6b750e1 10970
81ecdfbb 10971
2429c060
PB
10972 fi
10973 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10974 done
10975fi
c6b750e1 10976
05cbd757
PB
10977if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10978 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10979else
10980 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10981fi
10982
9a819804
AO
10983
10984
9a819804
AO
10985if test -n "$GFORTRAN_FOR_TARGET"; then
10986 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10987elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10988 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10989fi
10990
9a819804
AO
10991if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10992 for ncn_progname in gfortran; do
10993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10994set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10996$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10997if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10998 $as_echo_n "(cached) " >&6
55db4b87 10999else
9a819804
AO
11000 if test -n "$GFORTRAN_FOR_TARGET"; then
11001 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 11002else
c6b750e1
DJ
11003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004for as_dir in $PATH
11005do
11006 IFS=$as_save_IFS
11007 test -z "$as_dir" && as_dir=.
81ecdfbb 11008 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11010 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 11011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11012 break 2
11013 fi
11014done
81ecdfbb
RW
11015 done
11016IFS=$as_save_IFS
c6b750e1 11017
55db4b87
PB
11018fi
11019fi
9a819804
AO
11020GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11021if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11023$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 11024else
81ecdfbb
RW
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11026$as_echo "no" >&6; }
55db4b87 11027fi
c6b750e1 11028
81ecdfbb 11029
2429c060
PB
11030 done
11031fi
c6b750e1 11032
9a819804 11033if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11034 for ncn_progname in gfortran; do
81ecdfbb
RW
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11036$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11037 if test -x $with_build_time_tools/${ncn_progname}; then
11038 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11040$as_echo "yes" >&6; }
2429c060
PB
11041 break
11042 else
81ecdfbb
RW
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044$as_echo "no" >&6; }
2429c060
PB
11045 fi
11046 done
11047fi
11048
11049if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
11050 for ncn_progname in gfortran; do
11051 if test -n "$ncn_target_tool_prefix"; then
11052 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11053set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11055$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11056if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 11057 $as_echo_n "(cached) " >&6
55db4b87
PB
11058else
11059 if test -n "$GFORTRAN_FOR_TARGET"; then
11060 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11061else
c6b750e1
DJ
11062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11063for as_dir in $PATH
11064do
11065 IFS=$as_save_IFS
11066 test -z "$as_dir" && as_dir=.
81ecdfbb 11067 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11069 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11071 break 2
11072 fi
11073done
81ecdfbb
RW
11074 done
11075IFS=$as_save_IFS
c6b750e1 11076
55db4b87
PB
11077fi
11078fi
c6b750e1 11079GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 11080if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11082$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 11083else
81ecdfbb
RW
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11085$as_echo "no" >&6; }
55db4b87
PB
11086fi
11087
81ecdfbb 11088
2429c060
PB
11089 fi
11090 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11092set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11094$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11095if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 11096 $as_echo_n "(cached) " >&6
55db4b87 11097else
05cbd757 11098 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
11099 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11100else
11101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11102for as_dir in $PATH
11103do
11104 IFS=$as_save_IFS
11105 test -z "$as_dir" && as_dir=.
81ecdfbb 11106 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11108 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 11109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11110 break 2
11111 fi
11112done
81ecdfbb
RW
11113 done
11114IFS=$as_save_IFS
c6b750e1 11115
55db4b87
PB
11116fi
11117fi
c6b750e1 11118GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 11119if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11121$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 11122else
81ecdfbb
RW
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11124$as_echo "no" >&6; }
55db4b87 11125fi
c6b750e1 11126
81ecdfbb 11127
2429c060
PB
11128 fi
11129 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11130 done
11131fi
c6b750e1 11132
05cbd757
PB
11133if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11134 set dummy gfortran
11135 if test $build = $target ; then
11136 GFORTRAN_FOR_TARGET="$2"
55db4b87 11137 else
05cbd757 11138 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 11139 fi
d3f5afc4
MS
11140else
11141 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
11142fi
11143
2429c060
PB
11144
11145
e552509b
ILT
11146if test -n "$GOC_FOR_TARGET"; then
11147 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
11148elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11149 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11150fi
11151
11152if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11153 for ncn_progname in gccgo; do
11154 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11155set dummy ${ncn_progname}; ac_word=$2
11156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11157$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11158if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
11159 $as_echo_n "(cached) " >&6
11160else
11161 if test -n "$GOC_FOR_TARGET"; then
11162 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11163else
11164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165for as_dir in $PATH
11166do
11167 IFS=$as_save_IFS
11168 test -z "$as_dir" && as_dir=.
11169 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
11171 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11173 break 2
11174 fi
11175done
11176 done
11177IFS=$as_save_IFS
11178
11179fi
11180fi
11181GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11182if test -n "$GOC_FOR_TARGET"; then
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11184$as_echo "$GOC_FOR_TARGET" >&6; }
11185else
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187$as_echo "no" >&6; }
11188fi
11189
11190
11191 done
11192fi
11193
11194if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11195 for ncn_progname in gccgo; do
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11197$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11198 if test -x $with_build_time_tools/${ncn_progname}; then
11199 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11201$as_echo "yes" >&6; }
11202 break
11203 else
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11205$as_echo "no" >&6; }
11206 fi
11207 done
11208fi
11209
11210if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
11211 for ncn_progname in gccgo; do
11212 if test -n "$ncn_target_tool_prefix"; then
11213 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11214set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11216$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11217if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
11218 $as_echo_n "(cached) " >&6
11219else
11220 if test -n "$GOC_FOR_TARGET"; then
11221 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11222else
11223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224for as_dir in $PATH
11225do
11226 IFS=$as_save_IFS
11227 test -z "$as_dir" && as_dir=.
11228 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
11230 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11232 break 2
11233 fi
11234done
11235 done
11236IFS=$as_save_IFS
11237
11238fi
11239fi
11240GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11241if test -n "$GOC_FOR_TARGET"; then
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11243$as_echo "$GOC_FOR_TARGET" >&6; }
11244else
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246$as_echo "no" >&6; }
11247fi
11248
11249
11250 fi
11251 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11253set dummy ${ncn_progname}; ac_word=$2
11254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11255$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11256if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
11257 $as_echo_n "(cached) " >&6
11258else
11259 if test -n "$GOC_FOR_TARGET"; then
11260 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11261else
11262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11263for as_dir in $PATH
11264do
11265 IFS=$as_save_IFS
11266 test -z "$as_dir" && as_dir=.
11267 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
11269 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11271 break 2
11272 fi
11273done
11274 done
11275IFS=$as_save_IFS
11276
11277fi
11278fi
11279GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11280if test -n "$GOC_FOR_TARGET"; then
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11282$as_echo "$GOC_FOR_TARGET" >&6; }
11283else
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285$as_echo "no" >&6; }
11286fi
11287
11288
11289 fi
11290 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11291 done
11292fi
11293
11294if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11295 set dummy gccgo
11296 if test $build = $target ; then
11297 GOC_FOR_TARGET="$2"
11298 else
11299 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11300 fi
11301else
11302 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11303fi
11304
11305
11306
2429c060
PB
11307cat > conftest.c << \EOF
11308#ifdef __GNUC__
11309 gcc_yay;
11310#endif
11311EOF
11312if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11313 have_gcc_for_target=yes
859789af 11314else
2429c060
PB
11315 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11316 have_gcc_for_target=no
859789af 11317fi
2429c060
PB
11318rm conftest.c
11319
11320
11321
859789af 11322
2429c060
PB
11323if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11324 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11326$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11327 if test -x $with_build_time_tools/ar; then
11328 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11329 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11331$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 11332 else
81ecdfbb
RW
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11334$as_echo "no" >&6; }
3a35eeb3 11335 fi
2429c060
PB
11336 elif test $build != $host && test $have_gcc_for_target = yes; then
11337 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
11338 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11339 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 11340 fi
2429c060 11341fi
c6b750e1 11342if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11343 # Extract the first word of "ar", so it can be a program name with args.
11344set dummy ar; ac_word=$2
81ecdfbb
RW
11345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11346$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11347if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
81ecdfbb 11348 $as_echo_n "(cached) " >&6
859789af 11349else
c6b750e1
DJ
11350 case $AR_FOR_TARGET in
11351 [\\/]* | ?:[\\/]*)
2429c060
PB
11352 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11353 ;;
2429c060 11354 *)
c6b750e1
DJ
11355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11356for as_dir in $gcc_cv_tool_dirs
11357do
11358 IFS=$as_save_IFS
11359 test -z "$as_dir" && as_dir=.
81ecdfbb 11360 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11362 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11364 break 2
11365 fi
11366done
81ecdfbb
RW
11367 done
11368IFS=$as_save_IFS
c6b750e1 11369
2429c060
PB
11370 ;;
11371esac
859789af 11372fi
c6b750e1 11373AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 11374if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11376$as_echo "$AR_FOR_TARGET" >&6; }
859789af 11377else
81ecdfbb
RW
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379$as_echo "no" >&6; }
859789af 11380fi
05cbd757 11381
81ecdfbb 11382
2429c060
PB
11383fi
11384if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
11385
11386
11387if test -n "$AR_FOR_TARGET"; then
11388 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11389elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11390 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11391fi
11392
11393if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11394 for ncn_progname in ar; do
11395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11396set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11398$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11399if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 11400 $as_echo_n "(cached) " >&6
9a819804
AO
11401else
11402 if test -n "$AR_FOR_TARGET"; then
11403 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11404else
11405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406for as_dir in $PATH
11407do
11408 IFS=$as_save_IFS
11409 test -z "$as_dir" && as_dir=.
81ecdfbb 11410 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11412 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11414 break 2
11415 fi
11416done
81ecdfbb
RW
11417 done
11418IFS=$as_save_IFS
9a819804
AO
11419
11420fi
11421fi
11422AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11423if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11425$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 11426else
81ecdfbb
RW
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428$as_echo "no" >&6; }
9a819804
AO
11429fi
11430
81ecdfbb 11431
9a819804
AO
11432 done
11433fi
11434
11435if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11436 for ncn_progname in ar; do
81ecdfbb
RW
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11438$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11439 if test -x $with_build_time_tools/${ncn_progname}; then
11440 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11442$as_echo "yes" >&6; }
2429c060
PB
11443 break
11444 else
81ecdfbb
RW
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11446$as_echo "no" >&6; }
2429c060
PB
11447 fi
11448 done
859789af
AC
11449fi
11450
2429c060
PB
11451if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11452 for ncn_progname in ar; do
11453 if test -n "$ncn_target_tool_prefix"; then
11454 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11455set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11457$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11458if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 11459 $as_echo_n "(cached) " >&6
7e0f7140 11460else
2429c060
PB
11461 if test -n "$AR_FOR_TARGET"; then
11462 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 11463else
c6b750e1
DJ
11464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465for as_dir in $PATH
11466do
11467 IFS=$as_save_IFS
11468 test -z "$as_dir" && as_dir=.
81ecdfbb 11469 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11471 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11473 break 2
11474 fi
11475done
81ecdfbb
RW
11476 done
11477IFS=$as_save_IFS
c6b750e1 11478
7e0f7140
GK
11479fi
11480fi
c6b750e1 11481AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11482if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11484$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11485else
81ecdfbb
RW
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487$as_echo "no" >&6; }
7e0f7140
GK
11488fi
11489
81ecdfbb 11490
2429c060
PB
11491 fi
11492 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11494set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11496$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11497if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 11498 $as_echo_n "(cached) " >&6
7e0f7140 11499else
2429c060
PB
11500 if test -n "$AR_FOR_TARGET"; then
11501 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 11502else
c6b750e1
DJ
11503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504for as_dir in $PATH
11505do
11506 IFS=$as_save_IFS
11507 test -z "$as_dir" && as_dir=.
81ecdfbb 11508 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11510 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11512 break 2
11513 fi
11514done
81ecdfbb
RW
11515 done
11516IFS=$as_save_IFS
c6b750e1 11517
7e0f7140
GK
11518fi
11519fi
c6b750e1 11520AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11521if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11523$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11524else
81ecdfbb
RW
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526$as_echo "no" >&6; }
7e0f7140 11527fi
c6b750e1 11528
81ecdfbb 11529
2429c060
PB
11530 fi
11531 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11532 done
11533fi
c6b750e1 11534
2429c060
PB
11535if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11536 set dummy ar
7e0f7140 11537 if test $build = $target ; then
2429c060 11538 AR_FOR_TARGET="$2"
7e0f7140 11539 else
2429c060 11540 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 11541 fi
d3f5afc4
MS
11542else
11543 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
11544fi
11545
3a35eeb3
PB
11546else
11547 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
11548fi
11549
11550
11551
11552
11553if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11554 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11556$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11557 if test -x $with_build_time_tools/as; then
11558 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11559 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11561$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11562 else
81ecdfbb
RW
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11564$as_echo "no" >&6; }
3a35eeb3 11565 fi
2429c060
PB
11566 elif test $build != $host && test $have_gcc_for_target = yes; then
11567 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11568 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11569 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11570 fi
11571fi
c6b750e1 11572if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11573 # Extract the first word of "as", so it can be a program name with args.
11574set dummy as; ac_word=$2
81ecdfbb
RW
11575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11576$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11577if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
81ecdfbb 11578 $as_echo_n "(cached) " >&6
2429c060 11579else
c6b750e1
DJ
11580 case $AS_FOR_TARGET in
11581 [\\/]* | ?:[\\/]*)
2429c060
PB
11582 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11583 ;;
2429c060 11584 *)
c6b750e1
DJ
11585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11586for as_dir in $gcc_cv_tool_dirs
11587do
11588 IFS=$as_save_IFS
11589 test -z "$as_dir" && as_dir=.
81ecdfbb 11590 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11592 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11594 break 2
11595 fi
11596done
81ecdfbb
RW
11597 done
11598IFS=$as_save_IFS
c6b750e1 11599
2429c060
PB
11600 ;;
11601esac
11602fi
c6b750e1 11603AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11604if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11606$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11607else
81ecdfbb
RW
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609$as_echo "no" >&6; }
2429c060
PB
11610fi
11611
81ecdfbb 11612
2429c060
PB
11613fi
11614if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11615
11616
11617if test -n "$AS_FOR_TARGET"; then
11618 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11619elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11620 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11621fi
11622
11623if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11624 for ncn_progname in as; do
11625 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11626set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11629if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11630 $as_echo_n "(cached) " >&6
9a819804
AO
11631else
11632 if test -n "$AS_FOR_TARGET"; then
11633 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11634else
11635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636for as_dir in $PATH
11637do
11638 IFS=$as_save_IFS
11639 test -z "$as_dir" && as_dir=.
81ecdfbb 11640 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11642 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11644 break 2
11645 fi
11646done
81ecdfbb
RW
11647 done
11648IFS=$as_save_IFS
9a819804
AO
11649
11650fi
11651fi
11652AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11653if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11655$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11656else
81ecdfbb
RW
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658$as_echo "no" >&6; }
9a819804
AO
11659fi
11660
81ecdfbb 11661
9a819804
AO
11662 done
11663fi
11664
11665if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11666 for ncn_progname in as; do
81ecdfbb
RW
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11668$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11669 if test -x $with_build_time_tools/${ncn_progname}; then
11670 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11672$as_echo "yes" >&6; }
2429c060
PB
11673 break
11674 else
81ecdfbb
RW
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11676$as_echo "no" >&6; }
2429c060
PB
11677 fi
11678 done
11679fi
11680
11681if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11682 for ncn_progname in as; do
11683 if test -n "$ncn_target_tool_prefix"; then
11684 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11685set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11687$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11688if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11689 $as_echo_n "(cached) " >&6
2429c060
PB
11690else
11691 if test -n "$AS_FOR_TARGET"; then
11692 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11693else
c6b750e1
DJ
11694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11695for as_dir in $PATH
11696do
11697 IFS=$as_save_IFS
11698 test -z "$as_dir" && as_dir=.
81ecdfbb 11699 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11701 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11703 break 2
11704 fi
11705done
81ecdfbb
RW
11706 done
11707IFS=$as_save_IFS
c6b750e1 11708
2429c060
PB
11709fi
11710fi
c6b750e1 11711AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11712if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11714$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11715else
81ecdfbb
RW
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717$as_echo "no" >&6; }
2429c060
PB
11718fi
11719
81ecdfbb 11720
2429c060
PB
11721 fi
11722 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11724set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11726$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11727if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11728 $as_echo_n "(cached) " >&6
2429c060
PB
11729else
11730 if test -n "$AS_FOR_TARGET"; then
11731 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11732else
c6b750e1
DJ
11733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734for as_dir in $PATH
11735do
11736 IFS=$as_save_IFS
11737 test -z "$as_dir" && as_dir=.
81ecdfbb 11738 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11740 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11742 break 2
11743 fi
11744done
81ecdfbb
RW
11745 done
11746IFS=$as_save_IFS
c6b750e1 11747
2429c060
PB
11748fi
11749fi
c6b750e1 11750AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11751if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11753$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11754else
81ecdfbb
RW
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756$as_echo "no" >&6; }
2429c060 11757fi
c6b750e1 11758
81ecdfbb 11759
2429c060
PB
11760 fi
11761 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11762 done
11763fi
c6b750e1 11764
2429c060
PB
11765if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11766 set dummy as
11767 if test $build = $target ; then
11768 AS_FOR_TARGET="$2"
11769 else
11770 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11771 fi
d3f5afc4
MS
11772else
11773 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11774fi
11775
3a35eeb3
PB
11776else
11777 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11778fi
11779
11780
11781
11782
11783if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11784 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11786$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11787 if test -x $with_build_time_tools/dlltool; then
11788 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11789 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11791$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11792 else
81ecdfbb
RW
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794$as_echo "no" >&6; }
3a35eeb3 11795 fi
2429c060
PB
11796 elif test $build != $host && test $have_gcc_for_target = yes; then
11797 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11798 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11799 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11800 fi
11801fi
c6b750e1 11802if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11803 # Extract the first word of "dlltool", so it can be a program name with args.
11804set dummy dlltool; ac_word=$2
81ecdfbb
RW
11805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11806$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11807if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11808 $as_echo_n "(cached) " >&6
2429c060 11809else
c6b750e1
DJ
11810 case $DLLTOOL_FOR_TARGET in
11811 [\\/]* | ?:[\\/]*)
2429c060
PB
11812 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11813 ;;
2429c060 11814 *)
c6b750e1
DJ
11815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816for as_dir in $gcc_cv_tool_dirs
11817do
11818 IFS=$as_save_IFS
11819 test -z "$as_dir" && as_dir=.
81ecdfbb 11820 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11822 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11824 break 2
11825 fi
11826done
81ecdfbb
RW
11827 done
11828IFS=$as_save_IFS
c6b750e1 11829
2429c060
PB
11830 ;;
11831esac
11832fi
c6b750e1 11833DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11834if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11836$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11837else
81ecdfbb
RW
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839$as_echo "no" >&6; }
2429c060
PB
11840fi
11841
81ecdfbb 11842
2429c060
PB
11843fi
11844if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11845
11846
11847if test -n "$DLLTOOL_FOR_TARGET"; then
11848 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11849elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11850 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11851fi
11852
11853if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11854 for ncn_progname in dlltool; do
11855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11856set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11859if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11860 $as_echo_n "(cached) " >&6
9a819804
AO
11861else
11862 if test -n "$DLLTOOL_FOR_TARGET"; then
11863 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11864else
11865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866for as_dir in $PATH
11867do
11868 IFS=$as_save_IFS
11869 test -z "$as_dir" && as_dir=.
81ecdfbb 11870 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11872 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11874 break 2
11875 fi
11876done
81ecdfbb
RW
11877 done
11878IFS=$as_save_IFS
9a819804
AO
11879
11880fi
11881fi
11882DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11883if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11885$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11886else
81ecdfbb
RW
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888$as_echo "no" >&6; }
9a819804
AO
11889fi
11890
81ecdfbb 11891
9a819804
AO
11892 done
11893fi
11894
11895if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11896 for ncn_progname in dlltool; do
81ecdfbb
RW
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11898$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11899 if test -x $with_build_time_tools/${ncn_progname}; then
11900 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11902$as_echo "yes" >&6; }
2429c060
PB
11903 break
11904 else
81ecdfbb
RW
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906$as_echo "no" >&6; }
2429c060
PB
11907 fi
11908 done
11909fi
11910
11911if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11912 for ncn_progname in dlltool; do
11913 if test -n "$ncn_target_tool_prefix"; then
11914 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11915set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11917$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11918if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11919 $as_echo_n "(cached) " >&6
2429c060
PB
11920else
11921 if test -n "$DLLTOOL_FOR_TARGET"; then
11922 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11923else
c6b750e1
DJ
11924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925for as_dir in $PATH
11926do
11927 IFS=$as_save_IFS
11928 test -z "$as_dir" && as_dir=.
81ecdfbb 11929 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11931 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11933 break 2
11934 fi
11935done
81ecdfbb
RW
11936 done
11937IFS=$as_save_IFS
c6b750e1 11938
2429c060
PB
11939fi
11940fi
c6b750e1 11941DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11942if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11944$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11945else
81ecdfbb
RW
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947$as_echo "no" >&6; }
2429c060
PB
11948fi
11949
81ecdfbb 11950
2429c060
PB
11951 fi
11952 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11953 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11954set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11957if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11958 $as_echo_n "(cached) " >&6
2429c060
PB
11959else
11960 if test -n "$DLLTOOL_FOR_TARGET"; then
11961 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11962else
c6b750e1
DJ
11963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964for as_dir in $PATH
11965do
11966 IFS=$as_save_IFS
11967 test -z "$as_dir" && as_dir=.
81ecdfbb 11968 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11970 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11972 break 2
11973 fi
11974done
81ecdfbb
RW
11975 done
11976IFS=$as_save_IFS
c6b750e1 11977
2429c060
PB
11978fi
11979fi
c6b750e1 11980DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11981if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11983$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11984else
81ecdfbb
RW
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986$as_echo "no" >&6; }
2429c060 11987fi
c6b750e1 11988
81ecdfbb 11989
2429c060
PB
11990 fi
11991 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11992 done
11993fi
c6b750e1 11994
2429c060
PB
11995if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11996 set dummy dlltool
11997 if test $build = $target ; then
11998 DLLTOOL_FOR_TARGET="$2"
11999 else
12000 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
12001 fi
d3f5afc4
MS
12002else
12003 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
12004fi
12005
3a35eeb3
PB
12006else
12007 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
12008fi
12009
12010
12011
12012
12013if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12014 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
12016$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12017 if test -x $with_build_time_tools/ld; then
12018 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
12019 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
12021$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 12022 else
81ecdfbb
RW
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024$as_echo "no" >&6; }
3a35eeb3 12025 fi
2429c060
PB
12026 elif test $build != $host && test $have_gcc_for_target = yes; then
12027 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
12028 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
12029 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
12030 fi
12031fi
c6b750e1 12032if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12033 # Extract the first word of "ld", so it can be a program name with args.
12034set dummy ld; ac_word=$2
81ecdfbb
RW
12035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12036$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12037if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
81ecdfbb 12038 $as_echo_n "(cached) " >&6
2429c060 12039else
c6b750e1
DJ
12040 case $LD_FOR_TARGET in
12041 [\\/]* | ?:[\\/]*)
2429c060
PB
12042 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
12043 ;;
2429c060 12044 *)
c6b750e1
DJ
12045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046for as_dir in $gcc_cv_tool_dirs
12047do
12048 IFS=$as_save_IFS
12049 test -z "$as_dir" && as_dir=.
81ecdfbb 12050 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12052 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12054 break 2
12055 fi
12056done
81ecdfbb
RW
12057 done
12058IFS=$as_save_IFS
c6b750e1 12059
2429c060
PB
12060 ;;
12061esac
12062fi
c6b750e1 12063LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 12064if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12066$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 12067else
81ecdfbb
RW
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12069$as_echo "no" >&6; }
2429c060
PB
12070fi
12071
81ecdfbb 12072
2429c060
PB
12073fi
12074if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
12075
12076
12077if test -n "$LD_FOR_TARGET"; then
12078 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
12079elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12080 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12081fi
12082
12083if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12084 for ncn_progname in ld; do
12085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12086set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12089if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 12090 $as_echo_n "(cached) " >&6
9a819804
AO
12091else
12092 if test -n "$LD_FOR_TARGET"; then
12093 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12094else
12095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096for as_dir in $PATH
12097do
12098 IFS=$as_save_IFS
12099 test -z "$as_dir" && as_dir=.
81ecdfbb 12100 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12102 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12104 break 2
12105 fi
12106done
81ecdfbb
RW
12107 done
12108IFS=$as_save_IFS
9a819804
AO
12109
12110fi
12111fi
12112LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12113if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12115$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 12116else
81ecdfbb
RW
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118$as_echo "no" >&6; }
9a819804
AO
12119fi
12120
81ecdfbb 12121
9a819804
AO
12122 done
12123fi
12124
12125if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12126 for ncn_progname in ld; do
81ecdfbb
RW
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12128$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12129 if test -x $with_build_time_tools/${ncn_progname}; then
12130 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12132$as_echo "yes" >&6; }
2429c060
PB
12133 break
12134 else
81ecdfbb
RW
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136$as_echo "no" >&6; }
2429c060
PB
12137 fi
12138 done
12139fi
12140
12141if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12142 for ncn_progname in ld; do
12143 if test -n "$ncn_target_tool_prefix"; then
12144 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12145set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12147$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12148if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 12149 $as_echo_n "(cached) " >&6
2429c060
PB
12150else
12151 if test -n "$LD_FOR_TARGET"; then
12152 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12153else
c6b750e1
DJ
12154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12155for as_dir in $PATH
12156do
12157 IFS=$as_save_IFS
12158 test -z "$as_dir" && as_dir=.
81ecdfbb 12159 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12161 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12163 break 2
12164 fi
12165done
81ecdfbb
RW
12166 done
12167IFS=$as_save_IFS
c6b750e1 12168
2429c060
PB
12169fi
12170fi
c6b750e1 12171LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 12172if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12174$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 12175else
81ecdfbb
RW
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12177$as_echo "no" >&6; }
2429c060
PB
12178fi
12179
81ecdfbb 12180
2429c060
PB
12181 fi
12182 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12184set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12186$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12187if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 12188 $as_echo_n "(cached) " >&6
2429c060
PB
12189else
12190 if test -n "$LD_FOR_TARGET"; then
12191 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12192else
c6b750e1
DJ
12193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194for as_dir in $PATH
12195do
12196 IFS=$as_save_IFS
12197 test -z "$as_dir" && as_dir=.
81ecdfbb 12198 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12200 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 12201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12202 break 2
12203 fi
12204done
81ecdfbb
RW
12205 done
12206IFS=$as_save_IFS
c6b750e1 12207
2429c060
PB
12208fi
12209fi
c6b750e1 12210LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 12211if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12213$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 12214else
81ecdfbb
RW
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216$as_echo "no" >&6; }
2429c060 12217fi
c6b750e1 12218
81ecdfbb 12219
2429c060
PB
12220 fi
12221 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12222 done
12223fi
c6b750e1 12224
2429c060
PB
12225if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12226 set dummy ld
12227 if test $build = $target ; then
12228 LD_FOR_TARGET="$2"
12229 else
12230 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12231 fi
d3f5afc4
MS
12232else
12233 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
12234fi
12235
3a35eeb3
PB
12236else
12237 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
12238fi
12239
12240
12241
12242
12243if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12244 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12246$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12247 if test -x $with_build_time_tools/lipo; then
12248 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12249 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12251$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 12252 else
81ecdfbb
RW
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254$as_echo "no" >&6; }
3a35eeb3 12255 fi
2429c060
PB
12256 elif test $build != $host && test $have_gcc_for_target = yes; then
12257 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
12258 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12259 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
12260 fi
12261fi
9a819804
AO
12262if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12263 # Extract the first word of "lipo", so it can be a program name with args.
12264set dummy lipo; ac_word=$2
81ecdfbb
RW
12265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12266$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12267if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12268 $as_echo_n "(cached) " >&6
9a819804
AO
12269else
12270 case $LIPO_FOR_TARGET in
12271 [\\/]* | ?:[\\/]*)
12272 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12273 ;;
12274 *)
12275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12276for as_dir in $gcc_cv_tool_dirs
12277do
12278 IFS=$as_save_IFS
12279 test -z "$as_dir" && as_dir=.
81ecdfbb 12280 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12282 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12284 break 2
12285 fi
12286done
81ecdfbb
RW
12287 done
12288IFS=$as_save_IFS
9a819804
AO
12289
12290 ;;
12291esac
12292fi
12293LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 12294if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12296$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 12297else
81ecdfbb
RW
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299$as_echo "no" >&6; }
9a819804
AO
12300fi
12301
81ecdfbb 12302
9a819804
AO
12303fi
12304if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12305
12306
12307if test -n "$LIPO_FOR_TARGET"; then
12308 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12309elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12310 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12311fi
12312
12313if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12314 for ncn_progname in lipo; do
12315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12316set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12319if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12320 $as_echo_n "(cached) " >&6
2429c060 12321else
9a819804
AO
12322 if test -n "$LIPO_FOR_TARGET"; then
12323 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12324else
12325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326for as_dir in $PATH
c6b750e1
DJ
12327do
12328 IFS=$as_save_IFS
12329 test -z "$as_dir" && as_dir=.
81ecdfbb 12330 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12332 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 12333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12334 break 2
12335 fi
12336done
81ecdfbb
RW
12337 done
12338IFS=$as_save_IFS
c6b750e1 12339
2429c060 12340fi
9a819804
AO
12341fi
12342LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12343if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12345$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12346else
81ecdfbb
RW
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348$as_echo "no" >&6; }
2429c060
PB
12349fi
12350
81ecdfbb 12351
9a819804 12352 done
2429c060 12353fi
9a819804
AO
12354
12355if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12356 for ncn_progname in lipo; do
81ecdfbb
RW
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12358$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12359 if test -x $with_build_time_tools/${ncn_progname}; then
12360 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12362$as_echo "yes" >&6; }
2429c060
PB
12363 break
12364 else
81ecdfbb
RW
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366$as_echo "no" >&6; }
2429c060
PB
12367 fi
12368 done
12369fi
12370
12371if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12372 for ncn_progname in lipo; do
12373 if test -n "$ncn_target_tool_prefix"; then
12374 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12375set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12377$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12378if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12379 $as_echo_n "(cached) " >&6
2429c060
PB
12380else
12381 if test -n "$LIPO_FOR_TARGET"; then
12382 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12383else
c6b750e1
DJ
12384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12385for as_dir in $PATH
12386do
12387 IFS=$as_save_IFS
12388 test -z "$as_dir" && as_dir=.
81ecdfbb 12389 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12391 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12393 break 2
12394 fi
12395done
81ecdfbb
RW
12396 done
12397IFS=$as_save_IFS
c6b750e1 12398
2429c060
PB
12399fi
12400fi
c6b750e1 12401LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12402if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12404$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12405else
81ecdfbb
RW
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12407$as_echo "no" >&6; }
2429c060
PB
12408fi
12409
81ecdfbb 12410
2429c060
PB
12411 fi
12412 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12413 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12414set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12416$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12417if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12418 $as_echo_n "(cached) " >&6
2429c060
PB
12419else
12420 if test -n "$LIPO_FOR_TARGET"; then
12421 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12422else
c6b750e1
DJ
12423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12424for as_dir in $PATH
12425do
12426 IFS=$as_save_IFS
12427 test -z "$as_dir" && as_dir=.
81ecdfbb 12428 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12430 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 12431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12432 break 2
12433 fi
12434done
81ecdfbb
RW
12435 done
12436IFS=$as_save_IFS
c6b750e1 12437
2429c060
PB
12438fi
12439fi
c6b750e1 12440LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12441if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12443$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12444else
81ecdfbb
RW
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446$as_echo "no" >&6; }
2429c060 12447fi
c6b750e1 12448
81ecdfbb 12449
2429c060
PB
12450 fi
12451 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12452 done
12453fi
c6b750e1 12454
2429c060
PB
12455if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12456 set dummy lipo
12457 if test $build = $target ; then
12458 LIPO_FOR_TARGET="$2"
12459 else
12460 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12461 fi
d3f5afc4
MS
12462else
12463 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
12464fi
12465
3a35eeb3
PB
12466else
12467 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
12468fi
12469
12470
12471
12472
12473if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12474 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12476$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12477 if test -x $with_build_time_tools/nm; then
12478 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12479 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12481$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 12482 else
81ecdfbb
RW
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12484$as_echo "no" >&6; }
3a35eeb3 12485 fi
2429c060
PB
12486 elif test $build != $host && test $have_gcc_for_target = yes; then
12487 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
12488 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12489 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
12490 fi
12491fi
c6b750e1 12492if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12493 # Extract the first word of "nm", so it can be a program name with args.
12494set dummy nm; ac_word=$2
81ecdfbb
RW
12495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12496$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12497if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
81ecdfbb 12498 $as_echo_n "(cached) " >&6
2429c060 12499else
c6b750e1
DJ
12500 case $NM_FOR_TARGET in
12501 [\\/]* | ?:[\\/]*)
2429c060
PB
12502 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12503 ;;
2429c060 12504 *)
c6b750e1
DJ
12505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12506for as_dir in $gcc_cv_tool_dirs
12507do
12508 IFS=$as_save_IFS
12509 test -z "$as_dir" && as_dir=.
81ecdfbb 12510 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12512 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12514 break 2
12515 fi
12516done
81ecdfbb
RW
12517 done
12518IFS=$as_save_IFS
c6b750e1 12519
2429c060
PB
12520 ;;
12521esac
12522fi
c6b750e1 12523NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 12524if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12526$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 12527else
81ecdfbb
RW
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529$as_echo "no" >&6; }
2429c060
PB
12530fi
12531
81ecdfbb 12532
2429c060
PB
12533fi
12534if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
12535
12536
12537if test -n "$NM_FOR_TARGET"; then
12538 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12539elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12540 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12541fi
12542
12543if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12544 for ncn_progname in nm; do
12545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12546set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12549if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12550 $as_echo_n "(cached) " >&6
9a819804
AO
12551else
12552 if test -n "$NM_FOR_TARGET"; then
12553 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12554else
12555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556for as_dir in $PATH
12557do
12558 IFS=$as_save_IFS
12559 test -z "$as_dir" && as_dir=.
81ecdfbb 12560 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12562 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12564 break 2
12565 fi
12566done
81ecdfbb
RW
12567 done
12568IFS=$as_save_IFS
9a819804
AO
12569
12570fi
12571fi
12572NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12573if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12575$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12576else
81ecdfbb
RW
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578$as_echo "no" >&6; }
9a819804
AO
12579fi
12580
81ecdfbb 12581
9a819804
AO
12582 done
12583fi
12584
12585if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12586 for ncn_progname in nm; do
81ecdfbb
RW
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12588$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12589 if test -x $with_build_time_tools/${ncn_progname}; then
12590 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12592$as_echo "yes" >&6; }
2429c060
PB
12593 break
12594 else
81ecdfbb
RW
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12596$as_echo "no" >&6; }
2429c060
PB
12597 fi
12598 done
12599fi
12600
12601if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12602 for ncn_progname in nm; do
12603 if test -n "$ncn_target_tool_prefix"; then
12604 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12605set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12607$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12608if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12609 $as_echo_n "(cached) " >&6
859789af 12610else
55db4b87
PB
12611 if test -n "$NM_FOR_TARGET"; then
12612 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12613else
c6b750e1
DJ
12614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12615for as_dir in $PATH
12616do
12617 IFS=$as_save_IFS
12618 test -z "$as_dir" && as_dir=.
81ecdfbb 12619 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12621 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12623 break 2
12624 fi
12625done
81ecdfbb
RW
12626 done
12627IFS=$as_save_IFS
c6b750e1 12628
859789af
AC
12629fi
12630fi
c6b750e1 12631NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12632if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12634$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12635else
81ecdfbb
RW
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12637$as_echo "no" >&6; }
859789af
AC
12638fi
12639
81ecdfbb 12640
2429c060
PB
12641 fi
12642 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12643 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12644set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12647if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12648 $as_echo_n "(cached) " >&6
859789af 12649else
05cbd757
PB
12650 if test -n "$NM_FOR_TARGET"; then
12651 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12652else
c6b750e1
DJ
12653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654for as_dir in $PATH
12655do
12656 IFS=$as_save_IFS
12657 test -z "$as_dir" && as_dir=.
81ecdfbb 12658 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12660 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12662 break 2
12663 fi
12664done
81ecdfbb
RW
12665 done
12666IFS=$as_save_IFS
c6b750e1 12667
859789af
AC
12668fi
12669fi
c6b750e1 12670NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12671if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12673$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12674else
81ecdfbb
RW
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676$as_echo "no" >&6; }
859789af 12677fi
c6b750e1 12678
81ecdfbb 12679
2429c060
PB
12680 fi
12681 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12682 done
12683fi
c6b750e1 12684
05cbd757
PB
12685if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12686 set dummy nm
12687 if test $build = $target ; then
12688 NM_FOR_TARGET="$2"
859789af 12689 else
05cbd757 12690 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12691 fi
d3f5afc4
MS
12692else
12693 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12694fi
12695
3a35eeb3
PB
12696else
12697 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12698fi
12699
12700
12701
12702
6b91c541
AP
12703if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12704 if test -n "$with_build_time_tools"; then
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12706$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12707 if test -x $with_build_time_tools/objcopy; then
12708 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12709 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12711$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12712 else
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12714$as_echo "no" >&6; }
12715 fi
12716 elif test $build != $host && test $have_gcc_for_target = yes; then
12717 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12718 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12719 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12720 fi
12721fi
12722if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12723 # Extract the first word of "objcopy", so it can be a program name with args.
12724set dummy objcopy; ac_word=$2
12725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12726$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12727if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12728 $as_echo_n "(cached) " >&6
12729else
12730 case $OBJCOPY_FOR_TARGET in
12731 [\\/]* | ?:[\\/]*)
12732 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12733 ;;
12734 *)
12735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736for as_dir in $gcc_cv_tool_dirs
12737do
12738 IFS=$as_save_IFS
12739 test -z "$as_dir" && as_dir=.
12740 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12742 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12744 break 2
12745 fi
12746done
12747 done
12748IFS=$as_save_IFS
12749
12750 ;;
12751esac
12752fi
12753OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12754if test -n "$OBJCOPY_FOR_TARGET"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12756$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12757else
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759$as_echo "no" >&6; }
12760fi
12761
12762
12763fi
12764if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12765
12766
12767if test -n "$OBJCOPY_FOR_TARGET"; then
12768 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12769elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12770 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12771fi
12772
12773if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12774 for ncn_progname in objcopy; do
12775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12776set dummy ${ncn_progname}; ac_word=$2
12777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12779if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12780 $as_echo_n "(cached) " >&6
12781else
12782 if test -n "$OBJCOPY_FOR_TARGET"; then
12783 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12784else
12785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786for as_dir in $PATH
12787do
12788 IFS=$as_save_IFS
12789 test -z "$as_dir" && as_dir=.
12790 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12792 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12794 break 2
12795 fi
12796done
12797 done
12798IFS=$as_save_IFS
12799
12800fi
12801fi
12802OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12803if test -n "$OBJCOPY_FOR_TARGET"; then
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12805$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12806else
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808$as_echo "no" >&6; }
12809fi
12810
12811
12812 done
12813fi
12814
12815if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12816 for ncn_progname in objcopy; do
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12818$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12819 if test -x $with_build_time_tools/${ncn_progname}; then
12820 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12822$as_echo "yes" >&6; }
12823 break
12824 else
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12826$as_echo "no" >&6; }
12827 fi
12828 done
12829fi
12830
12831if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12832 for ncn_progname in objcopy; do
12833 if test -n "$ncn_target_tool_prefix"; then
12834 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12835set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12837$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12838if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12839 $as_echo_n "(cached) " >&6
12840else
12841 if test -n "$OBJCOPY_FOR_TARGET"; then
12842 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12843else
12844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12845for as_dir in $PATH
12846do
12847 IFS=$as_save_IFS
12848 test -z "$as_dir" && as_dir=.
12849 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12851 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12853 break 2
12854 fi
12855done
12856 done
12857IFS=$as_save_IFS
12858
12859fi
12860fi
12861OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12862if test -n "$OBJCOPY_FOR_TARGET"; then
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12864$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12865else
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867$as_echo "no" >&6; }
12868fi
12869
12870
12871 fi
12872 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12874set dummy ${ncn_progname}; ac_word=$2
12875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12877if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12878 $as_echo_n "(cached) " >&6
12879else
12880 if test -n "$OBJCOPY_FOR_TARGET"; then
12881 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12882else
12883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12884for as_dir in $PATH
12885do
12886 IFS=$as_save_IFS
12887 test -z "$as_dir" && as_dir=.
12888 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12890 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12892 break 2
12893 fi
12894done
12895 done
12896IFS=$as_save_IFS
12897
12898fi
12899fi
12900OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12901if test -n "$OBJCOPY_FOR_TARGET"; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12903$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12904else
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906$as_echo "no" >&6; }
12907fi
12908
12909
12910 fi
12911 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12912 done
12913fi
12914
12915if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12916 set dummy objcopy
12917 if test $build = $target ; then
12918 OBJCOPY_FOR_TARGET="$2"
12919 else
12920 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12921 fi
12922else
12923 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12924fi
12925
12926else
12927 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12928fi
12929
12930
12931
12932
2429c060
PB
12933if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12934 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12936$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12937 if test -x $with_build_time_tools/objdump; then
12938 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12939 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12941$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12942 else
81ecdfbb
RW
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12944$as_echo "no" >&6; }
3a35eeb3 12945 fi
2429c060
PB
12946 elif test $build != $host && test $have_gcc_for_target = yes; then
12947 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12948 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12949 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12950 fi
12951fi
c6b750e1 12952if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12953 # Extract the first word of "objdump", so it can be a program name with args.
12954set dummy objdump; ac_word=$2
81ecdfbb
RW
12955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12956$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12957if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12958 $as_echo_n "(cached) " >&6
2429c060 12959else
c6b750e1
DJ
12960 case $OBJDUMP_FOR_TARGET in
12961 [\\/]* | ?:[\\/]*)
2429c060
PB
12962 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12963 ;;
2429c060 12964 *)
c6b750e1
DJ
12965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966for as_dir in $gcc_cv_tool_dirs
12967do
12968 IFS=$as_save_IFS
12969 test -z "$as_dir" && as_dir=.
81ecdfbb 12970 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12972 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12974 break 2
12975 fi
12976done
81ecdfbb
RW
12977 done
12978IFS=$as_save_IFS
c6b750e1 12979
2429c060
PB
12980 ;;
12981esac
12982fi
c6b750e1 12983OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12984if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12986$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12987else
81ecdfbb
RW
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989$as_echo "no" >&6; }
2429c060
PB
12990fi
12991
81ecdfbb 12992
2429c060
PB
12993fi
12994if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12995
12996
12997if test -n "$OBJDUMP_FOR_TARGET"; then
12998 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12999elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13000 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13001fi
13002
13003if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13004 for ncn_progname in objdump; do
13005 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13006set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13008$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13009if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 13010 $as_echo_n "(cached) " >&6
9a819804
AO
13011else
13012 if test -n "$OBJDUMP_FOR_TARGET"; then
13013 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13014else
13015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016for as_dir in $PATH
13017do
13018 IFS=$as_save_IFS
13019 test -z "$as_dir" && as_dir=.
81ecdfbb 13020 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13022 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13024 break 2
13025 fi
13026done
81ecdfbb
RW
13027 done
13028IFS=$as_save_IFS
9a819804
AO
13029
13030fi
13031fi
13032OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13033if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13035$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 13036else
81ecdfbb
RW
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13038$as_echo "no" >&6; }
9a819804
AO
13039fi
13040
81ecdfbb 13041
9a819804
AO
13042 done
13043fi
13044
13045if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13046 for ncn_progname in objdump; do
81ecdfbb
RW
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13048$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13049 if test -x $with_build_time_tools/${ncn_progname}; then
13050 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13052$as_echo "yes" >&6; }
2429c060
PB
13053 break
13054 else
81ecdfbb
RW
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13056$as_echo "no" >&6; }
2429c060
PB
13057 fi
13058 done
13059fi
13060
13061if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13062 for ncn_progname in objdump; do
13063 if test -n "$ncn_target_tool_prefix"; then
13064 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13065set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13067$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13068if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 13069 $as_echo_n "(cached) " >&6
5ae72758
DJ
13070else
13071 if test -n "$OBJDUMP_FOR_TARGET"; then
13072 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13073else
c6b750e1
DJ
13074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13075for as_dir in $PATH
13076do
13077 IFS=$as_save_IFS
13078 test -z "$as_dir" && as_dir=.
81ecdfbb 13079 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13081 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13083 break 2
13084 fi
13085done
81ecdfbb
RW
13086 done
13087IFS=$as_save_IFS
c6b750e1 13088
5ae72758
DJ
13089fi
13090fi
c6b750e1 13091OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 13092if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13094$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 13095else
81ecdfbb
RW
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097$as_echo "no" >&6; }
5ae72758
DJ
13098fi
13099
81ecdfbb 13100
2429c060
PB
13101 fi
13102 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
13103 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 13104set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13106$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13107if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 13108 $as_echo_n "(cached) " >&6
5ae72758
DJ
13109else
13110 if test -n "$OBJDUMP_FOR_TARGET"; then
13111 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13112else
c6b750e1
DJ
13113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114for as_dir in $PATH
13115do
13116 IFS=$as_save_IFS
13117 test -z "$as_dir" && as_dir=.
81ecdfbb 13118 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13120 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13122 break 2
13123 fi
13124done
81ecdfbb
RW
13125 done
13126IFS=$as_save_IFS
c6b750e1 13127
5ae72758
DJ
13128fi
13129fi
c6b750e1 13130OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 13131if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13133$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 13134else
81ecdfbb
RW
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136$as_echo "no" >&6; }
5ae72758 13137fi
c6b750e1 13138
81ecdfbb 13139
2429c060
PB
13140 fi
13141 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
13142 done
13143fi
c6b750e1 13144
5ae72758
DJ
13145if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
13146 set dummy objdump
13147 if test $build = $target ; then
13148 OBJDUMP_FOR_TARGET="$2"
13149 else
13150 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13151 fi
d3f5afc4
MS
13152else
13153 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
13154fi
13155
3a35eeb3
PB
13156else
13157 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
13158fi
13159
13160
13161
13162
13163if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13164 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13166$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13167 if test -x $with_build_time_tools/ranlib; then
13168 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13169 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13171$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 13172 else
81ecdfbb
RW
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13174$as_echo "no" >&6; }
3a35eeb3 13175 fi
2429c060
PB
13176 elif test $build != $host && test $have_gcc_for_target = yes; then
13177 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
13178 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13179 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
13180 fi
13181fi
c6b750e1 13182if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13183 # Extract the first word of "ranlib", so it can be a program name with args.
13184set dummy ranlib; ac_word=$2
81ecdfbb
RW
13185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13186$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13187if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 13188 $as_echo_n "(cached) " >&6
2429c060 13189else
c6b750e1
DJ
13190 case $RANLIB_FOR_TARGET in
13191 [\\/]* | ?:[\\/]*)
2429c060
PB
13192 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13193 ;;
2429c060 13194 *)
c6b750e1
DJ
13195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13196for as_dir in $gcc_cv_tool_dirs
13197do
13198 IFS=$as_save_IFS
13199 test -z "$as_dir" && as_dir=.
81ecdfbb 13200 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13202 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13204 break 2
13205 fi
13206done
81ecdfbb
RW
13207 done
13208IFS=$as_save_IFS
c6b750e1 13209
2429c060
PB
13210 ;;
13211esac
13212fi
c6b750e1 13213RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 13214if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13216$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 13217else
81ecdfbb
RW
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219$as_echo "no" >&6; }
2429c060
PB
13220fi
13221
81ecdfbb 13222
2429c060
PB
13223fi
13224if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
13225
13226
13227if test -n "$RANLIB_FOR_TARGET"; then
13228 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13229elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13230 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13231fi
13232
13233if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13234 for ncn_progname in ranlib; do
13235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13236set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13238$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13239if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 13240 $as_echo_n "(cached) " >&6
9a819804
AO
13241else
13242 if test -n "$RANLIB_FOR_TARGET"; then
13243 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13244else
13245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246for as_dir in $PATH
13247do
13248 IFS=$as_save_IFS
13249 test -z "$as_dir" && as_dir=.
81ecdfbb 13250 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13252 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 13253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13254 break 2
13255 fi
13256done
81ecdfbb
RW
13257 done
13258IFS=$as_save_IFS
9a819804
AO
13259
13260fi
13261fi
13262RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13263if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13265$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 13266else
81ecdfbb
RW
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268$as_echo "no" >&6; }
9a819804
AO
13269fi
13270
81ecdfbb 13271
9a819804
AO
13272 done
13273fi
13274
13275if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13276 for ncn_progname in ranlib; do
81ecdfbb
RW
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13278$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13279 if test -x $with_build_time_tools/${ncn_progname}; then
13280 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13282$as_echo "yes" >&6; }
2429c060
PB
13283 break
13284 else
81ecdfbb
RW
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286$as_echo "no" >&6; }
2429c060
PB
13287 fi
13288 done
13289fi
13290
13291if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13292 for ncn_progname in ranlib; do
13293 if test -n "$ncn_target_tool_prefix"; then
13294 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 13295set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13297$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13298if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 13299 $as_echo_n "(cached) " >&6
859789af 13300else
55db4b87
PB
13301 if test -n "$RANLIB_FOR_TARGET"; then
13302 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 13303else
c6b750e1
DJ
13304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13305for as_dir in $PATH
13306do
13307 IFS=$as_save_IFS
13308 test -z "$as_dir" && as_dir=.
81ecdfbb 13309 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13311 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13313 break 2
13314 fi
13315done
81ecdfbb
RW
13316 done
13317IFS=$as_save_IFS
c6b750e1 13318
859789af
AC
13319fi
13320fi
c6b750e1 13321RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 13322if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13324$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 13325else
81ecdfbb
RW
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327$as_echo "no" >&6; }
859789af
AC
13328fi
13329
81ecdfbb 13330
2429c060
PB
13331 fi
13332 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13334set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13336$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13337if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 13338 $as_echo_n "(cached) " >&6
859789af 13339else
05cbd757
PB
13340 if test -n "$RANLIB_FOR_TARGET"; then
13341 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 13342else
c6b750e1
DJ
13343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13344for as_dir in $PATH
13345do
13346 IFS=$as_save_IFS
13347 test -z "$as_dir" && as_dir=.
81ecdfbb 13348 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13350 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 13351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13352 break 2
13353 fi
13354done
81ecdfbb
RW
13355 done
13356IFS=$as_save_IFS
c6b750e1 13357
859789af
AC
13358fi
13359fi
c6b750e1 13360RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 13361if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13363$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 13364else
81ecdfbb
RW
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13366$as_echo "no" >&6; }
859789af 13367fi
c6b750e1 13368
81ecdfbb 13369
2429c060
PB
13370 fi
13371 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13372 done
13373fi
c6b750e1 13374
2429c060
PB
13375if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13376 set dummy ranlib
13377 if test $build = $target ; then
13378 RANLIB_FOR_TARGET="$2"
13379 else
13380 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13381 fi
d3f5afc4
MS
13382else
13383 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 13384fi
05cbd757 13385
3a35eeb3
PB
13386else
13387 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
13388fi
13389
2429c060
PB
13390
13391
13392
b121d7d4
DD
13393if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13394 if test -n "$with_build_time_tools"; then
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13396$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13397 if test -x $with_build_time_tools/readelf; then
13398 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13399 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13401$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13402 else
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13404$as_echo "no" >&6; }
13405 fi
13406 elif test $build != $host && test $have_gcc_for_target = yes; then
13407 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13408 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13409 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13410 fi
13411fi
13412if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13413 # Extract the first word of "readelf", so it can be a program name with args.
13414set dummy readelf; ac_word=$2
13415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13416$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13417if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13418 $as_echo_n "(cached) " >&6
13419else
13420 case $READELF_FOR_TARGET in
13421 [\\/]* | ?:[\\/]*)
13422 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13423 ;;
13424 *)
13425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426for as_dir in $gcc_cv_tool_dirs
13427do
13428 IFS=$as_save_IFS
13429 test -z "$as_dir" && as_dir=.
13430 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13432 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13434 break 2
13435 fi
13436done
13437 done
13438IFS=$as_save_IFS
13439
13440 ;;
13441esac
13442fi
13443READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13444if test -n "$READELF_FOR_TARGET"; then
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13446$as_echo "$READELF_FOR_TARGET" >&6; }
13447else
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449$as_echo "no" >&6; }
13450fi
13451
13452
13453fi
13454if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13455
13456
13457if test -n "$READELF_FOR_TARGET"; then
13458 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13459elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13460 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13461fi
13462
13463if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13464 for ncn_progname in readelf; do
13465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13466set dummy ${ncn_progname}; ac_word=$2
13467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13468$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13469if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13470 $as_echo_n "(cached) " >&6
13471else
13472 if test -n "$READELF_FOR_TARGET"; then
13473 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13474else
13475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13476for as_dir in $PATH
13477do
13478 IFS=$as_save_IFS
13479 test -z "$as_dir" && as_dir=.
13480 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13482 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13484 break 2
13485 fi
13486done
13487 done
13488IFS=$as_save_IFS
13489
13490fi
13491fi
13492READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13493if test -n "$READELF_FOR_TARGET"; then
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13495$as_echo "$READELF_FOR_TARGET" >&6; }
13496else
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13498$as_echo "no" >&6; }
13499fi
13500
13501
13502 done
13503fi
13504
13505if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13506 for ncn_progname in readelf; do
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13508$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13509 if test -x $with_build_time_tools/${ncn_progname}; then
13510 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13512$as_echo "yes" >&6; }
13513 break
13514 else
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13516$as_echo "no" >&6; }
13517 fi
13518 done
13519fi
13520
13521if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13522 for ncn_progname in readelf; do
13523 if test -n "$ncn_target_tool_prefix"; then
13524 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13525set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13527$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13528if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13529 $as_echo_n "(cached) " >&6
13530else
13531 if test -n "$READELF_FOR_TARGET"; then
13532 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13533else
13534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13535for as_dir in $PATH
13536do
13537 IFS=$as_save_IFS
13538 test -z "$as_dir" && as_dir=.
13539 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13541 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13543 break 2
13544 fi
13545done
13546 done
13547IFS=$as_save_IFS
13548
13549fi
13550fi
13551READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13552if test -n "$READELF_FOR_TARGET"; then
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13554$as_echo "$READELF_FOR_TARGET" >&6; }
13555else
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13557$as_echo "no" >&6; }
13558fi
13559
13560
13561 fi
13562 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13563 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13564set dummy ${ncn_progname}; ac_word=$2
13565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13566$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13567if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13568 $as_echo_n "(cached) " >&6
13569else
13570 if test -n "$READELF_FOR_TARGET"; then
13571 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13572else
13573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574for as_dir in $PATH
13575do
13576 IFS=$as_save_IFS
13577 test -z "$as_dir" && as_dir=.
13578 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13580 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13582 break 2
13583 fi
13584done
13585 done
13586IFS=$as_save_IFS
13587
13588fi
13589fi
13590READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13591if test -n "$READELF_FOR_TARGET"; then
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13593$as_echo "$READELF_FOR_TARGET" >&6; }
13594else
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596$as_echo "no" >&6; }
13597fi
13598
13599
13600 fi
13601 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13602 done
13603fi
13604
13605if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13606 set dummy readelf
13607 if test $build = $target ; then
13608 READELF_FOR_TARGET="$2"
13609 else
13610 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13611 fi
13612else
13613 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13614fi
13615
13616else
13617 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13618fi
13619
13620
13621
13622
2429c060
PB
13623if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13624 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13626$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13627 if test -x $with_build_time_tools/strip; then
13628 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13629 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13631$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 13632 else
81ecdfbb
RW
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13634$as_echo "no" >&6; }
3a35eeb3 13635 fi
2429c060
PB
13636 elif test $build != $host && test $have_gcc_for_target = yes; then
13637 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
13638 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13639 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
13640 fi
13641fi
c6b750e1 13642if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13643 # Extract the first word of "strip", so it can be a program name with args.
13644set dummy strip; ac_word=$2
81ecdfbb
RW
13645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13646$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13647if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13648 $as_echo_n "(cached) " >&6
2429c060 13649else
c6b750e1
DJ
13650 case $STRIP_FOR_TARGET in
13651 [\\/]* | ?:[\\/]*)
2429c060
PB
13652 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13653 ;;
2429c060 13654 *)
c6b750e1
DJ
13655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13656for as_dir in $gcc_cv_tool_dirs
13657do
13658 IFS=$as_save_IFS
13659 test -z "$as_dir" && as_dir=.
81ecdfbb 13660 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13662 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13664 break 2
13665 fi
13666done
81ecdfbb
RW
13667 done
13668IFS=$as_save_IFS
c6b750e1 13669
2429c060
PB
13670 ;;
13671esac
13672fi
c6b750e1 13673STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 13674if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13676$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 13677else
81ecdfbb
RW
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679$as_echo "no" >&6; }
2429c060
PB
13680fi
13681
81ecdfbb 13682
2429c060
PB
13683fi
13684if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
13685
13686
13687if test -n "$STRIP_FOR_TARGET"; then
13688 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13689elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13690 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13691fi
13692
13693if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13694 for ncn_progname in strip; do
13695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13696set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13698$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13699if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13700 $as_echo_n "(cached) " >&6
9a819804
AO
13701else
13702 if test -n "$STRIP_FOR_TARGET"; then
13703 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13704else
13705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706for as_dir in $PATH
13707do
13708 IFS=$as_save_IFS
13709 test -z "$as_dir" && as_dir=.
81ecdfbb 13710 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13712 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13714 break 2
13715 fi
13716done
81ecdfbb
RW
13717 done
13718IFS=$as_save_IFS
9a819804
AO
13719
13720fi
13721fi
13722STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13723if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13725$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13726else
81ecdfbb
RW
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728$as_echo "no" >&6; }
9a819804
AO
13729fi
13730
81ecdfbb 13731
9a819804
AO
13732 done
13733fi
13734
13735if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13736 for ncn_progname in strip; do
81ecdfbb
RW
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13738$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13739 if test -x $with_build_time_tools/${ncn_progname}; then
13740 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13742$as_echo "yes" >&6; }
2429c060
PB
13743 break
13744 else
81ecdfbb
RW
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13746$as_echo "no" >&6; }
2429c060
PB
13747 fi
13748 done
13749fi
13750
13751if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13752 for ncn_progname in strip; do
13753 if test -n "$ncn_target_tool_prefix"; then
13754 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13755set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13757$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13758if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13759 $as_echo_n "(cached) " >&6
7e0f7140
GK
13760else
13761 if test -n "$STRIP_FOR_TARGET"; then
13762 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13763else
13764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13765for as_dir in $PATH
13766do
13767 IFS=$as_save_IFS
13768 test -z "$as_dir" && as_dir=.
81ecdfbb 13769 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13771 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13773 break 2
13774 fi
13775done
81ecdfbb
RW
13776 done
13777IFS=$as_save_IFS
c6b750e1 13778
7e0f7140
GK
13779fi
13780fi
c6b750e1 13781STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13782if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13784$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13785else
81ecdfbb
RW
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13787$as_echo "no" >&6; }
7e0f7140
GK
13788fi
13789
81ecdfbb 13790
2429c060
PB
13791 fi
13792 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13794set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13796$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13797if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13798 $as_echo_n "(cached) " >&6
7e0f7140
GK
13799else
13800 if test -n "$STRIP_FOR_TARGET"; then
13801 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13802else
c6b750e1
DJ
13803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13804for as_dir in $PATH
13805do
13806 IFS=$as_save_IFS
13807 test -z "$as_dir" && as_dir=.
81ecdfbb 13808 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13810 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13812 break 2
13813 fi
13814done
81ecdfbb
RW
13815 done
13816IFS=$as_save_IFS
c6b750e1 13817
7e0f7140
GK
13818fi
13819fi
c6b750e1 13820STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13821if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13823$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13824else
81ecdfbb
RW
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826$as_echo "no" >&6; }
7e0f7140 13827fi
c6b750e1 13828
81ecdfbb 13829
2429c060
PB
13830 fi
13831 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13832 done
13833fi
c6b750e1 13834
7e0f7140
GK
13835if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13836 set dummy strip
13837 if test $build = $target ; then
13838 STRIP_FOR_TARGET="$2"
13839 else
13840 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13841 fi
d3f5afc4
MS
13842else
13843 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13844fi
13845
3a35eeb3
PB
13846else
13847 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13848fi
13849
13850
13851
13852
13853if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13854 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13856$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13857 if test -x $with_build_time_tools/windres; then
13858 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13859 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13861$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13862 else
81ecdfbb
RW
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13864$as_echo "no" >&6; }
3a35eeb3 13865 fi
2429c060
PB
13866 elif test $build != $host && test $have_gcc_for_target = yes; then
13867 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13868 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13869 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13870 fi
13871fi
c6b750e1 13872if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13873 # Extract the first word of "windres", so it can be a program name with args.
13874set dummy windres; ac_word=$2
81ecdfbb
RW
13875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13876$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13877if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13878 $as_echo_n "(cached) " >&6
2429c060 13879else
c6b750e1
DJ
13880 case $WINDRES_FOR_TARGET in
13881 [\\/]* | ?:[\\/]*)
2429c060
PB
13882 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13883 ;;
2429c060 13884 *)
c6b750e1
DJ
13885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13886for as_dir in $gcc_cv_tool_dirs
13887do
13888 IFS=$as_save_IFS
13889 test -z "$as_dir" && as_dir=.
81ecdfbb 13890 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13892 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13894 break 2
13895 fi
13896done
81ecdfbb
RW
13897 done
13898IFS=$as_save_IFS
c6b750e1 13899
2429c060
PB
13900 ;;
13901esac
13902fi
c6b750e1 13903WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13904if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13906$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13907else
81ecdfbb
RW
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13909$as_echo "no" >&6; }
2429c060
PB
13910fi
13911
81ecdfbb 13912
2429c060
PB
13913fi
13914if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13915
13916
13917if test -n "$WINDRES_FOR_TARGET"; then
13918 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13919elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13920 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13921fi
13922
13923if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13924 for ncn_progname in windres; do
13925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13926set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13928$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13929if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13930 $as_echo_n "(cached) " >&6
9a819804
AO
13931else
13932 if test -n "$WINDRES_FOR_TARGET"; then
13933 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13934else
13935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13936for as_dir in $PATH
13937do
13938 IFS=$as_save_IFS
13939 test -z "$as_dir" && as_dir=.
81ecdfbb 13940 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13942 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13944 break 2
13945 fi
13946done
81ecdfbb
RW
13947 done
13948IFS=$as_save_IFS
9a819804
AO
13949
13950fi
13951fi
13952WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13953if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13955$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13956else
81ecdfbb
RW
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13958$as_echo "no" >&6; }
9a819804
AO
13959fi
13960
81ecdfbb 13961
9a819804
AO
13962 done
13963fi
13964
13965if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13966 for ncn_progname in windres; do
81ecdfbb
RW
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13968$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13969 if test -x $with_build_time_tools/${ncn_progname}; then
13970 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13972$as_echo "yes" >&6; }
2429c060
PB
13973 break
13974 else
81ecdfbb
RW
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13976$as_echo "no" >&6; }
2429c060
PB
13977 fi
13978 done
13979fi
13980
13981if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13982 for ncn_progname in windres; do
13983 if test -n "$ncn_target_tool_prefix"; then
13984 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13985set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13987$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13988if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13989 $as_echo_n "(cached) " >&6
859789af 13990else
55db4b87
PB
13991 if test -n "$WINDRES_FOR_TARGET"; then
13992 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13993else
c6b750e1
DJ
13994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13995for as_dir in $PATH
13996do
13997 IFS=$as_save_IFS
13998 test -z "$as_dir" && as_dir=.
81ecdfbb 13999 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14001 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 14002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14003 break 2
14004 fi
14005done
81ecdfbb
RW
14006 done
14007IFS=$as_save_IFS
c6b750e1 14008
859789af
AC
14009fi
14010fi
c6b750e1 14011WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 14012if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14014$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 14015else
81ecdfbb
RW
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14017$as_echo "no" >&6; }
859789af
AC
14018fi
14019
81ecdfbb 14020
2429c060
PB
14021 fi
14022 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
14023 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 14024set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14026$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14027if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 14028 $as_echo_n "(cached) " >&6
859789af 14029else
05cbd757
PB
14030 if test -n "$WINDRES_FOR_TARGET"; then
14031 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 14032else
c6b750e1
DJ
14033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14034for as_dir in $PATH
14035do
14036 IFS=$as_save_IFS
14037 test -z "$as_dir" && as_dir=.
81ecdfbb 14038 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14040 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 14041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14042 break 2
14043 fi
14044done
81ecdfbb
RW
14045 done
14046IFS=$as_save_IFS
c6b750e1 14047
859789af
AC
14048fi
14049fi
c6b750e1 14050WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 14051if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14053$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 14054else
81ecdfbb
RW
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14056$as_echo "no" >&6; }
859789af 14057fi
c6b750e1 14058
81ecdfbb 14059
2429c060
PB
14060 fi
14061 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14062 done
14063fi
c6b750e1 14064
05cbd757
PB
14065if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14066 set dummy windres
14067 if test $build = $target ; then
14068 WINDRES_FOR_TARGET="$2"
859789af 14069 else
05cbd757 14070 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 14071 fi
d3f5afc4
MS
14072else
14073 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
14074fi
14075
3a35eeb3
PB
14076else
14077 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
14078fi
14079
852e5f18 14080
0c24b341
NC
14081
14082
14083if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14084 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14086$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
14087 if test -x $with_build_time_tools/windmc; then
14088 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14089 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14091$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 14092 else
81ecdfbb
RW
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14094$as_echo "no" >&6; }
0c24b341
NC
14095 fi
14096 elif test $build != $host && test $have_gcc_for_target = yes; then
14097 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
14098 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14099 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14100 fi
14101fi
14102if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14103 # Extract the first word of "windmc", so it can be a program name with args.
14104set dummy windmc; ac_word=$2
81ecdfbb
RW
14105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14106$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14107if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 14108 $as_echo_n "(cached) " >&6
0c24b341
NC
14109else
14110 case $WINDMC_FOR_TARGET in
14111 [\\/]* | ?:[\\/]*)
14112 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14113 ;;
14114 *)
14115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14116for as_dir in $gcc_cv_tool_dirs
14117do
14118 IFS=$as_save_IFS
14119 test -z "$as_dir" && as_dir=.
81ecdfbb 14120 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 14122 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 14123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
14124 break 2
14125 fi
14126done
81ecdfbb
RW
14127 done
14128IFS=$as_save_IFS
0c24b341
NC
14129
14130 ;;
14131esac
14132fi
14133WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 14134if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14136$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 14137else
81ecdfbb
RW
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14139$as_echo "no" >&6; }
0c24b341
NC
14140fi
14141
81ecdfbb 14142
0c24b341
NC
14143fi
14144if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14145
14146
14147if test -n "$WINDMC_FOR_TARGET"; then
14148 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14149elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14150 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14151fi
14152
14153if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14154 for ncn_progname in windmc; do
14155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14156set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14158$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14159if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 14160 $as_echo_n "(cached) " >&6
0c24b341
NC
14161else
14162 if test -n "$WINDMC_FOR_TARGET"; then
14163 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14164else
14165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14166for as_dir in $PATH
14167do
14168 IFS=$as_save_IFS
14169 test -z "$as_dir" && as_dir=.
81ecdfbb 14170 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 14172 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 14173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
14174 break 2
14175 fi
14176done
81ecdfbb
RW
14177 done
14178IFS=$as_save_IFS
0c24b341
NC
14179
14180fi
14181fi
14182WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14183if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14185$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 14186else
81ecdfbb
RW
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14188$as_echo "no" >&6; }
0c24b341
NC
14189fi
14190
81ecdfbb 14191
0c24b341
NC
14192 done
14193fi
14194
14195if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14196 for ncn_progname in windmc; do
81ecdfbb
RW
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14198$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
14199 if test -x $with_build_time_tools/${ncn_progname}; then
14200 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14202$as_echo "yes" >&6; }
0c24b341
NC
14203 break
14204 else
81ecdfbb
RW
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14206$as_echo "no" >&6; }
0c24b341
NC
14207 fi
14208 done
14209fi
14210
14211if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14212 for ncn_progname in windmc; do
14213 if test -n "$ncn_target_tool_prefix"; then
14214 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14215set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
14216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14217$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14218if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 14219 $as_echo_n "(cached) " >&6
0c24b341
NC
14220else
14221 if test -n "$WINDMC_FOR_TARGET"; then
14222 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14223else
14224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14225for as_dir in $PATH
14226do
14227 IFS=$as_save_IFS
14228 test -z "$as_dir" && as_dir=.
81ecdfbb 14229 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 14231 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 14232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
14233 break 2
14234 fi
14235done
81ecdfbb
RW
14236 done
14237IFS=$as_save_IFS
0c24b341
NC
14238
14239fi
14240fi
14241WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14242if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14244$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 14245else
81ecdfbb
RW
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14247$as_echo "no" >&6; }
0c24b341
NC
14248fi
14249
81ecdfbb 14250
0c24b341
NC
14251 fi
14252 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14254set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14256$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14257if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 14258 $as_echo_n "(cached) " >&6
0c24b341
NC
14259else
14260 if test -n "$WINDMC_FOR_TARGET"; then
14261 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14262else
14263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14264for as_dir in $PATH
14265do
14266 IFS=$as_save_IFS
14267 test -z "$as_dir" && as_dir=.
81ecdfbb 14268 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 14270 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 14271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
14272 break 2
14273 fi
14274done
81ecdfbb
RW
14275 done
14276IFS=$as_save_IFS
0c24b341
NC
14277
14278fi
14279fi
14280WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14281if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14283$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 14284else
81ecdfbb
RW
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14286$as_echo "no" >&6; }
0c24b341
NC
14287fi
14288
81ecdfbb 14289
0c24b341
NC
14290 fi
14291 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14292 done
14293fi
14294
14295if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14296 set dummy windmc
14297 if test $build = $target ; then
14298 WINDMC_FOR_TARGET="$2"
14299 else
14300 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14301 fi
14302else
14303 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14304fi
14305
14306else
14307 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14308fi
14309
14310
be01d343
PB
14311RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14312
81ecdfbb
RW
14313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14314$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 14315if test "x${build}" != "x${host}" ; then
2429c060
PB
14316 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14317 # We already found the complete path
b8025f34 14318 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14320$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14321 else
14322 # Canadian cross, just use what we found
81ecdfbb
RW
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14324$as_echo "pre-installed" >&6; }
2429c060 14325 fi
be01d343
PB
14326else
14327 ok=yes
14328 case " ${configdirs} " in
14329 *" binutils "*) ;;
14330 *) ok=no ;;
14331 esac
c6b750e1 14332
be01d343
PB
14333 if test $ok = yes; then
14334 # An in-tree tool is available and we can use it
14335 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14337$as_echo "just compiled" >&6; }
2429c060
PB
14338 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14339 # We already found the complete path
b8025f34 14340 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14342$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14343 elif test "x$target" = "x$host"; then
14344 # We can use an host tool
14345 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14347$as_echo "host tool" >&6; }
be01d343
PB
14348 else
14349 # We need a cross tool
81ecdfbb
RW
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14351$as_echo "pre-installed" >&6; }
be01d343
PB
14352 fi
14353fi
4b900473 14354
81ecdfbb
RW
14355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14356$as_echo_n "checking where to find the target as... " >&6; }
be01d343 14357if test "x${build}" != "x${host}" ; then
2429c060
PB
14358 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14359 # We already found the complete path
b8025f34 14360 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14362$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14363 else
14364 # Canadian cross, just use what we found
81ecdfbb
RW
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14366$as_echo "pre-installed" >&6; }
2429c060 14367 fi
be01d343
PB
14368else
14369 ok=yes
14370 case " ${configdirs} " in
14371 *" gas "*) ;;
14372 *) ok=no ;;
14373 esac
c6b750e1 14374
be01d343
PB
14375 if test $ok = yes; then
14376 # An in-tree tool is available and we can use it
14377 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14379$as_echo "just compiled" >&6; }
2429c060
PB
14380 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14381 # We already found the complete path
b8025f34 14382 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14384$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14385 elif test "x$target" = "x$host"; then
14386 # We can use an host tool
14387 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14389$as_echo "host tool" >&6; }
be01d343
PB
14390 else
14391 # We need a cross tool
81ecdfbb
RW
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14393$as_echo "pre-installed" >&6; }
be01d343
PB
14394 fi
14395fi
4b900473 14396
81ecdfbb
RW
14397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14398$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 14399if test "x${build}" != "x${host}" ; then
2429c060
PB
14400 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14401 # We already found the complete path
b8025f34 14402 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14404$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14405 else
14406 # Canadian cross, just use what we found
81ecdfbb
RW
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14408$as_echo "pre-installed" >&6; }
2429c060 14409 fi
be01d343
PB
14410else
14411 ok=yes
14412 case " ${configdirs} " in
14413 *" gcc "*) ;;
14414 *) ok=no ;;
14415 esac
c6b750e1 14416
be01d343
PB
14417 if test $ok = yes; then
14418 # An in-tree tool is available and we can use it
14419 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14421$as_echo "just compiled" >&6; }
2429c060
PB
14422 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14423 # We already found the complete path
b8025f34 14424 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14426$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14427 elif test "x$target" = "x$host"; then
14428 # We can use an host tool
14429 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14431$as_echo "host tool" >&6; }
be01d343
PB
14432 else
14433 # We need a cross tool
81ecdfbb
RW
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14435$as_echo "pre-installed" >&6; }
be01d343
PB
14436 fi
14437fi
4b900473 14438
81ecdfbb
RW
14439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14440$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 14441if test "x${build}" != "x${host}" ; then
2429c060
PB
14442 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14443 # We already found the complete path
b8025f34 14444 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14446$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14447 else
14448 # Canadian cross, just use what we found
81ecdfbb
RW
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14450$as_echo "pre-installed" >&6; }
2429c060 14451 fi
be01d343
PB
14452else
14453 ok=yes
14454 case " ${configdirs} " in
14455 *" gcc "*) ;;
14456 *) ok=no ;;
14457 esac
14458 case ,${enable_languages}, in
14459 *,c++,*) ;;
14460 *) ok=no ;;
14461 esac
14462 if test $ok = yes; then
14463 # An in-tree tool is available and we can use it
95e43135 14464 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
81ecdfbb
RW
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14466$as_echo "just compiled" >&6; }
2429c060
PB
14467 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14468 # We already found the complete path
b8025f34 14469 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14471$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14472 elif test "x$target" = "x$host"; then
14473 # We can use an host tool
14474 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14476$as_echo "host tool" >&6; }
be01d343
PB
14477 else
14478 # We need a cross tool
81ecdfbb
RW
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14480$as_echo "pre-installed" >&6; }
be01d343
PB
14481 fi
14482fi
4b900473 14483
81ecdfbb
RW
14484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14485$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 14486if test "x${build}" != "x${host}" ; then
2429c060
PB
14487 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14488 # We already found the complete path
b8025f34 14489 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14491$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14492 else
14493 # Canadian cross, just use what we found
81ecdfbb
RW
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14495$as_echo "pre-installed" >&6; }
2429c060 14496 fi
be01d343
PB
14497else
14498 ok=yes
14499 case " ${configdirs} " in
14500 *" gcc "*) ;;
14501 *) ok=no ;;
14502 esac
14503 case ,${enable_languages}, in
14504 *,c++,*) ;;
14505 *) ok=no ;;
14506 esac
14507 if test $ok = yes; then
14508 # An in-tree tool is available and we can use it
95e43135 14509 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
81ecdfbb
RW
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14511$as_echo "just compiled" >&6; }
2429c060
PB
14512 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14513 # We already found the complete path
b8025f34 14514 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14516$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14517 elif test "x$target" = "x$host"; then
14518 # We can use an host tool
14519 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14521$as_echo "host tool" >&6; }
be01d343
PB
14522 else
14523 # We need a cross tool
81ecdfbb
RW
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14525$as_echo "pre-installed" >&6; }
be01d343
PB
14526 fi
14527fi
4b900473 14528
81ecdfbb
RW
14529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14530$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 14531if test "x${build}" != "x${host}" ; then
2429c060
PB
14532 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14533 # We already found the complete path
b8025f34 14534 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14536$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14537 else
14538 # Canadian cross, just use what we found
81ecdfbb
RW
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14540$as_echo "pre-installed" >&6; }
2429c060 14541 fi
be01d343
PB
14542else
14543 ok=yes
14544 case " ${configdirs} " in
14545 *" binutils "*) ;;
14546 *) ok=no ;;
14547 esac
c6b750e1 14548
be01d343
PB
14549 if test $ok = yes; then
14550 # An in-tree tool is available and we can use it
14551 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14553$as_echo "just compiled" >&6; }
2429c060
PB
14554 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14555 # We already found the complete path
b8025f34 14556 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14558$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14559 elif test "x$target" = "x$host"; then
14560 # We can use an host tool
14561 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14563$as_echo "host tool" >&6; }
be01d343
PB
14564 else
14565 # We need a cross tool
81ecdfbb
RW
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14567$as_echo "pre-installed" >&6; }
be01d343
PB
14568 fi
14569fi
4b900473 14570
81ecdfbb
RW
14571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14572$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 14573if test "x${build}" != "x${host}" ; then
2429c060
PB
14574 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14575 # We already found the complete path
b8025f34 14576 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14578$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14579 else
14580 # Canadian cross, just use what we found
81ecdfbb
RW
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14582$as_echo "pre-installed" >&6; }
2429c060 14583 fi
be01d343
PB
14584else
14585 ok=yes
14586 case " ${configdirs} " in
14587 *" gcc "*) ;;
14588 *) ok=no ;;
14589 esac
c6b750e1 14590
be01d343
PB
14591 if test $ok = yes; then
14592 # An in-tree tool is available and we can use it
14593 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14595$as_echo "just compiled" >&6; }
2429c060
PB
14596 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14597 # We already found the complete path
b8025f34 14598 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14600$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14601 elif test "x$target" = "x$host"; then
14602 # We can use an host tool
14603 GCC_FOR_TARGET='$()'
81ecdfbb
RW
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14605$as_echo "host tool" >&6; }
be01d343
PB
14606 else
14607 # We need a cross tool
81ecdfbb
RW
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14609$as_echo "pre-installed" >&6; }
be01d343
PB
14610 fi
14611fi
4b900473 14612
81ecdfbb
RW
14613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14614$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 14615if test "x${build}" != "x${host}" ; then
2429c060
PB
14616 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14617 # We already found the complete path
b8025f34 14618 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14620$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14621 else
14622 # Canadian cross, just use what we found
81ecdfbb
RW
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14624$as_echo "pre-installed" >&6; }
2429c060 14625 fi
be01d343
PB
14626else
14627 ok=yes
14628 case " ${configdirs} " in
14629 *" gcc "*) ;;
14630 *) ok=no ;;
14631 esac
14632 case ,${enable_languages}, in
14633 *,fortran,*) ;;
14634 *) ok=no ;;
14635 esac
14636 if test $ok = yes; then
14637 # An in-tree tool is available and we can use it
14638 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14640$as_echo "just compiled" >&6; }
2429c060
PB
14641 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14642 # We already found the complete path
b8025f34 14643 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14645$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14646 elif test "x$target" = "x$host"; then
14647 # We can use an host tool
14648 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14650$as_echo "host tool" >&6; }
be01d343
PB
14651 else
14652 # We need a cross tool
81ecdfbb
RW
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14654$as_echo "pre-installed" >&6; }
be01d343
PB
14655 fi
14656fi
4b900473 14657
e552509b
ILT
14658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14659$as_echo_n "checking where to find the target gccgo... " >&6; }
14660if test "x${build}" != "x${host}" ; then
14661 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14662 # We already found the complete path
14663 ac_dir=`dirname $GOC_FOR_TARGET`
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14665$as_echo "pre-installed in $ac_dir" >&6; }
14666 else
14667 # Canadian cross, just use what we found
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14669$as_echo "pre-installed" >&6; }
14670 fi
14671else
14672 ok=yes
14673 case " ${configdirs} " in
14674 *" gcc "*) ;;
14675 *) ok=no ;;
14676 esac
14677 case ,${enable_languages}, in
14678 *,go,*) ;;
14679 *) ok=no ;;
14680 esac
14681 if test $ok = yes; then
14682 # An in-tree tool is available and we can use it
14683 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14685$as_echo "just compiled" >&6; }
14686 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14687 # We already found the complete path
14688 ac_dir=`dirname $GOC_FOR_TARGET`
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14690$as_echo "pre-installed in $ac_dir" >&6; }
14691 elif test "x$target" = "x$host"; then
14692 # We can use an host tool
14693 GOC_FOR_TARGET='$(GOC)'
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14695$as_echo "host tool" >&6; }
14696 else
14697 # We need a cross tool
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14699$as_echo "pre-installed" >&6; }
14700 fi
14701fi
14702
81ecdfbb
RW
14703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14704$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14705if test "x${build}" != "x${host}" ; then
2429c060
PB
14706 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14707 # We already found the complete path
b8025f34 14708 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14710$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14711 else
14712 # Canadian cross, just use what we found
81ecdfbb
RW
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14714$as_echo "pre-installed" >&6; }
2429c060 14715 fi
be01d343
PB
14716else
14717 ok=yes
14718 case " ${configdirs} " in
14719 *" ld "*) ;;
14720 *) ok=no ;;
14721 esac
c6b750e1 14722
be01d343
PB
14723 if test $ok = yes; then
14724 # An in-tree tool is available and we can use it
14725 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14727$as_echo "just compiled" >&6; }
2429c060
PB
14728 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14729 # We already found the complete path
b8025f34 14730 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14732$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14733 elif test "x$target" = "x$host"; then
14734 # We can use an host tool
14735 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14737$as_echo "host tool" >&6; }
be01d343
PB
14738 else
14739 # We need a cross tool
81ecdfbb
RW
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14741$as_echo "pre-installed" >&6; }
be01d343
PB
14742 fi
14743fi
4b900473 14744
81ecdfbb
RW
14745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14746$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14747if test "x${build}" != "x${host}" ; then
2429c060
PB
14748 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14749 # We already found the complete path
b8025f34 14750 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14752$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14753 else
14754 # Canadian cross, just use what we found
81ecdfbb
RW
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14756$as_echo "pre-installed" >&6; }
2429c060 14757 fi
be01d343 14758else
2429c060
PB
14759 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14760 # We already found the complete path
b8025f34 14761 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14763$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 14764 elif test "x$target" = "x$host"; then
be01d343
PB
14765 # We can use an host tool
14766 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14768$as_echo "host tool" >&6; }
be01d343
PB
14769 else
14770 # We need a cross tool
81ecdfbb
RW
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14772$as_echo "pre-installed" >&6; }
be01d343
PB
14773 fi
14774fi
4b900473 14775
81ecdfbb
RW
14776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14777$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14778if test "x${build}" != "x${host}" ; then
2429c060
PB
14779 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14780 # We already found the complete path
b8025f34 14781 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14783$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14784 else
14785 # Canadian cross, just use what we found
81ecdfbb
RW
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14787$as_echo "pre-installed" >&6; }
2429c060 14788 fi
be01d343
PB
14789else
14790 ok=yes
14791 case " ${configdirs} " in
14792 *" binutils "*) ;;
14793 *) ok=no ;;
14794 esac
c6b750e1 14795
be01d343
PB
14796 if test $ok = yes; then
14797 # An in-tree tool is available and we can use it
14798 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14800$as_echo "just compiled" >&6; }
2429c060
PB
14801 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14802 # We already found the complete path
b8025f34 14803 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14805$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14806 elif test "x$target" = "x$host"; then
14807 # We can use an host tool
14808 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14810$as_echo "host tool" >&6; }
be01d343
PB
14811 else
14812 # We need a cross tool
81ecdfbb
RW
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14814$as_echo "pre-installed" >&6; }
be01d343
PB
14815 fi
14816fi
4b900473 14817
6b91c541
AP
14818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14819$as_echo_n "checking where to find the target objcopy... " >&6; }
14820if test "x${build}" != "x${host}" ; then
14821 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14822 # We already found the complete path
14823 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14825$as_echo "pre-installed in $ac_dir" >&6; }
14826 else
14827 # Canadian cross, just use what we found
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14829$as_echo "pre-installed" >&6; }
14830 fi
14831else
14832 ok=yes
14833 case " ${configdirs} " in
14834 *" binutils "*) ;;
14835 *) ok=no ;;
14836 esac
14837
14838 if test $ok = yes; then
14839 # An in-tree tool is available and we can use it
14840 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14842$as_echo "just compiled" >&6; }
14843 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14844 # We already found the complete path
14845 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14847$as_echo "pre-installed in $ac_dir" >&6; }
14848 elif test "x$target" = "x$host"; then
14849 # We can use an host tool
1b6c0831 14850 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
6b91c541
AP
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14852$as_echo "host tool" >&6; }
14853 else
14854 # We need a cross tool
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14856$as_echo "pre-installed" >&6; }
14857 fi
14858fi
14859
81ecdfbb
RW
14860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14861$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14862if test "x${build}" != "x${host}" ; then
2429c060
PB
14863 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14864 # We already found the complete path
b8025f34 14865 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14867$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14868 else
14869 # Canadian cross, just use what we found
81ecdfbb
RW
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14871$as_echo "pre-installed" >&6; }
2429c060 14872 fi
be01d343
PB
14873else
14874 ok=yes
14875 case " ${configdirs} " in
14876 *" binutils "*) ;;
14877 *) ok=no ;;
14878 esac
c6b750e1 14879
be01d343
PB
14880 if test $ok = yes; then
14881 # An in-tree tool is available and we can use it
14882 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14884$as_echo "just compiled" >&6; }
2429c060
PB
14885 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14886 # We already found the complete path
b8025f34 14887 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14889$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14890 elif test "x$target" = "x$host"; then
14891 # We can use an host tool
14892 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14894$as_echo "host tool" >&6; }
be01d343
PB
14895 else
14896 # We need a cross tool
81ecdfbb
RW
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14898$as_echo "pre-installed" >&6; }
be01d343
PB
14899 fi
14900fi
4b900473 14901
81ecdfbb
RW
14902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14903$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14904if test "x${build}" != "x${host}" ; then
2429c060
PB
14905 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14906 # We already found the complete path
b8025f34 14907 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14909$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14910 else
14911 # Canadian cross, just use what we found
81ecdfbb
RW
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14913$as_echo "pre-installed" >&6; }
2429c060 14914 fi
be01d343
PB
14915else
14916 ok=yes
14917 case " ${configdirs} " in
14918 *" binutils "*) ;;
14919 *) ok=no ;;
14920 esac
c6b750e1 14921
be01d343
PB
14922 if test $ok = yes; then
14923 # An in-tree tool is available and we can use it
14924 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14926$as_echo "just compiled" >&6; }
2429c060
PB
14927 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14928 # We already found the complete path
b8025f34 14929 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14931$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14932 elif test "x$target" = "x$host"; then
14933 # We can use an host tool
14934 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14936$as_echo "host tool" >&6; }
be01d343
PB
14937 else
14938 # We need a cross tool
81ecdfbb
RW
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14940$as_echo "pre-installed" >&6; }
be01d343
PB
14941 fi
14942fi
4b900473 14943
b121d7d4
DD
14944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14945$as_echo_n "checking where to find the target readelf... " >&6; }
14946if test "x${build}" != "x${host}" ; then
14947 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14948 # We already found the complete path
14949 ac_dir=`dirname $READELF_FOR_TARGET`
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14951$as_echo "pre-installed in $ac_dir" >&6; }
14952 else
14953 # Canadian cross, just use what we found
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14955$as_echo "pre-installed" >&6; }
14956 fi
14957else
14958 ok=yes
14959 case " ${configdirs} " in
14960 *" binutils "*) ;;
14961 *) ok=no ;;
14962 esac
14963
14964 if test $ok = yes; then
14965 # An in-tree tool is available and we can use it
14966 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14968$as_echo "just compiled" >&6; }
14969 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14970 # We already found the complete path
14971 ac_dir=`dirname $READELF_FOR_TARGET`
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14973$as_echo "pre-installed in $ac_dir" >&6; }
14974 elif test "x$target" = "x$host"; then
14975 # We can use an host tool
14976 READELF_FOR_TARGET='$(READELF)'
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14978$as_echo "host tool" >&6; }
14979 else
14980 # We need a cross tool
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14982$as_echo "pre-installed" >&6; }
14983 fi
14984fi
14985
81ecdfbb
RW
14986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14987$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14988if test "x${build}" != "x${host}" ; then
2429c060
PB
14989 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14990 # We already found the complete path
b8025f34 14991 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14993$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14994 else
14995 # Canadian cross, just use what we found
81ecdfbb
RW
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14997$as_echo "pre-installed" >&6; }
2429c060 14998 fi
be01d343
PB
14999else
15000 ok=yes
15001 case " ${configdirs} " in
15002 *" binutils "*) ;;
15003 *) ok=no ;;
15004 esac
c6b750e1 15005
be01d343
PB
15006 if test $ok = yes; then
15007 # An in-tree tool is available and we can use it
9b980aa1 15008 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15010$as_echo "just compiled" >&6; }
2429c060
PB
15011 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15012 # We already found the complete path
b8025f34 15013 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15015$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
15016 elif test "x$target" = "x$host"; then
15017 # We can use an host tool
15018 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15020$as_echo "host tool" >&6; }
be01d343
PB
15021 else
15022 # We need a cross tool
81ecdfbb
RW
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15024$as_echo "pre-installed" >&6; }
be01d343
PB
15025 fi
15026fi
4b900473 15027
81ecdfbb
RW
15028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
15029$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 15030if test "x${build}" != "x${host}" ; then
2429c060
PB
15031 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15032 # We already found the complete path
b8025f34 15033 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15035$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
15036 else
15037 # Canadian cross, just use what we found
81ecdfbb
RW
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15039$as_echo "pre-installed" >&6; }
2429c060 15040 fi
be01d343
PB
15041else
15042 ok=yes
15043 case " ${configdirs} " in
15044 *" binutils "*) ;;
15045 *) ok=no ;;
15046 esac
c6b750e1 15047
be01d343
PB
15048 if test $ok = yes; then
15049 # An in-tree tool is available and we can use it
15050 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15052$as_echo "just compiled" >&6; }
2429c060
PB
15053 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15054 # We already found the complete path
b8025f34 15055 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15057$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
15058 elif test "x$target" = "x$host"; then
15059 # We can use an host tool
15060 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15062$as_echo "host tool" >&6; }
be01d343
PB
15063 else
15064 # We need a cross tool
81ecdfbb
RW
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15066$as_echo "pre-installed" >&6; }
be01d343 15067 fi
a0da8069 15068fi
54752a6b 15069
81ecdfbb
RW
15070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15071$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
15072if test "x${build}" != "x${host}" ; then
15073 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15074 # We already found the complete path
15075 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15077$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
15078 else
15079 # Canadian cross, just use what we found
81ecdfbb
RW
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15081$as_echo "pre-installed" >&6; }
0c24b341
NC
15082 fi
15083else
15084 ok=yes
15085 case " ${configdirs} " in
15086 *" binutils "*) ;;
15087 *) ok=no ;;
15088 esac
15089
15090 if test $ok = yes; then
15091 # An in-tree tool is available and we can use it
15092 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15094$as_echo "just compiled" >&6; }
0c24b341
NC
15095 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15096 # We already found the complete path
15097 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15099$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
15100 elif test "x$target" = "x$host"; then
15101 # We can use an host tool
15102 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15104$as_echo "host tool" >&6; }
0c24b341
NC
15105 else
15106 # We need a cross tool
81ecdfbb
RW
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15108$as_echo "pre-installed" >&6; }
0c24b341
NC
15109 fi
15110fi
15111
54752a6b
NN
15112
15113
be01d343 15114
4b900473 15115
a0da8069
NN
15116# Certain tools may need extra flags.
15117AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15118RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15119NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15120
be01d343
PB
15121# When building target libraries, except in a Canadian cross, we use
15122# the same toolchain as the compiler we just built.
15123COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15124COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15125COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15126if test $host = $build; then
15127 case " $configdirs " in
15128 *" gcc "*)
15129 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15130 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15131 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15132 ;;
15133 esac
15134fi
15135
15136
15137
15138
15139
81ecdfbb
RW
15140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15141$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15142# Check whether --enable-maintainer-mode was given.
15143if test "${enable_maintainer_mode+set}" = set; then :
15144 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
15145else
15146 USE_MAINTAINER_MODE=no
81ecdfbb
RW
15147fi
15148
15149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15150$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
15151
15152
15153if test "$USE_MAINTAINER_MODE" = yes; then
15154 MAINTAINER_MODE_TRUE=
15155 MAINTAINER_MODE_FALSE='#'
15156else
15157 MAINTAINER_MODE_TRUE='#'
15158 MAINTAINER_MODE_FALSE=
c6b750e1 15159fi
3d5e36ae
AO
15160MAINT=$MAINTAINER_MODE_TRUE
15161
1d39f329
NN
15162# ---------------------
15163# GCC bootstrap support
15164# ---------------------
15165
15166# Stage specific cflags for build.
15167stage1_cflags="-g"
15168case $build in
15169 vax-*-*)
15170 case ${GCC} in
15171 yes) stage1_cflags="-g -Wa,-J" ;;
15172 *) stage1_cflags="-g -J" ;;
15173 esac ;;
1d39f329
NN
15174esac
15175
1d89b610 15176
1d39f329 15177
8a0d8a5c 15178# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
15179# Check whether --enable-stage1-checking was given.
15180if test "${enable_stage1_checking+set}" = set; then :
15181 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 15182else
5566c1fa 15183 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
ce6c656d
L
15184 # For --disable-checking or implicit --enable-checking=release, avoid
15185 # setting --enable-checking=gc in the default stage1 checking for LTO
15186 # bootstraps. See PR62077.
ce6c656d
L
15187 case $BUILD_CONFIG in
15188 *lto*)
05a13254
NC
15189 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15190 *)
15191 stage1_checking=--enable-checking=yes,types;;
ce6c656d 15192 esac
05a13254
NC
15193 if test "x$enable_checking" = x && \
15194 test -d ${srcdir}/gcc && \
15195 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
15196 stage1_checking=--enable-checking=yes,types,extra
15197 fi
8a0d8a5c 15198else
5566c1fa 15199 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 15200fi
81ecdfbb 15201fi
8a0d8a5c
PB
15202
15203
c6b750e1 15204
81ecdfbb
RW
15205# Enable -Werror in bootstrap stage2 and later.
15206# Check whether --enable-werror was given.
15207if test "${enable_werror+set}" = set; then :
15208 enableval=$enable_werror;
1a6f2dc7
NN
15209case ${enable_werror} in
15210 yes) stage2_werror_flag="--enable-werror-always" ;;
15211 *) stage2_werror_flag="" ;;
1d39f329
NN
15212esac
15213
82033c9b 15214else
82033c9b 15215
bf41f30d
NC
15216if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15217 case $BUILD_CONFIG in
15218 bootstrap-debug)
15219 stage2_werror_flag="--enable-werror-always" ;;
15220 "")
15221 stage2_werror_flag="--enable-werror-always" ;;
15222 esac
15223fi
82033c9b 15224
bf41f30d 15225fi
82033c9b 15226
1b6c0831 15227
1b6c0831 15228
1b6c0831 15229
e8a5fa9c
RW
15230# Specify what files to not compare during bootstrap.
15231
15232compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15233case "$target" in
15234 hppa*64*-*-hpux*) ;;
bf41f30d 15235 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
1488e230 15236 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
15237esac
15238
15239
81ecdfbb
RW
15240ac_config_files="$ac_config_files Makefile"
15241
c6b750e1 15242cat >confcache <<\_ACEOF
a0da8069
NN
15243# This file is a shell script that caches the results of configure
15244# tests run on this system so they can be shared between configure
c6b750e1
DJ
15245# scripts and configure runs, see configure's option --config-cache.
15246# It is not useful on other systems. If it contains results you don't
15247# want to keep, you may remove or edit it.
a0da8069 15248#
c6b750e1
DJ
15249# config.status only pays attention to the cache file if you give it
15250# the --recheck option to rerun configure.
a0da8069 15251#
c6b750e1
DJ
15252# `ac_cv_env_foo' variables (set or unset) will be overridden when
15253# loading this file, other *unset* `ac_cv_foo' will be assigned the
15254# following values.
15255
15256_ACEOF
15257
a0da8069
NN
15258# The following way of writing the cache mishandles newlines in values,
15259# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 15260# So, we kill variables containing newlines.
a0da8069
NN
15261# Ultrix sh set writes to stderr and can't be redirected directly,
15262# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
15263(
15264 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15265 eval ac_val=\$$ac_var
15266 case $ac_val in #(
15267 *${as_nl}*)
15268 case $ac_var in #(
15269 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15270$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15271 esac
15272 case $ac_var in #(
15273 _ | IFS | as_nl) ;; #(
15274 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15275 *) { eval $ac_var=; unset $ac_var;} ;;
15276 esac ;;
15277 esac
15278 done
15279
c6b750e1 15280 (set) 2>&1 |
81ecdfbb
RW
15281 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15282 *${as_nl}ac_space=\ *)
15283 # `set' does not quote correctly, so add quotes: double-quote
15284 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
15285 sed -n \
15286 "s/'/'\\\\''/g;
15287 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 15288 ;; #(
c6b750e1
DJ
15289 *)
15290 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 15291 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 15292 ;;
81ecdfbb
RW
15293 esac |
15294 sort
15295) |
c6b750e1 15296 sed '
81ecdfbb 15297 /^ac_cv_env_/b end
c6b750e1 15298 t clear
81ecdfbb 15299 :clear
c6b750e1
DJ
15300 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15301 t end
81ecdfbb
RW
15302 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15303 :end' >>confcache
15304if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15305 if test -w "$cache_file"; then
d0ac1c44 15306 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15308$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
15309 if test ! -f "$cache_file" || test -h "$cache_file"; then
15310 cat confcache >"$cache_file"
15311 else
15312 case $cache_file in #(
15313 */* | ?:*)
15314 mv -f confcache "$cache_file"$$ &&
15315 mv -f "$cache_file"$$ "$cache_file" ;; #(
15316 *)
15317 mv -f confcache "$cache_file" ;;
15318 esac
15319 fi
15320 fi
a0da8069 15321 else
81ecdfbb
RW
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15323$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 15324 fi
852e5f18 15325fi
a0da8069 15326rm -f confcache
852e5f18 15327
a0da8069
NN
15328test "x$prefix" = xNONE && prefix=$ac_default_prefix
15329# Let make expand exec_prefix.
15330test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 15331
a0da8069
NN
15332# Transform confdefs.h into DEFS.
15333# Protect against shell expansion while executing Makefile rules.
15334# Protect against Makefile macro expansion.
c6b750e1
DJ
15335#
15336# If the first sed substitution is executed (which looks for macros that
81ecdfbb 15337# take arguments), then branch to the quote section. Otherwise,
c6b750e1 15338# look for a macro that doesn't take arguments.
81ecdfbb
RW
15339ac_script='
15340:mline
15341/\\$/{
15342 N
15343 s,\\\n,,
15344 b mline
15345}
c6b750e1 15346t clear
81ecdfbb
RW
15347:clear
15348s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 15349t quote
81ecdfbb 15350s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 15351t quote
81ecdfbb
RW
15352b any
15353:quote
15354s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15355s/\[/\\&/g
15356s/\]/\\&/g
15357s/\$/$$/g
15358H
15359:any
15360${
15361 g
15362 s/^\n//
15363 s/\n/ /g
15364 p
15365}
15366'
15367DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
15368
15369
15370ac_libobjs=
15371ac_ltlibobjs=
d0ac1c44 15372U=
c6b750e1
DJ
15373for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15374 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
15375 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15376 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15377 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15378 # will be set to the directory where LIBOBJS objects are built.
15379 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15380 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
15381done
15382LIBOBJS=$ac_libobjs
852e5f18 15383
c6b750e1 15384LTLIBOBJS=$ac_ltlibobjs
376a0e54 15385
cac3d6c4 15386
c6b750e1 15387
d0ac1c44 15388: "${CONFIG_STATUS=./config.status}"
81ecdfbb 15389ac_write_fail=0
c6b750e1
DJ
15390ac_clean_files_save=$ac_clean_files
15391ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
15392{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15393$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15394as_write_fail=0
15395cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
15396#! $SHELL
15397# Generated by $as_me.
a0da8069 15398# Run this file to recreate the current configuration.
a0da8069 15399# Compiler output produced by configure, useful for debugging
c6b750e1 15400# configure, is in config.log if it exists.
376a0e54 15401
c6b750e1
DJ
15402debug=false
15403ac_cs_recheck=false
15404ac_cs_silent=false
c6b750e1 15405
81ecdfbb
RW
15406SHELL=\${CONFIG_SHELL-$SHELL}
15407export SHELL
15408_ASEOF
15409cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15410## -------------------- ##
15411## M4sh Initialization. ##
15412## -------------------- ##
15413
15414# Be more Bourne compatible
15415DUALCASE=1; export DUALCASE # for MKS sh
15416if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
15417 emulate sh
15418 NULLCMD=:
81ecdfbb 15419 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
15420 # is contrary to our usage. Disable this feature.
15421 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
15422 setopt NO_GLOB_SUBST
15423else
15424 case `(set -o) 2>/dev/null` in #(
15425 *posix*) :
15426 set -o posix ;; #(
15427 *) :
15428 ;;
15429esac
c6b750e1 15430fi
c6b750e1 15431
81ecdfbb
RW
15432
15433as_nl='
15434'
15435export as_nl
15436# Printing a long string crashes Solaris 7 /usr/bin/printf.
15437as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15438as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15439as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15440# Prefer a ksh shell builtin over an external printf program on Solaris,
15441# but without wasting forks for bash or zsh.
15442if test -z "$BASH_VERSION$ZSH_VERSION" \
15443 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15444 as_echo='print -r --'
15445 as_echo_n='print -rn --'
15446elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15447 as_echo='printf %s\n'
15448 as_echo_n='printf %s'
15449else
15450 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15451 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15452 as_echo_n='/usr/ucb/echo -n'
15453 else
15454 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15455 as_echo_n_body='eval
15456 arg=$1;
15457 case $arg in #(
15458 *"$as_nl"*)
15459 expr "X$arg" : "X\\(.*\\)$as_nl";
15460 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15461 esac;
15462 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15463 '
15464 export as_echo_n_body
15465 as_echo_n='sh -c $as_echo_n_body as_echo'
15466 fi
15467 export as_echo_body
15468 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
15469fi
15470
81ecdfbb
RW
15471# The user is always right.
15472if test "${PATH_SEPARATOR+set}" != set; then
15473 PATH_SEPARATOR=:
15474 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15475 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15476 PATH_SEPARATOR=';'
15477 }
15478fi
15479
15480
15481# IFS
15482# We need space, tab and new line, in precisely that order. Quoting is
15483# there to prevent editors from complaining about space-tab.
15484# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15485# splitting by setting IFS to empty value.)
15486IFS=" "" $as_nl"
15487
15488# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 15489as_myself=
81ecdfbb
RW
15490case $0 in #((
15491 *[\\/]* ) as_myself=$0 ;;
15492 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15493for as_dir in $PATH
15494do
15495 IFS=$as_save_IFS
15496 test -z "$as_dir" && as_dir=.
15497 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15498 done
15499IFS=$as_save_IFS
15500
15501 ;;
15502esac
15503# We did not find ourselves, most probably we were run as `sh COMMAND'
15504# in which case we are not to be found in the path.
15505if test "x$as_myself" = x; then
15506 as_myself=$0
15507fi
15508if test ! -f "$as_myself"; then
15509 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15510 exit 1
15511fi
c6b750e1 15512
81ecdfbb
RW
15513# Unset variables that we do not need and which cause bugs (e.g. in
15514# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15515# suppresses any "Segmentation fault" message there. '((' could
15516# trigger a bug in pdksh 5.2.14.
15517for as_var in BASH_ENV ENV MAIL MAILPATH
15518do eval test x\${$as_var+set} = xset \
15519 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15520done
c6b750e1
DJ
15521PS1='$ '
15522PS2='> '
15523PS4='+ '
15524
15525# NLS nuisances.
81ecdfbb
RW
15526LC_ALL=C
15527export LC_ALL
15528LANGUAGE=C
15529export LANGUAGE
15530
15531# CDPATH.
15532(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15533
15534
d0ac1c44
SM
15535# as_fn_error STATUS ERROR [LINENO LOG_FD]
15536# ----------------------------------------
81ecdfbb
RW
15537# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15538# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 15539# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
15540as_fn_error ()
15541{
d0ac1c44
SM
15542 as_status=$1; test $as_status -eq 0 && as_status=1
15543 if test "$4"; then
15544 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15545 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c6b750e1 15546 fi
d0ac1c44 15547 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
15548 as_fn_exit $as_status
15549} # as_fn_error
15550
15551
15552# as_fn_set_status STATUS
15553# -----------------------
15554# Set $? to STATUS, without forking.
15555as_fn_set_status ()
15556{
15557 return $1
15558} # as_fn_set_status
15559
15560# as_fn_exit STATUS
15561# -----------------
15562# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15563as_fn_exit ()
15564{
15565 set +e
15566 as_fn_set_status $1
15567 exit $1
15568} # as_fn_exit
15569
15570# as_fn_unset VAR
15571# ---------------
15572# Portably unset VAR.
15573as_fn_unset ()
15574{
15575 { eval $1=; unset $1;}
15576}
15577as_unset=as_fn_unset
15578# as_fn_append VAR VALUE
15579# ----------------------
15580# Append the text in VALUE to the end of the definition contained in VAR. Take
15581# advantage of any shell optimizations that allow amortized linear growth over
15582# repeated appends, instead of the typical quadratic growth present in naive
15583# implementations.
15584if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15585 eval 'as_fn_append ()
15586 {
15587 eval $1+=\$2
15588 }'
15589else
15590 as_fn_append ()
15591 {
15592 eval $1=\$$1\$2
15593 }
15594fi # as_fn_append
15595
15596# as_fn_arith ARG...
15597# ------------------
15598# Perform arithmetic evaluation on the ARGs, and store the result in the
15599# global $as_val. Take advantage of shells that can avoid forks. The arguments
15600# must be portable across $(()) and expr.
15601if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15602 eval 'as_fn_arith ()
15603 {
15604 as_val=$(( $* ))
15605 }'
15606else
15607 as_fn_arith ()
15608 {
15609 as_val=`expr "$@" || test $? -eq 1`
15610 }
15611fi # as_fn_arith
15612
c6b750e1 15613
81ecdfbb
RW
15614if expr a : '\(a\)' >/dev/null 2>&1 &&
15615 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
15616 as_expr=expr
15617else
15618 as_expr=false
15619fi
15620
81ecdfbb 15621if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
15622 as_basename=basename
15623else
15624 as_basename=false
15625fi
15626
81ecdfbb
RW
15627if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15628 as_dirname=dirname
15629else
15630 as_dirname=false
15631fi
c6b750e1 15632
81ecdfbb 15633as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
15634$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15635 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15636 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15637$as_echo X/"$0" |
15638 sed '/^.*\/\([^/][^/]*\)\/*$/{
15639 s//\1/
15640 q
15641 }
15642 /^X\/\(\/\/\)$/{
15643 s//\1/
15644 q
15645 }
15646 /^X\/\(\/\).*/{
15647 s//\1/
15648 q
15649 }
15650 s/.*/./; q'`
c6b750e1 15651
c6b750e1
DJ
15652# Avoid depending upon Character Ranges.
15653as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15654as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15655as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15656as_cr_digits='0123456789'
15657as_cr_alnum=$as_cr_Letters$as_cr_digits
15658
81ecdfbb
RW
15659ECHO_C= ECHO_N= ECHO_T=
15660case `echo -n x` in #(((((
15661-n*)
15662 case `echo 'xy\c'` in
15663 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15664 xy) ECHO_C='\c';;
15665 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15666 ECHO_T=' ';;
15667 esac;;
15668*)
15669 ECHO_N='-n';;
c6b750e1
DJ
15670esac
15671
81ecdfbb
RW
15672rm -f conf$$ conf$$.exe conf$$.file
15673if test -d conf$$.dir; then
15674 rm -f conf$$.dir/conf$$.file
c6b750e1 15675else
81ecdfbb
RW
15676 rm -f conf$$.dir
15677 mkdir conf$$.dir 2>/dev/null
c6b750e1 15678fi
81ecdfbb
RW
15679if (echo >conf$$.file) 2>/dev/null; then
15680 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 15681 as_ln_s='ln -s'
81ecdfbb
RW
15682 # ... but there are two gotchas:
15683 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15684 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 15685 # In both cases, we have to default to `cp -pR'.
81ecdfbb 15686 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 15687 as_ln_s='cp -pR'
81ecdfbb
RW
15688 elif ln conf$$.file conf$$ 2>/dev/null; then
15689 as_ln_s=ln
15690 else
d0ac1c44 15691 as_ln_s='cp -pR'
c6b750e1 15692 fi
c6b750e1 15693else
d0ac1c44 15694 as_ln_s='cp -pR'
c6b750e1 15695fi
81ecdfbb
RW
15696rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15697rmdir conf$$.dir 2>/dev/null
15698
15699
15700# as_fn_mkdir_p
15701# -------------
15702# Create "$as_dir" as a directory, including parents if necessary.
15703as_fn_mkdir_p ()
15704{
15705
15706 case $as_dir in #(
15707 -*) as_dir=./$as_dir;;
15708 esac
15709 test -d "$as_dir" || eval $as_mkdir_p || {
15710 as_dirs=
15711 while :; do
15712 case $as_dir in #(
15713 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15714 *) as_qdir=$as_dir;;
15715 esac
15716 as_dirs="'$as_qdir' $as_dirs"
15717 as_dir=`$as_dirname -- "$as_dir" ||
15718$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15719 X"$as_dir" : 'X\(//\)[^/]' \| \
15720 X"$as_dir" : 'X\(//\)$' \| \
15721 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15722$as_echo X"$as_dir" |
15723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15724 s//\1/
15725 q
15726 }
15727 /^X\(\/\/\)[^/].*/{
15728 s//\1/
15729 q
15730 }
15731 /^X\(\/\/\)$/{
15732 s//\1/
15733 q
15734 }
15735 /^X\(\/\).*/{
15736 s//\1/
15737 q
15738 }
15739 s/.*/./; q'`
15740 test -d "$as_dir" && break
15741 done
15742 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 15743 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 15744
c6b750e1 15745
81ecdfbb 15746} # as_fn_mkdir_p
c6b750e1 15747if mkdir -p . 2>/dev/null; then
81ecdfbb 15748 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
15749else
15750 test -d ./-p && rmdir ./-p
15751 as_mkdir_p=false
15752fi
15753
d0ac1c44
SM
15754
15755# as_fn_executable_p FILE
15756# -----------------------
15757# Test if FILE is an executable regular file.
15758as_fn_executable_p ()
15759{
15760 test -f "$1" && test -x "$1"
15761} # as_fn_executable_p
15762as_test_x='test -x'
15763as_executable_p=as_fn_executable_p
c6b750e1
DJ
15764
15765# Sed expression to map a string onto a valid CPP name.
15766as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15767
15768# Sed expression to map a string onto a valid variable name.
15769as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15770
15771
c6b750e1 15772exec 6>&1
81ecdfbb
RW
15773## ----------------------------------- ##
15774## Main body of $CONFIG_STATUS script. ##
15775## ----------------------------------- ##
15776_ASEOF
15777test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15778
15779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15780# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15781# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15782# values after options handling.
15783ac_log="
c6b750e1 15784This file was extended by $as_me, which was
d0ac1c44 15785generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
15786
15787 CONFIG_FILES = $CONFIG_FILES
15788 CONFIG_HEADERS = $CONFIG_HEADERS
15789 CONFIG_LINKS = $CONFIG_LINKS
15790 CONFIG_COMMANDS = $CONFIG_COMMANDS
15791 $ $0 $@
15792
81ecdfbb
RW
15793on `(hostname || uname -n) 2>/dev/null | sed 1q`
15794"
15795
c6b750e1
DJ
15796_ACEOF
15797
81ecdfbb
RW
15798case $ac_config_files in *"
15799"*) set x $ac_config_files; shift; ac_config_files=$*;;
15800esac
c6b750e1 15801
c6b750e1 15802
c6b750e1 15803
81ecdfbb
RW
15804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15805# Files that config.status was made for.
15806config_files="$ac_config_files"
c6b750e1 15807
81ecdfbb 15808_ACEOF
c6b750e1 15809
81ecdfbb 15810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15811ac_cs_usage="\
81ecdfbb
RW
15812\`$as_me' instantiates files and other configuration actions
15813from templates according to the current configuration. Unless the files
15814and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15815
81ecdfbb 15816Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15817
15818 -h, --help print this help, then exit
81ecdfbb 15819 -V, --version print version number and configuration settings, then exit
d0ac1c44 15820 --config print configuration, then exit
81ecdfbb
RW
15821 -q, --quiet, --silent
15822 do not print progress messages
c6b750e1
DJ
15823 -d, --debug don't remove temporary files
15824 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15825 --file=FILE[:TEMPLATE]
15826 instantiate the configuration file FILE
c6b750e1
DJ
15827
15828Configuration files:
15829$config_files
15830
81ecdfbb 15831Report bugs to the package provider."
c6b750e1 15832
81ecdfbb
RW
15833_ACEOF
15834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15835ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
c6b750e1
DJ
15836ac_cs_version="\\
15837config.status
d0ac1c44
SM
15838configured by $0, generated by GNU Autoconf 2.69,
15839 with options \\"\$ac_cs_config\\"
c6b750e1 15840
d0ac1c44 15841Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
15842This config.status script is free software; the Free Software Foundation
15843gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15844
15845ac_pwd='$ac_pwd'
15846srcdir='$srcdir'
15847INSTALL='$INSTALL'
8e957354 15848AWK='$AWK'
81ecdfbb 15849test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15850_ACEOF
15851
81ecdfbb
RW
15852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15853# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15854ac_need_defaults=:
15855while test $# != 0
a0da8069 15856do
c6b750e1 15857 case $1 in
d0ac1c44 15858 --*=?*)
81ecdfbb
RW
15859 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15860 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15861 ac_shift=:
15862 ;;
d0ac1c44
SM
15863 --*=)
15864 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15865 ac_optarg=
15866 ac_shift=:
15867 ;;
81ecdfbb 15868 *)
c6b750e1
DJ
15869 ac_option=$1
15870 ac_optarg=$2
15871 ac_shift=shift
15872 ;;
c6b750e1
DJ
15873 esac
15874
15875 case $ac_option in
15876 # Handling of the options.
a0da8069 15877 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15878 ac_cs_recheck=: ;;
81ecdfbb
RW
15879 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15880 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
15881 --config | --confi | --conf | --con | --co | --c )
15882 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 15883 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15884 debug=: ;;
15885 --file | --fil | --fi | --f )
15886 $ac_shift
81ecdfbb
RW
15887 case $ac_optarg in
15888 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 15889 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
15890 esac
15891 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15892 ac_need_defaults=false;;
81ecdfbb
RW
15893 --he | --h | --help | --hel | -h )
15894 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15896 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15897 ac_cs_silent=: ;;
15898
15899 # This is an error.
d0ac1c44 15900 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 15901Try \`$0 --help' for more information." ;;
c6b750e1 15902
81ecdfbb
RW
15903 *) as_fn_append ac_config_targets " $1"
15904 ac_need_defaults=false ;;
c6b750e1 15905
376a0e54 15906 esac
c6b750e1 15907 shift
376a0e54
CM
15908done
15909
c6b750e1 15910ac_configure_extra_args=
376a0e54 15911
c6b750e1
DJ
15912if $ac_cs_silent; then
15913 exec 6>/dev/null
15914 ac_configure_extra_args="$ac_configure_extra_args --silent"
15915fi
376a0e54 15916
c6b750e1 15917_ACEOF
81ecdfbb 15918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15919if \$ac_cs_recheck; then
d0ac1c44 15920 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
15921 shift
15922 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15923 CONFIG_SHELL='$SHELL'
15924 export CONFIG_SHELL
15925 exec "\$@"
c6b750e1
DJ
15926fi
15927
15928_ACEOF
81ecdfbb
RW
15929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15930exec 5>>config.log
15931{
15932 echo
15933 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15934## Running $as_me. ##
15935_ASBOX
15936 $as_echo "$ac_log"
15937} >&5
c6b750e1 15938
81ecdfbb
RW
15939_ACEOF
15940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15941#
15942# INIT-COMMANDS
15943#
15944extrasub_build="$extrasub_build"
15945 extrasub_host="$extrasub_host"
15946 extrasub_target="$extrasub_target"
15947
81ecdfbb 15948_ACEOF
c6b750e1 15949
81ecdfbb 15950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15951
81ecdfbb 15952# Handling of arguments.
c6b750e1
DJ
15953for ac_config_target in $ac_config_targets
15954do
81ecdfbb
RW
15955 case $ac_config_target in
15956 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15957
d0ac1c44 15958 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15959 esac
15960done
15961
81ecdfbb 15962
c6b750e1
DJ
15963# If the user did not use the arguments to specify the items to instantiate,
15964# then the envvar interface is used. Set only those that are not.
15965# We use the long form for the default assignment because of an extremely
15966# bizarre bug on SunOS 4.1.3.
15967if $ac_need_defaults; then
15968 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15969fi
15970
15971# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15972# simply because there is no reason against having it here, and in addition,
c6b750e1 15973# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15974# Hook for its removal unless debugging.
15975# Note that there is a small window in which the directory will not be cleaned:
15976# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15977$debug ||
15978{
d0ac1c44 15979 tmp= ac_tmp=
81ecdfbb 15980 trap 'exit_status=$?
d0ac1c44
SM
15981 : "${ac_tmp:=$tmp}"
15982 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
15983' 0
15984 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15985}
c6b750e1
DJ
15986# Create a (secure) tmp directory for tmp files.
15987
15988{
81ecdfbb 15989 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 15990 test -d "$tmp"
c6b750e1
DJ
15991} ||
15992{
81ecdfbb
RW
15993 tmp=./conf$$-$RANDOM
15994 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
15995} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15996ac_tmp=$tmp
81ecdfbb
RW
15997
15998# Set up the scripts for CONFIG_FILES section.
15999# No need to generate them if there are no CONFIG_FILES.
16000# This happens for instance with `./config.status config.h'.
16001if test -n "$CONFIG_FILES"; then
16002
16003if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16004 ac_cs_awk_getline=:
16005 ac_cs_awk_pipe_init=
16006 ac_cs_awk_read_file='
16007 while ((getline aline < (F[key])) > 0)
16008 print(aline)
16009 close(F[key])'
16010 ac_cs_awk_pipe_fini=
16011else
16012 ac_cs_awk_getline=false
16013 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16014 ac_cs_awk_read_file='
16015 print "|#_!!_#|"
16016 print "cat " F[key] " &&"
16017 '$ac_cs_awk_pipe_init
16018 # The final `:' finishes the AND list.
16019 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16020fi
16021ac_cr=`echo X | tr X '\015'`
16022# On cygwin, bash can eat \r inside `` if the user requested igncr.
16023# But we know of no other shell where ac_cr would be empty at this
16024# point, so we can use a bashism as a fallback.
16025if test "x$ac_cr" = x; then
16026 eval ac_cr=\$\'\\r\'
16027fi
16028ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16029if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 16030 ac_cs_awk_cr='\\r'
81ecdfbb
RW
16031else
16032 ac_cs_awk_cr=$ac_cr
16033fi
16034
d0ac1c44 16035echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
16036_ACEOF
16037
16038# Create commands to substitute file output variables.
c6b750e1 16039{
81ecdfbb 16040 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d0ac1c44 16041 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
81ecdfbb
RW
16042 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16043 echo "_ACAWK" &&
16044 echo "_ACEOF"
16045} >conf$$files.sh &&
16046. ./conf$$files.sh ||
d0ac1c44 16047 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 16048rm -f conf$$files.sh
c6b750e1 16049
81ecdfbb
RW
16050{
16051 echo "cat >conf$$subs.awk <<_ACEOF" &&
16052 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16053 echo "_ACEOF"
16054} >conf$$subs.sh ||
d0ac1c44
SM
16055 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16056ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
16057ac_delim='%!_!# '
16058for ac_last_try in false false false false false :; do
16059 . ./conf$$subs.sh ||
d0ac1c44 16060 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
16061
16062 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16063 if test $ac_delim_n = $ac_delim_num; then
16064 break
16065 elif $ac_last_try; then
d0ac1c44 16066 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
16067 else
16068 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16069 fi
16070done
16071rm -f conf$$subs.sh
16072
16073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 16074cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 16075_ACEOF
81ecdfbb
RW
16076sed -n '
16077h
16078s/^/S["/; s/!.*/"]=/
16079p
16080g
16081s/^[^!]*!//
16082:repl
16083t repl
16084s/'"$ac_delim"'$//
16085t delim
16086:nl
16087h
d0ac1c44 16088s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
16089t more1
16090s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16091p
16092n
16093b repl
16094:more1
16095s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16096p
16097g
16098s/.\{148\}//
16099t nl
16100:delim
16101h
d0ac1c44 16102s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
16103t more2
16104s/["\\]/\\&/g; s/^/"/; s/$/"/
16105p
16106b
16107:more2
16108s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16109p
16110g
16111s/.\{148\}//
16112t delim
16113' <conf$$subs.awk | sed '
16114/^[^""]/{
16115 N
16116 s/\n//
16117}
16118' >>$CONFIG_STATUS || ac_write_fail=1
16119rm -f conf$$subs.awk
16120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16121_ACAWK
d0ac1c44 16122cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
16123 for (key in S) S_is_set[key] = 1
16124 FS = "\a"
16125 \$ac_cs_awk_pipe_init
16126}
16127{
16128 line = $ 0
16129 nfields = split(line, field, "@")
16130 substed = 0
16131 len = length(field[1])
16132 for (i = 2; i < nfields; i++) {
16133 key = field[i]
16134 keylen = length(key)
16135 if (S_is_set[key]) {
16136 value = S[key]
16137 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16138 len += length(value) + length(field[++i])
16139 substed = 1
16140 } else
16141 len += 1 + keylen
16142 }
16143 if (nfields == 3 && !substed) {
16144 key = field[2]
16145 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16146 \$ac_cs_awk_read_file
16147 next
16148 }
16149 }
16150 print line
16151}
16152\$ac_cs_awk_pipe_fini
16153_ACAWK
16154_ACEOF
16155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16156if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16157 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16158else
16159 cat
d0ac1c44
SM
16160fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16161 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb
RW
16162_ACEOF
16163
d0ac1c44
SM
16164# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16165# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
16166# trailing colons and then remove the whole line if VPATH becomes empty
16167# (actually we leave an empty line to preserve line numbers).
16168if test "x$srcdir" = x.; then
d0ac1c44
SM
16169 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16170h
16171s///
16172s/^/:/
16173s/[ ]*$/:/
16174s/:\$(srcdir):/:/g
16175s/:\${srcdir}:/:/g
16176s/:@srcdir@:/:/g
16177s/^:*//
81ecdfbb 16178s/:*$//
d0ac1c44
SM
16179x
16180s/\(=[ ]*\).*/\1/
16181G
16182s/\n//
81ecdfbb
RW
16183s/^[^=]*=[ ]*$//
16184}'
16185fi
c6b750e1 16186
81ecdfbb
RW
16187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16188fi # test -n "$CONFIG_FILES"
c6b750e1 16189
c6b750e1 16190
81ecdfbb
RW
16191eval set X " :F $CONFIG_FILES "
16192shift
16193for ac_tag
16194do
16195 case $ac_tag in
16196 :[FHLC]) ac_mode=$ac_tag; continue;;
16197 esac
16198 case $ac_mode$ac_tag in
16199 :[FHL]*:*);;
d0ac1c44 16200 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
16201 :[FH]-) ac_tag=-:-;;
16202 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16203 esac
16204 ac_save_IFS=$IFS
16205 IFS=:
16206 set x $ac_tag
16207 IFS=$ac_save_IFS
16208 shift
16209 ac_file=$1
16210 shift
252b5132 16211
81ecdfbb
RW
16212 case $ac_mode in
16213 :L) ac_source=$1;;
16214 :[FH])
16215 ac_file_inputs=
16216 for ac_f
16217 do
16218 case $ac_f in
d0ac1c44 16219 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
16220 *) # Look for the file first in the build tree, then in the source tree
16221 # (if the path is not absolute). The absolute path cannot be DOS-style,
16222 # because $ac_f cannot contain `:'.
16223 test -f "$ac_f" ||
16224 case $ac_f in
16225 [\\/$]*) false;;
16226 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16227 esac ||
d0ac1c44 16228 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
16229 esac
16230 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16231 as_fn_append ac_file_inputs " '$ac_f'"
16232 done
c6b750e1 16233
81ecdfbb
RW
16234 # Let's still pretend it is `configure' which instantiates (i.e., don't
16235 # use $as_me), people would be surprised to read:
16236 # /* config.h. Generated by config.status. */
16237 configure_input='Generated from '`
16238 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16239 `' by configure.'
16240 if test x"$ac_file" != x-; then
16241 configure_input="$ac_file. $configure_input"
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16243$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 16244 fi
81ecdfbb
RW
16245 # Neutralize special characters interpreted by sed in replacement strings.
16246 case $configure_input in #(
16247 *\&* | *\|* | *\\* )
16248 ac_sed_conf_input=`$as_echo "$configure_input" |
16249 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16250 *) ac_sed_conf_input=$configure_input;;
16251 esac
cac3d6c4 16252
81ecdfbb 16253 case $ac_tag in
d0ac1c44
SM
16254 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16255 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
16256 esac
16257 ;;
a0da8069 16258 esac
252b5132 16259
81ecdfbb 16260 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
16261$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16262 X"$ac_file" : 'X\(//\)[^/]' \| \
16263 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
16264 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16265$as_echo X"$ac_file" |
16266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16267 s//\1/
16268 q
16269 }
16270 /^X\(\/\/\)[^/].*/{
16271 s//\1/
16272 q
16273 }
16274 /^X\(\/\/\)$/{
16275 s//\1/
16276 q
16277 }
16278 /^X\(\/\).*/{
16279 s//\1/
16280 q
16281 }
16282 s/.*/./; q'`
16283 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 16284 ac_builddir=.
252b5132 16285
81ecdfbb
RW
16286case "$ac_dir" in
16287.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16288*)
16289 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16290 # A ".." for each directory in $ac_dir_suffix.
16291 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16292 case $ac_top_builddir_sub in
16293 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16294 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16295 esac ;;
16296esac
16297ac_abs_top_builddir=$ac_pwd
16298ac_abs_builddir=$ac_pwd$ac_dir_suffix
16299# for backward compatibility:
16300ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
16301
16302case $srcdir in
81ecdfbb 16303 .) # We are building in place.
c6b750e1 16304 ac_srcdir=.
81ecdfbb
RW
16305 ac_top_srcdir=$ac_top_builddir_sub
16306 ac_abs_top_srcdir=$ac_pwd ;;
16307 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 16308 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
16309 ac_top_srcdir=$srcdir
16310 ac_abs_top_srcdir=$srcdir ;;
16311 *) # Relative name.
16312 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16313 ac_top_srcdir=$ac_top_build_prefix$srcdir
16314 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 16315esac
81ecdfbb 16316ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 16317
252b5132 16318
81ecdfbb
RW
16319 case $ac_mode in
16320 :F)
16321 #
16322 # CONFIG_FILE
16323 #
c6b750e1
DJ
16324
16325 case $INSTALL in
16326 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 16327 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 16328 esac
81ecdfbb 16329_ACEOF
252b5132 16330
81ecdfbb
RW
16331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16332# If the template does not know about datarootdir, expand it.
16333# FIXME: This hack should be removed a few years after 2.60.
16334ac_datarootdir_hack=; ac_datarootdir_seen=
16335ac_sed_dataroot='
16336/datarootdir/ {
16337 p
16338 q
16339}
16340/@datadir@/p
16341/@docdir@/p
16342/@infodir@/p
16343/@localedir@/p
16344/@mandir@/p'
16345case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16346*datarootdir*) ac_datarootdir_seen=yes;;
16347*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16349$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 16350_ACEOF
81ecdfbb
RW
16351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16352 ac_datarootdir_hack='
16353 s&@datadir@&$datadir&g
16354 s&@docdir@&$docdir&g
16355 s&@infodir@&$infodir&g
16356 s&@localedir@&$localedir&g
16357 s&@mandir@&$mandir&g
16358 s&\\\${datarootdir}&$datarootdir&g' ;;
16359esac
16360_ACEOF
16361
16362# Neutralize VPATH when `$srcdir' = `.'.
16363# Shell code in configure.ac might set extrasub.
16364# FIXME: do we really want to maintain this feature?
16365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16366ac_sed_extra="$ac_vpsub
c6b750e1
DJ
16367$extrasub
16368_ACEOF
81ecdfbb 16369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
16370:t
16371/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
16372s|@configure_input@|$ac_sed_conf_input|;t t
16373s&@top_builddir@&$ac_top_builddir_sub&;t t
16374s&@top_build_prefix@&$ac_top_build_prefix&;t t
16375s&@srcdir@&$ac_srcdir&;t t
16376s&@abs_srcdir@&$ac_abs_srcdir&;t t
16377s&@top_srcdir@&$ac_top_srcdir&;t t
16378s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16379s&@builddir@&$ac_builddir&;t t
16380s&@abs_builddir@&$ac_abs_builddir&;t t
16381s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16382s&@INSTALL@&$ac_INSTALL&;t t
16383$ac_datarootdir_hack
16384"
16385eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16386if $ac_cs_awk_getline; then
d0ac1c44 16387 $AWK -f "$ac_tmp/subs.awk"
81ecdfbb 16388else
d0ac1c44
SM
16389 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16390fi \
16391 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
16392
16393test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
16394 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16395 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16396 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 16397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16398which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 16399$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16400which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 16401
d0ac1c44 16402 rm -f "$ac_tmp/stdin"
81ecdfbb 16403 case $ac_file in
d0ac1c44
SM
16404 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16405 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 16406 esac \
d0ac1c44 16407 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 16408 ;;
c148b4cb 16409
c148b4cb 16410
c148b4cb 16411
81ecdfbb
RW
16412 esac
16413
06a51eac
RW
16414
16415 case $ac_file$ac_mode in
16416 "Makefile":F) sed "$extrasub_build" Makefile |
16417 sed "$extrasub_host" |
16418 sed "$extrasub_target" > mf$$
16419 mv -f mf$$ Makefile ;;
16420
16421 esac
81ecdfbb
RW
16422done # for ac_tag
16423
16424
16425as_fn_exit 0
c6b750e1 16426_ACEOF
c6b750e1
DJ
16427ac_clean_files=$ac_clean_files_save
16428
81ecdfbb 16429test $ac_write_fail = 0 ||
d0ac1c44 16430 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 16431
c6b750e1
DJ
16432
16433# configure is writing to config.log, and then calls config.status.
16434# config.status does its own redirection, appending to config.log.
16435# Unfortunately, on DOS this fails, as config.log is still kept open
16436# by configure, so config.status won't be able to write to it; its
16437# output is simply discarded. So we exec the FD to /dev/null,
16438# effectively closing config.log, so it can be properly (re)opened and
16439# appended to by config.status. When coming back to configure, we
16440# need to make the FD available again.
16441if test "$no_create" != yes; then
16442 ac_cs_success=:
16443 ac_config_status_args=
16444 test "$silent" = yes &&
16445 ac_config_status_args="$ac_config_status_args --quiet"
16446 exec 5>/dev/null
16447 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16448 exec 5>>config.log
16449 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16450 # would make configure fail if this is the last instruction.
d0ac1c44 16451 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
16452fi
16453if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16455$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 16456fi
c148b4cb 16457