]> sourceware.org Git - newlib-cygwin.git/blame - configure
Cygwin: console: Fix conflict on shared names between sessions.
[newlib-cygwin.git] / configure
CommitLineData
bafecfd6 1#! /bin/sh
bafecfd6 2# Guess values for system-dependent variables and create Makefiles.
6d3ddf51
SM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
efd58f08 7#
bafecfd6
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
efd58f08
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
b58b6ee1 14
efd58f08
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 :
b58b6ee1
DJ
18 emulate sh
19 NULLCMD=:
efd58f08 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b58b6ee1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
efd58f08
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
b58b6ee1 31fi
b58b6ee1 32
efd58f08
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 }
b58b6ee1
DJ
79fi
80
81
efd58f08
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.
6d3ddf51 90as_myself=
efd58f08
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
b58b6ee1
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
efd58f08
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
6d3ddf51
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;}
efd58f08
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
6d3ddf51
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
efd58f08
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'\" &&
a8a01987
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"
efd58f08
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
b58b6ee1 211do
efd58f08
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 :
6d3ddf51
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
efd58f08
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."
b58b6ee1 266 else
efd58f08
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."
b58b6ee1 271 fi
efd58f08
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
b58b6ee1 301
efd58f08
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"
6d3ddf51 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
efd58f08
RW
356
357
358} # as_fn_mkdir_p
6d3ddf51
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
efd58f08
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
6d3ddf51
SM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
efd58f08
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
6d3ddf51 407# script with STATUS, using 1 if that was 0.
efd58f08
RW
408as_fn_error ()
409{
6d3ddf51
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
efd58f08 414 fi
6d3ddf51 415 $as_echo "$as_me: error: $2" >&2
efd58f08
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
b58b6ee1
DJ
421 as_expr=expr
422else
423 as_expr=false
424fi
425
efd58f08 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b58b6ee1
DJ
427 as_basename=basename
428else
429 as_basename=false
430fi
431
efd58f08
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
b58b6ee1 437
efd58f08 438as_me=`$as_basename -- "$0" ||
b58b6ee1
DJ
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
efd58f08
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'`
b58b6ee1 456
b58b6ee1
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
b58b6ee1 464
efd58f08
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 |
b58b6ee1 474 sed '
efd58f08
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
b58b6ee1 479 N
efd58f08
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b58b6ee1 482 t loop
efd58f08 483 s/-\n.*//
b58b6ee1 484 ' >$as_me.lineno &&
efd58f08
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; }
b58b6ee1 487
6d3ddf51
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
b58b6ee1
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
efd58f08
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
b58b6ee1
DJ
496 # Exit status is that of the last command.
497 exit
498}
499
efd58f08
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';;
b58b6ee1
DJ
511esac
512
efd58f08
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
b58b6ee1 516else
efd58f08
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
b58b6ee1 519fi
efd58f08
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
b58b6ee1 522 as_ln_s='ln -s'
efd58f08
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.
6d3ddf51 526 # In both cases, we have to default to `cp -pR'.
efd58f08 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6d3ddf51 528 as_ln_s='cp -pR'
efd58f08
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
6d3ddf51 532 as_ln_s='cp -pR'
b58b6ee1 533 fi
b58b6ee1 534else
6d3ddf51 535 as_ln_s='cp -pR'
b58b6ee1 536fi
efd58f08
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
b58b6ee1
DJ
539
540if mkdir -p . 2>/dev/null; then
efd58f08 541 as_mkdir_p='mkdir -p "$as_dir"'
b58b6ee1
DJ
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
6d3ddf51
SM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
b58b6ee1
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
6d3ddf51
SM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
bafecfd6 559
b58b6ee1 560# Name of the host.
6d3ddf51 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b58b6ee1
DJ
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
b58b6ee1
DJ
565#
566# Initializations.
567#
bafecfd6 568ac_default_prefix=/usr/local
efd58f08 569ac_clean_files=
b58b6ee1 570ac_config_libobj_dir=.
efd58f08 571LIBOBJS=
b58b6ee1
DJ
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
b58b6ee1
DJ
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
efd58f08 583PACKAGE_URL=
b58b6ee1
DJ
584
585ac_unique_file="move-if-change"
efd58f08
RW
586enable_option_checking=no
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589compare_exclusions
afa221db 590host_shared
efd58f08
RW
591stage2_werror_flag
592stage1_checking
593stage1_cflags
594MAINT
595MAINTAINER_MODE_FALSE
596MAINTAINER_MODE_TRUE
597COMPILER_NM_FOR_TARGET
598COMPILER_LD_FOR_TARGET
599COMPILER_AS_FOR_TARGET
600FLAGS_FOR_TARGET
601RAW_CXX_FOR_TARGET
602WINDMC_FOR_TARGET
603WINDRES_FOR_TARGET
604STRIP_FOR_TARGET
46e7439b 605READELF_FOR_TARGET
efd58f08
RW
606RANLIB_FOR_TARGET
607OBJDUMP_FOR_TARGET
fe508576 608OBJCOPY_FOR_TARGET
efd58f08
RW
609NM_FOR_TARGET
610LIPO_FOR_TARGET
611LD_FOR_TARGET
612DLLTOOL_FOR_TARGET
613AS_FOR_TARGET
614AR_FOR_TARGET
d5b7129a 615GOC_FOR_TARGET
efd58f08
RW
616GFORTRAN_FOR_TARGET
617GCJ_FOR_TARGET
618GCC_FOR_TARGET
619CXX_FOR_TARGET
620CC_FOR_TARGET
d8d5dac0
L
621RANLIB_PLUGIN_OPTION
622AR_PLUGIN_OPTION
46e7439b 623READELF
efd58f08
RW
624OBJDUMP
625OBJCOPY
626WINDMC
627WINDRES
628STRIP
629RANLIB
630NM
631LIPO
632LD
633DLLTOOL
634AS
635AR
636RUNTEST
637EXPECT
638MAKEINFO
639FLEX
640LEX
641M4
642BISON
643YACC
efd58f08
RW
644WINDRES_FOR_BUILD
645WINDMC_FOR_BUILD
646RANLIB_FOR_BUILD
647NM_FOR_BUILD
648LD_FOR_BUILD
649LDFLAGS_FOR_BUILD
d5b7129a 650GOC_FOR_BUILD
efd58f08
RW
651GFORTRAN_FOR_BUILD
652GCJ_FOR_BUILD
653DLLTOOL_FOR_BUILD
654CXX_FOR_BUILD
655CXXFLAGS_FOR_BUILD
656CFLAGS_FOR_BUILD
657CC_FOR_BUILD
658AS_FOR_BUILD
659AR_FOR_BUILD
e894eef9 660target_configdirs
efd58f08 661configdirs
efd58f08 662build_configdirs
efd58f08
RW
663INSTALL_GDB_TK
664GDB_TK
665CONFIGURE_GDB_TK
666build_tooldir
667tooldir
668GCC_SHLIB_SUBDIR
669RPATH_ENVVAR
1d694d8e
RW
670target_configargs
671host_configargs
672build_configargs
55662058 673BUILD_CONFIG
2e7bf520 674LDFLAGS_FOR_TARGET
efd58f08
RW
675CXXFLAGS_FOR_TARGET
676CFLAGS_FOR_TARGET
677DEBUG_PREFIX_CFLAGS_FOR_TARGET
678SYSROOT_CFLAGS_FOR_TARGET
fe508576 679extra_host_zlib_configure_flags
bd45d6fa 680extra_host_libiberty_configure_flags
fe508576
CV
681stage1_languages
682extra_linker_plugin_flags
683extra_linker_plugin_configure_flags
a626f4ee 684islinc
fe508576
CV
685isllibs
686islver
efd58f08 687poststage1_ldflags
f107c370 688poststage1_libs
efd58f08 689stage1_ldflags
e8853092 690stage1_libs
a626f4ee 691extra_isl_gmp_configure_flags
efd58f08
RW
692extra_mpc_mpfr_configure_flags
693extra_mpc_gmp_configure_flags
694extra_mpfr_configure_flags
695gmpinc
696gmplibs
697do_compare
698GNATMAKE
699GNATBIND
700ac_ct_CXX
701CXXFLAGS
702CXX
703OBJEXT
704EXEEXT
705ac_ct_CC
706CPPFLAGS
707LDFLAGS
708CFLAGS
709CC
c9161585 710EXTRA_CONFIGARGS_LIBJAVA
fe508576 711extra_liboffloadmic_configure_flags
efd58f08
RW
712target_subdir
713host_subdir
714build_subdir
715build_libsubdir
a8a01987
PB
716AWK
717SED
efd58f08
RW
718LN_S
719LN
720INSTALL_DATA
721INSTALL_SCRIPT
722INSTALL_PROGRAM
723target_os
724target_vendor
725target_cpu
726target
727host_os
728host_vendor
729host_cpu
730host
731target_noncanonical
732host_noncanonical
733build_noncanonical
734build_os
735build_vendor
736build_cpu
737build
738TOPLEVEL_CONFIGURE_ARGUMENTS
739target_alias
740host_alias
741build_alias
742LIBS
743ECHO_T
744ECHO_N
745ECHO_C
746DEFS
747mandir
748localedir
749libdir
750psdir
751pdfdir
752dvidir
753htmldir
754infodir
755docdir
756oldincludedir
757includedir
90d6966b 758runstatedir
efd58f08
RW
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
fe508576
CV
786with_system_zlib
787enable_as_accelerator_for
788enable_offload_targets
efd58f08 789enable_gold
679e4c82 790enable_ld
fe508576 791enable_compressed_debug_sections
d4b54911
PB
792enable_libquadmath
793enable_libquadmath_support
efd58f08
RW
794enable_libada
795enable_libssp
5ec30f78 796enable_libstdcxx
fe508576 797enable_liboffloadmic
c9161585
ILT
798enable_static_libjava
799enable_bootstrap
efd58f08
RW
800with_mpc
801with_mpc_include
802with_mpc_lib
803with_mpfr_dir
804with_mpfr
805with_mpfr_include
806with_mpfr_lib
807with_gmp_dir
808with_gmp
809with_gmp_include
810with_gmp_lib
efd58f08 811with_stage1_libs
e8853092 812with_stage1_ldflags
efd58f08 813with_boot_libs
f107c370 814with_boot_ldflags
a626f4ee
L
815with_isl
816with_isl_include
817with_isl_lib
818enable_isl_version_check
bd45d6fa 819enable_lto
fe508576
CV
820enable_linker_plugin_configure_flags
821enable_linker_plugin_flags
efd58f08
RW
822enable_stage1_languages
823enable_objc_gc
824with_build_sysroot
825with_debug_prefix_map
90d6966b 826with_tooldir
55662058 827with_build_config
fe508576 828enable_vtable_verify
efd58f08
RW
829enable_serial_configure
830with_build_time_tools
831enable_maintainer_mode
832enable_stage1_checking
833enable_werror
afa221db 834enable_host_shared
efd58f08
RW
835'
836 ac_precious_vars='build_alias
837host_alias
838target_alias
839CC
840CFLAGS
841LDFLAGS
842LIBS
843CPPFLAGS
844CXX
845CXXFLAGS
846CCC
1d694d8e
RW
847build_configargs
848host_configargs
849target_configargs
efd58f08
RW
850AR
851AS
852DLLTOOL
853LD
854LIPO
855NM
856RANLIB
857STRIP
858WINDRES
859WINDMC
860OBJCOPY
861OBJDUMP
46e7439b 862READELF
efd58f08
RW
863CC_FOR_TARGET
864CXX_FOR_TARGET
865GCC_FOR_TARGET
866GCJ_FOR_TARGET
867GFORTRAN_FOR_TARGET
d5b7129a 868GOC_FOR_TARGET
efd58f08
RW
869AR_FOR_TARGET
870AS_FOR_TARGET
871DLLTOOL_FOR_TARGET
872LD_FOR_TARGET
873LIPO_FOR_TARGET
874NM_FOR_TARGET
fe508576 875OBJCOPY_FOR_TARGET
efd58f08
RW
876OBJDUMP_FOR_TARGET
877RANLIB_FOR_TARGET
46e7439b 878READELF_FOR_TARGET
efd58f08
RW
879STRIP_FOR_TARGET
880WINDRES_FOR_TARGET
881WINDMC_FOR_TARGET'
882
bafecfd6
NN
883
884# Initialize some variables set by options.
b58b6ee1
DJ
885ac_init_help=
886ac_init_version=false
efd58f08
RW
887ac_unrecognized_opts=
888ac_unrecognized_sep=
bafecfd6
NN
889# The variables have the same names as the options, with
890# dashes changed to underlines.
b58b6ee1 891cache_file=/dev/null
bafecfd6 892exec_prefix=NONE
bafecfd6 893no_create=
bafecfd6
NN
894no_recursion=
895prefix=NONE
896program_prefix=NONE
897program_suffix=NONE
898program_transform_name=s,x,x,
899silent=
900site=
901srcdir=
bafecfd6
NN
902verbose=
903x_includes=NONE
904x_libraries=NONE
b58b6ee1
DJ
905
906# Installation directory options.
907# These are left unexpanded so users can "make install exec_prefix=/foo"
908# and all the variables that are supposed to be based on exec_prefix
909# by default will actually change.
910# Use braces instead of parens because sh, perl, etc. also accept them.
efd58f08 911# (The list follows the same order as the GNU Coding Standards.)
bafecfd6
NN
912bindir='${exec_prefix}/bin'
913sbindir='${exec_prefix}/sbin'
914libexecdir='${exec_prefix}/libexec'
efd58f08
RW
915datarootdir='${prefix}/share'
916datadir='${datarootdir}'
bafecfd6
NN
917sysconfdir='${prefix}/etc'
918sharedstatedir='${prefix}/com'
919localstatedir='${prefix}/var'
90d6966b 920runstatedir='${localstatedir}/run'
bafecfd6
NN
921includedir='${prefix}/include'
922oldincludedir='/usr/include'
efd58f08
RW
923docdir='${datarootdir}/doc/${PACKAGE}'
924infodir='${datarootdir}/info'
925htmldir='${docdir}'
926dvidir='${docdir}'
927pdfdir='${docdir}'
928psdir='${docdir}'
929libdir='${exec_prefix}/lib'
930localedir='${datarootdir}/locale'
931mandir='${datarootdir}/man'
a3acbf46 932
bafecfd6 933ac_prev=
efd58f08 934ac_dashdash=
bafecfd6
NN
935for ac_option
936do
bafecfd6
NN
937 # If the previous option needs an argument, assign it.
938 if test -n "$ac_prev"; then
efd58f08 939 eval $ac_prev=\$ac_option
bafecfd6
NN
940 ac_prev=
941 continue
942 fi
a3acbf46 943
efd58f08 944 case $ac_option in
6d3ddf51
SM
945 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
946 *=) ac_optarg= ;;
947 *) ac_optarg=yes ;;
efd58f08 948 esac
bafecfd6
NN
949
950 # Accept the important Cygnus configure options, so we can diagnose typos.
951
efd58f08
RW
952 case $ac_dashdash$ac_option in
953 --)
954 ac_dashdash=yes ;;
bafecfd6
NN
955
956 -bindir | --bindir | --bindi | --bind | --bin | --bi)
957 ac_prev=bindir ;;
958 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b58b6ee1 959 bindir=$ac_optarg ;;
bafecfd6
NN
960
961 -build | --build | --buil | --bui | --bu)
b58b6ee1 962 ac_prev=build_alias ;;
bafecfd6 963 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b58b6ee1 964 build_alias=$ac_optarg ;;
bafecfd6
NN
965
966 -cache-file | --cache-file | --cache-fil | --cache-fi \
967 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968 ac_prev=cache_file ;;
969 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b58b6ee1
DJ
971 cache_file=$ac_optarg ;;
972
973 --config-cache | -C)
974 cache_file=config.cache ;;
bafecfd6 975
efd58f08 976 -datadir | --datadir | --datadi | --datad)
bafecfd6 977 ac_prev=datadir ;;
efd58f08 978 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b58b6ee1 979 datadir=$ac_optarg ;;
bafecfd6 980
efd58f08
RW
981 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982 | --dataroo | --dataro | --datar)
983 ac_prev=datarootdir ;;
984 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986 datarootdir=$ac_optarg ;;
987
bafecfd6 988 -disable-* | --disable-*)
efd58f08 989 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
bafecfd6 990 # Reject names that are not valid shell variable names.
efd58f08 991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
6d3ddf51 992 as_fn_error $? "invalid feature name: $ac_useropt"
efd58f08
RW
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
996 *"
997"enable_$ac_useropt"
998"*) ;;
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1001 esac
1002 eval enable_$ac_useropt=no ;;
1003
1004 -docdir | --docdir | --docdi | --doc | --do)
1005 ac_prev=docdir ;;
1006 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007 docdir=$ac_optarg ;;
1008
1009 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010 ac_prev=dvidir ;;
1011 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012 dvidir=$ac_optarg ;;
bafecfd6
NN
1013
1014 -enable-* | --enable-*)
efd58f08 1015 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
bafecfd6 1016 # Reject names that are not valid shell variable names.
efd58f08 1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
6d3ddf51 1018 as_fn_error $? "invalid feature name: $ac_useropt"
efd58f08
RW
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1022 *"
1023"enable_$ac_useropt"
1024"*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
bafecfd6 1027 esac
efd58f08 1028 eval enable_$ac_useropt=\$ac_optarg ;;
bafecfd6
NN
1029
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
b58b6ee1 1037 exec_prefix=$ac_optarg ;;
bafecfd6
NN
1038
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1041 with_gas=yes ;;
1042
b58b6ee1
DJ
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
bafecfd6
NN
1049
1050 -host | --host | --hos | --ho)
b58b6ee1 1051 ac_prev=host_alias ;;
bafecfd6 1052 -host=* | --host=* | --hos=* | --ho=*)
b58b6ee1 1053 host_alias=$ac_optarg ;;
bafecfd6 1054
efd58f08
RW
1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056 ac_prev=htmldir ;;
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058 | --ht=*)
1059 htmldir=$ac_optarg ;;
1060
bafecfd6
NN
1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
b58b6ee1 1066 includedir=$ac_optarg ;;
bafecfd6
NN
1067
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1069 ac_prev=infodir ;;
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b58b6ee1 1071 infodir=$ac_optarg ;;
bafecfd6
NN
1072
1073 -libdir | --libdir | --libdi | --libd)
1074 ac_prev=libdir ;;
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b58b6ee1 1076 libdir=$ac_optarg ;;
bafecfd6
NN
1077
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
b58b6ee1 1083 libexecdir=$ac_optarg ;;
bafecfd6 1084
efd58f08
RW
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1089
bafecfd6 1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
efd58f08 1091 | --localstate | --localstat | --localsta | --localst | --locals)
bafecfd6
NN
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
efd58f08 1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b58b6ee1 1095 localstatedir=$ac_optarg ;;
bafecfd6
NN
1096
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098 ac_prev=mandir ;;
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b58b6ee1 1100 mandir=$ac_optarg ;;
bafecfd6
NN
1101
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1104 with_fp=no ;;
1105
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b58b6ee1 1107 | --no-cr | --no-c | -n)
bafecfd6
NN
1108 no_create=yes ;;
1109
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112 no_recursion=yes ;;
1113
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b58b6ee1 1121 oldincludedir=$ac_optarg ;;
bafecfd6
NN
1122
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124 ac_prev=prefix ;;
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b58b6ee1 1126 prefix=$ac_optarg ;;
bafecfd6
NN
1127
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b58b6ee1 1133 program_prefix=$ac_optarg ;;
bafecfd6
NN
1134
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b58b6ee1 1140 program_suffix=$ac_optarg ;;
bafecfd6
NN
1141
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
b58b6ee1 1157 program_transform_name=$ac_optarg ;;
bafecfd6 1158
efd58f08
RW
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160 ac_prev=pdfdir ;;
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1163
1164 -psdir | --psdir | --psdi | --psd | --ps)
1165 ac_prev=psdir ;;
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167 psdir=$ac_optarg ;;
1168
bafecfd6
NN
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1171 silent=yes ;;
1172
90d6966b
NF
1173 -runstatedir | --runstatedir | --runstatedi | --runstated \
1174 | --runstate | --runstat | --runsta | --runst | --runs \
1175 | --run | --ru | --r)
1176 ac_prev=runstatedir ;;
1177 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1178 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1179 | --run=* | --ru=* | --r=*)
1180 runstatedir=$ac_optarg ;;
1181
bafecfd6
NN
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 ac_prev=sbindir ;;
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 | --sbi=* | --sb=*)
b58b6ee1 1186 sbindir=$ac_optarg ;;
bafecfd6
NN
1187
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1191 | --sha | --sh)
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 | --sha=* | --sh=*)
b58b6ee1 1197 sharedstatedir=$ac_optarg ;;
bafecfd6
NN
1198
1199 -site | --site | --sit)
1200 ac_prev=site ;;
1201 -site=* | --site=* | --sit=*)
b58b6ee1 1202 site=$ac_optarg ;;
bafecfd6
NN
1203
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 ac_prev=srcdir ;;
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b58b6ee1 1207 srcdir=$ac_optarg ;;
bafecfd6
NN
1208
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b58b6ee1 1214 sysconfdir=$ac_optarg ;;
bafecfd6
NN
1215
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
b58b6ee1 1217 ac_prev=target_alias ;;
bafecfd6 1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b58b6ee1 1219 target_alias=$ac_optarg ;;
bafecfd6
NN
1220
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 verbose=yes ;;
1223
b58b6ee1
DJ
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
bafecfd6
NN
1226
1227 -with-* | --with-*)
efd58f08 1228 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
bafecfd6 1229 # Reject names that are not valid shell variable names.
efd58f08 1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
6d3ddf51 1231 as_fn_error $? "invalid package name: $ac_useropt"
efd58f08
RW
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1235 *"
1236"with_$ac_useropt"
1237"*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
bafecfd6 1240 esac
efd58f08 1241 eval with_$ac_useropt=\$ac_optarg ;;
bafecfd6
NN
1242
1243 -without-* | --without-*)
efd58f08 1244 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
bafecfd6 1245 # Reject names that are not valid shell variable names.
efd58f08 1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
6d3ddf51 1247 as_fn_error $? "invalid package name: $ac_useropt"
efd58f08
RW
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1251 *"
1252"with_$ac_useropt"
1253"*) ;;
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1256 esac
1257 eval with_$ac_useropt=no ;;
bafecfd6
NN
1258
1259 --x)
1260 # Obsolete; use --with-x.
1261 with_x=yes ;;
1262
1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264 | --x-incl | --x-inc | --x-in | --x-i)
1265 ac_prev=x_includes ;;
1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b58b6ee1 1268 x_includes=$ac_optarg ;;
bafecfd6
NN
1269
1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272 ac_prev=x_libraries ;;
1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b58b6ee1 1275 x_libraries=$ac_optarg ;;
bafecfd6 1276
6d3ddf51
SM
1277 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1278Try \`$0 --help' for more information"
bafecfd6
NN
1279 ;;
1280
b58b6ee1
DJ
1281 *=*)
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
efd58f08
RW
1284 case $ac_envvar in #(
1285 '' | [0-9]* | *[!_$as_cr_alnum]* )
6d3ddf51 1286 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
efd58f08
RW
1287 esac
1288 eval $ac_envvar=\$ac_optarg
b58b6ee1
DJ
1289 export $ac_envvar ;;
1290
bafecfd6 1291 *)
b58b6ee1 1292 # FIXME: should be removed in autoconf 3.0.
efd58f08 1293 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b58b6ee1 1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
efd58f08 1295 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
6d3ddf51 1296 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
bafecfd6
NN
1297 ;;
1298
1299 esac
1300done
1301
1302if test -n "$ac_prev"; then
b58b6ee1 1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
6d3ddf51 1304 as_fn_error $? "missing argument to $ac_option"
bafecfd6 1305fi
bafecfd6 1306
efd58f08
RW
1307if test -n "$ac_unrecognized_opts"; then
1308 case $enable_option_checking in
1309 no) ;;
6d3ddf51 1310 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
efd58f08 1311 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b58b6ee1 1312 esac
efd58f08 1313fi
bafecfd6 1314
efd58f08
RW
1315# Check all directory arguments for consistency.
1316for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317 datadir sysconfdir sharedstatedir localstatedir includedir \
1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
90d6966b 1319 libdir localedir mandir runstatedir
bafecfd6 1320do
efd58f08
RW
1321 eval ac_val=\$$ac_var
1322 # Remove trailing slashes.
1323 case $ac_val in
1324 */ )
1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326 eval $ac_var=\$ac_val;;
1327 esac
1328 # Be sure to have absolute directory names.
b58b6ee1 1329 case $ac_val in
efd58f08
RW
1330 [\\/$]* | ?:[\\/]* ) continue;;
1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
bafecfd6 1332 esac
6d3ddf51 1333 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
bafecfd6
NN
1334done
1335
b58b6ee1
DJ
1336# There might be people who depend on the old broken behavior: `$host'
1337# used to hold the argument of --host etc.
1338# FIXME: To remove some day.
1339build=$build_alias
1340host=$host_alias
1341target=$target_alias
76402c80 1342
b58b6ee1
DJ
1343# FIXME: To remove some day.
1344if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
b58b6ee1
DJ
1347 elif test "x$build_alias" != "x$host_alias"; then
1348 cross_compiling=yes
1349 fi
1350fi
1351
1352ac_tool_prefix=
1353test -n "$host_alias" && ac_tool_prefix=$host_alias-
1354
1355test "$silent" = yes && exec 6>/dev/null
bafecfd6 1356
bafecfd6 1357
efd58f08
RW
1358ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359ac_ls_di=`ls -di .` &&
1360ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
6d3ddf51 1361 as_fn_error $? "working directory cannot be determined"
efd58f08 1362test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
6d3ddf51 1363 as_fn_error $? "pwd does not report name of working directory"
efd58f08
RW
1364
1365
bafecfd6
NN
1366# Find the source files, if location was not specified.
1367if test -z "$srcdir"; then
1368 ac_srcdir_defaulted=yes
efd58f08
RW
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir=`$as_dirname -- "$as_myself" ||
1371$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$as_myself" : 'X\(//\)[^/]' \| \
1373 X"$as_myself" : 'X\(//\)$' \| \
1374 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375$as_echo X"$as_myself" |
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\/\)[^/].*/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\/\)$/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\).*/{
1389 s//\1/
1390 q
1391 }
1392 s/.*/./; q'`
bafecfd6 1393 srcdir=$ac_confdir
efd58f08 1394 if test ! -r "$srcdir/$ac_unique_file"; then
bafecfd6
NN
1395 srcdir=..
1396 fi
1397else
1398 ac_srcdir_defaulted=no
1399fi
efd58f08
RW
1400if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
6d3ddf51 1402 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
efd58f08
RW
1403fi
1404ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405ac_abs_confdir=`(
6d3ddf51 1406 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
efd58f08
RW
1407 pwd)`
1408# When building in place, set srcdir=.
1409if test "$ac_abs_confdir" = "$ac_pwd"; then
1410 srcdir=.
1411fi
1412# Remove unnecessary trailing slashes from srcdir.
1413# Double slashes in file names in object file debugging info
1414# mess up M-x gdb in Emacs.
1415case $srcdir in
1416*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417esac
c7fc8442
AM
1418case $srcdir in
1419 *" "*)
6d3ddf51 1420 as_fn_error $? "path to source, $srcdir, contains spaces"
c7fc8442
AM
1421 ;;
1422esac
3fbb5e3d
PB
1423ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1424
efd58f08
RW
1425for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430done
b58b6ee1
DJ
1431
1432#
1433# Report the --help message.
1434#
1435if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1438 cat <<_ACEOF
1439\`configure' configures this package to adapt to many kinds of systems.
1440
1441Usage: $0 [OPTION]... [VAR=VALUE]...
1442
1443To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444VAR=VALUE. See below for descriptions of some of the useful variables.
1445
1446Defaults for the options are specified in brackets.
1447
1448Configuration:
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
6d3ddf51 1453 -q, --quiet, --silent do not print \`checking ...' messages
b58b6ee1
DJ
1454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for \`--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1458
b58b6ee1
DJ
1459Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
efd58f08 1461 [$ac_default_prefix]
b58b6ee1 1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
efd58f08 1463 [PREFIX]
b58b6ee1
DJ
1464
1465By default, \`make install' will install all the files in
1466\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1467an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468for instance \`--prefix=\$HOME'.
1469
1470For better control, use the options below.
1471
1472Fine tuning of the installation directories:
efd58f08
RW
1473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
90d6966b 1479 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
efd58f08
RW
1480 --libdir=DIR object code libraries [EPREFIX/lib]
1481 --includedir=DIR C header files [PREFIX/include]
1482 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1483 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1484 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1485 --infodir=DIR info documentation [DATAROOTDIR/info]
1486 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1487 --mandir=DIR man documentation [DATAROOTDIR/man]
1488 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1489 --htmldir=DIR html documentation [DOCDIR]
1490 --dvidir=DIR dvi documentation [DOCDIR]
1491 --pdfdir=DIR pdf documentation [DOCDIR]
1492 --psdir=DIR ps documentation [DOCDIR]
b58b6ee1
DJ
1493_ACEOF
1494
1495 cat <<\_ACEOF
1496
1497Program names:
1498 --program-prefix=PREFIX prepend PREFIX to installed program names
1499 --program-suffix=SUFFIX append SUFFIX to installed program names
1500 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1501
1502System types:
1503 --build=BUILD configure for building on BUILD [guessed]
1504 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1505 --target=TARGET configure for building compilers for TARGET [HOST]
1506_ACEOF
bafecfd6 1507fi
bafecfd6 1508
b58b6ee1
DJ
1509if test -n "$ac_init_help"; then
1510
1511 cat <<\_ACEOF
1512
1513Optional Features:
efd58f08 1514 --disable-option-checking ignore unrecognized --enable/--with options
b58b6ee1
DJ
1515 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1516 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
fe508576
CV
1517 --enable-as-accelerator-for=ARG
1518 build as offload target compiler. Specify offload
1519 host triple by ARG
1520 --enable-offload-targets=LIST
1521 enable offloading to devices from comma-separated
1522 LIST of TARGET[=DIR]. Use optional path to find
1523 offload target compiler during the build
679e4c82 1524 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
5623c499 1525 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
fe508576
CV
1526 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1527 Enable compressed debug sections for gas, gold or ld
1528 by default
d4b54911
PB
1529 --disable-libquadmath do not build libquadmath directory
1530 --disable-libquadmath-support
1531 disable libquadmath support for Fortran
b301596e
DD
1532 --enable-libada build libada directory
1533 --enable-libssp build libssp directory
5ec30f78 1534 --disable-libstdcxx do not build libstdc++-v3 directory
fe508576
CV
1535 --enable-liboffloadmic=ARG
1536 build liboffloadmic [ARG={no,host,target}]
c9161585
ILT
1537 --enable-static-libjava[=ARG]
1538 build static libjava [default=no]
1539 --enable-bootstrap enable bootstrapping [yes if native build]
a626f4ee 1540 --disable-isl-version-check
fe508576 1541 disable check for isl version
bd45d6fa 1542 --enable-lto enable link time optimization support
fe508576
CV
1543 --enable-linker-plugin-configure-flags=FLAGS
1544 additional flags for configuring linker plugins
1545 [none]
1546 --enable-linker-plugin-flags=FLAGS
1547 additional flags for configuring and building linker
1548 plugins [none]
5623c499
AS
1549 --enable-stage1-languages[=all]
1550 choose additional languages to build during stage1.
1551 Mostly useful for compiler development
1552 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1553 Objective-C runtime
fe508576 1554 --enable-vtable-verify Enable vtable verification feature
b301596e 1555 --enable-serial-[{host,target,build}-]configure
5623c499
AS
1556 force sequential configuration of sub-packages for
1557 the host, target or build machine, or all
1558 sub-packages
1559 --enable-maintainer-mode
1560 enable make rules and dependencies not useful (and
1561 sometimes confusing) to the casual installer
1562 --enable-stage1-checking[=all]
1563 choose additional checking for stage1 of the
1564 compiler
b58b6ee1 1565 --enable-werror enable -Werror in bootstrap stage2 and later
afa221db 1566 --enable-host-shared build host code as shared libraries
b58b6ee1
DJ
1567
1568Optional Packages:
1569 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1570 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1571 --with-build-libsubdir=DIR Directory where to find libraries for build system
fe508576 1572 --with-system-zlib use installed libz
5623c499
AS
1573 --with-mpc=PATH specify prefix directory for installed MPC package.
1574 Equivalent to --with-mpc-include=PATH/include plus
1575 --with-mpc-lib=PATH/lib
1576 --with-mpc-include=PATH specify directory for installed MPC include files
1577 --with-mpc-lib=PATH specify directory for the installed MPC library
b301596e
DD
1578 --with-mpfr-dir=PATH this option has been REMOVED
1579 --with-mpfr=PATH specify prefix directory for installed MPFR package.
5623c499
AS
1580 Equivalent to --with-mpfr-include=PATH/include plus
1581 --with-mpfr-lib=PATH/lib
b58b6ee1 1582 --with-mpfr-include=PATH
b301596e
DD
1583 specify directory for installed MPFR include files
1584 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1585 --with-gmp-dir=PATH this option has been REMOVED
5623c499
AS
1586 --with-gmp=PATH specify prefix directory for the installed GMP
1587 package. Equivalent to
1588 --with-gmp-include=PATH/include plus
1589 --with-gmp-lib=PATH/lib
b301596e
DD
1590 --with-gmp-include=PATH specify directory for installed GMP include files
1591 --with-gmp-lib=PATH specify directory for the installed GMP library
e8853092 1592 --with-stage1-libs=LIBS libraries for stage1
5623c499
AS
1593 --with-stage1-ldflags=FLAGS
1594 linker flags for stage1
5623c499
AS
1595 --with-boot-libs=LIBS libraries for stage2 and later
1596 --with-boot-ldflags=FLAGS
1597 linker flags for stage2 and later
fe508576 1598 --with-isl=PATH Specify prefix directory for the installed isl
5623c499 1599 package. Equivalent to
a626f4ee
L
1600 --with-isl-include=PATH/include plus
1601 --with-isl-lib=PATH/lib
fe508576
CV
1602 --with-isl-include=PATH Specify directory for installed isl include files
1603 --with-isl-lib=PATH Specify the directory for the installed isl library
b301596e 1604 --with-build-sysroot=SYSROOT
b58b6ee1 1605 use sysroot as the system root during the build
fcc5fef0 1606 --with-debug-prefix-map='A=B C=D ...'
5623c499 1607 map A to B, C to D ... in debug information
90d6966b 1608 --with-tooldir=PATH use given path to install target tools after build
5623c499
AS
1609 --with-build-config='NAME NAME2...'
1610 use config/NAME.mk build configuration
b301596e 1611 --with-build-time-tools=PATH
b58b6ee1 1612 use given path to find target tools during the build
b58b6ee1
DJ
1613
1614Some influential environment variables:
1615 CC C compiler command
1616 CFLAGS C compiler flags
1617 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1618 nonstandard directory <lib dir>
efd58f08 1619 LIBS libraries to pass to the linker, e.g. -l<library>
6d3ddf51 1620 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
efd58f08 1621 you have headers in a nonstandard directory <include dir>
b8c26111
PB
1622 CXX C++ compiler command
1623 CXXFLAGS C++ compiler flags
1d694d8e
RW
1624 build_configargs
1625 additional configure arguments for build directories
1626 host_configargs
1627 additional configure arguments for host directories
1628 target_configargs
1629 additional configure arguments for target directories
82026593
AO
1630 AR AR for the host
1631 AS AS for the host
1632 DLLTOOL DLLTOOL for the host
1633 LD LD for the host
1634 LIPO LIPO for the host
1635 NM NM for the host
1636 RANLIB RANLIB for the host
1637 STRIP STRIP for the host
1638 WINDRES WINDRES for the host
bffcbe34 1639 WINDMC WINDMC for the host
82026593
AO
1640 OBJCOPY OBJCOPY for the host
1641 OBJDUMP OBJDUMP for the host
46e7439b 1642 READELF READELF for the host
82026593
AO
1643 CC_FOR_TARGET
1644 CC for the target
1645 CXX_FOR_TARGET
1646 CXX for the target
1647 GCC_FOR_TARGET
1648 GCC for the target
1649 GCJ_FOR_TARGET
1650 GCJ for the target
1651 GFORTRAN_FOR_TARGET
1652 GFORTRAN for the target
d5b7129a
ILT
1653 GOC_FOR_TARGET
1654 GOC for the target
82026593
AO
1655 AR_FOR_TARGET
1656 AR for the target
1657 AS_FOR_TARGET
1658 AS for the target
1659 DLLTOOL_FOR_TARGET
1660 DLLTOOL for the target
1661 LD_FOR_TARGET
1662 LD for the target
1663 LIPO_FOR_TARGET
1664 LIPO for the target
1665 NM_FOR_TARGET
1666 NM for the target
fe508576
CV
1667 OBJCOPY_FOR_TARGET
1668 OBJCOPY for the target
82026593
AO
1669 OBJDUMP_FOR_TARGET
1670 OBJDUMP for the target
1671 RANLIB_FOR_TARGET
1672 RANLIB for the target
46e7439b
DD
1673 READELF_FOR_TARGET
1674 READELF for the target
82026593
AO
1675 STRIP_FOR_TARGET
1676 STRIP for the target
1677 WINDRES_FOR_TARGET
1678 WINDRES for the target
bffcbe34
NC
1679 WINDMC_FOR_TARGET
1680 WINDMC for the target
b58b6ee1
DJ
1681
1682Use these variables to override the choices made by `configure' or to help
1683it to find libraries and programs with nonstandard names/locations.
1684
efd58f08 1685Report bugs to the package provider.
b58b6ee1 1686_ACEOF
efd58f08 1687ac_status=$?
b58b6ee1
DJ
1688fi
1689
1690if test "$ac_init_help" = "recursive"; then
1691 # If there are subdirs, report their specific --help.
b58b6ee1 1692 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
efd58f08
RW
1693 test -d "$ac_dir" ||
1694 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1695 continue
b58b6ee1
DJ
1696 ac_builddir=.
1697
efd58f08
RW
1698case "$ac_dir" in
1699.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700*)
1701 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1702 # A ".." for each directory in $ac_dir_suffix.
1703 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1704 case $ac_top_builddir_sub in
1705 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1707 esac ;;
1708esac
1709ac_abs_top_builddir=$ac_pwd
1710ac_abs_builddir=$ac_pwd$ac_dir_suffix
1711# for backward compatibility:
1712ac_top_builddir=$ac_top_build_prefix
b58b6ee1
DJ
1713
1714case $srcdir in
efd58f08 1715 .) # We are building in place.
b58b6ee1 1716 ac_srcdir=.
efd58f08
RW
1717 ac_top_srcdir=$ac_top_builddir_sub
1718 ac_abs_top_srcdir=$ac_pwd ;;
1719 [\\/]* | ?:[\\/]* ) # Absolute name.
b58b6ee1 1720 ac_srcdir=$srcdir$ac_dir_suffix;
efd58f08
RW
1721 ac_top_srcdir=$srcdir
1722 ac_abs_top_srcdir=$srcdir ;;
1723 *) # Relative name.
1724 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1725 ac_top_srcdir=$ac_top_build_prefix$srcdir
1726 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b58b6ee1 1727esac
efd58f08
RW
1728ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1729
1730 cd "$ac_dir" || { ac_status=$?; continue; }
1731 # Check for guested configure.
1732 if test -f "$ac_srcdir/configure.gnu"; then
1733 echo &&
1734 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1735 elif test -f "$ac_srcdir/configure"; then
1736 echo &&
1737 $SHELL "$ac_srcdir/configure" --help=recursive
b58b6ee1 1738 else
efd58f08
RW
1739 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1740 fi || ac_status=$?
1741 cd "$ac_pwd" || { ac_status=$?; break; }
b58b6ee1
DJ
1742 done
1743fi
1744
efd58f08 1745test -n "$ac_init_help" && exit $ac_status
b58b6ee1
DJ
1746if $ac_init_version; then
1747 cat <<\_ACEOF
efd58f08 1748configure
6d3ddf51 1749generated by GNU Autoconf 2.69
b58b6ee1 1750
6d3ddf51 1751Copyright (C) 2012 Free Software Foundation, Inc.
b58b6ee1
DJ
1752This configure script is free software; the Free Software Foundation
1753gives unlimited permission to copy, distribute and modify it.
1754_ACEOF
efd58f08 1755 exit
b58b6ee1 1756fi
efd58f08
RW
1757
1758## ------------------------ ##
1759## Autoconf initialization. ##
1760## ------------------------ ##
1761
1762# ac_fn_c_try_compile LINENO
1763# --------------------------
1764# Try to compile conftest.$ac_ext, and return whether this succeeded.
1765ac_fn_c_try_compile ()
1766{
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext
1769 if { { ac_try="$ac_compile"
1770case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_compile") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest.$ac_objext; then :
1788 ac_retval=0
1789else
1790 $as_echo "$as_me: failed program was:" >&5
1791sed 's/^/| /' conftest.$ac_ext >&5
1792
1793 ac_retval=1
1794fi
6d3ddf51
SM
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
efd58f08
RW
1797
1798} # ac_fn_c_try_compile
1799
1800# ac_fn_cxx_try_compile LINENO
1801# ----------------------------
1802# Try to compile conftest.$ac_ext, and return whether this succeeded.
1803ac_fn_cxx_try_compile ()
1804{
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 rm -f conftest.$ac_objext
1807 if { { ac_try="$ac_compile"
1808case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811esac
1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813$as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_compile") 2>conftest.err
1815 ac_status=$?
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1820 fi
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_cxx_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest.$ac_objext; then :
1826 ac_retval=0
1827else
1828 $as_echo "$as_me: failed program was:" >&5
1829sed 's/^/| /' conftest.$ac_ext >&5
1830
1831 ac_retval=1
1832fi
6d3ddf51
SM
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 as_fn_set_status $ac_retval
efd58f08
RW
1835
1836} # ac_fn_cxx_try_compile
1837
e8853092
EB
1838# ac_fn_cxx_try_link LINENO
1839# -------------------------
1840# Try to link conftest.$ac_ext, and return whether this succeeded.
1841ac_fn_cxx_try_link ()
1842{
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 rm -f conftest.$ac_objext conftest$ac_exeext
1845 if { { ac_try="$ac_link"
1846case "(($ac_try" in
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1849esac
1850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851$as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_link") 2>conftest.err
1853 ac_status=$?
1854 if test -s conftest.err; then
1855 grep -v '^ *+' conftest.err >conftest.er1
1856 cat conftest.er1 >&5
1857 mv -f conftest.er1 conftest.err
1858 fi
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && {
1861 test -z "$ac_cxx_werror_flag" ||
1862 test ! -s conftest.err
1863 } && test -s conftest$ac_exeext && {
1864 test "$cross_compiling" = yes ||
6d3ddf51 1865 test -x conftest$ac_exeext
e8853092
EB
1866 }; then :
1867 ac_retval=0
1868else
1869 $as_echo "$as_me: failed program was:" >&5
1870sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 ac_retval=1
1873fi
1874 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1875 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1876 # interfere with the next link command; also delete a directory that is
1877 # left behind by Apple's compiler. We do this before executing the actions.
1878 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
6d3ddf51
SM
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 as_fn_set_status $ac_retval
e8853092
EB
1881
1882} # ac_fn_cxx_try_link
1883
efd58f08
RW
1884# ac_fn_c_try_link LINENO
1885# -----------------------
1886# Try to link conftest.$ac_ext, and return whether this succeeded.
1887ac_fn_c_try_link ()
1888{
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 rm -f conftest.$ac_objext conftest$ac_exeext
1891 if { { ac_try="$ac_link"
1892case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895esac
1896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897$as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>conftest.err
1899 ac_status=$?
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1904 fi
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && {
1907 test -z "$ac_c_werror_flag" ||
1908 test ! -s conftest.err
1909 } && test -s conftest$ac_exeext && {
1910 test "$cross_compiling" = yes ||
6d3ddf51 1911 test -x conftest$ac_exeext
efd58f08
RW
1912 }; then :
1913 ac_retval=0
1914else
1915 $as_echo "$as_me: failed program was:" >&5
1916sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 ac_retval=1
1919fi
1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922 # interfere with the next link command; also delete a directory that is
1923 # left behind by Apple's compiler. We do this before executing the actions.
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
6d3ddf51
SM
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
efd58f08
RW
1927
1928} # ac_fn_c_try_link
1929cat >config.log <<_ACEOF
b58b6ee1
DJ
1930This file contains any messages produced by compilers while
1931running configure, to aid debugging if configure makes a mistake.
1932
1933It was created by $as_me, which was
6d3ddf51 1934generated by GNU Autoconf 2.69. Invocation command line was
b58b6ee1
DJ
1935
1936 $ $0 $@
1937
1938_ACEOF
efd58f08 1939exec 5>>config.log
b58b6ee1
DJ
1940{
1941cat <<_ASUNAME
1942## --------- ##
1943## Platform. ##
1944## --------- ##
1945
1946hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1947uname -m = `(uname -m) 2>/dev/null || echo unknown`
1948uname -r = `(uname -r) 2>/dev/null || echo unknown`
1949uname -s = `(uname -s) 2>/dev/null || echo unknown`
1950uname -v = `(uname -v) 2>/dev/null || echo unknown`
1951
1952/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1953/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1954
1955/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1956/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1957/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
efd58f08 1958/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b58b6ee1
DJ
1959/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1960/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1961/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1962
1963_ASUNAME
1964
1965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966for as_dir in $PATH
1967do
1968 IFS=$as_save_IFS
1969 test -z "$as_dir" && as_dir=.
efd58f08
RW
1970 $as_echo "PATH: $as_dir"
1971 done
1972IFS=$as_save_IFS
b58b6ee1
DJ
1973
1974} >&5
1975
1976cat >&5 <<_ACEOF
1977
1978
1979## ----------- ##
1980## Core tests. ##
1981## ----------- ##
1982
1983_ACEOF
1984
1985
1986# Keep a trace of the command line.
1987# Strip out --no-create and --no-recursion so they do not pile up.
1988# Strip out --silent because we don't want to record it for future runs.
1989# Also quote any args containing shell meta-characters.
1990# Make two passes to allow for proper duplicate-argument suppression.
1991ac_configure_args=
1992ac_configure_args0=
1993ac_configure_args1=
b58b6ee1
DJ
1994ac_must_keep_next=false
1995for ac_pass in 1 2
1996do
1997 for ac_arg
1998 do
1999 case $ac_arg in
2000 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2002 | -silent | --silent | --silen | --sile | --sil)
2003 continue ;;
efd58f08
RW
2004 *\'*)
2005 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b58b6ee1
DJ
2006 esac
2007 case $ac_pass in
efd58f08 2008 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b58b6ee1 2009 2)
efd58f08 2010 as_fn_append ac_configure_args1 " '$ac_arg'"
b58b6ee1
DJ
2011 if test $ac_must_keep_next = true; then
2012 ac_must_keep_next=false # Got value, back to normal.
2013 else
2014 case $ac_arg in
2015 *=* | --config-cache | -C | -disable-* | --disable-* \
2016 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2017 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2018 | -with-* | --with-* | -without-* | --without-* | --x)
2019 case "$ac_configure_args0 " in
2020 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2021 esac
2022 ;;
2023 -* ) ac_must_keep_next=true ;;
2024 esac
2025 fi
efd58f08 2026 as_fn_append ac_configure_args " '$ac_arg'"
b58b6ee1
DJ
2027 ;;
2028 esac
2029 done
2030done
efd58f08
RW
2031{ ac_configure_args0=; unset ac_configure_args0;}
2032{ ac_configure_args1=; unset ac_configure_args1;}
b58b6ee1
DJ
2033
2034# When interrupted or exit'd, cleanup temporary files, and complete
2035# config.log. We remove comments because anyway the quotes in there
2036# would cause problems or look ugly.
efd58f08
RW
2037# WARNING: Use '\'' to represent an apostrophe within the trap.
2038# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b58b6ee1
DJ
2039trap 'exit_status=$?
2040 # Save into config.log some information that might help in debugging.
2041 {
2042 echo
2043
6d3ddf51 2044 $as_echo "## ---------------- ##
b58b6ee1 2045## Cache variables. ##
6d3ddf51 2046## ---------------- ##"
b58b6ee1
DJ
2047 echo
2048 # The following way of writing the cache mishandles newlines in values,
efd58f08
RW
2049(
2050 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2051 eval ac_val=\$$ac_var
2052 case $ac_val in #(
2053 *${as_nl}*)
2054 case $ac_var in #(
2055 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2056$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2057 esac
2058 case $ac_var in #(
2059 _ | IFS | as_nl) ;; #(
2060 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2061 *) { eval $ac_var=; unset $ac_var;} ;;
2062 esac ;;
2063 esac
2064 done
b58b6ee1 2065 (set) 2>&1 |
efd58f08
RW
2066 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2067 *${as_nl}ac_space=\ *)
b58b6ee1 2068 sed -n \
efd58f08
RW
2069 "s/'\''/'\''\\\\'\'''\''/g;
2070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2071 ;; #(
b58b6ee1 2072 *)
efd58f08 2073 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b58b6ee1 2074 ;;
efd58f08
RW
2075 esac |
2076 sort
2077)
b58b6ee1
DJ
2078 echo
2079
6d3ddf51 2080 $as_echo "## ----------------- ##
b58b6ee1 2081## Output variables. ##
6d3ddf51 2082## ----------------- ##"
b58b6ee1
DJ
2083 echo
2084 for ac_var in $ac_subst_vars
2085 do
efd58f08
RW
2086 eval ac_val=\$$ac_var
2087 case $ac_val in
2088 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089 esac
2090 $as_echo "$ac_var='\''$ac_val'\''"
b58b6ee1
DJ
2091 done | sort
2092 echo
2093
2094 if test -n "$ac_subst_files"; then
6d3ddf51 2095 $as_echo "## ------------------- ##
efd58f08 2096## File substitutions. ##
6d3ddf51 2097## ------------------- ##"
b58b6ee1
DJ
2098 echo
2099 for ac_var in $ac_subst_files
2100 do
efd58f08
RW
2101 eval ac_val=\$$ac_var
2102 case $ac_val in
2103 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2104 esac
2105 $as_echo "$ac_var='\''$ac_val'\''"
b58b6ee1
DJ
2106 done | sort
2107 echo
2108 fi
2109
2110 if test -s confdefs.h; then
6d3ddf51 2111 $as_echo "## ----------- ##
b58b6ee1 2112## confdefs.h. ##
6d3ddf51 2113## ----------- ##"
b58b6ee1 2114 echo
efd58f08 2115 cat confdefs.h
b58b6ee1
DJ
2116 echo
2117 fi
2118 test "$ac_signal" != 0 &&
efd58f08
RW
2119 $as_echo "$as_me: caught signal $ac_signal"
2120 $as_echo "$as_me: exit $exit_status"
b58b6ee1 2121 } >&5
efd58f08
RW
2122 rm -f core *.core core.conftest.* &&
2123 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b58b6ee1 2124 exit $exit_status
efd58f08 2125' 0
b58b6ee1 2126for ac_signal in 1 2 13 15; do
efd58f08 2127 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b58b6ee1
DJ
2128done
2129ac_signal=0
2130
2131# confdefs.h avoids OS command line length limits that DEFS can exceed.
efd58f08
RW
2132rm -f -r conftest* confdefs.h
2133
2134$as_echo "/* confdefs.h */" > confdefs.h
b58b6ee1
DJ
2135
2136# Predefined preprocessor variables.
2137
2138cat >>confdefs.h <<_ACEOF
2139#define PACKAGE_NAME "$PACKAGE_NAME"
2140_ACEOF
2141
b58b6ee1
DJ
2142cat >>confdefs.h <<_ACEOF
2143#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2144_ACEOF
2145
b58b6ee1
DJ
2146cat >>confdefs.h <<_ACEOF
2147#define PACKAGE_VERSION "$PACKAGE_VERSION"
2148_ACEOF
2149
b58b6ee1
DJ
2150cat >>confdefs.h <<_ACEOF
2151#define PACKAGE_STRING "$PACKAGE_STRING"
2152_ACEOF
2153
b58b6ee1
DJ
2154cat >>confdefs.h <<_ACEOF
2155#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2156_ACEOF
2157
efd58f08
RW
2158cat >>confdefs.h <<_ACEOF
2159#define PACKAGE_URL "$PACKAGE_URL"
2160_ACEOF
2161
b58b6ee1
DJ
2162
2163# Let the site file select an alternate cache file if it wants to.
efd58f08
RW
2164# Prefer an explicitly selected file to automatically selected ones.
2165ac_site_file1=NONE
2166ac_site_file2=NONE
2167if test -n "$CONFIG_SITE"; then
6d3ddf51
SM
2168 # We do not want a PATH search for config.site.
2169 case $CONFIG_SITE in #((
2170 -*) ac_site_file1=./$CONFIG_SITE;;
2171 */*) ac_site_file1=$CONFIG_SITE;;
2172 *) ac_site_file1=./$CONFIG_SITE;;
2173 esac
efd58f08
RW
2174elif test "x$prefix" != xNONE; then
2175 ac_site_file1=$prefix/share/config.site
2176 ac_site_file2=$prefix/etc/config.site
2177else
2178 ac_site_file1=$ac_default_prefix/share/config.site
2179 ac_site_file2=$ac_default_prefix/etc/config.site
bafecfd6 2180fi
efd58f08
RW
2181for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2182do
2183 test "x$ac_site_file" = xNONE && continue
6d3ddf51 2184 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
efd58f08
RW
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2186$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b58b6ee1 2187 sed 's/^/| /' "$ac_site_file" >&5
6d3ddf51
SM
2188 . "$ac_site_file" \
2189 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2191as_fn_error $? "failed to load site script $ac_site_file
2192See \`config.log' for more details" "$LINENO" 5; }
bafecfd6
NN
2193 fi
2194done
2195
2196if test -r "$cache_file"; then
6d3ddf51
SM
2197 # Some versions of bash will fail to source /dev/null (special files
2198 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2199 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
efd58f08
RW
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2201$as_echo "$as_me: loading cache $cache_file" >&6;}
b58b6ee1 2202 case $cache_file in
efd58f08
RW
2203 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2204 *) . "./$cache_file";;
b58b6ee1
DJ
2205 esac
2206 fi
bafecfd6 2207else
efd58f08
RW
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2209$as_echo "$as_me: creating cache $cache_file" >&6;}
b58b6ee1
DJ
2210 >$cache_file
2211fi
2212
2213# Check that the precious variables saved in the cache have kept the same
2214# value.
2215ac_cache_corrupted=false
efd58f08 2216for ac_var in $ac_precious_vars; do
b58b6ee1
DJ
2217 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2218 eval ac_new_set=\$ac_env_${ac_var}_set
efd58f08
RW
2219 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2220 eval ac_new_val=\$ac_env_${ac_var}_value
b58b6ee1
DJ
2221 case $ac_old_set,$ac_new_set in
2222 set,)
efd58f08
RW
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2224$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b58b6ee1
DJ
2225 ac_cache_corrupted=: ;;
2226 ,set)
efd58f08
RW
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2228$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b58b6ee1
DJ
2229 ac_cache_corrupted=: ;;
2230 ,);;
2231 *)
2232 if test "x$ac_old_val" != "x$ac_new_val"; then
efd58f08
RW
2233 # differences in whitespace do not lead to failure.
2234 ac_old_val_w=`echo x $ac_old_val`
2235 ac_new_val_w=`echo x $ac_new_val`
2236 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2238$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2239 ac_cache_corrupted=:
2240 else
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2242$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2243 eval $ac_var=\$ac_old_val
2244 fi
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2246$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2248$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b58b6ee1
DJ
2249 fi;;
2250 esac
2251 # Pass precious variables to config.status.
2252 if test "$ac_new_set" = set; then
2253 case $ac_new_val in
efd58f08 2254 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b58b6ee1
DJ
2255 *) ac_arg=$ac_var=$ac_new_val ;;
2256 esac
2257 case " $ac_configure_args " in
2258 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
efd58f08 2259 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b58b6ee1
DJ
2260 esac
2261 fi
2262done
2263if $ac_cache_corrupted; then
efd58f08
RW
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2267$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
6d3ddf51 2268 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
bafecfd6 2269fi
efd58f08
RW
2270## -------------------- ##
2271## Main body of script. ##
2272## -------------------- ##
bafecfd6
NN
2273
2274ac_ext=c
bafecfd6 2275ac_cpp='$CPP $CPPFLAGS'
b58b6ee1
DJ
2276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2278ac_compiler_gnu=$ac_cv_c_compiler_gnu
2279
2280
2281
2282
b58b6ee1
DJ
2283
2284
5546e07b 2285
b58b6ee1 2286
00f8aa9c
RW
2287progname=$0
2288# if PWD already has a value, it is probably wrong.
2289if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2290
2291# Export original configure arguments for use by sub-configures.
2292# Quote arguments with shell meta charatcers.
2293TOPLEVEL_CONFIGURE_ARGUMENTS=
2294set -- "$progname" "$@"
2295for ac_arg
2296do
2297 case "$ac_arg" in
2298 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2299 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2300 # if the argument is of the form -foo=baz, quote the baz part only
2301 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2302 *) ;;
2303 esac
2304 # Add the quoted argument to the list.
2305 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2306done
2307if test "$silent" = yes; then
2308 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2309fi
2310# Remove the initial space we just introduced and, as these will be
2311# expanded by make, quote '$'.
2312TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2313
b58b6ee1
DJ
2314
2315# Find the build, host, and target systems.
bafecfd6 2316ac_aux_dir=
efd58f08 2317for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6d3ddf51
SM
2318 if test -f "$ac_dir/install-sh"; then
2319 ac_aux_dir=$ac_dir
2320 ac_install_sh="$ac_aux_dir/install-sh -c"
2321 break
2322 elif test -f "$ac_dir/install.sh"; then
2323 ac_aux_dir=$ac_dir
2324 ac_install_sh="$ac_aux_dir/install.sh -c"
2325 break
2326 elif test -f "$ac_dir/shtool"; then
2327 ac_aux_dir=$ac_dir
2328 ac_install_sh="$ac_aux_dir/shtool install -c"
2329 break
2330 fi
bafecfd6
NN
2331done
2332if test -z "$ac_aux_dir"; then
6d3ddf51 2333 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
bafecfd6 2334fi
efd58f08
RW
2335
2336# These three variables are undocumented and unsupported,
2337# and are intended to be withdrawn in a future Autoconf release.
2338# They can cause serious problems if a builder's source tree is in a directory
2339# whose full name contains unusual characters.
2340ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2341ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2342ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2343
bafecfd6 2344
b58b6ee1 2345# Make sure we can run config.sub.
efd58f08 2346$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6d3ddf51 2347 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
efd58f08
RW
2348
2349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2350$as_echo_n "checking build system type... " >&6; }
6d3ddf51 2351if ${ac_cv_build+:} false; then :
efd58f08
RW
2352 $as_echo_n "(cached) " >&6
2353else
2354 ac_build_alias=$build_alias
2355test "x$ac_build_alias" = x &&
2356 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2357test "x$ac_build_alias" = x &&
6d3ddf51 2358 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
efd58f08 2359ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6d3ddf51 2360 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
efd58f08
RW
2361
2362fi
2363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2364$as_echo "$ac_cv_build" >&6; }
2365case $ac_cv_build in
2366*-*-*) ;;
6d3ddf51 2367*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
efd58f08 2368esac
b58b6ee1 2369build=$ac_cv_build
efd58f08
RW
2370ac_save_IFS=$IFS; IFS='-'
2371set x $ac_cv_build
2372shift
2373build_cpu=$1
2374build_vendor=$2
2375shift; shift
2376# Remember, the first character of IFS is used to create $*,
2377# except with old shells:
2378build_os=$*
2379IFS=$ac_save_IFS
2380case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
bafecfd6 2381
bafecfd6 2382
b58b6ee1
DJ
2383 case ${build_alias} in
2384 "") build_noncanonical=${build} ;;
2385 *) build_noncanonical=${build_alias} ;;
f69e2532
CM
2386esac
2387
2388
f69e2532 2389
b58b6ee1
DJ
2390 case ${host_alias} in
2391 "") host_noncanonical=${build_noncanonical} ;;
2392 *) host_noncanonical=${host_alias} ;;
f69e2532
CM
2393esac
2394
f69e2532 2395
b58b6ee1
DJ
2396
2397 case ${target_alias} in
2398 "") target_noncanonical=${host_noncanonical} ;;
2399 *) target_noncanonical=${target_alias} ;;
f69e2532
CM
2400esac
2401
f69e2532 2402
b58b6ee1
DJ
2403
2404
2405test "$host_noncanonical" = "$target_noncanonical" &&
bafecfd6
NN
2406 test "$program_prefix$program_suffix$program_transform_name" = \
2407 NONENONEs,x,x, &&
b58b6ee1 2408 program_transform_name=s,y,y,
f69e2532 2409
efd58f08
RW
2410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2411$as_echo_n "checking host system type... " >&6; }
6d3ddf51 2412if ${ac_cv_host+:} false; then :
efd58f08 2413 $as_echo_n "(cached) " >&6
f69e2532 2414else
efd58f08
RW
2415 if test "x$host_alias" = x; then
2416 ac_cv_host=$ac_cv_build
2417else
2418 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6d3ddf51 2419 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
efd58f08 2420fi
b58b6ee1
DJ
2421
2422fi
efd58f08
RW
2423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2424$as_echo "$ac_cv_host" >&6; }
2425case $ac_cv_host in
2426*-*-*) ;;
6d3ddf51 2427*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
efd58f08 2428esac
b58b6ee1 2429host=$ac_cv_host
efd58f08
RW
2430ac_save_IFS=$IFS; IFS='-'
2431set x $ac_cv_host
2432shift
2433host_cpu=$1
2434host_vendor=$2
2435shift; shift
2436# Remember, the first character of IFS is used to create $*,
2437# except with old shells:
2438host_os=$*
2439IFS=$ac_save_IFS
2440case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
b58b6ee1
DJ
2441
2442
efd58f08
RW
2443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2444$as_echo_n "checking target system type... " >&6; }
6d3ddf51 2445if ${ac_cv_target+:} false; then :
efd58f08 2446 $as_echo_n "(cached) " >&6
b58b6ee1 2447else
efd58f08
RW
2448 if test "x$target_alias" = x; then
2449 ac_cv_target=$ac_cv_host
2450else
2451 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6d3ddf51 2452 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
efd58f08 2453fi
b58b6ee1 2454
f69e2532 2455fi
efd58f08
RW
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2457$as_echo "$ac_cv_target" >&6; }
2458case $ac_cv_target in
2459*-*-*) ;;
6d3ddf51 2460*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
efd58f08 2461esac
b58b6ee1 2462target=$ac_cv_target
efd58f08
RW
2463ac_save_IFS=$IFS; IFS='-'
2464set x $ac_cv_target
2465shift
2466target_cpu=$1
2467target_vendor=$2
2468shift; shift
2469# Remember, the first character of IFS is used to create $*,
2470# except with old shells:
2471target_os=$*
2472IFS=$ac_save_IFS
2473case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b58b6ee1
DJ
2474
2475
2476# The aliases save the names the user supplied, while $host etc.
2477# will get canonicalized.
2478test -n "$target_alias" &&
2479 test "$program_prefix$program_suffix$program_transform_name" = \
2480 NONENONEs,x,x, &&
2481 program_prefix=${target_alias}-
efd58f08 2482
bafecfd6 2483test "$program_prefix" != NONE &&
efd58f08 2484 program_transform_name="s&^&$program_prefix&;$program_transform_name"
bafecfd6
NN
2485# Use a double $ so make ignores it.
2486test "$program_suffix" != NONE &&
efd58f08
RW
2487 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2488# Double any \ or $.
b58b6ee1 2489# By default was `s,x,x', remove it if useless.
efd58f08
RW
2490ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2491program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
f69e2532 2492
bafecfd6
NN
2493
2494
282c0e47
NN
2495# Get 'install' or 'install-sh' and its variants.
2496# Find a good install program. We prefer a C program (faster),
2497# so one script is as good as another. But avoid the broken or
2498# incompatible versions:
2499# SysV /etc/install, /usr/sbin/install
2500# SunOS /usr/etc/install
2501# IRIX /sbin/install
2502# AIX /bin/install
b58b6ee1 2503# AmigaOS /C/install, which installs bootblocks on floppy discs
282c0e47
NN
2504# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2505# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2506# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
b58b6ee1 2507# OS/2's system install, which has a completely different semantic
282c0e47 2508# ./install, which can be erroneously created by make from ./install.sh.
e30fd60f 2509# Reject install programs that cannot install multiple files.
efd58f08
RW
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2511$as_echo_n "checking for a BSD-compatible install... " >&6; }
282c0e47 2512if test -z "$INSTALL"; then
6d3ddf51 2513if ${ac_cv_path_install+:} false; then :
efd58f08 2514 $as_echo_n "(cached) " >&6
b58b6ee1
DJ
2515else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517for as_dir in $PATH
2518do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
efd58f08
RW
2521 # Account for people who put trailing slashes in PATH elements.
2522case $as_dir/ in #((
2523 ./ | .// | /[cC]/* | \
b58b6ee1 2524 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
efd58f08 2525 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b58b6ee1
DJ
2526 /usr/ucb/* ) ;;
2527 *)
2528 # OSF1 and SCO ODT 3.0 have their own names for install.
2529 # Don't use installbsd from OSF since it installs stuff as root
2530 # by default.
2531 for ac_prog in ginstall scoinst install; do
2532 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 2533 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
282c0e47 2534 if test $ac_prog = install &&
b58b6ee1 2535 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
282c0e47
NN
2536 # AIX install. It has an incompatible calling convention.
2537 :
b58b6ee1
DJ
2538 elif test $ac_prog = install &&
2539 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2540 # program-specific install script used by HP pwplus--don't use.
2541 :
282c0e47 2542 else
e30fd60f
RW
2543 rm -rf conftest.one conftest.two conftest.dir
2544 echo one > conftest.one
2545 echo two > conftest.two
2546 mkdir conftest.dir
2547 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2548 test -s conftest.one && test -s conftest.two &&
2549 test -s conftest.dir/conftest.one &&
2550 test -s conftest.dir/conftest.two
2551 then
2552 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2553 break 3
2554 fi
282c0e47
NN
2555 fi
2556 fi
2557 done
b58b6ee1
DJ
2558 done
2559 ;;
2560esac
efd58f08
RW
2561
2562 done
2563IFS=$as_save_IFS
b58b6ee1 2564
e30fd60f 2565rm -rf conftest.one conftest.two conftest.dir
282c0e47
NN
2566
2567fi
2568 if test "${ac_cv_path_install+set}" = set; then
b58b6ee1 2569 INSTALL=$ac_cv_path_install
282c0e47 2570 else
e30fd60f
RW
2571 # As a last resort, use the slow shell script. Don't cache a
2572 # value for INSTALL within a source directory, because that will
282c0e47 2573 # break other packages using the cache if that directory is
e30fd60f 2574 # removed, or if the value is a relative name.
b58b6ee1 2575 INSTALL=$ac_install_sh
282c0e47
NN
2576 fi
2577fi
efd58f08
RW
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2579$as_echo "$INSTALL" >&6; }
282c0e47
NN
2580
2581# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2582# It thinks the first close brace ends the variable substitution.
2583test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2584
b58b6ee1 2585test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
282c0e47
NN
2586
2587test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2588
efd58f08
RW
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2590$as_echo_n "checking whether ln works... " >&6; }
6d3ddf51 2591if ${acx_cv_prog_LN+:} false; then :
efd58f08 2592 $as_echo_n "(cached) " >&6
21ff191e
PB
2593else
2594 rm -f conftestdata_t
2595echo >conftestdata_f
2596if ln conftestdata_f conftestdata_t 2>/dev/null
2597then
2598 acx_cv_prog_LN=ln
2599else
2600 acx_cv_prog_LN=no
2601fi
2602rm -f conftestdata_f conftestdata_t
2603
2604fi
2605if test $acx_cv_prog_LN = no; then
2606 LN="cp"
efd58f08
RW
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2608$as_echo "no, using $LN" >&6; }
21ff191e
PB
2609else
2610 LN="$acx_cv_prog_LN"
efd58f08
RW
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2612$as_echo "yes" >&6; }
21ff191e
PB
2613fi
2614
efd58f08
RW
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2616$as_echo_n "checking whether ln -s works... " >&6; }
b58b6ee1
DJ
2617LN_S=$as_ln_s
2618if test "$LN_S" = "ln -s"; then
efd58f08
RW
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2620$as_echo "yes" >&6; }
f69e2532 2621else
efd58f08
RW
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2623$as_echo "no, using $LN_S" >&6; }
35269421
PB
2624fi
2625
a8a01987
PB
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2627$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6d3ddf51 2628if ${ac_cv_path_SED+:} false; then :
a8a01987
PB
2629 $as_echo_n "(cached) " >&6
2630else
2631 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2632 for ac_i in 1 2 3 4 5 6 7; do
2633 ac_script="$ac_script$as_nl$ac_script"
2634 done
2635 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2636 { ac_script=; unset ac_script;}
2637 if test -z "$SED"; then
2638 ac_path_SED_found=false
2639 # Loop through the user's path and test for each of PROGNAME-LIST
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641for as_dir in $PATH
2642do
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 for ac_prog in sed gsed; do
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6d3ddf51 2648 as_fn_executable_p "$ac_path_SED" || continue
a8a01987
PB
2649# Check for GNU ac_path_SED and select it if it is found.
2650 # Check for GNU $ac_path_SED
2651case `"$ac_path_SED" --version 2>&1` in
2652*GNU*)
2653 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2654*)
2655 ac_count=0
2656 $as_echo_n 0123456789 >"conftest.in"
2657 while :
2658 do
2659 cat "conftest.in" "conftest.in" >"conftest.tmp"
2660 mv "conftest.tmp" "conftest.in"
2661 cp "conftest.in" "conftest.nl"
2662 $as_echo '' >> "conftest.nl"
2663 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2665 as_fn_arith $ac_count + 1 && ac_count=$as_val
2666 if test $ac_count -gt ${ac_path_SED_max-0}; then
2667 # Best one so far, save it but keep looking for a better one
2668 ac_cv_path_SED="$ac_path_SED"
2669 ac_path_SED_max=$ac_count
2670 fi
2671 # 10*(2^10) chars as input seems more than enough
2672 test $ac_count -gt 10 && break
2673 done
2674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2675esac
2676
2677 $ac_path_SED_found && break 3
2678 done
2679 done
2680 done
2681IFS=$as_save_IFS
2682 if test -z "$ac_cv_path_SED"; then
6d3ddf51 2683 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
a8a01987
PB
2684 fi
2685else
2686 ac_cv_path_SED=$SED
2687fi
2688
2689fi
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2691$as_echo "$ac_cv_path_SED" >&6; }
2692 SED="$ac_cv_path_SED"
2693 rm -f conftest.sed
2694
2695for ac_prog in gawk mawk nawk awk
2696do
2697 # Extract the first word of "$ac_prog", so it can be a program name with args.
2698set dummy $ac_prog; ac_word=$2
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 2701if ${ac_cv_prog_AWK+:} false; then :
a8a01987
PB
2702 $as_echo_n "(cached) " >&6
2703else
2704 if test -n "$AWK"; then
2705 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2706else
2707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708for as_dir in $PATH
2709do
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 2713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a8a01987
PB
2714 ac_cv_prog_AWK="$ac_prog"
2715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 break 2
2717 fi
2718done
2719 done
2720IFS=$as_save_IFS
2721
2722fi
2723fi
2724AWK=$ac_cv_prog_AWK
2725if test -n "$AWK"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2727$as_echo "$AWK" >&6; }
2728else
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730$as_echo "no" >&6; }
2731fi
2732
2733
2734 test -n "$AWK" && break
2735done
2736
282c0e47 2737
714fa3b8
DJ
2738srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2739
2740# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2741# a relative path.
2742if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2743 INSTALL="${srcpwd}/install-sh -c"
2744fi
2745
bafecfd6
NN
2746# Set srcdir to "." if that's what it is.
2747# This is important for multilib support.
2748pwd=`${PWDCMD-pwd}`
bafecfd6
NN
2749if test "${pwd}" = "${srcpwd}" ; then
2750 srcdir=.
a3acbf46
RH
2751fi
2752
bafecfd6 2753topsrcdir=$srcpwd
a3acbf46 2754
bafecfd6 2755extra_host_args=
afdaeaab 2756
bafecfd6
NN
2757### To add a new directory to the tree, first choose whether it is a target
2758### or a host dependent tool. Then put it into the appropriate list
2759### (library or tools, host or target), doing a dependency sort.
a3acbf46 2760
b58b6ee1 2761# Subdirs will be configured in the order listed in build_configdirs,
bafecfd6 2762# configdirs, or target_configdirs; see the serialization section below.
a3acbf46 2763
b58b6ee1
DJ
2764# Dependency sorting is only needed when *configuration* must be done in
2765# a particular order. In all cases a dependency should be specified in
bafecfd6 2766# the Makefile, whether or not it's implicitly specified here.
a3acbf46 2767
bafecfd6
NN
2768# Double entries in build_configdirs, configdirs, or target_configdirs may
2769# cause circular dependencies and break everything horribly.
a3acbf46 2770
2cb47d68
PB
2771# these library is used by various programs built for the build
2772# environment
2773#
fe508576 2774build_libs="build-libiberty build-libcpp"
2cb47d68
PB
2775
2776# these tools are built for the build environment
64196564 2777build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2cb47d68 2778
bafecfd6 2779# these libraries are used by various programs built for the host environment
fe508576
CV
2780#f
2781host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
bafecfd6 2782
bafecfd6
NN
2783# these tools are built for the host environment
2784# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2785# know that we are building the simulator.
2786# binutils, gas and ld appear in that order because it makes sense to run
2787# "make check" in that particular order.
32c2e09b 2788# If --enable-gold is used, "gold" may replace "ld".
fe508576 2789host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
bafecfd6
NN
2790
2791# libgcj represents the runtime libraries only used by gcj.
2792libgcj="target-libffi \
bafecfd6 2793 target-zlib \
bafecfd6
NN
2794 target-libjava"
2795
2796# these libraries are built for the target environment, and are built after
2797# the host libraries and the host tools (which may be a cross compiler)
c9161585 2798# Note that libiberty is not a target library.
1277a9a0 2799target_libraries="target-libgcc \
0c770d16 2800 target-libbacktrace \
bafecfd6
NN
2801 target-libgloss \
2802 target-newlib \
a8c17d42 2803 target-libgomp \
fe508576
CV
2804 target-libcilkrts \
2805 target-liboffloadmic \
a626f4ee 2806 target-libatomic \
068a111a 2807 target-libitm \
76ab491a 2808 target-libstdc++-v3 \
5094cf21 2809 target-libsanitizer \
111ced6d 2810 target-libvtv \
fe508576 2811 target-libmpx \
2c193664 2812 target-libssp \
d5b7129a 2813 target-libquadmath \
cb2333e8 2814 target-libgfortran \
e1e5148c 2815 target-boehm-gc \
6f2480fb 2816 ${libgcj} \
d832a288 2817 target-libobjc \
d5b7129a
ILT
2818 target-libada \
2819 target-libgo"
bafecfd6 2820
5283b643
NN
2821# these tools are built using the target libraries, and are intended to
2822# run only in the target environment
bafecfd6 2823#
5283b643 2824# note: any program that *uses* libraries that are in the "target_libraries"
5b45e8c9 2825# list belongs in this list.
bafecfd6 2826#
64196564 2827target_tools="target-rda"
a3acbf46 2828
bafecfd6 2829################################################################################
a3acbf46 2830
bafecfd6
NN
2831## All tools belong in one of the four categories, and are assigned above
2832## We assign ${configdirs} this way to remove all embedded newlines. This
2833## is important because configure will choke if they ever get through.
2834## ${configdirs} is directories we build using the host tools.
2835## ${target_configdirs} is directories we build using the target tools.
bafecfd6 2836configdirs=`echo ${host_libs} ${host_tools}`
5283b643 2837target_configdirs=`echo ${target_libraries} ${target_tools}`
607d4caf 2838build_configdirs=`echo ${build_libs} ${build_tools}`
9b520963 2839
3fbb5e3d
PB
2840
2841
bafecfd6 2842################################################################################
a3acbf46 2843
bafecfd6 2844srcname="gnu development package"
a3acbf46 2845
bafecfd6
NN
2846# This gets set non-empty for some net releases of packages.
2847appdirs=""
a3acbf46 2848
bafecfd6
NN
2849# Define is_cross_compiler to save on calls to 'test'.
2850is_cross_compiler=
2851if test x"${host}" = x"${target}" ; then
2852 is_cross_compiler=no
a3acbf46 2853else
bafecfd6 2854 is_cross_compiler=yes
b58b6ee1 2855fi
a3acbf46 2856
df4b5a9c 2857# Find the build and target subdir names.
9b520963 2858
3160f998
DJ
2859# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2860# have matching libraries, they should use host libraries: Makefile.tpl
2861# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2862# However, they still use the build modules, because the corresponding
2863# host modules (e.g. bison) are only built for the host when bootstrap
2864# finishes. So:
2865# - build_subdir is where we find build modules, and never changes.
2866# - build_libsubdir is where we find build libraries, and can be overridden.
2867
2868# Prefix 'build-' so this never conflicts with target_subdir.
9b520963 2869build_subdir="build-${build_noncanonical}"
b58b6ee1 2870
efd58f08
RW
2871# Check whether --with-build-libsubdir was given.
2872if test "${with_build_libsubdir+set}" = set; then :
2873 withval=$with_build_libsubdir; build_libsubdir="$withval"
3160f998
DJ
2874else
2875 build_libsubdir="$build_subdir"
efd58f08
RW
2876fi
2877
7fc2ca22
PB
2878# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2879if ( test $srcdir = . && test -d gcc ) \
2880 || test -d $srcdir/../host-${host_noncanonical}; then
2881 host_subdir="host-${host_noncanonical}"
2882else
2883 host_subdir=.
2884fi
9b520963
NN
2885# No prefix.
2886target_subdir=${target_noncanonical}
b58b6ee1 2887
8980b9ad
RW
2888# Be sure to cover against remnants of an in-tree build.
2889if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
6d3ddf51 2890 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
8980b9ad
RW
2891Use a pristine source tree when building in a separate tree" "$LINENO" 5
2892fi
a3acbf46 2893
bafecfd6
NN
2894# Skipdirs are removed silently.
2895skipdirs=
2896# Noconfigdirs are removed loudly.
2897noconfigdirs=""
a3acbf46 2898
bafecfd6
NN
2899use_gnu_ld=
2900# Make sure we don't let GNU ld be added if we didn't want it.
2901if test x$with_gnu_ld = xno ; then
2902 use_gnu_ld=no
b916272a 2903 noconfigdirs="$noconfigdirs ld gold"
a3acbf46
RH
2904fi
2905
bafecfd6
NN
2906use_gnu_as=
2907# Make sure we don't let GNU as be added if we didn't want it.
2908if test x$with_gnu_as = xno ; then
2909 use_gnu_as=no
2910 noconfigdirs="$noconfigdirs gas"
a3acbf46
RH
2911fi
2912
bd45d6fa 2913use_included_zlib=
fe508576
CV
2914
2915# Check whether --with-system-zlib was given.
2916if test "${with_system_zlib+set}" = set; then :
2917 withval=$with_system_zlib;
2918fi
2919
bd45d6fa
ILT
2920# Make sure we don't let ZLIB be added if we didn't want it.
2921if test x$with_system_zlib = xyes ; then
2922 use_included_zlib=no
2923 noconfigdirs="$noconfigdirs zlib"
2924fi
2925
b58b6ee1 2926# some tools are so dependent upon X11 that if we're not building with X,
bafecfd6 2927# it's not even worth trying to configure, much less build, that tool.
a3acbf46 2928
bafecfd6
NN
2929case ${with_x} in
2930 yes | "") ;; # the default value for this tree is that X11 is available
2931 no)
44397772 2932 skipdirs="${skipdirs} tk itcl libgui"
bafecfd6 2933 # We won't be able to build gdbtk without X.
b58b6ee1 2934 enable_gdbtk=no
bafecfd6
NN
2935 ;;
2936 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2937esac
a3acbf46 2938
5b45e8c9 2939# Some are only suitable for cross toolchains.
bafecfd6
NN
2940# Remove these if host=target.
2941cross_only="target-libgloss target-newlib target-opcodes"
2942
2943case $is_cross_compiler in
2944 no) skipdirs="${skipdirs} ${cross_only}" ;;
bafecfd6 2945esac
a3acbf46 2946
bafecfd6
NN
2947# If both --with-headers and --with-libs are specified, default to
2948# --without-newlib.
09ebdaf7
RS
2949if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2950 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
bafecfd6
NN
2951 if test x"${with_newlib}" = x ; then
2952 with_newlib=no
2953 fi
a3acbf46
RH
2954fi
2955
bafecfd6
NN
2956# Recognize --with-newlib/--without-newlib.
2957case ${with_newlib} in
2958 no) skipdirs="${skipdirs} target-newlib" ;;
2959 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2960esac
a3acbf46 2961
fe508576
CV
2962# Check whether --enable-as-accelerator-for was given.
2963if test "${enable_as_accelerator_for+set}" = set; then :
2964 enableval=$enable_as_accelerator_for;
2965fi
2966
2967
2968# Check whether --enable-offload-targets was given.
2969if test "${enable_offload_targets+set}" = set; then :
2970 enableval=$enable_offload_targets;
2971 if test x"$enable_offload_targets" = x; then
6d3ddf51 2972 as_fn_error $? "no offload targets specified" "$LINENO" 5
fe508576
CV
2973 fi
2974
2975else
2976 enable_offload_targets=
2977fi
2978
2979
679e4c82
NC
2980# Handle --enable-gold, --enable-ld.
2981# --disable-gold [--enable-ld]
2982# Build only ld. Default option.
6805373e
L
2983# --enable-gold [--enable-ld]
2984# Build both gold and ld. Install gold as "ld.gold", install ld
2985# as "ld.bfd" and "ld".
2986# --enable-gold=default [--enable-ld]
679e4c82
NC
2987# Build both gold and ld. Install gold as "ld.gold" and "ld",
2988# install ld as "ld.bfd".
2989# --enable-gold[=default] --disable-ld
2990# Build only gold, which is then installed as both "ld.gold" and "ld".
2991# --enable-gold --enable-ld=default
6805373e
L
2992# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2993# and ld.bfd).
679e4c82
NC
2994# In other words, ld is default
2995# --enable-gold=default --enable-ld=default
2996# Error.
2997
2998default_ld=
efd58f08
RW
2999# Check whether --enable-gold was given.
3000if test "${enable_gold+set}" = set; then :
3001 enableval=$enable_gold; ENABLE_GOLD=$enableval
b916272a
ILT
3002else
3003 ENABLE_GOLD=no
efd58f08
RW
3004fi
3005
679e4c82
NC
3006case "${ENABLE_GOLD}" in
3007 yes|default)
32c2e09b
NC
3008 # Check for ELF target.
3009 is_elf=no
3010 case "${target}" in
3011 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0d6e26f8 3012 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
573c698a 3013 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
8a563bfd 3014 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
32c2e09b
NC
3015 case "${target}" in
3016 *-*-linux*aout* | *-*-linux*oldld*)
3017 ;;
3018 *)
3019 is_elf=yes
3020 ;;
3021 esac
3022 esac
3023
3024 if test "$is_elf" = "yes"; then
3025 # Check for target supported by gold.
b916272a 3026 case "${target}" in
fe508576
CV
3027 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3028 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
679e4c82
NC
3029 configdirs="$configdirs gold"
3030 if test x${ENABLE_GOLD} = xdefault; then
3031 default_ld=gold
3032 fi
32c2e09b 3033 ENABLE_GOLD=yes
b916272a
ILT
3034 ;;
3035 esac
32c2e09b
NC
3036 fi
3037 ;;
3038 no)
3039 ;;
3040 *)
6d3ddf51 3041 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
32c2e09b 3042 ;;
679e4c82
NC
3043esac
3044
3045# Check whether --enable-ld was given.
3046if test "${enable_ld+set}" = set; then :
3047 enableval=$enable_ld; ENABLE_LD=$enableval
3048else
3049 ENABLE_LD=yes
3050fi
3051
3052
3053case "${ENABLE_LD}" in
3054 default)
6805373e 3055 if test x${default_ld} != x; then
6d3ddf51 3056 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
679e4c82
NC
3057 fi
3058 ;;
3059 yes)
3060 ;;
3061 no)
3062 if test x${ENABLE_GOLD} != xyes; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3064$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3065 fi
3066 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3067 ;;
3068 *)
6d3ddf51 3069 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
679e4c82
NC
3070 ;;
3071esac
b916272a 3072
fe508576
CV
3073# PR gas/19109
3074# Decide the default method for compressing debug sections.
3075# Provide a configure time option to override our default.
3076# Check whether --enable-compressed_debug_sections was given.
3077if test "${enable_compressed_debug_sections+set}" = set; then :
3078 enableval=$enable_compressed_debug_sections;
3079 if test x"$enable_compressed_debug_sections" = xyes; then
6d3ddf51 3080 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
fe508576
CV
3081 fi
3082
3083else
3084 enable_compressed_debug_sections=
3085fi
3086
3087
bafecfd6 3088# Configure extra directories which are host specific
a3acbf46 3089
bafecfd6
NN
3090case "${host}" in
3091 *-cygwin*)
3092 configdirs="$configdirs libtermcap" ;;
3093esac
a3acbf46 3094
aac893c5
HPN
3095# A target can indicate whether a language isn't supported for some reason.
3096# Only spaces may be used in this macro; not newlines or tabs.
3097unsupported_languages=
3098
b58b6ee1 3099# Remove more programs from consideration, based on the host or
bafecfd6
NN
3100# target this usually means that a port of the program doesn't
3101# exist yet.
a3acbf46 3102
bafecfd6 3103case "${host}" in
4e55c4e3 3104 i[3456789]86-*-msdosdjgpp*)
44dabc08 3105 noconfigdirs="$noconfigdirs tcl tk itcl"
bafecfd6 3106 ;;
bafecfd6 3107esac
a3acbf46 3108
cb2333e8 3109
d4b54911
PB
3110# Check whether --enable-libquadmath was given.
3111if test "${enable_libquadmath+set}" = set; then :
3112 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3113else
3114 ENABLE_LIBQUADMATH=yes
3115fi
3116
3117if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3118 noconfigdirs="$noconfigdirs target-libquadmath"
3119fi
3120
3121
3122# Check whether --enable-libquadmath-support was given.
3123if test "${enable_libquadmath_support+set}" = set; then :
3124 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3125else
3126 ENABLE_LIBQUADMATH_SUPPORT=yes
3127fi
3128
3129enable_libquadmath_support=
3130if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3131 enable_libquadmath_support=no
3132fi
3133
3134
efd58f08
RW
3135# Check whether --enable-libada was given.
3136if test "${enable_libada+set}" = set; then :
3137 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d832a288
DD
3138else
3139 ENABLE_LIBADA=yes
efd58f08
RW
3140fi
3141
d832a288 3142if test "${ENABLE_LIBADA}" != "yes" ; then
7fc2ca22 3143 noconfigdirs="$noconfigdirs gnattools"
d832a288
DD
3144fi
3145
efd58f08
RW
3146# Check whether --enable-libssp was given.
3147if test "${enable_libssp+set}" = set; then :
3148 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
fa19ba07
KH
3149else
3150 ENABLE_LIBSSP=yes
efd58f08
RW
3151fi
3152
fa19ba07 3153
5ec30f78
L
3154# Check whether --enable-libstdcxx was given.
3155if test "${enable_libstdcxx+set}" = set; then :
3156 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3157else
3158 ENABLE_LIBSTDCXX=default
3159fi
3160
3161if test "${ENABLE_LIBSTDCXX}" = "no" ; then
fe508576
CV
3162 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3163fi
3164
3165# If this is accelerator compiler and its target is intelmic we enable
3166# target liboffloadmic by default. If this is compiler with offloading
3167# for intelmic we enable host liboffloadmic by default. Otherwise
3168# liboffloadmic is disabled by default.
3169# Check whether --enable-liboffloadmic was given.
3170if test "${enable_liboffloadmic+set}" = set; then :
3171 enableval=$enable_liboffloadmic; case "$enableval" in
3172 no | host | target)
3173 enable_liboffloadmic=$enableval ;;
3174 *)
6d3ddf51 3175 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
fe508576
CV
3176esac
3177else
3178 if test x"$enable_as_accelerator_for" != x; then
3179 case "${target}" in
3180 *-intelmic-* | *-intelmicemul-*)
3181 enable_liboffloadmic=target
3182 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3183 ;;
3184 *)
3185 enable_liboffloadmic=no
3186 ;;
3187 esac
3188else
3189 case "${enable_offload_targets}" in
3190 *-intelmic-* | *-intelmicemul-*)
3191 enable_liboffloadmic=host
3192 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3193 ;;
3194 *)
3195 enable_liboffloadmic=no
3196 ;;
3197 esac
3198fi
5ec30f78
L
3199fi
3200
fe508576
CV
3201
3202
bafecfd6
NN
3203# Save it here so that, even in case of --enable-libgcj, if the Java
3204# front-end isn't enabled, we still get libgcj disabled.
3205libgcj_saved=$libgcj
3206case $enable_libgcj in
3207yes)
3208 # If we reset it here, it won't get added to noconfigdirs in the
3209 # target-specific build rules, so it will be forcibly enabled
3210 # (unless the Java language itself isn't enabled).
3211 libgcj=
3212 ;;
3213no)
3214 # Make sure we get it printed in the list of not supported target libs.
77a5d6cc
ILT
3215 # Don't disable libffi, though, other languages use it.
3216 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
8acbc359
ILT
3217 # Clear libgcj_saved so that even if java is enabled libffi won't be
3218 # built.
3219 libgcj_saved=
bafecfd6
NN
3220 ;;
3221esac
a3acbf46 3222
c9161585
ILT
3223# Check whether --enable-static-libjava was given.
3224if test "${enable_static_libjava+set}" = set; then :
3225 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3226else
3227 ENABLE_STATIC_LIBJAVA=no
3228fi
3229
3230enable_static_libjava=
3231if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3232 enable_static_libjava=yes
3233fi
3234
3235if test x$enable_static_libjava != xyes ; then
3236 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3237fi
3238
cb2333e8 3239
fe508576 3240# Enable libgomp by default on hosted POSIX systems, and a few others.
f621a0dc 3241if test x$enable_libgomp = x ; then
00bc9d7f 3242 case "${target}" in
9f8da9ce 3243 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
00bc9d7f 3244 ;;
573c698a 3245 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
00bc9d7f 3246 ;;
d3f6480e 3247 *-*-solaris2* | *-*-hpux11*)
00bc9d7f
PB
3248 ;;
3249 *-*-darwin* | *-*-aix*)
3250 ;;
fe508576
CV
3251 nvptx*-*-*)
3252 ;;
00bc9d7f
PB
3253 *)
3254 noconfigdirs="$noconfigdirs target-libgomp"
3255 ;;
3256 esac
f621a0dc 3257fi
00bc9d7f 3258
a626f4ee
L
3259# Disable libatomic on unsupported systems.
3260if test -d ${srcdir}/libatomic; then
3261 if test x$enable_libatomic = x; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3263$as_echo_n "checking for libatomic support... " >&6; }
3264 if (srcdir=${srcdir}/libatomic; \
3265 . ${srcdir}/configure.tgt; \
3266 test -n "$UNSUPPORTED")
3267 then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269$as_echo "no" >&6; }
3270 noconfigdirs="$noconfigdirs target-libatomic"
3271 else
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3273$as_echo "yes" >&6; }
3274 fi
3275 fi
3276fi
3277
fe508576
CV
3278# Disable libcilkrts on unsupported systems.
3279if test -d ${srcdir}/libcilkrts; then
3280 if test x$enable_libcilkrts = x; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3282$as_echo_n "checking for libcilkrts support... " >&6; }
3283 if (srcdir=${srcdir}/libcilkrts; \
3284 . ${srcdir}/configure.tgt; \
3285 test -n "$UNSUPPORTED")
3286 then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288$as_echo "no" >&6; }
3289 noconfigdirs="$noconfigdirs target-libcilkrts"
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3292$as_echo "yes" >&6; }
3293 fi
3294 fi
3295fi
3296
3297# Disable liboffloadmic on unsupported systems.
3298if test -d ${srcdir}/liboffloadmic; then
3299 if test x$enable_liboffloadmic != xno; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3301$as_echo_n "checking for liboffloadmic support... " >&6; }
3302 if (srcdir=${srcdir}/liboffloadmic; \
3303 . ${srcdir}/configure.tgt; \
3304 test -n "$UNSUPPORTED")
3305 then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307$as_echo "no" >&6; }
3308 noconfigdirs="$noconfigdirs target-liboffloadmic"
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311$as_echo "yes" >&6; }
3312 fi
3313 fi
3314fi
3315
068a111a
RH
3316# Disable libitm on unsupported systems.
3317if test -d ${srcdir}/libitm; then
3318 if test x$enable_libitm = x; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3320$as_echo_n "checking for libitm support... " >&6; }
3321 if (srcdir=${srcdir}/libitm; \
3322 . ${srcdir}/configure.tgt; \
3323 test -n "$UNSUPPORTED")
3324 then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326$as_echo "no" >&6; }
3327 noconfigdirs="$noconfigdirs target-libitm"
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3330$as_echo "yes" >&6; }
3331 fi
3332 fi
3333fi
3334
5094cf21
L
3335# Disable libsanitizer on unsupported systems.
3336if test -d ${srcdir}/libsanitizer; then
3337 if test x$enable_libsanitizer = x; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3339$as_echo_n "checking for libsanitizer support... " >&6; }
3340 if (srcdir=${srcdir}/libsanitizer; \
3341 . ${srcdir}/configure.tgt; \
3342 test -n "$UNSUPPORTED")
3343 then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345$as_echo "no" >&6; }
3346 noconfigdirs="$noconfigdirs target-libsanitizer"
3347 else
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3349$as_echo "yes" >&6; }
3350 fi
3351 fi
3352fi
3353
111ced6d
JBG
3354# Disable libvtv on unsupported systems.
3355if test -d ${srcdir}/libvtv; then
3356 if test x$enable_libvtv = x; then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3358$as_echo_n "checking for libvtv support... " >&6; }
3359 if (srcdir=${srcdir}/libvtv; \
3360 . ${srcdir}/configure.tgt; \
3361 test "$VTV_SUPPORTED" != "yes")
3362 then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364$as_echo "no" >&6; }
3365 noconfigdirs="$noconfigdirs target-libvtv"
3366 else
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3368$as_echo "yes" >&6; }
3369 fi
3370 fi
3371fi
3372
fe508576
CV
3373
3374# Enable libmpx on supported systems by request.
3375if test -d ${srcdir}/libmpx; then
3376 if test x$enable_libmpx = x; then
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3378$as_echo_n "checking for libmpx support... " >&6; }
3379 if (srcdir=${srcdir}/libmpx; \
3380 . ${srcdir}/configure.tgt; \
3381 test "$LIBMPX_SUPPORTED" != "yes")
3382 then
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384$as_echo "no" >&6; }
3385 noconfigdirs="$noconfigdirs target-libmpx"
3386 else
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3388$as_echo "yes" >&6; }
3389 fi
3390 fi
3391fi
3392
3393
3394
ddb7b65a
DE
3395# Disable libquadmath for some systems.
3396case "${target}" in
5094cf21
L
3397 avr-*-*)
3398 noconfigdirs="$noconfigdirs target-libquadmath"
3399 ;;
ddb7b65a
DE
3400 # libquadmath is unused on AIX and libquadmath build process use of
3401 # LD_LIBRARY_PATH can break AIX bootstrap.
3402 powerpc-*-aix* | rs6000-*-aix*)
3403 noconfigdirs="$noconfigdirs target-libquadmath"
3404 ;;
3405esac
3406
d36ed46d
JM
3407# Disable libssp for some systems.
3408case "${target}" in
3409 avr-*-*)
e974e7a0 3410 # No hosted I/O support.
d36ed46d
JM
3411 noconfigdirs="$noconfigdirs target-libssp"
3412 ;;
3413 powerpc-*-aix* | rs6000-*-aix*)
3414 noconfigdirs="$noconfigdirs target-libssp"
3415 ;;
a4cff05a 3416 rl78-*-*)
0c910152
NC
3417 # libssp uses a misaligned load to trigger a fault, but the RL78
3418 # doesn't fault for those - instead, it gives a build-time error
3419 # for explicit misaligned loads.
a4cff05a
DD
3420 noconfigdirs="$noconfigdirs target-libssp"
3421 ;;
fe508576
CV
3422 visium-*-*)
3423 # No hosted I/O support.
3424 noconfigdirs="$noconfigdirs target-libssp"
3425 ;;
d36ed46d
JM
3426esac
3427
d36ed46d 3428# Disable libstdc++-v3 for some systems.
5ec30f78
L
3429# Allow user to override this if they pass --enable-libstdc++-v3
3430if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3431 case "${target}" in
3432 *-*-vxworks*)
3433 # VxWorks uses the Dinkumware C++ library.
3434 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3435 ;;
3436 arm*-wince-pe*)
3437 # the C++ libraries don't build on top of CE's C libraries
3438 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3439 ;;
3440 avr-*-*)
3441 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3442 ;;
fe508576
CV
3443 ft32-*-*)
3444 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3445 ;;
5ec30f78
L
3446 esac
3447fi
d36ed46d
JM
3448
3449# Disable Fortran for some systems.
3450case "${target}" in
3451 mmix-*-*)
3452 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3453 unsupported_languages="$unsupported_languages fortran"
3454 ;;
3455esac
3456
fdb1f028 3457# Disable Java if libffi is not supported.
4819e64b 3458case "${target}" in
35b79fa5
JBG
3459 aarch64-*-*)
3460 ;;
fdb1f028
JM
3461 alpha*-*-*)
3462 ;;
3463 arm*-*-*)
3464 ;;
3465 cris-*-*)
3466 ;;
3467 frv-*-*)
3468 ;;
3469 hppa*-*-linux*)
3470 ;;
3471 hppa*-*-hpux*)
3472 ;;
3473 i?86-*-*)
3474 ;;
3475 ia64*-*-*)
3476 ;;
3477 m32r*-*-*)
3478 ;;
3479 m68k-*-*)
3480 ;;
d3f6480e 3481 mips*-*-rtems*)
fdb1f028
JM
3482 ;;
3483 mips*-*-linux*)
3484 ;;
3485 powerpc*-*-linux*)
3486 ;;
3487 powerpc-*-darwin*)
3488 ;;
3489 powerpc-*-aix* | rs6000-*-aix*)
3490 ;;
3491 powerpc-*-freebsd*)
3492 ;;
3493 powerpc64-*-freebsd*)
3494 ;;
3495 powerpc*-*-rtems*)
4819e64b 3496 ;;
fdb1f028
JM
3497 s390-*-* | s390x-*-*)
3498 ;;
3499 sh-*-* | sh[34]*-*-*)
3500 ;;
fdb1f028
JM
3501 sparc*-*-*)
3502 ;;
3503 x86_64-*-*)
3504 ;;
3505 *-*-*)
3506 unsupported_languages="$unsupported_languages java"
3507 ;;
3508esac
3509
3510# Disable Java, libgcj or related libraries for some systems.
3511case "${target}" in
4819e64b
JM
3512 powerpc-*-darwin*)
3513 ;;
3514 i[3456789]86-*-darwin*)
3515 ;;
3516 x86_64-*-darwin[912]*)
3517 ;;
3518 *-*-darwin*)
3519 noconfigdirs="$noconfigdirs ${libgcj}"
3520 ;;
4819e64b
JM
3521 *-*-netware*)
3522 noconfigdirs="$noconfigdirs ${libgcj}"
3523 ;;
79bb0de3
JJ
3524 *-*-phoenix*)
3525 noconfigdirs="$noconfigdirs ${libgcj}"
3526 ;;
4819e64b
JM
3527 *-*-rtems*)
3528 noconfigdirs="$noconfigdirs ${libgcj}"
3529 ;;
3530 *-*-tpf*)
3531 noconfigdirs="$noconfigdirs ${libgcj}"
3532 ;;
3533 *-*-uclinux*)
3534 noconfigdirs="$noconfigdirs ${libgcj}"
3535 ;;
3536 *-*-vxworks*)
3537 noconfigdirs="$noconfigdirs ${libgcj}"
3538 ;;
4819e64b
JM
3539 alpha*-*-*vms*)
3540 noconfigdirs="$noconfigdirs ${libgcj}"
3541 ;;
fe508576
CV
3542 arm*-*-freebsd*)
3543 noconfigdirs="$noconfigdirs ${libgcj}"
3544 ;;
fdb1f028 3545 arm-wince-pe)
4819e64b
JM
3546 noconfigdirs="$noconfigdirs ${libgcj}"
3547 ;;
4819e64b
JM
3548 arm*-*-symbianelf*)
3549 noconfigdirs="$noconfigdirs ${libgcj}"
3550 ;;
4819e64b 3551 bfin-*-*)
4819e64b
JM
3552 noconfigdirs="$noconfigdirs target-boehm-gc"
3553 ;;
4819e64b
JM
3554 cris-*-* | crisv32-*-*)
3555 unsupported_languages="$unsupported_languages java"
3556 case "${target}" in
3557 *-*-linux*)
3558 ;;
3559 *) # See PR46792 regarding target-libffi.
3560 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3561 esac
3562 ;;
4819e64b
JM
3563 hppa*64*-*-linux*)
3564 # In this case, it's because the hppa64-linux target is for
3565 # the kernel only at this point and has no libc, and thus no
3566 # headers, crt*.o, etc., all of which are needed by these.
530994bd 3567 unsupported_languages="$unsupported_languages java"
4819e64b 3568 ;;
530994bd 3569 hppa*64*-*-hpux*)
4819e64b
JM
3570 noconfigdirs="$noconfigdirs ${libgcj}"
3571 ;;
3572 hppa*-hp-hpux11*)
3573 ;;
530994bd 3574 hppa*-*-hpux*)
4819e64b
JM
3575 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3576 # build on HP-UX 10.20.
3577 noconfigdirs="$noconfigdirs ${libgcj}"
3578 ;;
4819e64b
JM
3579 ia64*-*-*vms*)
3580 noconfigdirs="$noconfigdirs ${libgcj}"
3581 ;;
4819e64b
JM
3582 i[3456789]86-w64-mingw*)
3583 noconfigdirs="$noconfigdirs ${libgcj}"
3584 ;;
3585 i[3456789]86-*-mingw*)
3586 noconfigdirs="$noconfigdirs ${libgcj}"
3587 ;;
3588 x86_64-*-mingw*)
3589 noconfigdirs="$noconfigdirs ${libgcj}"
3590 ;;
4819e64b
JM
3591 mmix-*-*)
3592 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
4819e64b
JM
3593 ;;
3594 powerpc-*-aix*)
3595 # copied from rs6000-*-* entry
3596 noconfigdirs="$noconfigdirs ${libgcj}"
3597 ;;
4819e64b
JM
3598 rs6000-*-aix*)
3599 noconfigdirs="$noconfigdirs ${libgcj}"
3600 ;;
fe508576
CV
3601 ft32-*-*)
3602 noconfigdirs="$noconfigdirs ${libgcj}"
3603 ;;
4819e64b
JM
3604 *-*-lynxos*)
3605 noconfigdirs="$noconfigdirs ${libgcj}"
3606 ;;
4819e64b
JM
3607esac
3608
fe508576
CV
3609# Disable the go frontend on systems where it is known to not work. Please keep
3610# this in sync with contrib/config-list.mk.
3611case "${target}" in
3612*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3613 unsupported_languages="$unsupported_languages go"
3614 ;;
3615esac
3616
51ab11f7
ILT
3617# Disable libgo for some systems where it is known to not work.
3618# For testing, you can easily override this with --enable-libgo.
3619if test x$enable_libgo = x; then
3620 case "${target}" in
3621 *-*-darwin*)
3622 # PR 46986
3623 noconfigdirs="$noconfigdirs target-libgo"
3624 ;;
3625 *-*-cygwin* | *-*-mingw*)
3626 noconfigdirs="$noconfigdirs target-libgo"
3627 ;;
3628 *-*-aix*)
3629 noconfigdirs="$noconfigdirs target-libgo"
3630 ;;
3631 esac
3632fi
3633
46093329
DD
3634# Default libgloss CPU subdirectory.
3635libgloss_dir="$target_cpu"
cb2333e8 3636
3c348668
JM
3637case "${target}" in
3638 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3639 libgloss_dir=wince
3640 ;;
34969368
YZ
3641 aarch64*-*-* )
3642 libgloss_dir=aarch64
3643 ;;
3c348668
JM
3644 arm*-*-*)
3645 libgloss_dir=arm
3646 ;;
3647 cris-*-* | crisv32-*-*)
3648 libgloss_dir=cris
3649 ;;
3650 hppa*-*-*)
3651 libgloss_dir=pa
3652 ;;
3653 i[3456789]86-*-*)
3654 libgloss_dir=i386
3655 ;;
3656 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3657 libgloss_dir=m68hc11
3658 ;;
3659 m68*-*-* | fido-*-*)
3660 libgloss_dir=m68k
3661 ;;
3662 mips*-*-*)
3663 libgloss_dir=mips
3664 ;;
3665 powerpc*-*-*)
3666 libgloss_dir=rs6000
3667 ;;
3668 sparc*-*-*)
3669 libgloss_dir=sparc
3670 ;;
3671esac
3672
25c50222 3673# Disable newlib and libgloss for various target OSes.
bafecfd6 3674case "${target}" in
25c50222
JM
3675 alpha*-dec-osf*)
3676 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3677 ;;
3678 i[3456789]86-*-linux*)
3679 # This section makes it possible to build newlib natively on linux.
3680 # If we are using a cross compiler then don't configure newlib.
3681 if test x${is_cross_compiler} != xno ; then
3682 noconfigdirs="$noconfigdirs target-newlib"
3683 fi
3684 noconfigdirs="$noconfigdirs target-libgloss"
3685 # If we are not using a cross compiler, do configure newlib.
3686 # Note however, that newlib will only be configured in this situation
3687 # if the --with-newlib option has been given, because otherwise
3688 # 'target-newlib' will appear in skipdirs.
3689 ;;
3690 i[3456789]86-*-rdos*)
3691 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692 ;;
3693 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3694 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3695 ;;
3696 sparc-*-sunos4*)
3697 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698 ;;
3699 *-*-aix*)
3700 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3701 ;;
3702 *-*-beos*)
3703 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704 ;;
bafecfd6 3705 *-*-chorusos)
61cc119d 3706 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
bafecfd6 3707 ;;
25c50222
JM
3708 *-*-dragonfly*)
3709 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3710 ;;
3711 *-*-freebsd*)
3712 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3713 ;;
3714 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3715 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3716 ;;
3717 *-*-lynxos*)
3718 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719 ;;
3720 *-*-mingw*)
3721 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722 ;;
3723 *-*-netbsd*)
3724 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725 ;;
3726 *-*-netware*)
3727 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728 ;;
3729 *-*-tpf*)
3730 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3731 ;;
3732 *-*-uclinux*)
3733 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3734 ;;
3735 *-*-vxworks*)
3736 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3737 ;;
3738esac
3739
3740case "${target}" in
3741 *-*-chorusos)
3742 ;;
fe508576
CV
3743 aarch64-*-darwin*)
3744 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3745 noconfigdirs="$noconfigdirs sim target-rda"
3746 ;;
3747 arm-*-darwin*)
3748 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3749 noconfigdirs="$noconfigdirs sim target-rda"
3750 ;;
2926fdf5 3751 powerpc-*-darwin*)
173af0fb 3752 noconfigdirs="$noconfigdirs ld gas gdb gprof"
bbaae19b 3753 noconfigdirs="$noconfigdirs sim target-rda"
5f0d49b5 3754 ;;
41592149
TG
3755 i[3456789]86-*-darwin*)
3756 noconfigdirs="$noconfigdirs ld gprof"
3757 noconfigdirs="$noconfigdirs sim target-rda"
3758 ;;
121f0eb2 3759 x86_64-*-darwin[912]*)
5f0d49b5
TG
3760 noconfigdirs="$noconfigdirs ld gas gprof"
3761 noconfigdirs="$noconfigdirs sim target-rda"
44dc96d1 3762 ;;
4b649dd9 3763 *-*-darwin*)
56fa0798 3764 noconfigdirs="$noconfigdirs ld gas gdb gprof"
bbaae19b 3765 noconfigdirs="$noconfigdirs sim target-rda"
4b649dd9 3766 ;;
573c698a 3767 *-*-dragonfly*)
573c698a 3768 ;;
eb2d1dee 3769 *-*-freebsd*)
cb2333e8
DD
3770 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3771 && test -f /usr/local/include/gmp.h; then
3772 with_gmp=/usr/local
3773 fi
cb2333e8 3774 ;;
5cd57f01
NC
3775 *-*-kaos*)
3776 # Remove unsupported stuff on all kaOS configurations.
5cd57f01
NC
3777 noconfigdirs="$noconfigdirs target-libgloss"
3778 ;;
bafecfd6 3779 *-*-netbsd*)
bafecfd6 3780 ;;
b330724f 3781 *-*-netware*)
bafecfd6 3782 ;;
79bb0de3
JJ
3783 *-*-phoenix*)
3784 noconfigdirs="$noconfigdirs target-libgloss"
3785 ;;
bafecfd6 3786 *-*-rtems*)
4819e64b 3787 noconfigdirs="$noconfigdirs target-libgloss"
fe508576
CV
3788 # this is not caught below because this stanza matches earlier
3789 case $target in
3790 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3791 esac
bafecfd6 3792 ;;
3d93afbc
EC
3793 # The tpf target doesn't support gdb yet.
3794 *-*-tpf*)
25c50222 3795 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3d93afbc 3796 ;;
1fb9256d 3797 *-*-uclinux*)
25c50222 3798 noconfigdirs="$noconfigdirs target-rda"
1fb9256d 3799 ;;
bafecfd6 3800 *-*-vxworks*)
bafecfd6
NN
3801 ;;
3802 alpha*-dec-osf*)
3803 # ld works, but does not support shared libraries.
bafecfd6 3804 # gas doesn't generate exception information.
25c50222 3805 noconfigdirs="$noconfigdirs gas ld"
bafecfd6
NN
3806 ;;
3807 alpha*-*-*vms*)
4819e64b 3808 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
bafecfd6 3809 ;;
bafecfd6
NN
3810 alpha*-*-*)
3811 # newlib is not 64 bit ready
4819e64b 3812 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
bafecfd6 3813 ;;
bafecfd6 3814 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
44397772 3815 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
bafecfd6 3816 ;;
bafecfd6 3817 arm-*-pe*)
4819e64b 3818 noconfigdirs="$noconfigdirs target-libgloss"
bafecfd6 3819 ;;
bafecfd6 3820 arm-*-riscix*)
61cc119d 3821 noconfigdirs="$noconfigdirs ld target-libgloss"
bafecfd6 3822 ;;
125bb3c9
L
3823 avr-*-*)
3824 if test x${with_avrlibc} != xno; then
3825 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3826 fi
3827 ;;
bafecfd6 3828 c4x-*-* | tic4x-*-*)
61cc119d 3829 noconfigdirs="$noconfigdirs target-libgloss"
bafecfd6 3830 ;;
61cc119d
JM
3831 tic54x-*-*)
3832 noconfigdirs="$noconfigdirs target-libgloss gdb"
bafecfd6 3833 ;;
bafecfd6 3834 d10v-*-*)
61cc119d 3835 noconfigdirs="$noconfigdirs target-libgloss"
bafecfd6
NN
3836 ;;
3837 d30v-*-*)
61cc119d 3838 noconfigdirs="$noconfigdirs gdb"
bafecfd6
NN
3839 ;;
3840 fr30-*-elf*)
4819e64b 3841 noconfigdirs="$noconfigdirs gdb"
bafecfd6 3842 ;;
fe508576
CV
3843 ft32-*-*)
3844 noconfigdirs="$noconfigdirs target-rda gprof"
3845 ;;
cc074893 3846 moxie-*-*)
fe508576 3847 noconfigdirs="$noconfigdirs"
cc074893 3848 ;;
bafecfd6 3849 h8300*-*-*)
4819e64b 3850 noconfigdirs="$noconfigdirs target-libgloss"
bafecfd6
NN
3851 ;;
3852 h8500-*-*)
61cc119d 3853 noconfigdirs="$noconfigdirs target-libgloss"
bafecfd6 3854 ;;
3d439922 3855 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3d439922 3856 ;;
fe508576
CV
3857 hppa*64*-*-hpux*)
3858 noconfigdirs="$noconfigdirs gdb"
3859 ;;
3860 hppa*-*-hpux11*)
3861 noconfigdirs="$noconfigdirs gdb ld"
3862 ;;
3d4d1d30 3863 hppa*64*-*-linux*)
bafecfd6 3864 ;;
4fcb78d9 3865 hppa*-*-linux*)
53af4f25 3866 ;;
bafecfd6 3867 hppa*-*-*elf* | \
bafecfd6
NN
3868 hppa*-*-lites* | \
3869 hppa*-*-openbsd* | \
3870 hppa*64*-*-*)
e1e5148c 3871 ;;
46093329 3872 hppa*-*-pro*)
46093329 3873 ;;
bafecfd6 3874 hppa*-*-*)
4819e64b 3875 noconfigdirs="$noconfigdirs ld"
bafecfd6 3876 ;;
7e269125 3877 i960-*-*)
61cc119d 3878 noconfigdirs="$noconfigdirs gdb"
7e269125 3879 ;;
bafecfd6
NN
3880 ia64*-*-elf*)
3881 # No gdb support yet.
5b45e8c9 3882 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
bafecfd6
NN
3883 ;;
3884 ia64*-**-hpux*)
e82bcd79 3885 # No ld support yet.
fe508576 3886 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
bafecfd6 3887 ;;
608adbed 3888 ia64*-*-*vms*)
a626f4ee
L
3889 # No ld support yet.
3890 noconfigdirs="$noconfigdirs libgui itcl ld"
608adbed 3891 ;;
5074489a 3892 i[3456789]86-w64-mingw*)
5074489a
AO
3893 ;;
3894 i[3456789]86-*-mingw*)
bc668665 3895 target_configdirs="$target_configdirs target-winsup"
b58b6ee1 3896 ;;
bafecfd6
NN
3897 *-*-cygwin*)
3898 target_configdirs="$target_configdirs target-libtermcap target-winsup"
5b45e8c9 3899 noconfigdirs="$noconfigdirs target-libgloss"
99dbec4c 3900 # always build newlib if winsup directory is present.
bc668665 3901 if test -d "$srcdir/winsup/cygwin"; then
99dbec4c 3902 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4ea74b34 3903 elif test -d "$srcdir/newlib"; then
bc668665 3904 echo "Warning: winsup/cygwin is missing so newlib can't be built."
99dbec4c 3905 fi
b58b6ee1 3906 ;;
08049c01 3907 i[3456789]86-*-pe)
9aedc1d4 3908 noconfigdirs="$noconfigdirs target-libgloss"
bafecfd6 3909 ;;
08049c01 3910 i[3456789]86-*-sco3.2v5*)
bafecfd6
NN
3911 # The linker does not yet know about weak symbols in COFF,
3912 # and is not configured to handle mixed ELF and COFF.
61cc119d 3913 noconfigdirs="$noconfigdirs ld target-libgloss"
bafecfd6 3914 ;;
08049c01 3915 i[3456789]86-*-sco*)
61cc119d 3916 noconfigdirs="$noconfigdirs gprof target-libgloss"
bafecfd6 3917 ;;
da2cf961 3918 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
bafecfd6
NN
3919 noconfigdirs="$noconfigdirs target-libgloss"
3920 ;;
08049c01 3921 i[3456789]86-*-sysv4*)
61cc119d 3922 noconfigdirs="$noconfigdirs target-libgloss"
bafecfd6 3923 ;;
08049c01 3924 i[3456789]86-*-beos*)
25c50222 3925 noconfigdirs="$noconfigdirs gdb"
2245eb63 3926 ;;
22d7108e 3927 i[3456789]86-*-rdos*)
25c50222 3928 noconfigdirs="$noconfigdirs gdb"
46093329 3929 ;;
bafecfd6 3930 mmix-*-*)
4819e64b 3931 noconfigdirs="$noconfigdirs gdb"
bafecfd6 3932 ;;
74ecef0d 3933 mt-*-*)
66cb6a19
AH
3934 noconfigdirs="$noconfigdirs sim"
3935 ;;
bafecfd6
NN
3936 powerpc-*-aix*)
3937 # copied from rs6000-*-* entry
25c50222 3938 noconfigdirs="$noconfigdirs gprof"
bafecfd6 3939 ;;
3d4d1d30 3940 powerpc*-*-winnt* | powerpc*-*-pe*)
bafecfd6 3941 target_configdirs="$target_configdirs target-winsup"
61cc119d 3942 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
bafecfd6
NN
3943 # always build newlib.
3944 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3945 ;;
3946 # This is temporary until we can link against shared libraries
3947 powerpcle-*-solaris*)
61cc119d 3948 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
bafecfd6
NN
3949 ;;
3950 powerpc-*-beos*)
25c50222 3951 noconfigdirs="$noconfigdirs gdb"
bafecfd6 3952 ;;
bafecfd6 3953 rs6000-*-lynxos*)
25c50222 3954 noconfigdirs="$noconfigdirs gprof"
bafecfd6
NN
3955 ;;
3956 rs6000-*-aix*)
25c50222 3957 noconfigdirs="$noconfigdirs gprof"
bafecfd6
NN
3958 ;;
3959 rs6000-*-*)
4819e64b 3960 noconfigdirs="$noconfigdirs gprof"
bafecfd6
NN
3961 ;;
3962 m68k-apollo-*)
61cc119d 3963 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
bafecfd6 3964 ;;
45f03e33 3965 microblaze*)
4819e64b 3966 noconfigdirs="$noconfigdirs gprof"
45f03e33 3967 ;;
fe508576 3968 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
524e4570
RS
3969 if test x$with_newlib = xyes; then
3970 noconfigdirs="$noconfigdirs gprof"
3971 fi
524e4570 3972 ;;
bafecfd6 3973 mips*-*-irix5*)
61cc119d 3974 noconfigdirs="$noconfigdirs gprof target-libgloss"
bafecfd6
NN
3975 ;;
3976 mips*-*-irix6*)
4819e64b 3977 noconfigdirs="$noconfigdirs gprof target-libgloss"
bafecfd6 3978 ;;
bafecfd6 3979 mips*-*-bsd*)
b5627d2e 3980 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
bafecfd6 3981 ;;
bafecfd6 3982 mips*-*-linux*)
bafecfd6 3983 ;;
b5627d2e
RS
3984 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3985 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3986 noconfigdirs="$noconfigdirs ld gas gprof"
3987 ;;
bafecfd6 3988 mips*-*-*)
4819e64b 3989 noconfigdirs="$noconfigdirs gprof"
bafecfd6 3990 ;;
fe508576
CV
3991 nds32*-*-*)
3992 noconfigdirs="$noconfigdirs gdb"
3993 ;;
3994 nvptx*-*-*)
3995 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3996 ;;
3997 or1k*-*-*)
3998 noconfigdirs="$noconfigdirs gdb"
3999 ;;
d5632bcf 4000 sh-*-*)
121f0eb2
RW
4001 case "${target}" in
4002 sh*-*-elf)
4819e64b 4003 ;;
121f0eb2 4004 *)
4819e64b 4005 noconfigdirs="$noconfigdirs target-libgloss" ;;
121f0eb2 4006 esac
bafecfd6 4007 ;;
bafecfd6 4008 sparc-*-sunos4*)
25c50222 4009 if test x${is_cross_compiler} = xno ; then
bafecfd6
NN
4010 use_gnu_ld=no
4011 fi
4012 ;;
6315af0f 4013 tic6x-*-*)
a2ffbf1e 4014 noconfigdirs="$noconfigdirs sim"
6315af0f 4015 ;;
fe508576 4016 tilepro*-*-* | tilegx*-*-*)
f9dd2b32
NC
4017 noconfigdirs="$noconfigdirs sim"
4018 ;;
bafecfd6 4019 v810-*-*)
61cc119d 4020 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
bafecfd6
NN
4021 ;;
4022 vax-*-*)
4819e64b 4023 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
bafecfd6 4024 ;;
bafecfd6 4025esac
a3acbf46 4026
bafecfd6
NN
4027# If we aren't building newlib, then don't build libgloss, since libgloss
4028# depends upon some newlib header files.
4029case "${noconfigdirs}" in
4030 *target-libgloss*) ;;
4031 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4032esac
4033
bafecfd6 4034# Work in distributions that contain no compiler tools, like Autoconf.
bafecfd6
NN
4035host_makefile_frag=/dev/null
4036if test -d ${srcdir}/config ; then
4037case "${host}" in
08049c01 4038 i[3456789]86-*-msdosdjgpp*)
bafecfd6
NN
4039 host_makefile_frag="config/mh-djgpp"
4040 ;;
4041 *-cygwin*)
981b79bf 4042
efd58f08
RW
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4044$as_echo_n "checking to see if cat works as expected... " >&6; }
981b79bf 4045echo a >cygwin-cat-check
5074489a 4046if test `cat cygwin-cat-check` = a ; then
999fa990 4047 rm cygwin-cat-check
efd58f08
RW
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4049$as_echo "yes" >&6; }
981b79bf 4050else
999fa990 4051 rm cygwin-cat-check
efd58f08
RW
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053$as_echo "no" >&6; }
6d3ddf51 4054 as_fn_error $? "The cat command does not ignore carriage return characters.
981b79bf
NC
4055 Please either mount the build directory in binary mode or run the following
4056 commands before running any configure script:
4057set -o igncr
4058export SHELLOPTS
efd58f08 4059 " "$LINENO" 5
981b79bf 4060fi
981b79bf 4061
bafecfd6
NN
4062 host_makefile_frag="config/mh-cygwin"
4063 ;;
617c478d 4064 *-mingw*)
fd1c1753 4065 host_makefile_frag="config/mh-mingw"
6a24f03b 4066 ;;
fe508576
CV
4067 alpha*-linux*)
4068 host_makefile_frag="config/mh-alpha-linux"
4069 ;;
9ad2ea2f 4070 hppa*-hp-hpux10*)
9ad2ea2f 4071 host_makefile_frag="config/mh-pa-hpux10"
bafecfd6 4072 ;;
4e55c4e3 4073 hppa*-hp-hpux*)
9ad2ea2f
PB
4074 host_makefile_frag="config/mh-pa"
4075 ;;
4076 hppa*-*)
4077 host_makefile_frag="config/mh-pa"
4078 ;;
d5b7129a
ILT
4079 *-*-darwin*)
4080 host_makefile_frag="config/mh-darwin"
99df82b9 4081 ;;
7e958b2e
PB
4082 powerpc-*-aix*)
4083 host_makefile_frag="config/mh-ppc-aix"
4084 ;;
4085 rs6000-*-aix*)
4086 host_makefile_frag="config/mh-ppc-aix"
4087 ;;
bafecfd6
NN
4088esac
4089fi
4090
cfc26d93 4091if test "${build}" != "${host}" ; then
4413ec01
PB
4092 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4093 AS_FOR_BUILD=${AS_FOR_BUILD-as}
cfc26d93 4094 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4413ec01
PB
4095 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4096 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4097 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
d5b7129a 4098 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4413ec01
PB
4099 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4100 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4101 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4102 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4103 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4104 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4105else
4106 AR_FOR_BUILD="\$(AR)"
4107 AS_FOR_BUILD="\$(AS)"
31839eae 4108 CC_FOR_BUILD="\$(CC)"
4413ec01
PB
4109 CXX_FOR_BUILD="\$(CXX)"
4110 GCJ_FOR_BUILD="\$(GCJ)"
4111 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
d5b7129a 4112 GOC_FOR_BUILD="\$(GOC)"
4413ec01
PB
4113 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4114 LD_FOR_BUILD="\$(LD)"
4115 NM_FOR_BUILD="\$(NM)"
4116 RANLIB_FOR_BUILD="\$(RANLIB)"
4117 WINDRES_FOR_BUILD="\$(WINDRES)"
4118 WINDMC_FOR_BUILD="\$(WINDMC)"
b8c26111
PB
4119fi
4120
4121ac_ext=c
b58b6ee1
DJ
4122ac_cpp='$CPP $CPPFLAGS'
4123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126if test -n "$ac_tool_prefix"; then
4127 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4128set dummy ${ac_tool_prefix}gcc; ac_word=$2
efd58f08
RW
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 4131if ${ac_cv_prog_CC+:} false; then :
efd58f08 4132 $as_echo_n "(cached) " >&6
b58b6ee1
DJ
4133else
4134 if test -n "$CC"; then
4135 ac_cv_prog_CC="$CC" # Let the user override the test.
4136else
4137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138for as_dir in $PATH
4139do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
efd58f08 4142 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 4143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 4144 ac_cv_prog_CC="${ac_tool_prefix}gcc"
efd58f08 4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
4146 break 2
4147 fi
4148done
efd58f08
RW
4149 done
4150IFS=$as_save_IFS
b58b6ee1
DJ
4151
4152fi
4153fi
4154CC=$ac_cv_prog_CC
4155if test -n "$CC"; then
efd58f08
RW
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4157$as_echo "$CC" >&6; }
b58b6ee1 4158else
efd58f08
RW
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160$as_echo "no" >&6; }
b58b6ee1
DJ
4161fi
4162
efd58f08 4163
b58b6ee1
DJ
4164fi
4165if test -z "$ac_cv_prog_CC"; then
4166 ac_ct_CC=$CC
2cb47d68 4167 # Extract the first word of "gcc", so it can be a program name with args.
cfc26d93 4168set dummy gcc; ac_word=$2
efd58f08
RW
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 4171if ${ac_cv_prog_ac_ct_CC+:} false; then :
efd58f08 4172 $as_echo_n "(cached) " >&6
b58b6ee1
DJ
4173else
4174 if test -n "$ac_ct_CC"; then
4175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4176else
4177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178for as_dir in $PATH
4179do
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
efd58f08 4182 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 4183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 4184 ac_cv_prog_ac_ct_CC="gcc"
efd58f08 4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
4186 break 2
4187 fi
4188done
efd58f08
RW
4189 done
4190IFS=$as_save_IFS
b58b6ee1
DJ
4191
4192fi
4193fi
4194ac_ct_CC=$ac_cv_prog_ac_ct_CC
4195if test -n "$ac_ct_CC"; then
efd58f08
RW
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4197$as_echo "$ac_ct_CC" >&6; }
b58b6ee1 4198else
efd58f08
RW
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200$as_echo "no" >&6; }
b58b6ee1
DJ
4201fi
4202
efd58f08
RW
4203 if test "x$ac_ct_CC" = x; then
4204 CC=""
4205 else
4206 case $cross_compiling:$ac_tool_warned in
4207yes:)
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4210ac_tool_warned=yes ;;
4211esac
4212 CC=$ac_ct_CC
4213 fi
b58b6ee1
DJ
4214else
4215 CC="$ac_cv_prog_CC"
4216fi
4217
4218if test -z "$CC"; then
efd58f08
RW
4219 if test -n "$ac_tool_prefix"; then
4220 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b58b6ee1 4221set dummy ${ac_tool_prefix}cc; ac_word=$2
efd58f08
RW
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 4224if ${ac_cv_prog_CC+:} false; then :
efd58f08 4225 $as_echo_n "(cached) " >&6
cfc26d93
NN
4226else
4227 if test -n "$CC"; then
4228 ac_cv_prog_CC="$CC" # Let the user override the test.
4229else
b58b6ee1
DJ
4230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH
4232do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
efd58f08 4235 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 4236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 4237 ac_cv_prog_CC="${ac_tool_prefix}cc"
efd58f08 4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
4239 break 2
4240 fi
4241done
efd58f08
RW
4242 done
4243IFS=$as_save_IFS
b58b6ee1 4244
cfc26d93
NN
4245fi
4246fi
b58b6ee1 4247CC=$ac_cv_prog_CC
cfc26d93 4248if test -n "$CC"; then
efd58f08
RW
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4250$as_echo "$CC" >&6; }
b58b6ee1 4251else
efd58f08
RW
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253$as_echo "no" >&6; }
b58b6ee1
DJ
4254fi
4255
b58b6ee1 4256
efd58f08 4257 fi
b58b6ee1 4258fi
cfc26d93
NN
4259if test -z "$CC"; then
4260 # Extract the first word of "cc", so it can be a program name with args.
4261set dummy cc; ac_word=$2
efd58f08
RW
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 4264if ${ac_cv_prog_CC+:} false; then :
efd58f08 4265 $as_echo_n "(cached) " >&6
cfc26d93
NN
4266else
4267 if test -n "$CC"; then
4268 ac_cv_prog_CC="$CC" # Let the user override the test.
4269else
cfc26d93 4270 ac_prog_rejected=no
b58b6ee1
DJ
4271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH
4273do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
efd58f08 4276 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 4277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1
DJ
4278 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4279 ac_prog_rejected=yes
4280 continue
4281 fi
4282 ac_cv_prog_CC="cc"
efd58f08 4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
4284 break 2
4285 fi
4286done
efd58f08
RW
4287 done
4288IFS=$as_save_IFS
b58b6ee1 4289
cfc26d93
NN
4290if test $ac_prog_rejected = yes; then
4291 # We found a bogon in the path, so make sure we never use it.
4292 set dummy $ac_cv_prog_CC
4293 shift
b58b6ee1 4294 if test $# != 0; then
cfc26d93
NN
4295 # We chose a different compiler from the bogus one.
4296 # However, it has the same basename, so the bogon will be chosen
4297 # first if we set CC to just the basename; use the full file name.
4298 shift
b58b6ee1 4299 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
cfc26d93
NN
4300 fi
4301fi
4302fi
4303fi
b58b6ee1 4304CC=$ac_cv_prog_CC
cfc26d93 4305if test -n "$CC"; then
efd58f08
RW
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4307$as_echo "$CC" >&6; }
cfc26d93 4308else
efd58f08
RW
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310$as_echo "no" >&6; }
cfc26d93
NN
4311fi
4312
efd58f08 4313
b58b6ee1
DJ
4314fi
4315if test -z "$CC"; then
4316 if test -n "$ac_tool_prefix"; then
efd58f08 4317 for ac_prog in cl.exe
b58b6ee1
DJ
4318 do
4319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4320set dummy $ac_tool_prefix$ac_prog; ac_word=$2
efd58f08
RW
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4322$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 4323if ${ac_cv_prog_CC+:} false; then :
efd58f08 4324 $as_echo_n "(cached) " >&6
cfc26d93
NN
4325else
4326 if test -n "$CC"; then
4327 ac_cv_prog_CC="$CC" # Let the user override the test.
4328else
b58b6ee1
DJ
4329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330for as_dir in $PATH
4331do
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
efd58f08 4334 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 4335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 4336 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
efd58f08 4337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1 4338 break 2
76402c80 4339 fi
b58b6ee1 4340done
efd58f08
RW
4341 done
4342IFS=$as_save_IFS
f69e2532 4343
b58b6ee1
DJ
4344fi
4345fi
4346CC=$ac_cv_prog_CC
4347if test -n "$CC"; then
efd58f08
RW
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4349$as_echo "$CC" >&6; }
f69e2532 4350else
efd58f08
RW
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352$as_echo "no" >&6; }
cfc26d93 4353fi
f69e2532 4354
efd58f08 4355
b58b6ee1
DJ
4356 test -n "$CC" && break
4357 done
f69e2532 4358fi
b58b6ee1
DJ
4359if test -z "$CC"; then
4360 ac_ct_CC=$CC
efd58f08 4361 for ac_prog in cl.exe
b58b6ee1
DJ
4362do
4363 # Extract the first word of "$ac_prog", so it can be a program name with args.
4364set dummy $ac_prog; ac_word=$2
efd58f08
RW
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4366$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 4367if ${ac_cv_prog_ac_ct_CC+:} false; then :
efd58f08 4368 $as_echo_n "(cached) " >&6
f69e2532 4369else
b58b6ee1
DJ
4370 if test -n "$ac_ct_CC"; then
4371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
76402c80 4372else
b58b6ee1
DJ
4373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374for as_dir in $PATH
4375do
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
efd58f08 4378 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 4379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 4380 ac_cv_prog_ac_ct_CC="$ac_prog"
efd58f08 4381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
4382 break 2
4383 fi
4384done
efd58f08
RW
4385 done
4386IFS=$as_save_IFS
b58b6ee1 4387
f69e2532
CM
4388fi
4389fi
b58b6ee1
DJ
4390ac_ct_CC=$ac_cv_prog_ac_ct_CC
4391if test -n "$ac_ct_CC"; then
efd58f08
RW
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4393$as_echo "$ac_ct_CC" >&6; }
cfc26d93 4394else
efd58f08
RW
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396$as_echo "no" >&6; }
f69e2532 4397fi
76402c80 4398
efd58f08 4399
b58b6ee1
DJ
4400 test -n "$ac_ct_CC" && break
4401done
4402
efd58f08
RW
4403 if test "x$ac_ct_CC" = x; then
4404 CC=""
4405 else
4406 case $cross_compiling:$ac_tool_warned in
4407yes:)
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4410ac_tool_warned=yes ;;
4411esac
4412 CC=$ac_ct_CC
4413 fi
b58b6ee1
DJ
4414fi
4415
4416fi
4417
4418
efd58f08
RW
4419test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6d3ddf51
SM
4421as_fn_error $? "no acceptable C compiler found in \$PATH
4422See \`config.log' for more details" "$LINENO" 5; }
b58b6ee1
DJ
4423
4424# Provide some information about the compiler.
efd58f08
RW
4425$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4426set X $ac_compile
4427ac_compiler=$2
4428for ac_option in --version -v -V -qversion; do
4429 { { ac_try="$ac_compiler $ac_option >&5"
4430case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433esac
4434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435$as_echo "$ac_try_echo"; } >&5
4436 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b58b6ee1 4437 ac_status=$?
efd58f08
RW
4438 if test -s conftest.err; then
4439 sed '10a\
4440... rest of stderr output deleted ...
4441 10q' conftest.err >conftest.er1
4442 cat conftest.er1 >&5
efd58f08 4443 fi
6d3ddf51 4444 rm -f conftest.er1 conftest.err
efd58f08
RW
4445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446 test $ac_status = 0; }
4447done
b58b6ee1 4448
efd58f08 4449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b58b6ee1
DJ
4450/* end confdefs.h. */
4451
4452int
4453main ()
4454{
4455
4456 ;
4457 return 0;
4458}
4459_ACEOF
4460ac_clean_files_save=$ac_clean_files
6d3ddf51 4461ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b58b6ee1
DJ
4462# Try to create an executable without -o first, disregard a.out.
4463# It will help us diagnose broken compilers, and finding out an intuition
4464# of exeext.
6d3ddf51
SM
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4466$as_echo_n "checking whether the C compiler works... " >&6; }
efd58f08
RW
4467ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4468
4469# The possible output files:
4470ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4471
4472ac_rmfiles=
4473for ac_file in $ac_files
4474do
4475 case $ac_file in
4476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4477 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4478 esac
4479done
4480rm -f $ac_rmfiles
4481
4482if { { ac_try="$ac_link_default"
4483case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486esac
4487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4488$as_echo "$ac_try_echo"; } >&5
4489 (eval "$ac_link_default") 2>&5
b58b6ee1 4490 ac_status=$?
efd58f08
RW
4491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4492 test $ac_status = 0; }; then :
4493 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4494# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4495# in a Makefile. We should not override ac_cv_exeext if it was cached,
4496# so that the user can short-circuit this test for compilers unknown to
4497# Autoconf.
4498for ac_file in $ac_files ''
b58b6ee1
DJ
4499do
4500 test -f "$ac_file" || continue
4501 case $ac_file in
efd58f08 4502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b58b6ee1
DJ
4503 ;;
4504 [ab].out )
4505 # We found the default executable, but exeext='' is most
4506 # certainly right.
4507 break;;
4508 *.* )
efd58f08
RW
4509 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4510 then :; else
4511 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4512 fi
4513 # We set ac_cv_exeext here because the later test for it is not
4514 # safe: cross compilers may not add the suffix if given an `-o'
4515 # argument, so we may need to know it at that point already.
4516 # Even if this section looks crufty: it has the advantage of
4517 # actually working.
b58b6ee1
DJ
4518 break;;
4519 * )
4520 break;;
4521 esac
4522done
efd58f08
RW
4523test "$ac_cv_exeext" = no && ac_cv_exeext=
4524
b58b6ee1 4525else
efd58f08
RW
4526 ac_file=''
4527fi
efd58f08 4528if test -z "$ac_file"; then :
6d3ddf51
SM
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530$as_echo "no" >&6; }
4531$as_echo "$as_me: failed program was:" >&5
b58b6ee1
DJ
4532sed 's/^/| /' conftest.$ac_ext >&5
4533
efd58f08
RW
4534{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6d3ddf51
SM
4536as_fn_error 77 "C compiler cannot create executables
4537See \`config.log' for more details" "$LINENO" 5; }
4538else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4540$as_echo "yes" >&6; }
b58b6ee1 4541fi
6d3ddf51
SM
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4543$as_echo_n "checking for C compiler default output file name... " >&6; }
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4545$as_echo "$ac_file" >&6; }
b58b6ee1 4546ac_exeext=$ac_cv_exeext
b58b6ee1 4547
6d3ddf51 4548rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b58b6ee1 4549ac_clean_files=$ac_clean_files_save
efd58f08
RW
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4551$as_echo_n "checking for suffix of executables... " >&6; }
4552if { { ac_try="$ac_link"
4553case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4556esac
4557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4558$as_echo "$ac_try_echo"; } >&5
4559 (eval "$ac_link") 2>&5
b58b6ee1 4560 ac_status=$?
efd58f08
RW
4561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4562 test $ac_status = 0; }; then :
b58b6ee1
DJ
4563 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4564# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4565# work properly (i.e., refer to `conftest.exe'), while it won't with
4566# `rm'.
4567for ac_file in conftest.exe conftest conftest.*; do
4568 test -f "$ac_file" || continue
4569 case $ac_file in
efd58f08 4570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b58b6ee1 4571 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b58b6ee1
DJ
4572 break;;
4573 * ) break;;
4574 esac
4575done
4576else
efd58f08
RW
4577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6d3ddf51
SM
4579as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4580See \`config.log' for more details" "$LINENO" 5; }
b58b6ee1 4581fi
6d3ddf51 4582rm -f conftest conftest$ac_cv_exeext
efd58f08
RW
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4584$as_echo "$ac_cv_exeext" >&6; }
b58b6ee1
DJ
4585
4586rm -f conftest.$ac_ext
4587EXEEXT=$ac_cv_exeext
4588ac_exeext=$EXEEXT
6d3ddf51
SM
4589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590/* end confdefs.h. */
4591#include <stdio.h>
4592int
4593main ()
4594{
4595FILE *f = fopen ("conftest.out", "w");
4596 return ferror (f) || fclose (f) != 0;
4597
4598 ;
4599 return 0;
4600}
4601_ACEOF
4602ac_clean_files="$ac_clean_files conftest.out"
4603# Check that the compiler produces executables we can run. If not, either
4604# the compiler is broken, or we cross compile.
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4606$as_echo_n "checking whether we are cross compiling... " >&6; }
4607if test "$cross_compiling" != yes; then
4608 { { ac_try="$ac_link"
4609case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612esac
4613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4614$as_echo "$ac_try_echo"; } >&5
4615 (eval "$ac_link") 2>&5
4616 ac_status=$?
4617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4618 test $ac_status = 0; }
4619 if { ac_try='./conftest$ac_cv_exeext'
4620 { { case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623esac
4624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625$as_echo "$ac_try_echo"; } >&5
4626 (eval "$ac_try") 2>&5
4627 ac_status=$?
4628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629 test $ac_status = 0; }; }; then
4630 cross_compiling=no
4631 else
4632 if test "$cross_compiling" = maybe; then
4633 cross_compiling=yes
4634 else
4635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4637as_fn_error $? "cannot run C compiled programs.
4638If you meant to cross compile, use \`--host'.
4639See \`config.log' for more details" "$LINENO" 5; }
4640 fi
4641 fi
4642fi
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4644$as_echo "$cross_compiling" >&6; }
4645
4646rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4647ac_clean_files=$ac_clean_files_save
efd58f08
RW
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4649$as_echo_n "checking for suffix of object files... " >&6; }
6d3ddf51 4650if ${ac_cv_objext+:} false; then :
efd58f08 4651 $as_echo_n "(cached) " >&6
b58b6ee1 4652else
efd58f08 4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b58b6ee1
DJ
4654/* end confdefs.h. */
4655
4656int
4657main ()
4658{
4659
4660 ;
4661 return 0;
4662}
4663_ACEOF
4664rm -f conftest.o conftest.obj
efd58f08
RW
4665if { { ac_try="$ac_compile"
4666case "(($ac_try" in
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4669esac
4670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4671$as_echo "$ac_try_echo"; } >&5
4672 (eval "$ac_compile") 2>&5
b58b6ee1 4673 ac_status=$?
efd58f08
RW
4674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4675 test $ac_status = 0; }; then :
4676 for ac_file in conftest.o conftest.obj conftest.*; do
4677 test -f "$ac_file" || continue;
b58b6ee1 4678 case $ac_file in
efd58f08 4679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b58b6ee1
DJ
4680 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4681 break;;
4682 esac
4683done
f69e2532 4684else
efd58f08 4685 $as_echo "$as_me: failed program was:" >&5
b58b6ee1
DJ
4686sed 's/^/| /' conftest.$ac_ext >&5
4687
efd58f08
RW
4688{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6d3ddf51
SM
4690as_fn_error $? "cannot compute suffix of object files: cannot compile
4691See \`config.log' for more details" "$LINENO" 5; }
b58b6ee1 4692fi
b58b6ee1
DJ
4693rm -f conftest.$ac_cv_objext conftest.$ac_ext
4694fi
efd58f08
RW
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4696$as_echo "$ac_cv_objext" >&6; }
b58b6ee1
DJ
4697OBJEXT=$ac_cv_objext
4698ac_objext=$OBJEXT
efd58f08
RW
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4700$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6d3ddf51 4701if ${ac_cv_c_compiler_gnu+:} false; then :
efd58f08 4702 $as_echo_n "(cached) " >&6
b58b6ee1 4703else
efd58f08 4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b58b6ee1
DJ
4705/* end confdefs.h. */
4706
4707int
4708main ()
4709{
4710#ifndef __GNUC__
4711 choke me
4712#endif
4713
4714 ;
4715 return 0;
4716}
4717_ACEOF
efd58f08 4718if ac_fn_c_try_compile "$LINENO"; then :
b58b6ee1
DJ
4719 ac_compiler_gnu=yes
4720else
efd58f08 4721 ac_compiler_gnu=no
b58b6ee1 4722fi
efd58f08 4723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b58b6ee1
DJ
4724ac_cv_c_compiler_gnu=$ac_compiler_gnu
4725
4726fi
efd58f08
RW
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4728$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4729if test $ac_compiler_gnu = yes; then
4730 GCC=yes
4731else
4732 GCC=
4733fi
b58b6ee1
DJ
4734ac_test_CFLAGS=${CFLAGS+set}
4735ac_save_CFLAGS=$CFLAGS
efd58f08
RW
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4737$as_echo_n "checking whether $CC accepts -g... " >&6; }
6d3ddf51 4738if ${ac_cv_prog_cc_g+:} false; then :
efd58f08
RW
4739 $as_echo_n "(cached) " >&6
4740else
4741 ac_save_c_werror_flag=$ac_c_werror_flag
4742 ac_c_werror_flag=yes
4743 ac_cv_prog_cc_g=no
4744 CFLAGS="-g"
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b58b6ee1
DJ
4746/* end confdefs.h. */
4747
4748int
4749main ()
4750{
4751
4752 ;
4753 return 0;
4754}
4755_ACEOF
efd58f08 4756if ac_fn_c_try_compile "$LINENO"; then :
cfc26d93
NN
4757 ac_cv_prog_cc_g=yes
4758else
efd58f08
RW
4759 CFLAGS=""
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761/* end confdefs.h. */
4762
4763int
4764main ()
4765{
4766
4767 ;
4768 return 0;
4769}
4770_ACEOF
4771if ac_fn_c_try_compile "$LINENO"; then :
4772
4773else
4774 ac_c_werror_flag=$ac_save_c_werror_flag
4775 CFLAGS="-g"
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777/* end confdefs.h. */
f69e2532 4778
efd58f08
RW
4779int
4780main ()
4781{
4782
4783 ;
4784 return 0;
4785}
4786_ACEOF
4787if ac_fn_c_try_compile "$LINENO"; then :
4788 ac_cv_prog_cc_g=yes
4789fi
4790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
76402c80 4791fi
efd58f08 4792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b58b6ee1 4793fi
efd58f08
RW
4794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 ac_c_werror_flag=$ac_save_c_werror_flag
4796fi
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4798$as_echo "$ac_cv_prog_cc_g" >&6; }
cfc26d93 4799if test "$ac_test_CFLAGS" = set; then
b58b6ee1 4800 CFLAGS=$ac_save_CFLAGS
cfc26d93
NN
4801elif test $ac_cv_prog_cc_g = yes; then
4802 if test "$GCC" = yes; then
4803 CFLAGS="-g -O2"
4804 else
4805 CFLAGS="-g"
4806 fi
4807else
4808 if test "$GCC" = yes; then
4809 CFLAGS="-O2"
4810 else
4811 CFLAGS=
4812 fi
4813fi
efd58f08
RW
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4815$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6d3ddf51 4816if ${ac_cv_prog_cc_c89+:} false; then :
efd58f08 4817 $as_echo_n "(cached) " >&6
b58b6ee1 4818else
efd58f08 4819 ac_cv_prog_cc_c89=no
b58b6ee1 4820ac_save_CC=$CC
efd58f08 4821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b58b6ee1
DJ
4822/* end confdefs.h. */
4823#include <stdarg.h>
4824#include <stdio.h>
6d3ddf51 4825struct stat;
b58b6ee1
DJ
4826/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4827struct buf { int x; };
4828FILE * (*rcsopen) (struct buf *, struct stat *, int);
4829static char *e (p, i)
4830 char **p;
4831 int i;
4832{
4833 return p[i];
4834}
4835static char *f (char * (*g) (char **, int), char **p, ...)
4836{
4837 char *s;
4838 va_list v;
4839 va_start (v,p);
4840 s = g (p, va_arg (v,int));
4841 va_end (v);
4842 return s;
4843}
4844
4845/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4846 function prototypes and stuff, but not '\xHH' hex character constants.
4847 These don't provoke an error unfortunately, instead are silently treated
efd58f08 4848 as 'x'. The following induces an error, until -std is added to get
b58b6ee1
DJ
4849 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4850 array size at least. It's necessary to write '\x00'==0 to get something
efd58f08 4851 that's true only with -std. */
b58b6ee1
DJ
4852int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4853
efd58f08
RW
4854/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4855 inside strings and character constants. */
4856#define FOO(x) 'x'
4857int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4858
b58b6ee1
DJ
4859int test (int i, double x);
4860struct s1 {int (*f) (int a);};
4861struct s2 {int (*f) (double a);};
4862int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4863int argc;
4864char **argv;
4865int
4866main ()
4867{
4868return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4869 ;
4870 return 0;
4871}
4872_ACEOF
efd58f08
RW
4873for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4874 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b58b6ee1
DJ
4875do
4876 CC="$ac_save_CC $ac_arg"
efd58f08
RW
4877 if ac_fn_c_try_compile "$LINENO"; then :
4878 ac_cv_prog_cc_c89=$ac_arg
b58b6ee1 4879fi
efd58f08
RW
4880rm -f core conftest.err conftest.$ac_objext
4881 test "x$ac_cv_prog_cc_c89" != "xno" && break
b58b6ee1 4882done
efd58f08 4883rm -f conftest.$ac_ext
b58b6ee1
DJ
4884CC=$ac_save_CC
4885
4886fi
efd58f08
RW
4887# AC_CACHE_VAL
4888case "x$ac_cv_prog_cc_c89" in
4889 x)
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4891$as_echo "none needed" >&6; } ;;
4892 xno)
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4894$as_echo "unsupported" >&6; } ;;
b58b6ee1 4895 *)
efd58f08
RW
4896 CC="$CC $ac_cv_prog_cc_c89"
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4898$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b58b6ee1 4899esac
efd58f08 4900if test "x$ac_cv_prog_cc_c89" != xno; then :
b58b6ee1 4901
b58b6ee1
DJ
4902fi
4903
b58b6ee1
DJ
4904ac_ext=c
4905ac_cpp='$CPP $CPPFLAGS'
4906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908ac_compiler_gnu=$ac_cv_c_compiler_gnu
cfc26d93 4909
efd58f08 4910ac_ext=cpp
b8c26111
PB
4911ac_cpp='$CXXCPP $CPPFLAGS'
4912ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
efd58f08
RW
4915if test -z "$CXX"; then
4916 if test -n "$CCC"; then
4917 CXX=$CCC
4918 else
4919 if test -n "$ac_tool_prefix"; then
4920 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
b8c26111
PB
4921 do
4922 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4923set dummy $ac_tool_prefix$ac_prog; ac_word=$2
efd58f08
RW
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 4926if ${ac_cv_prog_CXX+:} false; then :
efd58f08 4927 $as_echo_n "(cached) " >&6
b8c26111
PB
4928else
4929 if test -n "$CXX"; then
4930 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4931else
4932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933for as_dir in $PATH
4934do
4935 IFS=$as_save_IFS
4936 test -z "$as_dir" && as_dir=.
efd58f08 4937 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 4938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b8c26111 4939 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
efd58f08 4940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b8c26111
PB
4941 break 2
4942 fi
4943done
efd58f08
RW
4944 done
4945IFS=$as_save_IFS
31839eae 4946
b8c26111
PB
4947fi
4948fi
4949CXX=$ac_cv_prog_CXX
4950if test -n "$CXX"; then
efd58f08
RW
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4952$as_echo "$CXX" >&6; }
b8c26111 4953else
efd58f08
RW
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955$as_echo "no" >&6; }
b8c26111
PB
4956fi
4957
efd58f08 4958
b8c26111
PB
4959 test -n "$CXX" && break
4960 done
4961fi
4962if test -z "$CXX"; then
4963 ac_ct_CXX=$CXX
efd58f08 4964 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
b8c26111
PB
4965do
4966 # Extract the first word of "$ac_prog", so it can be a program name with args.
4967set dummy $ac_prog; ac_word=$2
efd58f08
RW
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 4970if ${ac_cv_prog_ac_ct_CXX+:} false; then :
efd58f08 4971 $as_echo_n "(cached) " >&6
b8c26111
PB
4972else
4973 if test -n "$ac_ct_CXX"; then
4974 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4975else
4976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977for as_dir in $PATH
4978do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
efd58f08 4981 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 4982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b8c26111 4983 ac_cv_prog_ac_ct_CXX="$ac_prog"
efd58f08 4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b8c26111 4985 break 2
31839eae 4986 fi
b8c26111 4987done
efd58f08
RW
4988 done
4989IFS=$as_save_IFS
31839eae 4990
b8c26111
PB
4991fi
4992fi
4993ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4994if test -n "$ac_ct_CXX"; then
efd58f08
RW
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4996$as_echo "$ac_ct_CXX" >&6; }
b8c26111 4997else
efd58f08
RW
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999$as_echo "no" >&6; }
b8c26111
PB
5000fi
5001
efd58f08 5002
b8c26111
PB
5003 test -n "$ac_ct_CXX" && break
5004done
b8c26111 5005
efd58f08
RW
5006 if test "x$ac_ct_CXX" = x; then
5007 CXX="g++"
5008 else
5009 case $cross_compiling:$ac_tool_warned in
5010yes:)
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5013ac_tool_warned=yes ;;
5014esac
5015 CXX=$ac_ct_CXX
5016 fi
b8c26111
PB
5017fi
5018
efd58f08
RW
5019 fi
5020fi
b8c26111 5021# Provide some information about the compiler.
efd58f08
RW
5022$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5023set X $ac_compile
5024ac_compiler=$2
5025for ac_option in --version -v -V -qversion; do
5026 { { ac_try="$ac_compiler $ac_option >&5"
5027case "(($ac_try" in
5028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029 *) ac_try_echo=$ac_try;;
5030esac
5031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5032$as_echo "$ac_try_echo"; } >&5
5033 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b8c26111 5034 ac_status=$?
efd58f08
RW
5035 if test -s conftest.err; then
5036 sed '10a\
5037... rest of stderr output deleted ...
5038 10q' conftest.err >conftest.er1
5039 cat conftest.er1 >&5
efd58f08 5040 fi
6d3ddf51 5041 rm -f conftest.er1 conftest.err
efd58f08
RW
5042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5043 test $ac_status = 0; }
5044done
b8c26111 5045
efd58f08
RW
5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5047$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6d3ddf51 5048if ${ac_cv_cxx_compiler_gnu+:} false; then :
efd58f08 5049 $as_echo_n "(cached) " >&6
b8c26111 5050else
efd58f08 5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b8c26111
PB
5052/* end confdefs.h. */
5053
5054int
5055main ()
5056{
5057#ifndef __GNUC__
5058 choke me
5059#endif
5060
5061 ;
5062 return 0;
5063}
5064_ACEOF
efd58f08 5065if ac_fn_cxx_try_compile "$LINENO"; then :
b8c26111
PB
5066 ac_compiler_gnu=yes
5067else
efd58f08 5068 ac_compiler_gnu=no
b8c26111 5069fi
efd58f08 5070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b8c26111
PB
5071ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5072
5073fi
efd58f08
RW
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5075$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5076if test $ac_compiler_gnu = yes; then
5077 GXX=yes
5078else
5079 GXX=
5080fi
b8c26111
PB
5081ac_test_CXXFLAGS=${CXXFLAGS+set}
5082ac_save_CXXFLAGS=$CXXFLAGS
efd58f08
RW
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5084$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6d3ddf51 5085if ${ac_cv_prog_cxx_g+:} false; then :
efd58f08
RW
5086 $as_echo_n "(cached) " >&6
5087else
5088 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5089 ac_cxx_werror_flag=yes
5090 ac_cv_prog_cxx_g=no
5091 CXXFLAGS="-g"
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b8c26111
PB
5093/* end confdefs.h. */
5094
5095int
5096main ()
5097{
5098
5099 ;
5100 return 0;
5101}
5102_ACEOF
efd58f08 5103if ac_fn_cxx_try_compile "$LINENO"; then :
b8c26111
PB
5104 ac_cv_prog_cxx_g=yes
5105else
efd58f08
RW
5106 CXXFLAGS=""
5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b8c26111 5108/* end confdefs.h. */
efd58f08 5109
b8c26111
PB
5110int
5111main ()
5112{
efd58f08 5113
b8c26111
PB
5114 ;
5115 return 0;
5116}
5117_ACEOF
efd58f08 5118if ac_fn_cxx_try_compile "$LINENO"; then :
b8c26111 5119
efd58f08
RW
5120else
5121 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5122 CXXFLAGS="-g"
5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b8c26111 5124/* end confdefs.h. */
efd58f08 5125
b8c26111
PB
5126int
5127main ()
5128{
efd58f08 5129
b8c26111
PB
5130 ;
5131 return 0;
5132}
5133_ACEOF
efd58f08
RW
5134if ac_fn_cxx_try_compile "$LINENO"; then :
5135 ac_cv_prog_cxx_g=yes
b8c26111 5136fi
efd58f08
RW
5137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138fi
5139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140fi
5141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5143fi
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5145$as_echo "$ac_cv_prog_cxx_g" >&6; }
5146if test "$ac_test_CXXFLAGS" = set; then
5147 CXXFLAGS=$ac_save_CXXFLAGS
5148elif test $ac_cv_prog_cxx_g = yes; then
5149 if test "$GXX" = yes; then
5150 CXXFLAGS="-g -O2"
5151 else
5152 CXXFLAGS="-g"
5153 fi
5154else
5155 if test "$GXX" = yes; then
5156 CXXFLAGS="-O2"
5157 else
5158 CXXFLAGS=
5159 fi
b8c26111 5160fi
b8c26111
PB
5161ac_ext=c
5162ac_cpp='$CPP $CPPFLAGS'
5163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165ac_compiler_gnu=$ac_cv_c_compiler_gnu
5166
5167
5168# We must set the default linker to the linker used by gcc for the correct
5169# operation of libtool. If LD is not defined and we are using gcc, try to
5170# set the LD default to the ld used by gcc.
5171if test -z "$LD"; then
5172 if test "$GCC" = yes; then
5173 case $build in
5174 *-*-mingw*)
5175 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5176 *)
5177 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5178 esac
5179 case $gcc_prog_ld in
5180 # Accept absolute paths.
5181 [\\/]* | [A-Za-z]:[\\/]*)
5182 LD="$gcc_prog_ld" ;;
5183 esac
5184 fi
31839eae
PB
5185fi
5186
e8853092
EB
5187# Check whether -static-libstdc++ -static-libgcc is supported.
5188have_static_libs=no
5189if test "$GCC" = yes; then
5190 saved_LDFLAGS="$LDFLAGS"
5191
5192 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5194$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5195 ac_ext=cpp
5196ac_cpp='$CXXCPP $CPPFLAGS'
5197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5200
5201
5202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203/* end confdefs.h. */
d25fac71
EB
5204
5205#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5206#error -static-libstdc++ not implemented
5207#endif
e8853092
EB
5208int main() {}
5209_ACEOF
5210if ac_fn_cxx_try_link "$LINENO"; then :
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5212$as_echo "yes" >&6; }; have_static_libs=yes
5213else
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215$as_echo "no" >&6; }
5216fi
5217rm -f core conftest.err conftest.$ac_objext \
5218 conftest$ac_exeext conftest.$ac_ext
5219 ac_ext=c
5220ac_cpp='$CPP $CPPFLAGS'
5221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223ac_compiler_gnu=$ac_cv_c_compiler_gnu
5224
5225
5226 LDFLAGS="$saved_LDFLAGS"
5227fi
5228
31839eae
PB
5229
5230
5231
b58b6ee1 5232if test -n "$ac_tool_prefix"; then
31839eae
PB
5233 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5234set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
efd58f08
RW
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 5237if ${ac_cv_prog_GNATBIND+:} false; then :
efd58f08 5238 $as_echo_n "(cached) " >&6
cfc26d93 5239else
31839eae
PB
5240 if test -n "$GNATBIND"; then
5241 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
cfc26d93 5242else
b58b6ee1
DJ
5243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244for as_dir in $PATH
5245do
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
efd58f08 5248 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 5249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31839eae 5250 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
efd58f08 5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
5252 break 2
5253 fi
5254done
efd58f08
RW
5255 done
5256IFS=$as_save_IFS
b58b6ee1 5257
cfc26d93
NN
5258fi
5259fi
31839eae
PB
5260GNATBIND=$ac_cv_prog_GNATBIND
5261if test -n "$GNATBIND"; then
efd58f08
RW
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5263$as_echo "$GNATBIND" >&6; }
cfc26d93 5264else
efd58f08
RW
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266$as_echo "no" >&6; }
cfc26d93
NN
5267fi
5268
efd58f08 5269
b58b6ee1 5270fi
31839eae
PB
5271if test -z "$ac_cv_prog_GNATBIND"; then
5272 ac_ct_GNATBIND=$GNATBIND
5273 # Extract the first word of "gnatbind", so it can be a program name with args.
5274set dummy gnatbind; ac_word=$2
efd58f08
RW
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 5277if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
efd58f08 5278 $as_echo_n "(cached) " >&6
cfc26d93 5279else
31839eae
PB
5280 if test -n "$ac_ct_GNATBIND"; then
5281 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
cfc26d93 5282else
b58b6ee1
DJ
5283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284for as_dir in $PATH
5285do
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
efd58f08 5288 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 5289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31839eae 5290 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
efd58f08 5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
5292 break 2
5293 fi
5294done
efd58f08
RW
5295 done
5296IFS=$as_save_IFS
b58b6ee1 5297
cfc26d93
NN
5298fi
5299fi
31839eae
PB
5300ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5301if test -n "$ac_ct_GNATBIND"; then
efd58f08
RW
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5303$as_echo "$ac_ct_GNATBIND" >&6; }
cfc26d93 5304else
efd58f08
RW
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306$as_echo "no" >&6; }
cfc26d93
NN
5307fi
5308
efd58f08
RW
5309 if test "x$ac_ct_GNATBIND" = x; then
5310 GNATBIND="no"
5311 else
5312 case $cross_compiling:$ac_tool_warned in
5313yes:)
5314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5316ac_tool_warned=yes ;;
5317esac
5318 GNATBIND=$ac_ct_GNATBIND
5319 fi
893220e0 5320else
31839eae 5321 GNATBIND="$ac_cv_prog_GNATBIND"
cfc26d93
NN
5322fi
5323
60800fb2 5324if test -n "$ac_tool_prefix"; then
31839eae
PB
5325 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5326set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
efd58f08
RW
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 5329if ${ac_cv_prog_GNATMAKE+:} false; then :
efd58f08 5330 $as_echo_n "(cached) " >&6
60800fb2 5331else
31839eae
PB
5332 if test -n "$GNATMAKE"; then
5333 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
60800fb2
PB
5334else
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=.
efd58f08 5340 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 5341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31839eae 5342 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
efd58f08 5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
60800fb2
PB
5344 break 2
5345 fi
5346done
efd58f08
RW
5347 done
5348IFS=$as_save_IFS
60800fb2
PB
5349
5350fi
5351fi
31839eae
PB
5352GNATMAKE=$ac_cv_prog_GNATMAKE
5353if test -n "$GNATMAKE"; then
efd58f08
RW
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5355$as_echo "$GNATMAKE" >&6; }
60800fb2 5356else
efd58f08
RW
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358$as_echo "no" >&6; }
60800fb2
PB
5359fi
5360
efd58f08 5361
60800fb2 5362fi
31839eae
PB
5363if test -z "$ac_cv_prog_GNATMAKE"; then
5364 ac_ct_GNATMAKE=$GNATMAKE
5365 # Extract the first word of "gnatmake", so it can be a program name with args.
5366set dummy gnatmake; ac_word=$2
efd58f08
RW
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 5369if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
efd58f08 5370 $as_echo_n "(cached) " >&6
60800fb2 5371else
31839eae
PB
5372 if test -n "$ac_ct_GNATMAKE"; then
5373 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
60800fb2
PB
5374else
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=.
efd58f08 5380 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 5381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31839eae 5382 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
efd58f08 5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
60800fb2
PB
5384 break 2
5385 fi
5386done
efd58f08
RW
5387 done
5388IFS=$as_save_IFS
60800fb2 5389
60800fb2
PB
5390fi
5391fi
31839eae
PB
5392ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5393if test -n "$ac_ct_GNATMAKE"; then
efd58f08
RW
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5395$as_echo "$ac_ct_GNATMAKE" >&6; }
60800fb2 5396else
efd58f08
RW
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398$as_echo "no" >&6; }
60800fb2
PB
5399fi
5400
efd58f08
RW
5401 if test "x$ac_ct_GNATMAKE" = x; then
5402 GNATMAKE="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 GNATMAKE=$ac_ct_GNATMAKE
5411 fi
60800fb2 5412else
31839eae 5413 GNATMAKE="$ac_cv_prog_GNATMAKE"
60800fb2
PB
5414fi
5415
efd58f08
RW
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5417$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
6d3ddf51 5418if ${acx_cv_cc_gcc_supports_ada+:} false; then :
efd58f08 5419 $as_echo_n "(cached) " >&6
cfc26d93
NN
5420else
5421 cat >conftest.adb <<EOF
5422procedure conftest is begin null; end conftest;
5423EOF
5424acx_cv_cc_gcc_supports_ada=no
5425# There is a bug in old released versions of GCC which causes the
5426# driver to exit successfully when the appropriate language module
5427# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5428# Therefore we must check for the error message as well as an
5429# unsuccessful exit.
866c244e
DD
5430# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5431# given a .adb file, but produce no object file. So we must check
5432# if an object file was really produced to guard against this.
cfc26d93 5433errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
866c244e 5434if test x"$errors" = x && test -f conftest.$ac_objext; then
cfc26d93 5435 acx_cv_cc_gcc_supports_ada=yes
cfc26d93
NN
5436fi
5437rm -f conftest.*
5438fi
efd58f08
RW
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5440$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
cfc26d93 5441
1a08e38b 5442if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
cfc26d93
NN
5443 have_gnat=yes
5444else
5445 have_gnat=no
5446fi
5447
efd58f08
RW
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5449$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
6d3ddf51 5450if ${gcc_cv_prog_cmp_skip+:} false; then :
efd58f08 5451 $as_echo_n "(cached) " >&6
866c244e
DD
5452else
5453 echo abfoo >t1
5454 echo cdfoo >t2
5455 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
cb2333e8
DD
5456 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5457 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5458 :
5459 else
5460 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5461 fi
5462 fi
866c244e
DD
5463 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5464 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
cb2333e8 5465 :
866c244e
DD
5466 else
5467 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5468 fi
5469 fi
5470 rm t1 t2
5471
5472fi
efd58f08
RW
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5474$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
866c244e
DD
5475do_compare="$gcc_cv_prog_cmp_skip"
5476
5477
cfc26d93 5478
c9161585
ILT
5479# Check whether --enable-bootstrap was given.
5480if test "${enable_bootstrap+set}" = set; then :
5481 enableval=$enable_bootstrap;
5482else
5483 enable_bootstrap=default
5484fi
5485
5486
5487# Issue errors and warnings for invalid/strange bootstrap combinations.
5488if test -r $srcdir/gcc/configure; then
5489 have_compiler=yes
5490else
5491 have_compiler=no
5492fi
5493
5494case "$have_compiler:$host:$target:$enable_bootstrap" in
5495 *:*:*:no) ;;
5496
5497 # Default behavior. Enable bootstrap if we have a compiler
5498 # and we are in a native configuration.
5499 yes:$build:$build:default)
5500 enable_bootstrap=yes ;;
5501
5502 *:*:*:default)
5503 enable_bootstrap=no ;;
5504
5505 # We have a compiler and we are in a native configuration, bootstrap is ok
5506 yes:$build:$build:yes)
5507 ;;
5508
5509 # Other configurations, but we have a compiler. Assume the user knows
5510 # what he's doing.
5511 yes:*:*:yes)
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5513$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5514 ;;
5515
5516 # No compiler: if they passed --enable-bootstrap explicitly, fail
5517 no:*:*:yes)
6d3ddf51 5518 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
c9161585
ILT
5519
5520 # Fail if wrong command line
5521 *)
6d3ddf51 5522 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
c9161585
ILT
5523 ;;
5524esac
5525
fe508576
CV
5526# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5527# C++98 compiler can still start the bootstrap.
5528if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5529 CXX="$CXX -std=gnu++98"
5530fi
5531
74fabfaf
KG
5532# Used for setting $lt_cv_objdir
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5534$as_echo_n "checking for objdir... " >&6; }
6d3ddf51 5535if ${lt_cv_objdir+:} false; then :
74fabfaf
KG
5536 $as_echo_n "(cached) " >&6
5537else
5538 rm -f .libs 2>/dev/null
5539mkdir .libs 2>/dev/null
5540if test -d .libs; then
5541 lt_cv_objdir=.libs
5542else
5543 # MS-DOS does not allow filenames that begin with a dot.
5544 lt_cv_objdir=_libs
5545fi
5546rmdir .libs 2>/dev/null
5547fi
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5549$as_echo "$lt_cv_objdir" >&6; }
5550objdir=$lt_cv_objdir
5551
5552
5553
5554
5555
5556cat >>confdefs.h <<_ACEOF
5557#define LT_OBJDIR "$lt_cv_objdir/"
5558_ACEOF
5559
5560
5561
121f0eb2 5562# Check for GMP, MPFR and MPC
1d30ae12 5563gmplibs="-lmpc -lmpfr -lgmp"
cb2333e8 5564gmpinc=
42f55f77 5565have_gmp=no
121f0eb2
RW
5566
5567# Specify a location for mpc
5568# check for this first so it ends up on the link line before mpfr.
5569
efd58f08
RW
5570# Check whether --with-mpc was given.
5571if test "${with_mpc+set}" = set; then :
5572 withval=$with_mpc;
5573fi
121f0eb2 5574
121f0eb2 5575
d5b7129a 5576# Check whether --with-mpc-include was given.
efd58f08
RW
5577if test "${with_mpc_include+set}" = set; then :
5578 withval=$with_mpc_include;
5579fi
121f0eb2 5580
121f0eb2 5581
d5b7129a 5582# Check whether --with-mpc-lib was given.
efd58f08
RW
5583if test "${with_mpc_lib+set}" = set; then :
5584 withval=$with_mpc_lib;
5585fi
121f0eb2 5586
121f0eb2
RW
5587
5588if test "x$with_mpc" != x; then
1d30ae12
KG
5589 gmplibs="-L$with_mpc/lib $gmplibs"
5590 gmpinc="-I$with_mpc/include $gmpinc"
121f0eb2
RW
5591fi
5592if test "x$with_mpc_include" != x; then
1d30ae12 5593 gmpinc="-I$with_mpc_include $gmpinc"
121f0eb2
RW
5594fi
5595if test "x$with_mpc_lib" != x; then
1d30ae12 5596 gmplibs="-L$with_mpc_lib $gmplibs"
121f0eb2
RW
5597fi
5598if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
74fabfaf 5599 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
1d30ae12 5600 gmpinc='-I$$s/mpc/src '"$gmpinc"
121f0eb2
RW
5601 # Do not test the mpc version. Assume that it is sufficient, since
5602 # it is in the source tree, and the library has not been built yet
5603 # but it would be included on the link line in the version check below
5604 # hence making the test fail.
1d30ae12 5605 have_gmp=yes
121f0eb2 5606fi
42f55f77 5607
cbd6bc14
DD
5608# Specify a location for mpfr
5609# check for this first so it ends up on the link line before gmp.
b58b6ee1 5610
efd58f08
RW
5611# Check whether --with-mpfr-dir was given.
5612if test "${with_mpfr_dir+set}" = set; then :
6d3ddf51 5613 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
efd58f08
RW
5614Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5615fi
5616
cbd6bc14
DD
5617
5618
efd58f08
RW
5619# Check whether --with-mpfr was given.
5620if test "${with_mpfr+set}" = set; then :
5621 withval=$with_mpfr;
5622fi
b58b6ee1 5623
cbd6bc14 5624
d5b7129a 5625# Check whether --with-mpfr-include was given.
efd58f08
RW
5626if test "${with_mpfr_include+set}" = set; then :
5627 withval=$with_mpfr_include;
5628fi
b58b6ee1 5629
14a1406e 5630
d5b7129a 5631# Check whether --with-mpfr-lib was given.
efd58f08
RW
5632if test "${with_mpfr_lib+set}" = set; then :
5633 withval=$with_mpfr_lib;
5634fi
14a1406e 5635
cbd6bc14
DD
5636
5637if test "x$with_mpfr" != x; then
5638 gmplibs="-L$with_mpfr/lib $gmplibs"
1d30ae12 5639 gmpinc="-I$with_mpfr/include $gmpinc"
cbd6bc14 5640fi
14a1406e 5641if test "x$with_mpfr_include" != x; then
1d30ae12 5642 gmpinc="-I$with_mpfr_include $gmpinc"
14a1406e
PB
5643fi
5644if test "x$with_mpfr_lib" != x; then
5645 gmplibs="-L$with_mpfr_lib $gmplibs"
5646fi
42f55f77 5647if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
d5632bcf
AK
5648 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5649 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5650 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
42f55f77
PB
5651 # Do not test the mpfr version. Assume that it is sufficient, since
5652 # it is in the source tree, and the library has not been built yet
5653 # but it would be included on the link line in the version check below
5654 # hence making the test fail.
5655 have_gmp=yes
5656fi
cbd6bc14 5657
cb2333e8 5658# Specify a location for gmp
b58b6ee1 5659
efd58f08
RW
5660# Check whether --with-gmp-dir was given.
5661if test "${with_gmp_dir+set}" = set; then :
6d3ddf51 5662 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
efd58f08
RW
5663Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5664fi
5665
cb2333e8
DD
5666
5667
efd58f08
RW
5668# Check whether --with-gmp was given.
5669if test "${with_gmp+set}" = set; then :
5670 withval=$with_gmp;
5671fi
b58b6ee1 5672
cb2333e8 5673
d5b7129a 5674# Check whether --with-gmp-include was given.
efd58f08
RW
5675if test "${with_gmp_include+set}" = set; then :
5676 withval=$with_gmp_include;
5677fi
b58b6ee1 5678
14a1406e 5679
d5b7129a 5680# Check whether --with-gmp-lib was given.
efd58f08
RW
5681if test "${with_gmp_lib+set}" = set; then :
5682 withval=$with_gmp_lib;
5683fi
14a1406e
PB
5684
5685
cb2333e8 5686
cbd6bc14
DD
5687if test "x$with_gmp" != x; then
5688 gmplibs="-L$with_gmp/lib $gmplibs"
5689 gmpinc="-I$with_gmp/include $gmpinc"
cb2333e8 5690fi
14a1406e
PB
5691if test "x$with_gmp_include" != x; then
5692 gmpinc="-I$with_gmp_include $gmpinc"
5693fi
5694if test "x$with_gmp_lib" != x; then
5695 gmplibs="-L$with_gmp_lib $gmplibs"
5696fi
42f55f77 5697if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
74fabfaf 5698 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
42f55f77 5699 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
65a20d8c 5700 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
74fabfaf 5701 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
a626f4ee 5702 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
42f55f77
PB
5703 # Do not test the gmp version. Assume that it is sufficient, since
5704 # it is in the source tree, and the library has not been built yet
5705 # but it would be included on the link line in the version check below
5706 # hence making the test fail.
5707 have_gmp=yes
5708fi
cb2333e8 5709
bd74ff2b 5710if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
42f55f77
PB
5711 have_gmp=yes
5712 saved_CFLAGS="$CFLAGS"
5713 CFLAGS="$CFLAGS $gmpinc"
dded80b3
KG
5714 # Check for the recommended and required versions of GMP.
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5716$as_echo_n "checking for the correct version of gmp.h... " >&6; }
112afadf
RW
5717
5718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dded80b3
KG
5719/* end confdefs.h. */
5720#include "gmp.h"
5721int
5722main ()
5723{
5724
5725 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5726 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
125bb3c9 5727 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
dded80b3
KG
5728 choke me
5729 #endif
5730
5731 ;
5732 return 0;
5733}
5734_ACEOF
5735if ac_fn_c_try_compile "$LINENO"; then :
112afadf 5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b58b6ee1 5737/* end confdefs.h. */
dded80b3 5738#include <gmp.h>
b58b6ee1
DJ
5739int
5740main ()
5741{
cb2333e8 5742
dded80b3
KG
5743 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5744 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5745 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
42f55f77
PB
5746 choke me
5747 #endif
b58b6ee1
DJ
5748
5749 ;
5750 return 0;
5751}
5752_ACEOF
efd58f08
RW
5753if ac_fn_c_try_compile "$LINENO"; then :
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5755$as_echo "yes" >&6; }
dded80b3
KG
5756else
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5758$as_echo "buggy but acceptable" >&6; }
5759fi
5760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b58b6ee1 5761else
efd58f08
RW
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763$as_echo "no" >&6; }; have_gmp=no
b58b6ee1 5764fi
efd58f08 5765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cb2333e8 5766
121f0eb2 5767 # If we have GMP, check the MPFR version.
42f55f77 5768 if test x"$have_gmp" = xyes; then
dded80b3
KG
5769 # Check for the recommended and required versions of MPFR.
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5771$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
efd58f08 5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b58b6ee1 5773/* end confdefs.h. */
75ea5758 5774#include <gmp.h>
42f55f77 5775 #include <mpfr.h>
b58b6ee1
DJ
5776int
5777main ()
5778{
75ea5758 5779
a626f4ee 5780 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
42f55f77
PB
5781 choke me
5782 #endif
b58b6ee1
DJ
5783
5784 ;
5785 return 0;
5786}
5787_ACEOF
efd58f08
RW
5788if ac_fn_c_try_compile "$LINENO"; then :
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b58b6ee1 5790/* end confdefs.h. */
cb2333e8 5791#include <gmp.h>
42f55f77 5792 #include <mpfr.h>
b58b6ee1
DJ
5793int
5794main ()
5795{
a6a4e782 5796
dded80b3 5797 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
42f55f77
PB
5798 choke me
5799 #endif
121f0eb2
RW
5800
5801 ;
5802 return 0;
5803}
5804_ACEOF
efd58f08
RW
5805if ac_fn_c_try_compile "$LINENO"; then :
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5807$as_echo "yes" >&6; }
121f0eb2 5808else
efd58f08
RW
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5810$as_echo "buggy but acceptable" >&6; }
121f0eb2 5811fi
efd58f08 5812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
121f0eb2 5813else
efd58f08
RW
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815$as_echo "no" >&6; }; have_gmp=no
121f0eb2 5816fi
efd58f08 5817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
121f0eb2
RW
5818 fi
5819
5820 # Check for the MPC header version.
1d30ae12 5821 if test x"$have_gmp" = xyes ; then
dded80b3 5822 # Check for the recommended and required versions of MPC.
efd58f08
RW
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5824$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
121f0eb2
RW
5826/* end confdefs.h. */
5827#include <mpc.h>
5828int
5829main ()
5830{
5831
dded80b3
KG
5832 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5833 choke me
5834 #endif
5835
5836 ;
5837 return 0;
5838}
5839_ACEOF
5840if ac_fn_c_try_compile "$LINENO"; then :
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842/* end confdefs.h. */
5843#include <mpc.h>
5844int
5845main ()
5846{
5847
5848 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
121f0eb2
RW
5849 choke me
5850 #endif
5851
5852 ;
5853 return 0;
5854}
5855_ACEOF
efd58f08
RW
5856if ac_fn_c_try_compile "$LINENO"; then :
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1d30ae12 5858$as_echo "yes" >&6; }
dded80b3
KG
5859else
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5861$as_echo "buggy but acceptable" >&6; }
5862fi
5863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
121f0eb2 5864else
efd58f08 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1d30ae12 5866$as_echo "no" >&6; }; have_gmp=no
121f0eb2 5867fi
efd58f08 5868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
121f0eb2
RW
5869 fi
5870
5871 # Now check the MPFR library.
5872 if test x"$have_gmp" = xyes; then
5873 saved_LIBS="$LIBS"
5874 LIBS="$LIBS $gmplibs"
1d30ae12
KG
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5876$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
efd58f08 5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
121f0eb2 5878/* end confdefs.h. */
1d30ae12 5879#include <mpc.h>
121f0eb2
RW
5880int
5881main ()
5882{
5883
5884 mpfr_t n;
5885 mpfr_t x;
1d30ae12 5886 mpc_t c;
121f0eb2
RW
5887 int t;
5888 mpfr_init (n);
5889 mpfr_init (x);
5890 mpfr_atan2 (n, n, x, GMP_RNDN);
5891 mpfr_erfc (n, x, GMP_RNDN);
5892 mpfr_subnormalize (x, t, GMP_RNDN);
1d30ae12
KG
5893 mpfr_clear(n);
5894 mpfr_clear(x);
5895 mpc_init2 (c, 53);
5896 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5897 mpc_cosh (c, c, MPC_RNDNN);
5898 mpc_pow (c, c, c, MPC_RNDNN);
5899 mpc_acosh (c, c, MPC_RNDNN);
5900 mpc_clear (c);
b58b6ee1
DJ
5901
5902 ;
5903 return 0;
5904}
5905_ACEOF
efd58f08
RW
5906if ac_fn_c_try_link "$LINENO"; then :
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5908$as_echo "yes" >&6; }
b58b6ee1 5909else
efd58f08
RW
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911$as_echo "no" >&6; }; have_gmp=no
b58b6ee1 5912fi
efd58f08
RW
5913rm -f core conftest.err conftest.$ac_objext \
5914 conftest$ac_exeext conftest.$ac_ext
121f0eb2
RW
5915 LIBS="$saved_LIBS"
5916 fi
5917
42f55f77 5918 CFLAGS="$saved_CFLAGS"
cb2333e8 5919
dded80b3
KG
5920# The library versions listed in the error message below should match
5921# the HARD-minimums enforced above.
42f55f77 5922 if test x$have_gmp != xyes; then
6d3ddf51 5923 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
1d30ae12
KG
5924Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5925their locations. Source code for these libraries can be found at
5926their respective hosting sites as well as at
5927ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5928http://gcc.gnu.org/install/prerequisites.html for additional info. If
5929you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5930make sure that you have installed both the libraries and the header
5931files. They may be located in separate packages." "$LINENO" 5
42f55f77 5932 fi
a6a4e782
DD
5933fi
5934
121f0eb2
RW
5935# Flags needed for both GMP, MPFR and/or MPC.
5936
5937
5938
cb2333e8
DD
5939
5940
5941
a626f4ee 5942
e8853092 5943# Libraries to use for stage1 or when not bootstrapping.
121f0eb2 5944
e8853092
EB
5945# Check whether --with-stage1-libs was given.
5946if test "${with_stage1_libs+set}" = set; then :
5947 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5948 stage1_libs=
121f0eb2 5949 else
e8853092 5950 stage1_libs=$withval
121f0eb2
RW
5951 fi
5952else
fe508576 5953 stage1_libs=
efd58f08
RW
5954fi
5955
121f0eb2
RW
5956
5957
e8853092 5958# Linker flags to use for stage1 or when not bootstrapping.
121f0eb2 5959
e8853092
EB
5960# Check whether --with-stage1-ldflags was given.
5961if test "${with_stage1_ldflags+set}" = set; then :
5962 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5963 stage1_ldflags=
121f0eb2 5964 else
e8853092 5965 stage1_ldflags=$withval
121f0eb2
RW
5966 fi
5967else
e8853092
EB
5968 stage1_ldflags=
5969 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5970 # if supported. But if the user explicitly specified the libraries to use,
5971 # trust that they are doing what they want.
5972 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5973 stage1_ldflags="-static-libstdc++ -static-libgcc"
5974 fi
efd58f08
RW
5975fi
5976
121f0eb2
RW
5977
5978
fe508576 5979# Libraries to use for stage2 and later builds.
121f0eb2 5980
efd58f08
RW
5981# Check whether --with-boot-libs was given.
5982if test "${with_boot_libs+set}" = set; then :
5983 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
121f0eb2
RW
5984 poststage1_libs=
5985 else
5986 poststage1_libs=$withval
5987 fi
5988else
fe508576 5989 poststage1_libs=
efd58f08
RW
5990fi
5991
121f0eb2
RW
5992
5993
f107c370
NC
5994# Linker flags to use for stage2 and later builds.
5995
5996# Check whether --with-boot-ldflags was given.
5997if test "${with_boot_ldflags+set}" = set; then :
5998 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5999 poststage1_ldflags=
6000 else
6001 poststage1_ldflags=$withval
6002 fi
6003else
6004 poststage1_ldflags=
f2588cb9
ILT
6005 # In stages 2 and 3, default to linking libstdc++ and libgcc
6006 # statically. But if the user explicitly specified the libraries to
6007 # use, trust that they are doing what they want.
6008 if test "$poststage1_libs" = ""; then
f107c370
NC
6009 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6010 fi
6011fi
6012
6013
6014
fe508576
CV
6015# GCC GRAPHITE dependency isl.
6016# Basic setup is inlined here, actual checks are in config/isl.m4
311b6756
JM
6017
6018
a626f4ee
L
6019# Check whether --with-isl was given.
6020if test "${with_isl+set}" = set; then :
6021 withval=$with_isl;
efd58f08 6022fi
311b6756 6023
311b6756 6024
fe508576 6025# Treat --without-isl as a request to disable
125bb3c9 6026# GRAPHITE support and skip all following checks.
fe508576
CV
6027if test "x$with_isl" != "xno"; then
6028 # Check for isl
125bb3c9
L
6029
6030
a626f4ee
L
6031# Check whether --with-isl-include was given.
6032if test "${with_isl_include+set}" = set; then :
6033 withval=$with_isl_include;
efd58f08
RW
6034fi
6035
311b6756 6036
a626f4ee
L
6037# Check whether --with-isl-lib was given.
6038if test "${with_isl_lib+set}" = set; then :
6039 withval=$with_isl_lib;
efd58f08 6040fi
311b6756 6041
311b6756 6042
a626f4ee
L
6043 # Check whether --enable-isl-version-check was given.
6044if test "${enable_isl_version_check+set}" = set; then :
6045 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6046else
6047 ENABLE_ISL_CHECK=yes
2e4cdd55
SP
6048fi
6049
6050
a626f4ee
L
6051 # Initialize isllibs and islinc.
6052 case $with_isl in
6053 no)
6054 isllibs=
6055 islinc=
6056 ;;
6057 "" | yes)
6058 ;;
6059 *)
6060 isllibs="-L$with_isl/lib"
6061 islinc="-I$with_isl/include"
6062 ;;
6063 esac
6064 if test "x${with_isl_include}" != x ; then
6065 islinc="-I$with_isl_include"
6066 fi
6067 if test "x${with_isl_lib}" != x; then
6068 isllibs="-L$with_isl_lib"
6069 fi
6070 if test "x${islinc}" = x && test "x${isllibs}" = x \
6071 && test -d ${srcdir}/isl; then
6072 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6073 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6074 ENABLE_ISL_CHECK=no
fe508576
CV
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6076$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
a626f4ee 6077 fi
2e4cdd55 6078
fe508576
CV
6079 isllibs="${isllibs} -lisl"
6080
2e4cdd55 6081
311b6756 6082
0a7746bd
JBG
6083 if test "${ENABLE_ISL_CHECK}" = yes ; then
6084 _isl_saved_CFLAGS=$CFLAGS
6085 _isl_saved_LDFLAGS=$LDFLAGS
6086 _isl_saved_LIBS=$LIBS
6087
6088 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
fe508576
CV
6089 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6090 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
0a7746bd 6091
fe508576
CV
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
6093$as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0a7746bd 6095/* end confdefs.h. */
fe508576 6096#include <isl/ctx.h>
0a7746bd
JBG
6097int
6098main ()
6099{
fe508576 6100isl_ctx_get_max_operations (isl_ctx_alloc ());
0a7746bd
JBG
6101 ;
6102 return 0;
6103}
6104_ACEOF
fe508576 6105if ac_fn_c_try_link "$LINENO"; then :
0a7746bd
JBG
6106 gcc_cv_isl=yes
6107else
6108 gcc_cv_isl=no
6109fi
fe508576
CV
6110rm -f core conftest.err conftest.$ac_objext \
6111 conftest$ac_exeext conftest.$ac_ext
0a7746bd 6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
a626f4ee 6113$as_echo "$gcc_cv_isl" >&6; }
efd58f08 6114
fe508576
CV
6115 if test "${gcc_cv_isl}" = no ; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
6117$as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
6118 fi
31fb5c64 6119
fe508576
CV
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
6121$as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31fb5c64 6123/* end confdefs.h. */
fe508576 6124#include <isl/schedule.h>
31fb5c64
JBG
6125int
6126main ()
6127{
fe508576 6128isl_options_set_schedule_serialize_sccs (NULL, 0);
31fb5c64
JBG
6129 ;
6130 return 0;
6131}
6132_ACEOF
fe508576
CV
6133if ac_fn_c_try_link "$LINENO"; then :
6134 ac_has_isl_options_set_schedule_serialize_sccs=yes
31fb5c64 6135else
fe508576 6136 ac_has_isl_options_set_schedule_serialize_sccs=no
31fb5c64 6137fi
fe508576
CV
6138rm -f core conftest.err conftest.$ac_objext \
6139 conftest$ac_exeext conftest.$ac_ext
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
6141$as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
31fb5c64 6142
fe508576
CV
6143 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
6144 islver="0.15"
6145
6146 fi
31fb5c64
JBG
6147
6148 CFLAGS=$_isl_saved_CFLAGS
6149 LDFLAGS=$_isl_saved_LDFLAGS
6150 LIBS=$_isl_saved_LIBS
6151 fi
6152
6153
311b6756 6154
311b6756 6155
a626f4ee
L
6156
6157
a626f4ee
L
6158 if test "x${with_isl}" = xno; then
6159 graphite_requested=no
6160 elif test "x${with_isl}" != x \
6161 || test "x${with_isl_include}" != x \
6162 || test "x${with_isl_lib}" != x ; then
6163 graphite_requested=yes
6164 else
6165 graphite_requested=no
2e4cdd55 6166 fi
311b6756 6167
311b6756
JM
6168
6169
a626f4ee
L
6170 if test "${gcc_cv_isl}" = no ; then
6171 isllibs=
6172 islinc=
6173 fi
311b6756 6174
a626f4ee
L
6175 if test "${graphite_requested}" = yes \
6176 && test "x${isllibs}" = x \
6177 && test "x${islinc}" = x ; then
311b6756 6178
6d3ddf51 6179 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
a626f4ee 6180 fi
d5b7129a 6181
311b6756 6182
efd58f08 6183fi
311b6756 6184
fe508576 6185# If the isl check failed, disable builds of in-tree variant of isl
125bb3c9 6186if test "x$with_isl" = xno ||
125bb3c9 6187 test "x$gcc_cv_isl" = xno; then
fe508576 6188 noconfigdirs="$noconfigdirs isl"
125bb3c9 6189 islinc=
a626f4ee
L
6190fi
6191
125bb3c9
L
6192
6193
6194
bd45d6fa
ILT
6195# Check for LTO support.
6196# Check whether --enable-lto was given.
6197if test "${enable_lto+set}" = set; then :
6198 enableval=$enable_lto; enable_lto=$enableval
6199else
6200 enable_lto=yes; default_enable_lto=yes
6201fi
6202
6203
f107c370 6204
0b3906a8
DK
6205
6206
6207target_elf=no
6208case $target in
6209 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
7b6010cc 6210 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
79bb0de3 6211 alpha*-dec-osf* | hppa[12]*-*-hpux* | \
fe508576 6212 nvptx-*-none)
0b3906a8
DK
6213 target_elf=no
6214 ;;
6215 *)
6216 target_elf=yes
6217 ;;
6218esac
6219
6220if test $target_elf = yes; then :
5e504c84
DK
6221 # ELF platforms build the lto-plugin always.
6222 build_lto_plugin=yes
0b3906a8 6223
0b3906a8
DK
6224else
6225 if test x"$default_enable_lto" = x"yes" ; then
65a20d8c 6226 case $target in
fe508576 6227 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
5e504c84 6228 # On other non-ELF platforms, LTO has yet to be validated.
65a20d8c
RW
6229 *) enable_lto=no ;;
6230 esac
0b3906a8 6231 else
65a20d8c
RW
6232 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6233 # It would also be nice to check the binutils support, but we don't
0b3906a8
DK
6234 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6235 # warn during gcc/ subconfigure; unless you're bootstrapping with
6236 # -flto it won't be needed until after installation anyway.
6237 case $target in
fe508576 6238 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
0b3906a8 6239 *) if test x"$enable_lto" = x"yes"; then
6d3ddf51 6240 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
0b3906a8
DK
6241 fi
6242 ;;
6243 esac
6244 fi
1a91b8c0 6245 # Among non-ELF, only Windows platforms support the lto-plugin so far.
5e504c84 6246 # Build it unless LTO was explicitly disabled.
1a91b8c0 6247 case $target in
5e504c84 6248 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1a91b8c0
DK
6249 *) ;;
6250 esac
5e504c84 6251
0b3906a8
DK
6252fi
6253
bd45d6fa 6254
fe508576
CV
6255# Check whether --enable-linker-plugin-configure-flags was given.
6256if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6257 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6258else
6259 extra_linker_plugin_configure_flags=
6260fi
6261
6262
6263# Check whether --enable-linker-plugin-flags was given.
6264if test "${enable_linker_plugin_flags+set}" = set; then :
6265 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6266else
6267 extra_linker_plugin_flags=
6268fi
6269
6270
6271
311b6756 6272
a626f4ee 6273# By default, C and C++ are the only stage 1 languages.
75ea5758 6274stage1_languages=,c,
457eaf16 6275
121f0eb2 6276# Target libraries that we bootstrap.
bf01561d 6277bootstrap_target_libs=,target-libgcc,
121f0eb2 6278
cfc26d93
NN
6279# Figure out what language subdirectories are present.
6280# Look if the user specified --enable-languages="..."; if not, use
6281# the environment variable $LANGUAGES if defined. $LANGUAGES might
6282# go away some day.
6283# NB: embedded tabs in this IF block -- do not untabify
6284if test -d ${srcdir}/gcc; then
6285 if test x"${enable_languages+set}" != xset; then
6286 if test x"${LANGUAGES+set}" = xset; then
6287 enable_languages="${LANGUAGES}"
fe508576 6288 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
cfc26d93
NN
6289 else
6290 enable_languages=all
6291 fi
6292 else
6293 if test x"${enable_languages}" = x ||
6294 test x"${enable_languages}" = xyes;
6295 then
fe508576 6296 echo configure.ac: --enable-languages needs at least one language argument 1>&2
cfc26d93
NN
6297 exit 1
6298 fi
6299 fi
6300 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6301
c2105cb9
DE
6302 # 'f95' is the old name for the 'fortran' language. We issue a warning
6303 # and make the substitution.
6304 case ,${enable_languages}, in
6305 *,f95,*)
fe508576 6306 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
c2105cb9
DE
6307 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6308 ;;
6309 esac
6310
a626f4ee
L
6311 # If bootstrapping, C++ must be enabled.
6312 case ",$enable_languages,:$enable_bootstrap" in
6313 *,c++,*:*) ;;
6314 *:yes)
c9161585
ILT
6315 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6316 enable_languages="${enable_languages},c++"
6317 else
6d3ddf51 6318 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
c9161585
ILT
6319 fi
6320 ;;
6321 esac
6322
cfc26d93
NN
6323 # First scan to see if an enabled language requires some other language.
6324 # We assume that a given config-lang.in will list all the language
6325 # front ends it requires, even if some are required indirectly.
6326 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6327 case ${lang_frag} in
6328 ..) ;;
6329 # The odd quoting in the next line works around
6330 # an apparent bug in bash 1.12 on linux.
6331 ${srcdir}/gcc/[*]/config-lang.in) ;;
6332 *)
d5b7129a
ILT
6333 # From the config-lang.in, get $language, $lang_requires, and
6334 # $lang_requires_boot_languages.
cfc26d93
NN
6335 language=
6336 lang_requires=
d5b7129a 6337 lang_requires_boot_languages=
cfc26d93 6338 . ${lang_frag}
d5b7129a 6339 for other in ${lang_requires} ${lang_requires_boot_languages}; do
cfc26d93
NN
6340 case ,${enable_languages}, in
6341 *,$other,*) ;;
6342 *,all,*) ;;
6343 *,$language,*)
6344 echo " \`$other' language required by \`$language'; enabling" 1>&2
6345 enable_languages="${enable_languages},${other}"
6346 ;;
6347 esac
6348 done
d5b7129a
ILT
6349 for other in ${lang_requires_boot_languages} ; do
6350 if test "$other" != "c"; then
6351 case ,${enable_stage1_languages}, in
6352 *,$other,*) ;;
6353 *,all,*) ;;
6354 *)
6355 case ,${enable_languages}, in
6356 *,$language,*)
6357 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6358 enable_stage1_languages="$enable_stage1_languages,${other}"
6359 ;;
6360 esac
6361 ;;
6362 esac
6363 fi
6364 done
cfc26d93
NN
6365 ;;
6366 esac
6367 done
6368
75ea5758 6369 new_enable_languages=,c,
bd45d6fa
ILT
6370
6371 # If LTO is enabled, add the LTO front end.
bd45d6fa 6372 if test "$enable_lto" = "yes" ; then
6c41e710
RW
6373 case ,${enable_languages}, in
6374 *,lto,*) ;;
6375 *) enable_languages="${enable_languages},lto" ;;
6376 esac
1a91b8c0 6377 if test "${build_lto_plugin}" = "yes" ; then
bd45d6fa 6378 configdirs="$configdirs lto-plugin"
bd45d6fa
ILT
6379 fi
6380 fi
6381
fe508576
CV
6382 # If we're building an offloading compiler, add the LTO front end.
6383 if test x"$enable_as_accelerator_for" != x ; then
6384 case ,${enable_languages}, in
6385 *,lto,*) ;;
6386 *) enable_languages="${enable_languages},lto" ;;
6387 esac
6388 fi
bd45d6fa 6389
cfc26d93 6390 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
75ea5758 6391 potential_languages=,c,
cfc26d93 6392
77a5d6cc
ILT
6393 enabled_target_libs=
6394 disabled_target_libs=
6395
cfc26d93
NN
6396 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6397 case ${lang_frag} in
6398 ..) ;;
6399 # The odd quoting in the next line works around
6400 # an apparent bug in bash 1.12 on linux.
6401 ${srcdir}/gcc/[*]/config-lang.in) ;;
6402 *)
b58b6ee1 6403 # From the config-lang.in, get $language, $target_libs,
457eaf16 6404 # $lang_dirs, $boot_language, and $build_by_default
cfc26d93
NN
6405 language=
6406 target_libs=
6407 lang_dirs=
f90716dd 6408 subdir_requires=
75ea5758
PB
6409 boot_language=no
6410 build_by_default=yes
cfc26d93 6411 . ${lang_frag}
75ea5758
PB
6412 if test x${language} = x; then
6413 echo "${lang_frag} doesn't set \$language." 1>&2
6414 exit 1
6415 fi
6416
c9161585 6417 if test "$language" = "c++"; then
a626f4ee 6418 boot_language=yes
121f0eb2
RW
6419 fi
6420
125bb3c9 6421 add_this_lang=no
75ea5758
PB
6422 case ,${enable_languages}, in
6423 *,${language},*)
a626f4ee
L
6424 # Language was explicitly selected; include it
6425 # unless it is C, which is enabled by default.
6426 if test "$language" != "c"; then
6427 add_this_lang=yes
6428 fi
cfc26d93 6429 ;;
75ea5758
PB
6430 *,all,*)
6431 # 'all' was selected, select it if it is a default language
125bb3c9
L
6432 if test "$language" != "c"; then
6433 add_this_lang=${build_by_default}
6434 fi
cfc26d93
NN
6435 ;;
6436 esac
cb2333e8 6437
f90716dd 6438 # Disable languages that need other directories if these aren't available.
37b43cde 6439 for i in $subdir_requires; do
69d5f332 6440 test -f "$srcdir/gcc/$i/config-lang.in" && continue
f90716dd
PB
6441 case ,${enable_languages}, in
6442 *,${language},*)
6443 # Specifically requested language; tell them.
6d3ddf51 6444 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
f90716dd
PB
6445 ;;
6446 *)
6447 # Silently disable.
75ea5758 6448 add_this_lang=unsupported
f90716dd
PB
6449 ;;
6450 esac
6451 done
6452
75ea5758
PB
6453 # Disable Ada if no preexisting GNAT is available.
6454 case ,${enable_languages},:${language}:${have_gnat} in
6455 *,${language},*:ada:no)
6456 # Specifically requested language; tell them.
6d3ddf51 6457 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
75ea5758
PB
6458 ;;
6459 *:ada:no)
6460 # Silently disable.
6461 add_this_lang=unsupported
6462 ;;
6463 esac
6464
aac893c5
HPN
6465 # Disable a language that is unsupported by the target.
6466 case " $unsupported_languages " in
6467 *" $language "*)
75ea5758 6468 add_this_lang=unsupported
aac893c5
HPN
6469 ;;
6470 esac
6471
cb2333e8 6472 case $add_this_lang in
75ea5758 6473 unsupported)
cfc26d93 6474 # Remove language-dependent dirs.
77a5d6cc
ILT
6475 disabled_target_libs="$disabled_target_libs $target_libs"
6476 noconfigdirs="$noconfigdirs $lang_dirs"
457eaf16 6477 ;;
75ea5758
PB
6478 no)
6479 # Remove language-dependent dirs; still show language as supported.
77a5d6cc
ILT
6480 disabled_target_libs="$disabled_target_libs $target_libs"
6481 noconfigdirs="$noconfigdirs $lang_dirs"
75ea5758
PB
6482 potential_languages="${potential_languages}${language},"
6483 ;;
6484 yes)
6485 new_enable_languages="${new_enable_languages}${language},"
6486 potential_languages="${potential_languages}${language},"
457eaf16 6487 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
77a5d6cc 6488 enabled_target_libs="$enabled_target_libs $target_libs"
e1762cf3
RW
6489 case "${boot_language}:,$enable_stage1_languages," in
6490 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8ec98d6c 6491 # Add to (comma-separated) list of stage 1 languages.
e1762cf3
RW
6492 case ",$stage1_languages," in
6493 *,$language,* | ,yes, | ,all,) ;;
6494 *) stage1_languages="${stage1_languages}${language}," ;;
6495 esac
121f0eb2
RW
6496 # We need to bootstrap any supporting libraries.
6497 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
457eaf16
NN
6498 ;;
6499 esac
6500 ;;
cfc26d93
NN
6501 esac
6502 ;;
6503 esac
6504 done
6505
77a5d6cc
ILT
6506 # Add target libraries which are only needed for disabled languages
6507 # to noconfigdirs.
6508 if test -n "$disabled_target_libs"; then
6509 for dir in $disabled_target_libs; do
6510 case " $enabled_target_libs " in
6511 *" ${dir} "*) ;;
6512 *) noconfigdirs="$noconfigdirs $dir" ;;
6513 esac
6514 done
6515 fi
6516
efd58f08
RW
6517 # Check whether --enable-stage1-languages was given.
6518if test "${enable_stage1_languages+set}" = set; then :
6519 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
75ea5758
PB
6520 ,no,|,,)
6521 # Set it to something that will have no effect in the loop below
6522 enable_stage1_languages=c ;;
6523 ,yes,)
6524 enable_stage1_languages=`echo $new_enable_languages | \
6525 sed -e "s/^,//" -e "s/,$//" ` ;;
6526 *,all,*)
6527 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6528 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6529 esac
6530
6531 # Add "good" languages from enable_stage1_languages to stage1_languages,
6532 # while "bad" languages go in missing_languages. Leave no duplicates.
6533 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6534 case $potential_languages in
6535 *,$i,*)
6536 case $stage1_languages in
6537 *,$i,*) ;;
6538 *) stage1_languages="$stage1_languages$i," ;;
6539 esac ;;
6540 *)
6541 case $missing_languages in
6542 *,$i,*) ;;
6543 *) missing_languages="$missing_languages$i," ;;
6544 esac ;;
6545 esac
6546 done
efd58f08
RW
6547fi
6548
75ea5758
PB
6549
6550 # Remove leading/trailing commas that were added for simplicity
6551 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
2e93c971 6552 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
75ea5758
PB
6553 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6554 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6555
cfc26d93 6556 if test "x$missing_languages" != x; then
6d3ddf51 6557 as_fn_error $? "
57bcaf2d 6558The following requested languages could not be built: ${missing_languages}
efd58f08 6559Supported languages are: ${potential_languages}" "$LINENO" 5
cfc26d93 6560 fi
cfc26d93
NN
6561 if test "x$new_enable_languages" != "x$enable_languages"; then
6562 echo The following languages will be built: ${new_enable_languages}
75ea5758 6563 enable_languages="$new_enable_languages"
cfc26d93 6564 fi
75ea5758 6565
b58b6ee1 6566
0661a4a3 6567 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
cfc26d93
NN
6568fi
6569
f621a0dc
PB
6570# Handle --disable-<component> generically.
6571for dir in $configdirs $build_configdirs $target_configdirs ; do
6572 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
3fbb5e3d
PB
6573 varname=`echo $dirname | sed -e s/+/_/g`
6574 if eval test x\${enable_${varname}} "=" xno ; then
f621a0dc
PB
6575 noconfigdirs="$noconfigdirs $dir"
6576 fi
6577done
6578
e1e5148c 6579# Check for Boehm's garbage collector
efd58f08
RW
6580# Check whether --enable-objc-gc was given.
6581if test "${enable_objc_gc+set}" = set; then :
6582 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
e1e5148c 6583 *,objc,*:*:yes:*target-boehm-gc*)
6d3ddf51 6584 as_fn_error $? "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
e1e5148c
CD
6585 ;;
6586esac
efd58f08
RW
6587fi
6588
e1e5148c
CD
6589
6590# Make sure we only build Boehm's garbage collector if required.
09fd280c
DA
6591case ,${enable_languages},:${enable_objc_gc} in
6592 *,objc,*:yes)
e1e5148c
CD
6593 # Keep target-boehm-gc if requested for Objective-C.
6594 ;;
e1e5148c 6595 *)
09fd280c
DA
6596 # Otherwise remove target-boehm-gc depending on target-libjava.
6597 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6598 noconfigdirs="$noconfigdirs target-boehm-gc"
6599 fi
e1e5148c
CD
6600 ;;
6601esac
6602
fe508576 6603# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
a626f4ee 6604case ,${enable_languages}, in
fe508576
CV
6605 *,c++,*)
6606 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6607 case "${noconfigdirs}" in
6608 *target-libstdc++-v3*)
6609 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6610 ;;
6611 *) ;;
6612 esac
6613 ;;
a626f4ee 6614 *)
fe508576 6615 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
a626f4ee
L
6616 ;;
6617esac
6618
3d439922
AL
6619# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6620# $build_configdirs and $target_configdirs.
cfc26d93
NN
6621# If we have the source for $noconfigdirs entries, add them to $notsupp.
6622
6623notsupp=""
6624for dir in . $skipdirs $noconfigdirs ; do
3d439922 6625 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
cfc26d93
NN
6626 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6627 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6628 if test -r $srcdir/$dirname/configure ; then
6629 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6630 true
6631 else
6632 notsupp="$notsupp $dir"
6633 fi
6634 fi
6635 fi
3d439922
AL
6636 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6637 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6638 if test -r $srcdir/$dirname/configure ; then
6639 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6640 true
6641 else
6642 notsupp="$notsupp $dir"
6643 fi
6644 fi
6645 fi
cfc26d93
NN
6646 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6647 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6648 if test -r $srcdir/$dirname/configure ; then
6649 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6650 true
6651 else
6652 notsupp="$notsupp $dir"
6653 fi
6654 fi
6655 fi
6656done
6657
cfc26d93
NN
6658# Quietly strip out all directories which aren't configurable in this tree.
6659# This relies on all configurable subdirectories being autoconfiscated, which
6660# is now the case.
2cb47d68
PB
6661build_configdirs_all="$build_configdirs"
6662build_configdirs=
6663for i in ${build_configdirs_all} ; do
b58b6ee1 6664 j=`echo $i | sed -e s/build-//g`
2cb47d68
PB
6665 if test -f ${srcdir}/$j/configure ; then
6666 build_configdirs="${build_configdirs} $i"
6667 fi
6668done
6669
cfc26d93
NN
6670configdirs_all="$configdirs"
6671configdirs=
6672for i in ${configdirs_all} ; do
6673 if test -f ${srcdir}/$i/configure ; then
6674 configdirs="${configdirs} $i"
6675 fi
6676done
2cb47d68 6677
cfc26d93
NN
6678target_configdirs_all="$target_configdirs"
6679target_configdirs=
6680for i in ${target_configdirs_all} ; do
b58b6ee1 6681 j=`echo $i | sed -e s/target-//g`
cfc26d93
NN
6682 if test -f ${srcdir}/$j/configure ; then
6683 target_configdirs="${target_configdirs} $i"
6684 fi
6685done
6686
fe508576
CV
6687# Exclude target-zlib if target-libjava isn't built.
6688case ${target_configdirs} in
6689*target-libjava*)
6690 ;;
6691*)
6692 target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6693 ;;
6694esac
6695
6696# libiberty-linker-plugin is special: it doesn't have its own source directory,
6697# so we have to add it after the preceding checks.
6698if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6699then
6700 case " $configdirs " in
6701 *" libiberty "*)
6702 # If we can build libiberty, we can also build libiberty-linker-plugin.
6703 configdirs="$configdirs libiberty-linker-plugin"
6704 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6705 --with-libiberty=../libiberty-linker-plugin";;
6706 *)
6d3ddf51 6707 as_fn_error $? "libiberty missing" "$LINENO" 5;;
fe508576
CV
6708 esac
6709fi
6710
6711# Sometimes we have special requirements for the host libiberty.
6712extra_host_libiberty_configure_flags=
6713extra_host_zlib_configure_flags=
6714case " $configdirs " in
6715 *" lto-plugin "* | *" libcc1 "*)
6716 # When these are to be built as shared libraries, the same applies to
6717 # libiberty.
6718 extra_host_libiberty_configure_flags=--enable-shared
6719 ;;
6720 *" bfd "*)
6721 # When bfd is to be built as a shared library, the same applies to
6722 # zlib.
6723 if test "$enable_shared" = "yes"; then
6724 extra_host_zlib_configure_flags=--enable-host-shared
6725 fi
6726 ;;
6727esac
6728
6729
6730
cfc26d93
NN
6731# Produce a warning message for the subdirs we can't configure.
6732# This isn't especially interesting in the Cygnus tree, but in the individual
6733# FSF releases, it's important to let people know when their machine isn't
6734# supported by the one or two programs in a package.
6735
6736if test -n "${notsupp}" && test -z "${norecursion}" ; then
6737 # If $appdirs is non-empty, at least one of those directories must still
6738 # be configured, or we error out. (E.g., if the gas release supports a
6739 # specified target in some subdirs but not the gas subdir, we shouldn't
6740 # pretend that all is well.)
6741 if test -n "$appdirs" ; then
6742 for dir in $appdirs ; do
6743 if test -r $dir/Makefile.in ; then
6744 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6745 appdirs=""
6746 break
6747 fi
2cb47d68 6748 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
cfc26d93
NN
6749 appdirs=""
6750 break
6751 fi
6752 fi
6753 done
6754 if test -n "$appdirs" ; then
6755 echo "*** This configuration is not supported by this package." 1>&2
6756 exit 1
6757 fi
6758 fi
6759 # Okay, some application will build, or we don't care to check. Still
6760 # notify of subdirs not getting built.
6761 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6762 echo " ${notsupp}" 1>&2
6763 echo " (Any other directories should still work fine.)" 1>&2
6764fi
6765
6766case "$host" in
6767 *msdosdjgpp*)
6768 enable_gdbtk=no ;;
6769esac
6770
b8c26111
PB
6771# To find our prefix, in gcc_cv_tool_prefix.
6772
6773# The user is always right.
6774if test "${PATH_SEPARATOR+set}" != set; then
6775 echo "#! /bin/sh" >conf$$.sh
6776 echo "exit 0" >>conf$$.sh
6777 chmod +x conf$$.sh
6778 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6779 PATH_SEPARATOR=';'
6780 else
6781 PATH_SEPARATOR=:
6782 fi
6783 rm -f conf$$.sh
6784fi
6785
6786
6787
6788if test "x$exec_prefix" = xNONE; then
6789 if test "x$prefix" = xNONE; then
6790 gcc_cv_tool_prefix=$ac_default_prefix
6791 else
6792 gcc_cv_tool_prefix=$prefix
6793 fi
6794else
6795 gcc_cv_tool_prefix=$exec_prefix
6796fi
6797
6798# If there is no compiler in the tree, use the PATH only. In any
6799# case, if there is no compiler in the tree nobody should use
6800# AS_FOR_TARGET and LD_FOR_TARGET.
6801if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6802 gcc_version=`cat $srcdir/gcc/BASE-VER`
6803 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6804 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6805 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6806 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6807 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6808 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6809else
6810 gcc_cv_tool_dirs=
6811fi
6812
6813if test x$build = x$target && test -n "$md_exec_prefix"; then
6814 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6815fi
6816
6817
6818
cfc26d93
NN
6819copy_dirs=
6820
b58b6ee1 6821
efd58f08
RW
6822# Check whether --with-build-sysroot was given.
6823if test "${with_build_sysroot+set}" = set; then :
6824 withval=$with_build_sysroot; if test x"$withval" != x ; then
9b992990
MM
6825 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6826 fi
6827else
6828 SYSROOT_CFLAGS_FOR_TARGET=
efd58f08 6829fi
9b992990
MM
6830
6831
fcc5fef0 6832
efd58f08
RW
6833
6834# Check whether --with-debug-prefix-map was given.
6835if test "${with_debug_prefix_map+set}" = set; then :
6836 withval=$with_debug_prefix_map; if test x"$withval" != x; then
fcc5fef0
JM
6837 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6838 for debug_map in $withval; do
6839 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6840 done
6841 fi
6842else
6843 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
efd58f08
RW
6844fi
6845
fcc5fef0
JM
6846
6847
6532abb6
PB
6848# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6849# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6850# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6851# We want to ensure that TARGET libraries (which we know are built with
6852# gcc) are built with "-O2 -g", so include those options when setting
6853# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6854if test "x$CFLAGS_FOR_TARGET" = x; then
fe508576
CV
6855 if test "x${is_cross_compiler}" = xyes; then
6856 CFLAGS_FOR_TARGET="-g -O2"
6857 else
6858 CFLAGS_FOR_TARGET=$CFLAGS
6859 case " $CFLAGS " in
6860 *" -O2 "*) ;;
6861 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6862 esac
6863 case " $CFLAGS " in
6864 *" -g "* | *" -g3 "*) ;;
6865 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6866 esac
6867 fi
6532abb6
PB
6868fi
6869
6870
6871if test "x$CXXFLAGS_FOR_TARGET" = x; then
fe508576
CV
6872 if test "x${is_cross_compiler}" = xyes; then
6873 CXXFLAGS_FOR_TARGET="-g -O2"
6874 else
6875 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6876 case " $CXXFLAGS " in
6877 *" -O2 "*) ;;
6878 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6879 esac
6880 case " $CXXFLAGS " in
6881 *" -g "* | *" -g3 "*) ;;
6882 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6883 esac
6884 fi
6532abb6
PB
6885fi
6886
6887
2e7bf520
DK
6888
6889
cfc26d93
NN
6890# Handle --with-headers=XXX. If the value is not "yes", the contents of
6891# the named directory are copied to $(tooldir)/sys-include.
6892if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6893 if test x${is_cross_compiler} = xno ; then
6894 echo 1>&2 '***' --with-headers is only supported when cross compiling
6895 exit 1
6896 fi
6897 if test x"${with_headers}" != xyes ; then
b8c26111 6898 x=${gcc_cv_tool_prefix}
b58b6ee1 6899 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
cfc26d93
NN
6900 fi
6901fi
6902
6903# Handle --with-libs=XXX. If the value is not "yes", the contents of
6904# the name directories are copied to $(tooldir)/lib. Multiple directories
6905# are permitted.
6906if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6907 if test x${is_cross_compiler} = xno ; then
6908 echo 1>&2 '***' --with-libs is only supported when cross compiling
6909 exit 1
6910 fi
6911 if test x"${with_libs}" != xyes ; then
6912 # Copy the libraries in reverse order, so that files in the first named
6913 # library override files in subsequent libraries.
b8c26111 6914 x=${gcc_cv_tool_prefix}
cfc26d93 6915 for l in ${with_libs}; do
b58b6ee1 6916 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
cfc26d93
NN
6917 done
6918 fi
6919fi
6920
bd45d6fa 6921# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
fef3f213
PB
6922#
6923# This is done by determining whether or not the appropriate directory
6924# is available, and by checking whether or not specific configurations
6925# have requested that this magic not happen.
b58b6ee1
DJ
6926#
6927# The command line options always override the explicit settings in
fe508576 6928# configure.ac, and the settings in configure.ac override this magic.
fef3f213 6929#
b58b6ee1 6930# If the default for a toolchain is to use GNU as and ld, and you don't
fef3f213 6931# want to do that, then you should use the --without-gnu-as and
bd45d6fa
ILT
6932# --without-gnu-ld options for the configure script. Similarly, if
6933# the default is to use the included zlib and you don't want to do that,
6934# you should use the --with-system-zlib option for the configure script.
fef3f213
PB
6935
6936if test x${use_gnu_as} = x &&
6937 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6938 with_gnu_as=yes
6939 extra_host_args="$extra_host_args --with-gnu-as"
6940fi
6941
6942if test x${use_gnu_ld} = x &&
b916272a 6943 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
fef3f213
PB
6944 with_gnu_ld=yes
6945 extra_host_args="$extra_host_args --with-gnu-ld"
6946fi
6947
bd45d6fa
ILT
6948if test x${use_included_zlib} = x &&
6949 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6950 :
6951else
6952 with_system_zlib=yes
6953 extra_host_args="$extra_host_args --with-system-zlib"
6954fi
6955
fef3f213
PB
6956# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6957# can detect this case.
6958
6959if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6960 with_newlib=yes
6961 extra_host_args="$extra_host_args --with-newlib"
6962fi
6963
cfc26d93
NN
6964# Handle ${copy_dirs}
6965set fnord ${copy_dirs}
6966shift
6967while test $# != 0 ; do
6968 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6969 :
6970 else
6971 echo Copying $1 to $2
6972
6973 # Use the install script to create the directory and all required
6974 # parent directories.
6975 if test -d $2 ; then
6976 :
6977 else
6978 echo >config.temp
6979 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6980 fi
6981
6982 # Copy the directory, assuming we have tar.
6983 # FIXME: Should we use B in the second tar? Not all systems support it.
6984 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6985
6986 # It is the responsibility of the user to correctly adjust all
6987 # symlinks. If somebody can figure out how to handle them correctly
6988 # here, feel free to add the code.
6989
6990 echo $1 > $2/COPIED
6991 fi
6992 shift; shift
6993done
6994
fef3f213
PB
6995# Determine a target-dependent exec_prefix that the installed
6996# gcc will search in. Keep this list sorted by triplet, with
6997# the *-*-osname triplets last.
6998md_exec_prefix=
6999case "${target}" in
b301596e 7000 i[34567]86-pc-msdosdjgpp*)
fef3f213
PB
7001 md_exec_prefix=/dev/env/DJDIR/bin
7002 ;;
fef3f213 7003 *-*-hpux* | \
fef3f213 7004 *-*-nto-qnx* | \
ebc0cd55 7005 *-*-solaris2*)
fef3f213
PB
7006 md_exec_prefix=/usr/ccs/bin
7007 ;;
7008esac
7009
bafecfd6
NN
7010extra_arflags_for_target=
7011extra_nmflags_for_target=
7012extra_ranlibflags_for_target=
7013target_makefile_frag=/dev/null
7014case "${target}" in
e53c5df0
AM
7015 spu-*-*)
7016 target_makefile_frag="config/mt-spu"
7017 ;;
fe508576 7018 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
2ad518b5
RS
7019 target_makefile_frag="config/mt-sde"
7020 ;;
2d2e75dd
RS
7021 mipsisa*-*-elfoabi*)
7022 target_makefile_frag="config/mt-mips-elfoabi"
7023 ;;
59c59569
RS
7024 mips*-*-*linux* | mips*-*-gnu*)
7025 target_makefile_frag="config/mt-mips-gnu"
7026 ;;
b9ee0bb0
SL
7027 nios2-*-elf*)
7028 target_makefile_frag="config/mt-nios2-elf"
7029 ;;
9f8da9ce 7030 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
824cf273 7031 target_makefile_frag="config/mt-gnu"
bafecfd6
NN
7032 ;;
7033 *-*-aix4.[3456789]* | *-*-aix[56789].*)
b58b6ee1 7034 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
bafecfd6
NN
7035 # commands to handle both 32-bit and 64-bit objects. These flags are
7036 # harmless if we're using GNU nm or ar.
7037 extra_arflags_for_target=" -X32_64"
7038 extra_nmflags_for_target=" -B -X32_64"
7039 ;;
bafecfd6
NN
7040esac
7041
7042alphaieee_frag=/dev/null
7043case $target in
7044 alpha*-*-*)
7045 # This just makes sure to use the -mieee option to build target libs.
7046 # This should probably be set individually by each library.
7047 alphaieee_frag="config/mt-alphaieee"
7048 ;;
7049esac
7050
7051# If --enable-target-optspace always use -Os instead of -O2 to build
7052# the target libraries, similarly if it is not specified, use -Os
7053# on selected platforms.
7054ospace_frag=/dev/null
7055case "${enable_target_optspace}:${target}" in
7056 yes:*)
7057 ospace_frag="config/mt-ospace"
7058 ;;
7059 :d30v-*)
7060 ospace_frag="config/mt-d30v"
7061 ;;
fe508576 7062 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
bafecfd6
NN
7063 ospace_frag="config/mt-ospace"
7064 ;;
7065 no:* | :*)
7066 ;;
7067 *)
7068 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7069 ;;
7070esac
7071
bafecfd6
NN
7072# Some systems (e.g., one of the i386-aix systems the gas testers are
7073# using) don't handle "\$" correctly, so don't use it here.
90d6966b
NF
7074
7075# Check whether --with-tooldir was given.
7076if test "${with_tooldir+set}" = set; then :
7077 withval=$with_tooldir; case x"$withval" in #(
7078 x/*) :
7079 ;; #(
7080 *) :
7081 as_fn_error $? "argument to --with-tooldir must be an absolute path" "$LINENO" 5 ;;
7082esac
7083
7084else
7085 with_tooldir='${exec_prefix}'/${target_noncanonical}
7086fi
7087
7088tooldir=${with_tooldir}
bafecfd6
NN
7089build_tooldir=${tooldir}
7090
bafecfd6
NN
7091# Create a .gdbinit file which runs the one in srcdir
7092# and tells GDB to look there for source files.
7093
7094if test -r ${srcdir}/.gdbinit ; then
7095 case ${srcdir} in
7096 .) ;;
7097 *) cat > ./.gdbinit <<EOF
7098# ${NO_EDIT}
7099dir ${srcdir}
7100dir .
7101source ${srcdir}/.gdbinit
7102EOF
7103 ;;
7104 esac
7105fi
7106
bafecfd6
NN
7107# Make sure that the compiler is able to generate an executable. If it
7108# can't, we are probably in trouble. We don't care whether we can run the
7109# executable--we might be using a cross compiler--we only care whether it
7110# can be created. At this point the main configure script has set CC.
7111we_are_ok=no
7112echo "int main () { return 0; }" > conftest.c
7113${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7114if test $? = 0 ; then
7115 if test -s conftest || test -s conftest.exe ; then
7116 we_are_ok=yes
7117 fi
b58b6ee1 7118fi
bafecfd6
NN
7119case $we_are_ok in
7120 no)
7121 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7122 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7123 rm -f conftest*
7124 exit 1
7125 ;;
7126esac
7127rm -f conftest*
7128
8453fdba 7129# Decide which environment variable is used to find dynamic libraries.
bafecfd6
NN
7130case "${host}" in
7131 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
4e55c4e3 7132 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
8453fdba 7133 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
bafecfd6
NN
7134 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7135esac
7136
8453fdba 7137# On systems where the dynamic library environment variable is PATH,
311b6756
JM
7138# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7139# built executables to PATH.
8453fdba
AL
7140if test "$RPATH_ENVVAR" = PATH; then
7141 GCC_SHLIB_SUBDIR=/shlib
7142else
7143 GCC_SHLIB_SUBDIR=
7144fi
7145
ebc58bf8 7146# Adjust the toplevel makefile according to whether bootstrap was selected.
55662058 7147case $enable_bootstrap in
e1666221 7148 yes)
55662058
AO
7149 bootstrap_suffix=bootstrap
7150 BUILD_CONFIG=bootstrap-debug
7151 ;;
e1666221 7152 no)
55662058
AO
7153 bootstrap_suffix=no-bootstrap
7154 BUILD_CONFIG=
7155 ;;
e1666221
PB
7156esac
7157
55662058
AO
7158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7159$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7160
7161
7162# Check whether --with-build-config was given.
7163if test "${with_build_config+set}" = set; then :
7164 withval=$with_build_config; case $with_build_config in
7165 yes) with_build_config= ;;
7166 no) with_build_config= BUILD_CONFIG= ;;
7167 esac
7168fi
7169
7170
7171if test "x${with_build_config}" != x; then
7172 BUILD_CONFIG=$with_build_config
7173else
7174 case $BUILD_CONFIG in
7175 bootstrap-debug)
7176 if echo "int f (void) { return 0; }" > conftest.c &&
7177 ${CC} -c conftest.c &&
7178 mv conftest.o conftest.o.g0 &&
7179 ${CC} -c -g conftest.c &&
7180 mv conftest.o conftest.o.g &&
112afadf 7181 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
55662058
AO
7182 :
7183 else
fe508576
CV
7184 BUILD_CONFIG=
7185 fi
7186 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7187 ;;
7188 esac
7189fi
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7191$as_echo "$BUILD_CONFIG" >&6; }
7192
7193
7194# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7196$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7197# Check whether --enable-vtable-verify was given.
7198if test "${enable_vtable_verify+set}" = set; then :
7199 enableval=$enable_vtable_verify; case "$enableval" in
7200 yes) enable_vtable_verify=yes ;;
7201 no) enable_vtable_verify=no ;;
7202 *) enable_vtable_verify=no;;
7203 esac
7204else
7205 enable_vtable_verify=no
7206fi
7207
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7209$as_echo "$enable_vtable_verify" >&6; }
7210
7211# Record target_configdirs and the configure arguments for target and
7212# build configuration in Makefile.
7213target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7214build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7215bootstrap_fixincludes=no
7216
7217# If we are building libgomp, bootstrap it.
7218if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7219 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7220fi
7221
7222# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7223# or bootstrap-ubsan, bootstrap it.
7224if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7225 case "$BUILD_CONFIG" in
7226 *bootstrap-asan* | *bootstrap-ubsan* )
7227 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7228 bootstrap_fixincludes=yes
7229 ;;
7230 esac
7231fi
7232
7233# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7234if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7235 test "$enable_vtable_verify" != no; then
7236 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7237fi
7238
7239# If we are building libmpx, bootstrap it.
7240if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7241 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7242fi
7243
7244# Determine whether gdb needs tk/tcl or not.
7245# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7246# and in that case we want gdb to be built without tk. Ugh!
7247# In fact I believe gdb is the *only* package directly dependent on tk,
7248# so we should be able to put the 'maybe's in unconditionally and
7249# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7250# 100% sure that that's safe though.
7251
7252gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7253case "$enable_gdbtk" in
7254 no)
7255 GDB_TK="" ;;
7256 yes)
7257 GDB_TK="${gdb_tk}" ;;
7258 *)
7259 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7260 # distro. Eventually someone will fix this and move Insight, nee
7261 # gdbtk to a separate directory.
7262 if test -d ${srcdir}/gdb/gdbtk ; then
7263 GDB_TK="${gdb_tk}"
7264 else
7265 GDB_TK=""
55662058 7266 fi
55662058 7267 ;;
fe508576
CV
7268esac
7269CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7270INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7271
7272# Strip out unwanted targets.
7273
7274# While at that, we remove Makefiles if we were started for recursive
7275# configuration, so that the top-level Makefile reconfigures them,
7276# like we used to do when configure itself was recursive.
7277
7278# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7279# but now we're fixing up the Makefile ourselves with the additional
7280# commands passed to AC_CONFIG_FILES. Use separate variables
7281# extrasub-{build,host,target} not because there is any reason to split
7282# the substitutions up that way, but only to remain below the limit of
7283# 99 commands in a script, for HP-UX sed.
3127effc
AO
7284
7285# Do not nest @if/@endif or @unless/@endunless pairs, because
7286# configure will not warn you at all.
55662058 7287
fe508576
CV
7288case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7289 yes:yes:*\ gold\ *:*,c++,*) ;;
7290 yes:yes:*\ gold\ *:*)
6d3ddf51 7291 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
fe508576
CV
7292 ;;
7293esac
55662058 7294
94f4a7b9 7295extrasub_build=
2cb47d68 7296for module in ${build_configdirs} ; do
aac4e7d4
CF
7297 if test -z "${no_recursion}" \
7298 && test -f ${build_subdir}/${module}/Makefile; then
7299 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7300 rm -f ${build_subdir}/${module}/Makefile
7301 fi
94f4a7b9 7302 extrasub_build="$extrasub_build
aac4e7d4
CF
7303/^@if build-$module\$/d
7304/^@endif build-$module\$/d
3127effc 7305/^@unless build-$module\$/,/^@endunless build-$module\$/d
aac4e7d4 7306/^@if build-$module-$bootstrap_suffix\$/d
3127effc
AO
7307/^@endif build-$module-$bootstrap_suffix\$/d
7308/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
aac4e7d4 7309done
94f4a7b9 7310extrasub_host=
aac4e7d4 7311for module in ${configdirs} ; do
e3c08f94 7312 if test -z "${no_recursion}"; then
bde7f665 7313 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
e3c08f94
PB
7314 if test -f ${file}; then
7315 echo 1>&2 "*** removing ${file} to force reconfigure"
7316 rm -f ${file}
7317 fi
7318 done
aac4e7d4 7319 fi
fe508576
CV
7320 case ${module},${bootstrap_fixincludes} in
7321 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7322 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7323 esac
94f4a7b9 7324 extrasub_host="$extrasub_host
aac4e7d4
CF
7325/^@if $module\$/d
7326/^@endif $module\$/d
3127effc 7327/^@unless $module\$/,/^@endunless $module\$/d
fe508576 7328/^@if $module-$host_bootstrap_suffix\$/d
3127effc
AO
7329/^@endif $module-$host_bootstrap_suffix\$/d
7330/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
aac4e7d4 7331done
94f4a7b9 7332extrasub_target=
aac4e7d4
CF
7333for module in ${target_configdirs} ; do
7334 if test -z "${no_recursion}" \
7335 && test -f ${target_subdir}/${module}/Makefile; then
7336 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7337 rm -f ${target_subdir}/${module}/Makefile
7338 fi
121f0eb2
RW
7339
7340 # We only bootstrap target libraries listed in bootstrap_target_libs.
7341 case $bootstrap_target_libs in
7342 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7343 *) target_bootstrap_suffix=no-bootstrap ;;
7344 esac
7345
94f4a7b9 7346 extrasub_target="$extrasub_target
aac4e7d4
CF
7347/^@if target-$module\$/d
7348/^@endif target-$module\$/d
3127effc 7349/^@unless target-$module\$/,/^@endunless target-$module\$/d
121f0eb2 7350/^@if target-$module-$target_bootstrap_suffix\$/d
3127effc
AO
7351/^@endif target-$module-$target_bootstrap_suffix\$/d
7352/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
aac4e7d4
CF
7353done
7354
94f4a7b9
RW
7355# Do the final fixup along with target modules.
7356extrasub_target="$extrasub_target
3127effc
AO
7357/^@if /,/^@endif /d
7358/^@unless /d
7359/^@endunless /d"
bafecfd6
NN
7360
7361# Create the serialization dependencies. This uses a temporary file.
7362
efd58f08
RW
7363# Check whether --enable-serial-configure was given.
7364if test "${enable_serial_configure+set}" = set; then :
7365 enableval=$enable_serial_configure;
7366fi
af9955fa
AO
7367
7368
7f74e6a3
DD
7369case ${enable_serial_configure} in
7370 yes)
7371 enable_serial_build_configure=yes
7372 enable_serial_host_configure=yes
7373 enable_serial_target_configure=yes
7374 ;;
7375esac
7376
bafecfd6
NN
7377# These force 'configure's to be done one at a time, to avoid problems
7378# with contention over a shared config.cache.
7379rm -f serdep.tmp
af9955fa 7380echo '# serdep.tmp' > serdep.tmp
bafecfd6 7381olditem=
7f74e6a3 7382test "x${enable_serial_build_configure}" = xyes &&
bafecfd6
NN
7383for item in ${build_configdirs} ; do
7384 case ${olditem} in
7385 "") ;;
af9955fa 7386 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
bafecfd6
NN
7387 esac
7388 olditem=${item}
7389done
7390olditem=
7f74e6a3 7391test "x${enable_serial_host_configure}" = xyes &&
bafecfd6
NN
7392for item in ${configdirs} ; do
7393 case ${olditem} in
7394 "") ;;
af9955fa 7395 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
bafecfd6
NN
7396 esac
7397 olditem=${item}
7398done
7399olditem=
7f74e6a3 7400test "x${enable_serial_target_configure}" = xyes &&
bafecfd6
NN
7401for item in ${target_configdirs} ; do
7402 case ${olditem} in
7403 "") ;;
af9955fa 7404 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
bafecfd6
NN
7405 esac
7406 olditem=${item}
7407done
7408serialization_dependencies=serdep.tmp
7409
7410
af9955fa 7411# Base args. Strip norecursion, cache-file, srcdir, host, build,
b58b6ee1 7412# target, nonopt, and variable assignments. These are the ones we
358d4e3c
NC
7413# might not want to pass down to subconfigures. The exception being
7414# --cache-file=/dev/null, which is used to turn off the use of cache
7415# files altogether, and which should be passed on to subconfigures.
7416# Also strip program-prefix, program-suffix, and program-transform-name,
7417# so that we can pass down a consistent program-transform-name.
b58b6ee1 7418baseargs=
3bd3027c 7419tbaseargs=
b58b6ee1
DJ
7420keep_next=no
7421skip_next=no
7422eval "set -- $ac_configure_args"
b8c26111
PB
7423for ac_arg
7424do
b58b6ee1
DJ
7425 if test X"$skip_next" = X"yes"; then
7426 skip_next=no
7427 continue
7428 fi
7429 if test X"$keep_next" = X"yes"; then
7430 case $ac_arg in
7431 *\'*)
7432 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7433 esac
7434 baseargs="$baseargs '$ac_arg'"
3bd3027c 7435 tbaseargs="$tbaseargs '$ac_arg'"
b58b6ee1
DJ
7436 keep_next=no
7437 continue
7438 fi
7439
7440 # Handle separated arguments. Based on the logic generated by
7441 # autoconf 2.59.
7442 case $ac_arg in
7443 *=* | --config-cache | -C | -disable-* | --disable-* \
7444 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7445 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7446 | -with-* | --with-* | -without-* | --without-* | --x)
7447 separate_arg=no
7448 ;;
7449 -*)
7450 separate_arg=yes
7451 ;;
7452 *)
7453 separate_arg=no
7454 ;;
7455 esac
7456
3bd3027c
AO
7457 skip_targ=no
7458 case $ac_arg in
7459
7460 --with-* | --without-*)
7461 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7462
7463 case $libopt in
7464 *[-_]include)
7465 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7466 ;;
7467 *[-_]lib)
7468 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7469 ;;
7470 *)
7471 lib=$libopt
7472 ;;
7473 esac
7474
7475
7476 case $lib in
fe508576 7477 mpc | mpfr | gmp | isl)
3bd3027c
AO
7478 # If we're processing --with-$lib, --with-$lib-include or
7479 # --with-$lib-lib, for one of the libs above, and target is
7480 # different from host, don't pass the current argument to any
7481 # target library's configure.
7482 if test x$is_cross_compiler = xyes; then
7483 skip_targ=yes
7484 fi
7485 ;;
7486 esac
7487 ;;
7488 esac
7489
b58b6ee1 7490 case "$ac_arg" in
358d4e3c
NC
7491 --cache-file=/dev/null | \
7492 -cache-file=/dev/null )
7493 # Handled here to avoid the test to skip args below.
7494 baseargs="$baseargs '$ac_arg'"
3bd3027c 7495 tbaseargs="$tbaseargs '$ac_arg'"
358d4e3c
NC
7496 # Assert: $separate_arg should always be no.
7497 keep_next=$separate_arg
7498 ;;
b58b6ee1
DJ
7499 --no*)
7500 continue
7501 ;;
7502 --c* | \
7503 --sr* | \
7504 --ho* | \
7505 --bu* | \
7506 --t* | \
7507 --program-* | \
7508 -cache_file* | \
7509 -srcdir* | \
7510 -host* | \
7511 -build* | \
7512 -target* | \
7513 -program-prefix* | \
7514 -program-suffix* | \
7515 -program-transform-name* )
7516 skip_next=$separate_arg
7517 continue
7518 ;;
7519 -*)
7520 # An option. Add it.
7521 case $ac_arg in
7522 *\'*)
7523 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7524 esac
7525 baseargs="$baseargs '$ac_arg'"
3bd3027c
AO
7526 if test X"$skip_targ" = Xno; then
7527 tbaseargs="$tbaseargs '$ac_arg'"
7528 fi
b58b6ee1
DJ
7529 keep_next=$separate_arg
7530 ;;
7531 *)
7532 # Either a variable assignment, or a nonopt (triplet). Don't
7533 # pass it down; let the Makefile handle this.
7534 continue
7535 ;;
7536 esac
7537done
7538# Remove the initial space we just introduced and, as these will be
7539# expanded by make, quote '$'.
7540baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
bafecfd6 7541
eedd1e14
DJ
7542# Add in --program-transform-name, after --program-prefix and
7543# --program-suffix have been applied to it. Autoconf has already
7544# doubled dollar signs and backslashes in program_transform_name; we want
7545# the backslashes un-doubled, and then the entire thing wrapped in single
b58b6ee1 7546# quotes, because this will be expanded first by make and then by the shell.
eedd1e14
DJ
7547# Also, because we want to override the logic in subdir configure scripts to
7548# choose program_transform_name, replace any s,x,x, with s,y,y,.
7549sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7550${program_transform_name}
7551EOF_SED
7552gcc_transform_name=`cat conftestsed.out`
7553rm -f conftestsed.out
7554baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3bd3027c 7555tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
fc7c811f
BE
7556if test "$silent" = yes; then
7557 baseargs="$baseargs --silent"
3bd3027c 7558 tbaseargs="$tbaseargs --silent"
fc7c811f 7559fi
5546e07b 7560baseargs="$baseargs --disable-option-checking"
3bd3027c 7561tbaseargs="$tbaseargs --disable-option-checking"
eedd1e14 7562
1d694d8e
RW
7563# Record and document user additions to sub configure arguments.
7564
7565
7566
7567
bafecfd6
NN
7568# For the build-side libraries, we just need to pretend we're native,
7569# and not use the same cache file. Multilibs are neither needed nor
fe508576
CV
7570# desired. We can't even use the same cache file for all build-side
7571# libraries, as they're compiled differently; some with C, some with
7572# C++ or with different feature-enabling options.
7573build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
bafecfd6
NN
7574
7575# For host modules, accept cache file option, or specification as blank.
7576case "${cache_file}" in
7577"") # empty
7578 cache_file_option="" ;;
7579/* | [A-Za-z]:[\\/]* ) # absolute path
7580 cache_file_option="--cache-file=${cache_file}" ;;
7581*) # relative path
7582 cache_file_option="--cache-file=../${cache_file}" ;;
7583esac
7584
68c6d8ac
NN
7585# Host dirs don't like to share a cache file either, horribly enough.
7586# This seems to be due to autoconf 2.5x stupidity.
1d694d8e 7587host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
bafecfd6 7588
3bd3027c 7589target_configargs="$target_configargs ${tbaseargs}"
bafecfd6
NN
7590
7591# Passing a --with-cross-host argument lets the target libraries know
7592# whether they are being built with a cross-compiler or being built
7593# native. However, it would be better to use other mechanisms to make the
7594# sorts of decisions they want to make on this basis. Please consider
7595# this option to be deprecated. FIXME.
7596if test x${is_cross_compiler} = xyes ; then
b58b6ee1 7597 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
bafecfd6
NN
7598fi
7599
fe508576
CV
7600# Special user-friendly check for native x86_64-linux build, if
7601# multilib is not explicitly enabled.
7602case "$target:$have_compiler:$host:$target:$enable_multilib" in
7603 x86_64-*linux*:yes:$build:$build:)
7604 # Make sure we have a development environment that handles 32-bit
7605 dev64=no
7606 echo "int main () { return 0; }" > conftest.c
7607 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7608 if test $? = 0 ; then
7609 if test -s conftest || test -s conftest.exe ; then
7610 dev64=yes
7611 fi
7612 fi
7613 rm -f conftest*
7614 if test x${dev64} != xyes ; then
6d3ddf51 7615 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
fe508576
CV
7616 fi
7617 ;;
7618esac
7619
5d239c61
RW
7620# Default to --enable-multilib.
7621if test x${enable_multilib} = x ; then
bafecfd6 7622 target_configargs="--enable-multilib ${target_configargs}"
5d239c61 7623fi
bafecfd6
NN
7624
7625# Pass --with-newlib if appropriate. Note that target_configdirs has
7626# changed from the earlier setting of with_newlib.
7627if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7628 target_configargs="--with-newlib ${target_configargs}"
7629fi
7630
5b28b6ef
NN
7631# Different target subdirs use different values of certain variables
7632# (notably CXX). Worse, multilibs use *lots* of different values.
7633# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7634# it doesn't automatically accept command-line overrides of them.
7635# This means it's not safe for target subdirs to share a cache file,
7636# which is disgusting, but there you have it. Hopefully this can be
7637# fixed in future. It's still worthwhile to use a cache file for each
7638# directory. I think.
7639
29730600
MS
7640# Pass the appropriate --build, --host, --target and --cache-file arguments.
7641# We need to pass --target, as newer autoconf's requires consistency
7642# for target_alias and gcc doesn't manage it consistently.
42f55f77 7643target_configargs="--cache-file=./config.cache ${target_configargs}"
bafecfd6 7644
bafecfd6
NN
7645FLAGS_FOR_TARGET=
7646case " $target_configdirs " in
7647 *" newlib "*)
7648 case " $target_configargs " in
7649 *" --with-newlib "*)
7650 case "$target" in
5074489a 7651 *-cygwin*)
738ff2e8 7652 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5074489a 7653 ;;
bafecfd6
NN
7654 esac
7655
7656 # If we're not building GCC, don't discard standard headers.
7657 if test -d ${srcdir}/gcc; then
7658 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7659
7660 if test "${build}" != "${host}"; then
7661 # On Canadian crosses, CC_FOR_TARGET will have already been set
7662 # by `configure', so we won't have an opportunity to add -Bgcc/
7663 # to it. This is right: we don't want to search that directory
7664 # for binaries, but we want the header files in there, so add
7665 # them explicitly.
d5b7129a 7666 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
bafecfd6
NN
7667
7668 # Someone might think of using the pre-installed headers on
7669 # Canadian crosses, in case the installed compiler is not fully
7670 # compatible with the compiler being built. In this case, it
7671 # would be better to flag an error than risking having
7672 # incompatible object files being constructed. We can't
7673 # guarantee that an error will be flagged, but let's hope the
7674 # compiler will do it, when presented with incompatible header
7675 # files.
7676 fi
7677 fi
7678
7679 case "${target}-${is_cross_compiler}" in
08049c01 7680 i[3456789]86-*-linux*-no)
bafecfd6
NN
7681 # Here host == target, so we don't need to build gcc,
7682 # so we don't want to discard standard headers.
7683 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7684 ;;
7685 *)
7686 # If we're building newlib, use its generic headers last, but search
7687 # for any libc-related directories first (so make it the last -B
7688 # switch).
7689 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
46093329
DD
7690
7691 # If we're building libgloss, find the startup file, simulator library
7692 # and linker script.
7693 case " $target_configdirs " in
7694 *" libgloss "*)
7695 # Look for startup file, simulator library and maybe linker script.
7696 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7697 # Look for libnosys.a in case the target needs it.
7698 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7699 # Most targets have the linker script in the source directory.
7700 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7701 ;;
7702 esac
bafecfd6
NN
7703 ;;
7704 esac
7705 ;;
7706 esac
7707 ;;
7708esac
5074489a 7709
bc668665 7710case "$target" in
5074489a
AO
7711 x86_64-*mingw* | *-w64-mingw*)
7712 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7713 # however, use a symlink named 'mingw' in ${prefix} .
7714 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7715 ;;
7716 *-mingw*)
7717 # MinGW can't be handled as Cygwin above since it does not use newlib.
7718 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'
7719 ;;
bc668665 7720esac
bafecfd6 7721
e9ea9dec
DD
7722# Allow the user to override the flags for
7723# our build compiler if desired.
77961173
NC
7724if test x"${build}" = x"${host}" ; then
7725 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7726 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7727 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7728fi
e9ea9dec 7729
bafecfd6
NN
7730# On Canadian crosses, we'll be searching the right directories for
7731# the previously-installed cross compiler, so don't bother to add
7732# flags for directories within the install tree of the compiler
7733# being built; programs in there won't even run.
7734if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7735 # Search for pre-installed headers if nothing else fits.
2245eb63 7736 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
bafecfd6
NN
7737fi
7738
7739if test "x${use_gnu_ld}" = x &&
7740 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7741 # Arrange for us to find uninstalled linker scripts.
7fc2ca22 7742 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
bafecfd6
NN
7743fi
7744
ad352d9b
DD
7745# Search for other target-specific linker scripts and such.
7746case "${target}" in
4e16301e
DB
7747 mep*)
7748 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7749 ;;
7750esac
7751
bafecfd6 7752# Makefile fragments.
96979a18
PB
7753for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7754do
7755 eval fragval=\$$frag
7756 if test $fragval != /dev/null; then
7757 eval $frag=${srcdir}/$fragval
7758 fi
7759done
bafecfd6
NN
7760
7761
7762
7763
7764
7765# Miscellanea: directories, flags, etc.
7766
7767
7768
7769
7770
7771
7772
8453fdba 7773
2cb47d68 7774# Build module lists & subconfigure args.
bafecfd6
NN
7775
7776
7777
a7dc05b5
PB
7778# Host module lists & subconfigure args.
7779
7780
7781
e894eef9 7782
a7dc05b5
PB
7783# Target module lists & subconfigure args.
7784
7785
7786
7787# Build tools.
7788
7789
7790
4413ec01
PB
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
a7dc05b5
PB
7805# Generate default definitions for YACC, M4, LEX and other programs that run
7806# on the build machine. These are used if the Makefile can't locate these
7807# programs in objdir.
7808MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7809
7810for ac_prog in 'bison -y' byacc yacc
7811do
b58b6ee1 7812 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 7813set dummy $ac_prog; ac_word=$2
efd58f08
RW
7814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 7816if ${ac_cv_prog_YACC+:} false; then :
efd58f08 7817 $as_echo_n "(cached) " >&6
a7dc05b5
PB
7818else
7819 if test -n "$YACC"; then
7820 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7821else
b58b6ee1
DJ
7822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823for as_dir in $PATH
7824do
7825 IFS=$as_save_IFS
7826 test -z "$as_dir" && as_dir=.
efd58f08 7827 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 7828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 7829 ac_cv_prog_YACC="$ac_prog"
efd58f08 7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
7831 break 2
7832 fi
7833done
efd58f08
RW
7834 done
7835IFS=$as_save_IFS
b58b6ee1 7836
a7dc05b5
PB
7837fi
7838fi
b58b6ee1 7839YACC=$ac_cv_prog_YACC
a7dc05b5 7840if test -n "$YACC"; then
efd58f08
RW
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7842$as_echo "$YACC" >&6; }
a7dc05b5 7843else
efd58f08
RW
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845$as_echo "no" >&6; }
a7dc05b5
PB
7846fi
7847
efd58f08 7848
b58b6ee1 7849 test -n "$YACC" && break
a7dc05b5
PB
7850done
7851test -n "$YACC" || YACC="$MISSING bison -y"
7852
7853case " $build_configdirs " in
7854 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
a7dc05b5
PB
7855esac
7856
7857for ac_prog in bison
7858do
b58b6ee1 7859 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 7860set dummy $ac_prog; ac_word=$2
efd58f08
RW
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 7863if ${ac_cv_prog_BISON+:} false; then :
efd58f08 7864 $as_echo_n "(cached) " >&6
a7dc05b5
PB
7865else
7866 if test -n "$BISON"; then
7867 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7868else
b58b6ee1
DJ
7869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870for as_dir in $PATH
7871do
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
efd58f08 7874 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 7875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 7876 ac_cv_prog_BISON="$ac_prog"
efd58f08 7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
7878 break 2
7879 fi
7880done
efd58f08
RW
7881 done
7882IFS=$as_save_IFS
b58b6ee1 7883
a7dc05b5
PB
7884fi
7885fi
b58b6ee1 7886BISON=$ac_cv_prog_BISON
a7dc05b5 7887if test -n "$BISON"; then
efd58f08
RW
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7889$as_echo "$BISON" >&6; }
a7dc05b5 7890else
efd58f08
RW
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892$as_echo "no" >&6; }
a7dc05b5
PB
7893fi
7894
efd58f08 7895
b58b6ee1 7896 test -n "$BISON" && break
a7dc05b5
PB
7897done
7898test -n "$BISON" || BISON="$MISSING bison"
7899
7900case " $build_configdirs " in
7901 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7902esac
7903
7904for ac_prog in gm4 gnum4 m4
7905do
b58b6ee1 7906 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 7907set dummy $ac_prog; ac_word=$2
efd58f08
RW
7908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 7910if ${ac_cv_prog_M4+:} false; then :
efd58f08 7911 $as_echo_n "(cached) " >&6
a7dc05b5
PB
7912else
7913 if test -n "$M4"; then
7914 ac_cv_prog_M4="$M4" # Let the user override the test.
7915else
b58b6ee1
DJ
7916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917for as_dir in $PATH
7918do
7919 IFS=$as_save_IFS
7920 test -z "$as_dir" && as_dir=.
efd58f08 7921 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 7922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 7923 ac_cv_prog_M4="$ac_prog"
efd58f08 7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
7925 break 2
7926 fi
7927done
efd58f08
RW
7928 done
7929IFS=$as_save_IFS
b58b6ee1 7930
a7dc05b5
PB
7931fi
7932fi
b58b6ee1 7933M4=$ac_cv_prog_M4
a7dc05b5 7934if test -n "$M4"; then
efd58f08
RW
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7936$as_echo "$M4" >&6; }
a7dc05b5 7937else
efd58f08
RW
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939$as_echo "no" >&6; }
a7dc05b5
PB
7940fi
7941
efd58f08 7942
b58b6ee1 7943 test -n "$M4" && break
a7dc05b5
PB
7944done
7945test -n "$M4" || M4="$MISSING m4"
7946
7947case " $build_configdirs " in
7948 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7949esac
7950
7951for ac_prog in flex lex
7952do
b58b6ee1 7953 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 7954set dummy $ac_prog; ac_word=$2
efd58f08
RW
7955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 7957if ${ac_cv_prog_LEX+:} false; then :
efd58f08 7958 $as_echo_n "(cached) " >&6
a7dc05b5
PB
7959else
7960 if test -n "$LEX"; then
7961 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7962else
b58b6ee1
DJ
7963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964for as_dir in $PATH
7965do
7966 IFS=$as_save_IFS
7967 test -z "$as_dir" && as_dir=.
efd58f08 7968 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 7969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 7970 ac_cv_prog_LEX="$ac_prog"
efd58f08 7971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
7972 break 2
7973 fi
7974done
efd58f08
RW
7975 done
7976IFS=$as_save_IFS
b58b6ee1 7977
a7dc05b5
PB
7978fi
7979fi
b58b6ee1 7980LEX=$ac_cv_prog_LEX
a7dc05b5 7981if test -n "$LEX"; then
efd58f08
RW
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7983$as_echo "$LEX" >&6; }
a7dc05b5 7984else
efd58f08
RW
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986$as_echo "no" >&6; }
a7dc05b5
PB
7987fi
7988
efd58f08 7989
b58b6ee1 7990 test -n "$LEX" && break
a7dc05b5
PB
7991done
7992test -n "$LEX" || LEX="$MISSING flex"
7993
7994case " $build_configdirs " in
7995 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7996 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7997esac
7998
7999for ac_prog in flex
8000do
b58b6ee1 8001 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 8002set dummy $ac_prog; ac_word=$2
efd58f08
RW
8003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8004$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 8005if ${ac_cv_prog_FLEX+:} false; then :
efd58f08 8006 $as_echo_n "(cached) " >&6
a7dc05b5
PB
8007else
8008 if test -n "$FLEX"; then
8009 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8010else
b58b6ee1
DJ
8011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012for as_dir in $PATH
8013do
8014 IFS=$as_save_IFS
8015 test -z "$as_dir" && as_dir=.
efd58f08 8016 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 8017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 8018 ac_cv_prog_FLEX="$ac_prog"
efd58f08 8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8020 break 2
8021 fi
8022done
efd58f08
RW
8023 done
8024IFS=$as_save_IFS
b58b6ee1 8025
a7dc05b5
PB
8026fi
8027fi
b58b6ee1 8028FLEX=$ac_cv_prog_FLEX
a7dc05b5 8029if test -n "$FLEX"; then
efd58f08
RW
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8031$as_echo "$FLEX" >&6; }
a7dc05b5 8032else
efd58f08
RW
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034$as_echo "no" >&6; }
a7dc05b5
PB
8035fi
8036
efd58f08 8037
b58b6ee1 8038 test -n "$FLEX" && break
a7dc05b5
PB
8039done
8040test -n "$FLEX" || FLEX="$MISSING flex"
8041
8042case " $build_configdirs " in
8043 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8044esac
8045
8046for ac_prog in makeinfo
8047do
b58b6ee1 8048 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 8049set dummy $ac_prog; ac_word=$2
efd58f08
RW
8050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 8052if ${ac_cv_prog_MAKEINFO+:} false; then :
efd58f08 8053 $as_echo_n "(cached) " >&6
a7dc05b5
PB
8054else
8055 if test -n "$MAKEINFO"; then
8056 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8057else
b58b6ee1
DJ
8058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059for as_dir in $PATH
8060do
8061 IFS=$as_save_IFS
8062 test -z "$as_dir" && as_dir=.
efd58f08 8063 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 8064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 8065 ac_cv_prog_MAKEINFO="$ac_prog"
efd58f08 8066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8067 break 2
8068 fi
8069done
efd58f08
RW
8070 done
8071IFS=$as_save_IFS
b58b6ee1 8072
a7dc05b5
PB
8073fi
8074fi
b58b6ee1 8075MAKEINFO=$ac_cv_prog_MAKEINFO
a7dc05b5 8076if test -n "$MAKEINFO"; then
efd58f08
RW
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8078$as_echo "$MAKEINFO" >&6; }
a7dc05b5 8079else
efd58f08
RW
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081$as_echo "no" >&6; }
a7dc05b5
PB
8082fi
8083
efd58f08 8084
b58b6ee1 8085 test -n "$MAKEINFO" && break
a7dc05b5
PB
8086done
8087test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8088
8089case " $build_configdirs " in
8090 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8091 *)
8092
3ac4fba1 8093 # For an installed makeinfo, we require it to be from texinfo 4.7 or
a7dc05b5
PB
8094 # higher, else we use the "missing" dummy.
8095 if ${MAKEINFO} --version \
3ac4fba1 8096 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
a7dc05b5
PB
8097 :
8098 else
8099 MAKEINFO="$MISSING makeinfo"
8100 fi
8101 ;;
8102
8103esac
bafecfd6 8104
a7dc05b5 8105# FIXME: expect and dejagnu may become build tools?
bafecfd6 8106
a7dc05b5
PB
8107for ac_prog in expect
8108do
b58b6ee1 8109 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 8110set dummy $ac_prog; ac_word=$2
efd58f08
RW
8111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 8113if ${ac_cv_prog_EXPECT+:} false; then :
efd58f08 8114 $as_echo_n "(cached) " >&6
a7dc05b5
PB
8115else
8116 if test -n "$EXPECT"; then
8117 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8118else
b58b6ee1
DJ
8119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120for as_dir in $PATH
8121do
8122 IFS=$as_save_IFS
8123 test -z "$as_dir" && as_dir=.
efd58f08 8124 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 8125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 8126 ac_cv_prog_EXPECT="$ac_prog"
efd58f08 8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8128 break 2
8129 fi
8130done
efd58f08
RW
8131 done
8132IFS=$as_save_IFS
b58b6ee1 8133
a7dc05b5
PB
8134fi
8135fi
b58b6ee1 8136EXPECT=$ac_cv_prog_EXPECT
a7dc05b5 8137if test -n "$EXPECT"; then
efd58f08
RW
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8139$as_echo "$EXPECT" >&6; }
a7dc05b5 8140else
efd58f08
RW
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142$as_echo "no" >&6; }
a7dc05b5 8143fi
bafecfd6 8144
efd58f08 8145
b58b6ee1 8146 test -n "$EXPECT" && break
a7dc05b5
PB
8147done
8148test -n "$EXPECT" || EXPECT="expect"
bafecfd6 8149
a7dc05b5
PB
8150case " $configdirs " in
8151 *" expect "*)
8152 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8153 ;;
8154esac
bafecfd6 8155
a7dc05b5
PB
8156for ac_prog in runtest
8157do
b58b6ee1 8158 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 8159set dummy $ac_prog; ac_word=$2
efd58f08
RW
8160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 8162if ${ac_cv_prog_RUNTEST+:} false; then :
efd58f08 8163 $as_echo_n "(cached) " >&6
a7dc05b5
PB
8164else
8165 if test -n "$RUNTEST"; then
8166 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8167else
b58b6ee1
DJ
8168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169for as_dir in $PATH
8170do
8171 IFS=$as_save_IFS
8172 test -z "$as_dir" && as_dir=.
efd58f08 8173 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 8174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 8175 ac_cv_prog_RUNTEST="$ac_prog"
efd58f08 8176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8177 break 2
8178 fi
8179done
efd58f08
RW
8180 done
8181IFS=$as_save_IFS
b58b6ee1 8182
a7dc05b5
PB
8183fi
8184fi
b58b6ee1 8185RUNTEST=$ac_cv_prog_RUNTEST
a7dc05b5 8186if test -n "$RUNTEST"; then
efd58f08
RW
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8188$as_echo "$RUNTEST" >&6; }
a7dc05b5 8189else
efd58f08
RW
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191$as_echo "no" >&6; }
a7dc05b5 8192fi
bafecfd6 8193
efd58f08 8194
b58b6ee1 8195 test -n "$RUNTEST" && break
a7dc05b5
PB
8196done
8197test -n "$RUNTEST" || RUNTEST="runtest"
bafecfd6 8198
a7dc05b5
PB
8199case " $configdirs " in
8200 *" dejagnu "*)
adb51f0a 8201 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
a7dc05b5
PB
8202 ;;
8203esac
bafecfd6
NN
8204
8205
bafecfd6 8206# Host tools.
a0c92996
AC
8207ncn_tool_prefix=
8208test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8209ncn_target_tool_prefix=
8210test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8211
82026593
AO
8212
8213
8214if test -n "$AR"; then
8215 ac_cv_prog_AR=$AR
8216elif test -n "$ac_cv_prog_AR"; then
8217 AR=$ac_cv_prog_AR
8218fi
8219
8220if test -n "$ac_cv_prog_AR"; then
8221 for ncn_progname in ar; do
8222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8223set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
8224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 8226if ${ac_cv_prog_AR+:} false; then :
efd58f08 8227 $as_echo_n "(cached) " >&6
82026593
AO
8228else
8229 if test -n "$AR"; then
8230 ac_cv_prog_AR="$AR" # Let the user override the test.
8231else
8232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233for as_dir in $PATH
8234do
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
efd58f08 8237 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 8238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 8239 ac_cv_prog_AR="${ncn_progname}"
efd58f08 8240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
8241 break 2
8242 fi
8243done
efd58f08
RW
8244 done
8245IFS=$as_save_IFS
82026593
AO
8246
8247fi
8248fi
8249AR=$ac_cv_prog_AR
8250if test -n "$AR"; then
efd58f08
RW
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8252$as_echo "$AR" >&6; }
82026593 8253else
efd58f08
RW
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255$as_echo "no" >&6; }
82026593
AO
8256fi
8257
efd58f08 8258
82026593
AO
8259 done
8260fi
8261
8262for ncn_progname in ar; do
60cfca65
PB
8263 if test -n "$ncn_tool_prefix"; then
8264 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8265set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
8266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 8268if ${ac_cv_prog_AR+:} false; then :
efd58f08 8269 $as_echo_n "(cached) " >&6
a0c92996
AC
8270else
8271 if test -n "$AR"; then
8272 ac_cv_prog_AR="$AR" # Let the user override the test.
8273else
b58b6ee1
DJ
8274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275for as_dir in $PATH
8276do
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
efd58f08 8279 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 8280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 8281 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
efd58f08 8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8283 break 2
8284 fi
8285done
efd58f08
RW
8286 done
8287IFS=$as_save_IFS
b58b6ee1 8288
a0c92996
AC
8289fi
8290fi
b58b6ee1 8291AR=$ac_cv_prog_AR
a0c92996 8292if test -n "$AR"; then
efd58f08
RW
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8294$as_echo "$AR" >&6; }
a0c92996 8295else
efd58f08
RW
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297$as_echo "no" >&6; }
a0c92996
AC
8298fi
8299
efd58f08 8300
60cfca65
PB
8301 fi
8302 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8303 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8304set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 8307if ${ac_cv_prog_AR+:} false; then :
efd58f08 8308 $as_echo_n "(cached) " >&6
a0c92996 8309else
60cfca65
PB
8310 if test -n "$AR"; then
8311 ac_cv_prog_AR="$AR" # Let the user override the test.
a0c92996 8312else
b58b6ee1
DJ
8313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314for as_dir in $PATH
8315do
8316 IFS=$as_save_IFS
8317 test -z "$as_dir" && as_dir=.
efd58f08 8318 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 8319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 8320 ac_cv_prog_AR="${ncn_progname}"
efd58f08 8321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8322 break 2
8323 fi
8324done
efd58f08
RW
8325 done
8326IFS=$as_save_IFS
b58b6ee1 8327
a0c92996
AC
8328fi
8329fi
b58b6ee1 8330AR=$ac_cv_prog_AR
60cfca65 8331if test -n "$AR"; then
efd58f08
RW
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8333$as_echo "$AR" >&6; }
a0c92996 8334else
efd58f08
RW
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336$as_echo "no" >&6; }
a0c92996 8337fi
b58b6ee1 8338
efd58f08 8339
60cfca65
PB
8340 fi
8341 test -n "$ac_cv_prog_AR" && break
8342done
8343
8344if test -z "$ac_cv_prog_AR" ; then
8345 set dummy ar
8346 if test $build = $host ; then
8347 AR="$2"
a0c92996 8348 else
60cfca65 8349 AR="${ncn_tool_prefix}$2"
a0c92996 8350 fi
a0c92996
AC
8351fi
8352
82026593
AO
8353
8354
8355if test -n "$AS"; then
8356 ac_cv_prog_AS=$AS
8357elif test -n "$ac_cv_prog_AS"; then
8358 AS=$ac_cv_prog_AS
8359fi
8360
8361if test -n "$ac_cv_prog_AS"; then
8362 for ncn_progname in as; do
8363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8364set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 8367if ${ac_cv_prog_AS+:} false; then :
efd58f08 8368 $as_echo_n "(cached) " >&6
82026593
AO
8369else
8370 if test -n "$AS"; then
8371 ac_cv_prog_AS="$AS" # Let the user override the test.
8372else
8373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374for as_dir in $PATH
8375do
8376 IFS=$as_save_IFS
8377 test -z "$as_dir" && as_dir=.
efd58f08 8378 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 8379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 8380 ac_cv_prog_AS="${ncn_progname}"
efd58f08 8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
8382 break 2
8383 fi
8384done
efd58f08
RW
8385 done
8386IFS=$as_save_IFS
82026593
AO
8387
8388fi
8389fi
8390AS=$ac_cv_prog_AS
8391if test -n "$AS"; then
efd58f08
RW
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8393$as_echo "$AS" >&6; }
82026593 8394else
efd58f08
RW
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396$as_echo "no" >&6; }
82026593
AO
8397fi
8398
efd58f08 8399
82026593
AO
8400 done
8401fi
8402
8403for ncn_progname in as; do
60cfca65
PB
8404 if test -n "$ncn_tool_prefix"; then
8405 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8406set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
8407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 8409if ${ac_cv_prog_AS+:} false; then :
efd58f08 8410 $as_echo_n "(cached) " >&6
a0c92996
AC
8411else
8412 if test -n "$AS"; then
8413 ac_cv_prog_AS="$AS" # Let the user override the test.
b58b6ee1
DJ
8414else
8415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416for as_dir in $PATH
8417do
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
efd58f08 8420 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 8421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 8422 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
efd58f08 8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8424 break 2
8425 fi
8426done
efd58f08
RW
8427 done
8428IFS=$as_save_IFS
b58b6ee1 8429
a0c92996
AC
8430fi
8431fi
b58b6ee1 8432AS=$ac_cv_prog_AS
a0c92996 8433if test -n "$AS"; then
efd58f08
RW
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8435$as_echo "$AS" >&6; }
a0c92996 8436else
efd58f08
RW
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438$as_echo "no" >&6; }
a0c92996
AC
8439fi
8440
efd58f08 8441
60cfca65
PB
8442 fi
8443 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8445set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
8446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8447$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 8448if ${ac_cv_prog_AS+:} false; then :
efd58f08 8449 $as_echo_n "(cached) " >&6
a0c92996 8450else
60cfca65
PB
8451 if test -n "$AS"; then
8452 ac_cv_prog_AS="$AS" # Let the user override the test.
a0c92996 8453else
b58b6ee1
DJ
8454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455for as_dir in $PATH
8456do
8457 IFS=$as_save_IFS
8458 test -z "$as_dir" && as_dir=.
efd58f08 8459 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 8460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 8461 ac_cv_prog_AS="${ncn_progname}"
efd58f08 8462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8463 break 2
8464 fi
8465done
efd58f08
RW
8466 done
8467IFS=$as_save_IFS
b58b6ee1 8468
a0c92996
AC
8469fi
8470fi
b58b6ee1 8471AS=$ac_cv_prog_AS
60cfca65 8472if test -n "$AS"; then
efd58f08
RW
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8474$as_echo "$AS" >&6; }
a0c92996 8475else
efd58f08
RW
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477$as_echo "no" >&6; }
a0c92996 8478fi
b58b6ee1 8479
efd58f08 8480
60cfca65
PB
8481 fi
8482 test -n "$ac_cv_prog_AS" && break
8483done
8484
8485if test -z "$ac_cv_prog_AS" ; then
8486 set dummy as
8487 if test $build = $host ; then
8488 AS="$2"
a0c92996 8489 else
60cfca65 8490 AS="${ncn_tool_prefix}$2"
a0c92996 8491 fi
a0c92996
AC
8492fi
8493
82026593
AO
8494
8495
8496if test -n "$DLLTOOL"; then
8497 ac_cv_prog_DLLTOOL=$DLLTOOL
8498elif test -n "$ac_cv_prog_DLLTOOL"; then
8499 DLLTOOL=$ac_cv_prog_DLLTOOL
8500fi
8501
8502if test -n "$ac_cv_prog_DLLTOOL"; then
8503 for ncn_progname in dlltool; do
8504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8505set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
8506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 8508if ${ac_cv_prog_DLLTOOL+:} false; then :
efd58f08 8509 $as_echo_n "(cached) " >&6
82026593
AO
8510else
8511 if test -n "$DLLTOOL"; then
8512 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8513else
8514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515for as_dir in $PATH
8516do
8517 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
efd58f08 8519 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 8520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 8521 ac_cv_prog_DLLTOOL="${ncn_progname}"
efd58f08 8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
8523 break 2
8524 fi
8525done
efd58f08
RW
8526 done
8527IFS=$as_save_IFS
82026593
AO
8528
8529fi
8530fi
8531DLLTOOL=$ac_cv_prog_DLLTOOL
8532if test -n "$DLLTOOL"; then
efd58f08
RW
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8534$as_echo "$DLLTOOL" >&6; }
82026593 8535else
efd58f08
RW
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537$as_echo "no" >&6; }
82026593
AO
8538fi
8539
efd58f08 8540
82026593
AO
8541 done
8542fi
8543
8544for ncn_progname in dlltool; do
60cfca65
PB
8545 if test -n "$ncn_tool_prefix"; then
8546 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8547set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 8550if ${ac_cv_prog_DLLTOOL+:} false; then :
efd58f08 8551 $as_echo_n "(cached) " >&6
a0c92996
AC
8552else
8553 if test -n "$DLLTOOL"; then
8554 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8555else
b58b6ee1
DJ
8556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557for as_dir in $PATH
8558do
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
efd58f08 8561 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 8562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 8563 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
efd58f08 8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8565 break 2
8566 fi
8567done
efd58f08
RW
8568 done
8569IFS=$as_save_IFS
b58b6ee1 8570
a0c92996
AC
8571fi
8572fi
b58b6ee1 8573DLLTOOL=$ac_cv_prog_DLLTOOL
a0c92996 8574if test -n "$DLLTOOL"; then
efd58f08
RW
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8576$as_echo "$DLLTOOL" >&6; }
a0c92996 8577else
efd58f08
RW
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579$as_echo "no" >&6; }
a0c92996
AC
8580fi
8581
efd58f08 8582
60cfca65
PB
8583 fi
8584 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8586set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
8587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 8589if ${ac_cv_prog_DLLTOOL+:} false; then :
efd58f08 8590 $as_echo_n "(cached) " >&6
a0c92996 8591else
60cfca65
PB
8592 if test -n "$DLLTOOL"; then
8593 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
a0c92996 8594else
b58b6ee1
DJ
8595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596for as_dir in $PATH
8597do
8598 IFS=$as_save_IFS
8599 test -z "$as_dir" && as_dir=.
efd58f08 8600 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 8601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 8602 ac_cv_prog_DLLTOOL="${ncn_progname}"
efd58f08 8603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8604 break 2
8605 fi
8606done
efd58f08
RW
8607 done
8608IFS=$as_save_IFS
b58b6ee1 8609
a0c92996
AC
8610fi
8611fi
b58b6ee1 8612DLLTOOL=$ac_cv_prog_DLLTOOL
60cfca65 8613if test -n "$DLLTOOL"; then
efd58f08
RW
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8615$as_echo "$DLLTOOL" >&6; }
a0c92996 8616else
efd58f08
RW
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618$as_echo "no" >&6; }
a0c92996 8619fi
b58b6ee1 8620
efd58f08 8621
60cfca65
PB
8622 fi
8623 test -n "$ac_cv_prog_DLLTOOL" && break
8624done
8625
8626if test -z "$ac_cv_prog_DLLTOOL" ; then
8627 set dummy dlltool
8628 if test $build = $host ; then
8629 DLLTOOL="$2"
a0c92996 8630 else
60cfca65 8631 DLLTOOL="${ncn_tool_prefix}$2"
a0c92996 8632 fi
a0c92996
AC
8633fi
8634
82026593
AO
8635
8636
8637if test -n "$LD"; then
8638 ac_cv_prog_LD=$LD
8639elif test -n "$ac_cv_prog_LD"; then
8640 LD=$ac_cv_prog_LD
8641fi
8642
8643if test -n "$ac_cv_prog_LD"; then
8644 for ncn_progname in ld; do
8645 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8646set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
8647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 8649if ${ac_cv_prog_LD+:} false; then :
efd58f08 8650 $as_echo_n "(cached) " >&6
82026593
AO
8651else
8652 if test -n "$LD"; then
8653 ac_cv_prog_LD="$LD" # Let the user override the test.
8654else
8655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656for as_dir in $PATH
8657do
8658 IFS=$as_save_IFS
8659 test -z "$as_dir" && as_dir=.
efd58f08 8660 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 8661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 8662 ac_cv_prog_LD="${ncn_progname}"
efd58f08 8663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
8664 break 2
8665 fi
8666done
efd58f08
RW
8667 done
8668IFS=$as_save_IFS
82026593
AO
8669
8670fi
8671fi
8672LD=$ac_cv_prog_LD
8673if test -n "$LD"; then
efd58f08
RW
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8675$as_echo "$LD" >&6; }
82026593 8676else
efd58f08
RW
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678$as_echo "no" >&6; }
82026593
AO
8679fi
8680
efd58f08 8681
82026593
AO
8682 done
8683fi
8684
8685for ncn_progname in ld; do
60cfca65
PB
8686 if test -n "$ncn_tool_prefix"; then
8687 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8688set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
8689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 8691if ${ac_cv_prog_LD+:} false; then :
efd58f08 8692 $as_echo_n "(cached) " >&6
a0c92996
AC
8693else
8694 if test -n "$LD"; then
8695 ac_cv_prog_LD="$LD" # Let the user override the test.
8696else
b58b6ee1
DJ
8697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698for as_dir in $PATH
8699do
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
efd58f08 8702 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 8703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 8704 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
efd58f08 8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8706 break 2
8707 fi
8708done
efd58f08
RW
8709 done
8710IFS=$as_save_IFS
b58b6ee1 8711
a0c92996
AC
8712fi
8713fi
b58b6ee1 8714LD=$ac_cv_prog_LD
a0c92996 8715if test -n "$LD"; then
efd58f08
RW
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8717$as_echo "$LD" >&6; }
a0c92996 8718else
efd58f08
RW
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720$as_echo "no" >&6; }
a0c92996
AC
8721fi
8722
efd58f08 8723
60cfca65
PB
8724 fi
8725 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8726 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8727set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
8728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 8730if ${ac_cv_prog_LD+:} false; then :
efd58f08 8731 $as_echo_n "(cached) " >&6
a0c92996 8732else
60cfca65
PB
8733 if test -n "$LD"; then
8734 ac_cv_prog_LD="$LD" # Let the user override the test.
76402c80 8735else
b58b6ee1
DJ
8736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737for as_dir in $PATH
8738do
8739 IFS=$as_save_IFS
8740 test -z "$as_dir" && as_dir=.
efd58f08 8741 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 8742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 8743 ac_cv_prog_LD="${ncn_progname}"
efd58f08 8744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8745 break 2
8746 fi
8747done
efd58f08
RW
8748 done
8749IFS=$as_save_IFS
b58b6ee1 8750
a0c92996
AC
8751fi
8752fi
b58b6ee1 8753LD=$ac_cv_prog_LD
60cfca65 8754if test -n "$LD"; then
efd58f08
RW
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8756$as_echo "$LD" >&6; }
a0c92996 8757else
efd58f08
RW
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8759$as_echo "no" >&6; }
a0c92996 8760fi
b58b6ee1 8761
efd58f08 8762
60cfca65
PB
8763 fi
8764 test -n "$ac_cv_prog_LD" && break
8765done
8766
8767if test -z "$ac_cv_prog_LD" ; then
8768 set dummy ld
8769 if test $build = $host ; then
8770 LD="$2"
a0c92996 8771 else
60cfca65 8772 LD="${ncn_tool_prefix}$2"
a0c92996 8773 fi
a0c92996
AC
8774fi
8775
82026593
AO
8776
8777
8778if test -n "$LIPO"; then
8779 ac_cv_prog_LIPO=$LIPO
8780elif test -n "$ac_cv_prog_LIPO"; then
8781 LIPO=$ac_cv_prog_LIPO
8782fi
8783
8784if test -n "$ac_cv_prog_LIPO"; then
8785 for ncn_progname in lipo; do
8786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8787set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
8788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8789$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 8790if ${ac_cv_prog_LIPO+:} false; then :
efd58f08 8791 $as_echo_n "(cached) " >&6
82026593
AO
8792else
8793 if test -n "$LIPO"; then
8794 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8795else
8796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797for as_dir in $PATH
8798do
8799 IFS=$as_save_IFS
8800 test -z "$as_dir" && as_dir=.
efd58f08 8801 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 8802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 8803 ac_cv_prog_LIPO="${ncn_progname}"
efd58f08 8804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
8805 break 2
8806 fi
8807done
efd58f08
RW
8808 done
8809IFS=$as_save_IFS
82026593
AO
8810
8811fi
8812fi
8813LIPO=$ac_cv_prog_LIPO
8814if test -n "$LIPO"; then
efd58f08
RW
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8816$as_echo "$LIPO" >&6; }
82026593 8817else
efd58f08
RW
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819$as_echo "no" >&6; }
82026593
AO
8820fi
8821
efd58f08 8822
82026593
AO
8823 done
8824fi
8825
8826for ncn_progname in lipo; do
a7dc05b5
PB
8827 if test -n "$ncn_tool_prefix"; then
8828 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8829set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 8832if ${ac_cv_prog_LIPO+:} false; then :
efd58f08 8833 $as_echo_n "(cached) " >&6
a7dc05b5
PB
8834else
8835 if test -n "$LIPO"; then
8836 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8837else
b58b6ee1
DJ
8838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839for as_dir in $PATH
8840do
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
efd58f08 8843 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 8844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 8845 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
efd58f08 8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8847 break 2
8848 fi
8849done
efd58f08
RW
8850 done
8851IFS=$as_save_IFS
b58b6ee1 8852
a7dc05b5
PB
8853fi
8854fi
b58b6ee1 8855LIPO=$ac_cv_prog_LIPO
a7dc05b5 8856if test -n "$LIPO"; then
efd58f08
RW
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8858$as_echo "$LIPO" >&6; }
a7dc05b5 8859else
efd58f08
RW
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861$as_echo "no" >&6; }
a7dc05b5
PB
8862fi
8863
efd58f08 8864
a7dc05b5
PB
8865 fi
8866 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8868set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8870$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 8871if ${ac_cv_prog_LIPO+:} false; then :
efd58f08 8872 $as_echo_n "(cached) " >&6
a7dc05b5
PB
8873else
8874 if test -n "$LIPO"; then
8875 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8876else
b58b6ee1
DJ
8877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8878for as_dir in $PATH
8879do
8880 IFS=$as_save_IFS
8881 test -z "$as_dir" && as_dir=.
efd58f08 8882 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 8883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 8884 ac_cv_prog_LIPO="${ncn_progname}"
efd58f08 8885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8886 break 2
8887 fi
8888done
efd58f08
RW
8889 done
8890IFS=$as_save_IFS
b58b6ee1 8891
a7dc05b5
PB
8892fi
8893fi
b58b6ee1 8894LIPO=$ac_cv_prog_LIPO
a7dc05b5 8895if test -n "$LIPO"; then
efd58f08
RW
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8897$as_echo "$LIPO" >&6; }
a7dc05b5 8898else
efd58f08
RW
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8900$as_echo "no" >&6; }
a7dc05b5 8901fi
b58b6ee1 8902
efd58f08 8903
a7dc05b5
PB
8904 fi
8905 test -n "$ac_cv_prog_LIPO" && break
8906done
8907
8908if test -z "$ac_cv_prog_LIPO" ; then
8909 set dummy lipo
8910 if test $build = $host ; then
8911 LIPO="$2"
8912 else
8913 LIPO="${ncn_tool_prefix}$2"
8914 fi
8915fi
8916
82026593
AO
8917
8918
8919if test -n "$NM"; then
8920 ac_cv_prog_NM=$NM
8921elif test -n "$ac_cv_prog_NM"; then
8922 NM=$ac_cv_prog_NM
8923fi
8924
8925if test -n "$ac_cv_prog_NM"; then
8926 for ncn_progname in nm; do
8927 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8928set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
8929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8930$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 8931if ${ac_cv_prog_NM+:} false; then :
efd58f08 8932 $as_echo_n "(cached) " >&6
a0c92996
AC
8933else
8934 if test -n "$NM"; then
8935 ac_cv_prog_NM="$NM" # Let the user override the test.
8936else
b58b6ee1
DJ
8937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8938for as_dir in $PATH
8939do
8940 IFS=$as_save_IFS
8941 test -z "$as_dir" && as_dir=.
efd58f08 8942 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 8943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 8944 ac_cv_prog_NM="${ncn_progname}"
efd58f08 8945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8946 break 2
8947 fi
8948done
efd58f08
RW
8949 done
8950IFS=$as_save_IFS
b58b6ee1 8951
a0c92996
AC
8952fi
8953fi
b58b6ee1 8954NM=$ac_cv_prog_NM
a0c92996 8955if test -n "$NM"; then
efd58f08
RW
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8957$as_echo "$NM" >&6; }
a0c92996 8958else
efd58f08
RW
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8960$as_echo "no" >&6; }
a0c92996
AC
8961fi
8962
efd58f08 8963
82026593
AO
8964 done
8965fi
8966
8967for ncn_progname in nm; do
8968 if test -n "$ncn_tool_prefix"; then
8969 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8970set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
8971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8972$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 8973if ${ac_cv_prog_NM+:} false; then :
efd58f08 8974 $as_echo_n "(cached) " >&6
a0c92996 8975else
60cfca65
PB
8976 if test -n "$NM"; then
8977 ac_cv_prog_NM="$NM" # Let the user override the test.
a0c92996 8978else
b58b6ee1
DJ
8979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980for as_dir in $PATH
8981do
8982 IFS=$as_save_IFS
8983 test -z "$as_dir" && as_dir=.
efd58f08 8984 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 8985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 8986 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
efd58f08 8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8988 break 2
8989 fi
8990done
efd58f08
RW
8991 done
8992IFS=$as_save_IFS
b58b6ee1 8993
a0c92996
AC
8994fi
8995fi
b58b6ee1 8996NM=$ac_cv_prog_NM
60cfca65 8997if test -n "$NM"; then
efd58f08
RW
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8999$as_echo "$NM" >&6; }
a0c92996 9000else
efd58f08
RW
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002$as_echo "no" >&6; }
a0c92996 9003fi
b58b6ee1 9004
efd58f08 9005
60cfca65 9006 fi
82026593
AO
9007 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9009set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9011$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 9012if ${ac_cv_prog_NM+:} false; then :
efd58f08 9013 $as_echo_n "(cached) " >&6
82026593
AO
9014else
9015 if test -n "$NM"; then
9016 ac_cv_prog_NM="$NM" # Let the user override the test.
9017else
9018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9019for as_dir in $PATH
9020do
9021 IFS=$as_save_IFS
9022 test -z "$as_dir" && as_dir=.
efd58f08 9023 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 9024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 9025 ac_cv_prog_NM="${ncn_progname}"
efd58f08 9026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
9027 break 2
9028 fi
9029done
efd58f08
RW
9030 done
9031IFS=$as_save_IFS
82026593
AO
9032
9033fi
9034fi
9035NM=$ac_cv_prog_NM
9036if test -n "$NM"; then
efd58f08
RW
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9038$as_echo "$NM" >&6; }
82026593 9039else
efd58f08
RW
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041$as_echo "no" >&6; }
82026593
AO
9042fi
9043
efd58f08 9044
82026593
AO
9045 fi
9046 test -n "$ac_cv_prog_NM" && break
9047done
9048
9049if test -z "$ac_cv_prog_NM" ; then
9050 set dummy nm
9051 if test $build = $host ; then
9052 NM="$2"
9053 else
9054 NM="${ncn_tool_prefix}$2"
9055 fi
9056fi
9057
9058
9059
9060if test -n "$RANLIB"; then
9061 ac_cv_prog_RANLIB=$RANLIB
9062elif test -n "$ac_cv_prog_RANLIB"; then
9063 RANLIB=$ac_cv_prog_RANLIB
9064fi
9065
9066if test -n "$ac_cv_prog_RANLIB"; then
9067 for ncn_progname in ranlib; do
9068 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9069set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 9072if ${ac_cv_prog_RANLIB+:} false; then :
efd58f08 9073 $as_echo_n "(cached) " >&6
82026593
AO
9074else
9075 if test -n "$RANLIB"; then
9076 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9077else
9078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079for as_dir in $PATH
9080do
9081 IFS=$as_save_IFS
9082 test -z "$as_dir" && as_dir=.
efd58f08 9083 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 9084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 9085 ac_cv_prog_RANLIB="${ncn_progname}"
efd58f08 9086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
9087 break 2
9088 fi
9089done
efd58f08
RW
9090 done
9091IFS=$as_save_IFS
82026593
AO
9092
9093fi
9094fi
9095RANLIB=$ac_cv_prog_RANLIB
9096if test -n "$RANLIB"; then
efd58f08
RW
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9098$as_echo "$RANLIB" >&6; }
82026593 9099else
efd58f08
RW
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101$as_echo "no" >&6; }
82026593
AO
9102fi
9103
efd58f08 9104
82026593
AO
9105 done
9106fi
a0c92996 9107
82026593 9108for ncn_progname in ranlib; do
60cfca65
PB
9109 if test -n "$ncn_tool_prefix"; then
9110 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9111set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 9114if ${ac_cv_prog_RANLIB+:} false; then :
efd58f08 9115 $as_echo_n "(cached) " >&6
a0c92996
AC
9116else
9117 if test -n "$RANLIB"; then
9118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9119else
b58b6ee1
DJ
9120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121for as_dir in $PATH
9122do
9123 IFS=$as_save_IFS
9124 test -z "$as_dir" && as_dir=.
efd58f08 9125 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 9126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 9127 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
efd58f08 9128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
9129 break 2
9130 fi
9131done
efd58f08
RW
9132 done
9133IFS=$as_save_IFS
b58b6ee1 9134
a0c92996
AC
9135fi
9136fi
b58b6ee1 9137RANLIB=$ac_cv_prog_RANLIB
a0c92996 9138if test -n "$RANLIB"; then
efd58f08
RW
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9140$as_echo "$RANLIB" >&6; }
a0c92996 9141else
efd58f08
RW
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143$as_echo "no" >&6; }
a0c92996
AC
9144fi
9145
efd58f08 9146
60cfca65
PB
9147 fi
9148 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9150set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9152$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 9153if ${ac_cv_prog_RANLIB+:} false; then :
efd58f08 9154 $as_echo_n "(cached) " >&6
a0c92996 9155else
60cfca65
PB
9156 if test -n "$RANLIB"; then
9157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
a0c92996 9158else
b58b6ee1
DJ
9159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9160for as_dir in $PATH
9161do
9162 IFS=$as_save_IFS
9163 test -z "$as_dir" && as_dir=.
efd58f08 9164 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 9165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 9166 ac_cv_prog_RANLIB="${ncn_progname}"
efd58f08 9167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
9168 break 2
9169 fi
9170done
efd58f08
RW
9171 done
9172IFS=$as_save_IFS
b58b6ee1 9173
a0c92996
AC
9174fi
9175fi
b58b6ee1 9176RANLIB=$ac_cv_prog_RANLIB
60cfca65 9177if test -n "$RANLIB"; then
efd58f08
RW
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9179$as_echo "$RANLIB" >&6; }
a0c92996 9180else
efd58f08
RW
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182$as_echo "no" >&6; }
a0c92996 9183fi
b58b6ee1 9184
efd58f08 9185
a0c92996 9186 fi
60cfca65
PB
9187 test -n "$ac_cv_prog_RANLIB" && break
9188done
9189
9190if test -z "$ac_cv_prog_RANLIB" ; then
56fbdfab 9191 RANLIB="true"
a0c92996
AC
9192fi
9193
82026593
AO
9194
9195
9196if test -n "$STRIP"; then
9197 ac_cv_prog_STRIP=$STRIP
9198elif test -n "$ac_cv_prog_STRIP"; then
9199 STRIP=$ac_cv_prog_STRIP
9200fi
9201
9202if test -n "$ac_cv_prog_STRIP"; then
9203 for ncn_progname in strip; do
9204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9205set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9207$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 9208if ${ac_cv_prog_STRIP+:} false; then :
efd58f08 9209 $as_echo_n "(cached) " >&6
82026593
AO
9210else
9211 if test -n "$STRIP"; then
9212 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9213else
9214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9215for as_dir in $PATH
9216do
9217 IFS=$as_save_IFS
9218 test -z "$as_dir" && as_dir=.
efd58f08 9219 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 9220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 9221 ac_cv_prog_STRIP="${ncn_progname}"
efd58f08 9222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
9223 break 2
9224 fi
9225done
efd58f08
RW
9226 done
9227IFS=$as_save_IFS
82026593
AO
9228
9229fi
9230fi
9231STRIP=$ac_cv_prog_STRIP
9232if test -n "$STRIP"; then
efd58f08
RW
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9234$as_echo "$STRIP" >&6; }
82026593 9235else
efd58f08
RW
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9237$as_echo "no" >&6; }
82026593
AO
9238fi
9239
efd58f08 9240
82026593
AO
9241 done
9242fi
9243
9244for ncn_progname in strip; do
a7dc05b5
PB
9245 if test -n "$ncn_tool_prefix"; then
9246 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9247set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
9248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 9250if ${ac_cv_prog_STRIP+:} false; then :
efd58f08 9251 $as_echo_n "(cached) " >&6
a7dc05b5
PB
9252else
9253 if test -n "$STRIP"; then
9254 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9255else
b58b6ee1
DJ
9256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257for as_dir in $PATH
9258do
9259 IFS=$as_save_IFS
9260 test -z "$as_dir" && as_dir=.
efd58f08 9261 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 9262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 9263 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
efd58f08 9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
9265 break 2
9266 fi
9267done
efd58f08
RW
9268 done
9269IFS=$as_save_IFS
b58b6ee1 9270
a7dc05b5
PB
9271fi
9272fi
b58b6ee1 9273STRIP=$ac_cv_prog_STRIP
a7dc05b5 9274if test -n "$STRIP"; then
efd58f08
RW
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9276$as_echo "$STRIP" >&6; }
a7dc05b5 9277else
efd58f08
RW
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279$as_echo "no" >&6; }
a7dc05b5
PB
9280fi
9281
efd58f08 9282
a7dc05b5
PB
9283 fi
9284 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9286set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9288$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 9289if ${ac_cv_prog_STRIP+:} false; then :
efd58f08 9290 $as_echo_n "(cached) " >&6
a7dc05b5
PB
9291else
9292 if test -n "$STRIP"; then
9293 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9294else
b58b6ee1
DJ
9295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9296for as_dir in $PATH
9297do
9298 IFS=$as_save_IFS
9299 test -z "$as_dir" && as_dir=.
efd58f08 9300 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 9301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 9302 ac_cv_prog_STRIP="${ncn_progname}"
efd58f08 9303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
9304 break 2
9305 fi
9306done
efd58f08
RW
9307 done
9308IFS=$as_save_IFS
b58b6ee1 9309
a7dc05b5
PB
9310fi
9311fi
b58b6ee1 9312STRIP=$ac_cv_prog_STRIP
a7dc05b5 9313if test -n "$STRIP"; then
efd58f08
RW
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9315$as_echo "$STRIP" >&6; }
a7dc05b5 9316else
efd58f08
RW
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9318$as_echo "no" >&6; }
a7dc05b5 9319fi
b58b6ee1 9320
efd58f08 9321
a7dc05b5
PB
9322 fi
9323 test -n "$ac_cv_prog_STRIP" && break
9324done
9325
9326if test -z "$ac_cv_prog_STRIP" ; then
56fbdfab 9327 STRIP="true"
a7dc05b5
PB
9328fi
9329
82026593
AO
9330
9331
9332if test -n "$WINDRES"; then
9333 ac_cv_prog_WINDRES=$WINDRES
9334elif test -n "$ac_cv_prog_WINDRES"; then
9335 WINDRES=$ac_cv_prog_WINDRES
9336fi
9337
9338if test -n "$ac_cv_prog_WINDRES"; then
9339 for ncn_progname in windres; do
9340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9341set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9343$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 9344if ${ac_cv_prog_WINDRES+:} false; then :
efd58f08 9345 $as_echo_n "(cached) " >&6
82026593
AO
9346else
9347 if test -n "$WINDRES"; then
9348 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9349else
9350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9351for as_dir in $PATH
9352do
9353 IFS=$as_save_IFS
9354 test -z "$as_dir" && as_dir=.
efd58f08 9355 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 9356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 9357 ac_cv_prog_WINDRES="${ncn_progname}"
efd58f08 9358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
9359 break 2
9360 fi
9361done
efd58f08
RW
9362 done
9363IFS=$as_save_IFS
82026593
AO
9364
9365fi
9366fi
9367WINDRES=$ac_cv_prog_WINDRES
9368if test -n "$WINDRES"; then
efd58f08
RW
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9370$as_echo "$WINDRES" >&6; }
82026593 9371else
efd58f08
RW
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9373$as_echo "no" >&6; }
82026593
AO
9374fi
9375
efd58f08 9376
82026593
AO
9377 done
9378fi
9379
9380for ncn_progname in windres; do
60cfca65
PB
9381 if test -n "$ncn_tool_prefix"; then
9382 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9383set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
9384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9385$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 9386if ${ac_cv_prog_WINDRES+:} false; then :
efd58f08 9387 $as_echo_n "(cached) " >&6
a0c92996
AC
9388else
9389 if test -n "$WINDRES"; then
9390 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9391else
b58b6ee1
DJ
9392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393for as_dir in $PATH
9394do
9395 IFS=$as_save_IFS
9396 test -z "$as_dir" && as_dir=.
efd58f08 9397 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 9398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 9399 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
efd58f08 9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
9401 break 2
9402 fi
9403done
efd58f08
RW
9404 done
9405IFS=$as_save_IFS
b58b6ee1 9406
a0c92996
AC
9407fi
9408fi
b58b6ee1 9409WINDRES=$ac_cv_prog_WINDRES
a0c92996 9410if test -n "$WINDRES"; then
efd58f08
RW
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9412$as_echo "$WINDRES" >&6; }
a0c92996 9413else
efd58f08
RW
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415$as_echo "no" >&6; }
a0c92996
AC
9416fi
9417
efd58f08 9418
60cfca65
PB
9419 fi
9420 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9422set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9424$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 9425if ${ac_cv_prog_WINDRES+:} false; then :
efd58f08 9426 $as_echo_n "(cached) " >&6
a0c92996 9427else
60cfca65
PB
9428 if test -n "$WINDRES"; then
9429 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
a0c92996 9430else
b58b6ee1
DJ
9431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432for as_dir in $PATH
9433do
9434 IFS=$as_save_IFS
9435 test -z "$as_dir" && as_dir=.
efd58f08 9436 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 9437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 9438 ac_cv_prog_WINDRES="${ncn_progname}"
efd58f08 9439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
9440 break 2
9441 fi
9442done
efd58f08
RW
9443 done
9444IFS=$as_save_IFS
b58b6ee1 9445
a0c92996
AC
9446fi
9447fi
b58b6ee1 9448WINDRES=$ac_cv_prog_WINDRES
60cfca65 9449if test -n "$WINDRES"; then
efd58f08
RW
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9451$as_echo "$WINDRES" >&6; }
a0c92996 9452else
efd58f08
RW
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454$as_echo "no" >&6; }
a0c92996 9455fi
b58b6ee1 9456
efd58f08 9457
60cfca65
PB
9458 fi
9459 test -n "$ac_cv_prog_WINDRES" && break
9460done
9461
9462if test -z "$ac_cv_prog_WINDRES" ; then
9463 set dummy windres
9464 if test $build = $host ; then
9465 WINDRES="$2"
a0c92996 9466 else
60cfca65 9467 WINDRES="${ncn_tool_prefix}$2"
a0c92996 9468 fi
a0c92996
AC
9469fi
9470
82026593
AO
9471
9472
bffcbe34
NC
9473if test -n "$WINDMC"; then
9474 ac_cv_prog_WINDMC=$WINDMC
9475elif test -n "$ac_cv_prog_WINDMC"; then
9476 WINDMC=$ac_cv_prog_WINDMC
9477fi
9478
9479if test -n "$ac_cv_prog_WINDMC"; then
9480 for ncn_progname in windmc; do
9481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9482set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9484$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 9485if ${ac_cv_prog_WINDMC+:} false; then :
efd58f08 9486 $as_echo_n "(cached) " >&6
bffcbe34
NC
9487else
9488 if test -n "$WINDMC"; then
9489 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9490else
9491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9492for as_dir in $PATH
9493do
9494 IFS=$as_save_IFS
9495 test -z "$as_dir" && as_dir=.
efd58f08 9496 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 9497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bffcbe34 9498 ac_cv_prog_WINDMC="${ncn_progname}"
efd58f08 9499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bffcbe34
NC
9500 break 2
9501 fi
9502done
efd58f08
RW
9503 done
9504IFS=$as_save_IFS
bffcbe34
NC
9505
9506fi
9507fi
9508WINDMC=$ac_cv_prog_WINDMC
9509if test -n "$WINDMC"; then
efd58f08
RW
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9511$as_echo "$WINDMC" >&6; }
bffcbe34 9512else
efd58f08
RW
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9514$as_echo "no" >&6; }
bffcbe34
NC
9515fi
9516
efd58f08 9517
bffcbe34
NC
9518 done
9519fi
9520
9521for ncn_progname in windmc; do
9522 if test -n "$ncn_tool_prefix"; then
9523 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9524set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
9525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 9527if ${ac_cv_prog_WINDMC+:} false; then :
efd58f08 9528 $as_echo_n "(cached) " >&6
bffcbe34
NC
9529else
9530 if test -n "$WINDMC"; then
9531 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9532else
9533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534for as_dir in $PATH
9535do
9536 IFS=$as_save_IFS
9537 test -z "$as_dir" && as_dir=.
efd58f08 9538 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 9539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bffcbe34 9540 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
efd58f08 9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bffcbe34
NC
9542 break 2
9543 fi
9544done
efd58f08
RW
9545 done
9546IFS=$as_save_IFS
bffcbe34
NC
9547
9548fi
9549fi
9550WINDMC=$ac_cv_prog_WINDMC
9551if test -n "$WINDMC"; then
efd58f08
RW
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9553$as_echo "$WINDMC" >&6; }
bffcbe34 9554else
efd58f08
RW
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556$as_echo "no" >&6; }
bffcbe34
NC
9557fi
9558
efd58f08 9559
bffcbe34
NC
9560 fi
9561 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9563set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9565$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 9566if ${ac_cv_prog_WINDMC+:} false; then :
efd58f08 9567 $as_echo_n "(cached) " >&6
bffcbe34
NC
9568else
9569 if test -n "$WINDMC"; then
9570 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9571else
9572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573for as_dir in $PATH
9574do
9575 IFS=$as_save_IFS
9576 test -z "$as_dir" && as_dir=.
efd58f08 9577 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 9578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bffcbe34 9579 ac_cv_prog_WINDMC="${ncn_progname}"
efd58f08 9580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bffcbe34
NC
9581 break 2
9582 fi
9583done
efd58f08
RW
9584 done
9585IFS=$as_save_IFS
bffcbe34
NC
9586
9587fi
9588fi
9589WINDMC=$ac_cv_prog_WINDMC
9590if test -n "$WINDMC"; then
efd58f08
RW
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9592$as_echo "$WINDMC" >&6; }
bffcbe34 9593else
efd58f08
RW
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9595$as_echo "no" >&6; }
bffcbe34
NC
9596fi
9597
efd58f08 9598
bffcbe34
NC
9599 fi
9600 test -n "$ac_cv_prog_WINDMC" && break
9601done
9602
9603if test -z "$ac_cv_prog_WINDMC" ; then
9604 set dummy windmc
9605 if test $build = $host ; then
9606 WINDMC="$2"
9607 else
9608 WINDMC="${ncn_tool_prefix}$2"
9609 fi
9610fi
9611
9612
9613
82026593
AO
9614if test -n "$OBJCOPY"; then
9615 ac_cv_prog_OBJCOPY=$OBJCOPY
9616elif test -n "$ac_cv_prog_OBJCOPY"; then
9617 OBJCOPY=$ac_cv_prog_OBJCOPY
9618fi
9619
9620if test -n "$ac_cv_prog_OBJCOPY"; then
9621 for ncn_progname in objcopy; do
9622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9623set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9625$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 9626if ${ac_cv_prog_OBJCOPY+:} false; then :
efd58f08 9627 $as_echo_n "(cached) " >&6
82026593
AO
9628else
9629 if test -n "$OBJCOPY"; then
9630 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9631else
9632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633for as_dir in $PATH
9634do
9635 IFS=$as_save_IFS
9636 test -z "$as_dir" && as_dir=.
efd58f08 9637 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 9638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 9639 ac_cv_prog_OBJCOPY="${ncn_progname}"
efd58f08 9640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
9641 break 2
9642 fi
9643done
efd58f08
RW
9644 done
9645IFS=$as_save_IFS
82026593
AO
9646
9647fi
9648fi
9649OBJCOPY=$ac_cv_prog_OBJCOPY
9650if test -n "$OBJCOPY"; then
efd58f08
RW
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9652$as_echo "$OBJCOPY" >&6; }
82026593 9653else
efd58f08
RW
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655$as_echo "no" >&6; }
82026593
AO
9656fi
9657
efd58f08 9658
82026593
AO
9659 done
9660fi
9661
9662for ncn_progname in objcopy; do
60cfca65
PB
9663 if test -n "$ncn_tool_prefix"; then
9664 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9665set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
9666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9667$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 9668if ${ac_cv_prog_OBJCOPY+:} false; then :
efd58f08 9669 $as_echo_n "(cached) " >&6
a0c92996
AC
9670else
9671 if test -n "$OBJCOPY"; then
9672 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9673else
b58b6ee1
DJ
9674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9675for as_dir in $PATH
9676do
9677 IFS=$as_save_IFS
9678 test -z "$as_dir" && as_dir=.
efd58f08 9679 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 9680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 9681 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
efd58f08 9682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
9683 break 2
9684 fi
9685done
efd58f08
RW
9686 done
9687IFS=$as_save_IFS
b58b6ee1 9688
a0c92996
AC
9689fi
9690fi
b58b6ee1 9691OBJCOPY=$ac_cv_prog_OBJCOPY
a0c92996 9692if test -n "$OBJCOPY"; then
efd58f08
RW
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9694$as_echo "$OBJCOPY" >&6; }
a0c92996 9695else
efd58f08
RW
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697$as_echo "no" >&6; }
a0c92996
AC
9698fi
9699
efd58f08 9700
60cfca65
PB
9701 fi
9702 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9704set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9706$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 9707if ${ac_cv_prog_OBJCOPY+:} false; then :
efd58f08 9708 $as_echo_n "(cached) " >&6
a0c92996 9709else
60cfca65
PB
9710 if test -n "$OBJCOPY"; then
9711 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
a0c92996 9712else
b58b6ee1
DJ
9713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714for as_dir in $PATH
9715do
9716 IFS=$as_save_IFS
9717 test -z "$as_dir" && as_dir=.
efd58f08 9718 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 9719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 9720 ac_cv_prog_OBJCOPY="${ncn_progname}"
efd58f08 9721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
9722 break 2
9723 fi
9724done
efd58f08
RW
9725 done
9726IFS=$as_save_IFS
b58b6ee1 9727
a0c92996
AC
9728fi
9729fi
b58b6ee1 9730OBJCOPY=$ac_cv_prog_OBJCOPY
60cfca65 9731if test -n "$OBJCOPY"; then
efd58f08
RW
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9733$as_echo "$OBJCOPY" >&6; }
a0c92996 9734else
efd58f08
RW
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9736$as_echo "no" >&6; }
a0c92996 9737fi
b58b6ee1 9738
efd58f08 9739
60cfca65
PB
9740 fi
9741 test -n "$ac_cv_prog_OBJCOPY" && break
9742done
9743
9744if test -z "$ac_cv_prog_OBJCOPY" ; then
9745 set dummy objcopy
9746 if test $build = $host ; then
9747 OBJCOPY="$2"
a0c92996 9748 else
60cfca65 9749 OBJCOPY="${ncn_tool_prefix}$2"
a0c92996 9750 fi
a0c92996
AC
9751fi
9752
82026593
AO
9753
9754
9755if test -n "$OBJDUMP"; then
9756 ac_cv_prog_OBJDUMP=$OBJDUMP
9757elif test -n "$ac_cv_prog_OBJDUMP"; then
9758 OBJDUMP=$ac_cv_prog_OBJDUMP
9759fi
9760
9761if test -n "$ac_cv_prog_OBJDUMP"; then
9762 for ncn_progname in objdump; do
9763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9764set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9766$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 9767if ${ac_cv_prog_OBJDUMP+:} false; then :
efd58f08 9768 $as_echo_n "(cached) " >&6
82026593
AO
9769else
9770 if test -n "$OBJDUMP"; then
9771 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9772else
9773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9774for as_dir in $PATH
9775do
9776 IFS=$as_save_IFS
9777 test -z "$as_dir" && as_dir=.
efd58f08 9778 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 9779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 9780 ac_cv_prog_OBJDUMP="${ncn_progname}"
efd58f08 9781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
9782 break 2
9783 fi
9784done
efd58f08
RW
9785 done
9786IFS=$as_save_IFS
82026593
AO
9787
9788fi
9789fi
9790OBJDUMP=$ac_cv_prog_OBJDUMP
9791if test -n "$OBJDUMP"; then
efd58f08
RW
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9793$as_echo "$OBJDUMP" >&6; }
82026593 9794else
efd58f08
RW
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796$as_echo "no" >&6; }
82026593
AO
9797fi
9798
efd58f08 9799
82026593
AO
9800 done
9801fi
9802
9803for ncn_progname in objdump; do
60cfca65
PB
9804 if test -n "$ncn_tool_prefix"; then
9805 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9806set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
9807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9808$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 9809if ${ac_cv_prog_OBJDUMP+:} false; then :
efd58f08 9810 $as_echo_n "(cached) " >&6
a0c92996
AC
9811else
9812 if test -n "$OBJDUMP"; then
9813 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9814else
b58b6ee1
DJ
9815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816for as_dir in $PATH
9817do
9818 IFS=$as_save_IFS
9819 test -z "$as_dir" && as_dir=.
efd58f08 9820 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 9821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 9822 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
efd58f08 9823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
9824 break 2
9825 fi
9826done
efd58f08
RW
9827 done
9828IFS=$as_save_IFS
b58b6ee1 9829
a0c92996
AC
9830fi
9831fi
b58b6ee1 9832OBJDUMP=$ac_cv_prog_OBJDUMP
a0c92996 9833if test -n "$OBJDUMP"; then
efd58f08
RW
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9835$as_echo "$OBJDUMP" >&6; }
a0c92996 9836else
efd58f08
RW
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838$as_echo "no" >&6; }
a0c92996
AC
9839fi
9840
efd58f08 9841
60cfca65
PB
9842 fi
9843 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9844 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9845set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9847$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 9848if ${ac_cv_prog_OBJDUMP+:} false; then :
efd58f08 9849 $as_echo_n "(cached) " >&6
a0c92996 9850else
60cfca65
PB
9851 if test -n "$OBJDUMP"; then
9852 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
a0c92996 9853else
b58b6ee1
DJ
9854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855for as_dir in $PATH
9856do
9857 IFS=$as_save_IFS
9858 test -z "$as_dir" && as_dir=.
efd58f08 9859 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 9860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 9861 ac_cv_prog_OBJDUMP="${ncn_progname}"
efd58f08 9862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
9863 break 2
9864 fi
9865done
efd58f08
RW
9866 done
9867IFS=$as_save_IFS
b58b6ee1 9868
a0c92996
AC
9869fi
9870fi
b58b6ee1 9871OBJDUMP=$ac_cv_prog_OBJDUMP
60cfca65 9872if test -n "$OBJDUMP"; then
efd58f08
RW
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9874$as_echo "$OBJDUMP" >&6; }
a0c92996 9875else
efd58f08
RW
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877$as_echo "no" >&6; }
a0c92996 9878fi
b58b6ee1 9879
efd58f08 9880
60cfca65
PB
9881 fi
9882 test -n "$ac_cv_prog_OBJDUMP" && break
9883done
9884
9885if test -z "$ac_cv_prog_OBJDUMP" ; then
9886 set dummy objdump
9887 if test $build = $host ; then
9888 OBJDUMP="$2"
a0c92996 9889 else
60cfca65 9890 OBJDUMP="${ncn_tool_prefix}$2"
a0c92996 9891 fi
a0c92996
AC
9892fi
9893
bafecfd6
NN
9894
9895
46e7439b
DD
9896if test -n "$READELF"; then
9897 ac_cv_prog_READELF=$READELF
9898elif test -n "$ac_cv_prog_READELF"; then
9899 READELF=$ac_cv_prog_READELF
9900fi
9901
9902if test -n "$ac_cv_prog_READELF"; then
9903 for ncn_progname in readelf; do
9904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9905set dummy ${ncn_progname}; ac_word=$2
9906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9907$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 9908if ${ac_cv_prog_READELF+:} false; then :
46e7439b
DD
9909 $as_echo_n "(cached) " >&6
9910else
9911 if test -n "$READELF"; then
9912 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9913else
9914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915for as_dir in $PATH
9916do
9917 IFS=$as_save_IFS
9918 test -z "$as_dir" && as_dir=.
9919 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 9920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46e7439b
DD
9921 ac_cv_prog_READELF="${ncn_progname}"
9922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9923 break 2
9924 fi
9925done
9926 done
9927IFS=$as_save_IFS
9928
9929fi
9930fi
9931READELF=$ac_cv_prog_READELF
9932if test -n "$READELF"; then
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9934$as_echo "$READELF" >&6; }
9935else
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9937$as_echo "no" >&6; }
9938fi
9939
9940
9941 done
9942fi
9943
9944for ncn_progname in readelf; do
9945 if test -n "$ncn_tool_prefix"; then
9946 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9947set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9949$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 9950if ${ac_cv_prog_READELF+:} false; then :
46e7439b
DD
9951 $as_echo_n "(cached) " >&6
9952else
9953 if test -n "$READELF"; then
9954 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9955else
9956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9957for as_dir in $PATH
9958do
9959 IFS=$as_save_IFS
9960 test -z "$as_dir" && as_dir=.
9961 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 9962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46e7439b
DD
9963 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9965 break 2
9966 fi
9967done
9968 done
9969IFS=$as_save_IFS
9970
9971fi
9972fi
9973READELF=$ac_cv_prog_READELF
9974if test -n "$READELF"; then
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9976$as_echo "$READELF" >&6; }
9977else
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9979$as_echo "no" >&6; }
9980fi
9981
9982
9983 fi
9984 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9986set dummy ${ncn_progname}; ac_word=$2
9987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9988$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 9989if ${ac_cv_prog_READELF+:} false; then :
46e7439b
DD
9990 $as_echo_n "(cached) " >&6
9991else
9992 if test -n "$READELF"; then
9993 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9994else
9995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9996for as_dir in $PATH
9997do
9998 IFS=$as_save_IFS
9999 test -z "$as_dir" && as_dir=.
10000 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 10001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46e7439b
DD
10002 ac_cv_prog_READELF="${ncn_progname}"
10003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10004 break 2
10005 fi
10006done
10007 done
10008IFS=$as_save_IFS
10009
10010fi
10011fi
10012READELF=$ac_cv_prog_READELF
10013if test -n "$READELF"; then
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10015$as_echo "$READELF" >&6; }
10016else
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10018$as_echo "no" >&6; }
10019fi
10020
10021
10022 fi
10023 test -n "$ac_cv_prog_READELF" && break
10024done
10025
10026if test -z "$ac_cv_prog_READELF" ; then
10027 set dummy readelf
10028 if test $build = $host ; then
10029 READELF="$2"
10030 else
10031 READELF="${ncn_tool_prefix}$2"
10032 fi
10033fi
10034
10035
10036
bafecfd6
NN
10037
10038
10039
d8d5dac0
L
10040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
10041$as_echo_n "checking for -plugin option... " >&6; }
10042
10043plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
10044plugin_option=
10045for plugin in $plugin_names; do
10046 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
10047 if test x$plugin_so = x$plugin; then
10048 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
10049 fi
10050 if test x$plugin_so != x$plugin; then
10051 plugin_option="--plugin $plugin_so"
10052 break
10053 fi
10054done
88d86e59
L
10055if test -n "$ac_tool_prefix"; then
10056 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10057set dummy ${ac_tool_prefix}ar; ac_word=$2
10058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10059$as_echo_n "checking for $ac_word... " >&6; }
10060if ${ac_cv_prog_AR+:} false; then :
10061 $as_echo_n "(cached) " >&6
10062else
10063 if test -n "$AR"; then
10064 ac_cv_prog_AR="$AR" # Let the user override the test.
10065else
10066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10067for as_dir in $PATH
10068do
10069 IFS=$as_save_IFS
10070 test -z "$as_dir" && as_dir=.
10071 for ac_exec_ext in '' $ac_executable_extensions; do
10072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10073 ac_cv_prog_AR="${ac_tool_prefix}ar"
10074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10075 break 2
10076 fi
10077done
10078 done
10079IFS=$as_save_IFS
10080
10081fi
10082fi
10083AR=$ac_cv_prog_AR
10084if test -n "$AR"; then
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10086$as_echo "$AR" >&6; }
10087else
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10089$as_echo "no" >&6; }
10090fi
10091
10092
10093fi
10094if test -z "$ac_cv_prog_AR"; then
10095 ac_ct_AR=$AR
10096 # Extract the first word of "ar", so it can be a program name with args.
10097set dummy ar; ac_word=$2
10098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10099$as_echo_n "checking for $ac_word... " >&6; }
10100if ${ac_cv_prog_ac_ct_AR+:} false; then :
10101 $as_echo_n "(cached) " >&6
10102else
10103 if test -n "$ac_ct_AR"; then
10104 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10105else
10106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10107for as_dir in $PATH
10108do
10109 IFS=$as_save_IFS
10110 test -z "$as_dir" && as_dir=.
10111 for ac_exec_ext in '' $ac_executable_extensions; do
10112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10113 ac_cv_prog_ac_ct_AR="ar"
10114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10115 break 2
10116 fi
10117done
10118 done
10119IFS=$as_save_IFS
10120
10121fi
10122fi
10123ac_ct_AR=$ac_cv_prog_ac_ct_AR
10124if test -n "$ac_ct_AR"; then
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10126$as_echo "$ac_ct_AR" >&6; }
10127else
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10129$as_echo "no" >&6; }
10130fi
10131
10132 if test "x$ac_ct_AR" = x; then
10133 AR=""
10134 else
10135 case $cross_compiling:$ac_tool_warned in
10136yes:)
10137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10139ac_tool_warned=yes ;;
10140esac
10141 AR=$ac_ct_AR
10142 fi
10143else
10144 AR="$ac_cv_prog_AR"
10145fi
10146
10147if test "${AR}" = "" ; then
10148 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
10149fi
10150touch conftest.c
10151${AR} $plugin_option rc conftest.a conftest.c
10152if test "$?" != 0; then
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
10154$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
10155 plugin_option=
10156fi
10157rm -f conftest.*
d8d5dac0
L
10158if test -n "$plugin_option"; then
10159 PLUGIN_OPTION="$plugin_option"
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
10161$as_echo "$plugin_option" >&6; }
10162else
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164$as_echo "no" >&6; }
10165fi
10166
10167AR_PLUGIN_OPTION=
10168RANLIB_PLUGIN_OPTION=
10169if test -n "$PLUGIN_OPTION"; then
10170 if $AR --help 2>&1 | grep -q "\--plugin"; then
10171 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
10172 fi
10173 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
10174 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
10175 fi
10176fi
10177
10178
10179
a7dc05b5 10180# Target tools.
b58b6ee1 10181
efd58f08
RW
10182# Check whether --with-build-time-tools was given.
10183if test "${with_build_time_tools+set}" = set; then :
10184 withval=$with_build_time_tools; case x"$withval" in
fef3f213
PB
10185 x/*) ;;
10186 *)
10187 with_build_time_tools=
efd58f08
RW
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10189$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
fef3f213
PB
10190 ;;
10191 esac
a0c92996 10192else
fef3f213 10193 with_build_time_tools=
efd58f08
RW
10194fi
10195
a0c92996 10196
82026593
AO
10197
10198
10199if test -n "$CC_FOR_TARGET"; then
10200 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10201elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10202 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10203fi
10204
10205if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10206 for ncn_progname in cc gcc; do
10207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10208set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
10209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10210$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 10211if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
efd58f08 10212 $as_echo_n "(cached) " >&6
82026593
AO
10213else
10214 if test -n "$CC_FOR_TARGET"; then
10215 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10216else
10217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218for as_dir in $PATH
10219do
10220 IFS=$as_save_IFS
10221 test -z "$as_dir" && as_dir=.
efd58f08 10222 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 10223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 10224 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
efd58f08 10225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
10226 break 2
10227 fi
10228done
efd58f08
RW
10229 done
10230IFS=$as_save_IFS
82026593
AO
10231
10232fi
10233fi
10234CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10235if test -n "$CC_FOR_TARGET"; then
efd58f08
RW
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10237$as_echo "$CC_FOR_TARGET" >&6; }
82026593 10238else
efd58f08
RW
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240$as_echo "no" >&6; }
82026593
AO
10241fi
10242
efd58f08 10243
82026593
AO
10244 done
10245fi
10246
10247if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 10248 for ncn_progname in cc gcc; do
efd58f08
RW
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10250$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
10251 if test -x $with_build_time_tools/${ncn_progname}; then
10252 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10254$as_echo "yes" >&6; }
f69e2532 10255 break
fef3f213 10256 else
efd58f08
RW
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258$as_echo "no" >&6; }
f69e2532
CM
10259 fi
10260 done
5fb28bcc
PB
10261fi
10262
fef3f213
PB
10263if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10264 for ncn_progname in cc gcc; do
10265 if test -n "$ncn_target_tool_prefix"; then
10266 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 10267set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
10268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10269$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 10270if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
efd58f08 10271 $as_echo_n "(cached) " >&6
5fb28bcc
PB
10272else
10273 if test -n "$CC_FOR_TARGET"; then
10274 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10275else
b58b6ee1
DJ
10276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277for as_dir in $PATH
10278do
10279 IFS=$as_save_IFS
10280 test -z "$as_dir" && as_dir=.
efd58f08 10281 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 10282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 10283 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 10284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10285 break 2
10286 fi
10287done
efd58f08
RW
10288 done
10289IFS=$as_save_IFS
b58b6ee1 10290
5fb28bcc
PB
10291fi
10292fi
b58b6ee1 10293CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
5fb28bcc 10294if test -n "$CC_FOR_TARGET"; then
efd58f08
RW
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10296$as_echo "$CC_FOR_TARGET" >&6; }
5fb28bcc 10297else
efd58f08
RW
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10299$as_echo "no" >&6; }
5fb28bcc
PB
10300fi
10301
efd58f08 10302
fef3f213
PB
10303 fi
10304 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10305 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 10306set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
10307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10308$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 10309if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
efd58f08 10310 $as_echo_n "(cached) " >&6
5fb28bcc 10311else
60cfca65
PB
10312 if test -n "$CC_FOR_TARGET"; then
10313 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
5fb28bcc 10314else
b58b6ee1
DJ
10315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10316for as_dir in $PATH
10317do
10318 IFS=$as_save_IFS
10319 test -z "$as_dir" && as_dir=.
efd58f08 10320 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 10321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 10322 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
efd58f08 10323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10324 break 2
10325 fi
10326done
efd58f08
RW
10327 done
10328IFS=$as_save_IFS
b58b6ee1 10329
5fb28bcc
PB
10330fi
10331fi
b58b6ee1 10332CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
60cfca65 10333if test -n "$CC_FOR_TARGET"; then
efd58f08
RW
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10335$as_echo "$CC_FOR_TARGET" >&6; }
5fb28bcc 10336else
efd58f08
RW
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10338$as_echo "no" >&6; }
5fb28bcc 10339fi
b58b6ee1 10340
efd58f08 10341
fef3f213
PB
10342 fi
10343 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10344 done
10345fi
b58b6ee1 10346
60cfca65
PB
10347if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10348 set dummy cc gcc
10349 if test $build = $target ; then
10350 CC_FOR_TARGET="$2"
5fb28bcc 10351 else
60cfca65 10352 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
5fb28bcc 10353 fi
d058b81b
MS
10354else
10355 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
5fb28bcc
PB
10356fi
10357
82026593
AO
10358
10359
10360if test -n "$CXX_FOR_TARGET"; then
10361 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10362elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10363 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10364fi
10365
10366if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10367 for ncn_progname in c++ g++ cxx gxx; do
10368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10369set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
10370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10371$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 10372if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
efd58f08 10373 $as_echo_n "(cached) " >&6
82026593
AO
10374else
10375 if test -n "$CXX_FOR_TARGET"; then
10376 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10377else
10378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10379for as_dir in $PATH
10380do
10381 IFS=$as_save_IFS
10382 test -z "$as_dir" && as_dir=.
efd58f08 10383 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 10384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 10385 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
efd58f08 10386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
10387 break 2
10388 fi
10389done
efd58f08
RW
10390 done
10391IFS=$as_save_IFS
82026593
AO
10392
10393fi
10394fi
10395CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10396if test -n "$CXX_FOR_TARGET"; then
efd58f08
RW
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10398$as_echo "$CXX_FOR_TARGET" >&6; }
82026593 10399else
efd58f08
RW
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401$as_echo "no" >&6; }
82026593
AO
10402fi
10403
efd58f08 10404
82026593
AO
10405 done
10406fi
10407
10408if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 10409 for ncn_progname in c++ g++ cxx gxx; do
efd58f08
RW
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10411$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
10412 if test -x $with_build_time_tools/${ncn_progname}; then
10413 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10415$as_echo "yes" >&6; }
fef3f213
PB
10416 break
10417 else
efd58f08
RW
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419$as_echo "no" >&6; }
fef3f213
PB
10420 fi
10421 done
10422fi
10423
10424if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10425 for ncn_progname in c++ g++ cxx gxx; do
10426 if test -n "$ncn_target_tool_prefix"; then
10427 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 10428set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
10429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10430$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 10431if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
efd58f08 10432 $as_echo_n "(cached) " >&6
5fb28bcc
PB
10433else
10434 if test -n "$CXX_FOR_TARGET"; then
10435 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10436else
b58b6ee1
DJ
10437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438for as_dir in $PATH
10439do
10440 IFS=$as_save_IFS
10441 test -z "$as_dir" && as_dir=.
efd58f08 10442 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 10443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 10444 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 10445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10446 break 2
10447 fi
10448done
efd58f08
RW
10449 done
10450IFS=$as_save_IFS
b58b6ee1 10451
5fb28bcc
PB
10452fi
10453fi
b58b6ee1 10454CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
5fb28bcc 10455if test -n "$CXX_FOR_TARGET"; then
efd58f08
RW
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10457$as_echo "$CXX_FOR_TARGET" >&6; }
5fb28bcc 10458else
efd58f08
RW
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460$as_echo "no" >&6; }
5fb28bcc
PB
10461fi
10462
efd58f08 10463
fef3f213
PB
10464 fi
10465 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 10467set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
10468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10469$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 10470if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
efd58f08 10471 $as_echo_n "(cached) " >&6
5fb28bcc 10472else
60cfca65
PB
10473 if test -n "$CXX_FOR_TARGET"; then
10474 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
5fb28bcc 10475else
b58b6ee1
DJ
10476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10477for as_dir in $PATH
10478do
10479 IFS=$as_save_IFS
10480 test -z "$as_dir" && as_dir=.
efd58f08 10481 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 10482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 10483 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
efd58f08 10484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10485 break 2
10486 fi
10487done
efd58f08
RW
10488 done
10489IFS=$as_save_IFS
b58b6ee1 10490
5fb28bcc
PB
10491fi
10492fi
b58b6ee1 10493CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
60cfca65 10494if test -n "$CXX_FOR_TARGET"; then
efd58f08
RW
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10496$as_echo "$CXX_FOR_TARGET" >&6; }
5fb28bcc 10497else
efd58f08
RW
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10499$as_echo "no" >&6; }
5fb28bcc 10500fi
b58b6ee1 10501
efd58f08 10502
fef3f213
PB
10503 fi
10504 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10505 done
10506fi
b58b6ee1 10507
60cfca65
PB
10508if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10509 set dummy c++ g++ cxx gxx
10510 if test $build = $target ; then
10511 CXX_FOR_TARGET="$2"
5fb28bcc 10512 else
60cfca65 10513 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
5fb28bcc 10514 fi
d058b81b
MS
10515else
10516 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
a0c92996
AC
10517fi
10518
82026593
AO
10519
10520
10521if test -n "$GCC_FOR_TARGET"; then
10522 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10523elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10524 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10525fi
10526
10527if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10528 for ncn_progname in gcc; do
10529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10530set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
10531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10532$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 10533if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
efd58f08 10534 $as_echo_n "(cached) " >&6
82026593
AO
10535else
10536 if test -n "$GCC_FOR_TARGET"; then
10537 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10538else
10539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540for as_dir in $PATH
10541do
10542 IFS=$as_save_IFS
10543 test -z "$as_dir" && as_dir=.
efd58f08 10544 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 10545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 10546 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
efd58f08 10547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
10548 break 2
10549 fi
10550done
efd58f08
RW
10551 done
10552IFS=$as_save_IFS
82026593
AO
10553
10554fi
10555fi
10556GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10557if test -n "$GCC_FOR_TARGET"; then
efd58f08
RW
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10559$as_echo "$GCC_FOR_TARGET" >&6; }
82026593 10560else
efd58f08
RW
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562$as_echo "no" >&6; }
82026593
AO
10563fi
10564
efd58f08 10565
82026593
AO
10566 done
10567fi
10568
10569if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 10570 for ncn_progname in gcc; do
efd58f08
RW
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10572$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
10573 if test -x $with_build_time_tools/${ncn_progname}; then
10574 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10576$as_echo "yes" >&6; }
fef3f213
PB
10577 break
10578 else
efd58f08
RW
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10580$as_echo "no" >&6; }
fef3f213
PB
10581 fi
10582 done
10583fi
10584
10585if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10586 for ncn_progname in gcc; do
10587 if test -n "$ncn_target_tool_prefix"; then
10588 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 10589set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
10590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10591$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 10592if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
efd58f08 10593 $as_echo_n "(cached) " >&6
a0c92996 10594else
fef3f213
PB
10595 if test -n "$GCC_FOR_TARGET"; then
10596 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
5fb28bcc 10597else
b58b6ee1
DJ
10598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10599for as_dir in $PATH
10600do
10601 IFS=$as_save_IFS
10602 test -z "$as_dir" && as_dir=.
efd58f08 10603 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 10604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 10605 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 10606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10607 break 2
10608 fi
10609done
efd58f08
RW
10610 done
10611IFS=$as_save_IFS
b58b6ee1 10612
5fb28bcc
PB
10613fi
10614fi
b58b6ee1 10615GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
5fb28bcc 10616if test -n "$GCC_FOR_TARGET"; then
efd58f08
RW
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10618$as_echo "$GCC_FOR_TARGET" >&6; }
5fb28bcc 10619else
efd58f08
RW
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10621$as_echo "no" >&6; }
5fb28bcc
PB
10622fi
10623
efd58f08 10624
fef3f213
PB
10625 fi
10626 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 10628set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
10629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10630$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 10631if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
efd58f08 10632 $as_echo_n "(cached) " >&6
5fb28bcc 10633else
60cfca65
PB
10634 if test -n "$GCC_FOR_TARGET"; then
10635 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
5fb28bcc 10636else
b58b6ee1
DJ
10637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10638for as_dir in $PATH
10639do
10640 IFS=$as_save_IFS
10641 test -z "$as_dir" && as_dir=.
efd58f08 10642 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 10643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 10644 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
efd58f08 10645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10646 break 2
10647 fi
10648done
efd58f08
RW
10649 done
10650IFS=$as_save_IFS
b58b6ee1 10651
5fb28bcc
PB
10652fi
10653fi
b58b6ee1 10654GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
60cfca65 10655if test -n "$GCC_FOR_TARGET"; then
efd58f08
RW
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10657$as_echo "$GCC_FOR_TARGET" >&6; }
5fb28bcc 10658else
efd58f08
RW
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10660$as_echo "no" >&6; }
5fb28bcc 10661fi
b58b6ee1 10662
efd58f08 10663
fef3f213
PB
10664 fi
10665 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10666 done
10667fi
b58b6ee1 10668
60cfca65
PB
10669if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10670 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d058b81b
MS
10671else
10672 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
5fb28bcc
PB
10673fi
10674
82026593
AO
10675
10676
10677if test -n "$GCJ_FOR_TARGET"; then
10678 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10679elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10680 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10681fi
10682
10683if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10684 for ncn_progname in gcj; do
10685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10686set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
10687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10688$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 10689if ${ac_cv_prog_GCJ_FOR_TARGET+:} false; then :
efd58f08 10690 $as_echo_n "(cached) " >&6
82026593
AO
10691else
10692 if test -n "$GCJ_FOR_TARGET"; then
10693 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10694else
10695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10696for as_dir in $PATH
10697do
10698 IFS=$as_save_IFS
10699 test -z "$as_dir" && as_dir=.
efd58f08 10700 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 10701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 10702 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
efd58f08 10703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
10704 break 2
10705 fi
10706done
efd58f08
RW
10707 done
10708IFS=$as_save_IFS
82026593
AO
10709
10710fi
10711fi
10712GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10713if test -n "$GCJ_FOR_TARGET"; then
efd58f08
RW
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10715$as_echo "$GCJ_FOR_TARGET" >&6; }
82026593 10716else
efd58f08
RW
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10718$as_echo "no" >&6; }
82026593
AO
10719fi
10720
efd58f08 10721
82026593
AO
10722 done
10723fi
10724
10725if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 10726 for ncn_progname in gcj; do
efd58f08
RW
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10728$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
10729 if test -x $with_build_time_tools/${ncn_progname}; then
10730 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10732$as_echo "yes" >&6; }
fef3f213
PB
10733 break
10734 else
efd58f08
RW
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10736$as_echo "no" >&6; }
fef3f213
PB
10737 fi
10738 done
10739fi
10740
10741if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10742 for ncn_progname in gcj; do
10743 if test -n "$ncn_target_tool_prefix"; then
10744 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 10745set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
10746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10747$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 10748if ${ac_cv_prog_GCJ_FOR_TARGET+:} false; then :
efd58f08 10749 $as_echo_n "(cached) " >&6
5fb28bcc
PB
10750else
10751 if test -n "$GCJ_FOR_TARGET"; then
10752 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10753else
b58b6ee1
DJ
10754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755for as_dir in $PATH
10756do
10757 IFS=$as_save_IFS
10758 test -z "$as_dir" && as_dir=.
efd58f08 10759 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 10760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 10761 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 10762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10763 break 2
10764 fi
10765done
efd58f08
RW
10766 done
10767IFS=$as_save_IFS
b58b6ee1 10768
5fb28bcc
PB
10769fi
10770fi
82026593
AO
10771GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10772if test -n "$GCJ_FOR_TARGET"; then
efd58f08
RW
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10774$as_echo "$GCJ_FOR_TARGET" >&6; }
82026593 10775else
efd58f08
RW
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777$as_echo "no" >&6; }
82026593
AO
10778fi
10779
efd58f08 10780
82026593
AO
10781 fi
10782 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10783 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10784set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
10785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10786$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 10787if ${ac_cv_prog_GCJ_FOR_TARGET+:} false; then :
efd58f08 10788 $as_echo_n "(cached) " >&6
82026593
AO
10789else
10790 if test -n "$GCJ_FOR_TARGET"; then
10791 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10792else
10793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10794for as_dir in $PATH
10795do
10796 IFS=$as_save_IFS
10797 test -z "$as_dir" && as_dir=.
efd58f08 10798 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 10799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 10800 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
efd58f08 10801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
10802 break 2
10803 fi
10804done
efd58f08
RW
10805 done
10806IFS=$as_save_IFS
82026593
AO
10807
10808fi
10809fi
10810GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10811if test -n "$GCJ_FOR_TARGET"; then
efd58f08
RW
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10813$as_echo "$GCJ_FOR_TARGET" >&6; }
82026593 10814else
efd58f08
RW
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10816$as_echo "no" >&6; }
82026593
AO
10817fi
10818
efd58f08 10819
82026593
AO
10820 fi
10821 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10822 done
10823fi
10824
10825if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10826 set dummy gcj
10827 if test $build = $target ; then
10828 GCJ_FOR_TARGET="$2"
10829 else
10830 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10831 fi
d058b81b
MS
10832else
10833 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
82026593
AO
10834fi
10835
10836
10837
10838if test -n "$GFORTRAN_FOR_TARGET"; then
10839 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10840elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10841 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
5fb28bcc
PB
10842fi
10843
82026593
AO
10844if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10845 for ncn_progname in gfortran; do
10846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 10847set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
10848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10849$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 10850if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
efd58f08 10851 $as_echo_n "(cached) " >&6
5fb28bcc 10852else
82026593
AO
10853 if test -n "$GFORTRAN_FOR_TARGET"; then
10854 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5fb28bcc 10855else
b58b6ee1
DJ
10856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10857for as_dir in $PATH
10858do
10859 IFS=$as_save_IFS
10860 test -z "$as_dir" && as_dir=.
efd58f08 10861 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 10862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 10863 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
efd58f08 10864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10865 break 2
10866 fi
10867done
efd58f08
RW
10868 done
10869IFS=$as_save_IFS
b58b6ee1 10870
5fb28bcc
PB
10871fi
10872fi
82026593
AO
10873GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10874if test -n "$GFORTRAN_FOR_TARGET"; then
efd58f08
RW
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10876$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
5fb28bcc 10877else
efd58f08
RW
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879$as_echo "no" >&6; }
5fb28bcc 10880fi
b58b6ee1 10881
efd58f08 10882
fef3f213
PB
10883 done
10884fi
b58b6ee1 10885
82026593 10886if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 10887 for ncn_progname in gfortran; do
efd58f08
RW
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10889$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
10890 if test -x $with_build_time_tools/${ncn_progname}; then
10891 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10893$as_echo "yes" >&6; }
fef3f213
PB
10894 break
10895 else
efd58f08
RW
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10897$as_echo "no" >&6; }
fef3f213
PB
10898 fi
10899 done
10900fi
10901
10902if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10903 for ncn_progname in gfortran; do
10904 if test -n "$ncn_target_tool_prefix"; then
10905 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 10906set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
10907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10908$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 10909if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
efd58f08 10910 $as_echo_n "(cached) " >&6
5fb28bcc
PB
10911else
10912 if test -n "$GFORTRAN_FOR_TARGET"; then
10913 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10914else
b58b6ee1
DJ
10915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10916for as_dir in $PATH
10917do
10918 IFS=$as_save_IFS
10919 test -z "$as_dir" && as_dir=.
efd58f08 10920 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 10921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 10922 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 10923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10924 break 2
10925 fi
10926done
efd58f08
RW
10927 done
10928IFS=$as_save_IFS
b58b6ee1 10929
5fb28bcc
PB
10930fi
10931fi
b58b6ee1 10932GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
5fb28bcc 10933if test -n "$GFORTRAN_FOR_TARGET"; then
efd58f08
RW
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10935$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
5fb28bcc 10936else
efd58f08
RW
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10938$as_echo "no" >&6; }
5fb28bcc
PB
10939fi
10940
efd58f08 10941
fef3f213
PB
10942 fi
10943 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10944 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 10945set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
10946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10947$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 10948if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
efd58f08 10949 $as_echo_n "(cached) " >&6
5fb28bcc 10950else
60cfca65 10951 if test -n "$GFORTRAN_FOR_TARGET"; then
b58b6ee1
DJ
10952 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10953else
10954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955for as_dir in $PATH
10956do
10957 IFS=$as_save_IFS
10958 test -z "$as_dir" && as_dir=.
efd58f08 10959 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 10960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 10961 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
efd58f08 10962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10963 break 2
10964 fi
10965done
efd58f08
RW
10966 done
10967IFS=$as_save_IFS
b58b6ee1 10968
5fb28bcc
PB
10969fi
10970fi
b58b6ee1 10971GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
60cfca65 10972if test -n "$GFORTRAN_FOR_TARGET"; then
efd58f08
RW
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10974$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
5fb28bcc 10975else
efd58f08
RW
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10977$as_echo "no" >&6; }
5fb28bcc 10978fi
b58b6ee1 10979
efd58f08 10980
fef3f213
PB
10981 fi
10982 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10983 done
10984fi
b58b6ee1 10985
60cfca65
PB
10986if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10987 set dummy gfortran
10988 if test $build = $target ; then
10989 GFORTRAN_FOR_TARGET="$2"
5fb28bcc 10990 else
60cfca65 10991 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5fb28bcc 10992 fi
d058b81b
MS
10993else
10994 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
a0c92996
AC
10995fi
10996
fef3f213
PB
10997
10998
d5b7129a
ILT
10999if test -n "$GOC_FOR_TARGET"; then
11000 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
11001elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11002 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11003fi
11004
11005if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11006 for ncn_progname in gccgo; do
11007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11008set dummy ${ncn_progname}; ac_word=$2
11009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11010$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 11011if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
d5b7129a
ILT
11012 $as_echo_n "(cached) " >&6
11013else
11014 if test -n "$GOC_FOR_TARGET"; then
11015 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11016else
11017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11018for as_dir in $PATH
11019do
11020 IFS=$as_save_IFS
11021 test -z "$as_dir" && as_dir=.
11022 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 11023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5b7129a
ILT
11024 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11026 break 2
11027 fi
11028done
11029 done
11030IFS=$as_save_IFS
11031
11032fi
11033fi
11034GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11035if test -n "$GOC_FOR_TARGET"; then
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11037$as_echo "$GOC_FOR_TARGET" >&6; }
11038else
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11040$as_echo "no" >&6; }
11041fi
11042
11043
11044 done
11045fi
11046
11047if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11048 for ncn_progname in gccgo; do
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11050$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11051 if test -x $with_build_time_tools/${ncn_progname}; then
11052 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11054$as_echo "yes" >&6; }
11055 break
11056 else
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11058$as_echo "no" >&6; }
11059 fi
11060 done
11061fi
11062
11063if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
11064 for ncn_progname in gccgo; do
11065 if test -n "$ncn_target_tool_prefix"; then
11066 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11067set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11069$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 11070if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
d5b7129a
ILT
11071 $as_echo_n "(cached) " >&6
11072else
11073 if test -n "$GOC_FOR_TARGET"; then
11074 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11075else
11076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077for as_dir in $PATH
11078do
11079 IFS=$as_save_IFS
11080 test -z "$as_dir" && as_dir=.
11081 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 11082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5b7129a
ILT
11083 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11085 break 2
11086 fi
11087done
11088 done
11089IFS=$as_save_IFS
11090
11091fi
11092fi
11093GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11094if test -n "$GOC_FOR_TARGET"; then
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11096$as_echo "$GOC_FOR_TARGET" >&6; }
11097else
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11099$as_echo "no" >&6; }
11100fi
11101
11102
11103 fi
11104 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11106set dummy ${ncn_progname}; ac_word=$2
11107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 11109if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
d5b7129a
ILT
11110 $as_echo_n "(cached) " >&6
11111else
11112 if test -n "$GOC_FOR_TARGET"; then
11113 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11114else
11115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116for as_dir in $PATH
11117do
11118 IFS=$as_save_IFS
11119 test -z "$as_dir" && as_dir=.
11120 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 11121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5b7129a
ILT
11122 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11124 break 2
11125 fi
11126done
11127 done
11128IFS=$as_save_IFS
11129
11130fi
11131fi
11132GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11133if test -n "$GOC_FOR_TARGET"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11135$as_echo "$GOC_FOR_TARGET" >&6; }
11136else
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138$as_echo "no" >&6; }
11139fi
11140
11141
11142 fi
11143 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11144 done
11145fi
11146
11147if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11148 set dummy gccgo
11149 if test $build = $target ; then
11150 GOC_FOR_TARGET="$2"
11151 else
11152 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11153 fi
11154else
11155 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11156fi
11157
11158
11159
fef3f213
PB
11160cat > conftest.c << \EOF
11161#ifdef __GNUC__
11162 gcc_yay;
11163#endif
11164EOF
11165if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11166 have_gcc_for_target=yes
a0c92996 11167else
fef3f213
PB
11168 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11169 have_gcc_for_target=no
a0c92996 11170fi
fef3f213
PB
11171rm conftest.c
11172
11173
11174
a0c92996 11175
fef3f213
PB
11176if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11177 if test -n "$with_build_time_tools"; then
efd58f08
RW
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11179$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
207258c8
PB
11180 if test -x $with_build_time_tools/ar; then
11181 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11182 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
efd58f08
RW
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11184$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
207258c8 11185 else
efd58f08
RW
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187$as_echo "no" >&6; }
207258c8 11188 fi
fef3f213
PB
11189 elif test $build != $host && test $have_gcc_for_target = yes; then
11190 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d058b81b
MS
11191 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11192 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
60cfca65 11193 fi
fef3f213 11194fi
b58b6ee1 11195if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
11196 # Extract the first word of "ar", so it can be a program name with args.
11197set dummy ar; ac_word=$2
efd58f08
RW
11198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11199$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 11200if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
efd58f08 11201 $as_echo_n "(cached) " >&6
a0c92996 11202else
b58b6ee1
DJ
11203 case $AR_FOR_TARGET in
11204 [\\/]* | ?:[\\/]*)
fef3f213
PB
11205 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11206 ;;
fef3f213 11207 *)
b58b6ee1
DJ
11208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11209for as_dir in $gcc_cv_tool_dirs
11210do
11211 IFS=$as_save_IFS
11212 test -z "$as_dir" && as_dir=.
efd58f08 11213 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 11214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 11215 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
efd58f08 11216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11217 break 2
11218 fi
11219done
efd58f08
RW
11220 done
11221IFS=$as_save_IFS
b58b6ee1 11222
fef3f213
PB
11223 ;;
11224esac
a0c92996 11225fi
b58b6ee1 11226AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
fef3f213 11227if test -n "$AR_FOR_TARGET"; then
efd58f08
RW
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11229$as_echo "$AR_FOR_TARGET" >&6; }
a0c92996 11230else
efd58f08
RW
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232$as_echo "no" >&6; }
a0c92996 11233fi
60cfca65 11234
efd58f08 11235
fef3f213
PB
11236fi
11237if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
82026593
AO
11238
11239
11240if test -n "$AR_FOR_TARGET"; then
11241 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11242elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11243 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11244fi
11245
11246if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11247 for ncn_progname in ar; do
11248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11249set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
11250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11251$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 11252if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
efd58f08 11253 $as_echo_n "(cached) " >&6
82026593
AO
11254else
11255 if test -n "$AR_FOR_TARGET"; then
11256 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11257else
11258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11259for as_dir in $PATH
11260do
11261 IFS=$as_save_IFS
11262 test -z "$as_dir" && as_dir=.
efd58f08 11263 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 11264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 11265 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
efd58f08 11266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
11267 break 2
11268 fi
11269done
efd58f08
RW
11270 done
11271IFS=$as_save_IFS
82026593
AO
11272
11273fi
11274fi
11275AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11276if test -n "$AR_FOR_TARGET"; then
efd58f08
RW
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11278$as_echo "$AR_FOR_TARGET" >&6; }
82026593 11279else
efd58f08
RW
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11281$as_echo "no" >&6; }
82026593
AO
11282fi
11283
efd58f08 11284
82026593
AO
11285 done
11286fi
11287
11288if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 11289 for ncn_progname in ar; do
efd58f08
RW
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11291$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
11292 if test -x $with_build_time_tools/${ncn_progname}; then
11293 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11295$as_echo "yes" >&6; }
fef3f213
PB
11296 break
11297 else
efd58f08
RW
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11299$as_echo "no" >&6; }
fef3f213
PB
11300 fi
11301 done
a0c92996
AC
11302fi
11303
fef3f213
PB
11304if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11305 for ncn_progname in ar; do
11306 if test -n "$ncn_target_tool_prefix"; then
11307 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 11308set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
11309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11310$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 11311if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
efd58f08 11312 $as_echo_n "(cached) " >&6
6a33f745 11313else
fef3f213
PB
11314 if test -n "$AR_FOR_TARGET"; then
11315 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
6a33f745 11316else
b58b6ee1
DJ
11317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11318for as_dir in $PATH
11319do
11320 IFS=$as_save_IFS
11321 test -z "$as_dir" && as_dir=.
efd58f08 11322 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 11323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 11324 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 11325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11326 break 2
11327 fi
11328done
efd58f08
RW
11329 done
11330IFS=$as_save_IFS
b58b6ee1 11331
6a33f745
GK
11332fi
11333fi
b58b6ee1 11334AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
fef3f213 11335if test -n "$AR_FOR_TARGET"; then
efd58f08
RW
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11337$as_echo "$AR_FOR_TARGET" >&6; }
6a33f745 11338else
efd58f08
RW
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11340$as_echo "no" >&6; }
6a33f745
GK
11341fi
11342
efd58f08 11343
fef3f213
PB
11344 fi
11345 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6a33f745 11347set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
11348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11349$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 11350if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
efd58f08 11351 $as_echo_n "(cached) " >&6
6a33f745 11352else
fef3f213
PB
11353 if test -n "$AR_FOR_TARGET"; then
11354 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
f69e2532 11355else
b58b6ee1
DJ
11356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357for as_dir in $PATH
11358do
11359 IFS=$as_save_IFS
11360 test -z "$as_dir" && as_dir=.
efd58f08 11361 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 11362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 11363 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
efd58f08 11364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11365 break 2
11366 fi
11367done
efd58f08
RW
11368 done
11369IFS=$as_save_IFS
b58b6ee1 11370
6a33f745
GK
11371fi
11372fi
b58b6ee1 11373AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
fef3f213 11374if test -n "$AR_FOR_TARGET"; then
efd58f08
RW
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11376$as_echo "$AR_FOR_TARGET" >&6; }
6a33f745 11377else
efd58f08
RW
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379$as_echo "no" >&6; }
6a33f745 11380fi
b58b6ee1 11381
efd58f08 11382
fef3f213
PB
11383 fi
11384 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11385 done
11386fi
b58b6ee1 11387
fef3f213
PB
11388if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11389 set dummy ar
6a33f745 11390 if test $build = $target ; then
fef3f213 11391 AR_FOR_TARGET="$2"
6a33f745 11392 else
fef3f213 11393 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
6a33f745 11394 fi
d058b81b
MS
11395else
11396 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
6a33f745
GK
11397fi
11398
207258c8
PB
11399else
11400 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
fef3f213
PB
11401fi
11402
11403
11404
11405
11406if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11407 if test -n "$with_build_time_tools"; then
efd58f08
RW
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11409$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
207258c8
PB
11410 if test -x $with_build_time_tools/as; then
11411 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11412 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
efd58f08
RW
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11414$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
207258c8 11415 else
efd58f08
RW
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417$as_echo "no" >&6; }
207258c8 11418 fi
fef3f213
PB
11419 elif test $build != $host && test $have_gcc_for_target = yes; then
11420 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d058b81b
MS
11421 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11422 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
fef3f213
PB
11423 fi
11424fi
b58b6ee1 11425if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
11426 # Extract the first word of "as", so it can be a program name with args.
11427set dummy as; ac_word=$2
efd58f08
RW
11428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11429$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 11430if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
efd58f08 11431 $as_echo_n "(cached) " >&6
fef3f213 11432else
b58b6ee1
DJ
11433 case $AS_FOR_TARGET in
11434 [\\/]* | ?:[\\/]*)
fef3f213
PB
11435 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11436 ;;
fef3f213 11437 *)
b58b6ee1
DJ
11438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11439for as_dir in $gcc_cv_tool_dirs
11440do
11441 IFS=$as_save_IFS
11442 test -z "$as_dir" && as_dir=.
efd58f08 11443 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 11444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 11445 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
efd58f08 11446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11447 break 2
11448 fi
11449done
efd58f08
RW
11450 done
11451IFS=$as_save_IFS
b58b6ee1 11452
fef3f213
PB
11453 ;;
11454esac
11455fi
b58b6ee1 11456AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
fef3f213 11457if test -n "$AS_FOR_TARGET"; then
efd58f08
RW
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11459$as_echo "$AS_FOR_TARGET" >&6; }
fef3f213 11460else
efd58f08
RW
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462$as_echo "no" >&6; }
fef3f213
PB
11463fi
11464
efd58f08 11465
fef3f213
PB
11466fi
11467if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
82026593
AO
11468
11469
11470if test -n "$AS_FOR_TARGET"; then
11471 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11472elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11473 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11474fi
11475
11476if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11477 for ncn_progname in as; do
11478 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11479set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
11480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11481$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 11482if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
efd58f08 11483 $as_echo_n "(cached) " >&6
82026593
AO
11484else
11485 if test -n "$AS_FOR_TARGET"; then
11486 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11487else
11488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11489for as_dir in $PATH
11490do
11491 IFS=$as_save_IFS
11492 test -z "$as_dir" && as_dir=.
efd58f08 11493 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 11494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 11495 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
efd58f08 11496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
11497 break 2
11498 fi
11499done
efd58f08
RW
11500 done
11501IFS=$as_save_IFS
82026593
AO
11502
11503fi
11504fi
11505AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11506if test -n "$AS_FOR_TARGET"; then
efd58f08
RW
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11508$as_echo "$AS_FOR_TARGET" >&6; }
82026593 11509else
efd58f08
RW
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11511$as_echo "no" >&6; }
82026593
AO
11512fi
11513
efd58f08 11514
82026593
AO
11515 done
11516fi
11517
11518if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 11519 for ncn_progname in as; do
efd58f08
RW
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11521$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
11522 if test -x $with_build_time_tools/${ncn_progname}; then
11523 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11525$as_echo "yes" >&6; }
fef3f213
PB
11526 break
11527 else
efd58f08
RW
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529$as_echo "no" >&6; }
fef3f213
PB
11530 fi
11531 done
11532fi
11533
11534if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11535 for ncn_progname in as; do
11536 if test -n "$ncn_target_tool_prefix"; then
11537 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11538set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
11539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11540$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 11541if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
efd58f08 11542 $as_echo_n "(cached) " >&6
fef3f213
PB
11543else
11544 if test -n "$AS_FOR_TARGET"; then
11545 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11546else
b58b6ee1
DJ
11547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11548for as_dir in $PATH
11549do
11550 IFS=$as_save_IFS
11551 test -z "$as_dir" && as_dir=.
efd58f08 11552 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 11553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 11554 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 11555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11556 break 2
11557 fi
11558done
efd58f08
RW
11559 done
11560IFS=$as_save_IFS
b58b6ee1 11561
fef3f213
PB
11562fi
11563fi
b58b6ee1 11564AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
fef3f213 11565if test -n "$AS_FOR_TARGET"; then
efd58f08
RW
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11567$as_echo "$AS_FOR_TARGET" >&6; }
fef3f213 11568else
efd58f08
RW
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11570$as_echo "no" >&6; }
fef3f213
PB
11571fi
11572
efd58f08 11573
fef3f213
PB
11574 fi
11575 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11577set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
11578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11579$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 11580if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
efd58f08 11581 $as_echo_n "(cached) " >&6
fef3f213
PB
11582else
11583 if test -n "$AS_FOR_TARGET"; then
11584 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11585else
b58b6ee1
DJ
11586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11587for as_dir in $PATH
11588do
11589 IFS=$as_save_IFS
11590 test -z "$as_dir" && as_dir=.
efd58f08 11591 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 11592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 11593 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
efd58f08 11594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11595 break 2
11596 fi
11597done
efd58f08
RW
11598 done
11599IFS=$as_save_IFS
b58b6ee1 11600
fef3f213
PB
11601fi
11602fi
b58b6ee1 11603AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
fef3f213 11604if test -n "$AS_FOR_TARGET"; then
efd58f08
RW
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11606$as_echo "$AS_FOR_TARGET" >&6; }
fef3f213 11607else
efd58f08
RW
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609$as_echo "no" >&6; }
fef3f213 11610fi
b58b6ee1 11611
efd58f08 11612
fef3f213
PB
11613 fi
11614 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11615 done
11616fi
b58b6ee1 11617
fef3f213
PB
11618if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11619 set dummy as
11620 if test $build = $target ; then
11621 AS_FOR_TARGET="$2"
11622 else
11623 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11624 fi
d058b81b
MS
11625else
11626 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
fef3f213
PB
11627fi
11628
207258c8
PB
11629else
11630 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
fef3f213
PB
11631fi
11632
11633
11634
11635
11636if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11637 if test -n "$with_build_time_tools"; then
efd58f08
RW
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11639$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
207258c8
PB
11640 if test -x $with_build_time_tools/dlltool; then
11641 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11642 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
efd58f08
RW
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11644$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
207258c8 11645 else
efd58f08
RW
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11647$as_echo "no" >&6; }
207258c8 11648 fi
fef3f213
PB
11649 elif test $build != $host && test $have_gcc_for_target = yes; then
11650 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d058b81b
MS
11651 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11652 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
fef3f213
PB
11653 fi
11654fi
b58b6ee1 11655if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
11656 # Extract the first word of "dlltool", so it can be a program name with args.
11657set dummy dlltool; ac_word=$2
efd58f08
RW
11658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11659$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 11660if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
efd58f08 11661 $as_echo_n "(cached) " >&6
fef3f213 11662else
b58b6ee1
DJ
11663 case $DLLTOOL_FOR_TARGET in
11664 [\\/]* | ?:[\\/]*)
fef3f213
PB
11665 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11666 ;;
fef3f213 11667 *)
b58b6ee1
DJ
11668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11669for as_dir in $gcc_cv_tool_dirs
11670do
11671 IFS=$as_save_IFS
11672 test -z "$as_dir" && as_dir=.
efd58f08 11673 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 11674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 11675 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
efd58f08 11676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11677 break 2
11678 fi
11679done
efd58f08
RW
11680 done
11681IFS=$as_save_IFS
b58b6ee1 11682
fef3f213
PB
11683 ;;
11684esac
11685fi
b58b6ee1 11686DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
fef3f213 11687if test -n "$DLLTOOL_FOR_TARGET"; then
efd58f08
RW
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11689$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
fef3f213 11690else
efd58f08
RW
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11692$as_echo "no" >&6; }
fef3f213
PB
11693fi
11694
efd58f08 11695
fef3f213
PB
11696fi
11697if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
82026593
AO
11698
11699
11700if test -n "$DLLTOOL_FOR_TARGET"; then
11701 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11702elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11703 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11704fi
11705
11706if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11707 for ncn_progname in dlltool; do
11708 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11709set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
11710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11711$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 11712if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
efd58f08 11713 $as_echo_n "(cached) " >&6
82026593
AO
11714else
11715 if test -n "$DLLTOOL_FOR_TARGET"; then
11716 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11717else
11718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11719for as_dir in $PATH
11720do
11721 IFS=$as_save_IFS
11722 test -z "$as_dir" && as_dir=.
efd58f08 11723 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 11724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 11725 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
efd58f08 11726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
11727 break 2
11728 fi
11729done
efd58f08
RW
11730 done
11731IFS=$as_save_IFS
82026593
AO
11732
11733fi
11734fi
11735DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11736if test -n "$DLLTOOL_FOR_TARGET"; then
efd58f08
RW
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11738$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
82026593 11739else
efd58f08
RW
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741$as_echo "no" >&6; }
82026593
AO
11742fi
11743
efd58f08 11744
82026593
AO
11745 done
11746fi
11747
11748if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 11749 for ncn_progname in dlltool; do
efd58f08
RW
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11751$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
11752 if test -x $with_build_time_tools/${ncn_progname}; then
11753 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11755$as_echo "yes" >&6; }
fef3f213
PB
11756 break
11757 else
efd58f08
RW
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759$as_echo "no" >&6; }
fef3f213
PB
11760 fi
11761 done
11762fi
11763
11764if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11765 for ncn_progname in dlltool; do
11766 if test -n "$ncn_target_tool_prefix"; then
11767 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11768set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
11769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11770$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 11771if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
efd58f08 11772 $as_echo_n "(cached) " >&6
fef3f213
PB
11773else
11774 if test -n "$DLLTOOL_FOR_TARGET"; then
11775 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11776else
b58b6ee1
DJ
11777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778for as_dir in $PATH
11779do
11780 IFS=$as_save_IFS
11781 test -z "$as_dir" && as_dir=.
efd58f08 11782 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 11783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 11784 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 11785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11786 break 2
11787 fi
11788done
efd58f08
RW
11789 done
11790IFS=$as_save_IFS
b58b6ee1 11791
fef3f213
PB
11792fi
11793fi
b58b6ee1 11794DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
fef3f213 11795if test -n "$DLLTOOL_FOR_TARGET"; then
efd58f08
RW
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11797$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
fef3f213 11798else
efd58f08
RW
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800$as_echo "no" >&6; }
fef3f213
PB
11801fi
11802
efd58f08 11803
fef3f213
PB
11804 fi
11805 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11807set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
11808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11809$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 11810if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
efd58f08 11811 $as_echo_n "(cached) " >&6
fef3f213
PB
11812else
11813 if test -n "$DLLTOOL_FOR_TARGET"; then
11814 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11815else
b58b6ee1
DJ
11816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817for as_dir in $PATH
11818do
11819 IFS=$as_save_IFS
11820 test -z "$as_dir" && as_dir=.
efd58f08 11821 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 11822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 11823 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
efd58f08 11824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11825 break 2
11826 fi
11827done
efd58f08
RW
11828 done
11829IFS=$as_save_IFS
b58b6ee1 11830
fef3f213
PB
11831fi
11832fi
b58b6ee1 11833DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
fef3f213 11834if test -n "$DLLTOOL_FOR_TARGET"; then
efd58f08
RW
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11836$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
fef3f213 11837else
efd58f08
RW
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839$as_echo "no" >&6; }
fef3f213 11840fi
b58b6ee1 11841
efd58f08 11842
fef3f213
PB
11843 fi
11844 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11845 done
11846fi
b58b6ee1 11847
fef3f213
PB
11848if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11849 set dummy dlltool
11850 if test $build = $target ; then
11851 DLLTOOL_FOR_TARGET="$2"
11852 else
11853 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11854 fi
d058b81b
MS
11855else
11856 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
fef3f213
PB
11857fi
11858
207258c8
PB
11859else
11860 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
fef3f213
PB
11861fi
11862
11863
11864
11865
11866if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11867 if test -n "$with_build_time_tools"; then
efd58f08
RW
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11869$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
207258c8
PB
11870 if test -x $with_build_time_tools/ld; then
11871 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11872 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
efd58f08
RW
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11874$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
207258c8 11875 else
efd58f08
RW
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11877$as_echo "no" >&6; }
207258c8 11878 fi
fef3f213
PB
11879 elif test $build != $host && test $have_gcc_for_target = yes; then
11880 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d058b81b
MS
11881 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11882 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
fef3f213
PB
11883 fi
11884fi
b58b6ee1 11885if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
11886 # Extract the first word of "ld", so it can be a program name with args.
11887set dummy ld; ac_word=$2
efd58f08
RW
11888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11889$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 11890if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
efd58f08 11891 $as_echo_n "(cached) " >&6
fef3f213 11892else
b58b6ee1
DJ
11893 case $LD_FOR_TARGET in
11894 [\\/]* | ?:[\\/]*)
fef3f213
PB
11895 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11896 ;;
fef3f213 11897 *)
b58b6ee1
DJ
11898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11899for as_dir in $gcc_cv_tool_dirs
11900do
11901 IFS=$as_save_IFS
11902 test -z "$as_dir" && as_dir=.
efd58f08 11903 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 11904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 11905 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
efd58f08 11906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11907 break 2
11908 fi
11909done
efd58f08
RW
11910 done
11911IFS=$as_save_IFS
b58b6ee1 11912
fef3f213
PB
11913 ;;
11914esac
11915fi
b58b6ee1 11916LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
fef3f213 11917if test -n "$LD_FOR_TARGET"; then
efd58f08
RW
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11919$as_echo "$LD_FOR_TARGET" >&6; }
fef3f213 11920else
efd58f08
RW
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922$as_echo "no" >&6; }
fef3f213
PB
11923fi
11924
efd58f08 11925
fef3f213
PB
11926fi
11927if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
82026593
AO
11928
11929
11930if test -n "$LD_FOR_TARGET"; then
11931 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11932elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11933 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11934fi
11935
11936if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11937 for ncn_progname in ld; do
11938 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11939set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
11940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11941$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 11942if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
efd58f08 11943 $as_echo_n "(cached) " >&6
82026593
AO
11944else
11945 if test -n "$LD_FOR_TARGET"; then
11946 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11947else
11948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11949for as_dir in $PATH
11950do
11951 IFS=$as_save_IFS
11952 test -z "$as_dir" && as_dir=.
efd58f08 11953 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 11954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 11955 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
efd58f08 11956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
11957 break 2
11958 fi
11959done
efd58f08
RW
11960 done
11961IFS=$as_save_IFS
82026593
AO
11962
11963fi
11964fi
11965LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11966if test -n "$LD_FOR_TARGET"; then
efd58f08
RW
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11968$as_echo "$LD_FOR_TARGET" >&6; }
82026593 11969else
efd58f08
RW
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971$as_echo "no" >&6; }
82026593
AO
11972fi
11973
efd58f08 11974
82026593
AO
11975 done
11976fi
11977
11978if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 11979 for ncn_progname in ld; do
efd58f08
RW
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11981$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
11982 if test -x $with_build_time_tools/${ncn_progname}; then
11983 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11985$as_echo "yes" >&6; }
fef3f213
PB
11986 break
11987 else
efd58f08
RW
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11989$as_echo "no" >&6; }
fef3f213
PB
11990 fi
11991 done
11992fi
11993
11994if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11995 for ncn_progname in ld; do
11996 if test -n "$ncn_target_tool_prefix"; then
11997 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11998set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
11999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12000$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 12001if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
efd58f08 12002 $as_echo_n "(cached) " >&6
fef3f213
PB
12003else
12004 if test -n "$LD_FOR_TARGET"; then
12005 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12006else
b58b6ee1
DJ
12007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12008for as_dir in $PATH
12009do
12010 IFS=$as_save_IFS
12011 test -z "$as_dir" && as_dir=.
efd58f08 12012 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 12013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 12014 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 12015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12016 break 2
12017 fi
12018done
efd58f08
RW
12019 done
12020IFS=$as_save_IFS
b58b6ee1 12021
fef3f213
PB
12022fi
12023fi
b58b6ee1 12024LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
fef3f213 12025if test -n "$LD_FOR_TARGET"; then
efd58f08
RW
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12027$as_echo "$LD_FOR_TARGET" >&6; }
fef3f213 12028else
efd58f08
RW
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030$as_echo "no" >&6; }
fef3f213
PB
12031fi
12032
efd58f08 12033
fef3f213
PB
12034 fi
12035 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12037set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
12038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12039$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 12040if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
efd58f08 12041 $as_echo_n "(cached) " >&6
fef3f213
PB
12042else
12043 if test -n "$LD_FOR_TARGET"; then
12044 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12045else
b58b6ee1
DJ
12046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12047for as_dir in $PATH
12048do
12049 IFS=$as_save_IFS
12050 test -z "$as_dir" && as_dir=.
efd58f08 12051 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 12052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 12053 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
efd58f08 12054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12055 break 2
12056 fi
12057done
efd58f08
RW
12058 done
12059IFS=$as_save_IFS
b58b6ee1 12060
fef3f213
PB
12061fi
12062fi
b58b6ee1 12063LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
fef3f213 12064if test -n "$LD_FOR_TARGET"; then
efd58f08
RW
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12066$as_echo "$LD_FOR_TARGET" >&6; }
fef3f213 12067else
efd58f08
RW
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12069$as_echo "no" >&6; }
fef3f213 12070fi
b58b6ee1 12071
efd58f08 12072
fef3f213
PB
12073 fi
12074 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12075 done
12076fi
b58b6ee1 12077
fef3f213
PB
12078if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12079 set dummy ld
12080 if test $build = $target ; then
12081 LD_FOR_TARGET="$2"
12082 else
12083 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12084 fi
d058b81b
MS
12085else
12086 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
fef3f213
PB
12087fi
12088
207258c8
PB
12089else
12090 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
fef3f213
PB
12091fi
12092
12093
12094
12095
12096if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12097 if test -n "$with_build_time_tools"; then
efd58f08
RW
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12099$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
207258c8
PB
12100 if test -x $with_build_time_tools/lipo; then
12101 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12102 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
efd58f08
RW
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12104$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
207258c8 12105 else
efd58f08
RW
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107$as_echo "no" >&6; }
207258c8 12108 fi
fef3f213
PB
12109 elif test $build != $host && test $have_gcc_for_target = yes; then
12110 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d058b81b
MS
12111 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12112 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
fef3f213
PB
12113 fi
12114fi
82026593
AO
12115if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12116 # Extract the first word of "lipo", so it can be a program name with args.
12117set dummy lipo; ac_word=$2
efd58f08
RW
12118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12119$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 12120if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
efd58f08 12121 $as_echo_n "(cached) " >&6
82026593
AO
12122else
12123 case $LIPO_FOR_TARGET in
12124 [\\/]* | ?:[\\/]*)
12125 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12126 ;;
12127 *)
12128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12129for as_dir in $gcc_cv_tool_dirs
12130do
12131 IFS=$as_save_IFS
12132 test -z "$as_dir" && as_dir=.
efd58f08 12133 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 12134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 12135 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
efd58f08 12136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
12137 break 2
12138 fi
12139done
efd58f08
RW
12140 done
12141IFS=$as_save_IFS
82026593
AO
12142
12143 ;;
12144esac
12145fi
12146LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
82026593 12147if test -n "$LIPO_FOR_TARGET"; then
efd58f08
RW
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12149$as_echo "$LIPO_FOR_TARGET" >&6; }
82026593 12150else
efd58f08
RW
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12152$as_echo "no" >&6; }
82026593
AO
12153fi
12154
efd58f08 12155
82026593
AO
12156fi
12157if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12158
12159
12160if test -n "$LIPO_FOR_TARGET"; then
12161 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12162elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12163 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12164fi
12165
12166if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12167 for ncn_progname in lipo; do
12168 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12169set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
12170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12171$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 12172if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
efd58f08 12173 $as_echo_n "(cached) " >&6
fef3f213 12174else
82026593
AO
12175 if test -n "$LIPO_FOR_TARGET"; then
12176 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12177else
12178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179for as_dir in $PATH
b58b6ee1
DJ
12180do
12181 IFS=$as_save_IFS
12182 test -z "$as_dir" && as_dir=.
efd58f08 12183 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 12184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 12185 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
efd58f08 12186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12187 break 2
12188 fi
12189done
efd58f08
RW
12190 done
12191IFS=$as_save_IFS
b58b6ee1 12192
fef3f213 12193fi
82026593
AO
12194fi
12195LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
fef3f213 12196if test -n "$LIPO_FOR_TARGET"; then
efd58f08
RW
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12198$as_echo "$LIPO_FOR_TARGET" >&6; }
fef3f213 12199else
efd58f08
RW
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201$as_echo "no" >&6; }
fef3f213
PB
12202fi
12203
efd58f08 12204
82026593 12205 done
fef3f213 12206fi
82026593
AO
12207
12208if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 12209 for ncn_progname in lipo; do
efd58f08
RW
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12211$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
12212 if test -x $with_build_time_tools/${ncn_progname}; then
12213 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12215$as_echo "yes" >&6; }
fef3f213
PB
12216 break
12217 else
efd58f08
RW
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219$as_echo "no" >&6; }
fef3f213
PB
12220 fi
12221 done
12222fi
12223
12224if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12225 for ncn_progname in lipo; do
12226 if test -n "$ncn_target_tool_prefix"; then
12227 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12228set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
12229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12230$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 12231if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
efd58f08 12232 $as_echo_n "(cached) " >&6
fef3f213
PB
12233else
12234 if test -n "$LIPO_FOR_TARGET"; then
12235 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12236else
b58b6ee1
DJ
12237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12238for as_dir in $PATH
12239do
12240 IFS=$as_save_IFS
12241 test -z "$as_dir" && as_dir=.
efd58f08 12242 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 12243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 12244 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 12245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12246 break 2
12247 fi
12248done
efd58f08
RW
12249 done
12250IFS=$as_save_IFS
b58b6ee1 12251
fef3f213
PB
12252fi
12253fi
b58b6ee1 12254LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
fef3f213 12255if test -n "$LIPO_FOR_TARGET"; then
efd58f08
RW
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12257$as_echo "$LIPO_FOR_TARGET" >&6; }
fef3f213 12258else
efd58f08
RW
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260$as_echo "no" >&6; }
fef3f213
PB
12261fi
12262
efd58f08 12263
fef3f213
PB
12264 fi
12265 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12266 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12267set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
12268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 12270if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
efd58f08 12271 $as_echo_n "(cached) " >&6
fef3f213
PB
12272else
12273 if test -n "$LIPO_FOR_TARGET"; then
12274 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12275else
b58b6ee1
DJ
12276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12277for as_dir in $PATH
12278do
12279 IFS=$as_save_IFS
12280 test -z "$as_dir" && as_dir=.
efd58f08 12281 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 12282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 12283 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
efd58f08 12284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12285 break 2
12286 fi
12287done
efd58f08
RW
12288 done
12289IFS=$as_save_IFS
b58b6ee1 12290
fef3f213
PB
12291fi
12292fi
b58b6ee1 12293LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
fef3f213 12294if test -n "$LIPO_FOR_TARGET"; then
efd58f08
RW
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12296$as_echo "$LIPO_FOR_TARGET" >&6; }
fef3f213 12297else
efd58f08
RW
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299$as_echo "no" >&6; }
fef3f213 12300fi
b58b6ee1 12301
efd58f08 12302
fef3f213
PB
12303 fi
12304 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12305 done
12306fi
b58b6ee1 12307
fef3f213
PB
12308if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12309 set dummy lipo
12310 if test $build = $target ; then
12311 LIPO_FOR_TARGET="$2"
12312 else
12313 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12314 fi
d058b81b
MS
12315else
12316 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
fef3f213
PB
12317fi
12318
207258c8
PB
12319else
12320 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
fef3f213
PB
12321fi
12322
12323
12324
12325
12326if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12327 if test -n "$with_build_time_tools"; then
efd58f08
RW
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12329$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
207258c8
PB
12330 if test -x $with_build_time_tools/nm; then
12331 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12332 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
efd58f08
RW
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12334$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
207258c8 12335 else
efd58f08
RW
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337$as_echo "no" >&6; }
207258c8 12338 fi
fef3f213
PB
12339 elif test $build != $host && test $have_gcc_for_target = yes; then
12340 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d058b81b
MS
12341 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12342 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
fef3f213
PB
12343 fi
12344fi
b58b6ee1 12345if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
12346 # Extract the first word of "nm", so it can be a program name with args.
12347set dummy nm; ac_word=$2
efd58f08
RW
12348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12349$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 12350if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
efd58f08 12351 $as_echo_n "(cached) " >&6
fef3f213 12352else
b58b6ee1
DJ
12353 case $NM_FOR_TARGET in
12354 [\\/]* | ?:[\\/]*)
fef3f213
PB
12355 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12356 ;;
fef3f213 12357 *)
b58b6ee1
DJ
12358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359for as_dir in $gcc_cv_tool_dirs
12360do
12361 IFS=$as_save_IFS
12362 test -z "$as_dir" && as_dir=.
efd58f08 12363 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 12364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 12365 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
efd58f08 12366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12367 break 2
12368 fi
12369done
efd58f08
RW
12370 done
12371IFS=$as_save_IFS
b58b6ee1 12372
fef3f213
PB
12373 ;;
12374esac
12375fi
b58b6ee1 12376NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
fef3f213 12377if test -n "$NM_FOR_TARGET"; then
efd58f08
RW
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12379$as_echo "$NM_FOR_TARGET" >&6; }
fef3f213 12380else
efd58f08
RW
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382$as_echo "no" >&6; }
fef3f213
PB
12383fi
12384
efd58f08 12385
fef3f213
PB
12386fi
12387if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
82026593
AO
12388
12389
12390if test -n "$NM_FOR_TARGET"; then
12391 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12392elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12393 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12394fi
12395
12396if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12397 for ncn_progname in nm; do
12398 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12399set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
12400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12401$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 12402if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
efd58f08 12403 $as_echo_n "(cached) " >&6
82026593
AO
12404else
12405 if test -n "$NM_FOR_TARGET"; then
12406 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12407else
12408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12409for as_dir in $PATH
12410do
12411 IFS=$as_save_IFS
12412 test -z "$as_dir" && as_dir=.
efd58f08 12413 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 12414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 12415 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
efd58f08 12416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
12417 break 2
12418 fi
12419done
efd58f08
RW
12420 done
12421IFS=$as_save_IFS
82026593
AO
12422
12423fi
12424fi
12425NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12426if test -n "$NM_FOR_TARGET"; then
efd58f08
RW
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12428$as_echo "$NM_FOR_TARGET" >&6; }
82026593 12429else
efd58f08
RW
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12431$as_echo "no" >&6; }
82026593
AO
12432fi
12433
efd58f08 12434
82026593
AO
12435 done
12436fi
12437
12438if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 12439 for ncn_progname in nm; do
efd58f08
RW
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12441$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
12442 if test -x $with_build_time_tools/${ncn_progname}; then
12443 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12445$as_echo "yes" >&6; }
fef3f213
PB
12446 break
12447 else
efd58f08
RW
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12449$as_echo "no" >&6; }
fef3f213
PB
12450 fi
12451 done
12452fi
12453
12454if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12455 for ncn_progname in nm; do
12456 if test -n "$ncn_target_tool_prefix"; then
12457 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6a33f745 12458set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
12459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12460$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 12461if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
efd58f08 12462 $as_echo_n "(cached) " >&6
a0c92996 12463else
5fb28bcc
PB
12464 if test -n "$NM_FOR_TARGET"; then
12465 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
a0c92996 12466else
b58b6ee1
DJ
12467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12468for as_dir in $PATH
12469do
12470 IFS=$as_save_IFS
12471 test -z "$as_dir" && as_dir=.
efd58f08 12472 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 12473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 12474 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 12475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12476 break 2
12477 fi
12478done
efd58f08
RW
12479 done
12480IFS=$as_save_IFS
b58b6ee1 12481
a0c92996
AC
12482fi
12483fi
b58b6ee1 12484NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
5fb28bcc 12485if test -n "$NM_FOR_TARGET"; then
efd58f08
RW
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12487$as_echo "$NM_FOR_TARGET" >&6; }
a0c92996 12488else
efd58f08
RW
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12490$as_echo "no" >&6; }
a0c92996
AC
12491fi
12492
efd58f08 12493
fef3f213
PB
12494 fi
12495 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 12497set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
12498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12499$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 12500if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
efd58f08 12501 $as_echo_n "(cached) " >&6
a0c92996 12502else
60cfca65
PB
12503 if test -n "$NM_FOR_TARGET"; then
12504 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
a0c92996 12505else
b58b6ee1
DJ
12506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12507for as_dir in $PATH
12508do
12509 IFS=$as_save_IFS
12510 test -z "$as_dir" && as_dir=.
efd58f08 12511 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 12512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 12513 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
efd58f08 12514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12515 break 2
12516 fi
12517done
efd58f08
RW
12518 done
12519IFS=$as_save_IFS
b58b6ee1 12520
a0c92996
AC
12521fi
12522fi
b58b6ee1 12523NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
60cfca65 12524if test -n "$NM_FOR_TARGET"; then
efd58f08
RW
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12526$as_echo "$NM_FOR_TARGET" >&6; }
a0c92996 12527else
efd58f08
RW
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529$as_echo "no" >&6; }
a0c92996 12530fi
b58b6ee1 12531
efd58f08 12532
fef3f213
PB
12533 fi
12534 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12535 done
12536fi
b58b6ee1 12537
60cfca65
PB
12538if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12539 set dummy nm
12540 if test $build = $target ; then
12541 NM_FOR_TARGET="$2"
a0c92996 12542 else
60cfca65 12543 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
a0c92996 12544 fi
d058b81b
MS
12545else
12546 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
a0c92996
AC
12547fi
12548
207258c8
PB
12549else
12550 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
fef3f213
PB
12551fi
12552
12553
12554
12555
fe508576
CV
12556if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12557 if test -n "$with_build_time_tools"; then
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12559$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12560 if test -x $with_build_time_tools/objcopy; then
12561 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12562 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12564$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12565 else
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567$as_echo "no" >&6; }
12568 fi
12569 elif test $build != $host && test $have_gcc_for_target = yes; then
12570 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12571 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12572 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12573 fi
12574fi
12575if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12576 # Extract the first word of "objcopy", so it can be a program name with args.
12577set dummy objcopy; ac_word=$2
12578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12579$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 12580if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
fe508576
CV
12581 $as_echo_n "(cached) " >&6
12582else
12583 case $OBJCOPY_FOR_TARGET in
12584 [\\/]* | ?:[\\/]*)
12585 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12586 ;;
12587 *)
12588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12589for as_dir in $gcc_cv_tool_dirs
12590do
12591 IFS=$as_save_IFS
12592 test -z "$as_dir" && as_dir=.
12593 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 12594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fe508576
CV
12595 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12597 break 2
12598 fi
12599done
12600 done
12601IFS=$as_save_IFS
12602
12603 ;;
12604esac
12605fi
12606OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12607if test -n "$OBJCOPY_FOR_TARGET"; then
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12609$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12610else
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612$as_echo "no" >&6; }
12613fi
12614
12615
12616fi
12617if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12618
12619
12620if test -n "$OBJCOPY_FOR_TARGET"; then
12621 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12622elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12623 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12624fi
12625
12626if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12627 for ncn_progname in objcopy; do
12628 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12629set dummy ${ncn_progname}; ac_word=$2
12630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12631$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 12632if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
fe508576
CV
12633 $as_echo_n "(cached) " >&6
12634else
12635 if test -n "$OBJCOPY_FOR_TARGET"; then
12636 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12637else
12638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12639for as_dir in $PATH
12640do
12641 IFS=$as_save_IFS
12642 test -z "$as_dir" && as_dir=.
12643 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 12644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fe508576
CV
12645 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12647 break 2
12648 fi
12649done
12650 done
12651IFS=$as_save_IFS
12652
12653fi
12654fi
12655OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12656if test -n "$OBJCOPY_FOR_TARGET"; then
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12658$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12659else
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12661$as_echo "no" >&6; }
12662fi
12663
12664
12665 done
12666fi
12667
12668if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12669 for ncn_progname in objcopy; do
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12671$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12672 if test -x $with_build_time_tools/${ncn_progname}; then
12673 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12675$as_echo "yes" >&6; }
12676 break
12677 else
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679$as_echo "no" >&6; }
12680 fi
12681 done
12682fi
12683
12684if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12685 for ncn_progname in objcopy; do
12686 if test -n "$ncn_target_tool_prefix"; then
12687 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12688set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12690$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 12691if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
fe508576
CV
12692 $as_echo_n "(cached) " >&6
12693else
12694 if test -n "$OBJCOPY_FOR_TARGET"; then
12695 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12696else
12697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12698for as_dir in $PATH
12699do
12700 IFS=$as_save_IFS
12701 test -z "$as_dir" && as_dir=.
12702 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 12703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fe508576
CV
12704 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12706 break 2
12707 fi
12708done
12709 done
12710IFS=$as_save_IFS
12711
12712fi
12713fi
12714OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12715if test -n "$OBJCOPY_FOR_TARGET"; then
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12717$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12718else
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720$as_echo "no" >&6; }
12721fi
12722
12723
12724 fi
12725 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12726 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12727set dummy ${ncn_progname}; ac_word=$2
12728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12729$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 12730if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
fe508576
CV
12731 $as_echo_n "(cached) " >&6
12732else
12733 if test -n "$OBJCOPY_FOR_TARGET"; then
12734 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12735else
12736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12737for as_dir in $PATH
12738do
12739 IFS=$as_save_IFS
12740 test -z "$as_dir" && as_dir=.
12741 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 12742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fe508576
CV
12743 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12745 break 2
12746 fi
12747done
12748 done
12749IFS=$as_save_IFS
12750
12751fi
12752fi
12753OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12754if test -n "$OBJCOPY_FOR_TARGET"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12756$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12757else
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759$as_echo "no" >&6; }
12760fi
12761
12762
12763 fi
12764 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12765 done
12766fi
12767
12768if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12769 set dummy objcopy
12770 if test $build = $target ; then
12771 OBJCOPY_FOR_TARGET="$2"
12772 else
12773 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12774 fi
12775else
12776 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12777fi
12778
12779else
12780 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12781fi
12782
12783
12784
12785
fef3f213
PB
12786if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12787 if test -n "$with_build_time_tools"; then
efd58f08
RW
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12789$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
207258c8
PB
12790 if test -x $with_build_time_tools/objdump; then
12791 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12792 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
efd58f08
RW
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12794$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
207258c8 12795 else
efd58f08
RW
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12797$as_echo "no" >&6; }
207258c8 12798 fi
fef3f213
PB
12799 elif test $build != $host && test $have_gcc_for_target = yes; then
12800 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d058b81b
MS
12801 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12802 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
fef3f213
PB
12803 fi
12804fi
b58b6ee1 12805if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
12806 # Extract the first word of "objdump", so it can be a program name with args.
12807set dummy objdump; ac_word=$2
efd58f08
RW
12808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12809$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 12810if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
efd58f08 12811 $as_echo_n "(cached) " >&6
fef3f213 12812else
b58b6ee1
DJ
12813 case $OBJDUMP_FOR_TARGET in
12814 [\\/]* | ?:[\\/]*)
fef3f213
PB
12815 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12816 ;;
fef3f213 12817 *)
b58b6ee1
DJ
12818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12819for as_dir in $gcc_cv_tool_dirs
12820do
12821 IFS=$as_save_IFS
12822 test -z "$as_dir" && as_dir=.
efd58f08 12823 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 12824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 12825 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
efd58f08 12826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12827 break 2
12828 fi
12829done
efd58f08
RW
12830 done
12831IFS=$as_save_IFS
b58b6ee1 12832
fef3f213
PB
12833 ;;
12834esac
12835fi
b58b6ee1 12836OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
fef3f213 12837if test -n "$OBJDUMP_FOR_TARGET"; then
efd58f08
RW
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12839$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
fef3f213 12840else
efd58f08
RW
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12842$as_echo "no" >&6; }
fef3f213
PB
12843fi
12844
efd58f08 12845
fef3f213
PB
12846fi
12847if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
82026593
AO
12848
12849
12850if test -n "$OBJDUMP_FOR_TARGET"; then
12851 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12852elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12853 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12854fi
12855
12856if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12857 for ncn_progname in objdump; do
12858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12859set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
12860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12861$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 12862if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
efd58f08 12863 $as_echo_n "(cached) " >&6
82026593
AO
12864else
12865 if test -n "$OBJDUMP_FOR_TARGET"; then
12866 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12867else
12868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12869for as_dir in $PATH
12870do
12871 IFS=$as_save_IFS
12872 test -z "$as_dir" && as_dir=.
efd58f08 12873 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 12874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 12875 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
efd58f08 12876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
12877 break 2
12878 fi
12879done
efd58f08
RW
12880 done
12881IFS=$as_save_IFS
82026593
AO
12882
12883fi
12884fi
12885OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12886if test -n "$OBJDUMP_FOR_TARGET"; then
efd58f08
RW
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12888$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
82026593 12889else
efd58f08
RW
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12891$as_echo "no" >&6; }
82026593
AO
12892fi
12893
efd58f08 12894
82026593
AO
12895 done
12896fi
12897
12898if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 12899 for ncn_progname in objdump; do
efd58f08
RW
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12901$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
12902 if test -x $with_build_time_tools/${ncn_progname}; then
12903 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12905$as_echo "yes" >&6; }
fef3f213
PB
12906 break
12907 else
efd58f08
RW
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12909$as_echo "no" >&6; }
fef3f213
PB
12910 fi
12911 done
12912fi
12913
12914if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12915 for ncn_progname in objdump; do
12916 if test -n "$ncn_target_tool_prefix"; then
12917 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 12918set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
12919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12920$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 12921if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
efd58f08 12922 $as_echo_n "(cached) " >&6
51c8a213
DJ
12923else
12924 if test -n "$OBJDUMP_FOR_TARGET"; then
12925 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12926else
b58b6ee1
DJ
12927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12928for as_dir in $PATH
12929do
12930 IFS=$as_save_IFS
12931 test -z "$as_dir" && as_dir=.
efd58f08 12932 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 12933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 12934 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 12935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12936 break 2
12937 fi
12938done
efd58f08
RW
12939 done
12940IFS=$as_save_IFS
b58b6ee1 12941
51c8a213
DJ
12942fi
12943fi
b58b6ee1 12944OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
51c8a213 12945if test -n "$OBJDUMP_FOR_TARGET"; then
efd58f08
RW
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12947$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
51c8a213 12948else
efd58f08
RW
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12950$as_echo "no" >&6; }
51c8a213
DJ
12951fi
12952
efd58f08 12953
fef3f213
PB
12954 fi
12955 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
51c8a213 12957set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
12958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12959$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 12960if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
efd58f08 12961 $as_echo_n "(cached) " >&6
51c8a213
DJ
12962else
12963 if test -n "$OBJDUMP_FOR_TARGET"; then
12964 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12965else
b58b6ee1
DJ
12966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12967for as_dir in $PATH
12968do
12969 IFS=$as_save_IFS
12970 test -z "$as_dir" && as_dir=.
efd58f08 12971 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 12972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 12973 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
efd58f08 12974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12975 break 2
12976 fi
12977done
efd58f08
RW
12978 done
12979IFS=$as_save_IFS
b58b6ee1 12980
51c8a213
DJ
12981fi
12982fi
b58b6ee1 12983OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
51c8a213 12984if test -n "$OBJDUMP_FOR_TARGET"; then
efd58f08
RW
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12986$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
51c8a213 12987else
efd58f08
RW
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989$as_echo "no" >&6; }
51c8a213 12990fi
b58b6ee1 12991
efd58f08 12992
fef3f213
PB
12993 fi
12994 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12995 done
12996fi
b58b6ee1 12997
51c8a213
DJ
12998if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12999 set dummy objdump
13000 if test $build = $target ; then
13001 OBJDUMP_FOR_TARGET="$2"
13002 else
13003 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13004 fi
d058b81b
MS
13005else
13006 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
51c8a213
DJ
13007fi
13008
207258c8
PB
13009else
13010 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
fef3f213
PB
13011fi
13012
13013
13014
13015
13016if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13017 if test -n "$with_build_time_tools"; then
efd58f08
RW
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13019$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
207258c8
PB
13020 if test -x $with_build_time_tools/ranlib; then
13021 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13022 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
efd58f08
RW
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13024$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
207258c8 13025 else
efd58f08
RW
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027$as_echo "no" >&6; }
207258c8 13028 fi
fef3f213
PB
13029 elif test $build != $host && test $have_gcc_for_target = yes; then
13030 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d058b81b
MS
13031 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13032 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
fef3f213
PB
13033 fi
13034fi
b58b6ee1 13035if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
13036 # Extract the first word of "ranlib", so it can be a program name with args.
13037set dummy ranlib; ac_word=$2
efd58f08
RW
13038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13039$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 13040if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
efd58f08 13041 $as_echo_n "(cached) " >&6
fef3f213 13042else
b58b6ee1
DJ
13043 case $RANLIB_FOR_TARGET in
13044 [\\/]* | ?:[\\/]*)
fef3f213
PB
13045 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13046 ;;
fef3f213 13047 *)
b58b6ee1
DJ
13048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13049for as_dir in $gcc_cv_tool_dirs
13050do
13051 IFS=$as_save_IFS
13052 test -z "$as_dir" && as_dir=.
efd58f08 13053 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 13054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 13055 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
efd58f08 13056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
13057 break 2
13058 fi
13059done
efd58f08
RW
13060 done
13061IFS=$as_save_IFS
b58b6ee1 13062
fef3f213
PB
13063 ;;
13064esac
13065fi
b58b6ee1 13066RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
fef3f213 13067if test -n "$RANLIB_FOR_TARGET"; then
efd58f08
RW
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13069$as_echo "$RANLIB_FOR_TARGET" >&6; }
fef3f213 13070else
efd58f08
RW
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13072$as_echo "no" >&6; }
fef3f213
PB
13073fi
13074
efd58f08 13075
fef3f213
PB
13076fi
13077if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
82026593
AO
13078
13079
13080if test -n "$RANLIB_FOR_TARGET"; then
13081 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13082elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13083 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13084fi
13085
13086if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13087 for ncn_progname in ranlib; do
13088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13089set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
13090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13091$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 13092if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
efd58f08 13093 $as_echo_n "(cached) " >&6
82026593
AO
13094else
13095 if test -n "$RANLIB_FOR_TARGET"; then
13096 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13097else
13098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13099for as_dir in $PATH
13100do
13101 IFS=$as_save_IFS
13102 test -z "$as_dir" && as_dir=.
efd58f08 13103 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 13104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 13105 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
efd58f08 13106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
13107 break 2
13108 fi
13109done
efd58f08
RW
13110 done
13111IFS=$as_save_IFS
82026593
AO
13112
13113fi
13114fi
13115RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13116if test -n "$RANLIB_FOR_TARGET"; then
efd58f08
RW
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13118$as_echo "$RANLIB_FOR_TARGET" >&6; }
82026593 13119else
efd58f08
RW
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121$as_echo "no" >&6; }
82026593
AO
13122fi
13123
efd58f08 13124
82026593
AO
13125 done
13126fi
13127
13128if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 13129 for ncn_progname in ranlib; do
efd58f08
RW
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13131$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
13132 if test -x $with_build_time_tools/${ncn_progname}; then
13133 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13135$as_echo "yes" >&6; }
fef3f213
PB
13136 break
13137 else
efd58f08
RW
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13139$as_echo "no" >&6; }
fef3f213
PB
13140 fi
13141 done
13142fi
13143
13144if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13145 for ncn_progname in ranlib; do
13146 if test -n "$ncn_target_tool_prefix"; then
13147 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
51c8a213 13148set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
13149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13150$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 13151if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
efd58f08 13152 $as_echo_n "(cached) " >&6
a0c92996 13153else
5fb28bcc
PB
13154 if test -n "$RANLIB_FOR_TARGET"; then
13155 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
a0c92996 13156else
b58b6ee1
DJ
13157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13158for as_dir in $PATH
13159do
13160 IFS=$as_save_IFS
13161 test -z "$as_dir" && as_dir=.
efd58f08 13162 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 13163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 13164 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 13165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
13166 break 2
13167 fi
13168done
efd58f08
RW
13169 done
13170IFS=$as_save_IFS
b58b6ee1 13171
a0c92996
AC
13172fi
13173fi
b58b6ee1 13174RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
5fb28bcc 13175if test -n "$RANLIB_FOR_TARGET"; then
efd58f08
RW
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13177$as_echo "$RANLIB_FOR_TARGET" >&6; }
a0c92996 13178else
efd58f08
RW
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180$as_echo "no" >&6; }
a0c92996
AC
13181fi
13182
efd58f08 13183
fef3f213
PB
13184 fi
13185 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13186 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 13187set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
13188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13189$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 13190if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
efd58f08 13191 $as_echo_n "(cached) " >&6
a0c92996 13192else
60cfca65
PB
13193 if test -n "$RANLIB_FOR_TARGET"; then
13194 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
a0c92996 13195else
b58b6ee1
DJ
13196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197for as_dir in $PATH
13198do
13199 IFS=$as_save_IFS
13200 test -z "$as_dir" && as_dir=.
efd58f08 13201 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 13202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 13203 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
efd58f08 13204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
13205 break 2
13206 fi
13207done
efd58f08
RW
13208 done
13209IFS=$as_save_IFS
b58b6ee1 13210
a0c92996
AC
13211fi
13212fi
b58b6ee1 13213RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
60cfca65 13214if test -n "$RANLIB_FOR_TARGET"; then
efd58f08
RW
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13216$as_echo "$RANLIB_FOR_TARGET" >&6; }
a0c92996 13217else
efd58f08
RW
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219$as_echo "no" >&6; }
a0c92996 13220fi
b58b6ee1 13221
efd58f08 13222
fef3f213
PB
13223 fi
13224 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13225 done
13226fi
b58b6ee1 13227
fef3f213
PB
13228if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13229 set dummy ranlib
13230 if test $build = $target ; then
13231 RANLIB_FOR_TARGET="$2"
13232 else
13233 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
a0c92996 13234 fi
d058b81b
MS
13235else
13236 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
fef3f213 13237fi
60cfca65 13238
207258c8
PB
13239else
13240 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
a0c92996
AC
13241fi
13242
fef3f213
PB
13243
13244
13245
46e7439b
DD
13246if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13247 if test -n "$with_build_time_tools"; then
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13249$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13250 if test -x $with_build_time_tools/readelf; then
13251 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13252 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13254$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13255 else
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13257$as_echo "no" >&6; }
13258 fi
13259 elif test $build != $host && test $have_gcc_for_target = yes; then
13260 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13261 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13262 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13263 fi
13264fi
13265if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13266 # Extract the first word of "readelf", so it can be a program name with args.
13267set dummy readelf; ac_word=$2
13268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13269$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 13270if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
46e7439b
DD
13271 $as_echo_n "(cached) " >&6
13272else
13273 case $READELF_FOR_TARGET in
13274 [\\/]* | ?:[\\/]*)
13275 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13276 ;;
13277 *)
13278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13279for as_dir in $gcc_cv_tool_dirs
13280do
13281 IFS=$as_save_IFS
13282 test -z "$as_dir" && as_dir=.
13283 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 13284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46e7439b
DD
13285 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13287 break 2
13288 fi
13289done
13290 done
13291IFS=$as_save_IFS
13292
13293 ;;
13294esac
13295fi
13296READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13297if test -n "$READELF_FOR_TARGET"; then
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13299$as_echo "$READELF_FOR_TARGET" >&6; }
13300else
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13302$as_echo "no" >&6; }
13303fi
13304
13305
13306fi
13307if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13308
13309
13310if test -n "$READELF_FOR_TARGET"; then
13311 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13312elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13313 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13314fi
13315
13316if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13317 for ncn_progname in readelf; do
13318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13319set dummy ${ncn_progname}; ac_word=$2
13320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13321$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 13322if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
46e7439b
DD
13323 $as_echo_n "(cached) " >&6
13324else
13325 if test -n "$READELF_FOR_TARGET"; then
13326 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13327else
13328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13329for as_dir in $PATH
13330do
13331 IFS=$as_save_IFS
13332 test -z "$as_dir" && as_dir=.
13333 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 13334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46e7439b
DD
13335 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13337 break 2
13338 fi
13339done
13340 done
13341IFS=$as_save_IFS
13342
13343fi
13344fi
13345READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13346if test -n "$READELF_FOR_TARGET"; then
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13348$as_echo "$READELF_FOR_TARGET" >&6; }
13349else
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13351$as_echo "no" >&6; }
13352fi
13353
13354
13355 done
13356fi
13357
13358if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13359 for ncn_progname in readelf; do
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13361$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13362 if test -x $with_build_time_tools/${ncn_progname}; then
13363 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13365$as_echo "yes" >&6; }
13366 break
13367 else
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369$as_echo "no" >&6; }
13370 fi
13371 done
13372fi
13373
13374if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13375 for ncn_progname in readelf; do
13376 if test -n "$ncn_target_tool_prefix"; then
13377 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13378set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13380$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 13381if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
46e7439b
DD
13382 $as_echo_n "(cached) " >&6
13383else
13384 if test -n "$READELF_FOR_TARGET"; then
13385 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13386else
13387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13388for as_dir in $PATH
13389do
13390 IFS=$as_save_IFS
13391 test -z "$as_dir" && as_dir=.
13392 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 13393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46e7439b
DD
13394 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13396 break 2
13397 fi
13398done
13399 done
13400IFS=$as_save_IFS
13401
13402fi
13403fi
13404READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13405if test -n "$READELF_FOR_TARGET"; then
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13407$as_echo "$READELF_FOR_TARGET" >&6; }
13408else
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13410$as_echo "no" >&6; }
13411fi
13412
13413
13414 fi
13415 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13417set dummy ${ncn_progname}; ac_word=$2
13418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13419$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 13420if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
46e7439b
DD
13421 $as_echo_n "(cached) " >&6
13422else
13423 if test -n "$READELF_FOR_TARGET"; then
13424 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13425else
13426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13427for as_dir in $PATH
13428do
13429 IFS=$as_save_IFS
13430 test -z "$as_dir" && as_dir=.
13431 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 13432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46e7439b
DD
13433 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13435 break 2
13436 fi
13437done
13438 done
13439IFS=$as_save_IFS
13440
13441fi
13442fi
13443READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13444if test -n "$READELF_FOR_TARGET"; then
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13446$as_echo "$READELF_FOR_TARGET" >&6; }
13447else
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449$as_echo "no" >&6; }
13450fi
13451
13452
13453 fi
13454 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13455 done
13456fi
13457
13458if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13459 set dummy readelf
13460 if test $build = $target ; then
13461 READELF_FOR_TARGET="$2"
13462 else
13463 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13464 fi
13465else
13466 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13467fi
13468
13469else
13470 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13471fi
13472
13473
13474
13475
fef3f213
PB
13476if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13477 if test -n "$with_build_time_tools"; then
efd58f08
RW
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13479$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
207258c8
PB
13480 if test -x $with_build_time_tools/strip; then
13481 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13482 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
efd58f08
RW
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13484$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
207258c8 13485 else
efd58f08
RW
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13487$as_echo "no" >&6; }
207258c8 13488 fi
fef3f213
PB
13489 elif test $build != $host && test $have_gcc_for_target = yes; then
13490 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d058b81b
MS
13491 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13492 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
fef3f213
PB
13493 fi
13494fi
b58b6ee1 13495if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
13496 # Extract the first word of "strip", so it can be a program name with args.
13497set dummy strip; ac_word=$2
efd58f08
RW
13498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13499$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 13500if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
efd58f08 13501 $as_echo_n "(cached) " >&6
fef3f213 13502else
b58b6ee1
DJ
13503 case $STRIP_FOR_TARGET in
13504 [\\/]* | ?:[\\/]*)
fef3f213
PB
13505 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13506 ;;
fef3f213 13507 *)
b58b6ee1
DJ
13508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13509for as_dir in $gcc_cv_tool_dirs
13510do
13511 IFS=$as_save_IFS
13512 test -z "$as_dir" && as_dir=.
efd58f08 13513 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 13514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 13515 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
efd58f08 13516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
13517 break 2
13518 fi
13519done
efd58f08
RW
13520 done
13521IFS=$as_save_IFS
b58b6ee1 13522
fef3f213
PB
13523 ;;
13524esac
13525fi
b58b6ee1 13526STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
fef3f213 13527if test -n "$STRIP_FOR_TARGET"; then
efd58f08
RW
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13529$as_echo "$STRIP_FOR_TARGET" >&6; }
fef3f213 13530else
efd58f08
RW
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13532$as_echo "no" >&6; }
fef3f213
PB
13533fi
13534
efd58f08 13535
fef3f213
PB
13536fi
13537if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
82026593
AO
13538
13539
13540if test -n "$STRIP_FOR_TARGET"; then
13541 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13542elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13543 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13544fi
13545
13546if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13547 for ncn_progname in strip; do
13548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13549set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
13550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13551$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 13552if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
efd58f08 13553 $as_echo_n "(cached) " >&6
82026593
AO
13554else
13555 if test -n "$STRIP_FOR_TARGET"; then
13556 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13557else
13558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13559for as_dir in $PATH
13560do
13561 IFS=$as_save_IFS
13562 test -z "$as_dir" && as_dir=.
efd58f08 13563 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 13564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 13565 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
efd58f08 13566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
13567 break 2
13568 fi
13569done
efd58f08
RW
13570 done
13571IFS=$as_save_IFS
82026593
AO
13572
13573fi
13574fi
13575STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13576if test -n "$STRIP_FOR_TARGET"; then
efd58f08
RW
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13578$as_echo "$STRIP_FOR_TARGET" >&6; }
82026593 13579else
efd58f08
RW
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13581$as_echo "no" >&6; }
82026593
AO
13582fi
13583
efd58f08 13584
82026593
AO
13585 done
13586fi
13587
13588if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 13589 for ncn_progname in strip; do
efd58f08
RW
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13591$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
13592 if test -x $with_build_time_tools/${ncn_progname}; then
13593 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13595$as_echo "yes" >&6; }
fef3f213
PB
13596 break
13597 else
efd58f08
RW
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13599$as_echo "no" >&6; }
fef3f213
PB
13600 fi
13601 done
13602fi
13603
13604if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13605 for ncn_progname in strip; do
13606 if test -n "$ncn_target_tool_prefix"; then
13607 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6a33f745 13608set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
13609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13610$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 13611if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
efd58f08 13612 $as_echo_n "(cached) " >&6
6a33f745
GK
13613else
13614 if test -n "$STRIP_FOR_TARGET"; then
13615 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
b58b6ee1
DJ
13616else
13617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13618for as_dir in $PATH
13619do
13620 IFS=$as_save_IFS
13621 test -z "$as_dir" && as_dir=.
efd58f08 13622 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 13623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 13624 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 13625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
13626 break 2
13627 fi
13628done
efd58f08
RW
13629 done
13630IFS=$as_save_IFS
b58b6ee1 13631
6a33f745
GK
13632fi
13633fi
b58b6ee1 13634STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
6a33f745 13635if test -n "$STRIP_FOR_TARGET"; then
efd58f08
RW
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13637$as_echo "$STRIP_FOR_TARGET" >&6; }
6a33f745 13638else
efd58f08
RW
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13640$as_echo "no" >&6; }
6a33f745
GK
13641fi
13642
efd58f08 13643
fef3f213
PB
13644 fi
13645 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13646 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6a33f745 13647set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
13648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13649$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 13650if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
efd58f08 13651 $as_echo_n "(cached) " >&6
6a33f745
GK
13652else
13653 if test -n "$STRIP_FOR_TARGET"; then
13654 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13655else
b58b6ee1
DJ
13656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13657for as_dir in $PATH
13658do
13659 IFS=$as_save_IFS
13660 test -z "$as_dir" && as_dir=.
efd58f08 13661 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 13662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 13663 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
efd58f08 13664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
13665 break 2
13666 fi
13667done
efd58f08
RW
13668 done
13669IFS=$as_save_IFS
b58b6ee1 13670
6a33f745
GK
13671fi
13672fi
b58b6ee1 13673STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
6a33f745 13674if test -n "$STRIP_FOR_TARGET"; then
efd58f08
RW
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13676$as_echo "$STRIP_FOR_TARGET" >&6; }
6a33f745 13677else
efd58f08
RW
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679$as_echo "no" >&6; }
6a33f745 13680fi
b58b6ee1 13681
efd58f08 13682
fef3f213
PB
13683 fi
13684 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13685 done
13686fi
b58b6ee1 13687
6a33f745
GK
13688if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13689 set dummy strip
13690 if test $build = $target ; then
13691 STRIP_FOR_TARGET="$2"
13692 else
13693 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13694 fi
d058b81b
MS
13695else
13696 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6a33f745
GK
13697fi
13698
207258c8
PB
13699else
13700 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
fef3f213
PB
13701fi
13702
13703
13704
13705
13706if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13707 if test -n "$with_build_time_tools"; then
efd58f08
RW
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13709$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
207258c8
PB
13710 if test -x $with_build_time_tools/windres; then
13711 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13712 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
efd58f08
RW
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13714$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
207258c8 13715 else
efd58f08
RW
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13717$as_echo "no" >&6; }
207258c8 13718 fi
fef3f213
PB
13719 elif test $build != $host && test $have_gcc_for_target = yes; then
13720 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d058b81b
MS
13721 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13722 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
fef3f213
PB
13723 fi
13724fi
b58b6ee1 13725if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
13726 # Extract the first word of "windres", so it can be a program name with args.
13727set dummy windres; ac_word=$2
efd58f08
RW
13728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13729$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 13730if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
efd58f08 13731 $as_echo_n "(cached) " >&6
fef3f213 13732else
b58b6ee1
DJ
13733 case $WINDRES_FOR_TARGET in
13734 [\\/]* | ?:[\\/]*)
fef3f213
PB
13735 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13736 ;;
fef3f213 13737 *)
b58b6ee1
DJ
13738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13739for as_dir in $gcc_cv_tool_dirs
13740do
13741 IFS=$as_save_IFS
13742 test -z "$as_dir" && as_dir=.
efd58f08 13743 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 13744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 13745 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
efd58f08 13746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
13747 break 2
13748 fi
13749done
efd58f08
RW
13750 done
13751IFS=$as_save_IFS
b58b6ee1 13752
fef3f213
PB
13753 ;;
13754esac
13755fi
b58b6ee1 13756WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
fef3f213 13757if test -n "$WINDRES_FOR_TARGET"; then
efd58f08
RW
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13759$as_echo "$WINDRES_FOR_TARGET" >&6; }
fef3f213 13760else
efd58f08
RW
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13762$as_echo "no" >&6; }
fef3f213
PB
13763fi
13764
efd58f08 13765
fef3f213
PB
13766fi
13767if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
82026593
AO
13768
13769
13770if test -n "$WINDRES_FOR_TARGET"; then
13771 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13772elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13773 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13774fi
13775
13776if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13777 for ncn_progname in windres; do
13778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13779set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
13780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13781$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 13782if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
efd58f08 13783 $as_echo_n "(cached) " >&6
82026593
AO
13784else
13785 if test -n "$WINDRES_FOR_TARGET"; then
13786 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13787else
13788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13789for as_dir in $PATH
13790do
13791 IFS=$as_save_IFS
13792 test -z "$as_dir" && as_dir=.
efd58f08 13793 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 13794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82026593 13795 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
efd58f08 13796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
13797 break 2
13798 fi
13799done
efd58f08
RW
13800 done
13801IFS=$as_save_IFS
82026593
AO
13802
13803fi
13804fi
13805WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13806if test -n "$WINDRES_FOR_TARGET"; then
efd58f08
RW
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13808$as_echo "$WINDRES_FOR_TARGET" >&6; }
82026593 13809else
efd58f08
RW
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811$as_echo "no" >&6; }
82026593
AO
13812fi
13813
efd58f08 13814
82026593
AO
13815 done
13816fi
13817
13818if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 13819 for ncn_progname in windres; do
efd58f08
RW
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13821$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
13822 if test -x $with_build_time_tools/${ncn_progname}; then
13823 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13825$as_echo "yes" >&6; }
fef3f213
PB
13826 break
13827 else
efd58f08
RW
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13829$as_echo "no" >&6; }
fef3f213
PB
13830 fi
13831 done
13832fi
13833
13834if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13835 for ncn_progname in windres; do
13836 if test -n "$ncn_target_tool_prefix"; then
13837 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 13838set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
13839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13840$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 13841if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
efd58f08 13842 $as_echo_n "(cached) " >&6
a0c92996 13843else
5fb28bcc
PB
13844 if test -n "$WINDRES_FOR_TARGET"; then
13845 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
a0c92996 13846else
b58b6ee1
DJ
13847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13848for as_dir in $PATH
13849do
13850 IFS=$as_save_IFS
13851 test -z "$as_dir" && as_dir=.
efd58f08 13852 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 13853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 13854 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 13855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
13856 break 2
13857 fi
13858done
efd58f08
RW
13859 done
13860IFS=$as_save_IFS
b58b6ee1 13861
a0c92996
AC
13862fi
13863fi
b58b6ee1 13864WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
5fb28bcc 13865if test -n "$WINDRES_FOR_TARGET"; then
efd58f08
RW
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13867$as_echo "$WINDRES_FOR_TARGET" >&6; }
a0c92996 13868else
efd58f08
RW
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13870$as_echo "no" >&6; }
a0c92996
AC
13871fi
13872
efd58f08 13873
fef3f213
PB
13874 fi
13875 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 13877set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
13878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13879$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 13880if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
efd58f08 13881 $as_echo_n "(cached) " >&6
a0c92996 13882else
60cfca65
PB
13883 if test -n "$WINDRES_FOR_TARGET"; then
13884 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
a0c92996 13885else
b58b6ee1
DJ
13886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13887for as_dir in $PATH
13888do
13889 IFS=$as_save_IFS
13890 test -z "$as_dir" && as_dir=.
efd58f08 13891 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 13892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b58b6ee1 13893 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
efd58f08 13894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
13895 break 2
13896 fi
13897done
efd58f08
RW
13898 done
13899IFS=$as_save_IFS
b58b6ee1 13900
a0c92996
AC
13901fi
13902fi
b58b6ee1 13903WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
60cfca65 13904if test -n "$WINDRES_FOR_TARGET"; then
efd58f08
RW
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13906$as_echo "$WINDRES_FOR_TARGET" >&6; }
a0c92996 13907else
efd58f08
RW
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13909$as_echo "no" >&6; }
a0c92996 13910fi
b58b6ee1 13911
efd58f08 13912
fef3f213
PB
13913 fi
13914 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13915 done
13916fi
b58b6ee1 13917
60cfca65
PB
13918if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13919 set dummy windres
13920 if test $build = $target ; then
13921 WINDRES_FOR_TARGET="$2"
a0c92996 13922 else
60cfca65 13923 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
a0c92996 13924 fi
d058b81b
MS
13925else
13926 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
a0c92996
AC
13927fi
13928
207258c8
PB
13929else
13930 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
fef3f213
PB
13931fi
13932
712e2a32 13933
bffcbe34
NC
13934
13935
13936if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13937 if test -n "$with_build_time_tools"; then
efd58f08
RW
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13939$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
bffcbe34
NC
13940 if test -x $with_build_time_tools/windmc; then
13941 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13942 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
efd58f08
RW
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13944$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
bffcbe34 13945 else
efd58f08
RW
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947$as_echo "no" >&6; }
bffcbe34
NC
13948 fi
13949 elif test $build != $host && test $have_gcc_for_target = yes; then
13950 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13951 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13952 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13953 fi
13954fi
13955if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13956 # Extract the first word of "windmc", so it can be a program name with args.
13957set dummy windmc; ac_word=$2
efd58f08
RW
13958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13959$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 13960if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
efd58f08 13961 $as_echo_n "(cached) " >&6
bffcbe34
NC
13962else
13963 case $WINDMC_FOR_TARGET in
13964 [\\/]* | ?:[\\/]*)
13965 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13966 ;;
13967 *)
13968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13969for as_dir in $gcc_cv_tool_dirs
13970do
13971 IFS=$as_save_IFS
13972 test -z "$as_dir" && as_dir=.
efd58f08 13973 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 13974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bffcbe34 13975 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
efd58f08 13976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bffcbe34
NC
13977 break 2
13978 fi
13979done
efd58f08
RW
13980 done
13981IFS=$as_save_IFS
bffcbe34
NC
13982
13983 ;;
13984esac
13985fi
13986WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
bffcbe34 13987if test -n "$WINDMC_FOR_TARGET"; then
efd58f08
RW
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13989$as_echo "$WINDMC_FOR_TARGET" >&6; }
bffcbe34 13990else
efd58f08
RW
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13992$as_echo "no" >&6; }
bffcbe34
NC
13993fi
13994
efd58f08 13995
bffcbe34
NC
13996fi
13997if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13998
13999
14000if test -n "$WINDMC_FOR_TARGET"; then
14001 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14002elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14003 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14004fi
14005
14006if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14007 for ncn_progname in windmc; do
14008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14009set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
14010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14011$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 14012if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
efd58f08 14013 $as_echo_n "(cached) " >&6
bffcbe34
NC
14014else
14015 if test -n "$WINDMC_FOR_TARGET"; then
14016 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14017else
14018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14019for as_dir in $PATH
14020do
14021 IFS=$as_save_IFS
14022 test -z "$as_dir" && as_dir=.
efd58f08 14023 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 14024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bffcbe34 14025 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
efd58f08 14026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bffcbe34
NC
14027 break 2
14028 fi
14029done
efd58f08
RW
14030 done
14031IFS=$as_save_IFS
bffcbe34
NC
14032
14033fi
14034fi
14035WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14036if test -n "$WINDMC_FOR_TARGET"; then
efd58f08
RW
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14038$as_echo "$WINDMC_FOR_TARGET" >&6; }
bffcbe34 14039else
efd58f08
RW
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14041$as_echo "no" >&6; }
bffcbe34
NC
14042fi
14043
efd58f08 14044
bffcbe34
NC
14045 done
14046fi
14047
14048if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14049 for ncn_progname in windmc; do
efd58f08
RW
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14051$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
bffcbe34
NC
14052 if test -x $with_build_time_tools/${ncn_progname}; then
14053 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14055$as_echo "yes" >&6; }
bffcbe34
NC
14056 break
14057 else
efd58f08
RW
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14059$as_echo "no" >&6; }
bffcbe34
NC
14060 fi
14061 done
14062fi
14063
14064if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14065 for ncn_progname in windmc; do
14066 if test -n "$ncn_target_tool_prefix"; then
14067 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14068set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
14069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14070$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 14071if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
efd58f08 14072 $as_echo_n "(cached) " >&6
bffcbe34
NC
14073else
14074 if test -n "$WINDMC_FOR_TARGET"; then
14075 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14076else
14077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14078for as_dir in $PATH
14079do
14080 IFS=$as_save_IFS
14081 test -z "$as_dir" && as_dir=.
efd58f08 14082 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 14083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bffcbe34 14084 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 14085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bffcbe34
NC
14086 break 2
14087 fi
14088done
efd58f08
RW
14089 done
14090IFS=$as_save_IFS
bffcbe34
NC
14091
14092fi
14093fi
14094WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14095if test -n "$WINDMC_FOR_TARGET"; then
efd58f08
RW
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14097$as_echo "$WINDMC_FOR_TARGET" >&6; }
bffcbe34 14098else
efd58f08
RW
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14100$as_echo "no" >&6; }
bffcbe34
NC
14101fi
14102
efd58f08 14103
bffcbe34
NC
14104 fi
14105 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14107set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
14108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14109$as_echo_n "checking for $ac_word... " >&6; }
6d3ddf51 14110if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
efd58f08 14111 $as_echo_n "(cached) " >&6
bffcbe34
NC
14112else
14113 if test -n "$WINDMC_FOR_TARGET"; then
14114 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14115else
14116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14117for as_dir in $PATH
14118do
14119 IFS=$as_save_IFS
14120 test -z "$as_dir" && as_dir=.
efd58f08 14121 for ac_exec_ext in '' $ac_executable_extensions; do
6d3ddf51 14122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bffcbe34 14123 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
efd58f08 14124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bffcbe34
NC
14125 break 2
14126 fi
14127done
efd58f08
RW
14128 done
14129IFS=$as_save_IFS
bffcbe34
NC
14130
14131fi
14132fi
14133WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14134if test -n "$WINDMC_FOR_TARGET"; then
efd58f08
RW
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14136$as_echo "$WINDMC_FOR_TARGET" >&6; }
bffcbe34 14137else
efd58f08
RW
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14139$as_echo "no" >&6; }
bffcbe34
NC
14140fi
14141
efd58f08 14142
bffcbe34
NC
14143 fi
14144 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14145 done
14146fi
14147
14148if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14149 set dummy windmc
14150 if test $build = $target ; then
14151 WINDMC_FOR_TARGET="$2"
14152 else
14153 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14154 fi
14155else
14156 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14157fi
14158
14159else
14160 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14161fi
14162
14163
a7dc05b5
PB
14164RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14165
efd58f08
RW
14166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14167$as_echo_n "checking where to find the target ar... " >&6; }
a7dc05b5 14168if test "x${build}" != "x${host}" ; then
fef3f213
PB
14169 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14170 # We already found the complete path
7a81a717 14171 ac_dir=`dirname $AR_FOR_TARGET`
efd58f08
RW
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14173$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
14174 else
14175 # Canadian cross, just use what we found
efd58f08
RW
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14177$as_echo "pre-installed" >&6; }
fef3f213 14178 fi
a7dc05b5
PB
14179else
14180 ok=yes
14181 case " ${configdirs} " in
14182 *" binutils "*) ;;
14183 *) ok=no ;;
14184 esac
b58b6ee1 14185
a7dc05b5
PB
14186 if test $ok = yes; then
14187 # An in-tree tool is available and we can use it
14188 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
efd58f08
RW
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14190$as_echo "just compiled" >&6; }
fef3f213
PB
14191 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14192 # We already found the complete path
7a81a717 14193 ac_dir=`dirname $AR_FOR_TARGET`
efd58f08
RW
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14195$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
14196 elif test "x$target" = "x$host"; then
14197 # We can use an host tool
14198 AR_FOR_TARGET='$(AR)'
efd58f08
RW
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14200$as_echo "host tool" >&6; }
a7dc05b5
PB
14201 else
14202 # We need a cross tool
efd58f08
RW
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14204$as_echo "pre-installed" >&6; }
a7dc05b5
PB
14205 fi
14206fi
42f55f77 14207
efd58f08
RW
14208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14209$as_echo_n "checking where to find the target as... " >&6; }
a7dc05b5 14210if test "x${build}" != "x${host}" ; then
fef3f213
PB
14211 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14212 # We already found the complete path
7a81a717 14213 ac_dir=`dirname $AS_FOR_TARGET`
efd58f08
RW
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14215$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
14216 else
14217 # Canadian cross, just use what we found
efd58f08
RW
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14219$as_echo "pre-installed" >&6; }
fef3f213 14220 fi
a7dc05b5
PB
14221else
14222 ok=yes
14223 case " ${configdirs} " in
14224 *" gas "*) ;;
14225 *) ok=no ;;
14226 esac
b58b6ee1 14227
a7dc05b5
PB
14228 if test $ok = yes; then
14229 # An in-tree tool is available and we can use it
14230 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
efd58f08
RW
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14232$as_echo "just compiled" >&6; }
fef3f213
PB
14233 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14234 # We already found the complete path
7a81a717 14235 ac_dir=`dirname $AS_FOR_TARGET`
efd58f08
RW
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14237$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
14238 elif test "x$target" = "x$host"; then
14239 # We can use an host tool
14240 AS_FOR_TARGET='$(AS)'
efd58f08
RW
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14242$as_echo "host tool" >&6; }
a7dc05b5
PB
14243 else
14244 # We need a cross tool
efd58f08
RW
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14246$as_echo "pre-installed" >&6; }
a7dc05b5
PB
14247 fi
14248fi
42f55f77 14249
efd58f08
RW
14250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14251$as_echo_n "checking where to find the target cc... " >&6; }
a7dc05b5 14252if test "x${build}" != "x${host}" ; then
fef3f213
PB
14253 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14254 # We already found the complete path
7a81a717 14255 ac_dir=`dirname $CC_FOR_TARGET`
efd58f08
RW
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14257$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
14258 else
14259 # Canadian cross, just use what we found
efd58f08
RW
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14261$as_echo "pre-installed" >&6; }
fef3f213 14262 fi
a7dc05b5
PB
14263else
14264 ok=yes
14265 case " ${configdirs} " in
14266 *" gcc "*) ;;
14267 *) ok=no ;;
14268 esac
b58b6ee1 14269
a7dc05b5
PB
14270 if test $ok = yes; then
14271 # An in-tree tool is available and we can use it
14272 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
efd58f08
RW
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14274$as_echo "just compiled" >&6; }
fef3f213
PB
14275 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14276 # We already found the complete path
7a81a717 14277 ac_dir=`dirname $CC_FOR_TARGET`
efd58f08
RW
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14279$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
14280 elif test "x$target" = "x$host"; then
14281 # We can use an host tool
14282 CC_FOR_TARGET='$(CC)'
efd58f08
RW
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14284$as_echo "host tool" >&6; }
a7dc05b5
PB
14285 else
14286 # We need a cross tool
efd58f08
RW
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14288$as_echo "pre-installed" >&6; }
a7dc05b5
PB
14289 fi
14290fi
42f55f77 14291
efd58f08
RW
14292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14293$as_echo_n "checking where to find the target c++... " >&6; }
a7dc05b5 14294if test "x${build}" != "x${host}" ; then
fef3f213
PB
14295 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14296 # We already found the complete path
7a81a717 14297 ac_dir=`dirname $CXX_FOR_TARGET`
efd58f08
RW
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14299$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
14300 else
14301 # Canadian cross, just use what we found
efd58f08
RW
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14303$as_echo "pre-installed" >&6; }
fef3f213 14304 fi
a7dc05b5
PB
14305else
14306 ok=yes
14307 case " ${configdirs} " in
14308 *" gcc "*) ;;
14309 *) ok=no ;;
14310 esac
14311 case ,${enable_languages}, in
14312 *,c++,*) ;;
14313 *) ok=no ;;
14314 esac
14315 if test $ok = yes; then
14316 # An in-tree tool is available and we can use it
111ced6d 14317 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'
efd58f08
RW
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14319$as_echo "just compiled" >&6; }
fef3f213
PB
14320 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14321 # We already found the complete path
7a81a717 14322 ac_dir=`dirname $CXX_FOR_TARGET`
efd58f08
RW
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14324$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
14325 elif test "x$target" = "x$host"; then
14326 # We can use an host tool
14327 CXX_FOR_TARGET='$(CXX)'
efd58f08
RW
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14329$as_echo "host tool" >&6; }
a7dc05b5
PB
14330 else
14331 # We need a cross tool
efd58f08
RW
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14333$as_echo "pre-installed" >&6; }
a7dc05b5
PB
14334 fi
14335fi
42f55f77 14336
efd58f08
RW
14337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14338$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
a7dc05b5 14339if test "x${build}" != "x${host}" ; then
fef3f213
PB
14340 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14341 # We already found the complete path
7a81a717 14342 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
efd58f08
RW
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14344$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
14345 else
14346 # Canadian cross, just use what we found
efd58f08
RW
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14348$as_echo "pre-installed" >&6; }
fef3f213 14349 fi
a7dc05b5
PB
14350else
14351 ok=yes
14352 case " ${configdirs} " in
14353 *" gcc "*) ;;
14354 *) ok=no ;;
14355 esac
14356 case ,${enable_languages}, in
14357 *,c++,*) ;;
14358 *) ok=no ;;
14359 esac
14360 if test $ok = yes; then
14361 # An in-tree tool is available and we can use it
111ced6d 14362 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'
efd58f08
RW
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14364$as_echo "just compiled" >&6; }
fef3f213
PB
14365 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14366 # We already found the complete path
7a81a717 14367 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
efd58f08
RW
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14369$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
14370 elif test "x$target" = "x$host"; then
14371 # We can use an host tool
14372 RAW_CXX_FOR_TARGET='$(CXX)'
efd58f08
RW
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14374$as_echo "host tool" >&6; }
a7dc05b5
PB
14375 else
14376 # We need a cross tool
efd58f08
RW
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14378$as_echo "pre-installed" >&6; }
a7dc05b5
PB
14379 fi
14380fi
42f55f77 14381
efd58f08
RW
14382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14383$as_echo_n "checking where to find the target dlltool... " >&6; }
a7dc05b5 14384if test "x${build}" != "x${host}" ; then
fef3f213
PB
14385 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14386 # We already found the complete path
7a81a717 14387 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
efd58f08
RW
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14389$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
14390 else
14391 # Canadian cross, just use what we found
efd58f08
RW
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14393$as_echo "pre-installed" >&6; }
fef3f213 14394 fi
a7dc05b5
PB
14395else
14396 ok=yes
14397 case " ${configdirs} " in
14398 *" binutils "*) ;;
14399 *) ok=no ;;
14400 esac
b58b6ee1 14401
a7dc05b5
PB
14402 if test $ok = yes; then
14403 # An in-tree tool is available and we can use it
14404 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
efd58f08
RW
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14406$as_echo "just compiled" >&6; }
fef3f213
PB
14407 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14408 # We already found the complete path
7a81a717 14409 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
efd58f08
RW
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14411$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
14412 elif test "x$target" = "x$host"; then
14413 # We can use an host tool
14414 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
efd58f08
RW
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14416$as_echo "host tool" >&6; }
a7dc05b5
PB
14417 else
14418 # We need a cross tool
efd58f08
RW
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14420$as_echo "pre-installed" >&6; }
a7dc05b5
PB
14421 fi
14422fi
42f55f77 14423
efd58f08
RW
14424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14425$as_echo_n "checking where to find the target gcc... " >&6; }
a7dc05b5 14426if test "x${build}" != "x${host}" ; then
fef3f213
PB
14427 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14428 # We already found the complete path
7a81a717 14429 ac_dir=`dirname $GCC_FOR_TARGET`
efd58f08
RW
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14431$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
14432 else
14433 # Canadian cross, just use what we found
efd58f08
RW
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14435$as_echo "pre-installed" >&6; }
fef3f213 14436 fi
a7dc05b5
PB
14437else
14438 ok=yes
14439 case " ${configdirs} " in
14440 *" gcc "*) ;;
14441 *) ok=no ;;
14442 esac
b58b6ee1 14443
a7dc05b5
PB
14444 if test $ok = yes; then
14445 # An in-tree tool is available and we can use it
14446 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
efd58f08
RW
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14448$as_echo "just compiled" >&6; }
fef3f213
PB
14449 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14450 # We already found the complete path
7a81a717 14451 ac_dir=`dirname $GCC_FOR_TARGET`
efd58f08
RW
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14453$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
14454 elif test "x$target" = "x$host"; then
14455 # We can use an host tool
14456 GCC_FOR_TARGET='$()'
efd58f08
RW
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14458$as_echo "host tool" >&6; }
a7dc05b5
PB
14459 else
14460 # We need a cross tool
efd58f08
RW
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14462$as_echo "pre-installed" >&6; }
a7dc05b5
PB
14463 fi
14464fi
42f55f77 14465
efd58f08
RW
14466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14467$as_echo_n "checking where to find the target gcj... " >&6; }
a7dc05b5 14468if test "x${build}" != "x${host}" ; then
fef3f213
PB
14469 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14470 # We already found the complete path
7a81a717 14471 ac_dir=`dirname $GCJ_FOR_TARGET`
efd58f08
RW
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14473$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
14474 else
14475 # Canadian cross, just use what we found
efd58f08
RW
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14477$as_echo "pre-installed" >&6; }
fef3f213 14478 fi
a7dc05b5
PB
14479else
14480 ok=yes
14481 case " ${configdirs} " in
14482 *" gcc "*) ;;
14483 *) ok=no ;;
14484 esac
14485 case ,${enable_languages}, in
14486 *,java,*) ;;
14487 *) ok=no ;;
14488 esac
14489 if test $ok = yes; then
14490 # An in-tree tool is available and we can use it
14491 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
efd58f08
RW
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14493$as_echo "just compiled" >&6; }
fef3f213
PB
14494 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14495 # We already found the complete path
7a81a717 14496 ac_dir=`dirname $GCJ_FOR_TARGET`
efd58f08
RW
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14498$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
14499 elif test "x$target" = "x$host"; then
14500 # We can use an host tool
14501 GCJ_FOR_TARGET='$(GCJ)'
efd58f08
RW
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14503$as_echo "host tool" >&6; }
a7dc05b5
PB
14504 else
14505 # We need a cross tool
efd58f08
RW
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14507$as_echo "pre-installed" >&6; }
a7dc05b5
PB
14508 fi
14509fi
42f55f77 14510
efd58f08
RW
14511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14512$as_echo_n "checking where to find the target gfortran... " >&6; }
a7dc05b5 14513if test "x${build}" != "x${host}" ; then
fef3f213
PB
14514 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14515 # We already found the complete path
7a81a717 14516 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
efd58f08
RW
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14518$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
14519 else
14520 # Canadian cross, just use what we found
efd58f08
RW
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14522$as_echo "pre-installed" >&6; }
fef3f213 14523 fi
a7dc05b5
PB
14524else
14525 ok=yes
14526 case " ${configdirs} " in
14527 *" gcc "*) ;;
14528 *) ok=no ;;
14529 esac
14530 case ,${enable_languages}, in
14531 *,fortran,*) ;;
14532 *) ok=no ;;
14533 esac
14534 if test $ok = yes; then
14535 # An in-tree tool is available and we can use it
14536 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
efd58f08
RW
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14538$as_echo "just compiled" >&6; }
fef3f213
PB
14539 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14540 # We already found the complete path
7a81a717 14541 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
efd58f08
RW
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14543$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
14544 elif test "x$target" = "x$host"; then
14545 # We can use an host tool
14546 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
efd58f08
RW
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14548$as_echo "host tool" >&6; }
a7dc05b5
PB
14549 else
14550 # We need a cross tool
efd58f08
RW
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14552$as_echo "pre-installed" >&6; }
a7dc05b5
PB
14553 fi
14554fi
42f55f77 14555
d5b7129a
ILT
14556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14557$as_echo_n "checking where to find the target gccgo... " >&6; }
14558if test "x${build}" != "x${host}" ; then
14559 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14560 # We already found the complete path
14561 ac_dir=`dirname $GOC_FOR_TARGET`
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14563$as_echo "pre-installed in $ac_dir" >&6; }
14564 else
14565 # Canadian cross, just use what we found
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14567$as_echo "pre-installed" >&6; }
14568 fi
14569else
14570 ok=yes
14571 case " ${configdirs} " in
14572 *" gcc "*) ;;
14573 *) ok=no ;;
14574 esac
14575 case ,${enable_languages}, in
14576 *,go,*) ;;
14577 *) ok=no ;;
14578 esac
14579 if test $ok = yes; then
14580 # An in-tree tool is available and we can use it
14581 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14583$as_echo "just compiled" >&6; }
14584 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14585 # We already found the complete path
14586 ac_dir=`dirname $GOC_FOR_TARGET`
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14588$as_echo "pre-installed in $ac_dir" >&6; }
14589 elif test "x$target" = "x$host"; then
14590 # We can use an host tool
14591 GOC_FOR_TARGET='$(GOC)'
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14593$as_echo "host tool" >&6; }
14594 else
14595 # We need a cross tool
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14597$as_echo "pre-installed" >&6; }
14598 fi
14599fi
14600
efd58f08
RW
14601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14602$as_echo_n "checking where to find the target ld... " >&6; }
a7dc05b5 14603if test "x${build}" != "x${host}" ; then
fef3f213
PB
14604 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14605 # We already found the complete path
7a81a717 14606 ac_dir=`dirname $LD_FOR_TARGET`
efd58f08
RW
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14608$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
14609 else
14610 # Canadian cross, just use what we found
efd58f08
RW
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14612$as_echo "pre-installed" >&6; }
fef3f213 14613 fi
a7dc05b5
PB
14614else
14615 ok=yes
14616 case " ${configdirs} " in
14617 *" ld "*) ;;
14618 *) ok=no ;;
14619 esac
b58b6ee1 14620
a7dc05b5
PB
14621 if test $ok = yes; then
14622 # An in-tree tool is available and we can use it
14623 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
efd58f08
RW
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14625$as_echo "just compiled" >&6; }
fef3f213
PB
14626 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14627 # We already found the complete path
7a81a717 14628 ac_dir=`dirname $LD_FOR_TARGET`
efd58f08
RW
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14630$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
14631 elif test "x$target" = "x$host"; then
14632 # We can use an host tool
14633 LD_FOR_TARGET='$(LD)'
efd58f08
RW
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14635$as_echo "host tool" >&6; }
a7dc05b5
PB
14636 else
14637 # We need a cross tool
efd58f08
RW
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14639$as_echo "pre-installed" >&6; }
a7dc05b5
PB
14640 fi
14641fi
42f55f77 14642
efd58f08
RW
14643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14644$as_echo_n "checking where to find the target lipo... " >&6; }
a7dc05b5 14645if test "x${build}" != "x${host}" ; then
fef3f213
PB
14646 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14647 # We already found the complete path
7a81a717 14648 ac_dir=`dirname $LIPO_FOR_TARGET`
efd58f08
RW
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14650$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
14651 else
14652 # Canadian cross, just use what we found
efd58f08
RW
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14654$as_echo "pre-installed" >&6; }
fef3f213 14655 fi
a7dc05b5 14656else
fef3f213
PB
14657 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14658 # We already found the complete path
7a81a717 14659 ac_dir=`dirname $LIPO_FOR_TARGET`
efd58f08
RW
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14661$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213 14662 elif test "x$target" = "x$host"; then
a7dc05b5
PB
14663 # We can use an host tool
14664 LIPO_FOR_TARGET='$(LIPO)'
efd58f08
RW
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14666$as_echo "host tool" >&6; }
a7dc05b5
PB
14667 else
14668 # We need a cross tool
efd58f08
RW
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14670$as_echo "pre-installed" >&6; }
a7dc05b5
PB
14671 fi
14672fi
42f55f77 14673
efd58f08
RW
14674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14675$as_echo_n "checking where to find the target nm... " >&6; }
a7dc05b5 14676if test "x${build}" != "x${host}" ; then
fef3f213
PB
14677 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14678 # We already found the complete path
7a81a717 14679 ac_dir=`dirname $NM_FOR_TARGET`
efd58f08
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; }
fef3f213
PB
14682 else
14683 # Canadian cross, just use what we found
efd58f08
RW
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14685$as_echo "pre-installed" >&6; }
fef3f213 14686 fi
a7dc05b5
PB
14687else
14688 ok=yes
14689 case " ${configdirs} " in
14690 *" binutils "*) ;;
14691 *) ok=no ;;
14692 esac
b58b6ee1 14693
a7dc05b5
PB
14694 if test $ok = yes; then
14695 # An in-tree tool is available and we can use it
14696 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
efd58f08
RW
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14698$as_echo "just compiled" >&6; }
fef3f213
PB
14699 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14700 # We already found the complete path
7a81a717 14701 ac_dir=`dirname $NM_FOR_TARGET`
efd58f08
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; }
a7dc05b5
PB
14704 elif test "x$target" = "x$host"; then
14705 # We can use an host tool
14706 NM_FOR_TARGET='$(NM)'
efd58f08
RW
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14708$as_echo "host tool" >&6; }
a7dc05b5
PB
14709 else
14710 # We need a cross tool
efd58f08
RW
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14712$as_echo "pre-installed" >&6; }
a7dc05b5
PB
14713 fi
14714fi
42f55f77 14715
fe508576
CV
14716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14717$as_echo_n "checking where to find the target objcopy... " >&6; }
14718if test "x${build}" != "x${host}" ; then
14719 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14720 # We already found the complete path
14721 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14723$as_echo "pre-installed in $ac_dir" >&6; }
14724 else
14725 # Canadian cross, just use what we found
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14727$as_echo "pre-installed" >&6; }
14728 fi
14729else
14730 ok=yes
14731 case " ${configdirs} " in
14732 *" binutils "*) ;;
14733 *) ok=no ;;
14734 esac
14735
14736 if test $ok = yes; then
14737 # An in-tree tool is available and we can use it
14738 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14740$as_echo "just compiled" >&6; }
14741 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14742 # We already found the complete path
14743 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14745$as_echo "pre-installed in $ac_dir" >&6; }
14746 elif test "x$target" = "x$host"; then
14747 # We can use an host tool
14748 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14750$as_echo "host tool" >&6; }
14751 else
14752 # We need a cross tool
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14754$as_echo "pre-installed" >&6; }
14755 fi
14756fi
14757
efd58f08
RW
14758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14759$as_echo_n "checking where to find the target objdump... " >&6; }
a7dc05b5 14760if test "x${build}" != "x${host}" ; then
fef3f213
PB
14761 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14762 # We already found the complete path
7a81a717 14763 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
efd58f08
RW
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14765$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
14766 else
14767 # Canadian cross, just use what we found
efd58f08
RW
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14769$as_echo "pre-installed" >&6; }
fef3f213 14770 fi
a7dc05b5
PB
14771else
14772 ok=yes
14773 case " ${configdirs} " in
14774 *" binutils "*) ;;
14775 *) ok=no ;;
14776 esac
b58b6ee1 14777
a7dc05b5
PB
14778 if test $ok = yes; then
14779 # An in-tree tool is available and we can use it
14780 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
efd58f08
RW
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14782$as_echo "just compiled" >&6; }
fef3f213
PB
14783 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14784 # We already found the complete path
7a81a717 14785 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
efd58f08
RW
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14787$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
14788 elif test "x$target" = "x$host"; then
14789 # We can use an host tool
14790 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
efd58f08
RW
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14792$as_echo "host tool" >&6; }
a7dc05b5
PB
14793 else
14794 # We need a cross tool
efd58f08
RW
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14796$as_echo "pre-installed" >&6; }
a7dc05b5
PB
14797 fi
14798fi
42f55f77 14799
efd58f08
RW
14800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14801$as_echo_n "checking where to find the target ranlib... " >&6; }
a7dc05b5 14802if test "x${build}" != "x${host}" ; then
fef3f213
PB
14803 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14804 # We already found the complete path
7a81a717 14805 ac_dir=`dirname $RANLIB_FOR_TARGET`
efd58f08
RW
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14807$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
14808 else
14809 # Canadian cross, just use what we found
efd58f08
RW
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14811$as_echo "pre-installed" >&6; }
fef3f213 14812 fi
a7dc05b5
PB
14813else
14814 ok=yes
14815 case " ${configdirs} " in
14816 *" binutils "*) ;;
14817 *) ok=no ;;
14818 esac
b58b6ee1 14819
a7dc05b5
PB
14820 if test $ok = yes; then
14821 # An in-tree tool is available and we can use it
14822 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
efd58f08
RW
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14824$as_echo "just compiled" >&6; }
fef3f213
PB
14825 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14826 # We already found the complete path
7a81a717 14827 ac_dir=`dirname $RANLIB_FOR_TARGET`
efd58f08
RW
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14829$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
14830 elif test "x$target" = "x$host"; then
14831 # We can use an host tool
14832 RANLIB_FOR_TARGET='$(RANLIB)'
efd58f08
RW
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14834$as_echo "host tool" >&6; }
a7dc05b5
PB
14835 else
14836 # We need a cross tool
efd58f08
RW
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14838$as_echo "pre-installed" >&6; }
a7dc05b5
PB
14839 fi
14840fi
42f55f77 14841
46e7439b
DD
14842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14843$as_echo_n "checking where to find the target readelf... " >&6; }
14844if test "x${build}" != "x${host}" ; then
14845 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14846 # We already found the complete path
14847 ac_dir=`dirname $READELF_FOR_TARGET`
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14849$as_echo "pre-installed in $ac_dir" >&6; }
14850 else
14851 # Canadian cross, just use what we found
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14853$as_echo "pre-installed" >&6; }
14854 fi
14855else
14856 ok=yes
14857 case " ${configdirs} " in
14858 *" binutils "*) ;;
14859 *) ok=no ;;
14860 esac
14861
14862 if test $ok = yes; then
14863 # An in-tree tool is available and we can use it
14864 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14866$as_echo "just compiled" >&6; }
14867 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14868 # We already found the complete path
14869 ac_dir=`dirname $READELF_FOR_TARGET`
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14871$as_echo "pre-installed in $ac_dir" >&6; }
14872 elif test "x$target" = "x$host"; then
14873 # We can use an host tool
14874 READELF_FOR_TARGET='$(READELF)'
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14876$as_echo "host tool" >&6; }
14877 else
14878 # We need a cross tool
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14880$as_echo "pre-installed" >&6; }
14881 fi
14882fi
14883
efd58f08
RW
14884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14885$as_echo_n "checking where to find the target strip... " >&6; }
a7dc05b5 14886if test "x${build}" != "x${host}" ; then
fef3f213
PB
14887 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14888 # We already found the complete path
7a81a717 14889 ac_dir=`dirname $STRIP_FOR_TARGET`
efd58f08
RW
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14891$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
14892 else
14893 # Canadian cross, just use what we found
efd58f08
RW
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14895$as_echo "pre-installed" >&6; }
fef3f213 14896 fi
a7dc05b5
PB
14897else
14898 ok=yes
14899 case " ${configdirs} " in
14900 *" binutils "*) ;;
14901 *) ok=no ;;
14902 esac
b58b6ee1 14903
a7dc05b5
PB
14904 if test $ok = yes; then
14905 # An in-tree tool is available and we can use it
6f396dc7 14906 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
efd58f08
RW
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14908$as_echo "just compiled" >&6; }
fef3f213
PB
14909 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14910 # We already found the complete path
7a81a717 14911 ac_dir=`dirname $STRIP_FOR_TARGET`
efd58f08
RW
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14913$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
14914 elif test "x$target" = "x$host"; then
14915 # We can use an host tool
14916 STRIP_FOR_TARGET='$(STRIP)'
efd58f08
RW
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14918$as_echo "host tool" >&6; }
a7dc05b5
PB
14919 else
14920 # We need a cross tool
efd58f08
RW
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14922$as_echo "pre-installed" >&6; }
a7dc05b5
PB
14923 fi
14924fi
42f55f77 14925
efd58f08
RW
14926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14927$as_echo_n "checking where to find the target windres... " >&6; }
a7dc05b5 14928if test "x${build}" != "x${host}" ; then
fef3f213
PB
14929 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14930 # We already found the complete path
7a81a717 14931 ac_dir=`dirname $WINDRES_FOR_TARGET`
efd58f08
RW
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14933$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
14934 else
14935 # Canadian cross, just use what we found
efd58f08
RW
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14937$as_echo "pre-installed" >&6; }
fef3f213 14938 fi
a7dc05b5
PB
14939else
14940 ok=yes
14941 case " ${configdirs} " in
14942 *" binutils "*) ;;
14943 *) ok=no ;;
14944 esac
b58b6ee1 14945
a7dc05b5
PB
14946 if test $ok = yes; then
14947 # An in-tree tool is available and we can use it
14948 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
efd58f08
RW
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14950$as_echo "just compiled" >&6; }
fef3f213
PB
14951 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14952 # We already found the complete path
7a81a717 14953 ac_dir=`dirname $WINDRES_FOR_TARGET`
efd58f08
RW
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14955$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
14956 elif test "x$target" = "x$host"; then
14957 # We can use an host tool
14958 WINDRES_FOR_TARGET='$(WINDRES)'
efd58f08
RW
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14960$as_echo "host tool" >&6; }
a7dc05b5
PB
14961 else
14962 # We need a cross tool
efd58f08
RW
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14964$as_echo "pre-installed" >&6; }
a7dc05b5 14965 fi
bafecfd6 14966fi
ef76efc6 14967
efd58f08
RW
14968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14969$as_echo_n "checking where to find the target windmc... " >&6; }
bffcbe34
NC
14970if test "x${build}" != "x${host}" ; then
14971 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14972 # We already found the complete path
14973 ac_dir=`dirname $WINDMC_FOR_TARGET`
efd58f08
RW
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14975$as_echo "pre-installed in $ac_dir" >&6; }
bffcbe34
NC
14976 else
14977 # Canadian cross, just use what we found
efd58f08
RW
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14979$as_echo "pre-installed" >&6; }
bffcbe34
NC
14980 fi
14981else
14982 ok=yes
14983 case " ${configdirs} " in
14984 *" binutils "*) ;;
14985 *) ok=no ;;
14986 esac
14987
14988 if test $ok = yes; then
14989 # An in-tree tool is available and we can use it
14990 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
efd58f08
RW
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14992$as_echo "just compiled" >&6; }
bffcbe34
NC
14993 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14994 # We already found the complete path
14995 ac_dir=`dirname $WINDMC_FOR_TARGET`
efd58f08
RW
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14997$as_echo "pre-installed in $ac_dir" >&6; }
bffcbe34
NC
14998 elif test "x$target" = "x$host"; then
14999 # We can use an host tool
15000 WINDMC_FOR_TARGET='$(WINDMC)'
efd58f08
RW
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15002$as_echo "host tool" >&6; }
bffcbe34
NC
15003 else
15004 # We need a cross tool
efd58f08
RW
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15006$as_echo "pre-installed" >&6; }
bffcbe34
NC
15007 fi
15008fi
15009
ef76efc6
NN
15010
15011
a7dc05b5 15012
42f55f77 15013
bafecfd6
NN
15014# Certain tools may need extra flags.
15015AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15016RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15017NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15018
a7dc05b5
PB
15019# When building target libraries, except in a Canadian cross, we use
15020# the same toolchain as the compiler we just built.
15021COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15022COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15023COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15024if test $host = $build; then
15025 case " $configdirs " in
15026 *" gcc "*)
15027 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15028 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15029 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15030 ;;
15031 esac
15032fi
15033
15034
15035
15036
15037
efd58f08
RW
15038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15039$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15040# Check whether --enable-maintainer-mode was given.
15041if test "${enable_maintainer_mode+set}" = set; then :
15042 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
51dcf285
AO
15043else
15044 USE_MAINTAINER_MODE=no
efd58f08
RW
15045fi
15046
15047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15048$as_echo "$USE_MAINTAINER_MODE" >&6; }
51dcf285
AO
15049
15050
15051if test "$USE_MAINTAINER_MODE" = yes; then
15052 MAINTAINER_MODE_TRUE=
15053 MAINTAINER_MODE_FALSE='#'
15054else
15055 MAINTAINER_MODE_TRUE='#'
15056 MAINTAINER_MODE_FALSE=
b58b6ee1 15057fi
51dcf285
AO
15058MAINT=$MAINTAINER_MODE_TRUE
15059
457eaf16
NN
15060# ---------------------
15061# GCC bootstrap support
15062# ---------------------
15063
15064# Stage specific cflags for build.
15065stage1_cflags="-g"
15066case $build in
15067 vax-*-*)
15068 case ${GCC} in
15069 yes) stage1_cflags="-g -Wa,-J" ;;
15070 *) stage1_cflags="-g -J" ;;
15071 esac ;;
457eaf16
NN
15072esac
15073
c684482d 15074
457eaf16 15075
14a1406e 15076# Enable --enable-checking in stage1 of the compiler.
efd58f08
RW
15077# Check whether --enable-stage1-checking was given.
15078if test "${enable_stage1_checking+set}" = set; then :
15079 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14a1406e 15080else
1b410bcf 15081 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
fe508576
CV
15082 # For --disable-checking or implicit --enable-checking=release, avoid
15083 # setting --enable-checking=gc in the default stage1 checking for LTO
15084 # bootstraps. See PR62077.
fe508576
CV
15085 case $BUILD_CONFIG in
15086 *lto*)
d5632bcf
AK
15087 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15088 *)
15089 stage1_checking=--enable-checking=yes,types;;
fe508576 15090 esac
d5632bcf
AK
15091 if test "x$enable_checking" = x && \
15092 test -d ${srcdir}/gcc && \
15093 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
15094 stage1_checking=--enable-checking=yes,types,extra
15095 fi
14a1406e 15096else
1b410bcf 15097 stage1_checking=--enable-checking=$enable_checking,types
14a1406e 15098fi
efd58f08 15099fi
14a1406e
PB
15100
15101
b58b6ee1 15102
efd58f08
RW
15103# Enable -Werror in bootstrap stage2 and later.
15104# Check whether --enable-werror was given.
15105if test "${enable_werror+set}" = set; then :
15106 enableval=$enable_werror;
457eaf16 15107else
e6659c00 15108 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
457eaf16 15109 enable_werror=yes
48edcc3f
PB
15110else
15111 enable_werror=no
15112fi
efd58f08
RW
15113fi
15114
f06f3d7c
NN
15115case ${enable_werror} in
15116 yes) stage2_werror_flag="--enable-werror-always" ;;
15117 *) stage2_werror_flag="" ;;
457eaf16
NN
15118esac
15119
15120
afa221db
JBG
15121# Enable --enable-host-shared.
15122# Check whether --enable-host-shared was given.
15123if test "${enable_host_shared+set}" = set; then :
15124 enableval=$enable_host_shared; host_shared=$enableval
15125else
15126 host_shared=no
15127fi
15128
15129
15130
fe508576
CV
15131# PR jit/64780: Require the user to explicitly specify
15132# --enable-host-shared if the jit is enabled, hinting
15133# that they might want to do a separate configure/build of
15134# the jit, to avoid users from slowing down the rest of the
15135# compiler by enabling the jit.
15136if test ${host_shared} = "no" ; then
15137 case "${enable_languages}" in
15138 *jit*)
6d3ddf51 15139 as_fn_error $? "
fe508576
CV
15140Enabling language \"jit\" requires --enable-host-shared.
15141
15142--enable-host-shared typically slows the rest of the compiler down by
15143a few %, so you must explicitly enable it.
15144
15145If you want to build both the jit and the regular compiler, it is often
15146best to do this via two separate configure/builds, in separate
15147directories, to avoid imposing the performance cost of
15148--enable-host-shared on the regular compiler." "$LINENO" 5
15149 ;;
15150 *)
15151 ;;
15152 esac
15153fi
15154
121f0eb2
RW
15155# Specify what files to not compare during bootstrap.
15156
15157compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15158case "$target" in
15159 hppa*64*-*-hpux*) ;;
15160 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
ddb7b65a 15161 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
121f0eb2
RW
15162esac
15163
15164
efd58f08
RW
15165ac_config_files="$ac_config_files Makefile"
15166
b58b6ee1 15167cat >confcache <<\_ACEOF
bafecfd6
NN
15168# This file is a shell script that caches the results of configure
15169# tests run on this system so they can be shared between configure
b58b6ee1
DJ
15170# scripts and configure runs, see configure's option --config-cache.
15171# It is not useful on other systems. If it contains results you don't
15172# want to keep, you may remove or edit it.
bafecfd6 15173#
b58b6ee1
DJ
15174# config.status only pays attention to the cache file if you give it
15175# the --recheck option to rerun configure.
bafecfd6 15176#
b58b6ee1
DJ
15177# `ac_cv_env_foo' variables (set or unset) will be overridden when
15178# loading this file, other *unset* `ac_cv_foo' will be assigned the
15179# following values.
15180
15181_ACEOF
15182
bafecfd6
NN
15183# The following way of writing the cache mishandles newlines in values,
15184# but we know of no workaround that is simple, portable, and efficient.
efd58f08 15185# So, we kill variables containing newlines.
bafecfd6
NN
15186# Ultrix sh set writes to stderr and can't be redirected directly,
15187# and sets the high bit in the cache file unless we assign to the vars.
efd58f08
RW
15188(
15189 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15190 eval ac_val=\$$ac_var
15191 case $ac_val in #(
15192 *${as_nl}*)
15193 case $ac_var in #(
15194 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15195$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15196 esac
15197 case $ac_var in #(
15198 _ | IFS | as_nl) ;; #(
15199 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15200 *) { eval $ac_var=; unset $ac_var;} ;;
15201 esac ;;
15202 esac
15203 done
15204
b58b6ee1 15205 (set) 2>&1 |
efd58f08
RW
15206 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15207 *${as_nl}ac_space=\ *)
15208 # `set' does not quote correctly, so add quotes: double-quote
15209 # substitution turns \\\\ into \\, and sed turns \\ into \.
b58b6ee1
DJ
15210 sed -n \
15211 "s/'/'\\\\''/g;
15212 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
efd58f08 15213 ;; #(
b58b6ee1
DJ
15214 *)
15215 # `set' quotes correctly as required by POSIX, so do not add quotes.
efd58f08 15216 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b58b6ee1 15217 ;;
efd58f08
RW
15218 esac |
15219 sort
15220) |
b58b6ee1 15221 sed '
efd58f08 15222 /^ac_cv_env_/b end
b58b6ee1 15223 t clear
efd58f08 15224 :clear
b58b6ee1
DJ
15225 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15226 t end
efd58f08
RW
15227 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15228 :end' >>confcache
15229if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15230 if test -w "$cache_file"; then
6d3ddf51 15231 if test "x$cache_file" != "x/dev/null"; then
efd58f08
RW
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15233$as_echo "$as_me: updating cache $cache_file" >&6;}
6d3ddf51
SM
15234 if test ! -f "$cache_file" || test -h "$cache_file"; then
15235 cat confcache >"$cache_file"
15236 else
15237 case $cache_file in #(
15238 */* | ?:*)
15239 mv -f confcache "$cache_file"$$ &&
15240 mv -f "$cache_file"$$ "$cache_file" ;; #(
15241 *)
15242 mv -f confcache "$cache_file" ;;
15243 esac
15244 fi
15245 fi
bafecfd6 15246 else
efd58f08
RW
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15248$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
bafecfd6 15249 fi
712e2a32 15250fi
bafecfd6 15251rm -f confcache
712e2a32 15252
bafecfd6
NN
15253test "x$prefix" = xNONE && prefix=$ac_default_prefix
15254# Let make expand exec_prefix.
15255test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
712e2a32 15256
bafecfd6
NN
15257# Transform confdefs.h into DEFS.
15258# Protect against shell expansion while executing Makefile rules.
15259# Protect against Makefile macro expansion.
b58b6ee1
DJ
15260#
15261# If the first sed substitution is executed (which looks for macros that
efd58f08 15262# take arguments), then branch to the quote section. Otherwise,
b58b6ee1 15263# look for a macro that doesn't take arguments.
efd58f08
RW
15264ac_script='
15265:mline
15266/\\$/{
15267 N
15268 s,\\\n,,
15269 b mline
15270}
b58b6ee1 15271t clear
efd58f08
RW
15272:clear
15273s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
b58b6ee1 15274t quote
efd58f08 15275s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
b58b6ee1 15276t quote
efd58f08
RW
15277b any
15278:quote
15279s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15280s/\[/\\&/g
15281s/\]/\\&/g
15282s/\$/$$/g
15283H
15284:any
15285${
15286 g
15287 s/^\n//
15288 s/\n/ /g
15289 p
15290}
15291'
15292DEFS=`sed -n "$ac_script" confdefs.h`
b58b6ee1
DJ
15293
15294
15295ac_libobjs=
15296ac_ltlibobjs=
6d3ddf51 15297U=
b58b6ee1
DJ
15298for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15299 # 1. Remove the extension, and $U if already installed.
efd58f08
RW
15300 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15301 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15302 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15303 # will be set to the directory where LIBOBJS objects are built.
15304 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15305 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b58b6ee1
DJ
15306done
15307LIBOBJS=$ac_libobjs
712e2a32 15308
b58b6ee1 15309LTLIBOBJS=$ac_ltlibobjs
76402c80 15310
f69e2532 15311
b58b6ee1 15312
6d3ddf51 15313: "${CONFIG_STATUS=./config.status}"
efd58f08 15314ac_write_fail=0
b58b6ee1
DJ
15315ac_clean_files_save=$ac_clean_files
15316ac_clean_files="$ac_clean_files $CONFIG_STATUS"
efd58f08
RW
15317{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15318$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15319as_write_fail=0
15320cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b58b6ee1
DJ
15321#! $SHELL
15322# Generated by $as_me.
bafecfd6 15323# Run this file to recreate the current configuration.
bafecfd6 15324# Compiler output produced by configure, useful for debugging
b58b6ee1 15325# configure, is in config.log if it exists.
76402c80 15326
b58b6ee1
DJ
15327debug=false
15328ac_cs_recheck=false
15329ac_cs_silent=false
b58b6ee1 15330
efd58f08
RW
15331SHELL=\${CONFIG_SHELL-$SHELL}
15332export SHELL
15333_ASEOF
15334cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15335## -------------------- ##
15336## M4sh Initialization. ##
15337## -------------------- ##
15338
15339# Be more Bourne compatible
15340DUALCASE=1; export DUALCASE # for MKS sh
15341if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b58b6ee1
DJ
15342 emulate sh
15343 NULLCMD=:
efd58f08 15344 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b58b6ee1
DJ
15345 # is contrary to our usage. Disable this feature.
15346 alias -g '${1+"$@"}'='"$@"'
efd58f08
RW
15347 setopt NO_GLOB_SUBST
15348else
15349 case `(set -o) 2>/dev/null` in #(
15350 *posix*) :
15351 set -o posix ;; #(
15352 *) :
15353 ;;
15354esac
b58b6ee1 15355fi
b58b6ee1 15356
efd58f08
RW
15357
15358as_nl='
15359'
15360export as_nl
15361# Printing a long string crashes Solaris 7 /usr/bin/printf.
15362as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15363as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15364as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15365# Prefer a ksh shell builtin over an external printf program on Solaris,
15366# but without wasting forks for bash or zsh.
15367if test -z "$BASH_VERSION$ZSH_VERSION" \
15368 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15369 as_echo='print -r --'
15370 as_echo_n='print -rn --'
15371elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15372 as_echo='printf %s\n'
15373 as_echo_n='printf %s'
15374else
15375 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15376 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15377 as_echo_n='/usr/ucb/echo -n'
15378 else
15379 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15380 as_echo_n_body='eval
15381 arg=$1;
15382 case $arg in #(
15383 *"$as_nl"*)
15384 expr "X$arg" : "X\\(.*\\)$as_nl";
15385 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15386 esac;
15387 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15388 '
15389 export as_echo_n_body
15390 as_echo_n='sh -c $as_echo_n_body as_echo'
15391 fi
15392 export as_echo_body
15393 as_echo='sh -c $as_echo_body as_echo'
b58b6ee1
DJ
15394fi
15395
efd58f08
RW
15396# The user is always right.
15397if test "${PATH_SEPARATOR+set}" != set; then
15398 PATH_SEPARATOR=:
15399 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15400 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15401 PATH_SEPARATOR=';'
15402 }
15403fi
15404
15405
15406# IFS
15407# We need space, tab and new line, in precisely that order. Quoting is
15408# there to prevent editors from complaining about space-tab.
15409# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15410# splitting by setting IFS to empty value.)
15411IFS=" "" $as_nl"
15412
15413# Find who we are. Look in the path if we contain no directory separator.
6d3ddf51 15414as_myself=
efd58f08
RW
15415case $0 in #((
15416 *[\\/]* ) as_myself=$0 ;;
15417 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15418for as_dir in $PATH
15419do
15420 IFS=$as_save_IFS
15421 test -z "$as_dir" && as_dir=.
15422 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15423 done
15424IFS=$as_save_IFS
15425
15426 ;;
15427esac
15428# We did not find ourselves, most probably we were run as `sh COMMAND'
15429# in which case we are not to be found in the path.
15430if test "x$as_myself" = x; then
15431 as_myself=$0
15432fi
15433if test ! -f "$as_myself"; then
15434 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15435 exit 1
15436fi
b58b6ee1 15437
efd58f08
RW
15438# Unset variables that we do not need and which cause bugs (e.g. in
15439# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15440# suppresses any "Segmentation fault" message there. '((' could
15441# trigger a bug in pdksh 5.2.14.
15442for as_var in BASH_ENV ENV MAIL MAILPATH
15443do eval test x\${$as_var+set} = xset \
15444 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15445done
b58b6ee1
DJ
15446PS1='$ '
15447PS2='> '
15448PS4='+ '
15449
15450# NLS nuisances.
efd58f08
RW
15451LC_ALL=C
15452export LC_ALL
15453LANGUAGE=C
15454export LANGUAGE
15455
15456# CDPATH.
15457(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15458
15459
6d3ddf51
SM
15460# as_fn_error STATUS ERROR [LINENO LOG_FD]
15461# ----------------------------------------
efd58f08
RW
15462# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15463# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6d3ddf51 15464# script with STATUS, using 1 if that was 0.
efd58f08
RW
15465as_fn_error ()
15466{
6d3ddf51
SM
15467 as_status=$1; test $as_status -eq 0 && as_status=1
15468 if test "$4"; then
15469 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15470 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b58b6ee1 15471 fi
6d3ddf51 15472 $as_echo "$as_me: error: $2" >&2
efd58f08
RW
15473 as_fn_exit $as_status
15474} # as_fn_error
15475
15476
15477# as_fn_set_status STATUS
15478# -----------------------
15479# Set $? to STATUS, without forking.
15480as_fn_set_status ()
15481{
15482 return $1
15483} # as_fn_set_status
15484
15485# as_fn_exit STATUS
15486# -----------------
15487# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15488as_fn_exit ()
15489{
15490 set +e
15491 as_fn_set_status $1
15492 exit $1
15493} # as_fn_exit
15494
15495# as_fn_unset VAR
15496# ---------------
15497# Portably unset VAR.
15498as_fn_unset ()
15499{
15500 { eval $1=; unset $1;}
15501}
15502as_unset=as_fn_unset
15503# as_fn_append VAR VALUE
15504# ----------------------
15505# Append the text in VALUE to the end of the definition contained in VAR. Take
15506# advantage of any shell optimizations that allow amortized linear growth over
15507# repeated appends, instead of the typical quadratic growth present in naive
15508# implementations.
15509if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15510 eval 'as_fn_append ()
15511 {
15512 eval $1+=\$2
15513 }'
15514else
15515 as_fn_append ()
15516 {
15517 eval $1=\$$1\$2
15518 }
15519fi # as_fn_append
15520
15521# as_fn_arith ARG...
15522# ------------------
15523# Perform arithmetic evaluation on the ARGs, and store the result in the
15524# global $as_val. Take advantage of shells that can avoid forks. The arguments
15525# must be portable across $(()) and expr.
15526if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15527 eval 'as_fn_arith ()
15528 {
15529 as_val=$(( $* ))
15530 }'
15531else
15532 as_fn_arith ()
15533 {
15534 as_val=`expr "$@" || test $? -eq 1`
15535 }
15536fi # as_fn_arith
15537
b58b6ee1 15538
efd58f08
RW
15539if expr a : '\(a\)' >/dev/null 2>&1 &&
15540 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b58b6ee1
DJ
15541 as_expr=expr
15542else
15543 as_expr=false
15544fi
15545
efd58f08 15546if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b58b6ee1
DJ
15547 as_basename=basename
15548else
15549 as_basename=false
15550fi
15551
efd58f08
RW
15552if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15553 as_dirname=dirname
15554else
15555 as_dirname=false
15556fi
b58b6ee1 15557
efd58f08 15558as_me=`$as_basename -- "$0" ||
b58b6ee1
DJ
15559$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15560 X"$0" : 'X\(//\)$' \| \
efd58f08
RW
15561 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15562$as_echo X/"$0" |
15563 sed '/^.*\/\([^/][^/]*\)\/*$/{
15564 s//\1/
15565 q
15566 }
15567 /^X\/\(\/\/\)$/{
15568 s//\1/
15569 q
15570 }
15571 /^X\/\(\/\).*/{
15572 s//\1/
15573 q
15574 }
15575 s/.*/./; q'`
b58b6ee1 15576
b58b6ee1
DJ
15577# Avoid depending upon Character Ranges.
15578as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15579as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15580as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15581as_cr_digits='0123456789'
15582as_cr_alnum=$as_cr_Letters$as_cr_digits
15583
efd58f08
RW
15584ECHO_C= ECHO_N= ECHO_T=
15585case `echo -n x` in #(((((
15586-n*)
15587 case `echo 'xy\c'` in
15588 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15589 xy) ECHO_C='\c';;
15590 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15591 ECHO_T=' ';;
15592 esac;;
15593*)
15594 ECHO_N='-n';;
b58b6ee1
DJ
15595esac
15596
efd58f08
RW
15597rm -f conf$$ conf$$.exe conf$$.file
15598if test -d conf$$.dir; then
15599 rm -f conf$$.dir/conf$$.file
b58b6ee1 15600else
efd58f08
RW
15601 rm -f conf$$.dir
15602 mkdir conf$$.dir 2>/dev/null
b58b6ee1 15603fi
efd58f08
RW
15604if (echo >conf$$.file) 2>/dev/null; then
15605 if ln -s conf$$.file conf$$ 2>/dev/null; then
b58b6ee1 15606 as_ln_s='ln -s'
efd58f08
RW
15607 # ... but there are two gotchas:
15608 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15609 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6d3ddf51 15610 # In both cases, we have to default to `cp -pR'.
efd58f08 15611 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6d3ddf51 15612 as_ln_s='cp -pR'
efd58f08
RW
15613 elif ln conf$$.file conf$$ 2>/dev/null; then
15614 as_ln_s=ln
15615 else
6d3ddf51 15616 as_ln_s='cp -pR'
b58b6ee1 15617 fi
b58b6ee1 15618else
6d3ddf51 15619 as_ln_s='cp -pR'
b58b6ee1 15620fi
efd58f08
RW
15621rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15622rmdir conf$$.dir 2>/dev/null
15623
15624
15625# as_fn_mkdir_p
15626# -------------
15627# Create "$as_dir" as a directory, including parents if necessary.
15628as_fn_mkdir_p ()
15629{
15630
15631 case $as_dir in #(
15632 -*) as_dir=./$as_dir;;
15633 esac
15634 test -d "$as_dir" || eval $as_mkdir_p || {
15635 as_dirs=
15636 while :; do
15637 case $as_dir in #(
15638 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15639 *) as_qdir=$as_dir;;
15640 esac
15641 as_dirs="'$as_qdir' $as_dirs"
15642 as_dir=`$as_dirname -- "$as_dir" ||
15643$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15644 X"$as_dir" : 'X\(//\)[^/]' \| \
15645 X"$as_dir" : 'X\(//\)$' \| \
15646 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15647$as_echo X"$as_dir" |
15648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15649 s//\1/
15650 q
15651 }
15652 /^X\(\/\/\)[^/].*/{
15653 s//\1/
15654 q
15655 }
15656 /^X\(\/\/\)$/{
15657 s//\1/
15658 q
15659 }
15660 /^X\(\/\).*/{
15661 s//\1/
15662 q
15663 }
15664 s/.*/./; q'`
15665 test -d "$as_dir" && break
15666 done
15667 test -z "$as_dirs" || eval "mkdir $as_dirs"
6d3ddf51 15668 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
efd58f08 15669
b58b6ee1 15670
efd58f08 15671} # as_fn_mkdir_p
b58b6ee1 15672if mkdir -p . 2>/dev/null; then
efd58f08 15673 as_mkdir_p='mkdir -p "$as_dir"'
b58b6ee1
DJ
15674else
15675 test -d ./-p && rmdir ./-p
15676 as_mkdir_p=false
15677fi
15678
6d3ddf51
SM
15679
15680# as_fn_executable_p FILE
15681# -----------------------
15682# Test if FILE is an executable regular file.
15683as_fn_executable_p ()
15684{
15685 test -f "$1" && test -x "$1"
15686} # as_fn_executable_p
15687as_test_x='test -x'
15688as_executable_p=as_fn_executable_p
b58b6ee1
DJ
15689
15690# Sed expression to map a string onto a valid CPP name.
15691as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15692
15693# Sed expression to map a string onto a valid variable name.
15694as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15695
15696
b58b6ee1 15697exec 6>&1
efd58f08
RW
15698## ----------------------------------- ##
15699## Main body of $CONFIG_STATUS script. ##
15700## ----------------------------------- ##
15701_ASEOF
15702test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15703
15704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15705# Save the log message, to keep $0 and so on meaningful, and to
b58b6ee1 15706# report actual input values of CONFIG_FILES etc. instead of their
efd58f08
RW
15707# values after options handling.
15708ac_log="
b58b6ee1 15709This file was extended by $as_me, which was
6d3ddf51 15710generated by GNU Autoconf 2.69. Invocation command line was
b58b6ee1
DJ
15711
15712 CONFIG_FILES = $CONFIG_FILES
15713 CONFIG_HEADERS = $CONFIG_HEADERS
15714 CONFIG_LINKS = $CONFIG_LINKS
15715 CONFIG_COMMANDS = $CONFIG_COMMANDS
15716 $ $0 $@
15717
efd58f08
RW
15718on `(hostname || uname -n) 2>/dev/null | sed 1q`
15719"
15720
b58b6ee1
DJ
15721_ACEOF
15722
efd58f08
RW
15723case $ac_config_files in *"
15724"*) set x $ac_config_files; shift; ac_config_files=$*;;
15725esac
b58b6ee1 15726
b58b6ee1 15727
b58b6ee1 15728
efd58f08
RW
15729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15730# Files that config.status was made for.
15731config_files="$ac_config_files"
b58b6ee1 15732
efd58f08 15733_ACEOF
b58b6ee1 15734
efd58f08 15735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b58b6ee1 15736ac_cs_usage="\
efd58f08
RW
15737\`$as_me' instantiates files and other configuration actions
15738from templates according to the current configuration. Unless the files
15739and actions are specified as TAGs, all are instantiated by default.
b58b6ee1 15740
efd58f08 15741Usage: $0 [OPTION]... [TAG]...
b58b6ee1
DJ
15742
15743 -h, --help print this help, then exit
efd58f08 15744 -V, --version print version number and configuration settings, then exit
6d3ddf51 15745 --config print configuration, then exit
efd58f08
RW
15746 -q, --quiet, --silent
15747 do not print progress messages
b58b6ee1
DJ
15748 -d, --debug don't remove temporary files
15749 --recheck update $as_me by reconfiguring in the same conditions
efd58f08
RW
15750 --file=FILE[:TEMPLATE]
15751 instantiate the configuration file FILE
b58b6ee1
DJ
15752
15753Configuration files:
15754$config_files
15755
efd58f08 15756Report bugs to the package provider."
b58b6ee1 15757
efd58f08
RW
15758_ACEOF
15759cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6d3ddf51 15760ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b58b6ee1
DJ
15761ac_cs_version="\\
15762config.status
6d3ddf51
SM
15763configured by $0, generated by GNU Autoconf 2.69,
15764 with options \\"\$ac_cs_config\\"
b58b6ee1 15765
6d3ddf51 15766Copyright (C) 2012 Free Software Foundation, Inc.
b58b6ee1
DJ
15767This config.status script is free software; the Free Software Foundation
15768gives unlimited permission to copy, distribute and modify it."
efd58f08
RW
15769
15770ac_pwd='$ac_pwd'
15771srcdir='$srcdir'
15772INSTALL='$INSTALL'
a8a01987 15773AWK='$AWK'
efd58f08 15774test -n "\$AWK" || AWK=awk
b58b6ee1
DJ
15775_ACEOF
15776
efd58f08
RW
15777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15778# The default lists apply if the user does not specify any file.
b58b6ee1
DJ
15779ac_need_defaults=:
15780while test $# != 0
bafecfd6 15781do
b58b6ee1 15782 case $1 in
6d3ddf51 15783 --*=?*)
efd58f08
RW
15784 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15785 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b58b6ee1
DJ
15786 ac_shift=:
15787 ;;
6d3ddf51
SM
15788 --*=)
15789 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15790 ac_optarg=
15791 ac_shift=:
15792 ;;
efd58f08 15793 *)
b58b6ee1
DJ
15794 ac_option=$1
15795 ac_optarg=$2
15796 ac_shift=shift
15797 ;;
b58b6ee1
DJ
15798 esac
15799
15800 case $ac_option in
15801 # Handling of the options.
bafecfd6 15802 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b58b6ee1 15803 ac_cs_recheck=: ;;
efd58f08
RW
15804 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15805 $as_echo "$ac_cs_version"; exit ;;
6d3ddf51
SM
15806 --config | --confi | --conf | --con | --co | --c )
15807 $as_echo "$ac_cs_config"; exit ;;
efd58f08 15808 --debug | --debu | --deb | --de | --d | -d )
b58b6ee1
DJ
15809 debug=: ;;
15810 --file | --fil | --fi | --f )
15811 $ac_shift
efd58f08
RW
15812 case $ac_optarg in
15813 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6d3ddf51 15814 '') as_fn_error $? "missing file argument" ;;
efd58f08
RW
15815 esac
15816 as_fn_append CONFIG_FILES " '$ac_optarg'"
b58b6ee1 15817 ac_need_defaults=false;;
efd58f08
RW
15818 --he | --h | --help | --hel | -h )
15819 $as_echo "$ac_cs_usage"; exit ;;
b58b6ee1
DJ
15820 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15821 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15822 ac_cs_silent=: ;;
15823
15824 # This is an error.
6d3ddf51 15825 -*) as_fn_error $? "unrecognized option: \`$1'
efd58f08 15826Try \`$0 --help' for more information." ;;
b58b6ee1 15827
efd58f08
RW
15828 *) as_fn_append ac_config_targets " $1"
15829 ac_need_defaults=false ;;
b58b6ee1 15830
76402c80 15831 esac
b58b6ee1 15832 shift
76402c80
CM
15833done
15834
b58b6ee1 15835ac_configure_extra_args=
76402c80 15836
b58b6ee1
DJ
15837if $ac_cs_silent; then
15838 exec 6>/dev/null
15839 ac_configure_extra_args="$ac_configure_extra_args --silent"
15840fi
76402c80 15841
b58b6ee1 15842_ACEOF
efd58f08 15843cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b58b6ee1 15844if \$ac_cs_recheck; then
6d3ddf51 15845 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
efd58f08
RW
15846 shift
15847 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15848 CONFIG_SHELL='$SHELL'
15849 export CONFIG_SHELL
15850 exec "\$@"
b58b6ee1
DJ
15851fi
15852
15853_ACEOF
efd58f08
RW
15854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15855exec 5>>config.log
15856{
15857 echo
15858 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15859## Running $as_me. ##
15860_ASBOX
15861 $as_echo "$ac_log"
15862} >&5
b58b6ee1 15863
efd58f08
RW
15864_ACEOF
15865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
94f4a7b9
RW
15866#
15867# INIT-COMMANDS
15868#
15869extrasub_build="$extrasub_build"
15870 extrasub_host="$extrasub_host"
15871 extrasub_target="$extrasub_target"
15872
efd58f08 15873_ACEOF
b58b6ee1 15874
efd58f08 15875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b58b6ee1 15876
efd58f08 15877# Handling of arguments.
b58b6ee1
DJ
15878for ac_config_target in $ac_config_targets
15879do
efd58f08
RW
15880 case $ac_config_target in
15881 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15882
6d3ddf51 15883 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b58b6ee1
DJ
15884 esac
15885done
15886
efd58f08 15887
b58b6ee1
DJ
15888# If the user did not use the arguments to specify the items to instantiate,
15889# then the envvar interface is used. Set only those that are not.
15890# We use the long form for the default assignment because of an extremely
15891# bizarre bug on SunOS 4.1.3.
15892if $ac_need_defaults; then
15893 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15894fi
15895
15896# Have a temporary directory for convenience. Make it in the build tree
efd58f08 15897# simply because there is no reason against having it here, and in addition,
b58b6ee1 15898# creating and moving files from /tmp can sometimes cause problems.
efd58f08
RW
15899# Hook for its removal unless debugging.
15900# Note that there is a small window in which the directory will not be cleaned:
15901# after its creation but before its name has been assigned to `$tmp'.
b58b6ee1
DJ
15902$debug ||
15903{
6d3ddf51 15904 tmp= ac_tmp=
efd58f08 15905 trap 'exit_status=$?
6d3ddf51
SM
15906 : "${ac_tmp:=$tmp}"
15907 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
efd58f08
RW
15908' 0
15909 trap 'as_fn_exit 1' 1 2 13 15
b58b6ee1 15910}
b58b6ee1
DJ
15911# Create a (secure) tmp directory for tmp files.
15912
15913{
efd58f08 15914 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6d3ddf51 15915 test -d "$tmp"
b58b6ee1
DJ
15916} ||
15917{
efd58f08
RW
15918 tmp=./conf$$-$RANDOM
15919 (umask 077 && mkdir "$tmp")
6d3ddf51
SM
15920} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15921ac_tmp=$tmp
efd58f08
RW
15922
15923# Set up the scripts for CONFIG_FILES section.
15924# No need to generate them if there are no CONFIG_FILES.
15925# This happens for instance with `./config.status config.h'.
15926if test -n "$CONFIG_FILES"; then
15927
15928if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15929 ac_cs_awk_getline=:
15930 ac_cs_awk_pipe_init=
15931 ac_cs_awk_read_file='
15932 while ((getline aline < (F[key])) > 0)
15933 print(aline)
15934 close(F[key])'
15935 ac_cs_awk_pipe_fini=
15936else
15937 ac_cs_awk_getline=false
15938 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15939 ac_cs_awk_read_file='
15940 print "|#_!!_#|"
15941 print "cat " F[key] " &&"
15942 '$ac_cs_awk_pipe_init
15943 # The final `:' finishes the AND list.
15944 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15945fi
15946ac_cr=`echo X | tr X '\015'`
15947# On cygwin, bash can eat \r inside `` if the user requested igncr.
15948# But we know of no other shell where ac_cr would be empty at this
15949# point, so we can use a bashism as a fallback.
15950if test "x$ac_cr" = x; then
15951 eval ac_cr=\$\'\\r\'
15952fi
15953ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15954if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6d3ddf51 15955 ac_cs_awk_cr='\\r'
efd58f08
RW
15956else
15957 ac_cs_awk_cr=$ac_cr
15958fi
15959
6d3ddf51 15960echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
efd58f08
RW
15961_ACEOF
15962
15963# Create commands to substitute file output variables.
b58b6ee1 15964{
efd58f08 15965 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
6d3ddf51 15966 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
efd58f08
RW
15967 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15968 echo "_ACAWK" &&
15969 echo "_ACEOF"
15970} >conf$$files.sh &&
15971. ./conf$$files.sh ||
6d3ddf51 15972 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
efd58f08 15973rm -f conf$$files.sh
b58b6ee1 15974
efd58f08
RW
15975{
15976 echo "cat >conf$$subs.awk <<_ACEOF" &&
15977 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15978 echo "_ACEOF"
15979} >conf$$subs.sh ||
6d3ddf51
SM
15980 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15981ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
efd58f08
RW
15982ac_delim='%!_!# '
15983for ac_last_try in false false false false false :; do
15984 . ./conf$$subs.sh ||
6d3ddf51 15985 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
efd58f08
RW
15986
15987 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15988 if test $ac_delim_n = $ac_delim_num; then
15989 break
15990 elif $ac_last_try; then
6d3ddf51 15991 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
efd58f08
RW
15992 else
15993 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15994 fi
15995done
15996rm -f conf$$subs.sh
15997
15998cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6d3ddf51 15999cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
b58b6ee1 16000_ACEOF
efd58f08
RW
16001sed -n '
16002h
16003s/^/S["/; s/!.*/"]=/
16004p
16005g
16006s/^[^!]*!//
16007:repl
16008t repl
16009s/'"$ac_delim"'$//
16010t delim
16011:nl
16012h
6d3ddf51 16013s/\(.\{148\}\)..*/\1/
efd58f08
RW
16014t more1
16015s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16016p
16017n
16018b repl
16019:more1
16020s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16021p
16022g
16023s/.\{148\}//
16024t nl
16025:delim
16026h
6d3ddf51 16027s/\(.\{148\}\)..*/\1/
efd58f08
RW
16028t more2
16029s/["\\]/\\&/g; s/^/"/; s/$/"/
16030p
16031b
16032:more2
16033s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16034p
16035g
16036s/.\{148\}//
16037t delim
16038' <conf$$subs.awk | sed '
16039/^[^""]/{
16040 N
16041 s/\n//
16042}
16043' >>$CONFIG_STATUS || ac_write_fail=1
16044rm -f conf$$subs.awk
16045cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16046_ACAWK
6d3ddf51 16047cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
efd58f08
RW
16048 for (key in S) S_is_set[key] = 1
16049 FS = "\a"
16050 \$ac_cs_awk_pipe_init
16051}
16052{
16053 line = $ 0
16054 nfields = split(line, field, "@")
16055 substed = 0
16056 len = length(field[1])
16057 for (i = 2; i < nfields; i++) {
16058 key = field[i]
16059 keylen = length(key)
16060 if (S_is_set[key]) {
16061 value = S[key]
16062 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16063 len += length(value) + length(field[++i])
16064 substed = 1
16065 } else
16066 len += 1 + keylen
16067 }
16068 if (nfields == 3 && !substed) {
16069 key = field[2]
16070 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16071 \$ac_cs_awk_read_file
16072 next
16073 }
16074 }
16075 print line
16076}
16077\$ac_cs_awk_pipe_fini
16078_ACAWK
16079_ACEOF
16080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16081if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16082 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16083else
16084 cat
6d3ddf51
SM
16085fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16086 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
efd58f08
RW
16087_ACEOF
16088
6d3ddf51
SM
16089# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16090# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
efd58f08
RW
16091# trailing colons and then remove the whole line if VPATH becomes empty
16092# (actually we leave an empty line to preserve line numbers).
16093if test "x$srcdir" = x.; then
6d3ddf51
SM
16094 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16095h
16096s///
16097s/^/:/
16098s/[ ]*$/:/
16099s/:\$(srcdir):/:/g
16100s/:\${srcdir}:/:/g
16101s/:@srcdir@:/:/g
16102s/^:*//
efd58f08 16103s/:*$//
6d3ddf51
SM
16104x
16105s/\(=[ ]*\).*/\1/
16106G
16107s/\n//
efd58f08
RW
16108s/^[^=]*=[ ]*$//
16109}'
16110fi
b58b6ee1 16111
efd58f08
RW
16112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16113fi # test -n "$CONFIG_FILES"
b58b6ee1 16114
b58b6ee1 16115
efd58f08
RW
16116eval set X " :F $CONFIG_FILES "
16117shift
16118for ac_tag
16119do
16120 case $ac_tag in
16121 :[FHLC]) ac_mode=$ac_tag; continue;;
16122 esac
16123 case $ac_mode$ac_tag in
16124 :[FHL]*:*);;
6d3ddf51 16125 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
efd58f08
RW
16126 :[FH]-) ac_tag=-:-;;
16127 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16128 esac
16129 ac_save_IFS=$IFS
16130 IFS=:
16131 set x $ac_tag
16132 IFS=$ac_save_IFS
16133 shift
16134 ac_file=$1
16135 shift
a3acbf46 16136
efd58f08
RW
16137 case $ac_mode in
16138 :L) ac_source=$1;;
16139 :[FH])
16140 ac_file_inputs=
16141 for ac_f
16142 do
16143 case $ac_f in
6d3ddf51 16144 -) ac_f="$ac_tmp/stdin";;
efd58f08
RW
16145 *) # Look for the file first in the build tree, then in the source tree
16146 # (if the path is not absolute). The absolute path cannot be DOS-style,
16147 # because $ac_f cannot contain `:'.
16148 test -f "$ac_f" ||
16149 case $ac_f in
16150 [\\/$]*) false;;
16151 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16152 esac ||
6d3ddf51 16153 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
efd58f08
RW
16154 esac
16155 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16156 as_fn_append ac_file_inputs " '$ac_f'"
16157 done
b58b6ee1 16158
efd58f08
RW
16159 # Let's still pretend it is `configure' which instantiates (i.e., don't
16160 # use $as_me), people would be surprised to read:
16161 # /* config.h. Generated by config.status. */
16162 configure_input='Generated from '`
16163 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16164 `' by configure.'
16165 if test x"$ac_file" != x-; then
16166 configure_input="$ac_file. $configure_input"
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16168$as_echo "$as_me: creating $ac_file" >&6;}
bafecfd6 16169 fi
efd58f08
RW
16170 # Neutralize special characters interpreted by sed in replacement strings.
16171 case $configure_input in #(
16172 *\&* | *\|* | *\\* )
16173 ac_sed_conf_input=`$as_echo "$configure_input" |
16174 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16175 *) ac_sed_conf_input=$configure_input;;
16176 esac
f69e2532 16177
efd58f08 16178 case $ac_tag in
6d3ddf51
SM
16179 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
efd58f08
RW
16181 esac
16182 ;;
bafecfd6 16183 esac
a3acbf46 16184
efd58f08 16185 ac_dir=`$as_dirname -- "$ac_file" ||
b58b6ee1
DJ
16186$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16187 X"$ac_file" : 'X\(//\)[^/]' \| \
16188 X"$ac_file" : 'X\(//\)$' \| \
efd58f08
RW
16189 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16190$as_echo X"$ac_file" |
16191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16192 s//\1/
16193 q
16194 }
16195 /^X\(\/\/\)[^/].*/{
16196 s//\1/
16197 q
16198 }
16199 /^X\(\/\/\)$/{
16200 s//\1/
16201 q
16202 }
16203 /^X\(\/\).*/{
16204 s//\1/
16205 q
16206 }
16207 s/.*/./; q'`
16208 as_dir="$ac_dir"; as_fn_mkdir_p
b58b6ee1 16209 ac_builddir=.
a3acbf46 16210
efd58f08
RW
16211case "$ac_dir" in
16212.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16213*)
16214 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16215 # A ".." for each directory in $ac_dir_suffix.
16216 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16217 case $ac_top_builddir_sub in
16218 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16219 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16220 esac ;;
16221esac
16222ac_abs_top_builddir=$ac_pwd
16223ac_abs_builddir=$ac_pwd$ac_dir_suffix
16224# for backward compatibility:
16225ac_top_builddir=$ac_top_build_prefix
b58b6ee1
DJ
16226
16227case $srcdir in
efd58f08 16228 .) # We are building in place.
b58b6ee1 16229 ac_srcdir=.
efd58f08
RW
16230 ac_top_srcdir=$ac_top_builddir_sub
16231 ac_abs_top_srcdir=$ac_pwd ;;
16232 [\\/]* | ?:[\\/]* ) # Absolute name.
b58b6ee1 16233 ac_srcdir=$srcdir$ac_dir_suffix;
efd58f08
RW
16234 ac_top_srcdir=$srcdir
16235 ac_abs_top_srcdir=$srcdir ;;
16236 *) # Relative name.
16237 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16238 ac_top_srcdir=$ac_top_build_prefix$srcdir
16239 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b58b6ee1 16240esac
efd58f08 16241ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a3acbf46 16242
a3acbf46 16243
efd58f08
RW
16244 case $ac_mode in
16245 :F)
16246 #
16247 # CONFIG_FILE
16248 #
b58b6ee1
DJ
16249
16250 case $INSTALL in
16251 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
efd58f08 16252 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
bafecfd6 16253 esac
efd58f08 16254_ACEOF
a3acbf46 16255
efd58f08
RW
16256cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16257# If the template does not know about datarootdir, expand it.
16258# FIXME: This hack should be removed a few years after 2.60.
16259ac_datarootdir_hack=; ac_datarootdir_seen=
16260ac_sed_dataroot='
16261/datarootdir/ {
16262 p
16263 q
16264}
16265/@datadir@/p
16266/@docdir@/p
16267/@infodir@/p
16268/@localedir@/p
16269/@mandir@/p'
16270case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16271*datarootdir*) ac_datarootdir_seen=yes;;
16272*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16274$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
b58b6ee1 16275_ACEOF
efd58f08
RW
16276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16277 ac_datarootdir_hack='
16278 s&@datadir@&$datadir&g
16279 s&@docdir@&$docdir&g
16280 s&@infodir@&$infodir&g
16281 s&@localedir@&$localedir&g
16282 s&@mandir@&$mandir&g
16283 s&\\\${datarootdir}&$datarootdir&g' ;;
16284esac
16285_ACEOF
16286
16287# Neutralize VPATH when `$srcdir' = `.'.
16288# Shell code in configure.ac might set extrasub.
16289# FIXME: do we really want to maintain this feature?
16290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16291ac_sed_extra="$ac_vpsub
b58b6ee1
DJ
16292$extrasub
16293_ACEOF
efd58f08 16294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b58b6ee1
DJ
16295:t
16296/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
efd58f08
RW
16297s|@configure_input@|$ac_sed_conf_input|;t t
16298s&@top_builddir@&$ac_top_builddir_sub&;t t
16299s&@top_build_prefix@&$ac_top_build_prefix&;t t
16300s&@srcdir@&$ac_srcdir&;t t
16301s&@abs_srcdir@&$ac_abs_srcdir&;t t
16302s&@top_srcdir@&$ac_top_srcdir&;t t
16303s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16304s&@builddir@&$ac_builddir&;t t
16305s&@abs_builddir@&$ac_abs_builddir&;t t
16306s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16307s&@INSTALL@&$ac_INSTALL&;t t
16308$ac_datarootdir_hack
16309"
16310eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16311if $ac_cs_awk_getline; then
6d3ddf51 16312 $AWK -f "$ac_tmp/subs.awk"
efd58f08 16313else
6d3ddf51
SM
16314 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16315fi \
16316 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
efd58f08
RW
16317
16318test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6d3ddf51
SM
16319 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16320 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16321 "$ac_tmp/out"`; test -z "$ac_out"; } &&
efd58f08 16322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6d3ddf51 16323which seems to be undefined. Please make sure it is defined" >&5
efd58f08 16324$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6d3ddf51 16325which seems to be undefined. Please make sure it is defined" >&2;}
efd58f08 16326
6d3ddf51 16327 rm -f "$ac_tmp/stdin"
efd58f08 16328 case $ac_file in
6d3ddf51
SM
16329 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16330 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
efd58f08 16331 esac \
6d3ddf51 16332 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
efd58f08 16333 ;;
9f35b464 16334
9f35b464 16335
9f35b464 16336
efd58f08
RW
16337 esac
16338
94f4a7b9
RW
16339
16340 case $ac_file$ac_mode in
16341 "Makefile":F) sed "$extrasub_build" Makefile |
16342 sed "$extrasub_host" |
16343 sed "$extrasub_target" > mf$$
16344 mv -f mf$$ Makefile ;;
16345
16346 esac
efd58f08
RW
16347done # for ac_tag
16348
16349
16350as_fn_exit 0
b58b6ee1 16351_ACEOF
b58b6ee1
DJ
16352ac_clean_files=$ac_clean_files_save
16353
efd58f08 16354test $ac_write_fail = 0 ||
6d3ddf51 16355 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
efd58f08 16356
b58b6ee1
DJ
16357
16358# configure is writing to config.log, and then calls config.status.
16359# config.status does its own redirection, appending to config.log.
16360# Unfortunately, on DOS this fails, as config.log is still kept open
16361# by configure, so config.status won't be able to write to it; its
16362# output is simply discarded. So we exec the FD to /dev/null,
16363# effectively closing config.log, so it can be properly (re)opened and
16364# appended to by config.status. When coming back to configure, we
16365# need to make the FD available again.
16366if test "$no_create" != yes; then
16367 ac_cs_success=:
16368 ac_config_status_args=
16369 test "$silent" = yes &&
16370 ac_config_status_args="$ac_config_status_args --quiet"
16371 exec 5>/dev/null
16372 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16373 exec 5>>config.log
16374 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16375 # would make configure fail if this is the last instruction.
6d3ddf51 16376 $ac_cs_success || as_fn_exit 1
efd58f08
RW
16377fi
16378if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16380$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b58b6ee1 16381fi
9f35b464 16382
This page took 2.562599 seconds and 5 git commands to generate.