]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
Delete unused COFF gas macro
[thirdparty/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
d0ac1c44
SM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 90as_myself=
81ecdfbb
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
c6b750e1
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d0ac1c44
SM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
d0ac1c44
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
81ecdfbb
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
8e957354
PB
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
81ecdfbb
RW
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
c6b750e1 211do
81ecdfbb
RW
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
d0ac1c44
SM
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
81ecdfbb
RW
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
c6b750e1 266 else
81ecdfbb
RW
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
c6b750e1 271 fi
81ecdfbb
RW
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
c6b750e1 301
81ecdfbb
RW
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
356
357
358} # as_fn_mkdir_p
d0ac1c44
SM
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
81ecdfbb
RW
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
d0ac1c44
SM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
81ecdfbb
RW
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 407# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
408as_fn_error ()
409{
d0ac1c44
SM
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 414 fi
d0ac1c44 415 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
421 as_expr=expr
422else
423 as_expr=false
424fi
425
81ecdfbb 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
427 as_basename=basename
428else
429 as_basename=false
430fi
431
81ecdfbb
RW
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
c6b750e1 437
81ecdfbb 438as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
c6b750e1 456
c6b750e1
DJ
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
c6b750e1 464
81ecdfbb
RW
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
c6b750e1 474 sed '
81ecdfbb
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
c6b750e1 479 N
81ecdfbb
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 482 t loop
81ecdfbb 483 s/-\n.*//
c6b750e1 484 ' >$as_me.lineno &&
81ecdfbb
RW
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
c6b750e1 487
d0ac1c44
SM
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
c6b750e1
DJ
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
c6b750e1
DJ
496 # Exit status is that of the last command.
497 exit
498}
499
81ecdfbb
RW
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
c6b750e1
DJ
511esac
512
81ecdfbb
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
c6b750e1 516else
81ecdfbb
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
c6b750e1 519fi
81ecdfbb
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 522 as_ln_s='ln -s'
81ecdfbb
RW
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 526 # In both cases, we have to default to `cp -pR'.
81ecdfbb 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 528 as_ln_s='cp -pR'
81ecdfbb
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
d0ac1c44 532 as_ln_s='cp -pR'
c6b750e1 533 fi
c6b750e1 534else
d0ac1c44 535 as_ln_s='cp -pR'
c6b750e1 536fi
81ecdfbb
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
539
540if mkdir -p . 2>/dev/null; then
81ecdfbb 541 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
d0ac1c44
SM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
c6b750e1
DJ
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
d0ac1c44
SM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
a0da8069 559
c6b750e1 560# Name of the host.
d0ac1c44 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
c6b750e1
DJ
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
c6b750e1
DJ
565#
566# Initializations.
567#
a0da8069 568ac_default_prefix=/usr/local
81ecdfbb 569ac_clean_files=
c6b750e1 570ac_config_libobj_dir=.
81ecdfbb 571LIBOBJS=
c6b750e1
DJ
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
c6b750e1
DJ
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
81ecdfbb 583PACKAGE_URL=
c6b750e1
DJ
584
585ac_unique_file="move-if-change"
81ecdfbb
RW
586enable_option_checking=no
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589compare_exclusions
590stage2_werror_flag
591stage1_checking
592stage1_cflags
593MAINT
594MAINTAINER_MODE_FALSE
595MAINTAINER_MODE_TRUE
596COMPILER_NM_FOR_TARGET
597COMPILER_LD_FOR_TARGET
598COMPILER_AS_FOR_TARGET
599FLAGS_FOR_TARGET
600RAW_CXX_FOR_TARGET
601WINDMC_FOR_TARGET
602WINDRES_FOR_TARGET
603STRIP_FOR_TARGET
b121d7d4 604READELF_FOR_TARGET
81ecdfbb
RW
605RANLIB_FOR_TARGET
606OBJDUMP_FOR_TARGET
6b91c541 607OBJCOPY_FOR_TARGET
81ecdfbb
RW
608NM_FOR_TARGET
609LIPO_FOR_TARGET
610LD_FOR_TARGET
611DLLTOOL_FOR_TARGET
612AS_FOR_TARGET
613AR_FOR_TARGET
e552509b 614GOC_FOR_TARGET
81ecdfbb 615GFORTRAN_FOR_TARGET
81ecdfbb
RW
616GCC_FOR_TARGET
617CXX_FOR_TARGET
618CC_FOR_TARGET
50ad1254
L
619RANLIB_PLUGIN_OPTION
620AR_PLUGIN_OPTION
de83289e 621PKG_CONFIG_PATH
b121d7d4 622READELF
81ecdfbb
RW
623OBJDUMP
624OBJCOPY
625WINDMC
626WINDRES
627STRIP
628RANLIB
629NM
630LIPO
631LD
632DLLTOOL
633AS
634AR
635RUNTEST
636EXPECT
637MAKEINFO
638FLEX
639LEX
640M4
641BISON
642YACC
81ecdfbb
RW
643WINDRES_FOR_BUILD
644WINDMC_FOR_BUILD
645RANLIB_FOR_BUILD
646NM_FOR_BUILD
647LD_FOR_BUILD
648LDFLAGS_FOR_BUILD
e552509b 649GOC_FOR_BUILD
81ecdfbb 650GFORTRAN_FOR_BUILD
81ecdfbb
RW
651DLLTOOL_FOR_BUILD
652CXX_FOR_BUILD
653CXXFLAGS_FOR_BUILD
654CFLAGS_FOR_BUILD
655CC_FOR_BUILD
656AS_FOR_BUILD
657AR_FOR_BUILD
911e63d0 658target_configdirs
81ecdfbb 659configdirs
81ecdfbb 660build_configdirs
81ecdfbb
RW
661INSTALL_GDB_TK
662GDB_TK
663CONFIGURE_GDB_TK
664build_tooldir
665tooldir
666GCC_SHLIB_SUBDIR
667RPATH_ENVVAR
4074d5f2
RW
668target_configargs
669host_configargs
670build_configargs
96655cc4 671BUILD_CONFIG
91c1f14c 672LDFLAGS_FOR_TARGET
81ecdfbb
RW
673CXXFLAGS_FOR_TARGET
674CFLAGS_FOR_TARGET
675DEBUG_PREFIX_CFLAGS_FOR_TARGET
676SYSROOT_CFLAGS_FOR_TARGET
bf41f30d 677get_gcc_base_ver
e81d5d05 678extra_host_zlib_configure_flags
700d40ca 679extra_host_libiberty_configure_flags
1b6c0831 680stage1_languages
bf41f30d 681host_shared
1b6c0831
L
682extra_linker_plugin_flags
683extra_linker_plugin_configure_flags
7ec59b9e 684islinc
1b6c0831 685isllibs
81ecdfbb 686poststage1_ldflags
143754cd 687poststage1_libs
81ecdfbb 688stage1_ldflags
b3676d82 689stage1_libs
7ec59b9e 690extra_isl_gmp_configure_flags
81ecdfbb
RW
691extra_mpc_mpfr_configure_flags
692extra_mpc_gmp_configure_flags
693extra_mpfr_configure_flags
694gmpinc
695gmplibs
af019bfd
L
696PGO_BUILD_LTO_CFLAGS
697PGO_BUILD_USE_CFLAGS
698PGO_BUILD_GEN_CFLAGS
81ecdfbb
RW
699do_compare
700GNATMAKE
701GNATBIND
702ac_ct_CXX
703CXXFLAGS
704CXX
705OBJEXT
706EXEEXT
707ac_ct_CC
708CPPFLAGS
709LDFLAGS
710CFLAGS
711CC
1b6c0831 712extra_liboffloadmic_configure_flags
81ecdfbb
RW
713target_subdir
714host_subdir
715build_subdir
716build_libsubdir
8e957354
PB
717AWK
718SED
81ecdfbb
RW
719LN_S
720LN
721INSTALL_DATA
722INSTALL_SCRIPT
723INSTALL_PROGRAM
724target_os
725target_vendor
726target_cpu
727target
728host_os
729host_vendor
730host_cpu
731host
732target_noncanonical
733host_noncanonical
734build_noncanonical
735build_os
736build_vendor
737build_cpu
738build
739TOPLEVEL_CONFIGURE_ARGUMENTS
740target_alias
741host_alias
742build_alias
743LIBS
744ECHO_T
745ECHO_N
746ECHO_C
747DEFS
748mandir
749localedir
750libdir
751psdir
752pdfdir
753dvidir
754htmldir
755infodir
756docdir
757oldincludedir
758includedir
759localstatedir
760sharedstatedir
761sysconfdir
762datadir
763datarootdir
764libexecdir
765sbindir
766bindir
767program_transform_name
768prefix
769exec_prefix
770PACKAGE_URL
771PACKAGE_BUGREPORT
772PACKAGE_STRING
773PACKAGE_VERSION
774PACKAGE_TARNAME
775PACKAGE_NAME
776PATH_SEPARATOR
777SHELL'
778ac_subst_files='serialization_dependencies
779host_makefile_frag
780target_makefile_frag
781alphaieee_frag
782ospace_frag'
783ac_user_opts='
784enable_option_checking
785with_build_libsubdir
cf39cfc5 786with_system_zlib
1b6c0831
L
787enable_as_accelerator_for
788enable_offload_targets
81ecdfbb 789enable_gold
c7791212 790enable_ld
bb368aad 791enable_gprofng
edeefb67 792enable_compressed_debug_sections
89a1e9c3
PB
793enable_libquadmath
794enable_libquadmath_support
81ecdfbb
RW
795enable_libada
796enable_libssp
f66a9a70 797enable_libstdcxx
1b6c0831 798enable_liboffloadmic
ffdd6afc 799enable_bootstrap
af019bfd 800enable_pgo_build
81ecdfbb
RW
801with_mpc
802with_mpc_include
803with_mpc_lib
804with_mpfr_dir
805with_mpfr
806with_mpfr_include
807with_mpfr_lib
808with_gmp_dir
809with_gmp
810with_gmp_include
811with_gmp_lib
81ecdfbb 812with_stage1_libs
c1a5d03a 813with_static_standard_libraries
b3676d82 814with_stage1_ldflags
81ecdfbb 815with_boot_libs
143754cd 816with_boot_ldflags
7ec59b9e
L
817with_isl
818with_isl_include
819with_isl_lib
820enable_isl_version_check
700d40ca 821enable_lto
1b6c0831
L
822enable_linker_plugin_configure_flags
823enable_linker_plugin_flags
bf41f30d 824enable_host_shared
81ecdfbb
RW
825enable_stage1_languages
826enable_objc_gc
05a13254
NC
827with_target_bdw_gc
828with_target_bdw_gc_include
829with_target_bdw_gc_lib
bf41f30d 830with_gcc_major_version_only
81ecdfbb
RW
831with_build_sysroot
832with_debug_prefix_map
96655cc4 833with_build_config
730af8ee 834enable_vtable_verify
81ecdfbb
RW
835enable_serial_configure
836with_build_time_tools
837enable_maintainer_mode
838enable_stage1_checking
839enable_werror
81ecdfbb
RW
840'
841 ac_precious_vars='build_alias
842host_alias
843target_alias
844CC
845CFLAGS
846LDFLAGS
847LIBS
848CPPFLAGS
849CXX
850CXXFLAGS
851CCC
4074d5f2
RW
852build_configargs
853host_configargs
854target_configargs
81ecdfbb
RW
855AR
856AS
857DLLTOOL
858LD
859LIPO
860NM
861RANLIB
862STRIP
863WINDRES
864WINDMC
865OBJCOPY
866OBJDUMP
b121d7d4 867READELF
81ecdfbb
RW
868CC_FOR_TARGET
869CXX_FOR_TARGET
870GCC_FOR_TARGET
81ecdfbb 871GFORTRAN_FOR_TARGET
e552509b 872GOC_FOR_TARGET
81ecdfbb
RW
873AR_FOR_TARGET
874AS_FOR_TARGET
875DLLTOOL_FOR_TARGET
876LD_FOR_TARGET
877LIPO_FOR_TARGET
878NM_FOR_TARGET
6b91c541 879OBJCOPY_FOR_TARGET
81ecdfbb
RW
880OBJDUMP_FOR_TARGET
881RANLIB_FOR_TARGET
b121d7d4 882READELF_FOR_TARGET
81ecdfbb
RW
883STRIP_FOR_TARGET
884WINDRES_FOR_TARGET
885WINDMC_FOR_TARGET'
886
a0da8069
NN
887
888# Initialize some variables set by options.
c6b750e1
DJ
889ac_init_help=
890ac_init_version=false
81ecdfbb
RW
891ac_unrecognized_opts=
892ac_unrecognized_sep=
a0da8069
NN
893# The variables have the same names as the options, with
894# dashes changed to underlines.
c6b750e1 895cache_file=/dev/null
a0da8069 896exec_prefix=NONE
a0da8069 897no_create=
a0da8069
NN
898no_recursion=
899prefix=NONE
900program_prefix=NONE
901program_suffix=NONE
902program_transform_name=s,x,x,
903silent=
904site=
905srcdir=
a0da8069
NN
906verbose=
907x_includes=NONE
908x_libraries=NONE
c6b750e1
DJ
909
910# Installation directory options.
911# These are left unexpanded so users can "make install exec_prefix=/foo"
912# and all the variables that are supposed to be based on exec_prefix
913# by default will actually change.
914# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 915# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
916bindir='${exec_prefix}/bin'
917sbindir='${exec_prefix}/sbin'
918libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
919datarootdir='${prefix}/share'
920datadir='${datarootdir}'
a0da8069
NN
921sysconfdir='${prefix}/etc'
922sharedstatedir='${prefix}/com'
923localstatedir='${prefix}/var'
a0da8069
NN
924includedir='${prefix}/include'
925oldincludedir='/usr/include'
81ecdfbb
RW
926docdir='${datarootdir}/doc/${PACKAGE}'
927infodir='${datarootdir}/info'
928htmldir='${docdir}'
929dvidir='${docdir}'
930pdfdir='${docdir}'
931psdir='${docdir}'
932libdir='${exec_prefix}/lib'
933localedir='${datarootdir}/locale'
934mandir='${datarootdir}/man'
252b5132 935
a0da8069 936ac_prev=
81ecdfbb 937ac_dashdash=
a0da8069
NN
938for ac_option
939do
a0da8069
NN
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
81ecdfbb 942 eval $ac_prev=\$ac_option
a0da8069
NN
943 ac_prev=
944 continue
945 fi
252b5132 946
81ecdfbb 947 case $ac_option in
d0ac1c44
SM
948 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949 *=) ac_optarg= ;;
950 *) ac_optarg=yes ;;
81ecdfbb 951 esac
a0da8069
NN
952
953 # Accept the important Cygnus configure options, so we can diagnose typos.
954
81ecdfbb
RW
955 case $ac_dashdash$ac_option in
956 --)
957 ac_dashdash=yes ;;
a0da8069
NN
958
959 -bindir | --bindir | --bindi | --bind | --bin | --bi)
960 ac_prev=bindir ;;
961 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 962 bindir=$ac_optarg ;;
a0da8069
NN
963
964 -build | --build | --buil | --bui | --bu)
c6b750e1 965 ac_prev=build_alias ;;
a0da8069 966 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 967 build_alias=$ac_optarg ;;
a0da8069
NN
968
969 -cache-file | --cache-file | --cache-fil | --cache-fi \
970 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971 ac_prev=cache_file ;;
972 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
974 cache_file=$ac_optarg ;;
975
976 --config-cache | -C)
977 cache_file=config.cache ;;
a0da8069 978
81ecdfbb 979 -datadir | --datadir | --datadi | --datad)
a0da8069 980 ac_prev=datadir ;;
81ecdfbb 981 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 982 datadir=$ac_optarg ;;
a0da8069 983
81ecdfbb
RW
984 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985 | --dataroo | --dataro | --datar)
986 ac_prev=datarootdir ;;
987 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989 datarootdir=$ac_optarg ;;
990
a0da8069 991 -disable-* | --disable-*)
81ecdfbb 992 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 993 # Reject names that are not valid shell variable names.
81ecdfbb 994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 995 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
999 *"
1000"enable_$ac_useropt"
1001"*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=no ;;
1006
1007 -docdir | --docdir | --docdi | --doc | --do)
1008 ac_prev=docdir ;;
1009 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010 docdir=$ac_optarg ;;
1011
1012 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 ac_prev=dvidir ;;
1014 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015 dvidir=$ac_optarg ;;
a0da8069
NN
1016
1017 -enable-* | --enable-*)
81ecdfbb 1018 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 1019 # Reject names that are not valid shell variable names.
81ecdfbb 1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1021 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1025 *"
1026"enable_$ac_useropt"
1027"*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
a0da8069 1030 esac
81ecdfbb 1031 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1032
1033 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035 | --exec | --exe | --ex)
1036 ac_prev=exec_prefix ;;
1037 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039 | --exec=* | --exe=* | --ex=*)
c6b750e1 1040 exec_prefix=$ac_optarg ;;
a0da8069
NN
1041
1042 -gas | --gas | --ga | --g)
1043 # Obsolete; use --with-gas.
1044 with_gas=yes ;;
1045
c6b750e1
DJ
1046 -help | --help | --hel | --he | -h)
1047 ac_init_help=long ;;
1048 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049 ac_init_help=recursive ;;
1050 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051 ac_init_help=short ;;
a0da8069
NN
1052
1053 -host | --host | --hos | --ho)
c6b750e1 1054 ac_prev=host_alias ;;
a0da8069 1055 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1056 host_alias=$ac_optarg ;;
a0da8069 1057
81ecdfbb
RW
1058 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059 ac_prev=htmldir ;;
1060 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061 | --ht=*)
1062 htmldir=$ac_optarg ;;
1063
a0da8069
NN
1064 -includedir | --includedir | --includedi | --included | --include \
1065 | --includ | --inclu | --incl | --inc)
1066 ac_prev=includedir ;;
1067 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1069 includedir=$ac_optarg ;;
a0da8069
NN
1070
1071 -infodir | --infodir | --infodi | --infod | --info | --inf)
1072 ac_prev=infodir ;;
1073 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1074 infodir=$ac_optarg ;;
a0da8069
NN
1075
1076 -libdir | --libdir | --libdi | --libd)
1077 ac_prev=libdir ;;
1078 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1079 libdir=$ac_optarg ;;
a0da8069
NN
1080
1081 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082 | --libexe | --libex | --libe)
1083 ac_prev=libexecdir ;;
1084 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1086 libexecdir=$ac_optarg ;;
a0da8069 1087
81ecdfbb
RW
1088 -localedir | --localedir | --localedi | --localed | --locale)
1089 ac_prev=localedir ;;
1090 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091 localedir=$ac_optarg ;;
1092
a0da8069 1093 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1094 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1095 ac_prev=localstatedir ;;
1096 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1097 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1098 localstatedir=$ac_optarg ;;
a0da8069
NN
1099
1100 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101 ac_prev=mandir ;;
1102 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1103 mandir=$ac_optarg ;;
a0da8069
NN
1104
1105 -nfp | --nfp | --nf)
1106 # Obsolete; use --without-fp.
1107 with_fp=no ;;
1108
1109 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1110 | --no-cr | --no-c | -n)
a0da8069
NN
1111 no_create=yes ;;
1112
1113 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115 no_recursion=yes ;;
1116
1117 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119 | --oldin | --oldi | --old | --ol | --o)
1120 ac_prev=oldincludedir ;;
1121 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1124 oldincludedir=$ac_optarg ;;
a0da8069
NN
1125
1126 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127 ac_prev=prefix ;;
1128 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1129 prefix=$ac_optarg ;;
a0da8069
NN
1130
1131 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132 | --program-pre | --program-pr | --program-p)
1133 ac_prev=program_prefix ;;
1134 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1136 program_prefix=$ac_optarg ;;
a0da8069
NN
1137
1138 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139 | --program-suf | --program-su | --program-s)
1140 ac_prev=program_suffix ;;
1141 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1143 program_suffix=$ac_optarg ;;
a0da8069
NN
1144
1145 -program-transform-name | --program-transform-name \
1146 | --program-transform-nam | --program-transform-na \
1147 | --program-transform-n | --program-transform- \
1148 | --program-transform | --program-transfor \
1149 | --program-transfo | --program-transf \
1150 | --program-trans | --program-tran \
1151 | --progr-tra | --program-tr | --program-t)
1152 ac_prev=program_transform_name ;;
1153 -program-transform-name=* | --program-transform-name=* \
1154 | --program-transform-nam=* | --program-transform-na=* \
1155 | --program-transform-n=* | --program-transform-=* \
1156 | --program-transform=* | --program-transfor=* \
1157 | --program-transfo=* | --program-transf=* \
1158 | --program-trans=* | --program-tran=* \
1159 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1160 program_transform_name=$ac_optarg ;;
a0da8069 1161
81ecdfbb
RW
1162 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163 ac_prev=pdfdir ;;
1164 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165 pdfdir=$ac_optarg ;;
1166
1167 -psdir | --psdir | --psdi | --psd | --ps)
1168 ac_prev=psdir ;;
1169 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170 psdir=$ac_optarg ;;
1171
a0da8069
NN
1172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173 | -silent | --silent | --silen | --sile | --sil)
1174 silent=yes ;;
1175
1176 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177 ac_prev=sbindir ;;
1178 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179 | --sbi=* | --sb=*)
c6b750e1 1180 sbindir=$ac_optarg ;;
a0da8069
NN
1181
1182 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184 | --sharedst | --shareds | --shared | --share | --shar \
1185 | --sha | --sh)
1186 ac_prev=sharedstatedir ;;
1187 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190 | --sha=* | --sh=*)
c6b750e1 1191 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1192
1193 -site | --site | --sit)
1194 ac_prev=site ;;
1195 -site=* | --site=* | --sit=*)
c6b750e1 1196 site=$ac_optarg ;;
a0da8069
NN
1197
1198 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199 ac_prev=srcdir ;;
1200 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1201 srcdir=$ac_optarg ;;
a0da8069
NN
1202
1203 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204 | --syscon | --sysco | --sysc | --sys | --sy)
1205 ac_prev=sysconfdir ;;
1206 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1208 sysconfdir=$ac_optarg ;;
a0da8069
NN
1209
1210 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1211 ac_prev=target_alias ;;
a0da8069 1212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1213 target_alias=$ac_optarg ;;
a0da8069
NN
1214
1215 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216 verbose=yes ;;
1217
c6b750e1
DJ
1218 -version | --version | --versio | --versi | --vers | -V)
1219 ac_init_version=: ;;
a0da8069
NN
1220
1221 -with-* | --with-*)
81ecdfbb 1222 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1223 # Reject names that are not valid shell variable names.
81ecdfbb 1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1225 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1229 *"
1230"with_$ac_useropt"
1231"*) ;;
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
a0da8069 1234 esac
81ecdfbb 1235 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1236
1237 -without-* | --without-*)
81ecdfbb 1238 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1239 # Reject names that are not valid shell variable names.
81ecdfbb 1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1241 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1242 ac_useropt_orig=$ac_useropt
1243 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1245 *"
1246"with_$ac_useropt"
1247"*) ;;
1248 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1249 ac_unrecognized_sep=', ';;
1250 esac
1251 eval with_$ac_useropt=no ;;
a0da8069
NN
1252
1253 --x)
1254 # Obsolete; use --with-x.
1255 with_x=yes ;;
1256
1257 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1258 | --x-incl | --x-inc | --x-in | --x-i)
1259 ac_prev=x_includes ;;
1260 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1261 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1262 x_includes=$ac_optarg ;;
a0da8069
NN
1263
1264 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1265 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1266 ac_prev=x_libraries ;;
1267 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1268 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1269 x_libraries=$ac_optarg ;;
a0da8069 1270
d0ac1c44
SM
1271 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1272Try \`$0 --help' for more information"
a0da8069
NN
1273 ;;
1274
c6b750e1
DJ
1275 *=*)
1276 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1278 case $ac_envvar in #(
1279 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1280 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1281 esac
1282 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1283 export $ac_envvar ;;
1284
a0da8069 1285 *)
c6b750e1 1286 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1287 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1288 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1289 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1290 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
a0da8069
NN
1291 ;;
1292
1293 esac
1294done
1295
1296if test -n "$ac_prev"; then
c6b750e1 1297 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1298 as_fn_error $? "missing argument to $ac_option"
a0da8069 1299fi
a0da8069 1300
81ecdfbb
RW
1301if test -n "$ac_unrecognized_opts"; then
1302 case $enable_option_checking in
1303 no) ;;
d0ac1c44 1304 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1305 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1306 esac
81ecdfbb 1307fi
a0da8069 1308
81ecdfbb
RW
1309# Check all directory arguments for consistency.
1310for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311 datadir sysconfdir sharedstatedir localstatedir includedir \
1312 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313 libdir localedir mandir
a0da8069 1314do
81ecdfbb
RW
1315 eval ac_val=\$$ac_var
1316 # Remove trailing slashes.
1317 case $ac_val in
1318 */ )
1319 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1320 eval $ac_var=\$ac_val;;
1321 esac
1322 # Be sure to have absolute directory names.
c6b750e1 1323 case $ac_val in
81ecdfbb
RW
1324 [\\/$]* | ?:[\\/]* ) continue;;
1325 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1326 esac
d0ac1c44 1327 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1328done
1329
c6b750e1
DJ
1330# There might be people who depend on the old broken behavior: `$host'
1331# used to hold the argument of --host etc.
1332# FIXME: To remove some day.
1333build=$build_alias
1334host=$host_alias
1335target=$target_alias
376a0e54 1336
c6b750e1
DJ
1337# FIXME: To remove some day.
1338if test "x$host_alias" != x; then
1339 if test "x$build_alias" = x; then
1340 cross_compiling=maybe
c6b750e1
DJ
1341 elif test "x$build_alias" != "x$host_alias"; then
1342 cross_compiling=yes
1343 fi
1344fi
1345
1346ac_tool_prefix=
1347test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348
1349test "$silent" = yes && exec 6>/dev/null
a0da8069 1350
a0da8069 1351
81ecdfbb
RW
1352ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353ac_ls_di=`ls -di .` &&
1354ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1355 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1356test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1357 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1358
1359
a0da8069
NN
1360# Find the source files, if location was not specified.
1361if test -z "$srcdir"; then
1362 ac_srcdir_defaulted=yes
81ecdfbb
RW
1363 # Try the directory containing this script, then the parent directory.
1364 ac_confdir=`$as_dirname -- "$as_myself" ||
1365$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366 X"$as_myself" : 'X\(//\)[^/]' \| \
1367 X"$as_myself" : 'X\(//\)$' \| \
1368 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1369$as_echo X"$as_myself" |
1370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\/\)[^/].*/{
1375 s//\1/
1376 q
1377 }
1378 /^X\(\/\/\)$/{
1379 s//\1/
1380 q
1381 }
1382 /^X\(\/\).*/{
1383 s//\1/
1384 q
1385 }
1386 s/.*/./; q'`
a0da8069 1387 srcdir=$ac_confdir
81ecdfbb 1388 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1389 srcdir=..
1390 fi
1391else
1392 ac_srcdir_defaulted=no
1393fi
81ecdfbb
RW
1394if test ! -r "$srcdir/$ac_unique_file"; then
1395 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1396 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1397fi
1398ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1399ac_abs_confdir=`(
d0ac1c44 1400 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1401 pwd)`
1402# When building in place, set srcdir=.
1403if test "$ac_abs_confdir" = "$ac_pwd"; then
1404 srcdir=.
1405fi
1406# Remove unnecessary trailing slashes from srcdir.
1407# Double slashes in file names in object file debugging info
1408# mess up M-x gdb in Emacs.
1409case $srcdir in
1410*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1411esac
6d0cd39e
AM
1412case $srcdir in
1413 *" "*)
d0ac1c44 1414 as_fn_error $? "path to source, $srcdir, contains spaces"
6d0cd39e
AM
1415 ;;
1416esac
9cc8ae67
PB
1417ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1418
81ecdfbb
RW
1419for ac_var in $ac_precious_vars; do
1420 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_env_${ac_var}_value=\$${ac_var}
1422 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1424done
c6b750e1
DJ
1425
1426#
1427# Report the --help message.
1428#
1429if test "$ac_init_help" = "long"; then
1430 # Omit some internal or obsolete options to make the list less imposing.
1431 # This message is too long to be a string in the A/UX 3.1 sh.
1432 cat <<_ACEOF
1433\`configure' configures this package to adapt to many kinds of systems.
1434
1435Usage: $0 [OPTION]... [VAR=VALUE]...
1436
1437To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438VAR=VALUE. See below for descriptions of some of the useful variables.
1439
1440Defaults for the options are specified in brackets.
1441
1442Configuration:
1443 -h, --help display this help and exit
1444 --help=short display options specific to this package
1445 --help=recursive display the short help of all the included packages
1446 -V, --version display version information and exit
d0ac1c44 1447 -q, --quiet, --silent do not print \`checking ...' messages
c6b750e1
DJ
1448 --cache-file=FILE cache test results in FILE [disabled]
1449 -C, --config-cache alias for \`--cache-file=config.cache'
1450 -n, --no-create do not create output files
1451 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1452
c6b750e1
DJ
1453Installation directories:
1454 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1455 [$ac_default_prefix]
c6b750e1 1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1457 [PREFIX]
c6b750e1
DJ
1458
1459By default, \`make install' will install all the files in
1460\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1461an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462for instance \`--prefix=\$HOME'.
1463
1464For better control, use the options below.
1465
1466Fine tuning of the installation directories:
81ecdfbb
RW
1467 --bindir=DIR user executables [EPREFIX/bin]
1468 --sbindir=DIR system admin executables [EPREFIX/sbin]
1469 --libexecdir=DIR program executables [EPREFIX/libexec]
1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1473 --libdir=DIR object code libraries [EPREFIX/lib]
1474 --includedir=DIR C header files [PREFIX/include]
1475 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1476 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1477 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1478 --infodir=DIR info documentation [DATAROOTDIR/info]
1479 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1480 --mandir=DIR man documentation [DATAROOTDIR/man]
1481 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1482 --htmldir=DIR html documentation [DOCDIR]
1483 --dvidir=DIR dvi documentation [DOCDIR]
1484 --pdfdir=DIR pdf documentation [DOCDIR]
1485 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1486_ACEOF
1487
1488 cat <<\_ACEOF
1489
1490Program names:
1491 --program-prefix=PREFIX prepend PREFIX to installed program names
1492 --program-suffix=SUFFIX append SUFFIX to installed program names
1493 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1494
1495System types:
1496 --build=BUILD configure for building on BUILD [guessed]
1497 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1498 --target=TARGET configure for building compilers for TARGET [HOST]
1499_ACEOF
a0da8069 1500fi
a0da8069 1501
c6b750e1
DJ
1502if test -n "$ac_init_help"; then
1503
1504 cat <<\_ACEOF
1505
1506Optional Features:
81ecdfbb 1507 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1b6c0831
L
1510 --enable-as-accelerator-for=ARG
1511 build as offload target compiler. Specify offload
1512 host triple by ARG
1513 --enable-offload-targets=LIST
1514 enable offloading to devices from comma-separated
1515 LIST of TARGET[=DIR]. Use optional path to find
1516 offload target compiler during the build
c7791212 1517 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1518 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
bb368aad 1519 --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
6c3bc0f8 1520 --enable-compressed-debug-sections={all,gas,gold,ld,none}
edeefb67
L
1521 Enable compressed debug sections for gas, gold or ld
1522 by default
89a1e9c3
PB
1523 --disable-libquadmath do not build libquadmath directory
1524 --disable-libquadmath-support
1525 disable libquadmath support for Fortran
521ec477
DD
1526 --enable-libada build libada directory
1527 --enable-libssp build libssp directory
f66a9a70 1528 --disable-libstdcxx do not build libstdc++-v3 directory
1b6c0831
L
1529 --enable-liboffloadmic=ARG
1530 build liboffloadmic [ARG={no,host,target}]
ffdd6afc 1531 --enable-bootstrap enable bootstrapping [yes if native build]
af019bfd
L
1532 --enable-pgo-build[=lto]
1533 enable the PGO build
7ec59b9e 1534 --disable-isl-version-check
4849dfd8 1535 disable check for isl version
700d40ca 1536 --enable-lto enable link time optimization support
1b6c0831
L
1537 --enable-linker-plugin-configure-flags=FLAGS
1538 additional flags for configuring linker plugins
1539 [none]
1540 --enable-linker-plugin-flags=FLAGS
1541 additional flags for configuring and building linker
1542 plugins [none]
bf41f30d 1543 --enable-host-shared build host code as shared libraries
7837304f
AS
1544 --enable-stage1-languages[=all]
1545 choose additional languages to build during stage1.
1546 Mostly useful for compiler development
1547 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1548 Objective-C runtime
ce6c656d 1549 --enable-vtable-verify Enable vtable verification feature
521ec477 1550 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1551 force sequential configuration of sub-packages for
1552 the host, target or build machine, or all
1553 sub-packages
1554 --enable-maintainer-mode
1555 enable make rules and dependencies not useful (and
1556 sometimes confusing) to the casual installer
1557 --enable-stage1-checking[=all]
1558 choose additional checking for stage1 of the
1559 compiler
c6b750e1
DJ
1560 --enable-werror enable -Werror in bootstrap stage2 and later
1561
1562Optional Packages:
1563 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1564 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1565 --with-build-libsubdir=DIR Directory where to find libraries for build system
cf39cfc5 1566 --with-system-zlib use installed libz
7837304f
AS
1567 --with-mpc=PATH specify prefix directory for installed MPC package.
1568 Equivalent to --with-mpc-include=PATH/include plus
1569 --with-mpc-lib=PATH/lib
1570 --with-mpc-include=PATH specify directory for installed MPC include files
1571 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1572 --with-mpfr-dir=PATH this option has been REMOVED
1573 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1574 Equivalent to --with-mpfr-include=PATH/include plus
1575 --with-mpfr-lib=PATH/lib
c6b750e1 1576 --with-mpfr-include=PATH
521ec477
DD
1577 specify directory for installed MPFR include files
1578 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1579 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1580 --with-gmp=PATH specify prefix directory for the installed GMP
1581 package. Equivalent to
1582 --with-gmp-include=PATH/include plus
1583 --with-gmp-lib=PATH/lib
521ec477
DD
1584 --with-gmp-include=PATH specify directory for installed GMP include files
1585 --with-gmp-lib=PATH specify directory for the installed GMP library
b3676d82 1586 --with-stage1-libs=LIBS libraries for stage1
c1a5d03a
TT
1587 --with-static-standard-libraries
1588 use -static-libstdc++ and -static-libgcc
1589 (default=auto)
7837304f
AS
1590 --with-stage1-ldflags=FLAGS
1591 linker flags for stage1
7837304f
AS
1592 --with-boot-libs=LIBS libraries for stage2 and later
1593 --with-boot-ldflags=FLAGS
1594 linker flags for stage2 and later
4849dfd8 1595 --with-isl=PATH Specify prefix directory for the installed isl
7837304f 1596 package. Equivalent to
7ec59b9e
L
1597 --with-isl-include=PATH/include plus
1598 --with-isl-lib=PATH/lib
4849dfd8
NC
1599 --with-isl-include=PATH Specify directory for installed isl include files
1600 --with-isl-lib=PATH Specify the directory for the installed isl library
05a13254
NC
1601 --with-target-bdw-gc=PATHLIST
1602 specify prefix directory for installed bdw-gc
1603 package. Equivalent to
1604 --with-target-bdw-gc-include=PATH/include plus
1605 --with-target-bdw-gc-lib=PATH/lib
1606 --with-target-bdw-gc-include=PATHLIST
1607 specify directories for installed bdw-gc include
1608 files
1609 --with-target-bdw-gc-lib=PATHLIST
1610 specify directories for installed bdw-gc library
bf41f30d
NC
1611 --with-gcc-major-version-only
1612 use only GCC major number in filesystem paths
521ec477 1613 --with-build-sysroot=SYSROOT
c6b750e1 1614 use sysroot as the system root during the build
8a6ee3ab 1615 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1616 map A to B, C to D ... in debug information
1617 --with-build-config='NAME NAME2...'
1618 use config/NAME.mk build configuration
521ec477 1619 --with-build-time-tools=PATH
c6b750e1 1620 use given path to find target tools during the build
c6b750e1
DJ
1621
1622Some influential environment variables:
1623 CC C compiler command
1624 CFLAGS C compiler flags
1625 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1626 nonstandard directory <lib dir>
81ecdfbb 1627 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1628 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1629 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1630 CXX C++ compiler command
1631 CXXFLAGS C++ compiler flags
4074d5f2
RW
1632 build_configargs
1633 additional configure arguments for build directories
1634 host_configargs
1635 additional configure arguments for host directories
1636 target_configargs
1637 additional configure arguments for target directories
9a819804
AO
1638 AR AR for the host
1639 AS AS for the host
1640 DLLTOOL DLLTOOL for the host
1641 LD LD for the host
1642 LIPO LIPO for the host
1643 NM NM for the host
1644 RANLIB RANLIB for the host
1645 STRIP STRIP for the host
1646 WINDRES WINDRES for the host
0c24b341 1647 WINDMC WINDMC for the host
9a819804
AO
1648 OBJCOPY OBJCOPY for the host
1649 OBJDUMP OBJDUMP for the host
b121d7d4 1650 READELF READELF for the host
9a819804
AO
1651 CC_FOR_TARGET
1652 CC for the target
1653 CXX_FOR_TARGET
1654 CXX for the target
1655 GCC_FOR_TARGET
1656 GCC for the target
9a819804
AO
1657 GFORTRAN_FOR_TARGET
1658 GFORTRAN for the target
e552509b
ILT
1659 GOC_FOR_TARGET
1660 GOC for the target
9a819804
AO
1661 AR_FOR_TARGET
1662 AR for the target
1663 AS_FOR_TARGET
1664 AS for the target
1665 DLLTOOL_FOR_TARGET
1666 DLLTOOL for the target
1667 LD_FOR_TARGET
1668 LD for the target
1669 LIPO_FOR_TARGET
1670 LIPO for the target
1671 NM_FOR_TARGET
1672 NM for the target
6b91c541
AP
1673 OBJCOPY_FOR_TARGET
1674 OBJCOPY for the target
9a819804
AO
1675 OBJDUMP_FOR_TARGET
1676 OBJDUMP for the target
1677 RANLIB_FOR_TARGET
1678 RANLIB for the target
b121d7d4
DD
1679 READELF_FOR_TARGET
1680 READELF for the target
9a819804
AO
1681 STRIP_FOR_TARGET
1682 STRIP for the target
1683 WINDRES_FOR_TARGET
1684 WINDRES for the target
0c24b341
NC
1685 WINDMC_FOR_TARGET
1686 WINDMC for the target
c6b750e1
DJ
1687
1688Use these variables to override the choices made by `configure' or to help
1689it to find libraries and programs with nonstandard names/locations.
1690
81ecdfbb 1691Report bugs to the package provider.
c6b750e1 1692_ACEOF
81ecdfbb 1693ac_status=$?
c6b750e1
DJ
1694fi
1695
1696if test "$ac_init_help" = "recursive"; then
1697 # If there are subdirs, report their specific --help.
c6b750e1 1698 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1699 test -d "$ac_dir" ||
1700 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1701 continue
c6b750e1
DJ
1702 ac_builddir=.
1703
81ecdfbb
RW
1704case "$ac_dir" in
1705.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706*)
1707 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1708 # A ".." for each directory in $ac_dir_suffix.
1709 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1710 case $ac_top_builddir_sub in
1711 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1713 esac ;;
1714esac
1715ac_abs_top_builddir=$ac_pwd
1716ac_abs_builddir=$ac_pwd$ac_dir_suffix
1717# for backward compatibility:
1718ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1719
1720case $srcdir in
81ecdfbb 1721 .) # We are building in place.
c6b750e1 1722 ac_srcdir=.
81ecdfbb
RW
1723 ac_top_srcdir=$ac_top_builddir_sub
1724 ac_abs_top_srcdir=$ac_pwd ;;
1725 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1726 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1727 ac_top_srcdir=$srcdir
1728 ac_abs_top_srcdir=$srcdir ;;
1729 *) # Relative name.
1730 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1731 ac_top_srcdir=$ac_top_build_prefix$srcdir
1732 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1733esac
81ecdfbb
RW
1734ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1735
1736 cd "$ac_dir" || { ac_status=$?; continue; }
1737 # Check for guested configure.
1738 if test -f "$ac_srcdir/configure.gnu"; then
1739 echo &&
1740 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1741 elif test -f "$ac_srcdir/configure"; then
1742 echo &&
1743 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1744 else
81ecdfbb
RW
1745 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1746 fi || ac_status=$?
1747 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1748 done
1749fi
1750
81ecdfbb 1751test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1752if $ac_init_version; then
1753 cat <<\_ACEOF
81ecdfbb 1754configure
d0ac1c44 1755generated by GNU Autoconf 2.69
c6b750e1 1756
d0ac1c44 1757Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
1758This configure script is free software; the Free Software Foundation
1759gives unlimited permission to copy, distribute and modify it.
1760_ACEOF
81ecdfbb 1761 exit
c6b750e1 1762fi
81ecdfbb
RW
1763
1764## ------------------------ ##
1765## Autoconf initialization. ##
1766## ------------------------ ##
1767
1768# ac_fn_c_try_compile LINENO
1769# --------------------------
1770# Try to compile conftest.$ac_ext, and return whether this succeeded.
1771ac_fn_c_try_compile ()
1772{
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext
1775 if { { ac_try="$ac_compile"
1776case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779esac
1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781$as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_compile") 2>conftest.err
1783 ac_status=$?
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1788 fi
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_c_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest.$ac_objext; then :
1794 ac_retval=0
1795else
1796 $as_echo "$as_me: failed program was:" >&5
1797sed 's/^/| /' conftest.$ac_ext >&5
1798
1799 ac_retval=1
1800fi
d0ac1c44
SM
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status $ac_retval
81ecdfbb
RW
1803
1804} # ac_fn_c_try_compile
1805
1806# ac_fn_cxx_try_compile LINENO
1807# ----------------------------
1808# Try to compile conftest.$ac_ext, and return whether this succeeded.
1809ac_fn_cxx_try_compile ()
1810{
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 rm -f conftest.$ac_objext
1813 if { { ac_try="$ac_compile"
1814case "(($ac_try" in
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1817esac
1818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819$as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_compile") 2>conftest.err
1821 ac_status=$?
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1826 fi
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_cxx_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest.$ac_objext; then :
1832 ac_retval=0
1833else
1834 $as_echo "$as_me: failed program was:" >&5
1835sed 's/^/| /' conftest.$ac_ext >&5
1836
1837 ac_retval=1
1838fi
d0ac1c44
SM
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 as_fn_set_status $ac_retval
81ecdfbb
RW
1841
1842} # ac_fn_cxx_try_compile
1843
b3676d82
EB
1844# ac_fn_cxx_try_link LINENO
1845# -------------------------
1846# Try to link conftest.$ac_ext, and return whether this succeeded.
1847ac_fn_cxx_try_link ()
1848{
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 rm -f conftest.$ac_objext conftest$ac_exeext
1851 if { { ac_try="$ac_link"
1852case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855esac
1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857$as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_link") 2>conftest.err
1859 ac_status=$?
1860 if test -s conftest.err; then
1861 grep -v '^ *+' conftest.err >conftest.er1
1862 cat conftest.er1 >&5
1863 mv -f conftest.er1 conftest.err
1864 fi
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && {
1867 test -z "$ac_cxx_werror_flag" ||
1868 test ! -s conftest.err
1869 } && test -s conftest$ac_exeext && {
1870 test "$cross_compiling" = yes ||
d0ac1c44 1871 test -x conftest$ac_exeext
b3676d82
EB
1872 }; then :
1873 ac_retval=0
1874else
1875 $as_echo "$as_me: failed program was:" >&5
1876sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 ac_retval=1
1879fi
1880 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1881 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1882 # interfere with the next link command; also delete a directory that is
1883 # left behind by Apple's compiler. We do this before executing the actions.
1884 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 as_fn_set_status $ac_retval
b3676d82
EB
1887
1888} # ac_fn_cxx_try_link
1889
81ecdfbb
RW
1890# ac_fn_c_try_link LINENO
1891# -----------------------
1892# Try to link conftest.$ac_ext, and return whether this succeeded.
1893ac_fn_c_try_link ()
1894{
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 rm -f conftest.$ac_objext conftest$ac_exeext
1897 if { { ac_try="$ac_link"
1898case "(($ac_try" in
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1901esac
1902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903$as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_link") 2>conftest.err
1905 ac_status=$?
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1910 fi
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && {
1913 test -z "$ac_c_werror_flag" ||
1914 test ! -s conftest.err
1915 } && test -s conftest$ac_exeext && {
1916 test "$cross_compiling" = yes ||
d0ac1c44 1917 test -x conftest$ac_exeext
81ecdfbb
RW
1918 }; then :
1919 ac_retval=0
1920else
1921 $as_echo "$as_me: failed program was:" >&5
1922sed 's/^/| /' conftest.$ac_ext >&5
1923
1924 ac_retval=1
1925fi
1926 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1927 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1928 # interfere with the next link command; also delete a directory that is
1929 # left behind by Apple's compiler. We do this before executing the actions.
1930 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 as_fn_set_status $ac_retval
81ecdfbb
RW
1933
1934} # ac_fn_c_try_link
1935cat >config.log <<_ACEOF
c6b750e1
DJ
1936This file contains any messages produced by compilers while
1937running configure, to aid debugging if configure makes a mistake.
1938
1939It was created by $as_me, which was
d0ac1c44 1940generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
1941
1942 $ $0 $@
1943
1944_ACEOF
81ecdfbb 1945exec 5>>config.log
c6b750e1
DJ
1946{
1947cat <<_ASUNAME
1948## --------- ##
1949## Platform. ##
1950## --------- ##
1951
1952hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1953uname -m = `(uname -m) 2>/dev/null || echo unknown`
1954uname -r = `(uname -r) 2>/dev/null || echo unknown`
1955uname -s = `(uname -s) 2>/dev/null || echo unknown`
1956uname -v = `(uname -v) 2>/dev/null || echo unknown`
1957
1958/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1959/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1960
1961/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1962/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1963/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1964/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1965/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1966/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1967/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1968
1969_ASUNAME
1970
1971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972for as_dir in $PATH
1973do
1974 IFS=$as_save_IFS
1975 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1976 $as_echo "PATH: $as_dir"
1977 done
1978IFS=$as_save_IFS
c6b750e1
DJ
1979
1980} >&5
1981
1982cat >&5 <<_ACEOF
1983
1984
1985## ----------- ##
1986## Core tests. ##
1987## ----------- ##
1988
1989_ACEOF
1990
1991
1992# Keep a trace of the command line.
1993# Strip out --no-create and --no-recursion so they do not pile up.
1994# Strip out --silent because we don't want to record it for future runs.
1995# Also quote any args containing shell meta-characters.
1996# Make two passes to allow for proper duplicate-argument suppression.
1997ac_configure_args=
1998ac_configure_args0=
1999ac_configure_args1=
c6b750e1
DJ
2000ac_must_keep_next=false
2001for ac_pass in 1 2
2002do
2003 for ac_arg
2004 do
2005 case $ac_arg in
2006 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2008 | -silent | --silent | --silen | --sile | --sil)
2009 continue ;;
81ecdfbb
RW
2010 *\'*)
2011 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2012 esac
2013 case $ac_pass in
81ecdfbb 2014 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 2015 2)
81ecdfbb 2016 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
2017 if test $ac_must_keep_next = true; then
2018 ac_must_keep_next=false # Got value, back to normal.
2019 else
2020 case $ac_arg in
2021 *=* | --config-cache | -C | -disable-* | --disable-* \
2022 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2023 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2024 | -with-* | --with-* | -without-* | --without-* | --x)
2025 case "$ac_configure_args0 " in
2026 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2027 esac
2028 ;;
2029 -* ) ac_must_keep_next=true ;;
2030 esac
2031 fi
81ecdfbb 2032 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
2033 ;;
2034 esac
2035 done
2036done
81ecdfbb
RW
2037{ ac_configure_args0=; unset ac_configure_args0;}
2038{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
2039
2040# When interrupted or exit'd, cleanup temporary files, and complete
2041# config.log. We remove comments because anyway the quotes in there
2042# would cause problems or look ugly.
81ecdfbb
RW
2043# WARNING: Use '\'' to represent an apostrophe within the trap.
2044# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
2045trap 'exit_status=$?
2046 # Save into config.log some information that might help in debugging.
2047 {
2048 echo
2049
d0ac1c44 2050 $as_echo "## ---------------- ##
c6b750e1 2051## Cache variables. ##
d0ac1c44 2052## ---------------- ##"
c6b750e1
DJ
2053 echo
2054 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2055(
2056 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2057 eval ac_val=\$$ac_var
2058 case $ac_val in #(
2059 *${as_nl}*)
2060 case $ac_var in #(
2061 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2062$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2063 esac
2064 case $ac_var in #(
2065 _ | IFS | as_nl) ;; #(
2066 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2067 *) { eval $ac_var=; unset $ac_var;} ;;
2068 esac ;;
2069 esac
2070 done
c6b750e1 2071 (set) 2>&1 |
81ecdfbb
RW
2072 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2073 *${as_nl}ac_space=\ *)
c6b750e1 2074 sed -n \
81ecdfbb
RW
2075 "s/'\''/'\''\\\\'\'''\''/g;
2076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2077 ;; #(
c6b750e1 2078 *)
81ecdfbb 2079 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2080 ;;
81ecdfbb
RW
2081 esac |
2082 sort
2083)
c6b750e1
DJ
2084 echo
2085
d0ac1c44 2086 $as_echo "## ----------------- ##
c6b750e1 2087## Output variables. ##
d0ac1c44 2088## ----------------- ##"
c6b750e1
DJ
2089 echo
2090 for ac_var in $ac_subst_vars
2091 do
81ecdfbb
RW
2092 eval ac_val=\$$ac_var
2093 case $ac_val in
2094 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2095 esac
2096 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2097 done | sort
2098 echo
2099
2100 if test -n "$ac_subst_files"; then
d0ac1c44 2101 $as_echo "## ------------------- ##
81ecdfbb 2102## File substitutions. ##
d0ac1c44 2103## ------------------- ##"
c6b750e1
DJ
2104 echo
2105 for ac_var in $ac_subst_files
2106 do
81ecdfbb
RW
2107 eval ac_val=\$$ac_var
2108 case $ac_val in
2109 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2110 esac
2111 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2112 done | sort
2113 echo
2114 fi
2115
2116 if test -s confdefs.h; then
d0ac1c44 2117 $as_echo "## ----------- ##
c6b750e1 2118## confdefs.h. ##
d0ac1c44 2119## ----------- ##"
c6b750e1 2120 echo
81ecdfbb 2121 cat confdefs.h
c6b750e1
DJ
2122 echo
2123 fi
2124 test "$ac_signal" != 0 &&
81ecdfbb
RW
2125 $as_echo "$as_me: caught signal $ac_signal"
2126 $as_echo "$as_me: exit $exit_status"
c6b750e1 2127 } >&5
81ecdfbb
RW
2128 rm -f core *.core core.conftest.* &&
2129 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2130 exit $exit_status
81ecdfbb 2131' 0
c6b750e1 2132for ac_signal in 1 2 13 15; do
81ecdfbb 2133 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2134done
2135ac_signal=0
2136
2137# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2138rm -f -r conftest* confdefs.h
2139
2140$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2141
2142# Predefined preprocessor variables.
2143
2144cat >>confdefs.h <<_ACEOF
2145#define PACKAGE_NAME "$PACKAGE_NAME"
2146_ACEOF
2147
c6b750e1
DJ
2148cat >>confdefs.h <<_ACEOF
2149#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2150_ACEOF
2151
c6b750e1
DJ
2152cat >>confdefs.h <<_ACEOF
2153#define PACKAGE_VERSION "$PACKAGE_VERSION"
2154_ACEOF
2155
c6b750e1
DJ
2156cat >>confdefs.h <<_ACEOF
2157#define PACKAGE_STRING "$PACKAGE_STRING"
2158_ACEOF
2159
c6b750e1
DJ
2160cat >>confdefs.h <<_ACEOF
2161#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2162_ACEOF
2163
81ecdfbb
RW
2164cat >>confdefs.h <<_ACEOF
2165#define PACKAGE_URL "$PACKAGE_URL"
2166_ACEOF
2167
c6b750e1
DJ
2168
2169# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2170# Prefer an explicitly selected file to automatically selected ones.
2171ac_site_file1=NONE
2172ac_site_file2=NONE
2173if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2174 # We do not want a PATH search for config.site.
2175 case $CONFIG_SITE in #((
2176 -*) ac_site_file1=./$CONFIG_SITE;;
2177 */*) ac_site_file1=$CONFIG_SITE;;
2178 *) ac_site_file1=./$CONFIG_SITE;;
2179 esac
81ecdfbb
RW
2180elif test "x$prefix" != xNONE; then
2181 ac_site_file1=$prefix/share/config.site
2182 ac_site_file2=$prefix/etc/config.site
2183else
2184 ac_site_file1=$ac_default_prefix/share/config.site
2185 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2186fi
81ecdfbb
RW
2187for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2188do
2189 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2190 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2192$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2193 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2194 . "$ac_site_file" \
2195 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2197as_fn_error $? "failed to load site script $ac_site_file
2198See \`config.log' for more details" "$LINENO" 5; }
a0da8069
NN
2199 fi
2200done
2201
2202if test -r "$cache_file"; then
d0ac1c44
SM
2203 # Some versions of bash will fail to source /dev/null (special files
2204 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2205 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2207$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2208 case $cache_file in
81ecdfbb
RW
2209 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2210 *) . "./$cache_file";;
c6b750e1
DJ
2211 esac
2212 fi
a0da8069 2213else
81ecdfbb
RW
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2215$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2216 >$cache_file
2217fi
2218
2219# Check that the precious variables saved in the cache have kept the same
2220# value.
2221ac_cache_corrupted=false
81ecdfbb 2222for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2223 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2224 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2225 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2226 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2227 case $ac_old_set,$ac_new_set in
2228 set,)
81ecdfbb
RW
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2230$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2231 ac_cache_corrupted=: ;;
2232 ,set)
81ecdfbb
RW
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2234$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2235 ac_cache_corrupted=: ;;
2236 ,);;
2237 *)
2238 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2239 # differences in whitespace do not lead to failure.
2240 ac_old_val_w=`echo x $ac_old_val`
2241 ac_new_val_w=`echo x $ac_new_val`
2242 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2244$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2245 ac_cache_corrupted=:
2246 else
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2248$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2249 eval $ac_var=\$ac_old_val
2250 fi
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2252$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2254$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2255 fi;;
2256 esac
2257 # Pass precious variables to config.status.
2258 if test "$ac_new_set" = set; then
2259 case $ac_new_val in
81ecdfbb 2260 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2261 *) ac_arg=$ac_var=$ac_new_val ;;
2262 esac
2263 case " $ac_configure_args " in
2264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2265 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2266 esac
2267 fi
2268done
2269if $ac_cache_corrupted; then
81ecdfbb
RW
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2273$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2274 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2275fi
81ecdfbb
RW
2276## -------------------- ##
2277## Main body of script. ##
2278## -------------------- ##
a0da8069
NN
2279
2280ac_ext=c
a0da8069 2281ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2284ac_compiler_gnu=$ac_cv_c_compiler_gnu
2285
2286
2287
2288
c6b750e1
DJ
2289
2290
34a0f3cf 2291
c6b750e1 2292
5b553f7e
RW
2293progname=$0
2294# if PWD already has a value, it is probably wrong.
2295if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2296
2297# Export original configure arguments for use by sub-configures.
2298# Quote arguments with shell meta charatcers.
2299TOPLEVEL_CONFIGURE_ARGUMENTS=
2300set -- "$progname" "$@"
2301for ac_arg
2302do
2303 case "$ac_arg" in
2304 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2305 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2306 # if the argument is of the form -foo=baz, quote the baz part only
2307 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2308 *) ;;
2309 esac
2310 # Add the quoted argument to the list.
2311 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2312done
2313if test "$silent" = yes; then
2314 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2315fi
2316# Remove the initial space we just introduced and, as these will be
2317# expanded by make, quote '$'.
2318TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2319
c6b750e1
DJ
2320
2321# Find the build, host, and target systems.
a0da8069 2322ac_aux_dir=
81ecdfbb 2323for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2324 if test -f "$ac_dir/install-sh"; then
2325 ac_aux_dir=$ac_dir
2326 ac_install_sh="$ac_aux_dir/install-sh -c"
2327 break
2328 elif test -f "$ac_dir/install.sh"; then
2329 ac_aux_dir=$ac_dir
2330 ac_install_sh="$ac_aux_dir/install.sh -c"
2331 break
2332 elif test -f "$ac_dir/shtool"; then
2333 ac_aux_dir=$ac_dir
2334 ac_install_sh="$ac_aux_dir/shtool install -c"
2335 break
2336 fi
a0da8069
NN
2337done
2338if test -z "$ac_aux_dir"; then
d0ac1c44 2339 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2340fi
81ecdfbb
RW
2341
2342# These three variables are undocumented and unsupported,
2343# and are intended to be withdrawn in a future Autoconf release.
2344# They can cause serious problems if a builder's source tree is in a directory
2345# whose full name contains unusual characters.
2346ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2347ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2348ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2349
a0da8069 2350
c6b750e1 2351# Make sure we can run config.sub.
81ecdfbb 2352$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2353 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2354
2355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2356$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2357if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2358 $as_echo_n "(cached) " >&6
2359else
2360 ac_build_alias=$build_alias
2361test "x$ac_build_alias" = x &&
2362 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2363test "x$ac_build_alias" = x &&
d0ac1c44 2364 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2365ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2366 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2367
2368fi
2369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2370$as_echo "$ac_cv_build" >&6; }
2371case $ac_cv_build in
2372*-*-*) ;;
d0ac1c44 2373*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2374esac
c6b750e1 2375build=$ac_cv_build
81ecdfbb
RW
2376ac_save_IFS=$IFS; IFS='-'
2377set x $ac_cv_build
2378shift
2379build_cpu=$1
2380build_vendor=$2
2381shift; shift
2382# Remember, the first character of IFS is used to create $*,
2383# except with old shells:
2384build_os=$*
2385IFS=$ac_save_IFS
2386case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2387
a0da8069 2388
c6b750e1
DJ
2389 case ${build_alias} in
2390 "") build_noncanonical=${build} ;;
2391 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2392esac
2393
2394
cac3d6c4 2395
c6b750e1
DJ
2396 case ${host_alias} in
2397 "") host_noncanonical=${build_noncanonical} ;;
2398 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2399esac
2400
cac3d6c4 2401
c6b750e1
DJ
2402
2403 case ${target_alias} in
2404 "") target_noncanonical=${host_noncanonical} ;;
2405 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2406esac
2407
cac3d6c4 2408
c6b750e1
DJ
2409
2410
2411test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2412 test "$program_prefix$program_suffix$program_transform_name" = \
2413 NONENONEs,x,x, &&
c6b750e1 2414 program_transform_name=s,y,y,
cac3d6c4 2415
81ecdfbb
RW
2416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2417$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2418if ${ac_cv_host+:} false; then :
81ecdfbb 2419 $as_echo_n "(cached) " >&6
cac3d6c4 2420else
81ecdfbb
RW
2421 if test "x$host_alias" = x; then
2422 ac_cv_host=$ac_cv_build
2423else
2424 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2425 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2426fi
c6b750e1
DJ
2427
2428fi
81ecdfbb
RW
2429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2430$as_echo "$ac_cv_host" >&6; }
2431case $ac_cv_host in
2432*-*-*) ;;
d0ac1c44 2433*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2434esac
c6b750e1 2435host=$ac_cv_host
81ecdfbb
RW
2436ac_save_IFS=$IFS; IFS='-'
2437set x $ac_cv_host
2438shift
2439host_cpu=$1
2440host_vendor=$2
2441shift; shift
2442# Remember, the first character of IFS is used to create $*,
2443# except with old shells:
2444host_os=$*
2445IFS=$ac_save_IFS
2446case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2447
2448
81ecdfbb
RW
2449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2450$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2451if ${ac_cv_target+:} false; then :
81ecdfbb 2452 $as_echo_n "(cached) " >&6
c6b750e1 2453else
81ecdfbb
RW
2454 if test "x$target_alias" = x; then
2455 ac_cv_target=$ac_cv_host
2456else
2457 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2458 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2459fi
c6b750e1 2460
cac3d6c4 2461fi
81ecdfbb
RW
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2463$as_echo "$ac_cv_target" >&6; }
2464case $ac_cv_target in
2465*-*-*) ;;
d0ac1c44 2466*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2467esac
c6b750e1 2468target=$ac_cv_target
81ecdfbb
RW
2469ac_save_IFS=$IFS; IFS='-'
2470set x $ac_cv_target
2471shift
2472target_cpu=$1
2473target_vendor=$2
2474shift; shift
2475# Remember, the first character of IFS is used to create $*,
2476# except with old shells:
2477target_os=$*
2478IFS=$ac_save_IFS
2479case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2480
2481
2482# The aliases save the names the user supplied, while $host etc.
2483# will get canonicalized.
2484test -n "$target_alias" &&
2485 test "$program_prefix$program_suffix$program_transform_name" = \
2486 NONENONEs,x,x, &&
2487 program_prefix=${target_alias}-
81ecdfbb 2488
a0da8069 2489test "$program_prefix" != NONE &&
81ecdfbb 2490 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2491# Use a double $ so make ignores it.
2492test "$program_suffix" != NONE &&
81ecdfbb
RW
2493 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2494# Double any \ or $.
c6b750e1 2495# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2496ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2497program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2498
a0da8069
NN
2499
2500
e5c3f801
NN
2501# Get 'install' or 'install-sh' and its variants.
2502# Find a good install program. We prefer a C program (faster),
2503# so one script is as good as another. But avoid the broken or
2504# incompatible versions:
2505# SysV /etc/install, /usr/sbin/install
2506# SunOS /usr/etc/install
2507# IRIX /sbin/install
2508# AIX /bin/install
c6b750e1 2509# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2510# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2511# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2512# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2513# OS/2's system install, which has a completely different semantic
e5c3f801 2514# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2515# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2517$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2518if test -z "$INSTALL"; then
d0ac1c44 2519if ${ac_cv_path_install+:} false; then :
81ecdfbb 2520 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2521else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523for as_dir in $PATH
2524do
2525 IFS=$as_save_IFS
2526 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2527 # Account for people who put trailing slashes in PATH elements.
2528case $as_dir/ in #((
2529 ./ | .// | /[cC]/* | \
c6b750e1 2530 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2531 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2532 /usr/ucb/* ) ;;
2533 *)
2534 # OSF1 and SCO ODT 3.0 have their own names for install.
2535 # Don't use installbsd from OSF since it installs stuff as root
2536 # by default.
2537 for ac_prog in ginstall scoinst install; do
2538 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2539 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 2540 if test $ac_prog = install &&
c6b750e1 2541 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2542 # AIX install. It has an incompatible calling convention.
2543 :
c6b750e1
DJ
2544 elif test $ac_prog = install &&
2545 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2546 # program-specific install script used by HP pwplus--don't use.
2547 :
e5c3f801 2548 else
58c85be7
RW
2549 rm -rf conftest.one conftest.two conftest.dir
2550 echo one > conftest.one
2551 echo two > conftest.two
2552 mkdir conftest.dir
2553 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2554 test -s conftest.one && test -s conftest.two &&
2555 test -s conftest.dir/conftest.one &&
2556 test -s conftest.dir/conftest.two
2557 then
2558 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2559 break 3
2560 fi
e5c3f801
NN
2561 fi
2562 fi
2563 done
c6b750e1
DJ
2564 done
2565 ;;
2566esac
81ecdfbb
RW
2567
2568 done
2569IFS=$as_save_IFS
c6b750e1 2570
58c85be7 2571rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2572
2573fi
2574 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2575 INSTALL=$ac_cv_path_install
e5c3f801 2576 else
58c85be7
RW
2577 # As a last resort, use the slow shell script. Don't cache a
2578 # value for INSTALL within a source directory, because that will
e5c3f801 2579 # break other packages using the cache if that directory is
58c85be7 2580 # removed, or if the value is a relative name.
c6b750e1 2581 INSTALL=$ac_install_sh
e5c3f801
NN
2582 fi
2583fi
81ecdfbb
RW
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2585$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2586
2587# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2588# It thinks the first close brace ends the variable substitution.
2589test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2590
c6b750e1 2591test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2592
2593test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2594
81ecdfbb
RW
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2596$as_echo_n "checking whether ln works... " >&6; }
d0ac1c44 2597if ${acx_cv_prog_LN+:} false; then :
81ecdfbb 2598 $as_echo_n "(cached) " >&6
656fdd47
PB
2599else
2600 rm -f conftestdata_t
2601echo >conftestdata_f
2602if ln conftestdata_f conftestdata_t 2>/dev/null
2603then
2604 acx_cv_prog_LN=ln
2605else
2606 acx_cv_prog_LN=no
2607fi
2608rm -f conftestdata_f conftestdata_t
2609
2610fi
2611if test $acx_cv_prog_LN = no; then
2612 LN="cp"
81ecdfbb
RW
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2614$as_echo "no, using $LN" >&6; }
656fdd47
PB
2615else
2616 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2618$as_echo "yes" >&6; }
656fdd47
PB
2619fi
2620
81ecdfbb
RW
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2622$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2623LN_S=$as_ln_s
2624if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2626$as_echo "yes" >&6; }
cac3d6c4 2627else
81ecdfbb
RW
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2629$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2630fi
2631
8e957354
PB
2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2633$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 2634if ${ac_cv_path_SED+:} false; then :
8e957354
PB
2635 $as_echo_n "(cached) " >&6
2636else
2637 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2638 for ac_i in 1 2 3 4 5 6 7; do
2639 ac_script="$ac_script$as_nl$ac_script"
2640 done
2641 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2642 { ac_script=; unset ac_script;}
2643 if test -z "$SED"; then
2644 ac_path_SED_found=false
2645 # Loop through the user's path and test for each of PROGNAME-LIST
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647for as_dir in $PATH
2648do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_prog in sed gsed; do
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 2654 as_fn_executable_p "$ac_path_SED" || continue
8e957354
PB
2655# Check for GNU ac_path_SED and select it if it is found.
2656 # Check for GNU $ac_path_SED
2657case `"$ac_path_SED" --version 2>&1` in
2658*GNU*)
2659 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2660*)
2661 ac_count=0
2662 $as_echo_n 0123456789 >"conftest.in"
2663 while :
2664 do
2665 cat "conftest.in" "conftest.in" >"conftest.tmp"
2666 mv "conftest.tmp" "conftest.in"
2667 cp "conftest.in" "conftest.nl"
2668 $as_echo '' >> "conftest.nl"
2669 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2671 as_fn_arith $ac_count + 1 && ac_count=$as_val
2672 if test $ac_count -gt ${ac_path_SED_max-0}; then
2673 # Best one so far, save it but keep looking for a better one
2674 ac_cv_path_SED="$ac_path_SED"
2675 ac_path_SED_max=$ac_count
2676 fi
2677 # 10*(2^10) chars as input seems more than enough
2678 test $ac_count -gt 10 && break
2679 done
2680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2681esac
2682
2683 $ac_path_SED_found && break 3
2684 done
2685 done
2686 done
2687IFS=$as_save_IFS
2688 if test -z "$ac_cv_path_SED"; then
d0ac1c44 2689 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8e957354
PB
2690 fi
2691else
2692 ac_cv_path_SED=$SED
2693fi
2694
2695fi
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2697$as_echo "$ac_cv_path_SED" >&6; }
2698 SED="$ac_cv_path_SED"
2699 rm -f conftest.sed
2700
2701for ac_prog in gawk mawk nawk awk
2702do
2703 # Extract the first word of "$ac_prog", so it can be a program name with args.
2704set dummy $ac_prog; ac_word=$2
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2706$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2707if ${ac_cv_prog_AWK+:} false; then :
8e957354
PB
2708 $as_echo_n "(cached) " >&6
2709else
2710 if test -n "$AWK"; then
2711 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2712else
2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714for as_dir in $PATH
2715do
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8e957354
PB
2720 ac_cv_prog_AWK="$ac_prog"
2721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 break 2
2723 fi
2724done
2725 done
2726IFS=$as_save_IFS
2727
2728fi
2729fi
2730AWK=$ac_cv_prog_AWK
2731if test -n "$AWK"; then
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2733$as_echo "$AWK" >&6; }
2734else
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736$as_echo "no" >&6; }
2737fi
2738
2739
2740 test -n "$AWK" && break
2741done
2742
e5c3f801 2743
0fdbe983
DJ
2744srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2745
2746# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2747# a relative path.
2748if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2749 INSTALL="${srcpwd}/install-sh -c"
2750fi
2751
a0da8069
NN
2752# Set srcdir to "." if that's what it is.
2753# This is important for multilib support.
2754pwd=`${PWDCMD-pwd}`
a0da8069
NN
2755if test "${pwd}" = "${srcpwd}" ; then
2756 srcdir=.
252b5132
RH
2757fi
2758
a0da8069 2759topsrcdir=$srcpwd
252b5132 2760
a0da8069 2761extra_host_args=
afefada0 2762
a0da8069
NN
2763### To add a new directory to the tree, first choose whether it is a target
2764### or a host dependent tool. Then put it into the appropriate list
2765### (library or tools, host or target), doing a dependency sort.
252b5132 2766
c6b750e1 2767# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2768# configdirs, or target_configdirs; see the serialization section below.
252b5132 2769
c6b750e1
DJ
2770# Dependency sorting is only needed when *configuration* must be done in
2771# a particular order. In all cases a dependency should be specified in
a0da8069 2772# the Makefile, whether or not it's implicitly specified here.
252b5132 2773
a0da8069
NN
2774# Double entries in build_configdirs, configdirs, or target_configdirs may
2775# cause circular dependencies and break everything horribly.
252b5132 2776
6a9cf61e
PB
2777# these library is used by various programs built for the build
2778# environment
2779#
1b6c0831 2780build_libs="build-libiberty build-libcpp"
6a9cf61e
PB
2781
2782# these tools are built for the build environment
a90ef4bf 2783build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2784
a0da8069 2785# these libraries are used by various programs built for the host environment
1b6c0831 2786#f
0e65dfba 2787host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
a0da8069 2788
a0da8069
NN
2789# these tools are built for the host environment
2790# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2791# know that we are building the simulator.
2792# binutils, gas and ld appear in that order because it makes sense to run
2793# "make check" in that particular order.
e6de499b 2794# If --enable-gold is used, "gold" may replace "ld".
919adfe8 2795host_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 2796
a0da8069
NN
2797# these libraries are built for the target environment, and are built after
2798# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2799# Note that libiberty is not a target library.
b1299c4e 2800target_libraries="target-libgcc \
2bf680c4 2801 target-libbacktrace \
a0da8069
NN
2802 target-libgloss \
2803 target-newlib \
cff87f51 2804 target-libgomp \
1b6c0831 2805 target-liboffloadmic \
bf41f30d 2806 target-libhsail-rt \
7ec59b9e 2807 target-libatomic \
d32e2926 2808 target-libitm \
b9459e83 2809 target-libstdc++-v3 \
5286fdef 2810 target-libsanitizer \
95e43135 2811 target-libvtv \
bb780410 2812 target-libssp \
e552509b 2813 target-libquadmath \
4b1cb4fe 2814 target-libgfortran \
05a13254 2815 target-libffi \
a2592b1b 2816 target-libobjc \
e552509b 2817 target-libada \
e3f56a99 2818 target-libgo"
a0da8069 2819
9c14acb8
NN
2820# these tools are built using the target libraries, and are intended to
2821# run only in the target environment
a0da8069 2822#
9c14acb8 2823# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2824# list belongs in this list.
a0da8069 2825#
a90ef4bf 2826target_tools="target-rda"
252b5132 2827
a0da8069 2828################################################################################
252b5132 2829
a0da8069
NN
2830## All tools belong in one of the four categories, and are assigned above
2831## We assign ${configdirs} this way to remove all embedded newlines. This
2832## is important because configure will choke if they ever get through.
2833## ${configdirs} is directories we build using the host tools.
2834## ${target_configdirs} is directories we build using the target tools.
a0da8069 2835configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2836target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2837build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2838
9cc8ae67
PB
2839
2840
a0da8069 2841################################################################################
252b5132 2842
a0da8069 2843srcname="gnu development package"
252b5132 2844
a0da8069
NN
2845# This gets set non-empty for some net releases of packages.
2846appdirs=""
252b5132 2847
a0da8069
NN
2848# Define is_cross_compiler to save on calls to 'test'.
2849is_cross_compiler=
2850if test x"${host}" = x"${target}" ; then
2851 is_cross_compiler=no
252b5132 2852else
a0da8069 2853 is_cross_compiler=yes
c6b750e1 2854fi
252b5132 2855
9175bfc0 2856# Find the build and target subdir names.
dd12c3a8 2857
66a79c16
DJ
2858# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2859# have matching libraries, they should use host libraries: Makefile.tpl
2860# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2861# However, they still use the build modules, because the corresponding
2862# host modules (e.g. bison) are only built for the host when bootstrap
2863# finishes. So:
2864# - build_subdir is where we find build modules, and never changes.
2865# - build_libsubdir is where we find build libraries, and can be overridden.
2866
2867# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2868build_subdir="build-${build_noncanonical}"
c6b750e1 2869
81ecdfbb
RW
2870# Check whether --with-build-libsubdir was given.
2871if test "${with_build_libsubdir+set}" = set; then :
2872 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2873else
2874 build_libsubdir="$build_subdir"
81ecdfbb
RW
2875fi
2876
b00612cc
PB
2877# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2878if ( test $srcdir = . && test -d gcc ) \
2879 || test -d $srcdir/../host-${host_noncanonical}; then
2880 host_subdir="host-${host_noncanonical}"
2881else
2882 host_subdir=.
2883fi
dd12c3a8
NN
2884# No prefix.
2885target_subdir=${target_noncanonical}
c6b750e1 2886
2fd0b40b
RW
2887# Be sure to cover against remnants of an in-tree build.
2888if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
d0ac1c44 2889 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2fd0b40b
RW
2890Use a pristine source tree when building in a separate tree" "$LINENO" 5
2891fi
252b5132 2892
a0da8069
NN
2893# Skipdirs are removed silently.
2894skipdirs=
2895# Noconfigdirs are removed loudly.
2896noconfigdirs=""
252b5132 2897
a0da8069
NN
2898use_gnu_ld=
2899# Make sure we don't let GNU ld be added if we didn't want it.
2900if test x$with_gnu_ld = xno ; then
2901 use_gnu_ld=no
93f9b408 2902 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2903fi
2904
a0da8069
NN
2905use_gnu_as=
2906# Make sure we don't let GNU as be added if we didn't want it.
2907if test x$with_gnu_as = xno ; then
2908 use_gnu_as=no
2909 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2910fi
2911
700d40ca 2912use_included_zlib=
cf39cfc5
L
2913
2914# Check whether --with-system-zlib was given.
2915if test "${with_system_zlib+set}" = set; then :
2916 withval=$with_system_zlib;
2917fi
2918
700d40ca
ILT
2919# Make sure we don't let ZLIB be added if we didn't want it.
2920if test x$with_system_zlib = xyes ; then
2921 use_included_zlib=no
2922 noconfigdirs="$noconfigdirs zlib"
2923fi
2924
69961a84
ДП
2925# Don't compile the bundled readline/libreadline.a if --with-system-readline
2926# is provided.
2927if test x$with_system_readline = xyes ; then
2928 noconfigdirs="$noconfigdirs readline"
2929fi
2930
c6b750e1 2931# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2932# it's not even worth trying to configure, much less build, that tool.
252b5132 2933
a0da8069
NN
2934case ${with_x} in
2935 yes | "") ;; # the default value for this tree is that X11 is available
2936 no)
675c6968 2937 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2938 # We won't be able to build gdbtk without X.
c6b750e1 2939 enable_gdbtk=no
a0da8069
NN
2940 ;;
2941 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2942esac
252b5132 2943
0377a422 2944# Some are only suitable for cross toolchains.
a0da8069
NN
2945# Remove these if host=target.
2946cross_only="target-libgloss target-newlib target-opcodes"
2947
2948case $is_cross_compiler in
2949 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2950esac
252b5132 2951
a0da8069
NN
2952# If both --with-headers and --with-libs are specified, default to
2953# --without-newlib.
32be62b5
RS
2954if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2955 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2956 if test x"${with_newlib}" = x ; then
2957 with_newlib=no
2958 fi
252b5132
RH
2959fi
2960
a0da8069
NN
2961# Recognize --with-newlib/--without-newlib.
2962case ${with_newlib} in
2963 no) skipdirs="${skipdirs} target-newlib" ;;
2964 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2965esac
252b5132 2966
1b6c0831
L
2967# Check whether --enable-as-accelerator-for was given.
2968if test "${enable_as_accelerator_for+set}" = set; then :
2969 enableval=$enable_as_accelerator_for;
2970fi
2971
2972
2973# Check whether --enable-offload-targets was given.
2974if test "${enable_offload_targets+set}" = set; then :
2975 enableval=$enable_offload_targets;
2976 if test x"$enable_offload_targets" = x; then
d0ac1c44 2977 as_fn_error $? "no offload targets specified" "$LINENO" 5
1b6c0831
L
2978 fi
2979
2980else
2981 enable_offload_targets=
2982fi
2983
2984
c7791212
NC
2985# Handle --enable-gold, --enable-ld.
2986# --disable-gold [--enable-ld]
2987# Build only ld. Default option.
d3b50760
L
2988# --enable-gold [--enable-ld]
2989# Build both gold and ld. Install gold as "ld.gold", install ld
2990# as "ld.bfd" and "ld".
2991# --enable-gold=default [--enable-ld]
c7791212
NC
2992# Build both gold and ld. Install gold as "ld.gold" and "ld",
2993# install ld as "ld.bfd".
2994# --enable-gold[=default] --disable-ld
2995# Build only gold, which is then installed as both "ld.gold" and "ld".
2996# --enable-gold --enable-ld=default
d3b50760
L
2997# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2998# and ld.bfd).
c7791212
NC
2999# In other words, ld is default
3000# --enable-gold=default --enable-ld=default
3001# Error.
3002
3003default_ld=
81ecdfbb
RW
3004# Check whether --enable-gold was given.
3005if test "${enable_gold+set}" = set; then :
3006 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
3007else
3008 ENABLE_GOLD=no
81ecdfbb
RW
3009fi
3010
c7791212
NC
3011case "${ENABLE_GOLD}" in
3012 yes|default)
e6de499b
NC
3013 # Check for ELF target.
3014 is_elf=no
3015 case "${target}" in
3016 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2344b8da 3017 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 3018 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
d85e70a3 3019 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
e6de499b
NC
3020 case "${target}" in
3021 *-*-linux*aout* | *-*-linux*oldld*)
3022 ;;
3023 *)
3024 is_elf=yes
3025 ;;
3026 esac
3027 esac
3028
3029 if test "$is_elf" = "yes"; then
3030 # Check for target supported by gold.
93f9b408 3031 case "${target}" in
6d26190c 3032 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
ea016470 3033 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
c7791212
NC
3034 configdirs="$configdirs gold"
3035 if test x${ENABLE_GOLD} = xdefault; then
3036 default_ld=gold
3037 fi
e6de499b 3038 ENABLE_GOLD=yes
93f9b408
ILT
3039 ;;
3040 esac
e6de499b
NC
3041 fi
3042 ;;
3043 no)
3044 ;;
3045 *)
d0ac1c44 3046 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
e6de499b 3047 ;;
c7791212
NC
3048esac
3049
3050# Check whether --enable-ld was given.
3051if test "${enable_ld+set}" = set; then :
3052 enableval=$enable_ld; ENABLE_LD=$enableval
3053else
3054 ENABLE_LD=yes
3055fi
3056
3057
3058case "${ENABLE_LD}" in
3059 default)
d3b50760 3060 if test x${default_ld} != x; then
d0ac1c44 3061 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
c7791212
NC
3062 fi
3063 ;;
3064 yes)
3065 ;;
3066 no)
3067 if test x${ENABLE_GOLD} != xyes; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3069$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3070 fi
3071 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3072 ;;
3073 *)
d0ac1c44 3074 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
c7791212
NC
3075 ;;
3076esac
93f9b408 3077
bb368aad
VM
3078# Check whether --enable-gprofng was given.
3079if test "${enable_gprofng+set}" = set; then :
3080 enableval=$enable_gprofng; enable_gprofng=$enableval
3081else
3082 enable_gprofng=yes
3083fi
3084
3085if test "$enable_gprofng" = "yes"; then
3086 case "${target}" in
3087 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3088 configdirs="$configdirs gprofng"
3089 ;;
3090 esac
3091fi
3092
3093
edeefb67
L
3094# PR gas/19109
3095# Decide the default method for compressing debug sections.
3096# Provide a configure time option to override our default.
3097# Check whether --enable-compressed_debug_sections was given.
3098if test "${enable_compressed_debug_sections+set}" = set; then :
3099 enableval=$enable_compressed_debug_sections;
3100 if test x"$enable_compressed_debug_sections" = xyes; then
d0ac1c44 3101 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
edeefb67
L
3102 fi
3103
3104else
3105 enable_compressed_debug_sections=
3106fi
3107
3108
a0da8069 3109# Configure extra directories which are host specific
252b5132 3110
a0da8069
NN
3111case "${host}" in
3112 *-cygwin*)
3113 configdirs="$configdirs libtermcap" ;;
3114esac
252b5132 3115
59f7ec45
HPN
3116# A target can indicate whether a language isn't supported for some reason.
3117# Only spaces may be used in this macro; not newlines or tabs.
3118unsupported_languages=
3119
c6b750e1 3120# Remove more programs from consideration, based on the host or
a0da8069
NN
3121# target this usually means that a port of the program doesn't
3122# exist yet.
252b5132 3123
a0da8069 3124case "${host}" in
3516a403 3125 i[3456789]86-*-msdosdjgpp*)
6a608608 3126 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3127 ;;
a0da8069 3128esac
252b5132 3129
4b1cb4fe 3130
89a1e9c3
PB
3131# Check whether --enable-libquadmath was given.
3132if test "${enable_libquadmath+set}" = set; then :
3133 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3134else
3135 ENABLE_LIBQUADMATH=yes
3136fi
3137
3138if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3139 noconfigdirs="$noconfigdirs target-libquadmath"
3140fi
3141
3142
3143# Check whether --enable-libquadmath-support was given.
3144if test "${enable_libquadmath_support+set}" = set; then :
3145 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3146else
3147 ENABLE_LIBQUADMATH_SUPPORT=yes
3148fi
3149
3150enable_libquadmath_support=
3151if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3152 enable_libquadmath_support=no
3153fi
3154
3155
81ecdfbb
RW
3156# Check whether --enable-libada was given.
3157if test "${enable_libada+set}" = set; then :
3158 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3159else
3160 ENABLE_LIBADA=yes
81ecdfbb
RW
3161fi
3162
a2592b1b 3163if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3164 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3165fi
3166
81ecdfbb
RW
3167# Check whether --enable-libssp was given.
3168if test "${enable_libssp+set}" = set; then :
3169 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3170else
3171 ENABLE_LIBSSP=yes
81ecdfbb
RW
3172fi
3173
5f128533 3174
f66a9a70
L
3175# Check whether --enable-libstdcxx was given.
3176if test "${enable_libstdcxx+set}" = set; then :
3177 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3178else
3179 ENABLE_LIBSTDCXX=default
3180fi
3181
3182if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1b6c0831
L
3183 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3184fi
3185
3186# If this is accelerator compiler and its target is intelmic we enable
3187# target liboffloadmic by default. If this is compiler with offloading
3188# for intelmic we enable host liboffloadmic by default. Otherwise
3189# liboffloadmic is disabled by default.
3190# Check whether --enable-liboffloadmic was given.
3191if test "${enable_liboffloadmic+set}" = set; then :
3192 enableval=$enable_liboffloadmic; case "$enableval" in
3193 no | host | target)
3194 enable_liboffloadmic=$enableval ;;
3195 *)
d0ac1c44 3196 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
1b6c0831
L
3197esac
3198else
3199 if test x"$enable_as_accelerator_for" != x; then
3200 case "${target}" in
3201 *-intelmic-* | *-intelmicemul-*)
3202 enable_liboffloadmic=target
3203 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3204 ;;
3205 *)
3206 enable_liboffloadmic=no
3207 ;;
3208 esac
3209else
3210 case "${enable_offload_targets}" in
3211 *-intelmic-* | *-intelmicemul-*)
3212 enable_liboffloadmic=host
3213 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3214 ;;
3215 *)
3216 enable_liboffloadmic=no
3217 ;;
3218 esac
3219fi
f66a9a70
L
3220fi
3221
1b6c0831
L
3222
3223
68996839 3224# Enable libgomp by default on hosted POSIX systems, and a few others.
a6df5a19 3225if test x$enable_libgomp = x ; then
b3ded179 3226 case "${target}" in
29383458 3227 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3228 ;;
5b806d27 3229 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3230 ;;
2479f722 3231 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3232 ;;
3233 *-*-darwin* | *-*-aix*)
3234 ;;
68996839
NC
3235 nvptx*-*-*)
3236 ;;
b3ded179
PB
3237 *)
3238 noconfigdirs="$noconfigdirs target-libgomp"
3239 ;;
3240 esac
a6df5a19 3241fi
b3ded179 3242
7ec59b9e
L
3243# Disable libatomic on unsupported systems.
3244if test -d ${srcdir}/libatomic; then
3245 if test x$enable_libatomic = x; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3247$as_echo_n "checking for libatomic support... " >&6; }
3248 if (srcdir=${srcdir}/libatomic; \
3249 . ${srcdir}/configure.tgt; \
3250 test -n "$UNSUPPORTED")
3251 then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253$as_echo "no" >&6; }
3254 noconfigdirs="$noconfigdirs target-libatomic"
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3257$as_echo "yes" >&6; }
3258 fi
3259 fi
3260fi
3261
1b6c0831
L
3262# Disable liboffloadmic on unsupported systems.
3263if test -d ${srcdir}/liboffloadmic; then
3264 if test x$enable_liboffloadmic != xno; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3266$as_echo_n "checking for liboffloadmic support... " >&6; }
3267 if (srcdir=${srcdir}/liboffloadmic; \
3268 . ${srcdir}/configure.tgt; \
3269 test -n "$UNSUPPORTED")
3270 then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272$as_echo "no" >&6; }
3273 noconfigdirs="$noconfigdirs target-liboffloadmic"
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276$as_echo "yes" >&6; }
3277 fi
3278 fi
3279fi
3280
d32e2926
RH
3281# Disable libitm on unsupported systems.
3282if test -d ${srcdir}/libitm; then
3283 if test x$enable_libitm = x; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3285$as_echo_n "checking for libitm support... " >&6; }
3286 if (srcdir=${srcdir}/libitm; \
3287 . ${srcdir}/configure.tgt; \
3288 test -n "$UNSUPPORTED")
3289 then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291$as_echo "no" >&6; }
3292 noconfigdirs="$noconfigdirs target-libitm"
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295$as_echo "yes" >&6; }
3296 fi
3297 fi
3298fi
3299
5286fdef
L
3300# Disable libsanitizer on unsupported systems.
3301if test -d ${srcdir}/libsanitizer; then
3302 if test x$enable_libsanitizer = x; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3304$as_echo_n "checking for libsanitizer support... " >&6; }
3305 if (srcdir=${srcdir}/libsanitizer; \
3306 . ${srcdir}/configure.tgt; \
3307 test -n "$UNSUPPORTED")
3308 then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310$as_echo "no" >&6; }
3311 noconfigdirs="$noconfigdirs target-libsanitizer"
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314$as_echo "yes" >&6; }
3315 fi
3316 fi
3317fi
3318
95e43135
JBG
3319# Disable libvtv on unsupported systems.
3320if test -d ${srcdir}/libvtv; then
3321 if test x$enable_libvtv = x; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3323$as_echo_n "checking for libvtv support... " >&6; }
3324 if (srcdir=${srcdir}/libvtv; \
3325 . ${srcdir}/configure.tgt; \
3326 test "$VTV_SUPPORTED" != "yes")
3327 then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329$as_echo "no" >&6; }
3330 noconfigdirs="$noconfigdirs target-libvtv"
3331 else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333$as_echo "yes" >&6; }
3334 fi
3335 fi
3336fi
3337
1b6c0831 3338
bf41f30d
NC
3339# Disable libhsail-rt on unsupported systems.
3340if test -d ${srcdir}/libhsail-rt; then
3341 if test x$enable_libhsail_rt = x; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3343$as_echo_n "checking for libhsail-rt support... " >&6; }
3344 if (srcdir=${srcdir}/libhsail-rt; \
3345 . ${srcdir}/configure.tgt; \
3346 test -n "$UNSUPPORTED")
3347 then
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349$as_echo "no" >&6; }
3350 unsupported_languages="$unsupported_languages brig"
3351 # This implicitly disables also target-libhsail-rt as it won't
3352 # get added to the build without BRIG FE.
3353 else
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3355$as_echo "yes" >&6; }
3356 fi
3357 fi
3358fi
1b6c0831
L
3359
3360
1488e230
DE
3361# Disable libquadmath for some systems.
3362case "${target}" in
5286fdef
L
3363 avr-*-*)
3364 noconfigdirs="$noconfigdirs target-libquadmath"
3365 ;;
1488e230
DE
3366 # libquadmath is unused on AIX and libquadmath build process use of
3367 # LD_LIBRARY_PATH can break AIX bootstrap.
3368 powerpc-*-aix* | rs6000-*-aix*)
3369 noconfigdirs="$noconfigdirs target-libquadmath"
3370 ;;
3371esac
3372
065a5627
JM
3373# Disable libssp for some systems.
3374case "${target}" in
3375 avr-*-*)
c5f5c3c2 3376 # No hosted I/O support.
065a5627
JM
3377 noconfigdirs="$noconfigdirs target-libssp"
3378 ;;
3379 powerpc-*-aix* | rs6000-*-aix*)
3380 noconfigdirs="$noconfigdirs target-libssp"
3381 ;;
99c513f6 3382 rl78-*-*)
202e2356
NC
3383 # libssp uses a misaligned load to trigger a fault, but the RL78
3384 # doesn't fault for those - instead, it gives a build-time error
3385 # for explicit misaligned loads.
99c513f6
DD
3386 noconfigdirs="$noconfigdirs target-libssp"
3387 ;;
1b6c0831
L
3388 visium-*-*)
3389 # No hosted I/O support.
3390 noconfigdirs="$noconfigdirs target-libssp"
3391 ;;
065a5627
JM
3392esac
3393
065a5627 3394# Disable libstdc++-v3 for some systems.
f66a9a70
L
3395# Allow user to override this if they pass --enable-libstdc++-v3
3396if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3397 case "${target}" in
3398 *-*-vxworks*)
3399 # VxWorks uses the Dinkumware C++ library.
3400 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3401 ;;
3402 arm*-wince-pe*)
3403 # the C++ libraries don't build on top of CE's C libraries
3404 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3405 ;;
3406 avr-*-*)
3407 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3408 ;;
969b1713
L
3409 ft32-*-*)
3410 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3411 ;;
f66a9a70
L
3412 esac
3413fi
065a5627
JM
3414
3415# Disable Fortran for some systems.
3416case "${target}" in
3417 mmix-*-*)
3418 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3419 unsupported_languages="$unsupported_languages fortran"
3420 ;;
3421esac
3422
05a13254 3423# Disable libffi for some systems.
0827f9a6 3424case "${target}" in
9863d716
JM
3425 powerpc-*-darwin*)
3426 ;;
3427 i[3456789]86-*-darwin*)
3428 ;;
3429 x86_64-*-darwin[912]*)
3430 ;;
3431 *-*-darwin*)
05a13254 3432 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3433 ;;
9863d716 3434 *-*-netware*)
05a13254
NC
3435 noconfigdirs="$noconfigdirs target-libffi"
3436 ;;
3437 *-*-phoenix*)
3438 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3439 ;;
3440 *-*-rtems*)
05a13254 3441 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3442 ;;
3443 *-*-tpf*)
05a13254 3444 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3445 ;;
3446 *-*-uclinux*)
05a13254 3447 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3448 ;;
3449 *-*-vxworks*)
05a13254
NC
3450 noconfigdirs="$noconfigdirs target-libffi"
3451 ;;
3452 aarch64*-*-freebsd*)
3453 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3454 ;;
9863d716 3455 alpha*-*-*vms*)
05a13254 3456 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3457 ;;
1b6c0831 3458 arm*-*-freebsd*)
05a13254 3459 noconfigdirs="$noconfigdirs target-libffi"
1b6c0831 3460 ;;
0827f9a6 3461 arm-wince-pe)
05a13254 3462 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3463 ;;
9863d716 3464 cris-*-* | crisv32-*-*)
9863d716
JM
3465 case "${target}" in
3466 *-*-linux*)
3467 ;;
3468 *) # See PR46792 regarding target-libffi.
05a13254 3469 noconfigdirs="$noconfigdirs target-libffi";;
9863d716
JM
3470 esac
3471 ;;
82ae827f 3472 hppa*64*-*-hpux*)
05a13254 3473 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3474 ;;
3475 hppa*-hp-hpux11*)
3476 ;;
82ae827f 3477 hppa*-*-hpux*)
05a13254 3478 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3479 ;;
9863d716 3480 ia64*-*-*vms*)
05a13254 3481 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3482 ;;
9863d716 3483 i[3456789]86-w64-mingw*)
05a13254 3484 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3485 ;;
3486 i[3456789]86-*-mingw*)
05a13254 3487 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3488 ;;
3489 x86_64-*-mingw*)
05a13254 3490 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3491 ;;
9863d716 3492 mmix-*-*)
05a13254 3493 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3494 ;;
3495 powerpc-*-aix*)
9863d716 3496 ;;
9863d716 3497 rs6000-*-aix*)
9863d716 3498 ;;
3f8107ab 3499 ft32-*-*)
05a13254 3500 noconfigdirs="$noconfigdirs target-libffi"
3f8107ab 3501 ;;
9863d716 3502 *-*-lynxos*)
05a13254 3503 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3504 ;;
9863d716
JM
3505esac
3506
1b6c0831
L
3507# Disable the go frontend on systems where it is known to not work. Please keep
3508# this in sync with contrib/config-list.mk.
3509case "${target}" in
bf41f30d 3510*-*-darwin* | *-*-cygwin* | *-*-mingw*)
1b6c0831
L
3511 unsupported_languages="$unsupported_languages go"
3512 ;;
3513esac
3514
919adfe8
TT
3515# Only allow gdbserver on some systems.
3516if test -d ${srcdir}/gdbserver; then
3517 if test x$enable_gdbserver = x; then
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3519$as_echo_n "checking for gdbserver support... " >&6; }
3520 if (srcdir=${srcdir}/gdbserver; \
3521 . ${srcdir}/configure.srv; \
3522 test -n "$UNSUPPORTED")
3523 then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525$as_echo "no" >&6; }
3526 noconfigdirs="$noconfigdirs gdbserver"
3527 else
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3529$as_echo "yes" >&6; }
3530 fi
3531 fi
3532fi
3533
a413f71a
ILT
3534# Disable libgo for some systems where it is known to not work.
3535# For testing, you can easily override this with --enable-libgo.
3536if test x$enable_libgo = x; then
3537 case "${target}" in
3538 *-*-darwin*)
3539 # PR 46986
3540 noconfigdirs="$noconfigdirs target-libgo"
3541 ;;
3542 *-*-cygwin* | *-*-mingw*)
3543 noconfigdirs="$noconfigdirs target-libgo"
3544 ;;
a413f71a
ILT
3545 esac
3546fi
3547
691bb5a1
DD
3548# Default libgloss CPU subdirectory.
3549libgloss_dir="$target_cpu"
4b1cb4fe 3550
ff46fb8f
JM
3551case "${target}" in
3552 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3553 libgloss_dir=wince
3554 ;;
f1dd87fc
YZ
3555 aarch64*-*-* )
3556 libgloss_dir=aarch64
3557 ;;
ff46fb8f
JM
3558 arm*-*-*)
3559 libgloss_dir=arm
3560 ;;
3561 cris-*-* | crisv32-*-*)
3562 libgloss_dir=cris
3563 ;;
3564 hppa*-*-*)
3565 libgloss_dir=pa
3566 ;;
3567 i[3456789]86-*-*)
3568 libgloss_dir=i386
3569 ;;
3570 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3571 libgloss_dir=m68hc11
3572 ;;
3573 m68*-*-* | fido-*-*)
3574 libgloss_dir=m68k
3575 ;;
3576 mips*-*-*)
3577 libgloss_dir=mips
3578 ;;
3579 powerpc*-*-*)
3580 libgloss_dir=rs6000
3581 ;;
3582 sparc*-*-*)
3583 libgloss_dir=sparc
3584 ;;
3585esac
3586
c7e4b184 3587# Disable newlib and libgloss for various target OSes.
a0da8069 3588case "${target}" in
c7e4b184
JM
3589 alpha*-dec-osf*)
3590 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3591 ;;
3592 i[3456789]86-*-linux*)
3593 # This section makes it possible to build newlib natively on linux.
3594 # If we are using a cross compiler then don't configure newlib.
3595 if test x${is_cross_compiler} != xno ; then
3596 noconfigdirs="$noconfigdirs target-newlib"
3597 fi
3598 noconfigdirs="$noconfigdirs target-libgloss"
3599 # If we are not using a cross compiler, do configure newlib.
3600 # Note however, that newlib will only be configured in this situation
3601 # if the --with-newlib option has been given, because otherwise
3602 # 'target-newlib' will appear in skipdirs.
3603 ;;
3604 i[3456789]86-*-rdos*)
3605 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3606 ;;
3607 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3608 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3609 ;;
3610 sparc-*-sunos4*)
3611 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3612 ;;
3613 *-*-aix*)
3614 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3615 ;;
3616 *-*-beos*)
3617 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3618 ;;
a0da8069 3619 *-*-chorusos)
b2f14e4a 3620 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3621 ;;
c7e4b184
JM
3622 *-*-dragonfly*)
3623 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3624 ;;
3625 *-*-freebsd*)
3626 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3627 ;;
3628 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3629 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3630 ;;
3631 *-*-lynxos*)
3632 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3633 ;;
3634 *-*-mingw*)
3635 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3636 ;;
3637 *-*-netbsd*)
3638 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3639 ;;
3640 *-*-netware*)
3641 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3642 ;;
3643 *-*-tpf*)
3644 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3645 ;;
3646 *-*-uclinux*)
3647 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3648 ;;
3649 *-*-vxworks*)
3650 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3651 ;;
3652esac
3653
3654case "${target}" in
3655 *-*-chorusos)
3656 ;;
f075eb5e
TG
3657 aarch64-*-darwin*)
3658 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3659 noconfigdirs="$noconfigdirs sim target-rda"
3660 ;;
3661 arm-*-darwin*)
3662 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3663 noconfigdirs="$noconfigdirs sim target-rda"
3664 ;;
24741ab2 3665 powerpc-*-darwin*)
9d39db92 3666 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3667 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3668 ;;
85bd1942
TG
3669 i[3456789]86-*-darwin*)
3670 noconfigdirs="$noconfigdirs ld gprof"
3671 noconfigdirs="$noconfigdirs sim target-rda"
3672 ;;
e8a5fa9c 3673 x86_64-*-darwin[912]*)
652dec25
TG
3674 noconfigdirs="$noconfigdirs ld gas gprof"
3675 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3676 ;;
04d1ab34 3677 *-*-darwin*)
d320aacb 3678 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3679 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3680 ;;
5b806d27 3681 *-*-dragonfly*)
5b806d27 3682 ;;
de0b4a87 3683 *-*-freebsd*)
4b1cb4fe
DD
3684 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3685 && test -f /usr/local/include/gmp.h; then
3686 with_gmp=/usr/local
3687 fi
4b1cb4fe 3688 ;;
f8a495c8
NC
3689 *-*-kaos*)
3690 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3691 noconfigdirs="$noconfigdirs target-libgloss"
3692 ;;
a0da8069 3693 *-*-netbsd*)
a0da8069 3694 ;;
2a3124ca 3695 *-*-netware*)
a0da8069 3696 ;;
05a13254
NC
3697 *-*-phoenix*)
3698 noconfigdirs="$noconfigdirs target-libgloss"
3699 ;;
a0da8069 3700 *-*-rtems*)
9863d716 3701 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3702 ;;
1587117a
EC
3703 # The tpf target doesn't support gdb yet.
3704 *-*-tpf*)
c7e4b184 3705 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3706 ;;
c1968181 3707 *-*-uclinux*)
c7e4b184 3708 noconfigdirs="$noconfigdirs target-rda"
c1968181 3709 ;;
a0da8069 3710 *-*-vxworks*)
a0da8069
NN
3711 ;;
3712 alpha*-dec-osf*)
3713 # ld works, but does not support shared libraries.
a0da8069 3714 # gas doesn't generate exception information.
c7e4b184 3715 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3716 ;;
3717 alpha*-*-*vms*)
9863d716 3718 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3719 ;;
a0da8069
NN
3720 alpha*-*-*)
3721 # newlib is not 64 bit ready
9863d716 3722 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3723 ;;
a0da8069 3724 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3725 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3726 ;;
05a13254
NC
3727 arc*-*-*)
3728 noconfigdirs="$noconfigdirs sim"
a0da8069 3729 ;;
a0da8069 3730 arm-*-pe*)
9863d716 3731 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3732 ;;
a0da8069 3733 arm-*-riscix*)
b2f14e4a 3734 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3735 ;;
8e71395b
L
3736 avr-*-*)
3737 if test x${with_avrlibc} != xno; then
3738 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3739 fi
3740 ;;
a0da8069 3741 c4x-*-* | tic4x-*-*)
b2f14e4a 3742 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3743 ;;
b2f14e4a
JM
3744 tic54x-*-*)
3745 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3746 ;;
a0da8069 3747 d10v-*-*)
b2f14e4a 3748 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3749 ;;
3750 d30v-*-*)
b2f14e4a 3751 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3752 ;;
3753 fr30-*-elf*)
9863d716 3754 noconfigdirs="$noconfigdirs gdb"
a0da8069 3755 ;;
3f8107ab
AM
3756 ft32-*-*)
3757 noconfigdirs="$noconfigdirs target-rda gprof"
3758 ;;
20135e4c 3759 moxie-*-*)
10b8fe5e 3760 noconfigdirs="$noconfigdirs"
20135e4c 3761 ;;
a0da8069 3762 h8300*-*-*)
9863d716 3763 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3764 ;;
3765 h8500-*-*)
b2f14e4a 3766 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3767 ;;
caeba88f 3768 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3769 ;;
5569a85f
JDA
3770 hppa*64*-*-hpux*)
3771 noconfigdirs="$noconfigdirs gdb"
3772 ;;
3773 hppa*-*-hpux11*)
3774 noconfigdirs="$noconfigdirs gdb ld"
3775 ;;
93cc359e 3776 hppa*64*-*-linux*)
a0da8069 3777 ;;
f0ff0f90 3778 hppa*-*-linux*)
5dcac624 3779 ;;
a0da8069 3780 hppa*-*-*elf* | \
a0da8069
NN
3781 hppa*-*-lites* | \
3782 hppa*-*-openbsd* | \
3783 hppa*64*-*-*)
4f0ef2d8 3784 ;;
691bb5a1 3785 hppa*-*-pro*)
691bb5a1 3786 ;;
a0da8069 3787 hppa*-*-*)
9863d716 3788 noconfigdirs="$noconfigdirs ld"
a0da8069 3789 ;;
b07c2aad 3790 i960-*-*)
b2f14e4a 3791 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3792 ;;
a0da8069
NN
3793 ia64*-*-elf*)
3794 # No gdb support yet.
0377a422 3795 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3796 ;;
3797 ia64*-**-hpux*)
92c9a463 3798 # No ld support yet.
5569a85f 3799 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
a0da8069 3800 ;;
19e99079 3801 ia64*-*-*vms*)
7ec59b9e
L
3802 # No ld support yet.
3803 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3804 ;;
1f53ca9a 3805 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3806 ;;
3807 i[3456789]86-*-mingw*)
45055374 3808 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3809 ;;
a0da8069
NN
3810 *-*-cygwin*)
3811 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3812 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3813 # always build newlib if winsup directory is present.
45055374 3814 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3815 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3816 elif test -d "$srcdir/newlib"; then
45055374 3817 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3818 fi
c6b750e1 3819 ;;
ec11bdc6 3820 i[3456789]86-*-pe)
782cb41f 3821 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3822 ;;
ec11bdc6 3823 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3824 # The linker does not yet know about weak symbols in COFF,
3825 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3826 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3827 ;;
ec11bdc6 3828 i[3456789]86-*-sco*)
b2f14e4a 3829 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3830 ;;
cff32a7c 3831 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3832 noconfigdirs="$noconfigdirs target-libgloss"
3833 ;;
ec11bdc6 3834 i[3456789]86-*-sysv4*)
b2f14e4a 3835 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3836 ;;
ec11bdc6 3837 i[3456789]86-*-beos*)
c7e4b184 3838 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3839 ;;
b59bea8a 3840 i[3456789]86-*-rdos*)
c7e4b184 3841 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3842 ;;
a0da8069 3843 mmix-*-*)
9863d716 3844 noconfigdirs="$noconfigdirs gdb"
a0da8069 3845 ;;
4970f871 3846 mt-*-*)
cdb9b172
AH
3847 noconfigdirs="$noconfigdirs sim"
3848 ;;
1063beb5
FT
3849 nfp-*-*)
3850 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3851 noconfigdirs="$noconfigdirs $target_libraries"
3852 ;;
11104e42
SC
3853 pdp11-*-*)
3854 noconfigdirs="$noconfigdirs gdb gprof"
3855 ;;
a0da8069
NN
3856 powerpc-*-aix*)
3857 # copied from rs6000-*-* entry
c7e4b184 3858 noconfigdirs="$noconfigdirs gprof"
a0da8069 3859 ;;
93cc359e 3860 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3861 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3862 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3863 # always build newlib.
3864 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3865 ;;
3866 # This is temporary until we can link against shared libraries
3867 powerpcle-*-solaris*)
b2f14e4a 3868 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3869 ;;
3870 powerpc-*-beos*)
c7e4b184 3871 noconfigdirs="$noconfigdirs gdb"
a0da8069 3872 ;;
a0da8069 3873 rs6000-*-lynxos*)
c7e4b184 3874 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3875 ;;
3876 rs6000-*-aix*)
c7e4b184 3877 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3878 ;;
3879 rs6000-*-*)
9863d716 3880 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3881 ;;
3882 m68k-apollo-*)
b2f14e4a 3883 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3884 ;;
25a07265 3885 microblaze*)
9863d716 3886 noconfigdirs="$noconfigdirs gprof"
25a07265 3887 ;;
a9d58c06 3888 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
5bd8be13
RS
3889 if test x$with_newlib = xyes; then
3890 noconfigdirs="$noconfigdirs gprof"
3891 fi
5bd8be13 3892 ;;
a0da8069 3893 mips*-*-irix5*)
b2f14e4a 3894 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3895 ;;
3896 mips*-*-irix6*)
9863d716 3897 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3898 ;;
a0da8069 3899 mips*-*-bsd*)
e8044f35 3900 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 3901 ;;
a0da8069 3902 mips*-*-linux*)
a0da8069 3903 ;;
e8044f35
RS
3904 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3905 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3906 noconfigdirs="$noconfigdirs ld gas gprof"
3907 ;;
a0da8069 3908 mips*-*-*)
9863d716 3909 noconfigdirs="$noconfigdirs gprof"
a0da8069 3910 ;;
1b6c0831 3911 nvptx*-*-*)
1b6c0831
L
3912 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3913 ;;
05a13254 3914 sh-*-*)
e8a5fa9c
RW
3915 case "${target}" in
3916 sh*-*-elf)
9863d716 3917 ;;
e8a5fa9c 3918 *)
9863d716 3919 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3920 esac
a0da8069 3921 ;;
a0da8069 3922 sparc-*-sunos4*)
c7e4b184 3923 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3924 use_gnu_ld=no
3925 fi
3926 ;;
619a3713 3927 tic6x-*-*)
40ae9136 3928 noconfigdirs="$noconfigdirs sim"
619a3713 3929 ;;
05a13254 3930 tilepro*-*-* | tilegx*-*-*)
eb4b2452
NC
3931 noconfigdirs="$noconfigdirs sim"
3932 ;;
a0da8069 3933 v810-*-*)
b2f14e4a 3934 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3935 ;;
3936 vax-*-*)
9863d716 3937 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3938 ;;
b29d2641
MR
3939 wasm32-*-*)
3940 noconfigdirs="$noconfigdirs ld"
3941 ;;
a0da8069 3942esac
252b5132 3943
a0da8069
NN
3944# If we aren't building newlib, then don't build libgloss, since libgloss
3945# depends upon some newlib header files.
3946case "${noconfigdirs}" in
3947 *target-libgloss*) ;;
3948 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3949esac
3950
a0da8069 3951# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3952host_makefile_frag=/dev/null
3953if test -d ${srcdir}/config ; then
3954case "${host}" in
ec11bdc6 3955 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3956 host_makefile_frag="config/mh-djgpp"
3957 ;;
3958 *-cygwin*)
e33b51a6 3959
81ecdfbb
RW
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3961$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3962echo a >cygwin-cat-check
1f53ca9a 3963if test `cat cygwin-cat-check` = a ; then
8ade07e9 3964 rm cygwin-cat-check
81ecdfbb
RW
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3966$as_echo "yes" >&6; }
e33b51a6 3967else
8ade07e9 3968 rm cygwin-cat-check
81ecdfbb
RW
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970$as_echo "no" >&6; }
d0ac1c44 3971 as_fn_error $? "The cat command does not ignore carriage return characters.
e33b51a6
NC
3972 Please either mount the build directory in binary mode or run the following
3973 commands before running any configure script:
3974set -o igncr
3975export SHELLOPTS
81ecdfbb 3976 " "$LINENO" 5
e33b51a6 3977fi
e33b51a6 3978
a0da8069
NN
3979 host_makefile_frag="config/mh-cygwin"
3980 ;;
8a1599ab 3981 *-mingw*)
84e7906e 3982 host_makefile_frag="config/mh-mingw"
2d1e8239 3983 ;;
ce6c656d
L
3984 alpha*-linux*)
3985 host_makefile_frag="config/mh-alpha-linux"
3986 ;;
da888c87 3987 hppa*-hp-hpux10*)
da888c87 3988 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3989 ;;
3516a403 3990 hppa*-hp-hpux*)
da888c87
PB
3991 host_makefile_frag="config/mh-pa"
3992 ;;
3993 hppa*-*)
3994 host_makefile_frag="config/mh-pa"
3995 ;;
e552509b
ILT
3996 *-*-darwin*)
3997 host_makefile_frag="config/mh-darwin"
0df3d27f 3998 ;;
f6d183c0
PB
3999 powerpc-*-aix*)
4000 host_makefile_frag="config/mh-ppc-aix"
4001 ;;
4002 rs6000-*-aix*)
4003 host_makefile_frag="config/mh-ppc-aix"
4004 ;;
a0da8069
NN
4005esac
4006fi
4007
9e07f89d 4008if test "${build}" != "${host}" ; then
1576798e
PB
4009 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4010 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 4011 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e 4012 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
1576798e 4013 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 4014 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
4015 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4016 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4017 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4018 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4019 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4020 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4021else
4022 AR_FOR_BUILD="\$(AR)"
4023 AS_FOR_BUILD="\$(AS)"
512b7dfb 4024 CC_FOR_BUILD="\$(CC)"
1576798e 4025 CXX_FOR_BUILD="\$(CXX)"
1576798e 4026 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 4027 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
4028 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4029 LD_FOR_BUILD="\$(LD)"
4030 NM_FOR_BUILD="\$(NM)"
4031 RANLIB_FOR_BUILD="\$(RANLIB)"
4032 WINDRES_FOR_BUILD="\$(WINDRES)"
4033 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
4034fi
4035
4036ac_ext=c
c6b750e1
DJ
4037ac_cpp='$CPP $CPPFLAGS'
4038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041if test -n "$ac_tool_prefix"; then
4042 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4043set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4046if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4047 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4048else
4049 if test -n "$CC"; then
4050 ac_cv_prog_CC="$CC" # Let the user override the test.
4051else
4052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053for as_dir in $PATH
4054do
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
81ecdfbb 4057 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4059 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4061 break 2
4062 fi
4063done
81ecdfbb
RW
4064 done
4065IFS=$as_save_IFS
c6b750e1
DJ
4066
4067fi
4068fi
4069CC=$ac_cv_prog_CC
4070if test -n "$CC"; then
81ecdfbb
RW
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4072$as_echo "$CC" >&6; }
c6b750e1 4073else
81ecdfbb
RW
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075$as_echo "no" >&6; }
c6b750e1
DJ
4076fi
4077
81ecdfbb 4078
c6b750e1
DJ
4079fi
4080if test -z "$ac_cv_prog_CC"; then
4081 ac_ct_CC=$CC
6a9cf61e 4082 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 4083set dummy gcc; ac_word=$2
81ecdfbb
RW
4084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4085$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4086if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4087 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4088else
4089 if test -n "$ac_ct_CC"; then
4090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4091else
4092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093for as_dir in $PATH
4094do
4095 IFS=$as_save_IFS
4096 test -z "$as_dir" && as_dir=.
81ecdfbb 4097 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4099 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4101 break 2
4102 fi
4103done
81ecdfbb
RW
4104 done
4105IFS=$as_save_IFS
c6b750e1
DJ
4106
4107fi
4108fi
4109ac_ct_CC=$ac_cv_prog_ac_ct_CC
4110if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4112$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4113else
81ecdfbb
RW
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115$as_echo "no" >&6; }
c6b750e1
DJ
4116fi
4117
81ecdfbb
RW
4118 if test "x$ac_ct_CC" = x; then
4119 CC=""
4120 else
4121 case $cross_compiling:$ac_tool_warned in
4122yes:)
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4125ac_tool_warned=yes ;;
4126esac
4127 CC=$ac_ct_CC
4128 fi
c6b750e1
DJ
4129else
4130 CC="$ac_cv_prog_CC"
4131fi
4132
4133if test -z "$CC"; then
81ecdfbb
RW
4134 if test -n "$ac_tool_prefix"; then
4135 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4136set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4139if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4140 $as_echo_n "(cached) " >&6
9e07f89d
NN
4141else
4142 if test -n "$CC"; then
4143 ac_cv_prog_CC="$CC" # Let the user override the test.
4144else
c6b750e1
DJ
4145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146for as_dir in $PATH
4147do
4148 IFS=$as_save_IFS
4149 test -z "$as_dir" && as_dir=.
81ecdfbb 4150 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4152 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4154 break 2
4155 fi
4156done
81ecdfbb
RW
4157 done
4158IFS=$as_save_IFS
c6b750e1 4159
9e07f89d
NN
4160fi
4161fi
c6b750e1 4162CC=$ac_cv_prog_CC
9e07f89d 4163if test -n "$CC"; then
81ecdfbb
RW
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4165$as_echo "$CC" >&6; }
c6b750e1 4166else
81ecdfbb
RW
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168$as_echo "no" >&6; }
c6b750e1
DJ
4169fi
4170
c6b750e1 4171
81ecdfbb 4172 fi
c6b750e1 4173fi
9e07f89d
NN
4174if test -z "$CC"; then
4175 # Extract the first word of "cc", so it can be a program name with args.
4176set dummy cc; ac_word=$2
81ecdfbb
RW
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4179if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4180 $as_echo_n "(cached) " >&6
9e07f89d
NN
4181else
4182 if test -n "$CC"; then
4183 ac_cv_prog_CC="$CC" # Let the user override the test.
4184else
9e07f89d 4185 ac_prog_rejected=no
c6b750e1
DJ
4186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187for as_dir in $PATH
4188do
4189 IFS=$as_save_IFS
4190 test -z "$as_dir" && as_dir=.
81ecdfbb 4191 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1
DJ
4193 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4194 ac_prog_rejected=yes
4195 continue
4196 fi
4197 ac_cv_prog_CC="cc"
81ecdfbb 4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4199 break 2
4200 fi
4201done
81ecdfbb
RW
4202 done
4203IFS=$as_save_IFS
c6b750e1 4204
9e07f89d
NN
4205if test $ac_prog_rejected = yes; then
4206 # We found a bogon in the path, so make sure we never use it.
4207 set dummy $ac_cv_prog_CC
4208 shift
c6b750e1 4209 if test $# != 0; then
9e07f89d
NN
4210 # We chose a different compiler from the bogus one.
4211 # However, it has the same basename, so the bogon will be chosen
4212 # first if we set CC to just the basename; use the full file name.
4213 shift
c6b750e1 4214 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4215 fi
4216fi
4217fi
4218fi
c6b750e1 4219CC=$ac_cv_prog_CC
9e07f89d 4220if test -n "$CC"; then
81ecdfbb
RW
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4222$as_echo "$CC" >&6; }
9e07f89d 4223else
81ecdfbb
RW
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4225$as_echo "no" >&6; }
9e07f89d
NN
4226fi
4227
81ecdfbb 4228
c6b750e1
DJ
4229fi
4230if test -z "$CC"; then
4231 if test -n "$ac_tool_prefix"; then
81ecdfbb 4232 for ac_prog in cl.exe
c6b750e1
DJ
4233 do
4234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4235set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4238if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4239 $as_echo_n "(cached) " >&6
9e07f89d
NN
4240else
4241 if test -n "$CC"; then
4242 ac_cv_prog_CC="$CC" # Let the user override the test.
4243else
c6b750e1
DJ
4244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245for as_dir in $PATH
4246do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
81ecdfbb 4249 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4251 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4253 break 2
376a0e54 4254 fi
c6b750e1 4255done
81ecdfbb
RW
4256 done
4257IFS=$as_save_IFS
cac3d6c4 4258
c6b750e1
DJ
4259fi
4260fi
4261CC=$ac_cv_prog_CC
4262if test -n "$CC"; then
81ecdfbb
RW
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4264$as_echo "$CC" >&6; }
cac3d6c4 4265else
81ecdfbb
RW
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267$as_echo "no" >&6; }
9e07f89d 4268fi
cac3d6c4 4269
81ecdfbb 4270
c6b750e1
DJ
4271 test -n "$CC" && break
4272 done
cac3d6c4 4273fi
c6b750e1
DJ
4274if test -z "$CC"; then
4275 ac_ct_CC=$CC
81ecdfbb 4276 for ac_prog in cl.exe
c6b750e1
DJ
4277do
4278 # Extract the first word of "$ac_prog", so it can be a program name with args.
4279set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4281$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4282if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4283 $as_echo_n "(cached) " >&6
cac3d6c4 4284else
c6b750e1
DJ
4285 if test -n "$ac_ct_CC"; then
4286 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4287else
c6b750e1
DJ
4288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289for as_dir in $PATH
4290do
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
81ecdfbb 4293 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4295 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4297 break 2
4298 fi
4299done
81ecdfbb
RW
4300 done
4301IFS=$as_save_IFS
c6b750e1 4302
cac3d6c4
CM
4303fi
4304fi
c6b750e1
DJ
4305ac_ct_CC=$ac_cv_prog_ac_ct_CC
4306if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4308$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4309else
81ecdfbb
RW
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311$as_echo "no" >&6; }
cac3d6c4 4312fi
376a0e54 4313
81ecdfbb 4314
c6b750e1
DJ
4315 test -n "$ac_ct_CC" && break
4316done
4317
81ecdfbb
RW
4318 if test "x$ac_ct_CC" = x; then
4319 CC=""
4320 else
4321 case $cross_compiling:$ac_tool_warned in
4322yes:)
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4325ac_tool_warned=yes ;;
4326esac
4327 CC=$ac_ct_CC
4328 fi
c6b750e1
DJ
4329fi
4330
4331fi
4332
4333
81ecdfbb
RW
4334test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4336as_fn_error $? "no acceptable C compiler found in \$PATH
4337See \`config.log' for more details" "$LINENO" 5; }
c6b750e1
DJ
4338
4339# Provide some information about the compiler.
81ecdfbb
RW
4340$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4341set X $ac_compile
4342ac_compiler=$2
4343for ac_option in --version -v -V -qversion; do
4344 { { ac_try="$ac_compiler $ac_option >&5"
4345case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348esac
4349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4350$as_echo "$ac_try_echo"; } >&5
4351 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4352 ac_status=$?
81ecdfbb
RW
4353 if test -s conftest.err; then
4354 sed '10a\
4355... rest of stderr output deleted ...
4356 10q' conftest.err >conftest.er1
4357 cat conftest.er1 >&5
81ecdfbb 4358 fi
d0ac1c44 4359 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4361 test $ac_status = 0; }
4362done
c6b750e1 4363
81ecdfbb 4364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4365/* end confdefs.h. */
4366
4367int
4368main ()
4369{
4370
4371 ;
4372 return 0;
4373}
4374_ACEOF
4375ac_clean_files_save=$ac_clean_files
d0ac1c44 4376ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
c6b750e1
DJ
4377# Try to create an executable without -o first, disregard a.out.
4378# It will help us diagnose broken compilers, and finding out an intuition
4379# of exeext.
d0ac1c44
SM
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4381$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
4382ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4383
4384# The possible output files:
4385ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4386
4387ac_rmfiles=
4388for ac_file in $ac_files
4389do
4390 case $ac_file in
4391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4392 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4393 esac
4394done
4395rm -f $ac_rmfiles
4396
4397if { { ac_try="$ac_link_default"
4398case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4401esac
4402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4403$as_echo "$ac_try_echo"; } >&5
4404 (eval "$ac_link_default") 2>&5
c6b750e1 4405 ac_status=$?
81ecdfbb
RW
4406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4407 test $ac_status = 0; }; then :
4408 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4409# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4410# in a Makefile. We should not override ac_cv_exeext if it was cached,
4411# so that the user can short-circuit this test for compilers unknown to
4412# Autoconf.
4413for ac_file in $ac_files ''
c6b750e1
DJ
4414do
4415 test -f "$ac_file" || continue
4416 case $ac_file in
81ecdfbb 4417 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4418 ;;
4419 [ab].out )
4420 # We found the default executable, but exeext='' is most
4421 # certainly right.
4422 break;;
4423 *.* )
81ecdfbb
RW
4424 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4425 then :; else
4426 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4427 fi
4428 # We set ac_cv_exeext here because the later test for it is not
4429 # safe: cross compilers may not add the suffix if given an `-o'
4430 # argument, so we may need to know it at that point already.
4431 # Even if this section looks crufty: it has the advantage of
4432 # actually working.
c6b750e1
DJ
4433 break;;
4434 * )
4435 break;;
4436 esac
4437done
81ecdfbb
RW
4438test "$ac_cv_exeext" = no && ac_cv_exeext=
4439
c6b750e1 4440else
81ecdfbb
RW
4441 ac_file=''
4442fi
81ecdfbb 4443if test -z "$ac_file"; then :
d0ac1c44
SM
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445$as_echo "no" >&6; }
4446$as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4447sed 's/^/| /' conftest.$ac_ext >&5
4448
81ecdfbb
RW
4449{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4451as_fn_error 77 "C compiler cannot create executables
4452See \`config.log' for more details" "$LINENO" 5; }
4453else
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4455$as_echo "yes" >&6; }
c6b750e1 4456fi
d0ac1c44
SM
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4458$as_echo_n "checking for C compiler default output file name... " >&6; }
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4460$as_echo "$ac_file" >&6; }
c6b750e1 4461ac_exeext=$ac_cv_exeext
c6b750e1 4462
d0ac1c44 4463rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
c6b750e1 4464ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4466$as_echo_n "checking for suffix of executables... " >&6; }
4467if { { ac_try="$ac_link"
4468case "(($ac_try" in
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4471esac
4472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4473$as_echo "$ac_try_echo"; } >&5
4474 (eval "$ac_link") 2>&5
c6b750e1 4475 ac_status=$?
81ecdfbb
RW
4476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4477 test $ac_status = 0; }; then :
c6b750e1
DJ
4478 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4479# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4480# work properly (i.e., refer to `conftest.exe'), while it won't with
4481# `rm'.
4482for ac_file in conftest.exe conftest conftest.*; do
4483 test -f "$ac_file" || continue
4484 case $ac_file in
81ecdfbb 4485 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4486 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4487 break;;
4488 * ) break;;
4489 esac
4490done
4491else
81ecdfbb
RW
4492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4494as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4495See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4496fi
d0ac1c44 4497rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4499$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4500
4501rm -f conftest.$ac_ext
4502EXEEXT=$ac_cv_exeext
4503ac_exeext=$EXEEXT
d0ac1c44
SM
4504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505/* end confdefs.h. */
4506#include <stdio.h>
4507int
4508main ()
4509{
4510FILE *f = fopen ("conftest.out", "w");
4511 return ferror (f) || fclose (f) != 0;
4512
4513 ;
4514 return 0;
4515}
4516_ACEOF
4517ac_clean_files="$ac_clean_files conftest.out"
4518# Check that the compiler produces executables we can run. If not, either
4519# the compiler is broken, or we cross compile.
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4521$as_echo_n "checking whether we are cross compiling... " >&6; }
4522if test "$cross_compiling" != yes; then
4523 { { ac_try="$ac_link"
4524case "(($ac_try" in
4525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526 *) ac_try_echo=$ac_try;;
4527esac
4528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4529$as_echo "$ac_try_echo"; } >&5
4530 (eval "$ac_link") 2>&5
4531 ac_status=$?
4532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4533 test $ac_status = 0; }
4534 if { ac_try='./conftest$ac_cv_exeext'
4535 { { case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4538esac
4539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4540$as_echo "$ac_try_echo"; } >&5
4541 (eval "$ac_try") 2>&5
4542 ac_status=$?
4543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4544 test $ac_status = 0; }; }; then
4545 cross_compiling=no
4546 else
4547 if test "$cross_compiling" = maybe; then
4548 cross_compiling=yes
4549 else
4550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4552as_fn_error $? "cannot run C compiled programs.
4553If you meant to cross compile, use \`--host'.
4554See \`config.log' for more details" "$LINENO" 5; }
4555 fi
4556 fi
4557fi
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4559$as_echo "$cross_compiling" >&6; }
4560
4561rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4562ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4564$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 4565if ${ac_cv_objext+:} false; then :
81ecdfbb 4566 $as_echo_n "(cached) " >&6
c6b750e1 4567else
81ecdfbb 4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4569/* end confdefs.h. */
4570
4571int
4572main ()
4573{
4574
4575 ;
4576 return 0;
4577}
4578_ACEOF
4579rm -f conftest.o conftest.obj
81ecdfbb
RW
4580if { { ac_try="$ac_compile"
4581case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4584esac
4585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4586$as_echo "$ac_try_echo"; } >&5
4587 (eval "$ac_compile") 2>&5
c6b750e1 4588 ac_status=$?
81ecdfbb
RW
4589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4590 test $ac_status = 0; }; then :
4591 for ac_file in conftest.o conftest.obj conftest.*; do
4592 test -f "$ac_file" || continue;
c6b750e1 4593 case $ac_file in
81ecdfbb 4594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4596 break;;
4597 esac
4598done
cac3d6c4 4599else
81ecdfbb 4600 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4601sed 's/^/| /' conftest.$ac_ext >&5
4602
81ecdfbb
RW
4603{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4604$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4605as_fn_error $? "cannot compute suffix of object files: cannot compile
4606See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4607fi
c6b750e1
DJ
4608rm -f conftest.$ac_cv_objext conftest.$ac_ext
4609fi
81ecdfbb
RW
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4611$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4612OBJEXT=$ac_cv_objext
4613ac_objext=$OBJEXT
81ecdfbb
RW
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4615$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4616if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 4617 $as_echo_n "(cached) " >&6
c6b750e1 4618else
81ecdfbb 4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4620/* end confdefs.h. */
4621
4622int
4623main ()
4624{
4625#ifndef __GNUC__
4626 choke me
4627#endif
4628
4629 ;
4630 return 0;
4631}
4632_ACEOF
81ecdfbb 4633if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4634 ac_compiler_gnu=yes
4635else
81ecdfbb 4636 ac_compiler_gnu=no
c6b750e1 4637fi
81ecdfbb 4638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4639ac_cv_c_compiler_gnu=$ac_compiler_gnu
4640
4641fi
81ecdfbb
RW
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4643$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4644if test $ac_compiler_gnu = yes; then
4645 GCC=yes
4646else
4647 GCC=
4648fi
c6b750e1
DJ
4649ac_test_CFLAGS=${CFLAGS+set}
4650ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4652$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4653if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
4654 $as_echo_n "(cached) " >&6
4655else
4656 ac_save_c_werror_flag=$ac_c_werror_flag
4657 ac_c_werror_flag=yes
4658 ac_cv_prog_cc_g=no
4659 CFLAGS="-g"
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4661/* end confdefs.h. */
4662
4663int
4664main ()
4665{
4666
4667 ;
4668 return 0;
4669}
4670_ACEOF
81ecdfbb 4671if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4672 ac_cv_prog_cc_g=yes
4673else
81ecdfbb
RW
4674 CFLAGS=""
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676/* end confdefs.h. */
4677
4678int
4679main ()
4680{
4681
4682 ;
4683 return 0;
4684}
4685_ACEOF
4686if ac_fn_c_try_compile "$LINENO"; then :
4687
4688else
4689 ac_c_werror_flag=$ac_save_c_werror_flag
4690 CFLAGS="-g"
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692/* end confdefs.h. */
cac3d6c4 4693
81ecdfbb
RW
4694int
4695main ()
4696{
4697
4698 ;
4699 return 0;
4700}
4701_ACEOF
4702if ac_fn_c_try_compile "$LINENO"; then :
4703 ac_cv_prog_cc_g=yes
4704fi
4705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4706fi
81ecdfbb 4707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4708fi
81ecdfbb
RW
4709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 ac_c_werror_flag=$ac_save_c_werror_flag
4711fi
4712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4713$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4714if test "$ac_test_CFLAGS" = set; then
c6b750e1 4715 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4716elif test $ac_cv_prog_cc_g = yes; then
4717 if test "$GCC" = yes; then
4718 CFLAGS="-g -O2"
4719 else
4720 CFLAGS="-g"
4721 fi
4722else
4723 if test "$GCC" = yes; then
4724 CFLAGS="-O2"
4725 else
4726 CFLAGS=
4727 fi
4728fi
81ecdfbb
RW
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4730$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4731if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 4732 $as_echo_n "(cached) " >&6
c6b750e1 4733else
81ecdfbb 4734 ac_cv_prog_cc_c89=no
c6b750e1 4735ac_save_CC=$CC
81ecdfbb 4736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4737/* end confdefs.h. */
4738#include <stdarg.h>
4739#include <stdio.h>
d0ac1c44 4740struct stat;
c6b750e1
DJ
4741/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4742struct buf { int x; };
4743FILE * (*rcsopen) (struct buf *, struct stat *, int);
4744static char *e (p, i)
4745 char **p;
4746 int i;
4747{
4748 return p[i];
4749}
4750static char *f (char * (*g) (char **, int), char **p, ...)
4751{
4752 char *s;
4753 va_list v;
4754 va_start (v,p);
4755 s = g (p, va_arg (v,int));
4756 va_end (v);
4757 return s;
4758}
4759
4760/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4761 function prototypes and stuff, but not '\xHH' hex character constants.
4762 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4763 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4764 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4765 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4766 that's true only with -std. */
c6b750e1
DJ
4767int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4768
81ecdfbb
RW
4769/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4770 inside strings and character constants. */
4771#define FOO(x) 'x'
4772int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4773
c6b750e1
DJ
4774int test (int i, double x);
4775struct s1 {int (*f) (int a);};
4776struct s2 {int (*f) (double a);};
4777int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4778int argc;
4779char **argv;
4780int
4781main ()
4782{
4783return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4784 ;
4785 return 0;
4786}
4787_ACEOF
81ecdfbb
RW
4788for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4789 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4790do
4791 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4792 if ac_fn_c_try_compile "$LINENO"; then :
4793 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4794fi
81ecdfbb
RW
4795rm -f core conftest.err conftest.$ac_objext
4796 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4797done
81ecdfbb 4798rm -f conftest.$ac_ext
c6b750e1
DJ
4799CC=$ac_save_CC
4800
4801fi
81ecdfbb
RW
4802# AC_CACHE_VAL
4803case "x$ac_cv_prog_cc_c89" in
4804 x)
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4806$as_echo "none needed" >&6; } ;;
4807 xno)
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4809$as_echo "unsupported" >&6; } ;;
c6b750e1 4810 *)
81ecdfbb
RW
4811 CC="$CC $ac_cv_prog_cc_c89"
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4813$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4814esac
81ecdfbb 4815if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4816
c6b750e1
DJ
4817fi
4818
c6b750e1
DJ
4819ac_ext=c
4820ac_cpp='$CPP $CPPFLAGS'
4821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4824
a8d6316b
NC
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4826$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4827if ${ac_cv_prog_cc_c99+:} false; then :
4828 $as_echo_n "(cached) " >&6
4829else
4830 ac_cv_prog_cc_c99=no
4831ac_save_CC=$CC
4832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833/* end confdefs.h. */
4834#include <stdarg.h>
4835#include <stdbool.h>
4836#include <stdlib.h>
4837#include <wchar.h>
4838#include <stdio.h>
4839
4840// Check varargs macros. These examples are taken from C99 6.10.3.5.
4841#define debug(...) fprintf (stderr, __VA_ARGS__)
4842#define showlist(...) puts (#__VA_ARGS__)
4843#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4844static void
4845test_varargs_macros (void)
4846{
4847 int x = 1234;
4848 int y = 5678;
4849 debug ("Flag");
4850 debug ("X = %d\n", x);
4851 showlist (The first, second, and third items.);
4852 report (x>y, "x is %d but y is %d", x, y);
4853}
4854
4855// Check long long types.
4856#define BIG64 18446744073709551615ull
4857#define BIG32 4294967295ul
4858#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4859#if !BIG_OK
4860 your preprocessor is broken;
4861#endif
4862#if BIG_OK
4863#else
4864 your preprocessor is broken;
4865#endif
4866static long long int bignum = -9223372036854775807LL;
4867static unsigned long long int ubignum = BIG64;
4868
4869struct incomplete_array
4870{
4871 int datasize;
4872 double data[];
4873};
4874
4875struct named_init {
4876 int number;
4877 const wchar_t *name;
4878 double average;
4879};
4880
4881typedef const char *ccp;
4882
4883static inline int
4884test_restrict (ccp restrict text)
4885{
4886 // See if C++-style comments work.
4887 // Iterate through items via the restricted pointer.
4888 // Also check for declarations in for loops.
4889 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4890 continue;
4891 return 0;
4892}
4893
4894// Check varargs and va_copy.
4895static void
4896test_varargs (const char *format, ...)
4897{
4898 va_list args;
4899 va_start (args, format);
4900 va_list args_copy;
4901 va_copy (args_copy, args);
4902
4903 const char *str;
4904 int number;
4905 float fnumber;
4906
4907 while (*format)
4908 {
4909 switch (*format++)
4910 {
4911 case 's': // string
4912 str = va_arg (args_copy, const char *);
4913 break;
4914 case 'd': // int
4915 number = va_arg (args_copy, int);
4916 break;
4917 case 'f': // float
4918 fnumber = va_arg (args_copy, double);
4919 break;
4920 default:
4921 break;
4922 }
4923 }
4924 va_end (args_copy);
4925 va_end (args);
4926}
4927
4928int
4929main ()
4930{
4931
4932 // Check bool.
4933 _Bool success = false;
4934
4935 // Check restrict.
4936 if (test_restrict ("String literal") == 0)
4937 success = true;
4938 char *restrict newvar = "Another string";
4939
4940 // Check varargs.
4941 test_varargs ("s, d' f .", "string", 65, 34.234);
4942 test_varargs_macros ();
4943
4944 // Check flexible array members.
4945 struct incomplete_array *ia =
4946 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4947 ia->datasize = 10;
4948 for (int i = 0; i < ia->datasize; ++i)
4949 ia->data[i] = i * 1.234;
4950
4951 // Check named initializers.
4952 struct named_init ni = {
4953 .number = 34,
4954 .name = L"Test wide string",
4955 .average = 543.34343,
4956 };
4957
4958 ni.number = 58;
4959
4960 int dynamic_array[ni.number];
4961 dynamic_array[ni.number - 1] = 543;
4962
4963 // work around unused variable warnings
4964 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4965 || dynamic_array[ni.number - 1] != 543);
4966
4967 ;
4968 return 0;
4969}
4970_ACEOF
4971for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4972do
4973 CC="$ac_save_CC $ac_arg"
4974 if ac_fn_c_try_compile "$LINENO"; then :
4975 ac_cv_prog_cc_c99=$ac_arg
4976fi
4977rm -f core conftest.err conftest.$ac_objext
4978 test "x$ac_cv_prog_cc_c99" != "xno" && break
4979done
4980rm -f conftest.$ac_ext
4981CC=$ac_save_CC
4982
4983fi
4984# AC_CACHE_VAL
4985case "x$ac_cv_prog_cc_c99" in
4986 x)
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4988$as_echo "none needed" >&6; } ;;
4989 xno)
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4991$as_echo "unsupported" >&6; } ;;
4992 *)
4993 CC="$CC $ac_cv_prog_cc_c99"
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4995$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4996esac
4997if test "x$ac_cv_prog_cc_c99" != xno; then :
4998
4999fi
5000
5001
81ecdfbb 5002ac_ext=cpp
18f6b6ee
PB
5003ac_cpp='$CXXCPP $CPPFLAGS'
5004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
5007if test -z "$CXX"; then
5008 if test -n "$CCC"; then
5009 CXX=$CCC
5010 else
5011 if test -n "$ac_tool_prefix"; then
5012 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
5013 do
5014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5015set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5017$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5018if ${ac_cv_prog_CXX+:} false; then :
81ecdfbb 5019 $as_echo_n "(cached) " >&6
18f6b6ee
PB
5020else
5021 if test -n "$CXX"; then
5022 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5023else
5024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025for as_dir in $PATH
5026do
5027 IFS=$as_save_IFS
5028 test -z "$as_dir" && as_dir=.
81ecdfbb 5029 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 5031 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 5032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
5033 break 2
5034 fi
5035done
81ecdfbb
RW
5036 done
5037IFS=$as_save_IFS
512b7dfb 5038
18f6b6ee
PB
5039fi
5040fi
5041CXX=$ac_cv_prog_CXX
5042if test -n "$CXX"; then
81ecdfbb
RW
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5044$as_echo "$CXX" >&6; }
18f6b6ee 5045else
81ecdfbb
RW
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047$as_echo "no" >&6; }
18f6b6ee
PB
5048fi
5049
81ecdfbb 5050
18f6b6ee
PB
5051 test -n "$CXX" && break
5052 done
5053fi
5054if test -z "$CXX"; then
5055 ac_ct_CXX=$CXX
81ecdfbb 5056 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
5057do
5058 # Extract the first word of "$ac_prog", so it can be a program name with args.
5059set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5062if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 5063 $as_echo_n "(cached) " >&6
18f6b6ee
PB
5064else
5065 if test -n "$ac_ct_CXX"; then
5066 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5067else
5068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069for as_dir in $PATH
5070do
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
81ecdfbb 5073 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 5075 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 5077 break 2
512b7dfb 5078 fi
18f6b6ee 5079done
81ecdfbb
RW
5080 done
5081IFS=$as_save_IFS
512b7dfb 5082
18f6b6ee
PB
5083fi
5084fi
5085ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5086if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5088$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 5089else
81ecdfbb
RW
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091$as_echo "no" >&6; }
18f6b6ee
PB
5092fi
5093
81ecdfbb 5094
18f6b6ee
PB
5095 test -n "$ac_ct_CXX" && break
5096done
18f6b6ee 5097
81ecdfbb
RW
5098 if test "x$ac_ct_CXX" = x; then
5099 CXX="g++"
5100 else
5101 case $cross_compiling:$ac_tool_warned in
5102yes:)
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5105ac_tool_warned=yes ;;
5106esac
5107 CXX=$ac_ct_CXX
5108 fi
18f6b6ee
PB
5109fi
5110
81ecdfbb
RW
5111 fi
5112fi
18f6b6ee 5113# Provide some information about the compiler.
81ecdfbb
RW
5114$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5115set X $ac_compile
5116ac_compiler=$2
5117for ac_option in --version -v -V -qversion; do
5118 { { ac_try="$ac_compiler $ac_option >&5"
5119case "(($ac_try" in
5120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121 *) ac_try_echo=$ac_try;;
5122esac
5123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5124$as_echo "$ac_try_echo"; } >&5
5125 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 5126 ac_status=$?
81ecdfbb
RW
5127 if test -s conftest.err; then
5128 sed '10a\
5129... rest of stderr output deleted ...
5130 10q' conftest.err >conftest.er1
5131 cat conftest.er1 >&5
81ecdfbb 5132 fi
d0ac1c44 5133 rm -f conftest.er1 conftest.err
81ecdfbb
RW
5134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5135 test $ac_status = 0; }
5136done
18f6b6ee 5137
81ecdfbb
RW
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5139$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 5140if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 5141 $as_echo_n "(cached) " >&6
18f6b6ee 5142else
81ecdfbb 5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
5144/* end confdefs.h. */
5145
5146int
5147main ()
5148{
5149#ifndef __GNUC__
5150 choke me
5151#endif
5152
5153 ;
5154 return 0;
5155}
5156_ACEOF
81ecdfbb 5157if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
5158 ac_compiler_gnu=yes
5159else
81ecdfbb 5160 ac_compiler_gnu=no
18f6b6ee 5161fi
81ecdfbb 5162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
5163ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5164
5165fi
81ecdfbb
RW
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5167$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5168if test $ac_compiler_gnu = yes; then
5169 GXX=yes
5170else
5171 GXX=
5172fi
18f6b6ee
PB
5173ac_test_CXXFLAGS=${CXXFLAGS+set}
5174ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5176$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 5177if ${ac_cv_prog_cxx_g+:} false; then :
81ecdfbb
RW
5178 $as_echo_n "(cached) " >&6
5179else
5180 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5181 ac_cxx_werror_flag=yes
5182 ac_cv_prog_cxx_g=no
5183 CXXFLAGS="-g"
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
5185/* end confdefs.h. */
5186
5187int
5188main ()
5189{
5190
5191 ;
5192 return 0;
5193}
5194_ACEOF
81ecdfbb 5195if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
5196 ac_cv_prog_cxx_g=yes
5197else
81ecdfbb
RW
5198 CXXFLAGS=""
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5200/* end confdefs.h. */
81ecdfbb 5201
18f6b6ee
PB
5202int
5203main ()
5204{
81ecdfbb 5205
18f6b6ee
PB
5206 ;
5207 return 0;
5208}
5209_ACEOF
81ecdfbb 5210if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 5211
81ecdfbb
RW
5212else
5213 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5214 CXXFLAGS="-g"
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5216/* end confdefs.h. */
81ecdfbb 5217
18f6b6ee
PB
5218int
5219main ()
5220{
81ecdfbb 5221
18f6b6ee
PB
5222 ;
5223 return 0;
5224}
5225_ACEOF
81ecdfbb
RW
5226if ac_fn_cxx_try_compile "$LINENO"; then :
5227 ac_cv_prog_cxx_g=yes
18f6b6ee 5228fi
81ecdfbb
RW
5229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5230fi
5231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5232fi
5233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5234 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5235fi
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5237$as_echo "$ac_cv_prog_cxx_g" >&6; }
5238if test "$ac_test_CXXFLAGS" = set; then
5239 CXXFLAGS=$ac_save_CXXFLAGS
5240elif test $ac_cv_prog_cxx_g = yes; then
5241 if test "$GXX" = yes; then
5242 CXXFLAGS="-g -O2"
5243 else
5244 CXXFLAGS="-g"
5245 fi
5246else
5247 if test "$GXX" = yes; then
5248 CXXFLAGS="-O2"
5249 else
5250 CXXFLAGS=
5251 fi
18f6b6ee 5252fi
18f6b6ee
PB
5253ac_ext=c
5254ac_cpp='$CPP $CPPFLAGS'
5255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257ac_compiler_gnu=$ac_cv_c_compiler_gnu
5258
5259
5260# We must set the default linker to the linker used by gcc for the correct
5261# operation of libtool. If LD is not defined and we are using gcc, try to
5262# set the LD default to the ld used by gcc.
5263if test -z "$LD"; then
5264 if test "$GCC" = yes; then
5265 case $build in
5266 *-*-mingw*)
5267 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5268 *)
5269 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5270 esac
5271 case $gcc_prog_ld in
5272 # Accept absolute paths.
5273 [\\/]* | [A-Za-z]:[\\/]*)
5274 LD="$gcc_prog_ld" ;;
5275 esac
5276 fi
512b7dfb
PB
5277fi
5278
b3676d82
EB
5279# Check whether -static-libstdc++ -static-libgcc is supported.
5280have_static_libs=no
5281if test "$GCC" = yes; then
5282 saved_LDFLAGS="$LDFLAGS"
5283
5284 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5286$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5287 ac_ext=cpp
5288ac_cpp='$CXXCPP $CPPFLAGS'
5289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5292
5293
5294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295/* end confdefs.h. */
a882be68
EB
5296
5297#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5298#error -static-libstdc++ not implemented
5299#endif
b3676d82
EB
5300int main() {}
5301_ACEOF
5302if ac_fn_cxx_try_link "$LINENO"; then :
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5304$as_echo "yes" >&6; }; have_static_libs=yes
5305else
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307$as_echo "no" >&6; }
5308fi
5309rm -f core conftest.err conftest.$ac_objext \
5310 conftest$ac_exeext conftest.$ac_ext
5311 ac_ext=c
5312ac_cpp='$CPP $CPPFLAGS'
5313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5315ac_compiler_gnu=$ac_cv_c_compiler_gnu
5316
5317
5318 LDFLAGS="$saved_LDFLAGS"
5319fi
5320
512b7dfb
PB
5321
5322
5323
c6b750e1 5324if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5325 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5326set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5329if ${ac_cv_prog_GNATBIND+:} false; then :
81ecdfbb 5330 $as_echo_n "(cached) " >&6
9e07f89d 5331else
512b7dfb
PB
5332 if test -n "$GNATBIND"; then
5333 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5334else
c6b750e1
DJ
5335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336for as_dir in $PATH
5337do
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
81ecdfbb 5340 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5342 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5344 break 2
5345 fi
5346done
81ecdfbb
RW
5347 done
5348IFS=$as_save_IFS
c6b750e1 5349
9e07f89d
NN
5350fi
5351fi
512b7dfb
PB
5352GNATBIND=$ac_cv_prog_GNATBIND
5353if test -n "$GNATBIND"; then
81ecdfbb
RW
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5355$as_echo "$GNATBIND" >&6; }
9e07f89d 5356else
81ecdfbb
RW
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358$as_echo "no" >&6; }
9e07f89d
NN
5359fi
5360
81ecdfbb 5361
c6b750e1 5362fi
512b7dfb
PB
5363if test -z "$ac_cv_prog_GNATBIND"; then
5364 ac_ct_GNATBIND=$GNATBIND
5365 # Extract the first word of "gnatbind", so it can be a program name with args.
5366set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5369if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
81ecdfbb 5370 $as_echo_n "(cached) " >&6
9e07f89d 5371else
512b7dfb
PB
5372 if test -n "$ac_ct_GNATBIND"; then
5373 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5374else
c6b750e1
DJ
5375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376for as_dir in $PATH
5377do
5378 IFS=$as_save_IFS
5379 test -z "$as_dir" && as_dir=.
81ecdfbb 5380 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5382 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5384 break 2
5385 fi
5386done
81ecdfbb
RW
5387 done
5388IFS=$as_save_IFS
c6b750e1 5389
9e07f89d
NN
5390fi
5391fi
512b7dfb
PB
5392ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5393if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5395$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5396else
81ecdfbb
RW
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398$as_echo "no" >&6; }
9e07f89d
NN
5399fi
5400
81ecdfbb
RW
5401 if test "x$ac_ct_GNATBIND" = x; then
5402 GNATBIND="no"
5403 else
5404 case $cross_compiling:$ac_tool_warned in
5405yes:)
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5408ac_tool_warned=yes ;;
5409esac
5410 GNATBIND=$ac_ct_GNATBIND
5411 fi
24ff9987 5412else
512b7dfb 5413 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5414fi
5415
7df2cd5d 5416if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5417 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5418set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5421if ${ac_cv_prog_GNATMAKE+:} false; then :
81ecdfbb 5422 $as_echo_n "(cached) " >&6
7df2cd5d 5423else
512b7dfb
PB
5424 if test -n "$GNATMAKE"; then
5425 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5426else
5427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428for as_dir in $PATH
5429do
5430 IFS=$as_save_IFS
5431 test -z "$as_dir" && as_dir=.
81ecdfbb 5432 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5434 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5436 break 2
5437 fi
5438done
81ecdfbb
RW
5439 done
5440IFS=$as_save_IFS
7df2cd5d
PB
5441
5442fi
5443fi
512b7dfb
PB
5444GNATMAKE=$ac_cv_prog_GNATMAKE
5445if test -n "$GNATMAKE"; then
81ecdfbb
RW
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5447$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5448else
81ecdfbb
RW
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450$as_echo "no" >&6; }
7df2cd5d
PB
5451fi
5452
81ecdfbb 5453
7df2cd5d 5454fi
512b7dfb
PB
5455if test -z "$ac_cv_prog_GNATMAKE"; then
5456 ac_ct_GNATMAKE=$GNATMAKE
5457 # Extract the first word of "gnatmake", so it can be a program name with args.
5458set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5461if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
81ecdfbb 5462 $as_echo_n "(cached) " >&6
7df2cd5d 5463else
512b7dfb
PB
5464 if test -n "$ac_ct_GNATMAKE"; then
5465 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5466else
5467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468for as_dir in $PATH
5469do
5470 IFS=$as_save_IFS
5471 test -z "$as_dir" && as_dir=.
81ecdfbb 5472 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5474 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5476 break 2
5477 fi
5478done
81ecdfbb
RW
5479 done
5480IFS=$as_save_IFS
7df2cd5d 5481
7df2cd5d
PB
5482fi
5483fi
512b7dfb
PB
5484ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5485if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5487$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5488else
81ecdfbb
RW
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490$as_echo "no" >&6; }
7df2cd5d
PB
5491fi
5492
81ecdfbb
RW
5493 if test "x$ac_ct_GNATMAKE" = x; then
5494 GNATMAKE="no"
5495 else
5496 case $cross_compiling:$ac_tool_warned in
5497yes:)
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5500ac_tool_warned=yes ;;
5501esac
5502 GNATMAKE=$ac_ct_GNATMAKE
5503 fi
7df2cd5d 5504else
512b7dfb 5505 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5506fi
5507
81ecdfbb
RW
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5509$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
d0ac1c44 5510if ${acx_cv_cc_gcc_supports_ada+:} false; then :
81ecdfbb 5511 $as_echo_n "(cached) " >&6
9e07f89d
NN
5512else
5513 cat >conftest.adb <<EOF
5514procedure conftest is begin null; end conftest;
5515EOF
5516acx_cv_cc_gcc_supports_ada=no
5517# There is a bug in old released versions of GCC which causes the
5518# driver to exit successfully when the appropriate language module
5519# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5520# Therefore we must check for the error message as well as an
5521# unsuccessful exit.
b8908782
DD
5522# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5523# given a .adb file, but produce no object file. So we must check
5524# if an object file was really produced to guard against this.
9e07f89d 5525errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5526if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5527 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5528fi
5529rm -f conftest.*
5530fi
81ecdfbb
RW
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5532$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5533
64b986c0 5534if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5535 have_gnat=yes
5536else
5537 have_gnat=no
5538fi
5539
81ecdfbb
RW
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5541$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
d0ac1c44 5542if ${gcc_cv_prog_cmp_skip+:} false; then :
81ecdfbb 5543 $as_echo_n "(cached) " >&6
b8908782
DD
5544else
5545 echo abfoo >t1
5546 echo cdfoo >t2
da17fe9d 5547 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5548 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5549 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5550 :
5551 else
5552 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5553 fi
5554 fi
b8908782
DD
5555 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5556 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5557 :
b8908782
DD
5558 else
5559 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5560 fi
5561 fi
5562 rm t1 t2
5563
5564fi
81ecdfbb
RW
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5566$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5567do_compare="$gcc_cv_prog_cmp_skip"
5568
5569
9e07f89d 5570
ffdd6afc
ILT
5571# Check whether --enable-bootstrap was given.
5572if test "${enable_bootstrap+set}" = set; then :
5573 enableval=$enable_bootstrap;
5574else
5575 enable_bootstrap=default
5576fi
5577
5578
5579# Issue errors and warnings for invalid/strange bootstrap combinations.
5580if test -r $srcdir/gcc/configure; then
5581 have_compiler=yes
5582else
5583 have_compiler=no
5584fi
5585
5586case "$have_compiler:$host:$target:$enable_bootstrap" in
5587 *:*:*:no) ;;
5588
5589 # Default behavior. Enable bootstrap if we have a compiler
5590 # and we are in a native configuration.
5591 yes:$build:$build:default)
5592 enable_bootstrap=yes ;;
5593
5594 *:*:*:default)
5595 enable_bootstrap=no ;;
5596
5597 # We have a compiler and we are in a native configuration, bootstrap is ok
5598 yes:$build:$build:yes)
5599 ;;
5600
5601 # Other configurations, but we have a compiler. Assume the user knows
5602 # what he's doing.
5603 yes:*:*:yes)
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5605$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5606 ;;
5607
5608 # No compiler: if they passed --enable-bootstrap explicitly, fail
5609 no:*:*:yes)
d0ac1c44 5610 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ffdd6afc
ILT
5611
5612 # Fail if wrong command line
5613 *)
d0ac1c44 5614 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ffdd6afc
ILT
5615 ;;
5616esac
5617
ce6c656d
L
5618# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5619# C++98 compiler can still start the bootstrap.
5620if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5621 CXX="$CXX -std=gnu++98"
5622fi
5623
af019bfd
L
5624# Check whether --enable-pgo-build was given.
5625if test "${enable_pgo_build+set}" = set; then :
5626 enableval=$enable_pgo_build; enable_pgo_build=$enableval
5627else
5628 enable_pgo_build=no
5629fi
5630
5631
5632# Issue errors and warnings for invalid/strange PGO build combinations.
5633case "$have_compiler:$host:$target:$enable_pgo_build" in
5634 *:*:*:no) ;;
5635
5636 # Allow the PGO build only if we aren't building a compiler and
5637 # we are in a native configuration.
5638 no:$build:$build:yes | no:$build:$build:lto) ;;
5639
5640 # Disallow the PGO bootstrap if we are building a compiler.
5641 yes:*:*:yes | yes:*:*:lto)
5642 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
5643
5644 *)
5645 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
5646 ;;
5647esac
5648
5649if test "$enable_pgo_build" != "no"; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
5651$as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
5652 old_CFLAGS="$CFLAGS"
5653 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
5654 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
5655
5656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657/* end confdefs.h. */
5658int foo;
5659_ACEOF
5660if ac_fn_c_try_compile "$LINENO"; then :
5661
5662else
5663 PGO_BUILD_GEN_CFLAGS=
5664fi
5665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666 CFLAGS="$old_CFLAGS"
5667 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5669$as_echo "yes" >&6; }
5670 PGO_BUILD_USE_CFLAGS="-fprofile-use"
5671 else
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673$as_echo "no" >&6; }
5674 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
5675 fi
5676
5677 if test "$enable_pgo_build" = "lto"; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
5679$as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
5680 old_CFLAGS="$CFLAGS"
5681 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
5682 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684/* end confdefs.h. */
5685int foo;
5686_ACEOF
5687if ac_fn_c_try_compile "$LINENO"; then :
5688
5689else
5690 PGO_BUILD_LTO_CFLAGS=
5691fi
5692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5693 CFLAGS="$old_CFLAGS"
5694 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5696$as_echo "yes" >&6; }
5697 else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699$as_echo "no" >&6; }
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
5701$as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
5702 fi
5703 fi
5704fi
5705
5706
5707
5708
d5f2ee2e
KG
5709# Used for setting $lt_cv_objdir
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5711$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 5712if ${lt_cv_objdir+:} false; then :
d5f2ee2e
KG
5713 $as_echo_n "(cached) " >&6
5714else
5715 rm -f .libs 2>/dev/null
5716mkdir .libs 2>/dev/null
5717if test -d .libs; then
5718 lt_cv_objdir=.libs
5719else
5720 # MS-DOS does not allow filenames that begin with a dot.
5721 lt_cv_objdir=_libs
5722fi
5723rmdir .libs 2>/dev/null
5724fi
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5726$as_echo "$lt_cv_objdir" >&6; }
5727objdir=$lt_cv_objdir
5728
5729
5730
5731
5732
5733cat >>confdefs.h <<_ACEOF
5734#define LT_OBJDIR "$lt_cv_objdir/"
5735_ACEOF
5736
5737
5738
e8a5fa9c 5739# Check for GMP, MPFR and MPC
d9b76ff9 5740gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5741gmpinc=
4b900473 5742have_gmp=no
e8a5fa9c
RW
5743
5744# Specify a location for mpc
5745# check for this first so it ends up on the link line before mpfr.
5746
81ecdfbb
RW
5747# Check whether --with-mpc was given.
5748if test "${with_mpc+set}" = set; then :
5749 withval=$with_mpc;
5750fi
e8a5fa9c 5751
e8a5fa9c 5752
e552509b 5753# Check whether --with-mpc-include was given.
81ecdfbb
RW
5754if test "${with_mpc_include+set}" = set; then :
5755 withval=$with_mpc_include;
5756fi
e8a5fa9c 5757
e8a5fa9c 5758
e552509b 5759# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5760if test "${with_mpc_lib+set}" = set; then :
5761 withval=$with_mpc_lib;
5762fi
e8a5fa9c 5763
e8a5fa9c
RW
5764
5765if test "x$with_mpc" != x; then
d9b76ff9
KG
5766 gmplibs="-L$with_mpc/lib $gmplibs"
5767 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5768fi
5769if test "x$with_mpc_include" != x; then
d9b76ff9 5770 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5771fi
5772if test "x$with_mpc_lib" != x; then
d9b76ff9 5773 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5774fi
5775if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5776 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5777 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5778 # Do not test the mpc version. Assume that it is sufficient, since
5779 # it is in the source tree, and the library has not been built yet
5780 # but it would be included on the link line in the version check below
5781 # hence making the test fail.
d9b76ff9 5782 have_gmp=yes
e8a5fa9c 5783fi
4b900473 5784
11b04d1f
DD
5785# Specify a location for mpfr
5786# check for this first so it ends up on the link line before gmp.
c6b750e1 5787
81ecdfbb
RW
5788# Check whether --with-mpfr-dir was given.
5789if test "${with_mpfr_dir+set}" = set; then :
d0ac1c44 5790 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
81ecdfbb
RW
5791Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5792fi
5793
11b04d1f
DD
5794
5795
81ecdfbb
RW
5796# Check whether --with-mpfr was given.
5797if test "${with_mpfr+set}" = set; then :
5798 withval=$with_mpfr;
5799fi
c6b750e1 5800
11b04d1f 5801
e552509b 5802# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5803if test "${with_mpfr_include+set}" = set; then :
5804 withval=$with_mpfr_include;
5805fi
c6b750e1 5806
8a0d8a5c 5807
e552509b 5808# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5809if test "${with_mpfr_lib+set}" = set; then :
5810 withval=$with_mpfr_lib;
5811fi
8a0d8a5c 5812
11b04d1f
DD
5813
5814if test "x$with_mpfr" != x; then
5815 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5816 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5817fi
8a0d8a5c 5818if test "x$with_mpfr_include" != x; then
d9b76ff9 5819 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5820fi
5821if test "x$with_mpfr_lib" != x; then
5822 gmplibs="-L$with_mpfr_lib $gmplibs"
5823fi
4b900473 5824if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21 5825 # MPFR v3.1.0 moved the sources into a src sub-directory.
05a13254 5826 if ! test -d ${srcdir}/mpfr/src; then
d0ac1c44 5827 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
58b1dd21 5828 fi
05a13254
NC
5829 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5830 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5831 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
4b900473
PB
5832 # Do not test the mpfr version. Assume that it is sufficient, since
5833 # it is in the source tree, and the library has not been built yet
5834 # but it would be included on the link line in the version check below
5835 # hence making the test fail.
5836 have_gmp=yes
5837fi
11b04d1f 5838
4b1cb4fe 5839# Specify a location for gmp
c6b750e1 5840
81ecdfbb
RW
5841# Check whether --with-gmp-dir was given.
5842if test "${with_gmp_dir+set}" = set; then :
d0ac1c44 5843 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
81ecdfbb
RW
5844Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5845fi
5846
4b1cb4fe
DD
5847
5848
81ecdfbb
RW
5849# Check whether --with-gmp was given.
5850if test "${with_gmp+set}" = set; then :
5851 withval=$with_gmp;
5852fi
c6b750e1 5853
4b1cb4fe 5854
e552509b 5855# Check whether --with-gmp-include was given.
81ecdfbb
RW
5856if test "${with_gmp_include+set}" = set; then :
5857 withval=$with_gmp_include;
5858fi
c6b750e1 5859
8a0d8a5c 5860
e552509b 5861# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5862if test "${with_gmp_lib+set}" = set; then :
5863 withval=$with_gmp_lib;
5864fi
8a0d8a5c
PB
5865
5866
4b1cb4fe 5867
11b04d1f
DD
5868if test "x$with_gmp" != x; then
5869 gmplibs="-L$with_gmp/lib $gmplibs"
5870 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5871fi
8a0d8a5c
PB
5872if test "x$with_gmp_include" != x; then
5873 gmpinc="-I$with_gmp_include $gmpinc"
5874fi
5875if test "x$with_gmp_lib" != x; then
5876 gmplibs="-L$with_gmp_lib $gmplibs"
5877fi
4b900473 5878if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5879 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5880 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5881 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5882 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5883 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5884 # Do not test the gmp version. Assume that it is sufficient, since
5885 # it is in the source tree, and the library has not been built yet
5886 # but it would be included on the link line in the version check below
5887 # hence making the test fail.
5888 have_gmp=yes
5889fi
4b1cb4fe 5890
ceb92e78 5891if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5892 have_gmp=yes
5893 saved_CFLAGS="$CFLAGS"
5894 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5895 # Check for the recommended and required versions of GMP.
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5897$as_echo_n "checking for the correct version of gmp.h... " >&6; }
af019bfd 5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5899/* end confdefs.h. */
5900#include "gmp.h"
5901int
5902main ()
5903{
5904
5905 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5906 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5907 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5908 choke me
5909 #endif
5910
5911 ;
5912 return 0;
5913}
5914_ACEOF
5915if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5917/* end confdefs.h. */
a6b5846e 5918#include <gmp.h>
c6b750e1
DJ
5919int
5920main ()
5921{
4b1cb4fe 5922
a6b5846e
KG
5923 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5924 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5925 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5926 choke me
5927 #endif
c6b750e1
DJ
5928
5929 ;
5930 return 0;
5931}
5932_ACEOF
81ecdfbb
RW
5933if ac_fn_c_try_compile "$LINENO"; then :
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5935$as_echo "yes" >&6; }
a6b5846e
KG
5936else
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5938$as_echo "buggy but acceptable" >&6; }
5939fi
5940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5941else
81ecdfbb
RW
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5944fi
81ecdfbb 5945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5946
e8a5fa9c 5947 # If we have GMP, check the MPFR version.
4b900473 5948 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5949 # Check for the recommended and required versions of MPFR.
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5951$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5953/* end confdefs.h. */
9b134994 5954#include <gmp.h>
4b900473 5955 #include <mpfr.h>
c6b750e1
DJ
5956int
5957main ()
5958{
9b134994 5959
7ec59b9e 5960 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5961 choke me
5962 #endif
c6b750e1
DJ
5963
5964 ;
5965 return 0;
5966}
5967_ACEOF
81ecdfbb
RW
5968if ac_fn_c_try_compile "$LINENO"; then :
5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5970/* end confdefs.h. */
4b1cb4fe 5971#include <gmp.h>
4b900473 5972 #include <mpfr.h>
c6b750e1
DJ
5973int
5974main ()
5975{
9dbaa842 5976
a6b5846e 5977 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5978 choke me
5979 #endif
e8a5fa9c
RW
5980
5981 ;
5982 return 0;
5983}
5984_ACEOF
81ecdfbb
RW
5985if ac_fn_c_try_compile "$LINENO"; then :
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5987$as_echo "yes" >&6; }
e8a5fa9c 5988else
81ecdfbb
RW
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5990$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5991fi
81ecdfbb 5992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5993else
81ecdfbb
RW
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5996fi
81ecdfbb 5997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5998 fi
5999
6000 # Check for the MPC header version.
d9b76ff9 6001 if test x"$have_gmp" = xyes ; then
a6b5846e 6002 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
6004$as_echo_n "checking for the correct version of mpc.h... " >&6; }
6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
6006/* end confdefs.h. */
6007#include <mpc.h>
6008int
6009main ()
6010{
6011
a6b5846e
KG
6012 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
6013 choke me
6014 #endif
6015
6016 ;
6017 return 0;
6018}
6019_ACEOF
6020if ac_fn_c_try_compile "$LINENO"; then :
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022/* end confdefs.h. */
6023#include <mpc.h>
6024int
6025main ()
6026{
6027
6028 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
6029 choke me
6030 #endif
6031
6032 ;
6033 return 0;
6034}
6035_ACEOF
81ecdfbb
RW
6036if ac_fn_c_try_compile "$LINENO"; then :
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 6038$as_echo "yes" >&6; }
a6b5846e
KG
6039else
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6041$as_echo "buggy but acceptable" >&6; }
6042fi
6043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 6044else
81ecdfbb 6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 6046$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 6047fi
81ecdfbb 6048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
6049 fi
6050
6051 # Now check the MPFR library.
6052 if test x"$have_gmp" = xyes; then
6053 saved_LIBS="$LIBS"
6054 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
6056$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 6058/* end confdefs.h. */
d9b76ff9 6059#include <mpc.h>
e8a5fa9c
RW
6060int
6061main ()
6062{
6063
6064 mpfr_t n;
6065 mpfr_t x;
d9b76ff9 6066 mpc_t c;
e8a5fa9c
RW
6067 int t;
6068 mpfr_init (n);
6069 mpfr_init (x);
6070 mpfr_atan2 (n, n, x, GMP_RNDN);
6071 mpfr_erfc (n, x, GMP_RNDN);
6072 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
6073 mpfr_clear(n);
6074 mpfr_clear(x);
6075 mpc_init2 (c, 53);
6076 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
6077 mpc_cosh (c, c, MPC_RNDNN);
6078 mpc_pow (c, c, c, MPC_RNDNN);
6079 mpc_acosh (c, c, MPC_RNDNN);
6080 mpc_clear (c);
c6b750e1
DJ
6081
6082 ;
6083 return 0;
6084}
6085_ACEOF
81ecdfbb
RW
6086if ac_fn_c_try_link "$LINENO"; then :
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6088$as_echo "yes" >&6; }
c6b750e1 6089else
81ecdfbb
RW
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091$as_echo "no" >&6; }; have_gmp=no
c6b750e1 6092fi
81ecdfbb
RW
6093rm -f core conftest.err conftest.$ac_objext \
6094 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
6095 LIBS="$saved_LIBS"
6096 fi
6097
4b900473 6098 CFLAGS="$saved_CFLAGS"
4b1cb4fe 6099
a6b5846e
KG
6100# The library versions listed in the error message below should match
6101# the HARD-minimums enforced above.
4b900473 6102 if test x$have_gmp != xyes; then
d0ac1c44 6103 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
6104Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
6105their locations. Source code for these libraries can be found at
6106their respective hosting sites as well as at
6107ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
6108http://gcc.gnu.org/install/prerequisites.html for additional info. If
6109you obtained GMP, MPFR and/or MPC from a vendor distribution package,
6110make sure that you have installed both the libraries and the header
6111files. They may be located in separate packages." "$LINENO" 5
4b900473 6112 fi
9dbaa842
DD
6113fi
6114
e8a5fa9c
RW
6115# Flags needed for both GMP, MPFR and/or MPC.
6116
6117
6118
4b1cb4fe
DD
6119
6120
6121
7ec59b9e 6122
b3676d82 6123# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 6124
b3676d82
EB
6125# Check whether --with-stage1-libs was given.
6126if test "${with_stage1_libs+set}" = set; then :
6127 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6128 stage1_libs=
e8a5fa9c 6129 else
b3676d82 6130 stage1_libs=$withval
e8a5fa9c
RW
6131 fi
6132else
68996839 6133 stage1_libs=
81ecdfbb
RW
6134fi
6135
e8a5fa9c
RW
6136
6137
c1a5d03a
TT
6138# Whether or not to use -static-libstdc++ and -static-libgcc. The
6139# default is yes if gcc is being built; no otherwise. The reason for
6140# this default is that gdb is sometimes linked against GNU Source
6141# Highlight, which is a shared library that uses C++ exceptions. In
6142# this case, -static-libstdc++ will cause crashes.
6143
6144# Check whether --with-static-standard-libraries was given.
6145if test "${with_static_standard_libraries+set}" = set; then :
6146 withval=$with_static_standard_libraries;
6147else
6148 with_static_standard_libraries=auto
6149fi
6150
6151if test "$with_static_standard_libraries" = auto; then
6152 with_static_standard_libraries=$have_compiler
6153fi
6154
b3676d82 6155# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 6156
b3676d82
EB
6157# Check whether --with-stage1-ldflags was given.
6158if test "${with_stage1_ldflags+set}" = set; then :
6159 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6160 stage1_ldflags=
e8a5fa9c 6161 else
b3676d82 6162 stage1_ldflags=$withval
e8a5fa9c
RW
6163 fi
6164else
b3676d82
EB
6165 stage1_ldflags=
6166 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
6167 # if supported. But if the user explicitly specified the libraries to use,
6168 # trust that they are doing what they want.
c1a5d03a
TT
6169 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
6170 -a "$have_static_libs" = yes; then
b3676d82
EB
6171 stage1_ldflags="-static-libstdc++ -static-libgcc"
6172 fi
81ecdfbb
RW
6173fi
6174
e8a5fa9c
RW
6175
6176
68996839 6177# Libraries to use for stage2 and later builds.
e8a5fa9c 6178
81ecdfbb
RW
6179# Check whether --with-boot-libs was given.
6180if test "${with_boot_libs+set}" = set; then :
6181 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
6182 poststage1_libs=
6183 else
6184 poststage1_libs=$withval
6185 fi
6186else
68996839 6187 poststage1_libs=
81ecdfbb
RW
6188fi
6189
e8a5fa9c
RW
6190
6191
143754cd
NC
6192# Linker flags to use for stage2 and later builds.
6193
6194# Check whether --with-boot-ldflags was given.
6195if test "${with_boot_ldflags+set}" = set; then :
6196 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6197 poststage1_ldflags=
6198 else
6199 poststage1_ldflags=$withval
6200 fi
6201else
6202 poststage1_ldflags=
4f11b223
ILT
6203 # In stages 2 and 3, default to linking libstdc++ and libgcc
6204 # statically. But if the user explicitly specified the libraries to
6205 # use, trust that they are doing what they want.
6206 if test "$poststage1_libs" = ""; then
143754cd
NC
6207 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6208 fi
6209fi
6210
6211
6212
4849dfd8 6213# GCC GRAPHITE dependency isl.
1b6c0831 6214# Basic setup is inlined here, actual checks are in config/isl.m4
e28c595f
JM
6215
6216
7ec59b9e
L
6217# Check whether --with-isl was given.
6218if test "${with_isl+set}" = set; then :
6219 withval=$with_isl;
81ecdfbb 6220fi
e28c595f 6221
e28c595f 6222
1b6c0831 6223# Treat --without-isl as a request to disable
8e71395b 6224# GRAPHITE support and skip all following checks.
1b6c0831 6225if test "x$with_isl" != "xno"; then
4849dfd8 6226 # Check for isl
8e71395b
L
6227
6228
7ec59b9e
L
6229# Check whether --with-isl-include was given.
6230if test "${with_isl_include+set}" = set; then :
6231 withval=$with_isl_include;
81ecdfbb
RW
6232fi
6233
e28c595f 6234
7ec59b9e
L
6235# Check whether --with-isl-lib was given.
6236if test "${with_isl_lib+set}" = set; then :
6237 withval=$with_isl_lib;
81ecdfbb 6238fi
e28c595f 6239
e28c595f 6240
7ec59b9e
L
6241 # Check whether --enable-isl-version-check was given.
6242if test "${enable_isl_version_check+set}" = set; then :
6243 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6244else
6245 ENABLE_ISL_CHECK=yes
b123da99
SP
6246fi
6247
6248
7ec59b9e
L
6249 # Initialize isllibs and islinc.
6250 case $with_isl in
6251 no)
6252 isllibs=
6253 islinc=
6254 ;;
6255 "" | yes)
6256 ;;
6257 *)
6258 isllibs="-L$with_isl/lib"
6259 islinc="-I$with_isl/include"
6260 ;;
6261 esac
6262 if test "x${with_isl_include}" != x ; then
6263 islinc="-I$with_isl_include"
6264 fi
6265 if test "x${with_isl_lib}" != x; then
6266 isllibs="-L$with_isl_lib"
6267 fi
6268 if test "x${islinc}" = x && test "x${isllibs}" = x \
6269 && test -d ${srcdir}/isl; then
6270 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6271 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6272 ENABLE_ISL_CHECK=no
4849dfd8
NC
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6274$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
7ec59b9e 6275 fi
b123da99 6276
1b6c0831 6277 isllibs="${isllibs} -lisl"
b123da99 6278
e28c595f 6279
b3fc79f8
JBG
6280
6281 if test "${ENABLE_ISL_CHECK}" = yes ; then
6282 _isl_saved_CFLAGS=$CFLAGS
6283 _isl_saved_LDFLAGS=$LDFLAGS
6284 _isl_saved_LIBS=$LIBS
6285
6286 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
4849dfd8
NC
6287 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6288 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
b3fc79f8 6289
bf41f30d
NC
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6291$as_echo_n "checking for isl 0.15 or later... " >&6; }
1b6c0831 6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3fc79f8 6293/* end confdefs.h. */
bf41f30d 6294#include <isl/schedule.h>
b3fc79f8
JBG
6295int
6296main ()
6297{
bf41f30d 6298isl_options_set_schedule_serialize_sccs (NULL, 0);
b3fc79f8
JBG
6299 ;
6300 return 0;
6301}
6302_ACEOF
1b6c0831 6303if ac_fn_c_try_link "$LINENO"; then :
b3fc79f8
JBG
6304 gcc_cv_isl=yes
6305else
6306 gcc_cv_isl=no
6307fi
1b6c0831
L
6308rm -f core conftest.err conftest.$ac_objext \
6309 conftest$ac_exeext conftest.$ac_ext
b3fc79f8
JBG
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6311$as_echo "$gcc_cv_isl" >&6; }
6312
4849dfd8 6313 if test "${gcc_cv_isl}" = no ; then
bf41f30d
NC
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6315$as_echo "required isl version is 0.15 or later" >&6; }
4849dfd8
NC
6316 fi
6317
b3fc79f8
JBG
6318 CFLAGS=$_isl_saved_CFLAGS
6319 LDFLAGS=$_isl_saved_LDFLAGS
6320 LIBS=$_isl_saved_LIBS
6321 fi
6322
6323
e28c595f 6324
e28c595f 6325
7ec59b9e
L
6326
6327
7ec59b9e
L
6328 if test "x${with_isl}" = xno; then
6329 graphite_requested=no
6330 elif test "x${with_isl}" != x \
6331 || test "x${with_isl_include}" != x \
6332 || test "x${with_isl_lib}" != x ; then
6333 graphite_requested=yes
6334 else
6335 graphite_requested=no
b123da99 6336 fi
e28c595f 6337
e28c595f
JM
6338
6339
7ec59b9e
L
6340 if test "${gcc_cv_isl}" = no ; then
6341 isllibs=
6342 islinc=
6343 fi
e28c595f 6344
7ec59b9e
L
6345 if test "${graphite_requested}" = yes \
6346 && test "x${isllibs}" = x \
6347 && test "x${islinc}" = x ; then
e28c595f 6348
d0ac1c44 6349 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
7ec59b9e 6350 fi
e552509b 6351
e28c595f 6352
e552509b
ILT
6353fi
6354
4849dfd8 6355# If the isl check failed, disable builds of in-tree variant of isl
8e71395b 6356if test "x$with_isl" = xno ||
8e71395b 6357 test "x$gcc_cv_isl" = xno; then
1b6c0831 6358 noconfigdirs="$noconfigdirs isl"
8e71395b 6359 islinc=
7ec59b9e
L
6360fi
6361
8e71395b
L
6362
6363
6364
700d40ca
ILT
6365# Check for LTO support.
6366# Check whether --enable-lto was given.
6367if test "${enable_lto+set}" = set; then :
6368 enableval=$enable_lto; enable_lto=$enableval
6369else
6370 enable_lto=yes; default_enable_lto=yes
6371fi
6372
6373
143754cd 6374
e49e5c92
DK
6375
6376
6377target_elf=no
6378case $target in
6379 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 6380 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
1b6c0831
L
6381 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6382 nvptx-*-none)
e49e5c92
DK
6383 target_elf=no
6384 ;;
6385 *)
6386 target_elf=yes
6387 ;;
6388esac
6389
6390if test $target_elf = yes; then :
74cea91b
DK
6391 # ELF platforms build the lto-plugin always.
6392 build_lto_plugin=yes
e49e5c92 6393
e49e5c92
DK
6394else
6395 if test x"$default_enable_lto" = x"yes" ; then
29821356 6396 case $target in
bf41f30d 6397 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
74cea91b 6398 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6399 *) enable_lto=no ;;
6400 esac
e49e5c92 6401 else
29821356
RW
6402 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6403 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6404 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6405 # warn during gcc/ subconfigure; unless you're bootstrapping with
6406 # -flto it won't be needed until after installation anyway.
6407 case $target in
52cf9762 6408 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
e49e5c92 6409 *) if test x"$enable_lto" = x"yes"; then
d0ac1c44 6410 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
e49e5c92
DK
6411 fi
6412 ;;
6413 esac
6414 fi
a8eb3f0a 6415 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6416 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6417 case $target in
74cea91b 6418 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6419 *) ;;
6420 esac
74cea91b 6421
e49e5c92
DK
6422fi
6423
700d40ca 6424
1b6c0831
L
6425# Check whether --enable-linker-plugin-configure-flags was given.
6426if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6427 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6428else
6429 extra_linker_plugin_configure_flags=
6430fi
6431
6432
6433# Check whether --enable-linker-plugin-flags was given.
6434if test "${enable_linker_plugin_flags+set}" = set; then :
6435 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6436else
6437 extra_linker_plugin_flags=
6438fi
6439
6440
6441
bf41f30d
NC
6442# Enable --enable-host-shared.
6443# Checked early to determine whether jit is an 'all' language
6444# Check whether --enable-host-shared was given.
6445if test "${enable_host_shared+set}" = set; then :
6446 enableval=$enable_host_shared; host_shared=$enableval
6447else
6448 host_shared=no
6449fi
6450
6451
e28c595f 6452
7ec59b9e 6453# By default, C and C++ are the only stage 1 languages.
9b134994 6454stage1_languages=,c,
1d39f329 6455
e8a5fa9c 6456# Target libraries that we bootstrap.
2aa2364a 6457bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6458
9e07f89d
NN
6459# Figure out what language subdirectories are present.
6460# Look if the user specified --enable-languages="..."; if not, use
6461# the environment variable $LANGUAGES if defined. $LANGUAGES might
6462# go away some day.
6463# NB: embedded tabs in this IF block -- do not untabify
6464if test -d ${srcdir}/gcc; then
6465 if test x"${enable_languages+set}" != xset; then
6466 if test x"${LANGUAGES+set}" = xset; then
6467 enable_languages="${LANGUAGES}"
136bb21f 6468 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9e07f89d 6469 else
bf41f30d 6470 enable_languages=default
9e07f89d
NN
6471 fi
6472 else
6473 if test x"${enable_languages}" = x ||
6474 test x"${enable_languages}" = xyes;
6475 then
136bb21f 6476 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9e07f89d
NN
6477 exit 1
6478 fi
6479 fi
6480 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6481
096f7d00
DE
6482 # 'f95' is the old name for the 'fortran' language. We issue a warning
6483 # and make the substitution.
6484 case ,${enable_languages}, in
6485 *,f95,*)
136bb21f 6486 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
096f7d00
DE
6487 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6488 ;;
6489 esac
6490
7ec59b9e
L
6491 # If bootstrapping, C++ must be enabled.
6492 case ",$enable_languages,:$enable_bootstrap" in
6493 *,c++,*:*) ;;
6494 *:yes)
ffdd6afc
ILT
6495 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6496 enable_languages="${enable_languages},c++"
6497 else
d0ac1c44 6498 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6499 fi
6500 ;;
6501 esac
6502
9e07f89d
NN
6503 # First scan to see if an enabled language requires some other language.
6504 # We assume that a given config-lang.in will list all the language
6505 # front ends it requires, even if some are required indirectly.
6506 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6507 case ${lang_frag} in
6508 ..) ;;
6509 # The odd quoting in the next line works around
6510 # an apparent bug in bash 1.12 on linux.
6511 ${srcdir}/gcc/[*]/config-lang.in) ;;
6512 *)
e552509b
ILT
6513 # From the config-lang.in, get $language, $lang_requires, and
6514 # $lang_requires_boot_languages.
9e07f89d
NN
6515 language=
6516 lang_requires=
e552509b 6517 lang_requires_boot_languages=
bf41f30d
NC
6518 # set srcdir during sourcing lang_frag to the gcc dir.
6519 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6520 # polutes this shell
6521 saved_srcdir=${srcdir}
6522 srcdir=${srcdir}/gcc . ${lang_frag}
6523 srcdir=${saved_srcdir}
e552509b 6524 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6525 case ,${enable_languages}, in
6526 *,$other,*) ;;
bf41f30d 6527 *,default,*) ;;
9e07f89d
NN
6528 *,all,*) ;;
6529 *,$language,*)
6530 echo " \`$other' language required by \`$language'; enabling" 1>&2
6531 enable_languages="${enable_languages},${other}"
6532 ;;
6533 esac
6534 done
e552509b
ILT
6535 for other in ${lang_requires_boot_languages} ; do
6536 if test "$other" != "c"; then
6537 case ,${enable_stage1_languages}, in
6538 *,$other,*) ;;
bf41f30d 6539 *,default,*) ;;
e552509b
ILT
6540 *,all,*) ;;
6541 *)
6542 case ,${enable_languages}, in
6543 *,$language,*)
6544 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6545 enable_stage1_languages="$enable_stage1_languages,${other}"
6546 ;;
6547 esac
6548 ;;
6549 esac
6550 fi
6551 done
9e07f89d
NN
6552 ;;
6553 esac
6554 done
6555
9b134994 6556 new_enable_languages=,c,
700d40ca
ILT
6557
6558 # If LTO is enabled, add the LTO front end.
700d40ca 6559 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6560 case ,${enable_languages}, in
6561 *,lto,*) ;;
6562 *) enable_languages="${enable_languages},lto" ;;
6563 esac
a8eb3f0a 6564 if test "${build_lto_plugin}" = "yes" ; then
700d40ca 6565 configdirs="$configdirs lto-plugin"
700d40ca
ILT
6566 fi
6567 fi
6568
1b6c0831
L
6569 # If we're building an offloading compiler, add the LTO front end.
6570 if test x"$enable_as_accelerator_for" != x ; then
6571 case ,${enable_languages}, in
6572 *,lto,*) ;;
6573 *) enable_languages="${enable_languages},lto" ;;
6574 esac
6575 fi
700d40ca 6576
bf41f30d 6577 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6578 potential_languages=,c,
9e07f89d 6579
9e1a94f4
ILT
6580 enabled_target_libs=
6581 disabled_target_libs=
6582
9e07f89d
NN
6583 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6584 case ${lang_frag} in
6585 ..) ;;
6586 # The odd quoting in the next line works around
6587 # an apparent bug in bash 1.12 on linux.
6588 ${srcdir}/gcc/[*]/config-lang.in) ;;
6589 *)
c6b750e1 6590 # From the config-lang.in, get $language, $target_libs,
1d39f329 6591 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6592 language=
6593 target_libs=
6594 lang_dirs=
64ce424c 6595 subdir_requires=
9b134994
PB
6596 boot_language=no
6597 build_by_default=yes
bf41f30d
NC
6598 # set srcdir during sourcing. See above about save & restore
6599 saved_srcdir=${srcdir}
6600 srcdir=${srcdir}/gcc . ${lang_frag}
6601 srcdir=${saved_srcdir}
9b134994
PB
6602 if test x${language} = x; then
6603 echo "${lang_frag} doesn't set \$language." 1>&2
6604 exit 1
6605 fi
6606
ffdd6afc 6607 if test "$language" = "c++"; then
7ec59b9e 6608 boot_language=yes
e8a5fa9c
RW
6609 fi
6610
8e71395b 6611 add_this_lang=no
bf41f30d
NC
6612 # C is always enabled, so no need to add it again
6613 if test "$language" != "c"; then
6614 case ,${enable_languages}, in
6615 *,${language},*)
6616 # Language was explicitly selected; include it
7ec59b9e 6617 add_this_lang=yes
bf41f30d
NC
6618 ;;
6619 *,all,*)
6620 # All languages are enabled
6621 add_this_lang=all
6622 ;;
6623 *,default,*)
6624 # 'default' was selected, select it if it is a default language
8e71395b 6625 add_this_lang=${build_by_default}
bf41f30d
NC
6626 ;;
6627 esac
6628 fi
4b1cb4fe 6629
64ce424c 6630 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6631 for i in $subdir_requires; do
3d3adb43 6632 test -f "$srcdir/gcc/$i/config-lang.in" && continue
bf41f30d
NC
6633 case ${add_this_lang} in
6634 yes)
64ce424c 6635 # Specifically requested language; tell them.
d0ac1c44 6636 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c 6637 ;;
bf41f30d
NC
6638 all)
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6640$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6641 add_this_lang=unsupported
6642 ;;
64ce424c
PB
6643 *)
6644 # Silently disable.
9b134994 6645 add_this_lang=unsupported
64ce424c
PB
6646 ;;
6647 esac
6648 done
6649
9b134994 6650 # Disable Ada if no preexisting GNAT is available.
bf41f30d
NC
6651 case ${add_this_lang}:${language}:${have_gnat} in
6652 yes:ada:no)
9b134994 6653 # Specifically requested language; tell them.
d0ac1c44 6654 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9b134994 6655 ;;
bf41f30d
NC
6656 all:ada:no)
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6658$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6659 add_this_lang=unsupported
6660 ;;
9b134994
PB
6661 *:ada:no)
6662 # Silently disable.
6663 add_this_lang=unsupported
6664 ;;
6665 esac
6666
bf41f30d
NC
6667 # Disable jit if -enable-host-shared not specified
6668 case ${add_this_lang}:${language}:${host_shared} in
6669 yes:jit:no)
6670 # PR jit/64780: explicitly specify --enable-host-shared
d0ac1c44 6671 as_fn_error $? "
bf41f30d
NC
6672Enabling language \"jit\" requires --enable-host-shared.
6673
6674--enable-host-shared typically slows the rest of the compiler down by
6675a few %, so you must explicitly enable it.
6676
6677If you want to build both the jit and the regular compiler, it is often
6678best to do this via two separate configure/builds, in separate
6679directories, to avoid imposing the performance cost of
6680--enable-host-shared on the regular compiler." "$LINENO" 5
6681 ;;
6682 all:jit:no)
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6684$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6685 add_this_lang=unsupported
6686 ;;
6687 *:jit:no)
6688 # Silently disable.
6689 add_this_lang=unsupported
6690 ;;
6691 esac
6692
6693 # Disable a language that is unsupported by the target.
6694 case "${add_this_lang}: $unsupported_languages " in
6695 no:*) ;;
6696 unsupported:*) ;;
6697 *:*" $language "*)
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6699$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9b134994 6700 add_this_lang=unsupported
59f7ec45
HPN
6701 ;;
6702 esac
6703
4b1cb4fe 6704 case $add_this_lang in
9b134994 6705 unsupported)
9e07f89d 6706 # Remove language-dependent dirs.
9e1a94f4
ILT
6707 disabled_target_libs="$disabled_target_libs $target_libs"
6708 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6709 ;;
9b134994
PB
6710 no)
6711 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6712 disabled_target_libs="$disabled_target_libs $target_libs"
6713 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6714 potential_languages="${potential_languages}${language},"
6715 ;;
bf41f30d 6716 all|yes)
9b134994
PB
6717 new_enable_languages="${new_enable_languages}${language},"
6718 potential_languages="${potential_languages}${language},"
1d39f329 6719 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6720 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6721 case "${boot_language}:,$enable_stage1_languages," in
6722 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6723 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6724 case ",$stage1_languages," in
6725 *,$language,* | ,yes, | ,all,) ;;
6726 *) stage1_languages="${stage1_languages}${language}," ;;
6727 esac
e8a5fa9c
RW
6728 # We need to bootstrap any supporting libraries.
6729 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6730 ;;
6731 esac
6732 ;;
9e07f89d
NN
6733 esac
6734 ;;
6735 esac
6736 done
6737
9e1a94f4
ILT
6738 # Add target libraries which are only needed for disabled languages
6739 # to noconfigdirs.
6740 if test -n "$disabled_target_libs"; then
6741 for dir in $disabled_target_libs; do
6742 case " $enabled_target_libs " in
6743 *" ${dir} "*) ;;
6744 *) noconfigdirs="$noconfigdirs $dir" ;;
6745 esac
6746 done
6747 fi
6748
81ecdfbb
RW
6749 # Check whether --enable-stage1-languages was given.
6750if test "${enable_stage1_languages+set}" = set; then :
6751 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6752 ,no,|,,)
6753 # Set it to something that will have no effect in the loop below
6754 enable_stage1_languages=c ;;
6755 ,yes,)
6756 enable_stage1_languages=`echo $new_enable_languages | \
6757 sed -e "s/^,//" -e "s/,$//" ` ;;
6758 *,all,*)
6759 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6760 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6761 esac
6762
6763 # Add "good" languages from enable_stage1_languages to stage1_languages,
6764 # while "bad" languages go in missing_languages. Leave no duplicates.
6765 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6766 case $potential_languages in
6767 *,$i,*)
6768 case $stage1_languages in
6769 *,$i,*) ;;
6770 *) stage1_languages="$stage1_languages$i," ;;
6771 esac ;;
6772 *)
6773 case $missing_languages in
6774 *,$i,*) ;;
6775 *) missing_languages="$missing_languages$i," ;;
6776 esac ;;
6777 esac
6778 done
81ecdfbb
RW
6779fi
6780
9b134994
PB
6781
6782 # Remove leading/trailing commas that were added for simplicity
6783 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6784 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6785 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6786 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6787
9e07f89d 6788 if test "x$missing_languages" != x; then
d0ac1c44 6789 as_fn_error $? "
27258dd4 6790The following requested languages could not be built: ${missing_languages}
81ecdfbb 6791Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6792 fi
9e07f89d
NN
6793 if test "x$new_enable_languages" != "x$enable_languages"; then
6794 echo The following languages will be built: ${new_enable_languages}
9b134994 6795 enable_languages="$new_enable_languages"
9e07f89d 6796 fi
9b134994 6797
c6b750e1 6798
81ec575a 6799 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6800fi
6801
a6df5a19
PB
6802# Handle --disable-<component> generically.
6803for dir in $configdirs $build_configdirs $target_configdirs ; do
6804 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6805 varname=`echo $dirname | sed -e s/+/_/g`
6806 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6807 noconfigdirs="$noconfigdirs $dir"
6808 fi
6809done
6810
4f0ef2d8 6811# Check for Boehm's garbage collector
81ecdfbb
RW
6812# Check whether --enable-objc-gc was given.
6813if test "${enable_objc_gc+set}" = set; then :
05a13254 6814 enableval=$enable_objc_gc;
81ecdfbb
RW
6815fi
6816
4f0ef2d8 6817
05a13254
NC
6818# Check whether --with-target-bdw-gc was given.
6819if test "${with_target_bdw_gc+set}" = set; then :
6820 withval=$with_target_bdw_gc;
6821fi
6822
6823
6824# Check whether --with-target-bdw-gc-include was given.
6825if test "${with_target_bdw_gc_include+set}" = set; then :
6826 withval=$with_target_bdw_gc_include;
6827fi
6828
6829
6830# Check whether --with-target-bdw-gc-lib was given.
6831if test "${with_target_bdw_gc_lib+set}" = set; then :
6832 withval=$with_target_bdw_gc_lib;
6833fi
6834
6835
6836case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6838$as_echo_n "checking for bdw garbage collector... " >&6; }
6839 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6841$as_echo "using bdw-gc in default locations" >&6; }
6842 else
6843 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
d0ac1c44 6844 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
05a13254 6845 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
d0ac1c44 6846 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
05a13254
NC
6847 else
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6849$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
d42c4017 6850 fi
05a13254 6851 fi
4f0ef2d8
CD
6852esac
6853
bf41f30d 6854# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
7ec59b9e 6855case ,${enable_languages}, in
1b6c0831 6856 *,c++,*)
bf41f30d 6857 # Disable libitm, libsanitizer if we're not building libstdc++
1b6c0831
L
6858 case "${noconfigdirs}" in
6859 *target-libstdc++-v3*)
bf41f30d 6860 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1b6c0831
L
6861 ;;
6862 *) ;;
6863 esac
6864 ;;
7ec59b9e 6865 *)
bf41f30d 6866 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
6867 ;;
6868esac
6869
d33228c9
AB
6870# If gcc/ is not in the source tree then we'll not be building a
6871# target compiler, assume in that case we don't want to build any
6872# target libraries or tools.
6873#
6874# This was added primarily for the benefit for binutils-gdb who reuse
6875# this configure script, but don't always have target tools available.
6876if test ! -d ${srcdir}/gcc; then
6877 skipdirs="${skipdirs} ${target_configdirs}"
6878fi
6879
caeba88f
AL
6880# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6881# $build_configdirs and $target_configdirs.
9e07f89d
NN
6882# If we have the source for $noconfigdirs entries, add them to $notsupp.
6883
6884notsupp=""
6885for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6886 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6887 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6888 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6889 if test -r $srcdir/$dirname/configure ; then
6890 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6891 true
6892 else
6893 notsupp="$notsupp $dir"
6894 fi
6895 fi
6896 fi
caeba88f
AL
6897 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6898 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6899 if test -r $srcdir/$dirname/configure ; then
6900 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6901 true
6902 else
6903 notsupp="$notsupp $dir"
6904 fi
6905 fi
6906 fi
9e07f89d
NN
6907 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6908 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6909 if test -r $srcdir/$dirname/configure ; then
6910 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6911 true
6912 else
6913 notsupp="$notsupp $dir"
6914 fi
6915 fi
6916 fi
6917done
6918
9e07f89d
NN
6919# Quietly strip out all directories which aren't configurable in this tree.
6920# This relies on all configurable subdirectories being autoconfiscated, which
6921# is now the case.
6a9cf61e
PB
6922build_configdirs_all="$build_configdirs"
6923build_configdirs=
6924for i in ${build_configdirs_all} ; do
c6b750e1 6925 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6926 if test -f ${srcdir}/$j/configure ; then
6927 build_configdirs="${build_configdirs} $i"
6928 fi
6929done
6930
9e07f89d
NN
6931configdirs_all="$configdirs"
6932configdirs=
6933for i in ${configdirs_all} ; do
6934 if test -f ${srcdir}/$i/configure ; then
6935 configdirs="${configdirs} $i"
6936 fi
6937done
6a9cf61e 6938
9e07f89d
NN
6939target_configdirs_all="$target_configdirs"
6940target_configdirs=
6941for i in ${target_configdirs_all} ; do
c6b750e1 6942 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6943 if test -f ${srcdir}/$j/configure ; then
6944 target_configdirs="${target_configdirs} $i"
6945 fi
6946done
6947
1b6c0831
L
6948# libiberty-linker-plugin is special: it doesn't have its own source directory,
6949# so we have to add it after the preceding checks.
6950if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6951then
6952 case " $configdirs " in
6953 *" libiberty "*)
6954 # If we can build libiberty, we can also build libiberty-linker-plugin.
6955 configdirs="$configdirs libiberty-linker-plugin"
6956 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6957 --with-libiberty=../libiberty-linker-plugin";;
6958 *)
d0ac1c44 6959 as_fn_error $? "libiberty missing" "$LINENO" 5;;
1b6c0831
L
6960 esac
6961fi
6962
6963# Sometimes we have special requirements for the host libiberty.
6964extra_host_libiberty_configure_flags=
e81d5d05 6965extra_host_zlib_configure_flags=
1b6c0831
L
6966case " $configdirs " in
6967 *" lto-plugin "* | *" libcc1 "*)
6968 # When these are to be built as shared libraries, the same applies to
6969 # libiberty.
6970 extra_host_libiberty_configure_flags=--enable-shared
6971 ;;
e81d5d05
L
6972 *" bfd "*)
6973 # When bfd is to be built as a shared library, the same applies to
6974 # zlib.
6975 if test "$enable_shared" = "yes"; then
6976 extra_host_zlib_configure_flags=--enable-host-shared
6977 fi
6978 ;;
1b6c0831
L
6979esac
6980
6981
e81d5d05 6982
9e07f89d
NN
6983# Produce a warning message for the subdirs we can't configure.
6984# This isn't especially interesting in the Cygnus tree, but in the individual
6985# FSF releases, it's important to let people know when their machine isn't
6986# supported by the one or two programs in a package.
6987
6988if test -n "${notsupp}" && test -z "${norecursion}" ; then
6989 # If $appdirs is non-empty, at least one of those directories must still
6990 # be configured, or we error out. (E.g., if the gas release supports a
6991 # specified target in some subdirs but not the gas subdir, we shouldn't
6992 # pretend that all is well.)
6993 if test -n "$appdirs" ; then
6994 for dir in $appdirs ; do
6995 if test -r $dir/Makefile.in ; then
6996 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6997 appdirs=""
6998 break
6999 fi
6a9cf61e 7000 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
7001 appdirs=""
7002 break
7003 fi
7004 fi
7005 done
7006 if test -n "$appdirs" ; then
7007 echo "*** This configuration is not supported by this package." 1>&2
7008 exit 1
7009 fi
7010 fi
7011 # Okay, some application will build, or we don't care to check. Still
7012 # notify of subdirs not getting built.
7013 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
7014 echo " ${notsupp}" 1>&2
7015 echo " (Any other directories should still work fine.)" 1>&2
7016fi
7017
7018case "$host" in
7019 *msdosdjgpp*)
7020 enable_gdbtk=no ;;
7021esac
7022
18f6b6ee
PB
7023# To find our prefix, in gcc_cv_tool_prefix.
7024
7025# The user is always right.
7026if test "${PATH_SEPARATOR+set}" != set; then
7027 echo "#! /bin/sh" >conf$$.sh
7028 echo "exit 0" >>conf$$.sh
7029 chmod +x conf$$.sh
7030 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7031 PATH_SEPARATOR=';'
7032 else
7033 PATH_SEPARATOR=:
7034 fi
7035 rm -f conf$$.sh
7036fi
7037
7038
bf41f30d
NC
7039 get_gcc_base_ver="cat"
7040
7041# Check whether --with-gcc-major-version-only was given.
7042if test "${with_gcc_major_version_only+set}" = set; then :
7043 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
37f980dc 7044 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
bf41f30d
NC
7045 fi
7046
7047fi
7048
7049
7050
7051
7052
18f6b6ee
PB
7053
7054if test "x$exec_prefix" = xNONE; then
7055 if test "x$prefix" = xNONE; then
7056 gcc_cv_tool_prefix=$ac_default_prefix
7057 else
7058 gcc_cv_tool_prefix=$prefix
7059 fi
7060else
7061 gcc_cv_tool_prefix=$exec_prefix
7062fi
7063
7064# If there is no compiler in the tree, use the PATH only. In any
7065# case, if there is no compiler in the tree nobody should use
7066# AS_FOR_TARGET and LD_FOR_TARGET.
7067if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
bf41f30d
NC
7068 if test x$with_gcc_major_version_only = xyes ; then
7069 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
7070 else
7071 gcc_version=`cat $srcdir/gcc/BASE-VER`
7072 fi
18f6b6ee
PB
7073 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7074 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7075 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7076 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7077 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7078 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7079else
7080 gcc_cv_tool_dirs=
7081fi
7082
7083if test x$build = x$target && test -n "$md_exec_prefix"; then
7084 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7085fi
7086
7087
7088
9e07f89d
NN
7089copy_dirs=
7090
c6b750e1 7091
81ecdfbb
RW
7092# Check whether --with-build-sysroot was given.
7093if test "${with_build_sysroot+set}" = set; then :
7094 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
7095 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7096 fi
7097else
7098 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 7099fi
a19b6204
MM
7100
7101
8a6ee3ab 7102
81ecdfbb
RW
7103
7104# Check whether --with-debug-prefix-map was given.
7105if test "${with_debug_prefix_map+set}" = set; then :
7106 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
7107 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7108 for debug_map in $withval; do
7109 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7110 done
7111 fi
7112else
7113 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
7114fi
7115
8a6ee3ab
JM
7116
7117
7f6ef0c0
PB
7118# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7119# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
7120# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7121# We want to ensure that TARGET libraries (which we know are built with
7122# gcc) are built with "-O2 -g", so include those options when setting
7123# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7124if test "x$CFLAGS_FOR_TARGET" = x; then
1b6c0831
L
7125 if test "x${is_cross_compiler}" = xyes; then
7126 CFLAGS_FOR_TARGET="-g -O2"
7127 else
7128 CFLAGS_FOR_TARGET=$CFLAGS
7129 case " $CFLAGS " in
7130 *" -O2 "*) ;;
7131 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
7132 esac
7133 case " $CFLAGS " in
7134 *" -g "* | *" -g3 "*) ;;
7135 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
7136 esac
7137 fi
7f6ef0c0
PB
7138fi
7139
7140
7141if test "x$CXXFLAGS_FOR_TARGET" = x; then
1b6c0831
L
7142 if test "x${is_cross_compiler}" = xyes; then
7143 CXXFLAGS_FOR_TARGET="-g -O2"
7144 else
7145 CXXFLAGS_FOR_TARGET=$CXXFLAGS
7146 case " $CXXFLAGS " in
7147 *" -O2 "*) ;;
7148 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7149 esac
7150 case " $CXXFLAGS " in
7151 *" -g "* | *" -g3 "*) ;;
7152 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7153 esac
7154 fi
7f6ef0c0
PB
7155fi
7156
7157
91c1f14c
DK
7158
7159
9e07f89d
NN
7160# Handle --with-headers=XXX. If the value is not "yes", the contents of
7161# the named directory are copied to $(tooldir)/sys-include.
7162if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7163 if test x${is_cross_compiler} = xno ; then
7164 echo 1>&2 '***' --with-headers is only supported when cross compiling
7165 exit 1
7166 fi
7167 if test x"${with_headers}" != xyes ; then
18f6b6ee 7168 x=${gcc_cv_tool_prefix}
c6b750e1 7169 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
7170 fi
7171fi
7172
7173# Handle --with-libs=XXX. If the value is not "yes", the contents of
7174# the name directories are copied to $(tooldir)/lib. Multiple directories
7175# are permitted.
7176if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7177 if test x${is_cross_compiler} = xno ; then
7178 echo 1>&2 '***' --with-libs is only supported when cross compiling
7179 exit 1
7180 fi
7181 if test x"${with_libs}" != xyes ; then
7182 # Copy the libraries in reverse order, so that files in the first named
7183 # library override files in subsequent libraries.
18f6b6ee 7184 x=${gcc_cv_tool_prefix}
9e07f89d 7185 for l in ${with_libs}; do
c6b750e1 7186 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
7187 done
7188 fi
7189fi
7190
700d40ca 7191# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
7192#
7193# This is done by determining whether or not the appropriate directory
7194# is available, and by checking whether or not specific configurations
7195# have requested that this magic not happen.
c6b750e1
DJ
7196#
7197# The command line options always override the explicit settings in
136bb21f 7198# configure.ac, and the settings in configure.ac override this magic.
2429c060 7199#
c6b750e1 7200# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 7201# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
7202# --without-gnu-ld options for the configure script. Similarly, if
7203# the default is to use the included zlib and you don't want to do that,
7204# you should use the --with-system-zlib option for the configure script.
2429c060
PB
7205
7206if test x${use_gnu_as} = x &&
7207 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7208 with_gnu_as=yes
7209 extra_host_args="$extra_host_args --with-gnu-as"
7210fi
7211
7212if test x${use_gnu_ld} = x &&
93f9b408 7213 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
7214 with_gnu_ld=yes
7215 extra_host_args="$extra_host_args --with-gnu-ld"
7216fi
7217
700d40ca
ILT
7218if test x${use_included_zlib} = x &&
7219 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7220 :
7221else
7222 with_system_zlib=yes
7223 extra_host_args="$extra_host_args --with-system-zlib"
7224fi
7225
2429c060
PB
7226# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7227# can detect this case.
7228
7229if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7230 with_newlib=yes
7231 extra_host_args="$extra_host_args --with-newlib"
7232fi
7233
9e07f89d
NN
7234# Handle ${copy_dirs}
7235set fnord ${copy_dirs}
7236shift
7237while test $# != 0 ; do
7238 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7239 :
7240 else
7241 echo Copying $1 to $2
7242
7243 # Use the install script to create the directory and all required
7244 # parent directories.
7245 if test -d $2 ; then
7246 :
7247 else
7248 echo >config.temp
7249 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7250 fi
7251
7252 # Copy the directory, assuming we have tar.
7253 # FIXME: Should we use B in the second tar? Not all systems support it.
7254 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7255
7256 # It is the responsibility of the user to correctly adjust all
7257 # symlinks. If somebody can figure out how to handle them correctly
7258 # here, feel free to add the code.
7259
7260 echo $1 > $2/COPIED
7261 fi
7262 shift; shift
7263done
7264
2429c060
PB
7265# Determine a target-dependent exec_prefix that the installed
7266# gcc will search in. Keep this list sorted by triplet, with
7267# the *-*-osname triplets last.
7268md_exec_prefix=
7269case "${target}" in
521ec477 7270 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
7271 md_exec_prefix=/dev/env/DJDIR/bin
7272 ;;
2429c060 7273 *-*-hpux* | \
2429c060 7274 *-*-nto-qnx* | \
1f111696 7275 *-*-solaris2*)
2429c060
PB
7276 md_exec_prefix=/usr/ccs/bin
7277 ;;
7278esac
7279
a0da8069
NN
7280extra_arflags_for_target=
7281extra_nmflags_for_target=
7282extra_ranlibflags_for_target=
7283target_makefile_frag=/dev/null
7284case "${target}" in
77d7106f
AM
7285 spu-*-*)
7286 target_makefile_frag="config/mt-spu"
7287 ;;
a9d58c06 7288 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
7289 target_makefile_frag="config/mt-sde"
7290 ;;
f3b1e08e
RS
7291 mipsisa*-*-elfoabi*)
7292 target_makefile_frag="config/mt-mips-elfoabi"
7293 ;;
e7c8859c
RS
7294 mips*-*-*linux* | mips*-*-gnu*)
7295 target_makefile_frag="config/mt-mips-gnu"
7296 ;;
d9e042ac
SL
7297 nios2-*-elf*)
7298 target_makefile_frag="config/mt-nios2-elf"
7299 ;;
bf41f30d
NC
7300 *-*-linux-android*)
7301 target_makefile_frag="config/mt-android"
7302 ;;
29383458 7303 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 7304 target_makefile_frag="config/mt-gnu"
a0da8069
NN
7305 ;;
7306 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 7307 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
7308 # commands to handle both 32-bit and 64-bit objects. These flags are
7309 # harmless if we're using GNU nm or ar.
7310 extra_arflags_for_target=" -X32_64"
7311 extra_nmflags_for_target=" -B -X32_64"
7312 ;;
a0da8069
NN
7313esac
7314
7315alphaieee_frag=/dev/null
7316case $target in
7317 alpha*-*-*)
7318 # This just makes sure to use the -mieee option to build target libs.
7319 # This should probably be set individually by each library.
7320 alphaieee_frag="config/mt-alphaieee"
7321 ;;
7322esac
7323
7324# If --enable-target-optspace always use -Os instead of -O2 to build
7325# the target libraries, similarly if it is not specified, use -Os
7326# on selected platforms.
7327ospace_frag=/dev/null
7328case "${enable_target_optspace}:${target}" in
7329 yes:*)
7330 ospace_frag="config/mt-ospace"
7331 ;;
7332 :d30v-*)
7333 ospace_frag="config/mt-d30v"
7334 ;;
16beab3d 7335 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
a0da8069
NN
7336 ospace_frag="config/mt-ospace"
7337 ;;
7338 no:* | :*)
7339 ;;
7340 *)
7341 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7342 ;;
7343esac
7344
a0da8069
NN
7345# Some systems (e.g., one of the i386-aix systems the gas testers are
7346# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 7347tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
7348build_tooldir=${tooldir}
7349
a0da8069
NN
7350# Create a .gdbinit file which runs the one in srcdir
7351# and tells GDB to look there for source files.
7352
7353if test -r ${srcdir}/.gdbinit ; then
7354 case ${srcdir} in
7355 .) ;;
7356 *) cat > ./.gdbinit <<EOF
7357# ${NO_EDIT}
7358dir ${srcdir}
7359dir .
7360source ${srcdir}/.gdbinit
7361EOF
7362 ;;
7363 esac
7364fi
7365
a0da8069
NN
7366# Make sure that the compiler is able to generate an executable. If it
7367# can't, we are probably in trouble. We don't care whether we can run the
7368# executable--we might be using a cross compiler--we only care whether it
7369# can be created. At this point the main configure script has set CC.
7370we_are_ok=no
7371echo "int main () { return 0; }" > conftest.c
7372${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7373if test $? = 0 ; then
7374 if test -s conftest || test -s conftest.exe ; then
7375 we_are_ok=yes
7376 fi
c6b750e1 7377fi
a0da8069
NN
7378case $we_are_ok in
7379 no)
7380 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7381 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7382 rm -f conftest*
7383 exit 1
7384 ;;
7385esac
7386rm -f conftest*
7387
3bbd2f8f 7388# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
7389case "${host}" in
7390 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 7391 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 7392 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
7393 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7394esac
7395
3bbd2f8f 7396# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7397# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7398# built executables to PATH.
3bbd2f8f
AL
7399if test "$RPATH_ENVVAR" = PATH; then
7400 GCC_SHLIB_SUBDIR=/shlib
7401else
7402 GCC_SHLIB_SUBDIR=
7403fi
7404
730af8ee 7405# Adjust the toplevel makefile according to whether bootstrap was selected.
7406case $enable_bootstrap in
7407 yes)
7408 bootstrap_suffix=bootstrap
7409 BUILD_CONFIG=bootstrap-debug
7410 ;;
7411 no)
7412 bootstrap_suffix=no-bootstrap
7413 BUILD_CONFIG=
7414 ;;
7415esac
7416
7417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7418$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7419
7420
7421# Check whether --with-build-config was given.
7422if test "${with_build_config+set}" = set; then :
7423 withval=$with_build_config; case $with_build_config in
7424 yes) with_build_config= ;;
7425 no) with_build_config= BUILD_CONFIG= ;;
7426 esac
7427fi
7428
7429
7430if test "x${with_build_config}" != x; then
7431 BUILD_CONFIG=$with_build_config
7432else
7433 case $BUILD_CONFIG in
7434 bootstrap-debug)
7435 if echo "int f (void) { return 0; }" > conftest.c &&
7436 ${CC} -c conftest.c &&
7437 mv conftest.o conftest.o.g0 &&
7438 ${CC} -c -g conftest.c &&
7439 mv conftest.o conftest.o.g &&
7440 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7441 :
7442 else
7443 BUILD_CONFIG=
7444 fi
7445 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7446 ;;
7447 esac
7448fi
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7450$as_echo "$BUILD_CONFIG" >&6; }
7451
7452
7453# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7455$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7456# Check whether --enable-vtable-verify was given.
7457if test "${enable_vtable_verify+set}" = set; then :
7458 enableval=$enable_vtable_verify; case "$enableval" in
7459 yes) enable_vtable_verify=yes ;;
7460 no) enable_vtable_verify=no ;;
7461 *) enable_vtable_verify=no;;
7462 esac
7463else
7464 enable_vtable_verify=no
7465fi
7466
7467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7468$as_echo "$enable_vtable_verify" >&6; }
7469
a0da8069
NN
7470# Record target_configdirs and the configure arguments for target and
7471# build configuration in Makefile.
7472target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7473build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 7474bootstrap_fixincludes=no
a0da8069 7475
2aa2364a
JR
7476# If we are building libgomp, bootstrap it.
7477if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7478 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7479fi
7480
730af8ee 7481# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7482# or bootstrap-ubsan, bootstrap it.
7483if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7484 case "$BUILD_CONFIG" in
7485 *bootstrap-asan* | *bootstrap-ubsan* )
7486 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 7487 bootstrap_fixincludes=yes
730af8ee 7488 ;;
7489 esac
5eb08693
L
7490fi
7491
730af8ee 7492# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7493if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7494 test "$enable_vtable_verify" != no; then
95e43135
JBG
7495 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7496fi
7497
a0da8069
NN
7498# Determine whether gdb needs tk/tcl or not.
7499# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7500# and in that case we want gdb to be built without tk. Ugh!
7501# In fact I believe gdb is the *only* package directly dependent on tk,
7502# so we should be able to put the 'maybe's in unconditionally and
7503# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7504# 100% sure that that's safe though.
c180f501 7505
675c6968 7506gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7507case "$enable_gdbtk" in
7508 no)
7509 GDB_TK="" ;;
c180f501
AC
7510 yes)
7511 GDB_TK="${gdb_tk}" ;;
a0da8069 7512 *)
c180f501
AC
7513 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7514 # distro. Eventually someone will fix this and move Insight, nee
7515 # gdbtk to a separate directory.
7516 if test -d ${srcdir}/gdb/gdbtk ; then
7517 GDB_TK="${gdb_tk}"
7518 else
7519 GDB_TK=""
7520 fi
7521 ;;
a0da8069 7522esac
907be67c
DJ
7523CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7524INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7525
b6f9caee
TT
7526# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7527# else does, only include them if one of these is built. The Makefile
7528# provides the ordering, so it's enough here to add to the list.
7529case " ${configdirs} " in
7530 *\ gdb\ *)
7531 configdirs="${configdirs} gnulib gdbsupport"
7532 ;;
7533 *\ gdbserver\ *)
7534 configdirs="${configdirs} gnulib gdbsupport"
7535 ;;
5c9e84c2
MF
7536 *\ sim\ *)
7537 configdirs="${configdirs} gnulib"
7538 ;;
b6f9caee 7539esac
73cc7272 7540
6bd3dfaa 7541# Strip out unwanted targets.
dd12c3a8
NN
7542
7543# While at that, we remove Makefiles if we were started for recursive
7544# configuration, so that the top-level Makefile reconfigures them,
7545# like we used to do when configure itself was recursive.
dd12c3a8 7546
06a51eac
RW
7547# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7548# but now we're fixing up the Makefile ourselves with the additional
7549# commands passed to AC_CONFIG_FILES. Use separate variables
7550# extrasub-{build,host,target} not because there is any reason to split
7551# the substitutions up that way, but only to remain below the limit of
7552# 99 commands in a script, for HP-UX sed.
4119873a
AO
7553
7554# Do not nest @if/@endif or @unless/@endunless pairs, because
7555# configure will not warn you at all.
dd12c3a8 7556
16b1ad29
RW
7557case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7558 yes:yes:*\ gold\ *:*,c++,*) ;;
7559 yes:yes:*\ gold\ *:*)
d0ac1c44 7560 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
16b1ad29
RW
7561 ;;
7562esac
7563
06a51eac 7564extrasub_build=
6a9cf61e 7565for module in ${build_configdirs} ; do
498d4a71
CF
7566 if test -z "${no_recursion}" \
7567 && test -f ${build_subdir}/${module}/Makefile; then
7568 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7569 rm -f ${build_subdir}/${module}/Makefile
7570 fi
06a51eac 7571 extrasub_build="$extrasub_build
498d4a71
CF
7572/^@if build-$module\$/d
7573/^@endif build-$module\$/d
4119873a 7574/^@unless build-$module\$/,/^@endunless build-$module\$/d
498d4a71 7575/^@if build-$module-$bootstrap_suffix\$/d
4119873a
AO
7576/^@endif build-$module-$bootstrap_suffix\$/d
7577/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
498d4a71 7578done
06a51eac 7579extrasub_host=
498d4a71 7580for module in ${configdirs} ; do
80911fe1 7581 if test -z "${no_recursion}"; then
8cf39b1b 7582 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7583 if test -f ${file}; then
7584 echo 1>&2 "*** removing ${file} to force reconfigure"
7585 rm -f ${file}
7586 fi
7587 done
498d4a71 7588 fi
201f096f 7589 case ${module},${bootstrap_fixincludes} in
7590 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7591 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7592 esac
06a51eac 7593 extrasub_host="$extrasub_host
498d4a71
CF
7594/^@if $module\$/d
7595/^@endif $module\$/d
4119873a 7596/^@unless $module\$/,/^@endunless $module\$/d
201f096f 7597/^@if $module-$host_bootstrap_suffix\$/d
4119873a
AO
7598/^@endif $module-$host_bootstrap_suffix\$/d
7599/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
498d4a71 7600done
06a51eac 7601extrasub_target=
498d4a71
CF
7602for module in ${target_configdirs} ; do
7603 if test -z "${no_recursion}" \
7604 && test -f ${target_subdir}/${module}/Makefile; then
7605 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7606 rm -f ${target_subdir}/${module}/Makefile
7607 fi
e8a5fa9c
RW
7608
7609 # We only bootstrap target libraries listed in bootstrap_target_libs.
7610 case $bootstrap_target_libs in
7611 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7612 *) target_bootstrap_suffix=no-bootstrap ;;
7613 esac
7614
06a51eac 7615 extrasub_target="$extrasub_target
498d4a71
CF
7616/^@if target-$module\$/d
7617/^@endif target-$module\$/d
4119873a 7618/^@unless target-$module\$/,/^@endunless target-$module\$/d
e8a5fa9c 7619/^@if target-$module-$target_bootstrap_suffix\$/d
4119873a
AO
7620/^@endif target-$module-$target_bootstrap_suffix\$/d
7621/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7622done
7623
06a51eac
RW
7624# Do the final fixup along with target modules.
7625extrasub_target="$extrasub_target
4119873a
AO
7626/^@if /,/^@endif /d
7627/^@unless /d
7628/^@endunless /d"
a0da8069 7629
af019bfd
L
7630if test "$enable_pgo_build" != "no"; then
7631 extrasub_build="$extrasub_build
7632/^@if pgo-build\$/d
7633/^@endif pgo-build\$/d"
7634fi
7635
a0da8069
NN
7636# Create the serialization dependencies. This uses a temporary file.
7637
81ecdfbb
RW
7638# Check whether --enable-serial-configure was given.
7639if test "${enable_serial_configure+set}" = set; then :
7640 enableval=$enable_serial_configure;
7641fi
e6bfb94a
AO
7642
7643
1047cb91
DD
7644case ${enable_serial_configure} in
7645 yes)
7646 enable_serial_build_configure=yes
7647 enable_serial_host_configure=yes
7648 enable_serial_target_configure=yes
7649 ;;
7650esac
7651
a0da8069
NN
7652# These force 'configure's to be done one at a time, to avoid problems
7653# with contention over a shared config.cache.
7654rm -f serdep.tmp
e6bfb94a 7655echo '# serdep.tmp' > serdep.tmp
a0da8069 7656olditem=
1047cb91 7657test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7658for item in ${build_configdirs} ; do
7659 case ${olditem} in
7660 "") ;;
e6bfb94a 7661 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7662 esac
7663 olditem=${item}
7664done
7665olditem=
1047cb91 7666test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7667for item in ${configdirs} ; do
7668 case ${olditem} in
7669 "") ;;
e6bfb94a 7670 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7671 esac
7672 olditem=${item}
7673done
7674olditem=
1047cb91 7675test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7676for item in ${target_configdirs} ; do
7677 case ${olditem} in
7678 "") ;;
e6bfb94a 7679 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7680 esac
7681 olditem=${item}
7682done
7683serialization_dependencies=serdep.tmp
7684
7685
e6bfb94a 7686# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7687# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7688# might not want to pass down to subconfigures. The exception being
7689# --cache-file=/dev/null, which is used to turn off the use of cache
7690# files altogether, and which should be passed on to subconfigures.
7691# Also strip program-prefix, program-suffix, and program-transform-name,
7692# so that we can pass down a consistent program-transform-name.
c6b750e1 7693baseargs=
65b4571a 7694tbaseargs=
c6b750e1
DJ
7695keep_next=no
7696skip_next=no
7697eval "set -- $ac_configure_args"
18f6b6ee
PB
7698for ac_arg
7699do
c6b750e1
DJ
7700 if test X"$skip_next" = X"yes"; then
7701 skip_next=no
7702 continue
7703 fi
7704 if test X"$keep_next" = X"yes"; then
7705 case $ac_arg in
7706 *\'*)
7707 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7708 esac
7709 baseargs="$baseargs '$ac_arg'"
65b4571a 7710 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7711 keep_next=no
7712 continue
7713 fi
7714
7715 # Handle separated arguments. Based on the logic generated by
7716 # autoconf 2.59.
7717 case $ac_arg in
7718 *=* | --config-cache | -C | -disable-* | --disable-* \
7719 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7720 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7721 | -with-* | --with-* | -without-* | --without-* | --x)
7722 separate_arg=no
7723 ;;
7724 -*)
7725 separate_arg=yes
7726 ;;
7727 *)
7728 separate_arg=no
7729 ;;
7730 esac
7731
65b4571a
AO
7732 skip_targ=no
7733 case $ac_arg in
7734
7735 --with-* | --without-*)
7736 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7737
7738 case $libopt in
7739 *[-_]include)
7740 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7741 ;;
7742 *[-_]lib)
7743 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7744 ;;
7745 *)
7746 lib=$libopt
7747 ;;
7748 esac
7749
7750
7751 case $lib in
1b6c0831 7752 mpc | mpfr | gmp | isl)
65b4571a
AO
7753 # If we're processing --with-$lib, --with-$lib-include or
7754 # --with-$lib-lib, for one of the libs above, and target is
7755 # different from host, don't pass the current argument to any
7756 # target library's configure.
7757 if test x$is_cross_compiler = xyes; then
7758 skip_targ=yes
7759 fi
7760 ;;
7761 esac
7762 ;;
7763 esac
7764
c6b750e1 7765 case "$ac_arg" in
30167e0a
NC
7766 --cache-file=/dev/null | \
7767 -cache-file=/dev/null )
7768 # Handled here to avoid the test to skip args below.
7769 baseargs="$baseargs '$ac_arg'"
65b4571a 7770 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7771 # Assert: $separate_arg should always be no.
7772 keep_next=$separate_arg
7773 ;;
c6b750e1
DJ
7774 --no*)
7775 continue
7776 ;;
7777 --c* | \
7778 --sr* | \
7779 --ho* | \
7780 --bu* | \
7781 --t* | \
7782 --program-* | \
7783 -cache_file* | \
7784 -srcdir* | \
7785 -host* | \
7786 -build* | \
7787 -target* | \
7788 -program-prefix* | \
7789 -program-suffix* | \
7790 -program-transform-name* )
7791 skip_next=$separate_arg
7792 continue
7793 ;;
7794 -*)
7795 # An option. Add it.
7796 case $ac_arg in
7797 *\'*)
7798 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7799 esac
7800 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7801 if test X"$skip_targ" = Xno; then
7802 tbaseargs="$tbaseargs '$ac_arg'"
7803 fi
c6b750e1
DJ
7804 keep_next=$separate_arg
7805 ;;
7806 *)
7807 # Either a variable assignment, or a nonopt (triplet). Don't
7808 # pass it down; let the Makefile handle this.
7809 continue
7810 ;;
7811 esac
7812done
7813# Remove the initial space we just introduced and, as these will be
7814# expanded by make, quote '$'.
7815baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7816
f27d4f92
DJ
7817# Add in --program-transform-name, after --program-prefix and
7818# --program-suffix have been applied to it. Autoconf has already
7819# doubled dollar signs and backslashes in program_transform_name; we want
7820# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7821# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7822# Also, because we want to override the logic in subdir configure scripts to
7823# choose program_transform_name, replace any s,x,x, with s,y,y,.
7824sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7825${program_transform_name}
7826EOF_SED
7827gcc_transform_name=`cat conftestsed.out`
7828rm -f conftestsed.out
7829baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7830tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7831if test "$silent" = yes; then
7832 baseargs="$baseargs --silent"
65b4571a 7833 tbaseargs="$tbaseargs --silent"
2444379b 7834fi
34a0f3cf 7835baseargs="$baseargs --disable-option-checking"
65b4571a 7836tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7837
4074d5f2
RW
7838# Record and document user additions to sub configure arguments.
7839
7840
7841
7842
a0da8069
NN
7843# For the build-side libraries, we just need to pretend we're native,
7844# and not use the same cache file. Multilibs are neither needed nor
1b6c0831
L
7845# desired. We can't even use the same cache file for all build-side
7846# libraries, as they're compiled differently; some with C, some with
7847# C++ or with different feature-enabling options.
7848build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
a0da8069
NN
7849
7850# For host modules, accept cache file option, or specification as blank.
7851case "${cache_file}" in
7852"") # empty
7853 cache_file_option="" ;;
7854/* | [A-Za-z]:[\\/]* ) # absolute path
7855 cache_file_option="--cache-file=${cache_file}" ;;
7856*) # relative path
7857 cache_file_option="--cache-file=../${cache_file}" ;;
7858esac
7859
82252c06
NN
7860# Host dirs don't like to share a cache file either, horribly enough.
7861# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7862host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7863
65b4571a 7864target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7865
7866# Passing a --with-cross-host argument lets the target libraries know
7867# whether they are being built with a cross-compiler or being built
7868# native. However, it would be better to use other mechanisms to make the
7869# sorts of decisions they want to make on this basis. Please consider
7870# this option to be deprecated. FIXME.
7871if test x${is_cross_compiler} = xyes ; then
c6b750e1 7872 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7873fi
7874
afc0578d 7875# Special user-friendly check for native x86_64-linux build, if
7876# multilib is not explicitly enabled.
7877case "$target:$have_compiler:$host:$target:$enable_multilib" in
7878 x86_64-*linux*:yes:$build:$build:)
ce6c656d 7879 # Make sure we have a development environment that handles 32-bit
afc0578d 7880 dev64=no
7881 echo "int main () { return 0; }" > conftest.c
7882 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7883 if test $? = 0 ; then
7884 if test -s conftest || test -s conftest.exe ; then
7885 dev64=yes
7886 fi
7887 fi
7888 rm -f conftest*
7889 if test x${dev64} != xyes ; then
d0ac1c44 7890 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 7891 fi
7892 ;;
7893esac
7894
938d2b74
RW
7895# Default to --enable-multilib.
7896if test x${enable_multilib} = x ; then
a0da8069 7897 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7898fi
a0da8069
NN
7899
7900# Pass --with-newlib if appropriate. Note that target_configdirs has
7901# changed from the earlier setting of with_newlib.
7902if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7903 target_configargs="--with-newlib ${target_configargs}"
7904fi
7905
95036d20
NN
7906# Different target subdirs use different values of certain variables
7907# (notably CXX). Worse, multilibs use *lots* of different values.
7908# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7909# it doesn't automatically accept command-line overrides of them.
7910# This means it's not safe for target subdirs to share a cache file,
7911# which is disgusting, but there you have it. Hopefully this can be
7912# fixed in future. It's still worthwhile to use a cache file for each
7913# directory. I think.
7914
ae380b45
MS
7915# Pass the appropriate --build, --host, --target and --cache-file arguments.
7916# We need to pass --target, as newer autoconf's requires consistency
7917# for target_alias and gcc doesn't manage it consistently.
4b900473 7918target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7919
a0da8069
NN
7920FLAGS_FOR_TARGET=
7921case " $target_configdirs " in
7922 *" newlib "*)
7923 case " $target_configargs " in
7924 *" --with-newlib "*)
7925 case "$target" in
1f53ca9a 7926 *-cygwin*)
6d94c122 7927 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 7928 ;;
a0da8069
NN
7929 esac
7930
7931 # If we're not building GCC, don't discard standard headers.
7932 if test -d ${srcdir}/gcc; then
7933 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7934
7935 if test "${build}" != "${host}"; then
7936 # On Canadian crosses, CC_FOR_TARGET will have already been set
7937 # by `configure', so we won't have an opportunity to add -Bgcc/
7938 # to it. This is right: we don't want to search that directory
7939 # for binaries, but we want the header files in there, so add
7940 # them explicitly.
e552509b 7941 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7942
7943 # Someone might think of using the pre-installed headers on
7944 # Canadian crosses, in case the installed compiler is not fully
7945 # compatible with the compiler being built. In this case, it
7946 # would be better to flag an error than risking having
7947 # incompatible object files being constructed. We can't
7948 # guarantee that an error will be flagged, but let's hope the
7949 # compiler will do it, when presented with incompatible header
7950 # files.
7951 fi
7952 fi
7953
7954 case "${target}-${is_cross_compiler}" in
ec11bdc6 7955 i[3456789]86-*-linux*-no)
a0da8069
NN
7956 # Here host == target, so we don't need to build gcc,
7957 # so we don't want to discard standard headers.
7958 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7959 ;;
7960 *)
7961 # If we're building newlib, use its generic headers last, but search
7962 # for any libc-related directories first (so make it the last -B
7963 # switch).
7964 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
7965
7966 # If we're building libgloss, find the startup file, simulator library
7967 # and linker script.
7968 case " $target_configdirs " in
7969 *" libgloss "*)
7970 # Look for startup file, simulator library and maybe linker script.
7971 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7972 # Look for libnosys.a in case the target needs it.
7973 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7974 # Most targets have the linker script in the source directory.
7975 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7976 ;;
7977 esac
a0da8069
NN
7978 ;;
7979 esac
7980 ;;
7981 esac
7982 ;;
7983esac
1f53ca9a 7984
45055374 7985case "$target" in
1f53ca9a
AO
7986 x86_64-*mingw* | *-w64-mingw*)
7987 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7988 # however, use a symlink named 'mingw' in ${prefix} .
7989 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7990 ;;
7991 *-mingw*)
7992 # MinGW can't be handled as Cygwin above since it does not use newlib.
7993 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'
7994 ;;
45055374 7995esac
a0da8069 7996
5fbad20a
DD
7997# Allow the user to override the flags for
7998# our build compiler if desired.
c66487f8
NC
7999if test x"${build}" = x"${host}" ; then
8000 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
8001 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
8002 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
8003fi
5fbad20a 8004
a0da8069
NN
8005# On Canadian crosses, we'll be searching the right directories for
8006# the previously-installed cross compiler, so don't bother to add
8007# flags for directories within the install tree of the compiler
8008# being built; programs in there won't even run.
8009if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
8010 # Search for pre-installed headers if nothing else fits.
bba45b8b 8011 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
8012fi
8013
8014if test "x${use_gnu_ld}" = x &&
8015 echo " ${configdirs} " | grep " ld " > /dev/null ; then
8016 # Arrange for us to find uninstalled linker scripts.
b00612cc 8017 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
8018fi
8019
a481dbb7
DD
8020# Search for other target-specific linker scripts and such.
8021case "${target}" in
4e206d7e
DB
8022 mep*)
8023 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
8024 ;;
8025esac
8026
a0da8069 8027# Makefile fragments.
3e707e94
PB
8028for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
8029do
8030 eval fragval=\$$frag
8031 if test $fragval != /dev/null; then
8032 eval $frag=${srcdir}/$fragval
8033 fi
8034done
a0da8069
NN
8035
8036
8037
8038
8039
8040# Miscellanea: directories, flags, etc.
8041
8042
8043
8044
8045
8046
8047
3bbd2f8f 8048
6a9cf61e 8049# Build module lists & subconfigure args.
a0da8069
NN
8050
8051
8052
be01d343
PB
8053# Host module lists & subconfigure args.
8054
8055
8056
911e63d0 8057
be01d343
PB
8058# Target module lists & subconfigure args.
8059
8060
8061
8062# Build tools.
8063
8064
8065
1576798e
PB
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
be01d343
PB
8079# Generate default definitions for YACC, M4, LEX and other programs that run
8080# on the build machine. These are used if the Makefile can't locate these
8081# programs in objdir.
8082MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8083
8084for ac_prog in 'bison -y' byacc yacc
8085do
c6b750e1 8086 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8087set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8090if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 8091 $as_echo_n "(cached) " >&6
be01d343
PB
8092else
8093 if test -n "$YACC"; then
8094 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8095else
c6b750e1
DJ
8096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097for as_dir in $PATH
8098do
8099 IFS=$as_save_IFS
8100 test -z "$as_dir" && as_dir=.
81ecdfbb 8101 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8103 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 8104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8105 break 2
8106 fi
8107done
81ecdfbb
RW
8108 done
8109IFS=$as_save_IFS
c6b750e1 8110
be01d343
PB
8111fi
8112fi
c6b750e1 8113YACC=$ac_cv_prog_YACC
be01d343 8114if test -n "$YACC"; then
81ecdfbb
RW
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8116$as_echo "$YACC" >&6; }
be01d343 8117else
81ecdfbb
RW
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119$as_echo "no" >&6; }
be01d343
PB
8120fi
8121
81ecdfbb 8122
c6b750e1 8123 test -n "$YACC" && break
be01d343
PB
8124done
8125test -n "$YACC" || YACC="$MISSING bison -y"
8126
8127case " $build_configdirs " in
8128 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
8129esac
8130
8131for ac_prog in bison
8132do
c6b750e1 8133 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8134set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8136$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8137if ${ac_cv_prog_BISON+:} false; then :
81ecdfbb 8138 $as_echo_n "(cached) " >&6
be01d343
PB
8139else
8140 if test -n "$BISON"; then
8141 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8142else
c6b750e1
DJ
8143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144for as_dir in $PATH
8145do
8146 IFS=$as_save_IFS
8147 test -z "$as_dir" && as_dir=.
81ecdfbb 8148 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8150 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 8151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8152 break 2
8153 fi
8154done
81ecdfbb
RW
8155 done
8156IFS=$as_save_IFS
c6b750e1 8157
be01d343
PB
8158fi
8159fi
c6b750e1 8160BISON=$ac_cv_prog_BISON
be01d343 8161if test -n "$BISON"; then
81ecdfbb
RW
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8163$as_echo "$BISON" >&6; }
be01d343 8164else
81ecdfbb
RW
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8166$as_echo "no" >&6; }
be01d343
PB
8167fi
8168
81ecdfbb 8169
c6b750e1 8170 test -n "$BISON" && break
be01d343
PB
8171done
8172test -n "$BISON" || BISON="$MISSING bison"
8173
8174case " $build_configdirs " in
8175 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8176esac
8177
8178for ac_prog in gm4 gnum4 m4
8179do
c6b750e1 8180 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8181set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8183$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8184if ${ac_cv_prog_M4+:} false; then :
81ecdfbb 8185 $as_echo_n "(cached) " >&6
be01d343
PB
8186else
8187 if test -n "$M4"; then
8188 ac_cv_prog_M4="$M4" # Let the user override the test.
8189else
c6b750e1
DJ
8190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191for as_dir in $PATH
8192do
8193 IFS=$as_save_IFS
8194 test -z "$as_dir" && as_dir=.
81ecdfbb 8195 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8197 ac_cv_prog_M4="$ac_prog"
81ecdfbb 8198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8199 break 2
8200 fi
8201done
81ecdfbb
RW
8202 done
8203IFS=$as_save_IFS
c6b750e1 8204
be01d343
PB
8205fi
8206fi
c6b750e1 8207M4=$ac_cv_prog_M4
be01d343 8208if test -n "$M4"; then
81ecdfbb
RW
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8210$as_echo "$M4" >&6; }
be01d343 8211else
81ecdfbb
RW
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213$as_echo "no" >&6; }
be01d343
PB
8214fi
8215
81ecdfbb 8216
c6b750e1 8217 test -n "$M4" && break
be01d343
PB
8218done
8219test -n "$M4" || M4="$MISSING m4"
8220
8221case " $build_configdirs " in
8222 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8223esac
8224
8225for ac_prog in flex lex
8226do
c6b750e1 8227 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8228set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8230$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8231if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 8232 $as_echo_n "(cached) " >&6
be01d343
PB
8233else
8234 if test -n "$LEX"; then
8235 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8236else
c6b750e1
DJ
8237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238for as_dir in $PATH
8239do
8240 IFS=$as_save_IFS
8241 test -z "$as_dir" && as_dir=.
81ecdfbb 8242 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8244 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 8245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8246 break 2
8247 fi
8248done
81ecdfbb
RW
8249 done
8250IFS=$as_save_IFS
c6b750e1 8251
be01d343
PB
8252fi
8253fi
c6b750e1 8254LEX=$ac_cv_prog_LEX
be01d343 8255if test -n "$LEX"; then
81ecdfbb
RW
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8257$as_echo "$LEX" >&6; }
be01d343 8258else
81ecdfbb
RW
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260$as_echo "no" >&6; }
be01d343
PB
8261fi
8262
81ecdfbb 8263
c6b750e1 8264 test -n "$LEX" && break
be01d343
PB
8265done
8266test -n "$LEX" || LEX="$MISSING flex"
8267
8268case " $build_configdirs " in
8269 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8270 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8271esac
8272
8273for ac_prog in flex
8274do
c6b750e1 8275 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8276set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8279if ${ac_cv_prog_FLEX+:} false; then :
81ecdfbb 8280 $as_echo_n "(cached) " >&6
be01d343
PB
8281else
8282 if test -n "$FLEX"; then
8283 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8284else
c6b750e1
DJ
8285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286for as_dir in $PATH
8287do
8288 IFS=$as_save_IFS
8289 test -z "$as_dir" && as_dir=.
81ecdfbb 8290 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8292 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 8293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8294 break 2
8295 fi
8296done
81ecdfbb
RW
8297 done
8298IFS=$as_save_IFS
c6b750e1 8299
be01d343
PB
8300fi
8301fi
c6b750e1 8302FLEX=$ac_cv_prog_FLEX
be01d343 8303if test -n "$FLEX"; then
81ecdfbb
RW
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8305$as_echo "$FLEX" >&6; }
be01d343 8306else
81ecdfbb
RW
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308$as_echo "no" >&6; }
be01d343
PB
8309fi
8310
81ecdfbb 8311
c6b750e1 8312 test -n "$FLEX" && break
be01d343
PB
8313done
8314test -n "$FLEX" || FLEX="$MISSING flex"
8315
8316case " $build_configdirs " in
8317 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8318esac
8319
8320for ac_prog in makeinfo
8321do
c6b750e1 8322 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8323set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8326if ${ac_cv_prog_MAKEINFO+:} false; then :
81ecdfbb 8327 $as_echo_n "(cached) " >&6
be01d343
PB
8328else
8329 if test -n "$MAKEINFO"; then
8330 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8331else
c6b750e1
DJ
8332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333for as_dir in $PATH
8334do
8335 IFS=$as_save_IFS
8336 test -z "$as_dir" && as_dir=.
81ecdfbb 8337 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8339 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 8340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8341 break 2
8342 fi
8343done
81ecdfbb
RW
8344 done
8345IFS=$as_save_IFS
c6b750e1 8346
be01d343
PB
8347fi
8348fi
c6b750e1 8349MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 8350if test -n "$MAKEINFO"; then
81ecdfbb
RW
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8352$as_echo "$MAKEINFO" >&6; }
be01d343 8353else
81ecdfbb
RW
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355$as_echo "no" >&6; }
be01d343
PB
8356fi
8357
81ecdfbb 8358
c6b750e1 8359 test -n "$MAKEINFO" && break
be01d343
PB
8360done
8361test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8362
8363case " $build_configdirs " in
8364 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8365 *)
8366
10ad8ef3 8367 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
8368 # higher, else we use the "missing" dummy.
8369 if ${MAKEINFO} --version \
10ad8ef3 8370 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
8371 :
8372 else
8373 MAKEINFO="$MISSING makeinfo"
8374 fi
8375 ;;
8376
8377esac
a0da8069 8378
be01d343 8379# FIXME: expect and dejagnu may become build tools?
a0da8069 8380
be01d343
PB
8381for ac_prog in expect
8382do
c6b750e1 8383 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8384set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8386$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8387if ${ac_cv_prog_EXPECT+:} false; then :
81ecdfbb 8388 $as_echo_n "(cached) " >&6
be01d343
PB
8389else
8390 if test -n "$EXPECT"; then
8391 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8392else
c6b750e1
DJ
8393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394for as_dir in $PATH
8395do
8396 IFS=$as_save_IFS
8397 test -z "$as_dir" && as_dir=.
81ecdfbb 8398 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8400 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 8401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8402 break 2
8403 fi
8404done
81ecdfbb
RW
8405 done
8406IFS=$as_save_IFS
c6b750e1 8407
be01d343
PB
8408fi
8409fi
c6b750e1 8410EXPECT=$ac_cv_prog_EXPECT
be01d343 8411if test -n "$EXPECT"; then
81ecdfbb
RW
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8413$as_echo "$EXPECT" >&6; }
be01d343 8414else
81ecdfbb
RW
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416$as_echo "no" >&6; }
be01d343 8417fi
a0da8069 8418
81ecdfbb 8419
c6b750e1 8420 test -n "$EXPECT" && break
be01d343
PB
8421done
8422test -n "$EXPECT" || EXPECT="expect"
a0da8069 8423
be01d343
PB
8424case " $configdirs " in
8425 *" expect "*)
8426 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8427 ;;
8428esac
a0da8069 8429
be01d343
PB
8430for ac_prog in runtest
8431do
c6b750e1 8432 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8433set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8435$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8436if ${ac_cv_prog_RUNTEST+:} false; then :
81ecdfbb 8437 $as_echo_n "(cached) " >&6
be01d343
PB
8438else
8439 if test -n "$RUNTEST"; then
8440 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8441else
c6b750e1
DJ
8442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8443for as_dir in $PATH
8444do
8445 IFS=$as_save_IFS
8446 test -z "$as_dir" && as_dir=.
81ecdfbb 8447 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8449 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 8450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8451 break 2
8452 fi
8453done
81ecdfbb
RW
8454 done
8455IFS=$as_save_IFS
c6b750e1 8456
be01d343
PB
8457fi
8458fi
c6b750e1 8459RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8460if test -n "$RUNTEST"; then
81ecdfbb
RW
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8462$as_echo "$RUNTEST" >&6; }
be01d343 8463else
81ecdfbb
RW
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8465$as_echo "no" >&6; }
be01d343 8466fi
a0da8069 8467
81ecdfbb 8468
c6b750e1 8469 test -n "$RUNTEST" && break
be01d343
PB
8470done
8471test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8472
be01d343
PB
8473case " $configdirs " in
8474 *" dejagnu "*)
6b89cc21 8475 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8476 ;;
8477esac
a0da8069
NN
8478
8479
a0da8069 8480# Host tools.
859789af
AC
8481ncn_tool_prefix=
8482test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8483ncn_target_tool_prefix=
8484test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8485
9a819804
AO
8486
8487
8488if test -n "$AR"; then
8489 ac_cv_prog_AR=$AR
8490elif test -n "$ac_cv_prog_AR"; then
8491 AR=$ac_cv_prog_AR
8492fi
8493
8494if test -n "$ac_cv_prog_AR"; then
8495 for ncn_progname in ar; do
8496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8497set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8499$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8500if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8501 $as_echo_n "(cached) " >&6
9a819804
AO
8502else
8503 if test -n "$AR"; then
8504 ac_cv_prog_AR="$AR" # Let the user override the test.
8505else
8506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507for as_dir in $PATH
8508do
8509 IFS=$as_save_IFS
8510 test -z "$as_dir" && as_dir=.
81ecdfbb 8511 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8513 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8515 break 2
8516 fi
8517done
81ecdfbb
RW
8518 done
8519IFS=$as_save_IFS
9a819804
AO
8520
8521fi
8522fi
8523AR=$ac_cv_prog_AR
8524if test -n "$AR"; then
81ecdfbb
RW
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8526$as_echo "$AR" >&6; }
9a819804 8527else
81ecdfbb
RW
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529$as_echo "no" >&6; }
9a819804
AO
8530fi
8531
81ecdfbb 8532
9a819804
AO
8533 done
8534fi
8535
8536for ncn_progname in ar; do
05cbd757
PB
8537 if test -n "$ncn_tool_prefix"; then
8538 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8539set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8541$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8542if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8543 $as_echo_n "(cached) " >&6
859789af
AC
8544else
8545 if test -n "$AR"; then
8546 ac_cv_prog_AR="$AR" # Let the user override the test.
8547else
c6b750e1
DJ
8548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549for as_dir in $PATH
8550do
8551 IFS=$as_save_IFS
8552 test -z "$as_dir" && as_dir=.
81ecdfbb 8553 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8555 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8557 break 2
8558 fi
8559done
81ecdfbb
RW
8560 done
8561IFS=$as_save_IFS
c6b750e1 8562
859789af
AC
8563fi
8564fi
c6b750e1 8565AR=$ac_cv_prog_AR
859789af 8566if test -n "$AR"; then
81ecdfbb
RW
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8568$as_echo "$AR" >&6; }
859789af 8569else
81ecdfbb
RW
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571$as_echo "no" >&6; }
859789af
AC
8572fi
8573
81ecdfbb 8574
05cbd757
PB
8575 fi
8576 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8578set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8580$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8581if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8582 $as_echo_n "(cached) " >&6
859789af 8583else
05cbd757
PB
8584 if test -n "$AR"; then
8585 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8586else
c6b750e1
DJ
8587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588for as_dir in $PATH
8589do
8590 IFS=$as_save_IFS
8591 test -z "$as_dir" && as_dir=.
81ecdfbb 8592 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8594 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8596 break 2
8597 fi
8598done
81ecdfbb
RW
8599 done
8600IFS=$as_save_IFS
c6b750e1 8601
859789af
AC
8602fi
8603fi
c6b750e1 8604AR=$ac_cv_prog_AR
05cbd757 8605if test -n "$AR"; then
81ecdfbb
RW
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8607$as_echo "$AR" >&6; }
859789af 8608else
81ecdfbb
RW
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610$as_echo "no" >&6; }
859789af 8611fi
c6b750e1 8612
81ecdfbb 8613
05cbd757
PB
8614 fi
8615 test -n "$ac_cv_prog_AR" && break
8616done
8617
8618if test -z "$ac_cv_prog_AR" ; then
8619 set dummy ar
8620 if test $build = $host ; then
8621 AR="$2"
859789af 8622 else
05cbd757 8623 AR="${ncn_tool_prefix}$2"
859789af 8624 fi
859789af
AC
8625fi
8626
9a819804
AO
8627
8628
8629if test -n "$AS"; then
8630 ac_cv_prog_AS=$AS
8631elif test -n "$ac_cv_prog_AS"; then
8632 AS=$ac_cv_prog_AS
8633fi
8634
8635if test -n "$ac_cv_prog_AS"; then
8636 for ncn_progname in as; do
8637 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8638set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8640$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8641if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8642 $as_echo_n "(cached) " >&6
9a819804
AO
8643else
8644 if test -n "$AS"; then
8645 ac_cv_prog_AS="$AS" # Let the user override the test.
8646else
8647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648for as_dir in $PATH
8649do
8650 IFS=$as_save_IFS
8651 test -z "$as_dir" && as_dir=.
81ecdfbb 8652 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8654 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8656 break 2
8657 fi
8658done
81ecdfbb
RW
8659 done
8660IFS=$as_save_IFS
9a819804
AO
8661
8662fi
8663fi
8664AS=$ac_cv_prog_AS
8665if test -n "$AS"; then
81ecdfbb
RW
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8667$as_echo "$AS" >&6; }
9a819804 8668else
81ecdfbb
RW
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8670$as_echo "no" >&6; }
9a819804
AO
8671fi
8672
81ecdfbb 8673
9a819804
AO
8674 done
8675fi
8676
8677for ncn_progname in as; do
05cbd757
PB
8678 if test -n "$ncn_tool_prefix"; then
8679 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8680set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8682$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8683if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8684 $as_echo_n "(cached) " >&6
859789af
AC
8685else
8686 if test -n "$AS"; then
8687 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8688else
8689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690for as_dir in $PATH
8691do
8692 IFS=$as_save_IFS
8693 test -z "$as_dir" && as_dir=.
81ecdfbb 8694 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8696 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8698 break 2
8699 fi
8700done
81ecdfbb
RW
8701 done
8702IFS=$as_save_IFS
c6b750e1 8703
859789af
AC
8704fi
8705fi
c6b750e1 8706AS=$ac_cv_prog_AS
859789af 8707if test -n "$AS"; then
81ecdfbb
RW
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8709$as_echo "$AS" >&6; }
859789af 8710else
81ecdfbb
RW
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712$as_echo "no" >&6; }
859789af
AC
8713fi
8714
81ecdfbb 8715
05cbd757
PB
8716 fi
8717 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8718 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8719set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8721$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8722if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8723 $as_echo_n "(cached) " >&6
859789af 8724else
05cbd757
PB
8725 if test -n "$AS"; then
8726 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8727else
c6b750e1
DJ
8728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8729for as_dir in $PATH
8730do
8731 IFS=$as_save_IFS
8732 test -z "$as_dir" && as_dir=.
81ecdfbb 8733 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8735 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8737 break 2
8738 fi
8739done
81ecdfbb
RW
8740 done
8741IFS=$as_save_IFS
c6b750e1 8742
859789af
AC
8743fi
8744fi
c6b750e1 8745AS=$ac_cv_prog_AS
05cbd757 8746if test -n "$AS"; then
81ecdfbb
RW
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8748$as_echo "$AS" >&6; }
859789af 8749else
81ecdfbb
RW
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8751$as_echo "no" >&6; }
859789af 8752fi
c6b750e1 8753
81ecdfbb 8754
05cbd757
PB
8755 fi
8756 test -n "$ac_cv_prog_AS" && break
8757done
8758
8759if test -z "$ac_cv_prog_AS" ; then
8760 set dummy as
8761 if test $build = $host ; then
8762 AS="$2"
859789af 8763 else
05cbd757 8764 AS="${ncn_tool_prefix}$2"
859789af 8765 fi
859789af
AC
8766fi
8767
9a819804
AO
8768
8769
8770if test -n "$DLLTOOL"; then
8771 ac_cv_prog_DLLTOOL=$DLLTOOL
8772elif test -n "$ac_cv_prog_DLLTOOL"; then
8773 DLLTOOL=$ac_cv_prog_DLLTOOL
8774fi
8775
8776if test -n "$ac_cv_prog_DLLTOOL"; then
8777 for ncn_progname in dlltool; do
8778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8779set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8781$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8782if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8783 $as_echo_n "(cached) " >&6
9a819804
AO
8784else
8785 if test -n "$DLLTOOL"; then
8786 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8787else
8788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789for as_dir in $PATH
8790do
8791 IFS=$as_save_IFS
8792 test -z "$as_dir" && as_dir=.
81ecdfbb 8793 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8795 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8797 break 2
8798 fi
8799done
81ecdfbb
RW
8800 done
8801IFS=$as_save_IFS
9a819804
AO
8802
8803fi
8804fi
8805DLLTOOL=$ac_cv_prog_DLLTOOL
8806if test -n "$DLLTOOL"; then
81ecdfbb
RW
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8808$as_echo "$DLLTOOL" >&6; }
9a819804 8809else
81ecdfbb
RW
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811$as_echo "no" >&6; }
9a819804
AO
8812fi
8813
81ecdfbb 8814
9a819804
AO
8815 done
8816fi
8817
8818for ncn_progname in dlltool; do
05cbd757
PB
8819 if test -n "$ncn_tool_prefix"; then
8820 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8821set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8823$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8824if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8825 $as_echo_n "(cached) " >&6
859789af
AC
8826else
8827 if test -n "$DLLTOOL"; then
8828 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8829else
c6b750e1
DJ
8830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831for as_dir in $PATH
8832do
8833 IFS=$as_save_IFS
8834 test -z "$as_dir" && as_dir=.
81ecdfbb 8835 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8837 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8839 break 2
8840 fi
8841done
81ecdfbb
RW
8842 done
8843IFS=$as_save_IFS
c6b750e1 8844
859789af
AC
8845fi
8846fi
c6b750e1 8847DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8848if test -n "$DLLTOOL"; then
81ecdfbb
RW
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8850$as_echo "$DLLTOOL" >&6; }
859789af 8851else
81ecdfbb
RW
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853$as_echo "no" >&6; }
859789af
AC
8854fi
8855
81ecdfbb 8856
05cbd757
PB
8857 fi
8858 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8859 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8860set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8863if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8864 $as_echo_n "(cached) " >&6
859789af 8865else
05cbd757
PB
8866 if test -n "$DLLTOOL"; then
8867 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8868else
c6b750e1
DJ
8869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870for as_dir in $PATH
8871do
8872 IFS=$as_save_IFS
8873 test -z "$as_dir" && as_dir=.
81ecdfbb 8874 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8876 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8878 break 2
8879 fi
8880done
81ecdfbb
RW
8881 done
8882IFS=$as_save_IFS
c6b750e1 8883
859789af
AC
8884fi
8885fi
c6b750e1 8886DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8887if test -n "$DLLTOOL"; then
81ecdfbb
RW
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8889$as_echo "$DLLTOOL" >&6; }
859789af 8890else
81ecdfbb
RW
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892$as_echo "no" >&6; }
859789af 8893fi
c6b750e1 8894
81ecdfbb 8895
05cbd757
PB
8896 fi
8897 test -n "$ac_cv_prog_DLLTOOL" && break
8898done
8899
8900if test -z "$ac_cv_prog_DLLTOOL" ; then
8901 set dummy dlltool
8902 if test $build = $host ; then
8903 DLLTOOL="$2"
859789af 8904 else
05cbd757 8905 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8906 fi
859789af
AC
8907fi
8908
9a819804
AO
8909
8910
8911if test -n "$LD"; then
8912 ac_cv_prog_LD=$LD
8913elif test -n "$ac_cv_prog_LD"; then
8914 LD=$ac_cv_prog_LD
8915fi
8916
8917if test -n "$ac_cv_prog_LD"; then
8918 for ncn_progname in ld; do
8919 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8920set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8923if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8924 $as_echo_n "(cached) " >&6
9a819804
AO
8925else
8926 if test -n "$LD"; then
8927 ac_cv_prog_LD="$LD" # Let the user override the test.
8928else
8929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930for as_dir in $PATH
8931do
8932 IFS=$as_save_IFS
8933 test -z "$as_dir" && as_dir=.
81ecdfbb 8934 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8936 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8938 break 2
8939 fi
8940done
81ecdfbb
RW
8941 done
8942IFS=$as_save_IFS
9a819804
AO
8943
8944fi
8945fi
8946LD=$ac_cv_prog_LD
8947if test -n "$LD"; then
81ecdfbb
RW
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8949$as_echo "$LD" >&6; }
9a819804 8950else
81ecdfbb
RW
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952$as_echo "no" >&6; }
9a819804
AO
8953fi
8954
81ecdfbb 8955
9a819804
AO
8956 done
8957fi
8958
8959for ncn_progname in ld; do
05cbd757
PB
8960 if test -n "$ncn_tool_prefix"; then
8961 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8962set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8964$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8965if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8966 $as_echo_n "(cached) " >&6
859789af
AC
8967else
8968 if test -n "$LD"; then
8969 ac_cv_prog_LD="$LD" # Let the user override the test.
8970else
c6b750e1
DJ
8971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972for as_dir in $PATH
8973do
8974 IFS=$as_save_IFS
8975 test -z "$as_dir" && as_dir=.
81ecdfbb 8976 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8978 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8980 break 2
8981 fi
8982done
81ecdfbb
RW
8983 done
8984IFS=$as_save_IFS
c6b750e1 8985
859789af
AC
8986fi
8987fi
c6b750e1 8988LD=$ac_cv_prog_LD
859789af 8989if test -n "$LD"; then
81ecdfbb
RW
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8991$as_echo "$LD" >&6; }
859789af 8992else
81ecdfbb
RW
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8994$as_echo "no" >&6; }
859789af
AC
8995fi
8996
81ecdfbb 8997
05cbd757
PB
8998 fi
8999 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
9000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9001set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9003$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9004if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 9005 $as_echo_n "(cached) " >&6
859789af 9006else
05cbd757
PB
9007 if test -n "$LD"; then
9008 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 9009else
c6b750e1
DJ
9010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011for as_dir in $PATH
9012do
9013 IFS=$as_save_IFS
9014 test -z "$as_dir" && as_dir=.
81ecdfbb 9015 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9017 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 9018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9019 break 2
9020 fi
9021done
81ecdfbb
RW
9022 done
9023IFS=$as_save_IFS
c6b750e1 9024
859789af
AC
9025fi
9026fi
c6b750e1 9027LD=$ac_cv_prog_LD
05cbd757 9028if test -n "$LD"; then
81ecdfbb
RW
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9030$as_echo "$LD" >&6; }
859789af 9031else
81ecdfbb
RW
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9033$as_echo "no" >&6; }
859789af 9034fi
c6b750e1 9035
81ecdfbb 9036
05cbd757
PB
9037 fi
9038 test -n "$ac_cv_prog_LD" && break
9039done
9040
9041if test -z "$ac_cv_prog_LD" ; then
9042 set dummy ld
9043 if test $build = $host ; then
9044 LD="$2"
859789af 9045 else
05cbd757 9046 LD="${ncn_tool_prefix}$2"
859789af 9047 fi
859789af
AC
9048fi
9049
9a819804
AO
9050
9051
9052if test -n "$LIPO"; then
9053 ac_cv_prog_LIPO=$LIPO
9054elif test -n "$ac_cv_prog_LIPO"; then
9055 LIPO=$ac_cv_prog_LIPO
9056fi
9057
9058if test -n "$ac_cv_prog_LIPO"; then
9059 for ncn_progname in lipo; do
9060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9061set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9063$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9064if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 9065 $as_echo_n "(cached) " >&6
9a819804
AO
9066else
9067 if test -n "$LIPO"; then
9068 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9069else
9070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9071for as_dir in $PATH
9072do
9073 IFS=$as_save_IFS
9074 test -z "$as_dir" && as_dir=.
81ecdfbb 9075 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9077 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 9078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9079 break 2
9080 fi
9081done
81ecdfbb
RW
9082 done
9083IFS=$as_save_IFS
9a819804
AO
9084
9085fi
9086fi
9087LIPO=$ac_cv_prog_LIPO
9088if test -n "$LIPO"; then
81ecdfbb
RW
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9090$as_echo "$LIPO" >&6; }
9a819804 9091else
81ecdfbb
RW
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9093$as_echo "no" >&6; }
9a819804
AO
9094fi
9095
81ecdfbb 9096
9a819804
AO
9097 done
9098fi
9099
9100for ncn_progname in lipo; do
be01d343
PB
9101 if test -n "$ncn_tool_prefix"; then
9102 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9103set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9105$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9106if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 9107 $as_echo_n "(cached) " >&6
be01d343
PB
9108else
9109 if test -n "$LIPO"; then
9110 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9111else
c6b750e1
DJ
9112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9113for as_dir in $PATH
9114do
9115 IFS=$as_save_IFS
9116 test -z "$as_dir" && as_dir=.
81ecdfbb 9117 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9119 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9121 break 2
9122 fi
9123done
81ecdfbb
RW
9124 done
9125IFS=$as_save_IFS
c6b750e1 9126
be01d343
PB
9127fi
9128fi
c6b750e1 9129LIPO=$ac_cv_prog_LIPO
be01d343 9130if test -n "$LIPO"; then
81ecdfbb
RW
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9132$as_echo "$LIPO" >&6; }
be01d343 9133else
81ecdfbb
RW
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9135$as_echo "no" >&6; }
be01d343
PB
9136fi
9137
81ecdfbb 9138
be01d343
PB
9139 fi
9140 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9142set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9144$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9145if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 9146 $as_echo_n "(cached) " >&6
be01d343
PB
9147else
9148 if test -n "$LIPO"; then
9149 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9150else
c6b750e1
DJ
9151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152for as_dir in $PATH
9153do
9154 IFS=$as_save_IFS
9155 test -z "$as_dir" && as_dir=.
81ecdfbb 9156 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9158 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 9159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9160 break 2
9161 fi
9162done
81ecdfbb
RW
9163 done
9164IFS=$as_save_IFS
c6b750e1 9165
be01d343
PB
9166fi
9167fi
c6b750e1 9168LIPO=$ac_cv_prog_LIPO
be01d343 9169if test -n "$LIPO"; then
81ecdfbb
RW
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9171$as_echo "$LIPO" >&6; }
be01d343 9172else
81ecdfbb
RW
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9174$as_echo "no" >&6; }
be01d343 9175fi
c6b750e1 9176
81ecdfbb 9177
be01d343
PB
9178 fi
9179 test -n "$ac_cv_prog_LIPO" && break
9180done
9181
9182if test -z "$ac_cv_prog_LIPO" ; then
9183 set dummy lipo
9184 if test $build = $host ; then
9185 LIPO="$2"
9186 else
9187 LIPO="${ncn_tool_prefix}$2"
9188 fi
9189fi
9190
9a819804
AO
9191
9192
9193if test -n "$NM"; then
9194 ac_cv_prog_NM=$NM
9195elif test -n "$ac_cv_prog_NM"; then
9196 NM=$ac_cv_prog_NM
9197fi
9198
9199if test -n "$ac_cv_prog_NM"; then
9200 for ncn_progname in nm; do
9201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9202set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9204$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9205if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 9206 $as_echo_n "(cached) " >&6
859789af
AC
9207else
9208 if test -n "$NM"; then
9209 ac_cv_prog_NM="$NM" # Let the user override the test.
9210else
c6b750e1
DJ
9211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9212for as_dir in $PATH
9213do
9214 IFS=$as_save_IFS
9215 test -z "$as_dir" && as_dir=.
81ecdfbb 9216 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9218 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 9219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9220 break 2
9221 fi
9222done
81ecdfbb
RW
9223 done
9224IFS=$as_save_IFS
c6b750e1 9225
859789af
AC
9226fi
9227fi
c6b750e1 9228NM=$ac_cv_prog_NM
859789af 9229if test -n "$NM"; then
81ecdfbb
RW
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9231$as_echo "$NM" >&6; }
859789af 9232else
81ecdfbb
RW
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9234$as_echo "no" >&6; }
859789af
AC
9235fi
9236
81ecdfbb 9237
9a819804
AO
9238 done
9239fi
9240
9241for ncn_progname in nm; do
9242 if test -n "$ncn_tool_prefix"; then
9243 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9244set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9246$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9247if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 9248 $as_echo_n "(cached) " >&6
859789af 9249else
05cbd757
PB
9250 if test -n "$NM"; then
9251 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 9252else
c6b750e1
DJ
9253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9254for as_dir in $PATH
9255do
9256 IFS=$as_save_IFS
9257 test -z "$as_dir" && as_dir=.
81ecdfbb 9258 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9260 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9262 break 2
9263 fi
9264done
81ecdfbb
RW
9265 done
9266IFS=$as_save_IFS
c6b750e1 9267
859789af
AC
9268fi
9269fi
c6b750e1 9270NM=$ac_cv_prog_NM
05cbd757 9271if test -n "$NM"; then
81ecdfbb
RW
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9273$as_echo "$NM" >&6; }
859789af 9274else
81ecdfbb
RW
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9276$as_echo "no" >&6; }
859789af 9277fi
c6b750e1 9278
81ecdfbb 9279
05cbd757 9280 fi
9a819804
AO
9281 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9282 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9283set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9285$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9286if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 9287 $as_echo_n "(cached) " >&6
9a819804
AO
9288else
9289 if test -n "$NM"; then
9290 ac_cv_prog_NM="$NM" # Let the user override the test.
9291else
9292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9293for as_dir in $PATH
9294do
9295 IFS=$as_save_IFS
9296 test -z "$as_dir" && as_dir=.
81ecdfbb 9297 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9299 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 9300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9301 break 2
9302 fi
9303done
81ecdfbb
RW
9304 done
9305IFS=$as_save_IFS
9a819804
AO
9306
9307fi
9308fi
9309NM=$ac_cv_prog_NM
9310if test -n "$NM"; then
81ecdfbb
RW
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9312$as_echo "$NM" >&6; }
9a819804 9313else
81ecdfbb
RW
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9315$as_echo "no" >&6; }
9a819804
AO
9316fi
9317
81ecdfbb 9318
9a819804
AO
9319 fi
9320 test -n "$ac_cv_prog_NM" && break
9321done
9322
9323if test -z "$ac_cv_prog_NM" ; then
9324 set dummy nm
9325 if test $build = $host ; then
9326 NM="$2"
9327 else
9328 NM="${ncn_tool_prefix}$2"
9329 fi
9330fi
9331
9332
9333
9334if test -n "$RANLIB"; then
9335 ac_cv_prog_RANLIB=$RANLIB
9336elif test -n "$ac_cv_prog_RANLIB"; then
9337 RANLIB=$ac_cv_prog_RANLIB
9338fi
9339
9340if test -n "$ac_cv_prog_RANLIB"; then
9341 for ncn_progname in ranlib; do
9342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9343set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9345$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9346if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9347 $as_echo_n "(cached) " >&6
9a819804
AO
9348else
9349 if test -n "$RANLIB"; then
9350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9351else
9352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9353for as_dir in $PATH
9354do
9355 IFS=$as_save_IFS
9356 test -z "$as_dir" && as_dir=.
81ecdfbb 9357 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9359 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9361 break 2
9362 fi
9363done
81ecdfbb
RW
9364 done
9365IFS=$as_save_IFS
9a819804
AO
9366
9367fi
9368fi
9369RANLIB=$ac_cv_prog_RANLIB
9370if test -n "$RANLIB"; then
81ecdfbb
RW
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9372$as_echo "$RANLIB" >&6; }
9a819804 9373else
81ecdfbb
RW
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9375$as_echo "no" >&6; }
9a819804
AO
9376fi
9377
81ecdfbb 9378
9a819804
AO
9379 done
9380fi
859789af 9381
9a819804 9382for ncn_progname in ranlib; do
05cbd757
PB
9383 if test -n "$ncn_tool_prefix"; then
9384 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9385set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9387$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9388if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9389 $as_echo_n "(cached) " >&6
859789af
AC
9390else
9391 if test -n "$RANLIB"; then
9392 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9393else
c6b750e1
DJ
9394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9395for as_dir in $PATH
9396do
9397 IFS=$as_save_IFS
9398 test -z "$as_dir" && as_dir=.
81ecdfbb 9399 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9401 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9403 break 2
9404 fi
9405done
81ecdfbb
RW
9406 done
9407IFS=$as_save_IFS
c6b750e1 9408
859789af
AC
9409fi
9410fi
c6b750e1 9411RANLIB=$ac_cv_prog_RANLIB
859789af 9412if test -n "$RANLIB"; then
81ecdfbb
RW
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9414$as_echo "$RANLIB" >&6; }
859789af 9415else
81ecdfbb
RW
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9417$as_echo "no" >&6; }
859789af
AC
9418fi
9419
81ecdfbb 9420
05cbd757
PB
9421 fi
9422 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9424set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9426$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9427if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9428 $as_echo_n "(cached) " >&6
859789af 9429else
05cbd757
PB
9430 if test -n "$RANLIB"; then
9431 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 9432else
c6b750e1
DJ
9433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9434for as_dir in $PATH
9435do
9436 IFS=$as_save_IFS
9437 test -z "$as_dir" && as_dir=.
81ecdfbb 9438 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9440 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9442 break 2
9443 fi
9444done
81ecdfbb
RW
9445 done
9446IFS=$as_save_IFS
c6b750e1 9447
859789af
AC
9448fi
9449fi
c6b750e1 9450RANLIB=$ac_cv_prog_RANLIB
05cbd757 9451if test -n "$RANLIB"; then
81ecdfbb
RW
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9453$as_echo "$RANLIB" >&6; }
859789af 9454else
81ecdfbb
RW
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9456$as_echo "no" >&6; }
859789af 9457fi
c6b750e1 9458
81ecdfbb 9459
859789af 9460 fi
05cbd757
PB
9461 test -n "$ac_cv_prog_RANLIB" && break
9462done
9463
9464if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9465 RANLIB="true"
859789af
AC
9466fi
9467
9a819804
AO
9468
9469
9470if test -n "$STRIP"; then
9471 ac_cv_prog_STRIP=$STRIP
9472elif test -n "$ac_cv_prog_STRIP"; then
9473 STRIP=$ac_cv_prog_STRIP
9474fi
9475
9476if test -n "$ac_cv_prog_STRIP"; then
9477 for ncn_progname in strip; do
9478 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9479set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9481$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9482if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9483 $as_echo_n "(cached) " >&6
9a819804
AO
9484else
9485 if test -n "$STRIP"; then
9486 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9487else
9488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9489for as_dir in $PATH
9490do
9491 IFS=$as_save_IFS
9492 test -z "$as_dir" && as_dir=.
81ecdfbb 9493 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9495 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9497 break 2
9498 fi
9499done
81ecdfbb
RW
9500 done
9501IFS=$as_save_IFS
9a819804
AO
9502
9503fi
9504fi
9505STRIP=$ac_cv_prog_STRIP
9506if test -n "$STRIP"; then
81ecdfbb
RW
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9508$as_echo "$STRIP" >&6; }
9a819804 9509else
81ecdfbb
RW
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9511$as_echo "no" >&6; }
9a819804
AO
9512fi
9513
81ecdfbb 9514
9a819804
AO
9515 done
9516fi
9517
9518for ncn_progname in strip; do
be01d343
PB
9519 if test -n "$ncn_tool_prefix"; then
9520 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9521set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9524if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9525 $as_echo_n "(cached) " >&6
be01d343
PB
9526else
9527 if test -n "$STRIP"; then
9528 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9529else
c6b750e1
DJ
9530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531for as_dir in $PATH
9532do
9533 IFS=$as_save_IFS
9534 test -z "$as_dir" && as_dir=.
81ecdfbb 9535 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9537 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9539 break 2
9540 fi
9541done
81ecdfbb
RW
9542 done
9543IFS=$as_save_IFS
c6b750e1 9544
be01d343
PB
9545fi
9546fi
c6b750e1 9547STRIP=$ac_cv_prog_STRIP
be01d343 9548if test -n "$STRIP"; then
81ecdfbb
RW
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9550$as_echo "$STRIP" >&6; }
be01d343 9551else
81ecdfbb
RW
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553$as_echo "no" >&6; }
be01d343
PB
9554fi
9555
81ecdfbb 9556
be01d343
PB
9557 fi
9558 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9559 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9560set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9562$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9563if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9564 $as_echo_n "(cached) " >&6
be01d343
PB
9565else
9566 if test -n "$STRIP"; then
9567 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9568else
c6b750e1
DJ
9569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9570for as_dir in $PATH
9571do
9572 IFS=$as_save_IFS
9573 test -z "$as_dir" && as_dir=.
81ecdfbb 9574 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9576 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9578 break 2
9579 fi
9580done
81ecdfbb
RW
9581 done
9582IFS=$as_save_IFS
c6b750e1 9583
be01d343
PB
9584fi
9585fi
c6b750e1 9586STRIP=$ac_cv_prog_STRIP
be01d343 9587if test -n "$STRIP"; then
81ecdfbb
RW
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9589$as_echo "$STRIP" >&6; }
be01d343 9590else
81ecdfbb
RW
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9592$as_echo "no" >&6; }
be01d343 9593fi
c6b750e1 9594
81ecdfbb 9595
be01d343
PB
9596 fi
9597 test -n "$ac_cv_prog_STRIP" && break
9598done
9599
9600if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9601 STRIP="true"
be01d343
PB
9602fi
9603
9a819804
AO
9604
9605
9606if test -n "$WINDRES"; then
9607 ac_cv_prog_WINDRES=$WINDRES
9608elif test -n "$ac_cv_prog_WINDRES"; then
9609 WINDRES=$ac_cv_prog_WINDRES
9610fi
9611
9612if test -n "$ac_cv_prog_WINDRES"; then
9613 for ncn_progname in windres; do
9614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9615set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9617$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9618if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9619 $as_echo_n "(cached) " >&6
9a819804
AO
9620else
9621 if test -n "$WINDRES"; then
9622 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9623else
9624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9625for as_dir in $PATH
9626do
9627 IFS=$as_save_IFS
9628 test -z "$as_dir" && as_dir=.
81ecdfbb 9629 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9631 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9633 break 2
9634 fi
9635done
81ecdfbb
RW
9636 done
9637IFS=$as_save_IFS
9a819804
AO
9638
9639fi
9640fi
9641WINDRES=$ac_cv_prog_WINDRES
9642if test -n "$WINDRES"; then
81ecdfbb
RW
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9644$as_echo "$WINDRES" >&6; }
9a819804 9645else
81ecdfbb
RW
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9647$as_echo "no" >&6; }
9a819804
AO
9648fi
9649
81ecdfbb 9650
9a819804
AO
9651 done
9652fi
9653
9654for ncn_progname in windres; do
05cbd757
PB
9655 if test -n "$ncn_tool_prefix"; then
9656 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9657set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9659$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9660if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9661 $as_echo_n "(cached) " >&6
859789af
AC
9662else
9663 if test -n "$WINDRES"; then
9664 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9665else
c6b750e1
DJ
9666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667for as_dir in $PATH
9668do
9669 IFS=$as_save_IFS
9670 test -z "$as_dir" && as_dir=.
81ecdfbb 9671 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9673 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9675 break 2
9676 fi
9677done
81ecdfbb
RW
9678 done
9679IFS=$as_save_IFS
c6b750e1 9680
859789af
AC
9681fi
9682fi
c6b750e1 9683WINDRES=$ac_cv_prog_WINDRES
859789af 9684if test -n "$WINDRES"; then
81ecdfbb
RW
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9686$as_echo "$WINDRES" >&6; }
859789af 9687else
81ecdfbb
RW
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9689$as_echo "no" >&6; }
859789af
AC
9690fi
9691
81ecdfbb 9692
05cbd757
PB
9693 fi
9694 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9696set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9698$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9699if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9700 $as_echo_n "(cached) " >&6
859789af 9701else
05cbd757
PB
9702 if test -n "$WINDRES"; then
9703 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9704else
c6b750e1
DJ
9705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706for as_dir in $PATH
9707do
9708 IFS=$as_save_IFS
9709 test -z "$as_dir" && as_dir=.
81ecdfbb 9710 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9712 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9714 break 2
9715 fi
9716done
81ecdfbb
RW
9717 done
9718IFS=$as_save_IFS
c6b750e1 9719
859789af
AC
9720fi
9721fi
c6b750e1 9722WINDRES=$ac_cv_prog_WINDRES
05cbd757 9723if test -n "$WINDRES"; then
81ecdfbb
RW
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9725$as_echo "$WINDRES" >&6; }
859789af 9726else
81ecdfbb
RW
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728$as_echo "no" >&6; }
859789af 9729fi
c6b750e1 9730
81ecdfbb 9731
05cbd757
PB
9732 fi
9733 test -n "$ac_cv_prog_WINDRES" && break
9734done
9735
9736if test -z "$ac_cv_prog_WINDRES" ; then
9737 set dummy windres
9738 if test $build = $host ; then
9739 WINDRES="$2"
859789af 9740 else
05cbd757 9741 WINDRES="${ncn_tool_prefix}$2"
859789af 9742 fi
859789af
AC
9743fi
9744
9a819804
AO
9745
9746
0c24b341
NC
9747if test -n "$WINDMC"; then
9748 ac_cv_prog_WINDMC=$WINDMC
9749elif test -n "$ac_cv_prog_WINDMC"; then
9750 WINDMC=$ac_cv_prog_WINDMC
9751fi
9752
9753if test -n "$ac_cv_prog_WINDMC"; then
9754 for ncn_progname in windmc; do
9755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9756set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9758$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9759if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9760 $as_echo_n "(cached) " >&6
0c24b341
NC
9761else
9762 if test -n "$WINDMC"; then
9763 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9764else
9765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9766for as_dir in $PATH
9767do
9768 IFS=$as_save_IFS
9769 test -z "$as_dir" && as_dir=.
81ecdfbb 9770 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9772 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9774 break 2
9775 fi
9776done
81ecdfbb
RW
9777 done
9778IFS=$as_save_IFS
0c24b341
NC
9779
9780fi
9781fi
9782WINDMC=$ac_cv_prog_WINDMC
9783if test -n "$WINDMC"; then
81ecdfbb
RW
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9785$as_echo "$WINDMC" >&6; }
0c24b341 9786else
81ecdfbb
RW
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9788$as_echo "no" >&6; }
0c24b341
NC
9789fi
9790
81ecdfbb 9791
0c24b341
NC
9792 done
9793fi
9794
9795for ncn_progname in windmc; do
9796 if test -n "$ncn_tool_prefix"; then
9797 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9798set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9800$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9801if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9802 $as_echo_n "(cached) " >&6
0c24b341
NC
9803else
9804 if test -n "$WINDMC"; then
9805 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9806else
9807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9808for as_dir in $PATH
9809do
9810 IFS=$as_save_IFS
9811 test -z "$as_dir" && as_dir=.
81ecdfbb 9812 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9814 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9816 break 2
9817 fi
9818done
81ecdfbb
RW
9819 done
9820IFS=$as_save_IFS
0c24b341
NC
9821
9822fi
9823fi
9824WINDMC=$ac_cv_prog_WINDMC
9825if test -n "$WINDMC"; then
81ecdfbb
RW
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9827$as_echo "$WINDMC" >&6; }
0c24b341 9828else
81ecdfbb
RW
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9830$as_echo "no" >&6; }
0c24b341
NC
9831fi
9832
81ecdfbb 9833
0c24b341
NC
9834 fi
9835 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9836 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9837set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9839$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9840if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9841 $as_echo_n "(cached) " >&6
0c24b341
NC
9842else
9843 if test -n "$WINDMC"; then
9844 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9845else
9846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9847for as_dir in $PATH
9848do
9849 IFS=$as_save_IFS
9850 test -z "$as_dir" && as_dir=.
81ecdfbb 9851 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9853 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9855 break 2
9856 fi
9857done
81ecdfbb
RW
9858 done
9859IFS=$as_save_IFS
0c24b341
NC
9860
9861fi
9862fi
9863WINDMC=$ac_cv_prog_WINDMC
9864if test -n "$WINDMC"; then
81ecdfbb
RW
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9866$as_echo "$WINDMC" >&6; }
0c24b341 9867else
81ecdfbb
RW
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9869$as_echo "no" >&6; }
0c24b341
NC
9870fi
9871
81ecdfbb 9872
0c24b341
NC
9873 fi
9874 test -n "$ac_cv_prog_WINDMC" && break
9875done
9876
9877if test -z "$ac_cv_prog_WINDMC" ; then
9878 set dummy windmc
9879 if test $build = $host ; then
9880 WINDMC="$2"
9881 else
9882 WINDMC="${ncn_tool_prefix}$2"
9883 fi
9884fi
9885
9886
9887
9a819804
AO
9888if test -n "$OBJCOPY"; then
9889 ac_cv_prog_OBJCOPY=$OBJCOPY
9890elif test -n "$ac_cv_prog_OBJCOPY"; then
9891 OBJCOPY=$ac_cv_prog_OBJCOPY
9892fi
9893
9894if test -n "$ac_cv_prog_OBJCOPY"; then
9895 for ncn_progname in objcopy; do
9896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9897set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9899$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9900if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9901 $as_echo_n "(cached) " >&6
9a819804
AO
9902else
9903 if test -n "$OBJCOPY"; then
9904 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9905else
9906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9907for as_dir in $PATH
9908do
9909 IFS=$as_save_IFS
9910 test -z "$as_dir" && as_dir=.
81ecdfbb 9911 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9913 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9915 break 2
9916 fi
9917done
81ecdfbb
RW
9918 done
9919IFS=$as_save_IFS
9a819804
AO
9920
9921fi
9922fi
9923OBJCOPY=$ac_cv_prog_OBJCOPY
9924if test -n "$OBJCOPY"; then
81ecdfbb
RW
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9926$as_echo "$OBJCOPY" >&6; }
9a819804 9927else
81ecdfbb
RW
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9929$as_echo "no" >&6; }
9a819804
AO
9930fi
9931
81ecdfbb 9932
9a819804
AO
9933 done
9934fi
9935
9936for ncn_progname in objcopy; do
05cbd757
PB
9937 if test -n "$ncn_tool_prefix"; then
9938 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9939set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9941$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9942if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9943 $as_echo_n "(cached) " >&6
859789af
AC
9944else
9945 if test -n "$OBJCOPY"; then
9946 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9947else
c6b750e1
DJ
9948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9949for as_dir in $PATH
9950do
9951 IFS=$as_save_IFS
9952 test -z "$as_dir" && as_dir=.
81ecdfbb 9953 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9955 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9957 break 2
9958 fi
9959done
81ecdfbb
RW
9960 done
9961IFS=$as_save_IFS
c6b750e1 9962
859789af
AC
9963fi
9964fi
c6b750e1 9965OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9966if test -n "$OBJCOPY"; then
81ecdfbb
RW
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9968$as_echo "$OBJCOPY" >&6; }
859789af 9969else
81ecdfbb
RW
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9971$as_echo "no" >&6; }
859789af
AC
9972fi
9973
81ecdfbb 9974
05cbd757
PB
9975 fi
9976 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9978set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9980$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9981if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9982 $as_echo_n "(cached) " >&6
859789af 9983else
05cbd757
PB
9984 if test -n "$OBJCOPY"; then
9985 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9986else
c6b750e1
DJ
9987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9988for as_dir in $PATH
9989do
9990 IFS=$as_save_IFS
9991 test -z "$as_dir" && as_dir=.
81ecdfbb 9992 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9994 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9996 break 2
9997 fi
9998done
81ecdfbb
RW
9999 done
10000IFS=$as_save_IFS
c6b750e1 10001
859789af
AC
10002fi
10003fi
c6b750e1 10004OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 10005if test -n "$OBJCOPY"; then
81ecdfbb
RW
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10007$as_echo "$OBJCOPY" >&6; }
859789af 10008else
81ecdfbb
RW
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10010$as_echo "no" >&6; }
859789af 10011fi
c6b750e1 10012
81ecdfbb 10013
05cbd757
PB
10014 fi
10015 test -n "$ac_cv_prog_OBJCOPY" && break
10016done
10017
10018if test -z "$ac_cv_prog_OBJCOPY" ; then
10019 set dummy objcopy
10020 if test $build = $host ; then
10021 OBJCOPY="$2"
859789af 10022 else
05cbd757 10023 OBJCOPY="${ncn_tool_prefix}$2"
859789af 10024 fi
859789af
AC
10025fi
10026
9a819804
AO
10027
10028
10029if test -n "$OBJDUMP"; then
10030 ac_cv_prog_OBJDUMP=$OBJDUMP
10031elif test -n "$ac_cv_prog_OBJDUMP"; then
10032 OBJDUMP=$ac_cv_prog_OBJDUMP
10033fi
10034
10035if test -n "$ac_cv_prog_OBJDUMP"; then
10036 for ncn_progname in objdump; do
10037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10038set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10040$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10041if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 10042 $as_echo_n "(cached) " >&6
9a819804
AO
10043else
10044 if test -n "$OBJDUMP"; then
10045 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10046else
10047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048for as_dir in $PATH
10049do
10050 IFS=$as_save_IFS
10051 test -z "$as_dir" && as_dir=.
81ecdfbb 10052 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10054 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 10055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10056 break 2
10057 fi
10058done
81ecdfbb
RW
10059 done
10060IFS=$as_save_IFS
9a819804
AO
10061
10062fi
10063fi
10064OBJDUMP=$ac_cv_prog_OBJDUMP
10065if test -n "$OBJDUMP"; then
81ecdfbb
RW
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10067$as_echo "$OBJDUMP" >&6; }
9a819804 10068else
81ecdfbb
RW
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10070$as_echo "no" >&6; }
9a819804
AO
10071fi
10072
81ecdfbb 10073
9a819804
AO
10074 done
10075fi
10076
10077for ncn_progname in objdump; do
05cbd757
PB
10078 if test -n "$ncn_tool_prefix"; then
10079 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10080set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10083if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 10084 $as_echo_n "(cached) " >&6
859789af
AC
10085else
10086 if test -n "$OBJDUMP"; then
10087 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10088else
c6b750e1
DJ
10089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090for as_dir in $PATH
10091do
10092 IFS=$as_save_IFS
10093 test -z "$as_dir" && as_dir=.
81ecdfbb 10094 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10096 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 10097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10098 break 2
10099 fi
10100done
81ecdfbb
RW
10101 done
10102IFS=$as_save_IFS
c6b750e1 10103
859789af
AC
10104fi
10105fi
c6b750e1 10106OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 10107if test -n "$OBJDUMP"; then
81ecdfbb
RW
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10109$as_echo "$OBJDUMP" >&6; }
859789af 10110else
81ecdfbb
RW
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112$as_echo "no" >&6; }
859789af
AC
10113fi
10114
81ecdfbb 10115
05cbd757
PB
10116 fi
10117 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10119set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10121$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10122if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 10123 $as_echo_n "(cached) " >&6
859789af 10124else
05cbd757
PB
10125 if test -n "$OBJDUMP"; then
10126 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 10127else
c6b750e1
DJ
10128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10129for as_dir in $PATH
10130do
10131 IFS=$as_save_IFS
10132 test -z "$as_dir" && as_dir=.
81ecdfbb 10133 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10135 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 10136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10137 break 2
10138 fi
10139done
81ecdfbb
RW
10140 done
10141IFS=$as_save_IFS
c6b750e1 10142
859789af
AC
10143fi
10144fi
c6b750e1 10145OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 10146if test -n "$OBJDUMP"; then
81ecdfbb
RW
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10148$as_echo "$OBJDUMP" >&6; }
859789af 10149else
81ecdfbb
RW
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151$as_echo "no" >&6; }
859789af 10152fi
c6b750e1 10153
81ecdfbb 10154
05cbd757
PB
10155 fi
10156 test -n "$ac_cv_prog_OBJDUMP" && break
10157done
10158
10159if test -z "$ac_cv_prog_OBJDUMP" ; then
10160 set dummy objdump
10161 if test $build = $host ; then
10162 OBJDUMP="$2"
859789af 10163 else
05cbd757 10164 OBJDUMP="${ncn_tool_prefix}$2"
859789af 10165 fi
859789af
AC
10166fi
10167
a0da8069
NN
10168
10169
b121d7d4
DD
10170if test -n "$READELF"; then
10171 ac_cv_prog_READELF=$READELF
10172elif test -n "$ac_cv_prog_READELF"; then
10173 READELF=$ac_cv_prog_READELF
10174fi
10175
10176if test -n "$ac_cv_prog_READELF"; then
10177 for ncn_progname in readelf; do
10178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10179set dummy ${ncn_progname}; ac_word=$2
10180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10181$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10182if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
10183 $as_echo_n "(cached) " >&6
10184else
10185 if test -n "$READELF"; then
10186 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10187else
10188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10189for as_dir in $PATH
10190do
10191 IFS=$as_save_IFS
10192 test -z "$as_dir" && as_dir=.
10193 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
10195 ac_cv_prog_READELF="${ncn_progname}"
10196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10197 break 2
10198 fi
10199done
10200 done
10201IFS=$as_save_IFS
10202
10203fi
10204fi
10205READELF=$ac_cv_prog_READELF
10206if test -n "$READELF"; then
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10208$as_echo "$READELF" >&6; }
10209else
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211$as_echo "no" >&6; }
10212fi
10213
10214
10215 done
10216fi
10217
10218for ncn_progname in readelf; do
10219 if test -n "$ncn_tool_prefix"; then
10220 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10221set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10223$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10224if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
10225 $as_echo_n "(cached) " >&6
10226else
10227 if test -n "$READELF"; then
10228 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10229else
10230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231for as_dir in $PATH
10232do
10233 IFS=$as_save_IFS
10234 test -z "$as_dir" && as_dir=.
10235 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
10237 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10239 break 2
10240 fi
10241done
10242 done
10243IFS=$as_save_IFS
10244
10245fi
10246fi
10247READELF=$ac_cv_prog_READELF
10248if test -n "$READELF"; then
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10250$as_echo "$READELF" >&6; }
10251else
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253$as_echo "no" >&6; }
10254fi
10255
10256
10257 fi
10258 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10260set dummy ${ncn_progname}; ac_word=$2
10261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10262$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10263if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
10264 $as_echo_n "(cached) " >&6
10265else
10266 if test -n "$READELF"; then
10267 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10268else
10269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10270for as_dir in $PATH
10271do
10272 IFS=$as_save_IFS
10273 test -z "$as_dir" && as_dir=.
10274 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
10276 ac_cv_prog_READELF="${ncn_progname}"
10277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10278 break 2
10279 fi
10280done
10281 done
10282IFS=$as_save_IFS
10283
10284fi
10285fi
10286READELF=$ac_cv_prog_READELF
10287if test -n "$READELF"; then
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10289$as_echo "$READELF" >&6; }
10290else
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10292$as_echo "no" >&6; }
10293fi
10294
10295
10296 fi
10297 test -n "$ac_cv_prog_READELF" && break
10298done
10299
10300if test -z "$ac_cv_prog_READELF" ; then
10301 set dummy readelf
10302 if test $build = $host ; then
10303 READELF="$2"
10304 else
10305 READELF="${ncn_tool_prefix}$2"
10306 fi
10307fi
10308
10309
10310
a0da8069
NN
10311
10312
10313
de83289e 10314
50ad1254
L
10315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
10316$as_echo_n "checking for -plugin option... " >&6; }
10317
10318plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
10319plugin_option=
10320for plugin in $plugin_names; do
10321 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
10322 if test x$plugin_so = x$plugin; then
10323 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
10324 fi
10325 if test x$plugin_so != x$plugin; then
10326 plugin_option="--plugin $plugin_so"
10327 break
10328 fi
10329done
03c02f31
L
10330if test -n "$ac_tool_prefix"; then
10331 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10332set dummy ${ac_tool_prefix}ar; ac_word=$2
10333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10334$as_echo_n "checking for $ac_word... " >&6; }
10335if ${ac_cv_prog_AR+:} false; then :
10336 $as_echo_n "(cached) " >&6
10337else
10338 if test -n "$AR"; then
10339 ac_cv_prog_AR="$AR" # Let the user override the test.
10340else
10341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342for as_dir in $PATH
10343do
10344 IFS=$as_save_IFS
10345 test -z "$as_dir" && as_dir=.
10346 for ac_exec_ext in '' $ac_executable_extensions; do
10347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10348 ac_cv_prog_AR="${ac_tool_prefix}ar"
10349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10350 break 2
10351 fi
10352done
10353 done
10354IFS=$as_save_IFS
10355
10356fi
10357fi
10358AR=$ac_cv_prog_AR
10359if test -n "$AR"; then
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10361$as_echo "$AR" >&6; }
10362else
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364$as_echo "no" >&6; }
10365fi
10366
10367
10368fi
10369if test -z "$ac_cv_prog_AR"; then
10370 ac_ct_AR=$AR
10371 # Extract the first word of "ar", so it can be a program name with args.
10372set dummy ar; ac_word=$2
10373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10374$as_echo_n "checking for $ac_word... " >&6; }
10375if ${ac_cv_prog_ac_ct_AR+:} false; then :
10376 $as_echo_n "(cached) " >&6
10377else
10378 if test -n "$ac_ct_AR"; then
10379 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10380else
10381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382for as_dir in $PATH
10383do
10384 IFS=$as_save_IFS
10385 test -z "$as_dir" && as_dir=.
10386 for ac_exec_ext in '' $ac_executable_extensions; do
10387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10388 ac_cv_prog_ac_ct_AR="ar"
10389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10390 break 2
10391 fi
10392done
10393 done
10394IFS=$as_save_IFS
10395
10396fi
10397fi
10398ac_ct_AR=$ac_cv_prog_ac_ct_AR
10399if test -n "$ac_ct_AR"; then
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10401$as_echo "$ac_ct_AR" >&6; }
10402else
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404$as_echo "no" >&6; }
10405fi
10406
10407 if test "x$ac_ct_AR" = x; then
10408 AR=""
10409 else
10410 case $cross_compiling:$ac_tool_warned in
10411yes:)
10412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10414ac_tool_warned=yes ;;
10415esac
10416 AR=$ac_ct_AR
10417 fi
10418else
10419 AR="$ac_cv_prog_AR"
10420fi
10421
10422if test "${AR}" = "" ; then
10423 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
10424fi
10425touch conftest.c
10426${AR} $plugin_option rc conftest.a conftest.c
10427if test "$?" != 0; then
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
10429$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
10430 plugin_option=
10431fi
10432rm -f conftest.*
50ad1254
L
10433if test -n "$plugin_option"; then
10434 PLUGIN_OPTION="$plugin_option"
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
10436$as_echo "$plugin_option" >&6; }
10437else
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10439$as_echo "no" >&6; }
10440fi
10441
10442AR_PLUGIN_OPTION=
10443RANLIB_PLUGIN_OPTION=
10444if test -n "$PLUGIN_OPTION"; then
10445 if $AR --help 2>&1 | grep -q "\--plugin"; then
10446 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
10447 fi
10448 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
10449 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
10450 fi
44124a46
L
10451else
10452 if test "$enable_pgo_build" != "no"; then
10453 as_fn_error $? "AR with --plugin and rc is required for LTO build" "$LINENO" 5
10454 fi
50ad1254
L
10455fi
10456
10457
10458
be01d343 10459# Target tools.
c6b750e1 10460
81ecdfbb
RW
10461# Check whether --with-build-time-tools was given.
10462if test "${with_build_time_tools+set}" = set; then :
10463 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
10464 x/*) ;;
10465 *)
10466 with_build_time_tools=
81ecdfbb
RW
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10468$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
10469 ;;
10470 esac
859789af 10471else
2429c060 10472 with_build_time_tools=
81ecdfbb
RW
10473fi
10474
859789af 10475
9a819804
AO
10476
10477
10478if test -n "$CC_FOR_TARGET"; then
10479 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10480elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10481 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10482fi
10483
10484if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10485 for ncn_progname in cc gcc; do
10486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10487set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10489$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10490if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10491 $as_echo_n "(cached) " >&6
9a819804
AO
10492else
10493 if test -n "$CC_FOR_TARGET"; then
10494 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10495else
10496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497for as_dir in $PATH
10498do
10499 IFS=$as_save_IFS
10500 test -z "$as_dir" && as_dir=.
81ecdfbb 10501 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10503 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10505 break 2
10506 fi
10507done
81ecdfbb
RW
10508 done
10509IFS=$as_save_IFS
9a819804
AO
10510
10511fi
10512fi
10513CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10514if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10516$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 10517else
81ecdfbb
RW
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519$as_echo "no" >&6; }
9a819804
AO
10520fi
10521
81ecdfbb 10522
9a819804
AO
10523 done
10524fi
10525
10526if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10527 for ncn_progname in cc gcc; do
81ecdfbb
RW
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10529$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10530 if test -x $with_build_time_tools/${ncn_progname}; then
10531 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10533$as_echo "yes" >&6; }
cac3d6c4 10534 break
2429c060 10535 else
81ecdfbb
RW
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10537$as_echo "no" >&6; }
cac3d6c4
CM
10538 fi
10539 done
55db4b87
PB
10540fi
10541
2429c060
PB
10542if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10543 for ncn_progname in cc gcc; do
10544 if test -n "$ncn_target_tool_prefix"; then
10545 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10546set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10548$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10549if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10550 $as_echo_n "(cached) " >&6
55db4b87
PB
10551else
10552 if test -n "$CC_FOR_TARGET"; then
10553 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10554else
c6b750e1
DJ
10555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10556for as_dir in $PATH
10557do
10558 IFS=$as_save_IFS
10559 test -z "$as_dir" && as_dir=.
81ecdfbb 10560 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10562 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10564 break 2
10565 fi
10566done
81ecdfbb
RW
10567 done
10568IFS=$as_save_IFS
c6b750e1 10569
55db4b87
PB
10570fi
10571fi
c6b750e1 10572CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 10573if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10575$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10576else
81ecdfbb
RW
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578$as_echo "no" >&6; }
55db4b87
PB
10579fi
10580
81ecdfbb 10581
2429c060
PB
10582 fi
10583 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10585set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10587$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10588if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10589 $as_echo_n "(cached) " >&6
55db4b87 10590else
05cbd757
PB
10591 if test -n "$CC_FOR_TARGET"; then
10592 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 10593else
c6b750e1
DJ
10594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10595for as_dir in $PATH
10596do
10597 IFS=$as_save_IFS
10598 test -z "$as_dir" && as_dir=.
81ecdfbb 10599 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10601 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10603 break 2
10604 fi
10605done
81ecdfbb
RW
10606 done
10607IFS=$as_save_IFS
c6b750e1 10608
55db4b87
PB
10609fi
10610fi
c6b750e1 10611CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 10612if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10614$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10615else
81ecdfbb
RW
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10617$as_echo "no" >&6; }
55db4b87 10618fi
c6b750e1 10619
81ecdfbb 10620
2429c060
PB
10621 fi
10622 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10623 done
10624fi
c6b750e1 10625
05cbd757
PB
10626if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10627 set dummy cc gcc
10628 if test $build = $target ; then
10629 CC_FOR_TARGET="$2"
55db4b87 10630 else
05cbd757 10631 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10632 fi
d3f5afc4
MS
10633else
10634 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10635fi
10636
9a819804
AO
10637
10638
10639if test -n "$CXX_FOR_TARGET"; then
10640 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10641elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10642 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10643fi
10644
10645if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10646 for ncn_progname in c++ g++ cxx gxx; do
10647 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10648set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10650$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10651if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10652 $as_echo_n "(cached) " >&6
9a819804
AO
10653else
10654 if test -n "$CXX_FOR_TARGET"; then
10655 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10656else
10657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10658for as_dir in $PATH
10659do
10660 IFS=$as_save_IFS
10661 test -z "$as_dir" && as_dir=.
81ecdfbb 10662 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10664 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10666 break 2
10667 fi
10668done
81ecdfbb
RW
10669 done
10670IFS=$as_save_IFS
9a819804
AO
10671
10672fi
10673fi
10674CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10675if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10677$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10678else
81ecdfbb
RW
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10680$as_echo "no" >&6; }
9a819804
AO
10681fi
10682
81ecdfbb 10683
9a819804
AO
10684 done
10685fi
10686
10687if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10688 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10690$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10691 if test -x $with_build_time_tools/${ncn_progname}; then
10692 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10694$as_echo "yes" >&6; }
2429c060
PB
10695 break
10696 else
81ecdfbb
RW
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10698$as_echo "no" >&6; }
2429c060
PB
10699 fi
10700 done
10701fi
10702
10703if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10704 for ncn_progname in c++ g++ cxx gxx; do
10705 if test -n "$ncn_target_tool_prefix"; then
10706 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10707set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10709$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10710if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10711 $as_echo_n "(cached) " >&6
55db4b87
PB
10712else
10713 if test -n "$CXX_FOR_TARGET"; then
10714 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10715else
c6b750e1
DJ
10716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717for as_dir in $PATH
10718do
10719 IFS=$as_save_IFS
10720 test -z "$as_dir" && as_dir=.
81ecdfbb 10721 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10723 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10725 break 2
10726 fi
10727done
81ecdfbb
RW
10728 done
10729IFS=$as_save_IFS
c6b750e1 10730
55db4b87
PB
10731fi
10732fi
c6b750e1 10733CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10734if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10736$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10737else
81ecdfbb
RW
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10739$as_echo "no" >&6; }
55db4b87
PB
10740fi
10741
81ecdfbb 10742
2429c060
PB
10743 fi
10744 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10745 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10746set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10748$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10749if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10750 $as_echo_n "(cached) " >&6
55db4b87 10751else
05cbd757
PB
10752 if test -n "$CXX_FOR_TARGET"; then
10753 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10754else
c6b750e1
DJ
10755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10756for as_dir in $PATH
10757do
10758 IFS=$as_save_IFS
10759 test -z "$as_dir" && as_dir=.
81ecdfbb 10760 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10762 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10764 break 2
10765 fi
10766done
81ecdfbb
RW
10767 done
10768IFS=$as_save_IFS
c6b750e1 10769
55db4b87
PB
10770fi
10771fi
c6b750e1 10772CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10773if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10775$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10776else
81ecdfbb
RW
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778$as_echo "no" >&6; }
55db4b87 10779fi
c6b750e1 10780
81ecdfbb 10781
2429c060
PB
10782 fi
10783 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10784 done
10785fi
c6b750e1 10786
05cbd757
PB
10787if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10788 set dummy c++ g++ cxx gxx
10789 if test $build = $target ; then
10790 CXX_FOR_TARGET="$2"
55db4b87 10791 else
05cbd757 10792 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10793 fi
d3f5afc4
MS
10794else
10795 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10796fi
10797
9a819804
AO
10798
10799
10800if test -n "$GCC_FOR_TARGET"; then
10801 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10802elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10803 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10804fi
10805
10806if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10807 for ncn_progname in gcc; do
10808 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10809set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10811$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10812if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10813 $as_echo_n "(cached) " >&6
9a819804
AO
10814else
10815 if test -n "$GCC_FOR_TARGET"; then
10816 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10817else
10818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10819for as_dir in $PATH
10820do
10821 IFS=$as_save_IFS
10822 test -z "$as_dir" && as_dir=.
81ecdfbb 10823 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10825 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10827 break 2
10828 fi
10829done
81ecdfbb
RW
10830 done
10831IFS=$as_save_IFS
9a819804
AO
10832
10833fi
10834fi
10835GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10836if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10838$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10839else
81ecdfbb
RW
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841$as_echo "no" >&6; }
9a819804
AO
10842fi
10843
81ecdfbb 10844
9a819804
AO
10845 done
10846fi
10847
10848if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10849 for ncn_progname in gcc; do
81ecdfbb
RW
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10851$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10852 if test -x $with_build_time_tools/${ncn_progname}; then
10853 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10855$as_echo "yes" >&6; }
2429c060
PB
10856 break
10857 else
81ecdfbb
RW
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10859$as_echo "no" >&6; }
2429c060
PB
10860 fi
10861 done
10862fi
10863
10864if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10865 for ncn_progname in gcc; do
10866 if test -n "$ncn_target_tool_prefix"; then
10867 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10868set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10870$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10871if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10872 $as_echo_n "(cached) " >&6
859789af 10873else
2429c060
PB
10874 if test -n "$GCC_FOR_TARGET"; then
10875 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10876else
c6b750e1
DJ
10877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10878for as_dir in $PATH
10879do
10880 IFS=$as_save_IFS
10881 test -z "$as_dir" && as_dir=.
81ecdfbb 10882 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10884 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10886 break 2
10887 fi
10888done
81ecdfbb
RW
10889 done
10890IFS=$as_save_IFS
c6b750e1 10891
55db4b87
PB
10892fi
10893fi
c6b750e1 10894GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10895if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10897$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10898else
81ecdfbb
RW
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10900$as_echo "no" >&6; }
55db4b87
PB
10901fi
10902
81ecdfbb 10903
2429c060
PB
10904 fi
10905 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10907set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10909$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10910if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10911 $as_echo_n "(cached) " >&6
55db4b87 10912else
05cbd757
PB
10913 if test -n "$GCC_FOR_TARGET"; then
10914 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10915else
c6b750e1
DJ
10916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10917for as_dir in $PATH
10918do
10919 IFS=$as_save_IFS
10920 test -z "$as_dir" && as_dir=.
81ecdfbb 10921 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10923 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10925 break 2
10926 fi
10927done
81ecdfbb
RW
10928 done
10929IFS=$as_save_IFS
c6b750e1 10930
55db4b87
PB
10931fi
10932fi
c6b750e1 10933GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10934if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10936$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10937else
81ecdfbb
RW
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10939$as_echo "no" >&6; }
55db4b87 10940fi
c6b750e1 10941
81ecdfbb 10942
2429c060
PB
10943 fi
10944 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10945 done
10946fi
c6b750e1 10947
05cbd757
PB
10948if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10949 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10950else
10951 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10952fi
10953
9a819804
AO
10954
10955
9a819804
AO
10956if test -n "$GFORTRAN_FOR_TARGET"; then
10957 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10958elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10959 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10960fi
10961
9a819804
AO
10962if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10963 for ncn_progname in gfortran; do
10964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10965set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10967$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10968if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10969 $as_echo_n "(cached) " >&6
55db4b87 10970else
9a819804
AO
10971 if test -n "$GFORTRAN_FOR_TARGET"; then
10972 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10973else
c6b750e1
DJ
10974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975for as_dir in $PATH
10976do
10977 IFS=$as_save_IFS
10978 test -z "$as_dir" && as_dir=.
81ecdfbb 10979 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10981 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10983 break 2
10984 fi
10985done
81ecdfbb
RW
10986 done
10987IFS=$as_save_IFS
c6b750e1 10988
55db4b87
PB
10989fi
10990fi
9a819804
AO
10991GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10992if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10994$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10995else
81ecdfbb
RW
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10997$as_echo "no" >&6; }
55db4b87 10998fi
c6b750e1 10999
81ecdfbb 11000
2429c060
PB
11001 done
11002fi
c6b750e1 11003
9a819804 11004if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11005 for ncn_progname in gfortran; do
81ecdfbb
RW
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11007$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11008 if test -x $with_build_time_tools/${ncn_progname}; then
11009 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11011$as_echo "yes" >&6; }
2429c060
PB
11012 break
11013 else
81ecdfbb
RW
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015$as_echo "no" >&6; }
2429c060
PB
11016 fi
11017 done
11018fi
11019
11020if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
11021 for ncn_progname in gfortran; do
11022 if test -n "$ncn_target_tool_prefix"; then
11023 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11024set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11026$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11027if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 11028 $as_echo_n "(cached) " >&6
55db4b87
PB
11029else
11030 if test -n "$GFORTRAN_FOR_TARGET"; then
11031 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11032else
c6b750e1
DJ
11033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11034for as_dir in $PATH
11035do
11036 IFS=$as_save_IFS
11037 test -z "$as_dir" && as_dir=.
81ecdfbb 11038 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11040 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11042 break 2
11043 fi
11044done
81ecdfbb
RW
11045 done
11046IFS=$as_save_IFS
c6b750e1 11047
55db4b87
PB
11048fi
11049fi
c6b750e1 11050GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 11051if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11053$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 11054else
81ecdfbb
RW
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11056$as_echo "no" >&6; }
55db4b87
PB
11057fi
11058
81ecdfbb 11059
2429c060
PB
11060 fi
11061 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11063set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11065$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11066if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 11067 $as_echo_n "(cached) " >&6
55db4b87 11068else
05cbd757 11069 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
11070 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11071else
11072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11073for as_dir in $PATH
11074do
11075 IFS=$as_save_IFS
11076 test -z "$as_dir" && as_dir=.
81ecdfbb 11077 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11079 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 11080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11081 break 2
11082 fi
11083done
81ecdfbb
RW
11084 done
11085IFS=$as_save_IFS
c6b750e1 11086
55db4b87
PB
11087fi
11088fi
c6b750e1 11089GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 11090if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11092$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 11093else
81ecdfbb
RW
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11095$as_echo "no" >&6; }
55db4b87 11096fi
c6b750e1 11097
81ecdfbb 11098
2429c060
PB
11099 fi
11100 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11101 done
11102fi
c6b750e1 11103
05cbd757
PB
11104if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11105 set dummy gfortran
11106 if test $build = $target ; then
11107 GFORTRAN_FOR_TARGET="$2"
55db4b87 11108 else
05cbd757 11109 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 11110 fi
d3f5afc4
MS
11111else
11112 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
11113fi
11114
2429c060
PB
11115
11116
e552509b
ILT
11117if test -n "$GOC_FOR_TARGET"; then
11118 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
11119elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11120 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11121fi
11122
11123if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11124 for ncn_progname in gccgo; do
11125 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11126set dummy ${ncn_progname}; ac_word=$2
11127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11128$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11129if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
11130 $as_echo_n "(cached) " >&6
11131else
11132 if test -n "$GOC_FOR_TARGET"; then
11133 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11134else
11135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11136for as_dir in $PATH
11137do
11138 IFS=$as_save_IFS
11139 test -z "$as_dir" && as_dir=.
11140 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
11142 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11144 break 2
11145 fi
11146done
11147 done
11148IFS=$as_save_IFS
11149
11150fi
11151fi
11152GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11153if test -n "$GOC_FOR_TARGET"; then
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11155$as_echo "$GOC_FOR_TARGET" >&6; }
11156else
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11158$as_echo "no" >&6; }
11159fi
11160
11161
11162 done
11163fi
11164
11165if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11166 for ncn_progname in gccgo; do
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11168$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11169 if test -x $with_build_time_tools/${ncn_progname}; then
11170 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11172$as_echo "yes" >&6; }
11173 break
11174 else
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11176$as_echo "no" >&6; }
11177 fi
11178 done
11179fi
11180
11181if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
11182 for ncn_progname in gccgo; do
11183 if test -n "$ncn_target_tool_prefix"; then
11184 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11185set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11187$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11188if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
11189 $as_echo_n "(cached) " >&6
11190else
11191 if test -n "$GOC_FOR_TARGET"; then
11192 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11193else
11194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195for as_dir in $PATH
11196do
11197 IFS=$as_save_IFS
11198 test -z "$as_dir" && as_dir=.
11199 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
11201 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11203 break 2
11204 fi
11205done
11206 done
11207IFS=$as_save_IFS
11208
11209fi
11210fi
11211GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11212if test -n "$GOC_FOR_TARGET"; then
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11214$as_echo "$GOC_FOR_TARGET" >&6; }
11215else
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11217$as_echo "no" >&6; }
11218fi
11219
11220
11221 fi
11222 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11224set dummy ${ncn_progname}; ac_word=$2
11225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11226$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11227if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
11228 $as_echo_n "(cached) " >&6
11229else
11230 if test -n "$GOC_FOR_TARGET"; then
11231 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11232else
11233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234for as_dir in $PATH
11235do
11236 IFS=$as_save_IFS
11237 test -z "$as_dir" && as_dir=.
11238 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
11240 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11242 break 2
11243 fi
11244done
11245 done
11246IFS=$as_save_IFS
11247
11248fi
11249fi
11250GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11251if test -n "$GOC_FOR_TARGET"; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11253$as_echo "$GOC_FOR_TARGET" >&6; }
11254else
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11256$as_echo "no" >&6; }
11257fi
11258
11259
11260 fi
11261 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11262 done
11263fi
11264
11265if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11266 set dummy gccgo
11267 if test $build = $target ; then
11268 GOC_FOR_TARGET="$2"
11269 else
11270 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11271 fi
11272else
11273 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11274fi
11275
11276
11277
2429c060
PB
11278cat > conftest.c << \EOF
11279#ifdef __GNUC__
11280 gcc_yay;
11281#endif
11282EOF
11283if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11284 have_gcc_for_target=yes
859789af 11285else
2429c060
PB
11286 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11287 have_gcc_for_target=no
859789af 11288fi
2429c060
PB
11289rm conftest.c
11290
11291
11292
859789af 11293
2429c060
PB
11294if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11295 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11297$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11298 if test -x $with_build_time_tools/ar; then
11299 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11300 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11302$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 11303 else
81ecdfbb
RW
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305$as_echo "no" >&6; }
3a35eeb3 11306 fi
2429c060
PB
11307 elif test $build != $host && test $have_gcc_for_target = yes; then
11308 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
11309 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11310 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 11311 fi
2429c060 11312fi
c6b750e1 11313if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11314 # Extract the first word of "ar", so it can be a program name with args.
11315set dummy ar; ac_word=$2
81ecdfbb
RW
11316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11317$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11318if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
81ecdfbb 11319 $as_echo_n "(cached) " >&6
859789af 11320else
c6b750e1
DJ
11321 case $AR_FOR_TARGET in
11322 [\\/]* | ?:[\\/]*)
2429c060
PB
11323 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11324 ;;
2429c060 11325 *)
c6b750e1
DJ
11326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11327for as_dir in $gcc_cv_tool_dirs
11328do
11329 IFS=$as_save_IFS
11330 test -z "$as_dir" && as_dir=.
81ecdfbb 11331 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11333 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11335 break 2
11336 fi
11337done
81ecdfbb
RW
11338 done
11339IFS=$as_save_IFS
c6b750e1 11340
2429c060
PB
11341 ;;
11342esac
859789af 11343fi
c6b750e1 11344AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 11345if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11347$as_echo "$AR_FOR_TARGET" >&6; }
859789af 11348else
81ecdfbb
RW
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350$as_echo "no" >&6; }
859789af 11351fi
05cbd757 11352
81ecdfbb 11353
2429c060
PB
11354fi
11355if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
11356
11357
11358if test -n "$AR_FOR_TARGET"; then
11359 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11360elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11361 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11362fi
11363
11364if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11365 for ncn_progname in ar; do
11366 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11367set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11369$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11370if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 11371 $as_echo_n "(cached) " >&6
9a819804
AO
11372else
11373 if test -n "$AR_FOR_TARGET"; then
11374 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11375else
11376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11377for as_dir in $PATH
11378do
11379 IFS=$as_save_IFS
11380 test -z "$as_dir" && as_dir=.
81ecdfbb 11381 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11383 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11385 break 2
11386 fi
11387done
81ecdfbb
RW
11388 done
11389IFS=$as_save_IFS
9a819804
AO
11390
11391fi
11392fi
11393AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11394if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11396$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 11397else
81ecdfbb
RW
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11399$as_echo "no" >&6; }
9a819804
AO
11400fi
11401
81ecdfbb 11402
9a819804
AO
11403 done
11404fi
11405
11406if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11407 for ncn_progname in ar; do
81ecdfbb
RW
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11409$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11410 if test -x $with_build_time_tools/${ncn_progname}; then
11411 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11413$as_echo "yes" >&6; }
2429c060
PB
11414 break
11415 else
81ecdfbb
RW
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417$as_echo "no" >&6; }
2429c060
PB
11418 fi
11419 done
859789af
AC
11420fi
11421
2429c060
PB
11422if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11423 for ncn_progname in ar; do
11424 if test -n "$ncn_target_tool_prefix"; then
11425 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11426set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11428$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11429if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 11430 $as_echo_n "(cached) " >&6
7e0f7140 11431else
2429c060
PB
11432 if test -n "$AR_FOR_TARGET"; then
11433 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 11434else
c6b750e1
DJ
11435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436for as_dir in $PATH
11437do
11438 IFS=$as_save_IFS
11439 test -z "$as_dir" && as_dir=.
81ecdfbb 11440 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11442 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11444 break 2
11445 fi
11446done
81ecdfbb
RW
11447 done
11448IFS=$as_save_IFS
c6b750e1 11449
7e0f7140
GK
11450fi
11451fi
c6b750e1 11452AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11453if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11455$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11456else
81ecdfbb
RW
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458$as_echo "no" >&6; }
7e0f7140
GK
11459fi
11460
81ecdfbb 11461
2429c060
PB
11462 fi
11463 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11465set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11467$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11468if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 11469 $as_echo_n "(cached) " >&6
7e0f7140 11470else
2429c060
PB
11471 if test -n "$AR_FOR_TARGET"; then
11472 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 11473else
c6b750e1
DJ
11474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475for as_dir in $PATH
11476do
11477 IFS=$as_save_IFS
11478 test -z "$as_dir" && as_dir=.
81ecdfbb 11479 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11481 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11483 break 2
11484 fi
11485done
81ecdfbb
RW
11486 done
11487IFS=$as_save_IFS
c6b750e1 11488
7e0f7140
GK
11489fi
11490fi
c6b750e1 11491AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11492if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11494$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11495else
81ecdfbb
RW
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497$as_echo "no" >&6; }
7e0f7140 11498fi
c6b750e1 11499
81ecdfbb 11500
2429c060
PB
11501 fi
11502 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11503 done
11504fi
c6b750e1 11505
2429c060
PB
11506if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11507 set dummy ar
7e0f7140 11508 if test $build = $target ; then
2429c060 11509 AR_FOR_TARGET="$2"
7e0f7140 11510 else
2429c060 11511 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 11512 fi
d3f5afc4
MS
11513else
11514 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
11515fi
11516
3a35eeb3
PB
11517else
11518 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
11519fi
11520
11521
11522
11523
11524if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11525 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11527$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11528 if test -x $with_build_time_tools/as; then
11529 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11530 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11532$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11533 else
81ecdfbb
RW
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535$as_echo "no" >&6; }
3a35eeb3 11536 fi
2429c060
PB
11537 elif test $build != $host && test $have_gcc_for_target = yes; then
11538 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11539 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11540 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11541 fi
11542fi
c6b750e1 11543if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11544 # Extract the first word of "as", so it can be a program name with args.
11545set dummy as; ac_word=$2
81ecdfbb
RW
11546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11547$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11548if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
81ecdfbb 11549 $as_echo_n "(cached) " >&6
2429c060 11550else
c6b750e1
DJ
11551 case $AS_FOR_TARGET in
11552 [\\/]* | ?:[\\/]*)
2429c060
PB
11553 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11554 ;;
2429c060 11555 *)
c6b750e1
DJ
11556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557for as_dir in $gcc_cv_tool_dirs
11558do
11559 IFS=$as_save_IFS
11560 test -z "$as_dir" && as_dir=.
81ecdfbb 11561 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11563 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11565 break 2
11566 fi
11567done
81ecdfbb
RW
11568 done
11569IFS=$as_save_IFS
c6b750e1 11570
2429c060
PB
11571 ;;
11572esac
11573fi
c6b750e1 11574AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11575if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11577$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11578else
81ecdfbb
RW
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580$as_echo "no" >&6; }
2429c060
PB
11581fi
11582
81ecdfbb 11583
2429c060
PB
11584fi
11585if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11586
11587
11588if test -n "$AS_FOR_TARGET"; then
11589 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11590elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11591 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11592fi
11593
11594if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11595 for ncn_progname in as; do
11596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11597set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11599$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11600if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11601 $as_echo_n "(cached) " >&6
9a819804
AO
11602else
11603 if test -n "$AS_FOR_TARGET"; then
11604 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11605else
11606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607for as_dir in $PATH
11608do
11609 IFS=$as_save_IFS
11610 test -z "$as_dir" && as_dir=.
81ecdfbb 11611 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11613 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11615 break 2
11616 fi
11617done
81ecdfbb
RW
11618 done
11619IFS=$as_save_IFS
9a819804
AO
11620
11621fi
11622fi
11623AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11624if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11626$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11627else
81ecdfbb
RW
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629$as_echo "no" >&6; }
9a819804
AO
11630fi
11631
81ecdfbb 11632
9a819804
AO
11633 done
11634fi
11635
11636if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11637 for ncn_progname in as; do
81ecdfbb
RW
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11639$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11640 if test -x $with_build_time_tools/${ncn_progname}; then
11641 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11643$as_echo "yes" >&6; }
2429c060
PB
11644 break
11645 else
81ecdfbb
RW
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11647$as_echo "no" >&6; }
2429c060
PB
11648 fi
11649 done
11650fi
11651
11652if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11653 for ncn_progname in as; do
11654 if test -n "$ncn_target_tool_prefix"; then
11655 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11656set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11658$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11659if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11660 $as_echo_n "(cached) " >&6
2429c060
PB
11661else
11662 if test -n "$AS_FOR_TARGET"; then
11663 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11664else
c6b750e1
DJ
11665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666for as_dir in $PATH
11667do
11668 IFS=$as_save_IFS
11669 test -z "$as_dir" && as_dir=.
81ecdfbb 11670 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11672 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11674 break 2
11675 fi
11676done
81ecdfbb
RW
11677 done
11678IFS=$as_save_IFS
c6b750e1 11679
2429c060
PB
11680fi
11681fi
c6b750e1 11682AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11683if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11685$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11686else
81ecdfbb
RW
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688$as_echo "no" >&6; }
2429c060
PB
11689fi
11690
81ecdfbb 11691
2429c060
PB
11692 fi
11693 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11695set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11697$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11698if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11699 $as_echo_n "(cached) " >&6
2429c060
PB
11700else
11701 if test -n "$AS_FOR_TARGET"; then
11702 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11703else
c6b750e1
DJ
11704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705for as_dir in $PATH
11706do
11707 IFS=$as_save_IFS
11708 test -z "$as_dir" && as_dir=.
81ecdfbb 11709 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11711 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11713 break 2
11714 fi
11715done
81ecdfbb
RW
11716 done
11717IFS=$as_save_IFS
c6b750e1 11718
2429c060
PB
11719fi
11720fi
c6b750e1 11721AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11722if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11724$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11725else
81ecdfbb
RW
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727$as_echo "no" >&6; }
2429c060 11728fi
c6b750e1 11729
81ecdfbb 11730
2429c060
PB
11731 fi
11732 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11733 done
11734fi
c6b750e1 11735
2429c060
PB
11736if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11737 set dummy as
11738 if test $build = $target ; then
11739 AS_FOR_TARGET="$2"
11740 else
11741 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11742 fi
d3f5afc4
MS
11743else
11744 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11745fi
11746
3a35eeb3
PB
11747else
11748 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11749fi
11750
11751
11752
11753
11754if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11755 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11757$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11758 if test -x $with_build_time_tools/dlltool; then
11759 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11760 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11762$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11763 else
81ecdfbb
RW
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765$as_echo "no" >&6; }
3a35eeb3 11766 fi
2429c060
PB
11767 elif test $build != $host && test $have_gcc_for_target = yes; then
11768 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11769 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11770 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11771 fi
11772fi
c6b750e1 11773if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11774 # Extract the first word of "dlltool", so it can be a program name with args.
11775set dummy dlltool; ac_word=$2
81ecdfbb
RW
11776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11777$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11778if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11779 $as_echo_n "(cached) " >&6
2429c060 11780else
c6b750e1
DJ
11781 case $DLLTOOL_FOR_TARGET in
11782 [\\/]* | ?:[\\/]*)
2429c060
PB
11783 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11784 ;;
2429c060 11785 *)
c6b750e1
DJ
11786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11787for as_dir in $gcc_cv_tool_dirs
11788do
11789 IFS=$as_save_IFS
11790 test -z "$as_dir" && as_dir=.
81ecdfbb 11791 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11793 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11795 break 2
11796 fi
11797done
81ecdfbb
RW
11798 done
11799IFS=$as_save_IFS
c6b750e1 11800
2429c060
PB
11801 ;;
11802esac
11803fi
c6b750e1 11804DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11805if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11807$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11808else
81ecdfbb
RW
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810$as_echo "no" >&6; }
2429c060
PB
11811fi
11812
81ecdfbb 11813
2429c060
PB
11814fi
11815if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11816
11817
11818if test -n "$DLLTOOL_FOR_TARGET"; then
11819 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11820elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11821 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11822fi
11823
11824if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11825 for ncn_progname in dlltool; do
11826 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11827set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11829$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11830if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11831 $as_echo_n "(cached) " >&6
9a819804
AO
11832else
11833 if test -n "$DLLTOOL_FOR_TARGET"; then
11834 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11835else
11836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11837for as_dir in $PATH
11838do
11839 IFS=$as_save_IFS
11840 test -z "$as_dir" && as_dir=.
81ecdfbb 11841 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11843 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11845 break 2
11846 fi
11847done
81ecdfbb
RW
11848 done
11849IFS=$as_save_IFS
9a819804
AO
11850
11851fi
11852fi
11853DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11854if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11856$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11857else
81ecdfbb
RW
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11859$as_echo "no" >&6; }
9a819804
AO
11860fi
11861
81ecdfbb 11862
9a819804
AO
11863 done
11864fi
11865
11866if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11867 for ncn_progname in dlltool; do
81ecdfbb
RW
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11869$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11870 if test -x $with_build_time_tools/${ncn_progname}; then
11871 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11873$as_echo "yes" >&6; }
2429c060
PB
11874 break
11875 else
81ecdfbb
RW
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11877$as_echo "no" >&6; }
2429c060
PB
11878 fi
11879 done
11880fi
11881
11882if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11883 for ncn_progname in dlltool; do
11884 if test -n "$ncn_target_tool_prefix"; then
11885 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11886set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11888$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11889if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11890 $as_echo_n "(cached) " >&6
2429c060
PB
11891else
11892 if test -n "$DLLTOOL_FOR_TARGET"; then
11893 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11894else
c6b750e1
DJ
11895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11896for as_dir in $PATH
11897do
11898 IFS=$as_save_IFS
11899 test -z "$as_dir" && as_dir=.
81ecdfbb 11900 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11902 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11904 break 2
11905 fi
11906done
81ecdfbb
RW
11907 done
11908IFS=$as_save_IFS
c6b750e1 11909
2429c060
PB
11910fi
11911fi
c6b750e1 11912DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11913if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11915$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11916else
81ecdfbb
RW
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918$as_echo "no" >&6; }
2429c060
PB
11919fi
11920
81ecdfbb 11921
2429c060
PB
11922 fi
11923 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11924 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11925set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11927$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11928if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11929 $as_echo_n "(cached) " >&6
2429c060
PB
11930else
11931 if test -n "$DLLTOOL_FOR_TARGET"; then
11932 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11933else
c6b750e1
DJ
11934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11935for as_dir in $PATH
11936do
11937 IFS=$as_save_IFS
11938 test -z "$as_dir" && as_dir=.
81ecdfbb 11939 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11941 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11943 break 2
11944 fi
11945done
81ecdfbb
RW
11946 done
11947IFS=$as_save_IFS
c6b750e1 11948
2429c060
PB
11949fi
11950fi
c6b750e1 11951DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11952if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11954$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11955else
81ecdfbb
RW
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11957$as_echo "no" >&6; }
2429c060 11958fi
c6b750e1 11959
81ecdfbb 11960
2429c060
PB
11961 fi
11962 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11963 done
11964fi
c6b750e1 11965
2429c060
PB
11966if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11967 set dummy dlltool
11968 if test $build = $target ; then
11969 DLLTOOL_FOR_TARGET="$2"
11970 else
11971 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11972 fi
d3f5afc4
MS
11973else
11974 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11975fi
11976
3a35eeb3
PB
11977else
11978 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11979fi
11980
11981
11982
11983
11984if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11985 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11987$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11988 if test -x $with_build_time_tools/ld; then
11989 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11990 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11992$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11993 else
81ecdfbb
RW
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995$as_echo "no" >&6; }
3a35eeb3 11996 fi
2429c060
PB
11997 elif test $build != $host && test $have_gcc_for_target = yes; then
11998 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11999 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
12000 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
12001 fi
12002fi
c6b750e1 12003if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12004 # Extract the first word of "ld", so it can be a program name with args.
12005set dummy ld; ac_word=$2
81ecdfbb
RW
12006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12007$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12008if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
81ecdfbb 12009 $as_echo_n "(cached) " >&6
2429c060 12010else
c6b750e1
DJ
12011 case $LD_FOR_TARGET in
12012 [\\/]* | ?:[\\/]*)
2429c060
PB
12013 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
12014 ;;
2429c060 12015 *)
c6b750e1
DJ
12016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12017for as_dir in $gcc_cv_tool_dirs
12018do
12019 IFS=$as_save_IFS
12020 test -z "$as_dir" && as_dir=.
81ecdfbb 12021 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12023 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12025 break 2
12026 fi
12027done
81ecdfbb
RW
12028 done
12029IFS=$as_save_IFS
c6b750e1 12030
2429c060
PB
12031 ;;
12032esac
12033fi
c6b750e1 12034LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 12035if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12037$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 12038else
81ecdfbb
RW
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040$as_echo "no" >&6; }
2429c060
PB
12041fi
12042
81ecdfbb 12043
2429c060
PB
12044fi
12045if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
12046
12047
12048if test -n "$LD_FOR_TARGET"; then
12049 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
12050elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12051 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12052fi
12053
12054if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12055 for ncn_progname in ld; do
12056 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12057set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12059$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12060if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 12061 $as_echo_n "(cached) " >&6
9a819804
AO
12062else
12063 if test -n "$LD_FOR_TARGET"; then
12064 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12065else
12066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12067for as_dir in $PATH
12068do
12069 IFS=$as_save_IFS
12070 test -z "$as_dir" && as_dir=.
81ecdfbb 12071 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12073 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 12074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12075 break 2
12076 fi
12077done
81ecdfbb
RW
12078 done
12079IFS=$as_save_IFS
9a819804
AO
12080
12081fi
12082fi
12083LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12084if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12086$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 12087else
81ecdfbb
RW
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12089$as_echo "no" >&6; }
9a819804
AO
12090fi
12091
81ecdfbb 12092
9a819804
AO
12093 done
12094fi
12095
12096if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12097 for ncn_progname in ld; do
81ecdfbb
RW
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12099$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12100 if test -x $with_build_time_tools/${ncn_progname}; then
12101 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12103$as_echo "yes" >&6; }
2429c060
PB
12104 break
12105 else
81ecdfbb
RW
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107$as_echo "no" >&6; }
2429c060
PB
12108 fi
12109 done
12110fi
12111
12112if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12113 for ncn_progname in ld; do
12114 if test -n "$ncn_target_tool_prefix"; then
12115 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12116set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12118$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12119if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 12120 $as_echo_n "(cached) " >&6
2429c060
PB
12121else
12122 if test -n "$LD_FOR_TARGET"; then
12123 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12124else
c6b750e1
DJ
12125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12126for as_dir in $PATH
12127do
12128 IFS=$as_save_IFS
12129 test -z "$as_dir" && as_dir=.
81ecdfbb 12130 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12132 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12134 break 2
12135 fi
12136done
81ecdfbb
RW
12137 done
12138IFS=$as_save_IFS
c6b750e1 12139
2429c060
PB
12140fi
12141fi
c6b750e1 12142LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 12143if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12145$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 12146else
81ecdfbb
RW
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12148$as_echo "no" >&6; }
2429c060
PB
12149fi
12150
81ecdfbb 12151
2429c060
PB
12152 fi
12153 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12154 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12155set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12157$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12158if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 12159 $as_echo_n "(cached) " >&6
2429c060
PB
12160else
12161 if test -n "$LD_FOR_TARGET"; then
12162 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12163else
c6b750e1
DJ
12164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12165for as_dir in $PATH
12166do
12167 IFS=$as_save_IFS
12168 test -z "$as_dir" && as_dir=.
81ecdfbb 12169 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12171 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 12172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12173 break 2
12174 fi
12175done
81ecdfbb
RW
12176 done
12177IFS=$as_save_IFS
c6b750e1 12178
2429c060
PB
12179fi
12180fi
c6b750e1 12181LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 12182if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12184$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 12185else
81ecdfbb
RW
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12187$as_echo "no" >&6; }
2429c060 12188fi
c6b750e1 12189
81ecdfbb 12190
2429c060
PB
12191 fi
12192 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12193 done
12194fi
c6b750e1 12195
2429c060
PB
12196if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12197 set dummy ld
12198 if test $build = $target ; then
12199 LD_FOR_TARGET="$2"
12200 else
12201 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12202 fi
d3f5afc4
MS
12203else
12204 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
12205fi
12206
3a35eeb3
PB
12207else
12208 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
12209fi
12210
12211
12212
12213
12214if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12215 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12217$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12218 if test -x $with_build_time_tools/lipo; then
12219 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12220 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12222$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 12223 else
81ecdfbb
RW
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225$as_echo "no" >&6; }
3a35eeb3 12226 fi
2429c060
PB
12227 elif test $build != $host && test $have_gcc_for_target = yes; then
12228 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
12229 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12230 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
12231 fi
12232fi
9a819804
AO
12233if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12234 # Extract the first word of "lipo", so it can be a program name with args.
12235set dummy lipo; ac_word=$2
81ecdfbb
RW
12236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12238if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12239 $as_echo_n "(cached) " >&6
9a819804
AO
12240else
12241 case $LIPO_FOR_TARGET in
12242 [\\/]* | ?:[\\/]*)
12243 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12244 ;;
12245 *)
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247for as_dir in $gcc_cv_tool_dirs
12248do
12249 IFS=$as_save_IFS
12250 test -z "$as_dir" && as_dir=.
81ecdfbb 12251 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12253 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12255 break 2
12256 fi
12257done
81ecdfbb
RW
12258 done
12259IFS=$as_save_IFS
9a819804
AO
12260
12261 ;;
12262esac
12263fi
12264LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 12265if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12267$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 12268else
81ecdfbb
RW
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270$as_echo "no" >&6; }
9a819804
AO
12271fi
12272
81ecdfbb 12273
9a819804
AO
12274fi
12275if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12276
12277
12278if test -n "$LIPO_FOR_TARGET"; then
12279 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12280elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12281 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12282fi
12283
12284if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12285 for ncn_progname in lipo; do
12286 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12287set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12289$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12290if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12291 $as_echo_n "(cached) " >&6
2429c060 12292else
9a819804
AO
12293 if test -n "$LIPO_FOR_TARGET"; then
12294 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12295else
12296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12297for as_dir in $PATH
c6b750e1
DJ
12298do
12299 IFS=$as_save_IFS
12300 test -z "$as_dir" && as_dir=.
81ecdfbb 12301 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12303 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 12304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12305 break 2
12306 fi
12307done
81ecdfbb
RW
12308 done
12309IFS=$as_save_IFS
c6b750e1 12310
2429c060 12311fi
9a819804
AO
12312fi
12313LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12314if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12316$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12317else
81ecdfbb
RW
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12319$as_echo "no" >&6; }
2429c060
PB
12320fi
12321
81ecdfbb 12322
9a819804 12323 done
2429c060 12324fi
9a819804
AO
12325
12326if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12327 for ncn_progname in lipo; do
81ecdfbb
RW
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12329$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12330 if test -x $with_build_time_tools/${ncn_progname}; then
12331 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12333$as_echo "yes" >&6; }
2429c060
PB
12334 break
12335 else
81ecdfbb
RW
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337$as_echo "no" >&6; }
2429c060
PB
12338 fi
12339 done
12340fi
12341
12342if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12343 for ncn_progname in lipo; do
12344 if test -n "$ncn_target_tool_prefix"; then
12345 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12346set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12348$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12349if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12350 $as_echo_n "(cached) " >&6
2429c060
PB
12351else
12352 if test -n "$LIPO_FOR_TARGET"; then
12353 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12354else
c6b750e1
DJ
12355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356for as_dir in $PATH
12357do
12358 IFS=$as_save_IFS
12359 test -z "$as_dir" && as_dir=.
81ecdfbb 12360 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12362 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12364 break 2
12365 fi
12366done
81ecdfbb
RW
12367 done
12368IFS=$as_save_IFS
c6b750e1 12369
2429c060
PB
12370fi
12371fi
c6b750e1 12372LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12373if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12375$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12376else
81ecdfbb
RW
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378$as_echo "no" >&6; }
2429c060
PB
12379fi
12380
81ecdfbb 12381
2429c060
PB
12382 fi
12383 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12384 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12385set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12387$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12388if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12389 $as_echo_n "(cached) " >&6
2429c060
PB
12390else
12391 if test -n "$LIPO_FOR_TARGET"; then
12392 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12393else
c6b750e1
DJ
12394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12395for as_dir in $PATH
12396do
12397 IFS=$as_save_IFS
12398 test -z "$as_dir" && as_dir=.
81ecdfbb 12399 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12401 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 12402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12403 break 2
12404 fi
12405done
81ecdfbb
RW
12406 done
12407IFS=$as_save_IFS
c6b750e1 12408
2429c060
PB
12409fi
12410fi
c6b750e1 12411LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12412if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12414$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12415else
81ecdfbb
RW
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12417$as_echo "no" >&6; }
2429c060 12418fi
c6b750e1 12419
81ecdfbb 12420
2429c060
PB
12421 fi
12422 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12423 done
12424fi
c6b750e1 12425
2429c060
PB
12426if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12427 set dummy lipo
12428 if test $build = $target ; then
12429 LIPO_FOR_TARGET="$2"
12430 else
12431 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12432 fi
d3f5afc4
MS
12433else
12434 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
12435fi
12436
3a35eeb3
PB
12437else
12438 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
12439fi
12440
12441
12442
12443
12444if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12445 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12447$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12448 if test -x $with_build_time_tools/nm; then
12449 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12450 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12452$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 12453 else
81ecdfbb
RW
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12455$as_echo "no" >&6; }
3a35eeb3 12456 fi
2429c060
PB
12457 elif test $build != $host && test $have_gcc_for_target = yes; then
12458 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
12459 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12460 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
12461 fi
12462fi
c6b750e1 12463if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12464 # Extract the first word of "nm", so it can be a program name with args.
12465set dummy nm; ac_word=$2
81ecdfbb
RW
12466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12467$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12468if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
81ecdfbb 12469 $as_echo_n "(cached) " >&6
2429c060 12470else
c6b750e1
DJ
12471 case $NM_FOR_TARGET in
12472 [\\/]* | ?:[\\/]*)
2429c060
PB
12473 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12474 ;;
2429c060 12475 *)
c6b750e1
DJ
12476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477for as_dir in $gcc_cv_tool_dirs
12478do
12479 IFS=$as_save_IFS
12480 test -z "$as_dir" && as_dir=.
81ecdfbb 12481 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12483 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12485 break 2
12486 fi
12487done
81ecdfbb
RW
12488 done
12489IFS=$as_save_IFS
c6b750e1 12490
2429c060
PB
12491 ;;
12492esac
12493fi
c6b750e1 12494NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 12495if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12497$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 12498else
81ecdfbb
RW
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12500$as_echo "no" >&6; }
2429c060
PB
12501fi
12502
81ecdfbb 12503
2429c060
PB
12504fi
12505if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
12506
12507
12508if test -n "$NM_FOR_TARGET"; then
12509 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12510elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12511 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12512fi
12513
12514if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12515 for ncn_progname in nm; do
12516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12517set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12519$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12520if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12521 $as_echo_n "(cached) " >&6
9a819804
AO
12522else
12523 if test -n "$NM_FOR_TARGET"; then
12524 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12525else
12526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12527for as_dir in $PATH
12528do
12529 IFS=$as_save_IFS
12530 test -z "$as_dir" && as_dir=.
81ecdfbb 12531 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12533 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12535 break 2
12536 fi
12537done
81ecdfbb
RW
12538 done
12539IFS=$as_save_IFS
9a819804
AO
12540
12541fi
12542fi
12543NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12544if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12546$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12547else
81ecdfbb
RW
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549$as_echo "no" >&6; }
9a819804
AO
12550fi
12551
81ecdfbb 12552
9a819804
AO
12553 done
12554fi
12555
12556if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12557 for ncn_progname in nm; do
81ecdfbb
RW
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12559$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12560 if test -x $with_build_time_tools/${ncn_progname}; then
12561 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12563$as_echo "yes" >&6; }
2429c060
PB
12564 break
12565 else
81ecdfbb
RW
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567$as_echo "no" >&6; }
2429c060
PB
12568 fi
12569 done
12570fi
12571
12572if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12573 for ncn_progname in nm; do
12574 if test -n "$ncn_target_tool_prefix"; then
12575 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12576set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12578$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12579if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12580 $as_echo_n "(cached) " >&6
859789af 12581else
55db4b87
PB
12582 if test -n "$NM_FOR_TARGET"; then
12583 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12584else
c6b750e1
DJ
12585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12586for as_dir in $PATH
12587do
12588 IFS=$as_save_IFS
12589 test -z "$as_dir" && as_dir=.
81ecdfbb 12590 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12592 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12594 break 2
12595 fi
12596done
81ecdfbb
RW
12597 done
12598IFS=$as_save_IFS
c6b750e1 12599
859789af
AC
12600fi
12601fi
c6b750e1 12602NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12603if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12605$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12606else
81ecdfbb
RW
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608$as_echo "no" >&6; }
859789af
AC
12609fi
12610
81ecdfbb 12611
2429c060
PB
12612 fi
12613 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12615set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12617$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12618if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12619 $as_echo_n "(cached) " >&6
859789af 12620else
05cbd757
PB
12621 if test -n "$NM_FOR_TARGET"; then
12622 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12623else
c6b750e1
DJ
12624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625for as_dir in $PATH
12626do
12627 IFS=$as_save_IFS
12628 test -z "$as_dir" && as_dir=.
81ecdfbb 12629 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12631 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12633 break 2
12634 fi
12635done
81ecdfbb
RW
12636 done
12637IFS=$as_save_IFS
c6b750e1 12638
859789af
AC
12639fi
12640fi
c6b750e1 12641NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12642if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12644$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12645else
81ecdfbb
RW
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647$as_echo "no" >&6; }
859789af 12648fi
c6b750e1 12649
81ecdfbb 12650
2429c060
PB
12651 fi
12652 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12653 done
12654fi
c6b750e1 12655
05cbd757
PB
12656if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12657 set dummy nm
12658 if test $build = $target ; then
12659 NM_FOR_TARGET="$2"
859789af 12660 else
05cbd757 12661 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12662 fi
d3f5afc4
MS
12663else
12664 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12665fi
12666
3a35eeb3
PB
12667else
12668 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12669fi
12670
12671
12672
12673
6b91c541
AP
12674if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12675 if test -n "$with_build_time_tools"; then
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12677$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12678 if test -x $with_build_time_tools/objcopy; then
12679 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12680 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12682$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12683 else
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685$as_echo "no" >&6; }
12686 fi
12687 elif test $build != $host && test $have_gcc_for_target = yes; then
12688 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12689 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12690 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12691 fi
12692fi
12693if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12694 # Extract the first word of "objcopy", so it can be a program name with args.
12695set dummy objcopy; ac_word=$2
12696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12697$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12698if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12699 $as_echo_n "(cached) " >&6
12700else
12701 case $OBJCOPY_FOR_TARGET in
12702 [\\/]* | ?:[\\/]*)
12703 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12704 ;;
12705 *)
12706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12707for as_dir in $gcc_cv_tool_dirs
12708do
12709 IFS=$as_save_IFS
12710 test -z "$as_dir" && as_dir=.
12711 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12713 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12715 break 2
12716 fi
12717done
12718 done
12719IFS=$as_save_IFS
12720
12721 ;;
12722esac
12723fi
12724OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12725if test -n "$OBJCOPY_FOR_TARGET"; then
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12727$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12728else
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730$as_echo "no" >&6; }
12731fi
12732
12733
12734fi
12735if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12736
12737
12738if test -n "$OBJCOPY_FOR_TARGET"; then
12739 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12740elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12741 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12742fi
12743
12744if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12745 for ncn_progname in objcopy; do
12746 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12747set dummy ${ncn_progname}; ac_word=$2
12748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12749$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12750if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12751 $as_echo_n "(cached) " >&6
12752else
12753 if test -n "$OBJCOPY_FOR_TARGET"; then
12754 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12755else
12756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12757for as_dir in $PATH
12758do
12759 IFS=$as_save_IFS
12760 test -z "$as_dir" && as_dir=.
12761 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12763 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12765 break 2
12766 fi
12767done
12768 done
12769IFS=$as_save_IFS
12770
12771fi
12772fi
12773OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12774if test -n "$OBJCOPY_FOR_TARGET"; then
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12776$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12777else
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12779$as_echo "no" >&6; }
12780fi
12781
12782
12783 done
12784fi
12785
12786if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12787 for ncn_progname in objcopy; do
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12789$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12790 if test -x $with_build_time_tools/${ncn_progname}; then
12791 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12793$as_echo "yes" >&6; }
12794 break
12795 else
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12797$as_echo "no" >&6; }
12798 fi
12799 done
12800fi
12801
12802if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12803 for ncn_progname in objcopy; do
12804 if test -n "$ncn_target_tool_prefix"; then
12805 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12806set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12808$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12809if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12810 $as_echo_n "(cached) " >&6
12811else
12812 if test -n "$OBJCOPY_FOR_TARGET"; then
12813 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12814else
12815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12816for as_dir in $PATH
12817do
12818 IFS=$as_save_IFS
12819 test -z "$as_dir" && as_dir=.
12820 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12822 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12824 break 2
12825 fi
12826done
12827 done
12828IFS=$as_save_IFS
12829
12830fi
12831fi
12832OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12833if test -n "$OBJCOPY_FOR_TARGET"; then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12835$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12836else
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838$as_echo "no" >&6; }
12839fi
12840
12841
12842 fi
12843 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12844 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12845set dummy ${ncn_progname}; ac_word=$2
12846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12847$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12848if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12849 $as_echo_n "(cached) " >&6
12850else
12851 if test -n "$OBJCOPY_FOR_TARGET"; then
12852 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12853else
12854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12855for as_dir in $PATH
12856do
12857 IFS=$as_save_IFS
12858 test -z "$as_dir" && as_dir=.
12859 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12861 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12863 break 2
12864 fi
12865done
12866 done
12867IFS=$as_save_IFS
12868
12869fi
12870fi
12871OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12872if test -n "$OBJCOPY_FOR_TARGET"; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12874$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12875else
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877$as_echo "no" >&6; }
12878fi
12879
12880
12881 fi
12882 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12883 done
12884fi
12885
12886if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12887 set dummy objcopy
12888 if test $build = $target ; then
12889 OBJCOPY_FOR_TARGET="$2"
12890 else
12891 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12892 fi
12893else
12894 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12895fi
12896
12897else
12898 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12899fi
12900
12901
12902
12903
2429c060
PB
12904if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12905 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12907$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12908 if test -x $with_build_time_tools/objdump; then
12909 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12910 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12912$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12913 else
81ecdfbb
RW
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12915$as_echo "no" >&6; }
3a35eeb3 12916 fi
2429c060
PB
12917 elif test $build != $host && test $have_gcc_for_target = yes; then
12918 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12919 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12920 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12921 fi
12922fi
c6b750e1 12923if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12924 # Extract the first word of "objdump", so it can be a program name with args.
12925set dummy objdump; ac_word=$2
81ecdfbb
RW
12926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12927$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12928if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12929 $as_echo_n "(cached) " >&6
2429c060 12930else
c6b750e1
DJ
12931 case $OBJDUMP_FOR_TARGET in
12932 [\\/]* | ?:[\\/]*)
2429c060
PB
12933 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12934 ;;
2429c060 12935 *)
c6b750e1
DJ
12936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12937for as_dir in $gcc_cv_tool_dirs
12938do
12939 IFS=$as_save_IFS
12940 test -z "$as_dir" && as_dir=.
81ecdfbb 12941 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12943 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12945 break 2
12946 fi
12947done
81ecdfbb
RW
12948 done
12949IFS=$as_save_IFS
c6b750e1 12950
2429c060
PB
12951 ;;
12952esac
12953fi
c6b750e1 12954OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12955if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12957$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12958else
81ecdfbb
RW
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960$as_echo "no" >&6; }
2429c060
PB
12961fi
12962
81ecdfbb 12963
2429c060
PB
12964fi
12965if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12966
12967
12968if test -n "$OBJDUMP_FOR_TARGET"; then
12969 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12970elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12971 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12972fi
12973
12974if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12975 for ncn_progname in objdump; do
12976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12977set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12979$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12980if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12981 $as_echo_n "(cached) " >&6
9a819804
AO
12982else
12983 if test -n "$OBJDUMP_FOR_TARGET"; then
12984 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12985else
12986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12987for as_dir in $PATH
12988do
12989 IFS=$as_save_IFS
12990 test -z "$as_dir" && as_dir=.
81ecdfbb 12991 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12993 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12995 break 2
12996 fi
12997done
81ecdfbb
RW
12998 done
12999IFS=$as_save_IFS
9a819804
AO
13000
13001fi
13002fi
13003OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13004if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13006$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 13007else
81ecdfbb
RW
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13009$as_echo "no" >&6; }
9a819804
AO
13010fi
13011
81ecdfbb 13012
9a819804
AO
13013 done
13014fi
13015
13016if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13017 for ncn_progname in objdump; do
81ecdfbb
RW
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13019$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13020 if test -x $with_build_time_tools/${ncn_progname}; then
13021 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13023$as_echo "yes" >&6; }
2429c060
PB
13024 break
13025 else
81ecdfbb
RW
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027$as_echo "no" >&6; }
2429c060
PB
13028 fi
13029 done
13030fi
13031
13032if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13033 for ncn_progname in objdump; do
13034 if test -n "$ncn_target_tool_prefix"; then
13035 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13036set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13038$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13039if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 13040 $as_echo_n "(cached) " >&6
5ae72758
DJ
13041else
13042 if test -n "$OBJDUMP_FOR_TARGET"; then
13043 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13044else
c6b750e1
DJ
13045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13046for as_dir in $PATH
13047do
13048 IFS=$as_save_IFS
13049 test -z "$as_dir" && as_dir=.
81ecdfbb 13050 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13052 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13054 break 2
13055 fi
13056done
81ecdfbb
RW
13057 done
13058IFS=$as_save_IFS
c6b750e1 13059
5ae72758
DJ
13060fi
13061fi
c6b750e1 13062OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 13063if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13065$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 13066else
81ecdfbb
RW
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068$as_echo "no" >&6; }
5ae72758
DJ
13069fi
13070
81ecdfbb 13071
2429c060
PB
13072 fi
13073 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
13074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 13075set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13077$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13078if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 13079 $as_echo_n "(cached) " >&6
5ae72758
DJ
13080else
13081 if test -n "$OBJDUMP_FOR_TARGET"; then
13082 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13083else
c6b750e1
DJ
13084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13085for as_dir in $PATH
13086do
13087 IFS=$as_save_IFS
13088 test -z "$as_dir" && as_dir=.
81ecdfbb 13089 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13091 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13093 break 2
13094 fi
13095done
81ecdfbb
RW
13096 done
13097IFS=$as_save_IFS
c6b750e1 13098
5ae72758
DJ
13099fi
13100fi
c6b750e1 13101OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 13102if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13104$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 13105else
81ecdfbb
RW
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13107$as_echo "no" >&6; }
5ae72758 13108fi
c6b750e1 13109
81ecdfbb 13110
2429c060
PB
13111 fi
13112 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
13113 done
13114fi
c6b750e1 13115
5ae72758
DJ
13116if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
13117 set dummy objdump
13118 if test $build = $target ; then
13119 OBJDUMP_FOR_TARGET="$2"
13120 else
13121 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13122 fi
d3f5afc4
MS
13123else
13124 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
13125fi
13126
3a35eeb3
PB
13127else
13128 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
13129fi
13130
13131
13132
13133
13134if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13135 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13137$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13138 if test -x $with_build_time_tools/ranlib; then
13139 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13140 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13142$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 13143 else
81ecdfbb
RW
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13145$as_echo "no" >&6; }
3a35eeb3 13146 fi
2429c060
PB
13147 elif test $build != $host && test $have_gcc_for_target = yes; then
13148 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
13149 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13150 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
13151 fi
13152fi
c6b750e1 13153if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13154 # Extract the first word of "ranlib", so it can be a program name with args.
13155set dummy ranlib; ac_word=$2
81ecdfbb
RW
13156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13157$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13158if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 13159 $as_echo_n "(cached) " >&6
2429c060 13160else
c6b750e1
DJ
13161 case $RANLIB_FOR_TARGET in
13162 [\\/]* | ?:[\\/]*)
2429c060
PB
13163 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13164 ;;
2429c060 13165 *)
c6b750e1
DJ
13166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167for as_dir in $gcc_cv_tool_dirs
13168do
13169 IFS=$as_save_IFS
13170 test -z "$as_dir" && as_dir=.
81ecdfbb 13171 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13173 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13175 break 2
13176 fi
13177done
81ecdfbb
RW
13178 done
13179IFS=$as_save_IFS
c6b750e1 13180
2429c060
PB
13181 ;;
13182esac
13183fi
c6b750e1 13184RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 13185if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13187$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 13188else
81ecdfbb
RW
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190$as_echo "no" >&6; }
2429c060
PB
13191fi
13192
81ecdfbb 13193
2429c060
PB
13194fi
13195if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
13196
13197
13198if test -n "$RANLIB_FOR_TARGET"; then
13199 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13200elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13201 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13202fi
13203
13204if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13205 for ncn_progname in ranlib; do
13206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13207set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13209$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13210if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 13211 $as_echo_n "(cached) " >&6
9a819804
AO
13212else
13213 if test -n "$RANLIB_FOR_TARGET"; then
13214 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13215else
13216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13217for as_dir in $PATH
13218do
13219 IFS=$as_save_IFS
13220 test -z "$as_dir" && as_dir=.
81ecdfbb 13221 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13223 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 13224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13225 break 2
13226 fi
13227done
81ecdfbb
RW
13228 done
13229IFS=$as_save_IFS
9a819804
AO
13230
13231fi
13232fi
13233RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13234if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13236$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 13237else
81ecdfbb
RW
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13239$as_echo "no" >&6; }
9a819804
AO
13240fi
13241
81ecdfbb 13242
9a819804
AO
13243 done
13244fi
13245
13246if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13247 for ncn_progname in ranlib; do
81ecdfbb
RW
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13249$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13250 if test -x $with_build_time_tools/${ncn_progname}; then
13251 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13253$as_echo "yes" >&6; }
2429c060
PB
13254 break
13255 else
81ecdfbb
RW
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13257$as_echo "no" >&6; }
2429c060
PB
13258 fi
13259 done
13260fi
13261
13262if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13263 for ncn_progname in ranlib; do
13264 if test -n "$ncn_target_tool_prefix"; then
13265 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 13266set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13268$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13269if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 13270 $as_echo_n "(cached) " >&6
859789af 13271else
55db4b87
PB
13272 if test -n "$RANLIB_FOR_TARGET"; then
13273 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 13274else
c6b750e1
DJ
13275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13276for as_dir in $PATH
13277do
13278 IFS=$as_save_IFS
13279 test -z "$as_dir" && as_dir=.
81ecdfbb 13280 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13282 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13284 break 2
13285 fi
13286done
81ecdfbb
RW
13287 done
13288IFS=$as_save_IFS
c6b750e1 13289
859789af
AC
13290fi
13291fi
c6b750e1 13292RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 13293if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13295$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 13296else
81ecdfbb
RW
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298$as_echo "no" >&6; }
859789af
AC
13299fi
13300
81ecdfbb 13301
2429c060
PB
13302 fi
13303 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13304 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13305set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13307$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13308if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 13309 $as_echo_n "(cached) " >&6
859789af 13310else
05cbd757
PB
13311 if test -n "$RANLIB_FOR_TARGET"; then
13312 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 13313else
c6b750e1
DJ
13314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13315for as_dir in $PATH
13316do
13317 IFS=$as_save_IFS
13318 test -z "$as_dir" && as_dir=.
81ecdfbb 13319 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13321 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 13322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13323 break 2
13324 fi
13325done
81ecdfbb
RW
13326 done
13327IFS=$as_save_IFS
c6b750e1 13328
859789af
AC
13329fi
13330fi
c6b750e1 13331RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 13332if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13334$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 13335else
81ecdfbb
RW
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13337$as_echo "no" >&6; }
859789af 13338fi
c6b750e1 13339
81ecdfbb 13340
2429c060
PB
13341 fi
13342 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13343 done
13344fi
c6b750e1 13345
2429c060
PB
13346if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13347 set dummy ranlib
13348 if test $build = $target ; then
13349 RANLIB_FOR_TARGET="$2"
13350 else
13351 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13352 fi
d3f5afc4
MS
13353else
13354 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 13355fi
05cbd757 13356
3a35eeb3
PB
13357else
13358 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
13359fi
13360
2429c060
PB
13361
13362
13363
b121d7d4
DD
13364if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13365 if test -n "$with_build_time_tools"; then
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13367$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13368 if test -x $with_build_time_tools/readelf; then
13369 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13370 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13372$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13373 else
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375$as_echo "no" >&6; }
13376 fi
13377 elif test $build != $host && test $have_gcc_for_target = yes; then
13378 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13379 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13380 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13381 fi
13382fi
13383if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13384 # Extract the first word of "readelf", so it can be a program name with args.
13385set dummy readelf; ac_word=$2
13386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13387$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13388if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13389 $as_echo_n "(cached) " >&6
13390else
13391 case $READELF_FOR_TARGET in
13392 [\\/]* | ?:[\\/]*)
13393 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13394 ;;
13395 *)
13396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13397for as_dir in $gcc_cv_tool_dirs
13398do
13399 IFS=$as_save_IFS
13400 test -z "$as_dir" && as_dir=.
13401 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13403 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13405 break 2
13406 fi
13407done
13408 done
13409IFS=$as_save_IFS
13410
13411 ;;
13412esac
13413fi
13414READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13415if test -n "$READELF_FOR_TARGET"; then
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13417$as_echo "$READELF_FOR_TARGET" >&6; }
13418else
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13420$as_echo "no" >&6; }
13421fi
13422
13423
13424fi
13425if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13426
13427
13428if test -n "$READELF_FOR_TARGET"; then
13429 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13430elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13431 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13432fi
13433
13434if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13435 for ncn_progname in readelf; do
13436 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13437set dummy ${ncn_progname}; ac_word=$2
13438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13439$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13440if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13441 $as_echo_n "(cached) " >&6
13442else
13443 if test -n "$READELF_FOR_TARGET"; then
13444 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13445else
13446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13447for as_dir in $PATH
13448do
13449 IFS=$as_save_IFS
13450 test -z "$as_dir" && as_dir=.
13451 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13453 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13455 break 2
13456 fi
13457done
13458 done
13459IFS=$as_save_IFS
13460
13461fi
13462fi
13463READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13464if test -n "$READELF_FOR_TARGET"; then
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13466$as_echo "$READELF_FOR_TARGET" >&6; }
13467else
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13469$as_echo "no" >&6; }
13470fi
13471
13472
13473 done
13474fi
13475
13476if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13477 for ncn_progname in readelf; do
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13479$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13480 if test -x $with_build_time_tools/${ncn_progname}; then
13481 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13483$as_echo "yes" >&6; }
13484 break
13485 else
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13487$as_echo "no" >&6; }
13488 fi
13489 done
13490fi
13491
13492if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13493 for ncn_progname in readelf; do
13494 if test -n "$ncn_target_tool_prefix"; then
13495 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13496set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13498$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13499if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13500 $as_echo_n "(cached) " >&6
13501else
13502 if test -n "$READELF_FOR_TARGET"; then
13503 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13504else
13505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13506for as_dir in $PATH
13507do
13508 IFS=$as_save_IFS
13509 test -z "$as_dir" && as_dir=.
13510 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13512 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13514 break 2
13515 fi
13516done
13517 done
13518IFS=$as_save_IFS
13519
13520fi
13521fi
13522READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13523if test -n "$READELF_FOR_TARGET"; then
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13525$as_echo "$READELF_FOR_TARGET" >&6; }
13526else
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13528$as_echo "no" >&6; }
13529fi
13530
13531
13532 fi
13533 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13535set dummy ${ncn_progname}; ac_word=$2
13536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13537$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13538if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13539 $as_echo_n "(cached) " >&6
13540else
13541 if test -n "$READELF_FOR_TARGET"; then
13542 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13543else
13544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13545for as_dir in $PATH
13546do
13547 IFS=$as_save_IFS
13548 test -z "$as_dir" && as_dir=.
13549 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13551 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13553 break 2
13554 fi
13555done
13556 done
13557IFS=$as_save_IFS
13558
13559fi
13560fi
13561READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13562if test -n "$READELF_FOR_TARGET"; then
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13564$as_echo "$READELF_FOR_TARGET" >&6; }
13565else
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13567$as_echo "no" >&6; }
13568fi
13569
13570
13571 fi
13572 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13573 done
13574fi
13575
13576if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13577 set dummy readelf
13578 if test $build = $target ; then
13579 READELF_FOR_TARGET="$2"
13580 else
13581 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13582 fi
13583else
13584 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13585fi
13586
13587else
13588 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13589fi
13590
13591
13592
13593
2429c060
PB
13594if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13595 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13597$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13598 if test -x $with_build_time_tools/strip; then
13599 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13600 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13602$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 13603 else
81ecdfbb
RW
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13605$as_echo "no" >&6; }
3a35eeb3 13606 fi
2429c060
PB
13607 elif test $build != $host && test $have_gcc_for_target = yes; then
13608 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
13609 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13610 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
13611 fi
13612fi
c6b750e1 13613if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13614 # Extract the first word of "strip", so it can be a program name with args.
13615set dummy strip; ac_word=$2
81ecdfbb
RW
13616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13617$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13618if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13619 $as_echo_n "(cached) " >&6
2429c060 13620else
c6b750e1
DJ
13621 case $STRIP_FOR_TARGET in
13622 [\\/]* | ?:[\\/]*)
2429c060
PB
13623 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13624 ;;
2429c060 13625 *)
c6b750e1
DJ
13626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627for as_dir in $gcc_cv_tool_dirs
13628do
13629 IFS=$as_save_IFS
13630 test -z "$as_dir" && as_dir=.
81ecdfbb 13631 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13633 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13635 break 2
13636 fi
13637done
81ecdfbb
RW
13638 done
13639IFS=$as_save_IFS
c6b750e1 13640
2429c060
PB
13641 ;;
13642esac
13643fi
c6b750e1 13644STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 13645if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13647$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 13648else
81ecdfbb
RW
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650$as_echo "no" >&6; }
2429c060
PB
13651fi
13652
81ecdfbb 13653
2429c060
PB
13654fi
13655if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
13656
13657
13658if test -n "$STRIP_FOR_TARGET"; then
13659 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13660elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13661 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13662fi
13663
13664if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13665 for ncn_progname in strip; do
13666 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13667set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13669$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13670if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13671 $as_echo_n "(cached) " >&6
9a819804
AO
13672else
13673 if test -n "$STRIP_FOR_TARGET"; then
13674 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13675else
13676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13677for as_dir in $PATH
13678do
13679 IFS=$as_save_IFS
13680 test -z "$as_dir" && as_dir=.
81ecdfbb 13681 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13683 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13685 break 2
13686 fi
13687done
81ecdfbb
RW
13688 done
13689IFS=$as_save_IFS
9a819804
AO
13690
13691fi
13692fi
13693STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13694if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13696$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13697else
81ecdfbb
RW
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13699$as_echo "no" >&6; }
9a819804
AO
13700fi
13701
81ecdfbb 13702
9a819804
AO
13703 done
13704fi
13705
13706if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13707 for ncn_progname in strip; do
81ecdfbb
RW
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13709$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13710 if test -x $with_build_time_tools/${ncn_progname}; then
13711 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13713$as_echo "yes" >&6; }
2429c060
PB
13714 break
13715 else
81ecdfbb
RW
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13717$as_echo "no" >&6; }
2429c060
PB
13718 fi
13719 done
13720fi
13721
13722if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13723 for ncn_progname in strip; do
13724 if test -n "$ncn_target_tool_prefix"; then
13725 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13726set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13728$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13729if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13730 $as_echo_n "(cached) " >&6
7e0f7140
GK
13731else
13732 if test -n "$STRIP_FOR_TARGET"; then
13733 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13734else
13735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13736for as_dir in $PATH
13737do
13738 IFS=$as_save_IFS
13739 test -z "$as_dir" && as_dir=.
81ecdfbb 13740 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13742 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13744 break 2
13745 fi
13746done
81ecdfbb
RW
13747 done
13748IFS=$as_save_IFS
c6b750e1 13749
7e0f7140
GK
13750fi
13751fi
c6b750e1 13752STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13753if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13755$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13756else
81ecdfbb
RW
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13758$as_echo "no" >&6; }
7e0f7140
GK
13759fi
13760
81ecdfbb 13761
2429c060
PB
13762 fi
13763 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13764 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13765set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13767$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13768if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13769 $as_echo_n "(cached) " >&6
7e0f7140
GK
13770else
13771 if test -n "$STRIP_FOR_TARGET"; then
13772 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13773else
c6b750e1
DJ
13774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13775for as_dir in $PATH
13776do
13777 IFS=$as_save_IFS
13778 test -z "$as_dir" && as_dir=.
81ecdfbb 13779 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13781 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13783 break 2
13784 fi
13785done
81ecdfbb
RW
13786 done
13787IFS=$as_save_IFS
c6b750e1 13788
7e0f7140
GK
13789fi
13790fi
c6b750e1 13791STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13792if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13794$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13795else
81ecdfbb
RW
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13797$as_echo "no" >&6; }
7e0f7140 13798fi
c6b750e1 13799
81ecdfbb 13800
2429c060
PB
13801 fi
13802 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13803 done
13804fi
c6b750e1 13805
7e0f7140
GK
13806if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13807 set dummy strip
13808 if test $build = $target ; then
13809 STRIP_FOR_TARGET="$2"
13810 else
13811 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13812 fi
d3f5afc4
MS
13813else
13814 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13815fi
13816
3a35eeb3
PB
13817else
13818 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13819fi
13820
13821
13822
13823
13824if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13825 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13827$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13828 if test -x $with_build_time_tools/windres; then
13829 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13830 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13832$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13833 else
81ecdfbb
RW
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13835$as_echo "no" >&6; }
3a35eeb3 13836 fi
2429c060
PB
13837 elif test $build != $host && test $have_gcc_for_target = yes; then
13838 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13839 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13840 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13841 fi
13842fi
c6b750e1 13843if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13844 # Extract the first word of "windres", so it can be a program name with args.
13845set dummy windres; ac_word=$2
81ecdfbb
RW
13846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13847$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13848if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13849 $as_echo_n "(cached) " >&6
2429c060 13850else
c6b750e1
DJ
13851 case $WINDRES_FOR_TARGET in
13852 [\\/]* | ?:[\\/]*)
2429c060
PB
13853 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13854 ;;
2429c060 13855 *)
c6b750e1
DJ
13856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13857for as_dir in $gcc_cv_tool_dirs
13858do
13859 IFS=$as_save_IFS
13860 test -z "$as_dir" && as_dir=.
81ecdfbb 13861 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13863 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13865 break 2
13866 fi
13867done
81ecdfbb
RW
13868 done
13869IFS=$as_save_IFS
c6b750e1 13870
2429c060
PB
13871 ;;
13872esac
13873fi
c6b750e1 13874WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13875if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13877$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13878else
81ecdfbb
RW
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13880$as_echo "no" >&6; }
2429c060
PB
13881fi
13882
81ecdfbb 13883
2429c060
PB
13884fi
13885if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13886
13887
13888if test -n "$WINDRES_FOR_TARGET"; then
13889 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13890elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13891 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13892fi
13893
13894if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13895 for ncn_progname in windres; do
13896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13897set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13899$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13900if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13901 $as_echo_n "(cached) " >&6
9a819804
AO
13902else
13903 if test -n "$WINDRES_FOR_TARGET"; then
13904 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13905else
13906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13907for as_dir in $PATH
13908do
13909 IFS=$as_save_IFS
13910 test -z "$as_dir" && as_dir=.
81ecdfbb 13911 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13913 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13915 break 2
13916 fi
13917done
81ecdfbb
RW
13918 done
13919IFS=$as_save_IFS
9a819804
AO
13920
13921fi
13922fi
13923WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13924if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13926$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13927else
81ecdfbb
RW
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13929$as_echo "no" >&6; }
9a819804
AO
13930fi
13931
81ecdfbb 13932
9a819804
AO
13933 done
13934fi
13935
13936if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13937 for ncn_progname in windres; do
81ecdfbb
RW
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13939$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13940 if test -x $with_build_time_tools/${ncn_progname}; then
13941 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13943$as_echo "yes" >&6; }
2429c060
PB
13944 break
13945 else
81ecdfbb
RW
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947$as_echo "no" >&6; }
2429c060
PB
13948 fi
13949 done
13950fi
13951
13952if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13953 for ncn_progname in windres; do
13954 if test -n "$ncn_target_tool_prefix"; then
13955 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13956set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13958$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13959if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13960 $as_echo_n "(cached) " >&6
859789af 13961else
55db4b87
PB
13962 if test -n "$WINDRES_FOR_TARGET"; then
13963 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13964else
c6b750e1
DJ
13965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13966for as_dir in $PATH
13967do
13968 IFS=$as_save_IFS
13969 test -z "$as_dir" && as_dir=.
81ecdfbb 13970 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13972 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13974 break 2
13975 fi
13976done
81ecdfbb
RW
13977 done
13978IFS=$as_save_IFS
c6b750e1 13979
859789af
AC
13980fi
13981fi
c6b750e1 13982WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13983if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13985$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13986else
81ecdfbb
RW
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13988$as_echo "no" >&6; }
859789af
AC
13989fi
13990
81ecdfbb 13991
2429c060
PB
13992 fi
13993 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13995set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13997$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13998if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13999 $as_echo_n "(cached) " >&6
859789af 14000else
05cbd757
PB
14001 if test -n "$WINDRES_FOR_TARGET"; then
14002 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 14003else
c6b750e1
DJ
14004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14005for as_dir in $PATH
14006do
14007 IFS=$as_save_IFS
14008 test -z "$as_dir" && as_dir=.
81ecdfbb 14009 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14011 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 14012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14013 break 2
14014 fi
14015done
81ecdfbb
RW
14016 done
14017IFS=$as_save_IFS
c6b750e1 14018
859789af
AC
14019fi
14020fi
c6b750e1 14021WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 14022if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14024$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 14025else
81ecdfbb
RW
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14027$as_echo "no" >&6; }
859789af 14028fi
c6b750e1 14029
81ecdfbb 14030
2429c060
PB
14031 fi
14032 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14033 done
14034fi
c6b750e1 14035
05cbd757
PB
14036if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14037 set dummy windres
14038 if test $build = $target ; then
14039 WINDRES_FOR_TARGET="$2"
859789af 14040 else
05cbd757 14041 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 14042 fi
d3f5afc4
MS
14043else
14044 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
14045fi
14046
3a35eeb3
PB
14047else
14048 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
14049fi
14050
852e5f18 14051
0c24b341
NC
14052
14053
14054if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14055 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14057$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
14058 if test -x $with_build_time_tools/windmc; then
14059 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14060 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14062$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 14063 else
81ecdfbb
RW
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14065$as_echo "no" >&6; }
0c24b341
NC
14066 fi
14067 elif test $build != $host && test $have_gcc_for_target = yes; then
14068 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
14069 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14070 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14071 fi
14072fi
14073if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14074 # Extract the first word of "windmc", so it can be a program name with args.
14075set dummy windmc; ac_word=$2
81ecdfbb
RW
14076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14077$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14078if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 14079 $as_echo_n "(cached) " >&6
0c24b341
NC
14080else
14081 case $WINDMC_FOR_TARGET in
14082 [\\/]* | ?:[\\/]*)
14083 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14084 ;;
14085 *)
14086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14087for as_dir in $gcc_cv_tool_dirs
14088do
14089 IFS=$as_save_IFS
14090 test -z "$as_dir" && as_dir=.
81ecdfbb 14091 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 14093 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 14094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
14095 break 2
14096 fi
14097done
81ecdfbb
RW
14098 done
14099IFS=$as_save_IFS
0c24b341
NC
14100
14101 ;;
14102esac
14103fi
14104WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 14105if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14107$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 14108else
81ecdfbb
RW
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14110$as_echo "no" >&6; }
0c24b341
NC
14111fi
14112
81ecdfbb 14113
0c24b341
NC
14114fi
14115if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14116
14117
14118if test -n "$WINDMC_FOR_TARGET"; then
14119 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14120elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14121 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14122fi
14123
14124if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14125 for ncn_progname in windmc; do
14126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14127set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14129$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14130if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 14131 $as_echo_n "(cached) " >&6
0c24b341
NC
14132else
14133 if test -n "$WINDMC_FOR_TARGET"; then
14134 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14135else
14136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14137for as_dir in $PATH
14138do
14139 IFS=$as_save_IFS
14140 test -z "$as_dir" && as_dir=.
81ecdfbb 14141 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 14143 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 14144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
14145 break 2
14146 fi
14147done
81ecdfbb
RW
14148 done
14149IFS=$as_save_IFS
0c24b341
NC
14150
14151fi
14152fi
14153WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14154if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14156$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 14157else
81ecdfbb
RW
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14159$as_echo "no" >&6; }
0c24b341
NC
14160fi
14161
81ecdfbb 14162
0c24b341
NC
14163 done
14164fi
14165
14166if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14167 for ncn_progname in windmc; do
81ecdfbb
RW
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14169$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
14170 if test -x $with_build_time_tools/${ncn_progname}; then
14171 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14173$as_echo "yes" >&6; }
0c24b341
NC
14174 break
14175 else
81ecdfbb
RW
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14177$as_echo "no" >&6; }
0c24b341
NC
14178 fi
14179 done
14180fi
14181
14182if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14183 for ncn_progname in windmc; do
14184 if test -n "$ncn_target_tool_prefix"; then
14185 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14186set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
14187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14188$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14189if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 14190 $as_echo_n "(cached) " >&6
0c24b341
NC
14191else
14192 if test -n "$WINDMC_FOR_TARGET"; then
14193 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14194else
14195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14196for as_dir in $PATH
14197do
14198 IFS=$as_save_IFS
14199 test -z "$as_dir" && as_dir=.
81ecdfbb 14200 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 14202 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 14203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
14204 break 2
14205 fi
14206done
81ecdfbb
RW
14207 done
14208IFS=$as_save_IFS
0c24b341
NC
14209
14210fi
14211fi
14212WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14213if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14215$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 14216else
81ecdfbb
RW
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14218$as_echo "no" >&6; }
0c24b341
NC
14219fi
14220
81ecdfbb 14221
0c24b341
NC
14222 fi
14223 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14225set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14227$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14228if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 14229 $as_echo_n "(cached) " >&6
0c24b341
NC
14230else
14231 if test -n "$WINDMC_FOR_TARGET"; then
14232 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14233else
14234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235for as_dir in $PATH
14236do
14237 IFS=$as_save_IFS
14238 test -z "$as_dir" && as_dir=.
81ecdfbb 14239 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 14241 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 14242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
14243 break 2
14244 fi
14245done
81ecdfbb
RW
14246 done
14247IFS=$as_save_IFS
0c24b341
NC
14248
14249fi
14250fi
14251WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14252if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14254$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 14255else
81ecdfbb
RW
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257$as_echo "no" >&6; }
0c24b341
NC
14258fi
14259
81ecdfbb 14260
0c24b341
NC
14261 fi
14262 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14263 done
14264fi
14265
14266if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14267 set dummy windmc
14268 if test $build = $target ; then
14269 WINDMC_FOR_TARGET="$2"
14270 else
14271 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14272 fi
14273else
14274 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14275fi
14276
14277else
14278 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14279fi
14280
14281
be01d343
PB
14282RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14283
81ecdfbb
RW
14284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14285$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 14286if test "x${build}" != "x${host}" ; then
2429c060
PB
14287 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14288 # We already found the complete path
b8025f34 14289 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14291$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14292 else
14293 # Canadian cross, just use what we found
81ecdfbb
RW
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14295$as_echo "pre-installed" >&6; }
2429c060 14296 fi
be01d343
PB
14297else
14298 ok=yes
14299 case " ${configdirs} " in
14300 *" binutils "*) ;;
14301 *) ok=no ;;
14302 esac
c6b750e1 14303
be01d343
PB
14304 if test $ok = yes; then
14305 # An in-tree tool is available and we can use it
14306 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14308$as_echo "just compiled" >&6; }
2429c060
PB
14309 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14310 # We already found the complete path
b8025f34 14311 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14313$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14314 elif test "x$target" = "x$host"; then
14315 # We can use an host tool
14316 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14318$as_echo "host tool" >&6; }
be01d343
PB
14319 else
14320 # We need a cross tool
81ecdfbb
RW
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14322$as_echo "pre-installed" >&6; }
be01d343
PB
14323 fi
14324fi
4b900473 14325
81ecdfbb
RW
14326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14327$as_echo_n "checking where to find the target as... " >&6; }
be01d343 14328if test "x${build}" != "x${host}" ; then
2429c060
PB
14329 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14330 # We already found the complete path
b8025f34 14331 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14333$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14334 else
14335 # Canadian cross, just use what we found
81ecdfbb
RW
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14337$as_echo "pre-installed" >&6; }
2429c060 14338 fi
be01d343
PB
14339else
14340 ok=yes
14341 case " ${configdirs} " in
14342 *" gas "*) ;;
14343 *) ok=no ;;
14344 esac
c6b750e1 14345
be01d343
PB
14346 if test $ok = yes; then
14347 # An in-tree tool is available and we can use it
14348 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14350$as_echo "just compiled" >&6; }
2429c060
PB
14351 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14352 # We already found the complete path
b8025f34 14353 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14355$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14356 elif test "x$target" = "x$host"; then
14357 # We can use an host tool
14358 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14360$as_echo "host tool" >&6; }
be01d343
PB
14361 else
14362 # We need a cross tool
81ecdfbb
RW
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14364$as_echo "pre-installed" >&6; }
be01d343
PB
14365 fi
14366fi
4b900473 14367
81ecdfbb
RW
14368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14369$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 14370if test "x${build}" != "x${host}" ; then
2429c060
PB
14371 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14372 # We already found the complete path
b8025f34 14373 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14375$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14376 else
14377 # Canadian cross, just use what we found
81ecdfbb
RW
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14379$as_echo "pre-installed" >&6; }
2429c060 14380 fi
be01d343
PB
14381else
14382 ok=yes
14383 case " ${configdirs} " in
14384 *" gcc "*) ;;
14385 *) ok=no ;;
14386 esac
c6b750e1 14387
be01d343
PB
14388 if test $ok = yes; then
14389 # An in-tree tool is available and we can use it
14390 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14392$as_echo "just compiled" >&6; }
2429c060
PB
14393 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14394 # We already found the complete path
b8025f34 14395 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14397$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14398 elif test "x$target" = "x$host"; then
14399 # We can use an host tool
14400 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14402$as_echo "host tool" >&6; }
be01d343
PB
14403 else
14404 # We need a cross tool
81ecdfbb
RW
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14406$as_echo "pre-installed" >&6; }
be01d343
PB
14407 fi
14408fi
4b900473 14409
81ecdfbb
RW
14410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14411$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 14412if test "x${build}" != "x${host}" ; then
2429c060
PB
14413 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14414 # We already found the complete path
b8025f34 14415 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14417$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14418 else
14419 # Canadian cross, just use what we found
81ecdfbb
RW
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14421$as_echo "pre-installed" >&6; }
2429c060 14422 fi
be01d343
PB
14423else
14424 ok=yes
14425 case " ${configdirs} " in
14426 *" gcc "*) ;;
14427 *) ok=no ;;
14428 esac
14429 case ,${enable_languages}, in
14430 *,c++,*) ;;
14431 *) ok=no ;;
14432 esac
14433 if test $ok = yes; then
14434 # An in-tree tool is available and we can use it
95e43135 14435 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
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14437$as_echo "just compiled" >&6; }
2429c060
PB
14438 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14439 # We already found the complete path
b8025f34 14440 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14442$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14443 elif test "x$target" = "x$host"; then
14444 # We can use an host tool
14445 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14447$as_echo "host tool" >&6; }
be01d343
PB
14448 else
14449 # We need a cross tool
81ecdfbb
RW
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14451$as_echo "pre-installed" >&6; }
be01d343
PB
14452 fi
14453fi
4b900473 14454
81ecdfbb
RW
14455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14456$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 14457if test "x${build}" != "x${host}" ; then
2429c060
PB
14458 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14459 # We already found the complete path
b8025f34 14460 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14462$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14463 else
14464 # Canadian cross, just use what we found
81ecdfbb
RW
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14466$as_echo "pre-installed" >&6; }
2429c060 14467 fi
be01d343
PB
14468else
14469 ok=yes
14470 case " ${configdirs} " in
14471 *" gcc "*) ;;
14472 *) ok=no ;;
14473 esac
14474 case ,${enable_languages}, in
14475 *,c++,*) ;;
14476 *) ok=no ;;
14477 esac
14478 if test $ok = yes; then
14479 # An in-tree tool is available and we can use it
95e43135 14480 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
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14482$as_echo "just compiled" >&6; }
2429c060
PB
14483 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14484 # We already found the complete path
b8025f34 14485 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14487$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14488 elif test "x$target" = "x$host"; then
14489 # We can use an host tool
14490 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14492$as_echo "host tool" >&6; }
be01d343
PB
14493 else
14494 # We need a cross tool
81ecdfbb
RW
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14496$as_echo "pre-installed" >&6; }
be01d343
PB
14497 fi
14498fi
4b900473 14499
81ecdfbb
RW
14500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14501$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 14502if test "x${build}" != "x${host}" ; then
2429c060
PB
14503 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14504 # We already found the complete path
b8025f34 14505 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14507$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14508 else
14509 # Canadian cross, just use what we found
81ecdfbb
RW
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14511$as_echo "pre-installed" >&6; }
2429c060 14512 fi
be01d343
PB
14513else
14514 ok=yes
14515 case " ${configdirs} " in
14516 *" binutils "*) ;;
14517 *) ok=no ;;
14518 esac
c6b750e1 14519
be01d343
PB
14520 if test $ok = yes; then
14521 # An in-tree tool is available and we can use it
14522 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14524$as_echo "just compiled" >&6; }
2429c060
PB
14525 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14526 # We already found the complete path
b8025f34 14527 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14529$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14530 elif test "x$target" = "x$host"; then
14531 # We can use an host tool
14532 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14534$as_echo "host tool" >&6; }
be01d343
PB
14535 else
14536 # We need a cross tool
81ecdfbb
RW
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14538$as_echo "pre-installed" >&6; }
be01d343
PB
14539 fi
14540fi
4b900473 14541
81ecdfbb
RW
14542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14543$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 14544if test "x${build}" != "x${host}" ; then
2429c060
PB
14545 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14546 # We already found the complete path
b8025f34 14547 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14549$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14550 else
14551 # Canadian cross, just use what we found
81ecdfbb
RW
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14553$as_echo "pre-installed" >&6; }
2429c060 14554 fi
be01d343
PB
14555else
14556 ok=yes
14557 case " ${configdirs} " in
14558 *" gcc "*) ;;
14559 *) ok=no ;;
14560 esac
c6b750e1 14561
be01d343
PB
14562 if test $ok = yes; then
14563 # An in-tree tool is available and we can use it
14564 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14566$as_echo "just compiled" >&6; }
2429c060
PB
14567 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14568 # We already found the complete path
b8025f34 14569 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14571$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14572 elif test "x$target" = "x$host"; then
14573 # We can use an host tool
14574 GCC_FOR_TARGET='$()'
81ecdfbb
RW
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14576$as_echo "host tool" >&6; }
be01d343
PB
14577 else
14578 # We need a cross tool
81ecdfbb
RW
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14580$as_echo "pre-installed" >&6; }
be01d343
PB
14581 fi
14582fi
4b900473 14583
81ecdfbb
RW
14584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14585$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 14586if test "x${build}" != "x${host}" ; then
2429c060
PB
14587 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14588 # We already found the complete path
b8025f34 14589 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14591$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14592 else
14593 # Canadian cross, just use what we found
81ecdfbb
RW
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14595$as_echo "pre-installed" >&6; }
2429c060 14596 fi
be01d343
PB
14597else
14598 ok=yes
14599 case " ${configdirs} " in
14600 *" gcc "*) ;;
14601 *) ok=no ;;
14602 esac
14603 case ,${enable_languages}, in
14604 *,fortran,*) ;;
14605 *) ok=no ;;
14606 esac
14607 if test $ok = yes; then
14608 # An in-tree tool is available and we can use it
14609 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14611$as_echo "just compiled" >&6; }
2429c060
PB
14612 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14613 # We already found the complete path
b8025f34 14614 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14616$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14617 elif test "x$target" = "x$host"; then
14618 # We can use an host tool
14619 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14621$as_echo "host tool" >&6; }
be01d343
PB
14622 else
14623 # We need a cross tool
81ecdfbb
RW
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14625$as_echo "pre-installed" >&6; }
be01d343
PB
14626 fi
14627fi
4b900473 14628
e552509b
ILT
14629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14630$as_echo_n "checking where to find the target gccgo... " >&6; }
14631if test "x${build}" != "x${host}" ; then
14632 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14633 # We already found the complete path
14634 ac_dir=`dirname $GOC_FOR_TARGET`
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14636$as_echo "pre-installed in $ac_dir" >&6; }
14637 else
14638 # Canadian cross, just use what we found
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14640$as_echo "pre-installed" >&6; }
14641 fi
14642else
14643 ok=yes
14644 case " ${configdirs} " in
14645 *" gcc "*) ;;
14646 *) ok=no ;;
14647 esac
14648 case ,${enable_languages}, in
14649 *,go,*) ;;
14650 *) ok=no ;;
14651 esac
14652 if test $ok = yes; then
14653 # An in-tree tool is available and we can use it
14654 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14656$as_echo "just compiled" >&6; }
14657 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14658 # We already found the complete path
14659 ac_dir=`dirname $GOC_FOR_TARGET`
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14661$as_echo "pre-installed in $ac_dir" >&6; }
14662 elif test "x$target" = "x$host"; then
14663 # We can use an host tool
14664 GOC_FOR_TARGET='$(GOC)'
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14666$as_echo "host tool" >&6; }
14667 else
14668 # We need a cross tool
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14670$as_echo "pre-installed" >&6; }
14671 fi
14672fi
14673
81ecdfbb
RW
14674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14675$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14676if test "x${build}" != "x${host}" ; then
2429c060
PB
14677 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14678 # We already found the complete path
b8025f34 14679 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14681$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14682 else
14683 # Canadian cross, just use what we found
81ecdfbb
RW
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14685$as_echo "pre-installed" >&6; }
2429c060 14686 fi
be01d343
PB
14687else
14688 ok=yes
14689 case " ${configdirs} " in
14690 *" ld "*) ;;
14691 *) ok=no ;;
14692 esac
c6b750e1 14693
be01d343
PB
14694 if test $ok = yes; then
14695 # An in-tree tool is available and we can use it
14696 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14698$as_echo "just compiled" >&6; }
2429c060
PB
14699 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14700 # We already found the complete path
b8025f34 14701 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14703$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14704 elif test "x$target" = "x$host"; then
14705 # We can use an host tool
14706 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14708$as_echo "host tool" >&6; }
be01d343
PB
14709 else
14710 # We need a cross tool
81ecdfbb
RW
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14712$as_echo "pre-installed" >&6; }
be01d343
PB
14713 fi
14714fi
4b900473 14715
81ecdfbb
RW
14716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14717$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14718if test "x${build}" != "x${host}" ; then
2429c060
PB
14719 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14720 # We already found the complete path
b8025f34 14721 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14723$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14724 else
14725 # Canadian cross, just use what we found
81ecdfbb
RW
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14727$as_echo "pre-installed" >&6; }
2429c060 14728 fi
be01d343 14729else
2429c060
PB
14730 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14731 # We already found the complete path
b8025f34 14732 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14734$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 14735 elif test "x$target" = "x$host"; then
be01d343
PB
14736 # We can use an host tool
14737 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14739$as_echo "host tool" >&6; }
be01d343
PB
14740 else
14741 # We need a cross tool
81ecdfbb
RW
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14743$as_echo "pre-installed" >&6; }
be01d343
PB
14744 fi
14745fi
4b900473 14746
81ecdfbb
RW
14747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14748$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14749if test "x${build}" != "x${host}" ; then
2429c060
PB
14750 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14751 # We already found the complete path
b8025f34 14752 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14754$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14755 else
14756 # Canadian cross, just use what we found
81ecdfbb
RW
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14758$as_echo "pre-installed" >&6; }
2429c060 14759 fi
be01d343
PB
14760else
14761 ok=yes
14762 case " ${configdirs} " in
14763 *" binutils "*) ;;
14764 *) ok=no ;;
14765 esac
c6b750e1 14766
be01d343
PB
14767 if test $ok = yes; then
14768 # An in-tree tool is available and we can use it
14769 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14771$as_echo "just compiled" >&6; }
2429c060
PB
14772 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14773 # We already found the complete path
b8025f34 14774 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14776$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14777 elif test "x$target" = "x$host"; then
14778 # We can use an host tool
14779 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14781$as_echo "host tool" >&6; }
be01d343
PB
14782 else
14783 # We need a cross tool
81ecdfbb
RW
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14785$as_echo "pre-installed" >&6; }
be01d343
PB
14786 fi
14787fi
4b900473 14788
6b91c541
AP
14789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14790$as_echo_n "checking where to find the target objcopy... " >&6; }
14791if test "x${build}" != "x${host}" ; then
14792 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14793 # We already found the complete path
14794 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14796$as_echo "pre-installed in $ac_dir" >&6; }
14797 else
14798 # Canadian cross, just use what we found
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14800$as_echo "pre-installed" >&6; }
14801 fi
14802else
14803 ok=yes
14804 case " ${configdirs} " in
14805 *" binutils "*) ;;
14806 *) ok=no ;;
14807 esac
14808
14809 if test $ok = yes; then
14810 # An in-tree tool is available and we can use it
14811 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14813$as_echo "just compiled" >&6; }
14814 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14815 # We already found the complete path
14816 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14818$as_echo "pre-installed in $ac_dir" >&6; }
14819 elif test "x$target" = "x$host"; then
14820 # We can use an host tool
1b6c0831 14821 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
6b91c541
AP
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14823$as_echo "host tool" >&6; }
14824 else
14825 # We need a cross tool
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14827$as_echo "pre-installed" >&6; }
14828 fi
14829fi
14830
81ecdfbb
RW
14831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14832$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14833if test "x${build}" != "x${host}" ; then
2429c060
PB
14834 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14835 # We already found the complete path
b8025f34 14836 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14838$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14839 else
14840 # Canadian cross, just use what we found
81ecdfbb
RW
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14842$as_echo "pre-installed" >&6; }
2429c060 14843 fi
be01d343
PB
14844else
14845 ok=yes
14846 case " ${configdirs} " in
14847 *" binutils "*) ;;
14848 *) ok=no ;;
14849 esac
c6b750e1 14850
be01d343
PB
14851 if test $ok = yes; then
14852 # An in-tree tool is available and we can use it
14853 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14855$as_echo "just compiled" >&6; }
2429c060
PB
14856 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14857 # We already found the complete path
b8025f34 14858 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14860$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14861 elif test "x$target" = "x$host"; then
14862 # We can use an host tool
14863 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14865$as_echo "host tool" >&6; }
be01d343
PB
14866 else
14867 # We need a cross tool
81ecdfbb
RW
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14869$as_echo "pre-installed" >&6; }
be01d343
PB
14870 fi
14871fi
4b900473 14872
81ecdfbb
RW
14873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14874$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14875if test "x${build}" != "x${host}" ; then
2429c060
PB
14876 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14877 # We already found the complete path
b8025f34 14878 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14880$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14881 else
14882 # Canadian cross, just use what we found
81ecdfbb
RW
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14884$as_echo "pre-installed" >&6; }
2429c060 14885 fi
be01d343
PB
14886else
14887 ok=yes
14888 case " ${configdirs} " in
14889 *" binutils "*) ;;
14890 *) ok=no ;;
14891 esac
c6b750e1 14892
be01d343
PB
14893 if test $ok = yes; then
14894 # An in-tree tool is available and we can use it
14895 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14897$as_echo "just compiled" >&6; }
2429c060
PB
14898 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14899 # We already found the complete path
b8025f34 14900 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14902$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14903 elif test "x$target" = "x$host"; then
14904 # We can use an host tool
14905 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14907$as_echo "host tool" >&6; }
be01d343
PB
14908 else
14909 # We need a cross tool
81ecdfbb
RW
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14911$as_echo "pre-installed" >&6; }
be01d343
PB
14912 fi
14913fi
4b900473 14914
b121d7d4
DD
14915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14916$as_echo_n "checking where to find the target readelf... " >&6; }
14917if test "x${build}" != "x${host}" ; then
14918 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14919 # We already found the complete path
14920 ac_dir=`dirname $READELF_FOR_TARGET`
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14922$as_echo "pre-installed in $ac_dir" >&6; }
14923 else
14924 # Canadian cross, just use what we found
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14926$as_echo "pre-installed" >&6; }
14927 fi
14928else
14929 ok=yes
14930 case " ${configdirs} " in
14931 *" binutils "*) ;;
14932 *) ok=no ;;
14933 esac
14934
14935 if test $ok = yes; then
14936 # An in-tree tool is available and we can use it
14937 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14939$as_echo "just compiled" >&6; }
14940 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14941 # We already found the complete path
14942 ac_dir=`dirname $READELF_FOR_TARGET`
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14944$as_echo "pre-installed in $ac_dir" >&6; }
14945 elif test "x$target" = "x$host"; then
14946 # We can use an host tool
14947 READELF_FOR_TARGET='$(READELF)'
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14949$as_echo "host tool" >&6; }
14950 else
14951 # We need a cross tool
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14953$as_echo "pre-installed" >&6; }
14954 fi
14955fi
14956
81ecdfbb
RW
14957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14958$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14959if test "x${build}" != "x${host}" ; then
2429c060
PB
14960 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14961 # We already found the complete path
b8025f34 14962 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14964$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14965 else
14966 # Canadian cross, just use what we found
81ecdfbb
RW
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14968$as_echo "pre-installed" >&6; }
2429c060 14969 fi
be01d343
PB
14970else
14971 ok=yes
14972 case " ${configdirs} " in
14973 *" binutils "*) ;;
14974 *) ok=no ;;
14975 esac
c6b750e1 14976
be01d343
PB
14977 if test $ok = yes; then
14978 # An in-tree tool is available and we can use it
9b980aa1 14979 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14981$as_echo "just compiled" >&6; }
2429c060
PB
14982 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14983 # We already found the complete path
b8025f34 14984 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14986$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14987 elif test "x$target" = "x$host"; then
14988 # We can use an host tool
14989 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14991$as_echo "host tool" >&6; }
be01d343
PB
14992 else
14993 # We need a cross tool
81ecdfbb
RW
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14995$as_echo "pre-installed" >&6; }
be01d343
PB
14996 fi
14997fi
4b900473 14998
81ecdfbb
RW
14999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
15000$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 15001if test "x${build}" != "x${host}" ; then
2429c060
PB
15002 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15003 # We already found the complete path
b8025f34 15004 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15006$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
15007 else
15008 # Canadian cross, just use what we found
81ecdfbb
RW
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15010$as_echo "pre-installed" >&6; }
2429c060 15011 fi
be01d343
PB
15012else
15013 ok=yes
15014 case " ${configdirs} " in
15015 *" binutils "*) ;;
15016 *) ok=no ;;
15017 esac
c6b750e1 15018
be01d343
PB
15019 if test $ok = yes; then
15020 # An in-tree tool is available and we can use it
15021 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15023$as_echo "just compiled" >&6; }
2429c060
PB
15024 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15025 # We already found the complete path
b8025f34 15026 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15028$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
15029 elif test "x$target" = "x$host"; then
15030 # We can use an host tool
15031 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15033$as_echo "host tool" >&6; }
be01d343
PB
15034 else
15035 # We need a cross tool
81ecdfbb
RW
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15037$as_echo "pre-installed" >&6; }
be01d343 15038 fi
a0da8069 15039fi
54752a6b 15040
81ecdfbb
RW
15041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15042$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
15043if test "x${build}" != "x${host}" ; then
15044 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15045 # We already found the complete path
15046 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15048$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
15049 else
15050 # Canadian cross, just use what we found
81ecdfbb
RW
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15052$as_echo "pre-installed" >&6; }
0c24b341
NC
15053 fi
15054else
15055 ok=yes
15056 case " ${configdirs} " in
15057 *" binutils "*) ;;
15058 *) ok=no ;;
15059 esac
15060
15061 if test $ok = yes; then
15062 # An in-tree tool is available and we can use it
15063 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15065$as_echo "just compiled" >&6; }
0c24b341
NC
15066 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15067 # We already found the complete path
15068 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15070$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
15071 elif test "x$target" = "x$host"; then
15072 # We can use an host tool
15073 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15075$as_echo "host tool" >&6; }
0c24b341
NC
15076 else
15077 # We need a cross tool
81ecdfbb
RW
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15079$as_echo "pre-installed" >&6; }
0c24b341
NC
15080 fi
15081fi
15082
54752a6b
NN
15083
15084
be01d343 15085
4b900473 15086
a0da8069
NN
15087# Certain tools may need extra flags.
15088AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15089RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15090NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15091
be01d343
PB
15092# When building target libraries, except in a Canadian cross, we use
15093# the same toolchain as the compiler we just built.
15094COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15095COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15096COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15097if test $host = $build; then
15098 case " $configdirs " in
15099 *" gcc "*)
15100 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15101 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15102 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15103 ;;
15104 esac
15105fi
15106
15107
15108
15109
15110
81ecdfbb
RW
15111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15112$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15113# Check whether --enable-maintainer-mode was given.
15114if test "${enable_maintainer_mode+set}" = set; then :
15115 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
15116else
15117 USE_MAINTAINER_MODE=no
81ecdfbb
RW
15118fi
15119
15120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15121$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
15122
15123
15124if test "$USE_MAINTAINER_MODE" = yes; then
15125 MAINTAINER_MODE_TRUE=
15126 MAINTAINER_MODE_FALSE='#'
15127else
15128 MAINTAINER_MODE_TRUE='#'
15129 MAINTAINER_MODE_FALSE=
c6b750e1 15130fi
3d5e36ae
AO
15131MAINT=$MAINTAINER_MODE_TRUE
15132
1d39f329
NN
15133# ---------------------
15134# GCC bootstrap support
15135# ---------------------
15136
15137# Stage specific cflags for build.
15138stage1_cflags="-g"
15139case $build in
15140 vax-*-*)
15141 case ${GCC} in
15142 yes) stage1_cflags="-g -Wa,-J" ;;
15143 *) stage1_cflags="-g -J" ;;
15144 esac ;;
1d39f329
NN
15145esac
15146
1d89b610 15147
1d39f329 15148
8a0d8a5c 15149# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
15150# Check whether --enable-stage1-checking was given.
15151if test "${enable_stage1_checking+set}" = set; then :
15152 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 15153else
5566c1fa 15154 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
ce6c656d
L
15155 # For --disable-checking or implicit --enable-checking=release, avoid
15156 # setting --enable-checking=gc in the default stage1 checking for LTO
15157 # bootstraps. See PR62077.
ce6c656d
L
15158 case $BUILD_CONFIG in
15159 *lto*)
05a13254
NC
15160 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15161 *)
15162 stage1_checking=--enable-checking=yes,types;;
ce6c656d 15163 esac
05a13254
NC
15164 if test "x$enable_checking" = x && \
15165 test -d ${srcdir}/gcc && \
15166 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
15167 stage1_checking=--enable-checking=yes,types,extra
15168 fi
8a0d8a5c 15169else
5566c1fa 15170 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 15171fi
81ecdfbb 15172fi
8a0d8a5c
PB
15173
15174
c6b750e1 15175
81ecdfbb
RW
15176# Enable -Werror in bootstrap stage2 and later.
15177# Check whether --enable-werror was given.
15178if test "${enable_werror+set}" = set; then :
15179 enableval=$enable_werror;
1a6f2dc7
NN
15180case ${enable_werror} in
15181 yes) stage2_werror_flag="--enable-werror-always" ;;
15182 *) stage2_werror_flag="" ;;
1d39f329
NN
15183esac
15184
82033c9b 15185else
82033c9b 15186
bf41f30d
NC
15187if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15188 case $BUILD_CONFIG in
15189 bootstrap-debug)
15190 stage2_werror_flag="--enable-werror-always" ;;
15191 "")
15192 stage2_werror_flag="--enable-werror-always" ;;
15193 esac
15194fi
82033c9b 15195
bf41f30d 15196fi
82033c9b 15197
1b6c0831 15198
1b6c0831 15199
1b6c0831 15200
e8a5fa9c
RW
15201# Specify what files to not compare during bootstrap.
15202
15203compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15204case "$target" in
15205 hppa*64*-*-hpux*) ;;
bf41f30d 15206 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
1488e230 15207 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
15208esac
15209
15210
81ecdfbb
RW
15211ac_config_files="$ac_config_files Makefile"
15212
c6b750e1 15213cat >confcache <<\_ACEOF
a0da8069
NN
15214# This file is a shell script that caches the results of configure
15215# tests run on this system so they can be shared between configure
c6b750e1
DJ
15216# scripts and configure runs, see configure's option --config-cache.
15217# It is not useful on other systems. If it contains results you don't
15218# want to keep, you may remove or edit it.
a0da8069 15219#
c6b750e1
DJ
15220# config.status only pays attention to the cache file if you give it
15221# the --recheck option to rerun configure.
a0da8069 15222#
c6b750e1
DJ
15223# `ac_cv_env_foo' variables (set or unset) will be overridden when
15224# loading this file, other *unset* `ac_cv_foo' will be assigned the
15225# following values.
15226
15227_ACEOF
15228
a0da8069
NN
15229# The following way of writing the cache mishandles newlines in values,
15230# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 15231# So, we kill variables containing newlines.
a0da8069
NN
15232# Ultrix sh set writes to stderr and can't be redirected directly,
15233# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
15234(
15235 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15236 eval ac_val=\$$ac_var
15237 case $ac_val in #(
15238 *${as_nl}*)
15239 case $ac_var in #(
15240 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15241$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15242 esac
15243 case $ac_var in #(
15244 _ | IFS | as_nl) ;; #(
15245 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15246 *) { eval $ac_var=; unset $ac_var;} ;;
15247 esac ;;
15248 esac
15249 done
15250
c6b750e1 15251 (set) 2>&1 |
81ecdfbb
RW
15252 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15253 *${as_nl}ac_space=\ *)
15254 # `set' does not quote correctly, so add quotes: double-quote
15255 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
15256 sed -n \
15257 "s/'/'\\\\''/g;
15258 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 15259 ;; #(
c6b750e1
DJ
15260 *)
15261 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 15262 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 15263 ;;
81ecdfbb
RW
15264 esac |
15265 sort
15266) |
c6b750e1 15267 sed '
81ecdfbb 15268 /^ac_cv_env_/b end
c6b750e1 15269 t clear
81ecdfbb 15270 :clear
c6b750e1
DJ
15271 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15272 t end
81ecdfbb
RW
15273 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15274 :end' >>confcache
15275if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15276 if test -w "$cache_file"; then
d0ac1c44 15277 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15279$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
15280 if test ! -f "$cache_file" || test -h "$cache_file"; then
15281 cat confcache >"$cache_file"
15282 else
15283 case $cache_file in #(
15284 */* | ?:*)
15285 mv -f confcache "$cache_file"$$ &&
15286 mv -f "$cache_file"$$ "$cache_file" ;; #(
15287 *)
15288 mv -f confcache "$cache_file" ;;
15289 esac
15290 fi
15291 fi
a0da8069 15292 else
81ecdfbb
RW
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15294$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 15295 fi
852e5f18 15296fi
a0da8069 15297rm -f confcache
852e5f18 15298
a0da8069
NN
15299test "x$prefix" = xNONE && prefix=$ac_default_prefix
15300# Let make expand exec_prefix.
15301test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 15302
a0da8069
NN
15303# Transform confdefs.h into DEFS.
15304# Protect against shell expansion while executing Makefile rules.
15305# Protect against Makefile macro expansion.
c6b750e1
DJ
15306#
15307# If the first sed substitution is executed (which looks for macros that
81ecdfbb 15308# take arguments), then branch to the quote section. Otherwise,
c6b750e1 15309# look for a macro that doesn't take arguments.
81ecdfbb
RW
15310ac_script='
15311:mline
15312/\\$/{
15313 N
15314 s,\\\n,,
15315 b mline
15316}
c6b750e1 15317t clear
81ecdfbb
RW
15318:clear
15319s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 15320t quote
81ecdfbb 15321s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 15322t quote
81ecdfbb
RW
15323b any
15324:quote
15325s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15326s/\[/\\&/g
15327s/\]/\\&/g
15328s/\$/$$/g
15329H
15330:any
15331${
15332 g
15333 s/^\n//
15334 s/\n/ /g
15335 p
15336}
15337'
15338DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
15339
15340
15341ac_libobjs=
15342ac_ltlibobjs=
d0ac1c44 15343U=
c6b750e1
DJ
15344for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15345 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
15346 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15347 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15348 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15349 # will be set to the directory where LIBOBJS objects are built.
15350 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15351 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
15352done
15353LIBOBJS=$ac_libobjs
852e5f18 15354
c6b750e1 15355LTLIBOBJS=$ac_ltlibobjs
376a0e54 15356
cac3d6c4 15357
c6b750e1 15358
d0ac1c44 15359: "${CONFIG_STATUS=./config.status}"
81ecdfbb 15360ac_write_fail=0
c6b750e1
DJ
15361ac_clean_files_save=$ac_clean_files
15362ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
15363{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15364$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15365as_write_fail=0
15366cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
15367#! $SHELL
15368# Generated by $as_me.
a0da8069 15369# Run this file to recreate the current configuration.
a0da8069 15370# Compiler output produced by configure, useful for debugging
c6b750e1 15371# configure, is in config.log if it exists.
376a0e54 15372
c6b750e1
DJ
15373debug=false
15374ac_cs_recheck=false
15375ac_cs_silent=false
c6b750e1 15376
81ecdfbb
RW
15377SHELL=\${CONFIG_SHELL-$SHELL}
15378export SHELL
15379_ASEOF
15380cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15381## -------------------- ##
15382## M4sh Initialization. ##
15383## -------------------- ##
15384
15385# Be more Bourne compatible
15386DUALCASE=1; export DUALCASE # for MKS sh
15387if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
15388 emulate sh
15389 NULLCMD=:
81ecdfbb 15390 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
15391 # is contrary to our usage. Disable this feature.
15392 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
15393 setopt NO_GLOB_SUBST
15394else
15395 case `(set -o) 2>/dev/null` in #(
15396 *posix*) :
15397 set -o posix ;; #(
15398 *) :
15399 ;;
15400esac
c6b750e1 15401fi
c6b750e1 15402
81ecdfbb
RW
15403
15404as_nl='
15405'
15406export as_nl
15407# Printing a long string crashes Solaris 7 /usr/bin/printf.
15408as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15409as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15410as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15411# Prefer a ksh shell builtin over an external printf program on Solaris,
15412# but without wasting forks for bash or zsh.
15413if test -z "$BASH_VERSION$ZSH_VERSION" \
15414 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15415 as_echo='print -r --'
15416 as_echo_n='print -rn --'
15417elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15418 as_echo='printf %s\n'
15419 as_echo_n='printf %s'
15420else
15421 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15422 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15423 as_echo_n='/usr/ucb/echo -n'
15424 else
15425 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15426 as_echo_n_body='eval
15427 arg=$1;
15428 case $arg in #(
15429 *"$as_nl"*)
15430 expr "X$arg" : "X\\(.*\\)$as_nl";
15431 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15432 esac;
15433 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15434 '
15435 export as_echo_n_body
15436 as_echo_n='sh -c $as_echo_n_body as_echo'
15437 fi
15438 export as_echo_body
15439 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
15440fi
15441
81ecdfbb
RW
15442# The user is always right.
15443if test "${PATH_SEPARATOR+set}" != set; then
15444 PATH_SEPARATOR=:
15445 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15446 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15447 PATH_SEPARATOR=';'
15448 }
15449fi
15450
15451
15452# IFS
15453# We need space, tab and new line, in precisely that order. Quoting is
15454# there to prevent editors from complaining about space-tab.
15455# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15456# splitting by setting IFS to empty value.)
15457IFS=" "" $as_nl"
15458
15459# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 15460as_myself=
81ecdfbb
RW
15461case $0 in #((
15462 *[\\/]* ) as_myself=$0 ;;
15463 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15464for as_dir in $PATH
15465do
15466 IFS=$as_save_IFS
15467 test -z "$as_dir" && as_dir=.
15468 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15469 done
15470IFS=$as_save_IFS
15471
15472 ;;
15473esac
15474# We did not find ourselves, most probably we were run as `sh COMMAND'
15475# in which case we are not to be found in the path.
15476if test "x$as_myself" = x; then
15477 as_myself=$0
15478fi
15479if test ! -f "$as_myself"; then
15480 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15481 exit 1
15482fi
c6b750e1 15483
81ecdfbb
RW
15484# Unset variables that we do not need and which cause bugs (e.g. in
15485# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15486# suppresses any "Segmentation fault" message there. '((' could
15487# trigger a bug in pdksh 5.2.14.
15488for as_var in BASH_ENV ENV MAIL MAILPATH
15489do eval test x\${$as_var+set} = xset \
15490 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15491done
c6b750e1
DJ
15492PS1='$ '
15493PS2='> '
15494PS4='+ '
15495
15496# NLS nuisances.
81ecdfbb
RW
15497LC_ALL=C
15498export LC_ALL
15499LANGUAGE=C
15500export LANGUAGE
15501
15502# CDPATH.
15503(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15504
15505
d0ac1c44
SM
15506# as_fn_error STATUS ERROR [LINENO LOG_FD]
15507# ----------------------------------------
81ecdfbb
RW
15508# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15509# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 15510# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
15511as_fn_error ()
15512{
d0ac1c44
SM
15513 as_status=$1; test $as_status -eq 0 && as_status=1
15514 if test "$4"; then
15515 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15516 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c6b750e1 15517 fi
d0ac1c44 15518 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
15519 as_fn_exit $as_status
15520} # as_fn_error
15521
15522
15523# as_fn_set_status STATUS
15524# -----------------------
15525# Set $? to STATUS, without forking.
15526as_fn_set_status ()
15527{
15528 return $1
15529} # as_fn_set_status
15530
15531# as_fn_exit STATUS
15532# -----------------
15533# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15534as_fn_exit ()
15535{
15536 set +e
15537 as_fn_set_status $1
15538 exit $1
15539} # as_fn_exit
15540
15541# as_fn_unset VAR
15542# ---------------
15543# Portably unset VAR.
15544as_fn_unset ()
15545{
15546 { eval $1=; unset $1;}
15547}
15548as_unset=as_fn_unset
15549# as_fn_append VAR VALUE
15550# ----------------------
15551# Append the text in VALUE to the end of the definition contained in VAR. Take
15552# advantage of any shell optimizations that allow amortized linear growth over
15553# repeated appends, instead of the typical quadratic growth present in naive
15554# implementations.
15555if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15556 eval 'as_fn_append ()
15557 {
15558 eval $1+=\$2
15559 }'
15560else
15561 as_fn_append ()
15562 {
15563 eval $1=\$$1\$2
15564 }
15565fi # as_fn_append
15566
15567# as_fn_arith ARG...
15568# ------------------
15569# Perform arithmetic evaluation on the ARGs, and store the result in the
15570# global $as_val. Take advantage of shells that can avoid forks. The arguments
15571# must be portable across $(()) and expr.
15572if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15573 eval 'as_fn_arith ()
15574 {
15575 as_val=$(( $* ))
15576 }'
15577else
15578 as_fn_arith ()
15579 {
15580 as_val=`expr "$@" || test $? -eq 1`
15581 }
15582fi # as_fn_arith
15583
c6b750e1 15584
81ecdfbb
RW
15585if expr a : '\(a\)' >/dev/null 2>&1 &&
15586 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
15587 as_expr=expr
15588else
15589 as_expr=false
15590fi
15591
81ecdfbb 15592if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
15593 as_basename=basename
15594else
15595 as_basename=false
15596fi
15597
81ecdfbb
RW
15598if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15599 as_dirname=dirname
15600else
15601 as_dirname=false
15602fi
c6b750e1 15603
81ecdfbb 15604as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
15605$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15606 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15607 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15608$as_echo X/"$0" |
15609 sed '/^.*\/\([^/][^/]*\)\/*$/{
15610 s//\1/
15611 q
15612 }
15613 /^X\/\(\/\/\)$/{
15614 s//\1/
15615 q
15616 }
15617 /^X\/\(\/\).*/{
15618 s//\1/
15619 q
15620 }
15621 s/.*/./; q'`
c6b750e1 15622
c6b750e1
DJ
15623# Avoid depending upon Character Ranges.
15624as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15625as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15626as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15627as_cr_digits='0123456789'
15628as_cr_alnum=$as_cr_Letters$as_cr_digits
15629
81ecdfbb
RW
15630ECHO_C= ECHO_N= ECHO_T=
15631case `echo -n x` in #(((((
15632-n*)
15633 case `echo 'xy\c'` in
15634 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15635 xy) ECHO_C='\c';;
15636 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15637 ECHO_T=' ';;
15638 esac;;
15639*)
15640 ECHO_N='-n';;
c6b750e1
DJ
15641esac
15642
81ecdfbb
RW
15643rm -f conf$$ conf$$.exe conf$$.file
15644if test -d conf$$.dir; then
15645 rm -f conf$$.dir/conf$$.file
c6b750e1 15646else
81ecdfbb
RW
15647 rm -f conf$$.dir
15648 mkdir conf$$.dir 2>/dev/null
c6b750e1 15649fi
81ecdfbb
RW
15650if (echo >conf$$.file) 2>/dev/null; then
15651 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 15652 as_ln_s='ln -s'
81ecdfbb
RW
15653 # ... but there are two gotchas:
15654 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15655 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 15656 # In both cases, we have to default to `cp -pR'.
81ecdfbb 15657 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 15658 as_ln_s='cp -pR'
81ecdfbb
RW
15659 elif ln conf$$.file conf$$ 2>/dev/null; then
15660 as_ln_s=ln
15661 else
d0ac1c44 15662 as_ln_s='cp -pR'
c6b750e1 15663 fi
c6b750e1 15664else
d0ac1c44 15665 as_ln_s='cp -pR'
c6b750e1 15666fi
81ecdfbb
RW
15667rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15668rmdir conf$$.dir 2>/dev/null
15669
15670
15671# as_fn_mkdir_p
15672# -------------
15673# Create "$as_dir" as a directory, including parents if necessary.
15674as_fn_mkdir_p ()
15675{
15676
15677 case $as_dir in #(
15678 -*) as_dir=./$as_dir;;
15679 esac
15680 test -d "$as_dir" || eval $as_mkdir_p || {
15681 as_dirs=
15682 while :; do
15683 case $as_dir in #(
15684 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15685 *) as_qdir=$as_dir;;
15686 esac
15687 as_dirs="'$as_qdir' $as_dirs"
15688 as_dir=`$as_dirname -- "$as_dir" ||
15689$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15690 X"$as_dir" : 'X\(//\)[^/]' \| \
15691 X"$as_dir" : 'X\(//\)$' \| \
15692 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15693$as_echo X"$as_dir" |
15694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15695 s//\1/
15696 q
15697 }
15698 /^X\(\/\/\)[^/].*/{
15699 s//\1/
15700 q
15701 }
15702 /^X\(\/\/\)$/{
15703 s//\1/
15704 q
15705 }
15706 /^X\(\/\).*/{
15707 s//\1/
15708 q
15709 }
15710 s/.*/./; q'`
15711 test -d "$as_dir" && break
15712 done
15713 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 15714 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 15715
c6b750e1 15716
81ecdfbb 15717} # as_fn_mkdir_p
c6b750e1 15718if mkdir -p . 2>/dev/null; then
81ecdfbb 15719 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
15720else
15721 test -d ./-p && rmdir ./-p
15722 as_mkdir_p=false
15723fi
15724
d0ac1c44
SM
15725
15726# as_fn_executable_p FILE
15727# -----------------------
15728# Test if FILE is an executable regular file.
15729as_fn_executable_p ()
15730{
15731 test -f "$1" && test -x "$1"
15732} # as_fn_executable_p
15733as_test_x='test -x'
15734as_executable_p=as_fn_executable_p
c6b750e1
DJ
15735
15736# Sed expression to map a string onto a valid CPP name.
15737as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15738
15739# Sed expression to map a string onto a valid variable name.
15740as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15741
15742
c6b750e1 15743exec 6>&1
81ecdfbb
RW
15744## ----------------------------------- ##
15745## Main body of $CONFIG_STATUS script. ##
15746## ----------------------------------- ##
15747_ASEOF
15748test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15749
15750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15751# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15752# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15753# values after options handling.
15754ac_log="
c6b750e1 15755This file was extended by $as_me, which was
d0ac1c44 15756generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
15757
15758 CONFIG_FILES = $CONFIG_FILES
15759 CONFIG_HEADERS = $CONFIG_HEADERS
15760 CONFIG_LINKS = $CONFIG_LINKS
15761 CONFIG_COMMANDS = $CONFIG_COMMANDS
15762 $ $0 $@
15763
81ecdfbb
RW
15764on `(hostname || uname -n) 2>/dev/null | sed 1q`
15765"
15766
c6b750e1
DJ
15767_ACEOF
15768
81ecdfbb
RW
15769case $ac_config_files in *"
15770"*) set x $ac_config_files; shift; ac_config_files=$*;;
15771esac
c6b750e1 15772
c6b750e1 15773
c6b750e1 15774
81ecdfbb
RW
15775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15776# Files that config.status was made for.
15777config_files="$ac_config_files"
c6b750e1 15778
81ecdfbb 15779_ACEOF
c6b750e1 15780
81ecdfbb 15781cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15782ac_cs_usage="\
81ecdfbb
RW
15783\`$as_me' instantiates files and other configuration actions
15784from templates according to the current configuration. Unless the files
15785and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15786
81ecdfbb 15787Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15788
15789 -h, --help print this help, then exit
81ecdfbb 15790 -V, --version print version number and configuration settings, then exit
d0ac1c44 15791 --config print configuration, then exit
81ecdfbb
RW
15792 -q, --quiet, --silent
15793 do not print progress messages
c6b750e1
DJ
15794 -d, --debug don't remove temporary files
15795 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15796 --file=FILE[:TEMPLATE]
15797 instantiate the configuration file FILE
c6b750e1
DJ
15798
15799Configuration files:
15800$config_files
15801
81ecdfbb 15802Report bugs to the package provider."
c6b750e1 15803
81ecdfbb
RW
15804_ACEOF
15805cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15806ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
c6b750e1
DJ
15807ac_cs_version="\\
15808config.status
d0ac1c44
SM
15809configured by $0, generated by GNU Autoconf 2.69,
15810 with options \\"\$ac_cs_config\\"
c6b750e1 15811
d0ac1c44 15812Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
15813This config.status script is free software; the Free Software Foundation
15814gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15815
15816ac_pwd='$ac_pwd'
15817srcdir='$srcdir'
15818INSTALL='$INSTALL'
8e957354 15819AWK='$AWK'
81ecdfbb 15820test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15821_ACEOF
15822
81ecdfbb
RW
15823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15824# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15825ac_need_defaults=:
15826while test $# != 0
a0da8069 15827do
c6b750e1 15828 case $1 in
d0ac1c44 15829 --*=?*)
81ecdfbb
RW
15830 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15831 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15832 ac_shift=:
15833 ;;
d0ac1c44
SM
15834 --*=)
15835 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15836 ac_optarg=
15837 ac_shift=:
15838 ;;
81ecdfbb 15839 *)
c6b750e1
DJ
15840 ac_option=$1
15841 ac_optarg=$2
15842 ac_shift=shift
15843 ;;
c6b750e1
DJ
15844 esac
15845
15846 case $ac_option in
15847 # Handling of the options.
a0da8069 15848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15849 ac_cs_recheck=: ;;
81ecdfbb
RW
15850 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15851 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
15852 --config | --confi | --conf | --con | --co | --c )
15853 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 15854 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15855 debug=: ;;
15856 --file | --fil | --fi | --f )
15857 $ac_shift
81ecdfbb
RW
15858 case $ac_optarg in
15859 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 15860 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
15861 esac
15862 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15863 ac_need_defaults=false;;
81ecdfbb
RW
15864 --he | --h | --help | --hel | -h )
15865 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15867 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15868 ac_cs_silent=: ;;
15869
15870 # This is an error.
d0ac1c44 15871 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 15872Try \`$0 --help' for more information." ;;
c6b750e1 15873
81ecdfbb
RW
15874 *) as_fn_append ac_config_targets " $1"
15875 ac_need_defaults=false ;;
c6b750e1 15876
376a0e54 15877 esac
c6b750e1 15878 shift
376a0e54
CM
15879done
15880
c6b750e1 15881ac_configure_extra_args=
376a0e54 15882
c6b750e1
DJ
15883if $ac_cs_silent; then
15884 exec 6>/dev/null
15885 ac_configure_extra_args="$ac_configure_extra_args --silent"
15886fi
376a0e54 15887
c6b750e1 15888_ACEOF
81ecdfbb 15889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15890if \$ac_cs_recheck; then
d0ac1c44 15891 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
15892 shift
15893 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15894 CONFIG_SHELL='$SHELL'
15895 export CONFIG_SHELL
15896 exec "\$@"
c6b750e1
DJ
15897fi
15898
15899_ACEOF
81ecdfbb
RW
15900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15901exec 5>>config.log
15902{
15903 echo
15904 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15905## Running $as_me. ##
15906_ASBOX
15907 $as_echo "$ac_log"
15908} >&5
c6b750e1 15909
81ecdfbb
RW
15910_ACEOF
15911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15912#
15913# INIT-COMMANDS
15914#
15915extrasub_build="$extrasub_build"
15916 extrasub_host="$extrasub_host"
15917 extrasub_target="$extrasub_target"
15918
81ecdfbb 15919_ACEOF
c6b750e1 15920
81ecdfbb 15921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15922
81ecdfbb 15923# Handling of arguments.
c6b750e1
DJ
15924for ac_config_target in $ac_config_targets
15925do
81ecdfbb
RW
15926 case $ac_config_target in
15927 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15928
d0ac1c44 15929 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15930 esac
15931done
15932
81ecdfbb 15933
c6b750e1
DJ
15934# If the user did not use the arguments to specify the items to instantiate,
15935# then the envvar interface is used. Set only those that are not.
15936# We use the long form for the default assignment because of an extremely
15937# bizarre bug on SunOS 4.1.3.
15938if $ac_need_defaults; then
15939 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15940fi
15941
15942# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15943# simply because there is no reason against having it here, and in addition,
c6b750e1 15944# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15945# Hook for its removal unless debugging.
15946# Note that there is a small window in which the directory will not be cleaned:
15947# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15948$debug ||
15949{
d0ac1c44 15950 tmp= ac_tmp=
81ecdfbb 15951 trap 'exit_status=$?
d0ac1c44
SM
15952 : "${ac_tmp:=$tmp}"
15953 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
15954' 0
15955 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15956}
c6b750e1
DJ
15957# Create a (secure) tmp directory for tmp files.
15958
15959{
81ecdfbb 15960 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 15961 test -d "$tmp"
c6b750e1
DJ
15962} ||
15963{
81ecdfbb
RW
15964 tmp=./conf$$-$RANDOM
15965 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
15966} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15967ac_tmp=$tmp
81ecdfbb
RW
15968
15969# Set up the scripts for CONFIG_FILES section.
15970# No need to generate them if there are no CONFIG_FILES.
15971# This happens for instance with `./config.status config.h'.
15972if test -n "$CONFIG_FILES"; then
15973
15974if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15975 ac_cs_awk_getline=:
15976 ac_cs_awk_pipe_init=
15977 ac_cs_awk_read_file='
15978 while ((getline aline < (F[key])) > 0)
15979 print(aline)
15980 close(F[key])'
15981 ac_cs_awk_pipe_fini=
15982else
15983 ac_cs_awk_getline=false
15984 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15985 ac_cs_awk_read_file='
15986 print "|#_!!_#|"
15987 print "cat " F[key] " &&"
15988 '$ac_cs_awk_pipe_init
15989 # The final `:' finishes the AND list.
15990 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15991fi
15992ac_cr=`echo X | tr X '\015'`
15993# On cygwin, bash can eat \r inside `` if the user requested igncr.
15994# But we know of no other shell where ac_cr would be empty at this
15995# point, so we can use a bashism as a fallback.
15996if test "x$ac_cr" = x; then
15997 eval ac_cr=\$\'\\r\'
15998fi
15999ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16000if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 16001 ac_cs_awk_cr='\\r'
81ecdfbb
RW
16002else
16003 ac_cs_awk_cr=$ac_cr
16004fi
16005
d0ac1c44 16006echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
16007_ACEOF
16008
16009# Create commands to substitute file output variables.
c6b750e1 16010{
81ecdfbb 16011 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d0ac1c44 16012 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
81ecdfbb
RW
16013 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16014 echo "_ACAWK" &&
16015 echo "_ACEOF"
16016} >conf$$files.sh &&
16017. ./conf$$files.sh ||
d0ac1c44 16018 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 16019rm -f conf$$files.sh
c6b750e1 16020
81ecdfbb
RW
16021{
16022 echo "cat >conf$$subs.awk <<_ACEOF" &&
16023 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16024 echo "_ACEOF"
16025} >conf$$subs.sh ||
d0ac1c44
SM
16026 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16027ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
16028ac_delim='%!_!# '
16029for ac_last_try in false false false false false :; do
16030 . ./conf$$subs.sh ||
d0ac1c44 16031 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
16032
16033 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16034 if test $ac_delim_n = $ac_delim_num; then
16035 break
16036 elif $ac_last_try; then
d0ac1c44 16037 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
16038 else
16039 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16040 fi
16041done
16042rm -f conf$$subs.sh
16043
16044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 16045cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 16046_ACEOF
81ecdfbb
RW
16047sed -n '
16048h
16049s/^/S["/; s/!.*/"]=/
16050p
16051g
16052s/^[^!]*!//
16053:repl
16054t repl
16055s/'"$ac_delim"'$//
16056t delim
16057:nl
16058h
d0ac1c44 16059s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
16060t more1
16061s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16062p
16063n
16064b repl
16065:more1
16066s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16067p
16068g
16069s/.\{148\}//
16070t nl
16071:delim
16072h
d0ac1c44 16073s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
16074t more2
16075s/["\\]/\\&/g; s/^/"/; s/$/"/
16076p
16077b
16078:more2
16079s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16080p
16081g
16082s/.\{148\}//
16083t delim
16084' <conf$$subs.awk | sed '
16085/^[^""]/{
16086 N
16087 s/\n//
16088}
16089' >>$CONFIG_STATUS || ac_write_fail=1
16090rm -f conf$$subs.awk
16091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16092_ACAWK
d0ac1c44 16093cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
16094 for (key in S) S_is_set[key] = 1
16095 FS = "\a"
16096 \$ac_cs_awk_pipe_init
16097}
16098{
16099 line = $ 0
16100 nfields = split(line, field, "@")
16101 substed = 0
16102 len = length(field[1])
16103 for (i = 2; i < nfields; i++) {
16104 key = field[i]
16105 keylen = length(key)
16106 if (S_is_set[key]) {
16107 value = S[key]
16108 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16109 len += length(value) + length(field[++i])
16110 substed = 1
16111 } else
16112 len += 1 + keylen
16113 }
16114 if (nfields == 3 && !substed) {
16115 key = field[2]
16116 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16117 \$ac_cs_awk_read_file
16118 next
16119 }
16120 }
16121 print line
16122}
16123\$ac_cs_awk_pipe_fini
16124_ACAWK
16125_ACEOF
16126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16127if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16128 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16129else
16130 cat
d0ac1c44
SM
16131fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16132 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb
RW
16133_ACEOF
16134
d0ac1c44
SM
16135# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16136# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
16137# trailing colons and then remove the whole line if VPATH becomes empty
16138# (actually we leave an empty line to preserve line numbers).
16139if test "x$srcdir" = x.; then
d0ac1c44
SM
16140 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16141h
16142s///
16143s/^/:/
16144s/[ ]*$/:/
16145s/:\$(srcdir):/:/g
16146s/:\${srcdir}:/:/g
16147s/:@srcdir@:/:/g
16148s/^:*//
81ecdfbb 16149s/:*$//
d0ac1c44
SM
16150x
16151s/\(=[ ]*\).*/\1/
16152G
16153s/\n//
81ecdfbb
RW
16154s/^[^=]*=[ ]*$//
16155}'
16156fi
c6b750e1 16157
81ecdfbb
RW
16158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16159fi # test -n "$CONFIG_FILES"
c6b750e1 16160
c6b750e1 16161
81ecdfbb
RW
16162eval set X " :F $CONFIG_FILES "
16163shift
16164for ac_tag
16165do
16166 case $ac_tag in
16167 :[FHLC]) ac_mode=$ac_tag; continue;;
16168 esac
16169 case $ac_mode$ac_tag in
16170 :[FHL]*:*);;
d0ac1c44 16171 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
16172 :[FH]-) ac_tag=-:-;;
16173 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16174 esac
16175 ac_save_IFS=$IFS
16176 IFS=:
16177 set x $ac_tag
16178 IFS=$ac_save_IFS
16179 shift
16180 ac_file=$1
16181 shift
252b5132 16182
81ecdfbb
RW
16183 case $ac_mode in
16184 :L) ac_source=$1;;
16185 :[FH])
16186 ac_file_inputs=
16187 for ac_f
16188 do
16189 case $ac_f in
d0ac1c44 16190 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
16191 *) # Look for the file first in the build tree, then in the source tree
16192 # (if the path is not absolute). The absolute path cannot be DOS-style,
16193 # because $ac_f cannot contain `:'.
16194 test -f "$ac_f" ||
16195 case $ac_f in
16196 [\\/$]*) false;;
16197 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16198 esac ||
d0ac1c44 16199 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
16200 esac
16201 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16202 as_fn_append ac_file_inputs " '$ac_f'"
16203 done
c6b750e1 16204
81ecdfbb
RW
16205 # Let's still pretend it is `configure' which instantiates (i.e., don't
16206 # use $as_me), people would be surprised to read:
16207 # /* config.h. Generated by config.status. */
16208 configure_input='Generated from '`
16209 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16210 `' by configure.'
16211 if test x"$ac_file" != x-; then
16212 configure_input="$ac_file. $configure_input"
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16214$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 16215 fi
81ecdfbb
RW
16216 # Neutralize special characters interpreted by sed in replacement strings.
16217 case $configure_input in #(
16218 *\&* | *\|* | *\\* )
16219 ac_sed_conf_input=`$as_echo "$configure_input" |
16220 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16221 *) ac_sed_conf_input=$configure_input;;
16222 esac
cac3d6c4 16223
81ecdfbb 16224 case $ac_tag in
d0ac1c44
SM
16225 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16226 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
16227 esac
16228 ;;
a0da8069 16229 esac
252b5132 16230
81ecdfbb 16231 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
16232$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16233 X"$ac_file" : 'X\(//\)[^/]' \| \
16234 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
16235 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16236$as_echo X"$ac_file" |
16237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16238 s//\1/
16239 q
16240 }
16241 /^X\(\/\/\)[^/].*/{
16242 s//\1/
16243 q
16244 }
16245 /^X\(\/\/\)$/{
16246 s//\1/
16247 q
16248 }
16249 /^X\(\/\).*/{
16250 s//\1/
16251 q
16252 }
16253 s/.*/./; q'`
16254 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 16255 ac_builddir=.
252b5132 16256
81ecdfbb
RW
16257case "$ac_dir" in
16258.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16259*)
16260 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16261 # A ".." for each directory in $ac_dir_suffix.
16262 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16263 case $ac_top_builddir_sub in
16264 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16265 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16266 esac ;;
16267esac
16268ac_abs_top_builddir=$ac_pwd
16269ac_abs_builddir=$ac_pwd$ac_dir_suffix
16270# for backward compatibility:
16271ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
16272
16273case $srcdir in
81ecdfbb 16274 .) # We are building in place.
c6b750e1 16275 ac_srcdir=.
81ecdfbb
RW
16276 ac_top_srcdir=$ac_top_builddir_sub
16277 ac_abs_top_srcdir=$ac_pwd ;;
16278 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 16279 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
16280 ac_top_srcdir=$srcdir
16281 ac_abs_top_srcdir=$srcdir ;;
16282 *) # Relative name.
16283 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16284 ac_top_srcdir=$ac_top_build_prefix$srcdir
16285 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 16286esac
81ecdfbb 16287ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 16288
252b5132 16289
81ecdfbb
RW
16290 case $ac_mode in
16291 :F)
16292 #
16293 # CONFIG_FILE
16294 #
c6b750e1
DJ
16295
16296 case $INSTALL in
16297 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 16298 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 16299 esac
81ecdfbb 16300_ACEOF
252b5132 16301
81ecdfbb
RW
16302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16303# If the template does not know about datarootdir, expand it.
16304# FIXME: This hack should be removed a few years after 2.60.
16305ac_datarootdir_hack=; ac_datarootdir_seen=
16306ac_sed_dataroot='
16307/datarootdir/ {
16308 p
16309 q
16310}
16311/@datadir@/p
16312/@docdir@/p
16313/@infodir@/p
16314/@localedir@/p
16315/@mandir@/p'
16316case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16317*datarootdir*) ac_datarootdir_seen=yes;;
16318*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16320$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 16321_ACEOF
81ecdfbb
RW
16322cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16323 ac_datarootdir_hack='
16324 s&@datadir@&$datadir&g
16325 s&@docdir@&$docdir&g
16326 s&@infodir@&$infodir&g
16327 s&@localedir@&$localedir&g
16328 s&@mandir@&$mandir&g
16329 s&\\\${datarootdir}&$datarootdir&g' ;;
16330esac
16331_ACEOF
16332
16333# Neutralize VPATH when `$srcdir' = `.'.
16334# Shell code in configure.ac might set extrasub.
16335# FIXME: do we really want to maintain this feature?
16336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16337ac_sed_extra="$ac_vpsub
c6b750e1
DJ
16338$extrasub
16339_ACEOF
81ecdfbb 16340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
16341:t
16342/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
16343s|@configure_input@|$ac_sed_conf_input|;t t
16344s&@top_builddir@&$ac_top_builddir_sub&;t t
16345s&@top_build_prefix@&$ac_top_build_prefix&;t t
16346s&@srcdir@&$ac_srcdir&;t t
16347s&@abs_srcdir@&$ac_abs_srcdir&;t t
16348s&@top_srcdir@&$ac_top_srcdir&;t t
16349s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16350s&@builddir@&$ac_builddir&;t t
16351s&@abs_builddir@&$ac_abs_builddir&;t t
16352s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16353s&@INSTALL@&$ac_INSTALL&;t t
16354$ac_datarootdir_hack
16355"
16356eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16357if $ac_cs_awk_getline; then
d0ac1c44 16358 $AWK -f "$ac_tmp/subs.awk"
81ecdfbb 16359else
d0ac1c44
SM
16360 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16361fi \
16362 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
16363
16364test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
16365 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16366 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16367 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 16368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16369which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 16370$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16371which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 16372
d0ac1c44 16373 rm -f "$ac_tmp/stdin"
81ecdfbb 16374 case $ac_file in
d0ac1c44
SM
16375 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16376 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 16377 esac \
d0ac1c44 16378 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 16379 ;;
c148b4cb 16380
c148b4cb 16381
c148b4cb 16382
81ecdfbb
RW
16383 esac
16384
06a51eac
RW
16385
16386 case $ac_file$ac_mode in
16387 "Makefile":F) sed "$extrasub_build" Makefile |
16388 sed "$extrasub_host" |
16389 sed "$extrasub_target" > mf$$
16390 mv -f mf$$ Makefile ;;
16391
16392 esac
81ecdfbb
RW
16393done # for ac_tag
16394
16395
16396as_fn_exit 0
c6b750e1 16397_ACEOF
c6b750e1
DJ
16398ac_clean_files=$ac_clean_files_save
16399
81ecdfbb 16400test $ac_write_fail = 0 ||
d0ac1c44 16401 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 16402
c6b750e1
DJ
16403
16404# configure is writing to config.log, and then calls config.status.
16405# config.status does its own redirection, appending to config.log.
16406# Unfortunately, on DOS this fails, as config.log is still kept open
16407# by configure, so config.status won't be able to write to it; its
16408# output is simply discarded. So we exec the FD to /dev/null,
16409# effectively closing config.log, so it can be properly (re)opened and
16410# appended to by config.status. When coming back to configure, we
16411# need to make the FD available again.
16412if test "$no_create" != yes; then
16413 ac_cs_success=:
16414 ac_config_status_args=
16415 test "$silent" = yes &&
16416 ac_config_status_args="$ac_config_status_args --quiet"
16417 exec 5>/dev/null
16418 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16419 exec 5>>config.log
16420 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16421 # would make configure fail if this is the last instruction.
d0ac1c44 16422 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
16423fi
16424if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16426$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 16427fi
c148b4cb 16428