]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
gccrs: Add Parser for Rust front-end pt.2
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5213506e 7#
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
1c710c3c
DJ
79fi
80
81
5213506e
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
22e05272 90as_myself=
5213506e
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
1c710c3c
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
5213506e
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
5213506e
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
5213506e
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
87264276
PB
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
5213506e
RW
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1c710c3c 211do
5213506e
RW
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
5213506e
RW
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1c710c3c 266 else
5213506e
RW
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
1c710c3c 271 fi
5213506e
RW
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
1c710c3c 301
5213506e
RW
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e
RW
356
357
358} # as_fn_mkdir_p
22e05272
JM
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
5213506e
RW
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
22e05272
JM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
5213506e
RW
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 407# script with STATUS, using 1 if that was 0.
5213506e
RW
408as_fn_error ()
409{
22e05272
JM
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5213506e 414 fi
22e05272 415 $as_echo "$as_me: error: $2" >&2
5213506e
RW
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
421 as_expr=expr
422else
423 as_expr=false
424fi
425
5213506e 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
427 as_basename=basename
428else
429 as_basename=false
430fi
431
5213506e
RW
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
1c710c3c 437
5213506e 438as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
5213506e
RW
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
1c710c3c 456
2aeb72e9
DD
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 463
1c710c3c 464
5213506e
RW
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
1c710c3c 474 sed '
5213506e
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
1c710c3c 479 N
5213506e
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 482 t loop
5213506e 483 s/-\n.*//
1c710c3c 484 ' >$as_me.lineno &&
5213506e
RW
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1c710c3c 487
22e05272
JM
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
1c710c3c
DJ
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
1c710c3c
DJ
496 # Exit status is that of the last command.
497 exit
498}
499
5213506e
RW
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
1c710c3c
DJ
511esac
512
5213506e
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
1c710c3c 516else
5213506e
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
1c710c3c 519fi
5213506e
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 522 as_ln_s='ln -s'
5213506e
RW
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 526 # In both cases, we have to default to `cp -pR'.
5213506e 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 528 as_ln_s='cp -pR'
5213506e
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
22e05272 532 as_ln_s='cp -pR'
2aeb72e9 533 fi
1c710c3c 534else
22e05272 535 as_ln_s='cp -pR'
1c710c3c 536fi
5213506e
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
539
540if mkdir -p . 2>/dev/null; then
5213506e 541 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
22e05272
JM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
0b0dc272 549
1c710c3c
DJ
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
22e05272
JM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
1c710c3c
DJ
559
560# Name of the host.
22e05272 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1c710c3c
DJ
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
1c710c3c
DJ
565#
566# Initializations.
567#
671aa708 568ac_default_prefix=/usr/local
5213506e 569ac_clean_files=
1c710c3c 570ac_config_libobj_dir=.
5213506e 571LIBOBJS=
1c710c3c
DJ
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
2aeb72e9 576
1c710c3c
DJ
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
5213506e 583PACKAGE_URL=
1c710c3c
DJ
584
585ac_unique_file="move-if-change"
5213506e
RW
586enable_option_checking=no
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589compare_exclusions
590stage2_werror_flag
591stage1_checking
592stage1_cflags
593MAINT
594MAINTAINER_MODE_FALSE
595MAINTAINER_MODE_TRUE
596COMPILER_NM_FOR_TARGET
597COMPILER_LD_FOR_TARGET
598COMPILER_AS_FOR_TARGET
599FLAGS_FOR_TARGET
600RAW_CXX_FOR_TARGET
601WINDMC_FOR_TARGET
602WINDRES_FOR_TARGET
603STRIP_FOR_TARGET
e7a82751 604READELF_FOR_TARGET
5213506e 605RANLIB_FOR_TARGET
e4a9a572 606OTOOL_FOR_TARGET
5213506e 607OBJDUMP_FOR_TARGET
9bccfdf5 608OBJCOPY_FOR_TARGET
5213506e
RW
609NM_FOR_TARGET
610LIPO_FOR_TARGET
611LD_FOR_TARGET
3b5e8ee4 612DSYMUTIL_FOR_TARGET
5213506e
RW
613DLLTOOL_FOR_TARGET
614AS_FOR_TARGET
615AR_FOR_TARGET
b4c522fa 616GDC_FOR_TARGET
632e2a07 617GOC_FOR_TARGET
5213506e 618GFORTRAN_FOR_TARGET
5213506e
RW
619GCC_FOR_TARGET
620CXX_FOR_TARGET
621CC_FOR_TARGET
5fee5ec3 622GDCFLAGS
e7a82751 623READELF
e4a9a572 624OTOOL
5213506e
RW
625OBJDUMP
626OBJCOPY
627WINDMC
628WINDRES
629STRIP
630RANLIB
631NM
632LIPO
633LD
3b5e8ee4 634DSYMUTIL
5213506e
RW
635DLLTOOL
636AS
637AR
638RUNTEST
639EXPECT
640MAKEINFO
641FLEX
642LEX
643M4
644BISON
645YACC
5213506e
RW
646WINDRES_FOR_BUILD
647WINDMC_FOR_BUILD
648RANLIB_FOR_BUILD
649NM_FOR_BUILD
650LD_FOR_BUILD
651LDFLAGS_FOR_BUILD
b4c522fa 652GDC_FOR_BUILD
632e2a07 653GOC_FOR_BUILD
5213506e 654GFORTRAN_FOR_BUILD
3b5e8ee4 655DSYMUTIL_FOR_BUILD
5213506e
RW
656DLLTOOL_FOR_BUILD
657CXX_FOR_BUILD
658CXXFLAGS_FOR_BUILD
84401ce5
RP
659CPPFLAGS_FOR_BUILD
660CPP_FOR_BUILD
5213506e
RW
661CFLAGS_FOR_BUILD
662CC_FOR_BUILD
663AS_FOR_BUILD
664AR_FOR_BUILD
aae29963 665target_configdirs
5213506e 666configdirs
5213506e 667build_configdirs
5213506e
RW
668INSTALL_GDB_TK
669GDB_TK
670CONFIGURE_GDB_TK
671build_tooldir
672tooldir
673GCC_SHLIB_SUBDIR
674RPATH_ENVVAR
ffedf511
RW
675target_configargs
676host_configargs
677build_configargs
e12c4094 678BUILD_CONFIG
6f57bdf6 679LDFLAGS_FOR_TARGET
5213506e
RW
680CXXFLAGS_FOR_TARGET
681CFLAGS_FOR_TARGET
682DEBUG_PREFIX_CFLAGS_FOR_TARGET
683SYSROOT_CFLAGS_FOR_TARGET
3c36aa6b 684get_gcc_base_ver
1c01ebf6 685extra_host_zlib_configure_flags
d7f09764 686extra_host_libiberty_configure_flags
fca38047 687stage1_languages
05048fc2 688host_libs_picflag
cdfee50a 689host_shared
45b3824d
TS
690extra_linker_plugin_flags
691extra_linker_plugin_configure_flags
33ad93b9 692islinc
eae1a5d4 693isllibs
5213506e 694poststage1_ldflags
ed2eaa9f 695poststage1_libs
5213506e 696stage1_ldflags
0b21f5d3 697stage1_libs
0ff2d841 698extra_isl_gmp_configure_flags
5213506e
RW
699extra_mpc_mpfr_configure_flags
700extra_mpc_gmp_configure_flags
701extra_mpfr_configure_flags
702gmpinc
703gmplibs
4a5e71f2
L
704PGO_BUILD_LTO_CFLAGS
705PGO_BUILD_USE_CFLAGS
706PGO_BUILD_GEN_CFLAGS
7ffcf5d6 707HAVE_CXX11_FOR_BUILD
ffac9597 708HAVE_CXX11
5213506e 709do_compare
5fee5ec3 710GDC
5213506e
RW
711GNATMAKE
712GNATBIND
713ac_ct_CXX
714CXXFLAGS
715CXX
716OBJEXT
717EXEEXT
718ac_ct_CC
719CPPFLAGS
720LDFLAGS
721CFLAGS
722CC
723target_subdir
724host_subdir
725build_subdir
726build_libsubdir
87264276
PB
727AWK
728SED
5213506e
RW
729LN_S
730LN
731INSTALL_DATA
732INSTALL_SCRIPT
733INSTALL_PROGRAM
734target_os
735target_vendor
736target_cpu
737target
738host_os
739host_vendor
740host_cpu
741host
742target_noncanonical
743host_noncanonical
744build_noncanonical
745build_os
746build_vendor
747build_cpu
748build
749TOPLEVEL_CONFIGURE_ARGUMENTS
750target_alias
751host_alias
752build_alias
753LIBS
754ECHO_T
755ECHO_N
756ECHO_C
757DEFS
758mandir
759localedir
760libdir
761psdir
762pdfdir
763dvidir
764htmldir
765infodir
766docdir
767oldincludedir
768includedir
769localstatedir
770sharedstatedir
771sysconfdir
772datadir
773datarootdir
774libexecdir
775sbindir
776bindir
777program_transform_name
778prefix
779exec_prefix
780PACKAGE_URL
781PACKAGE_BUGREPORT
782PACKAGE_STRING
783PACKAGE_VERSION
784PACKAGE_TARNAME
785PACKAGE_NAME
786PATH_SEPARATOR
787SHELL'
788ac_subst_files='serialization_dependencies
789host_makefile_frag
790target_makefile_frag
791alphaieee_frag
792ospace_frag'
793ac_user_opts='
794enable_option_checking
795with_build_libsubdir
a05c2c75 796with_system_zlib
85c64bbe
BS
797enable_as_accelerator_for
798enable_offload_targets
fe5bfa67 799enable_offload_defaulted
5213506e 800enable_gold
21539e2e 801enable_ld
78edb32f 802enable_compressed_debug_sections
87e6d9dc
TB
803enable_libquadmath
804enable_libquadmath_support
5213506e
RW
805enable_libada
806enable_libssp
1873ec0c 807enable_libstdcxx
ff3ac0f4 808enable_bootstrap
4a5e71f2 809enable_pgo_build
5213506e
RW
810with_mpc
811with_mpc_include
812with_mpc_lib
5213506e
RW
813with_mpfr
814with_mpfr_include
815with_mpfr_lib
5213506e
RW
816with_gmp
817with_gmp_include
818with_gmp_lib
5213506e 819with_stage1_libs
aac9103b 820with_static_standard_libraries
0b21f5d3 821with_stage1_ldflags
5213506e 822with_boot_libs
ed2eaa9f 823with_boot_ldflags
33ad93b9
RG
824with_isl
825with_isl_include
826with_isl_lib
827enable_isl_version_check
d7f09764 828enable_lto
45b3824d
TS
829enable_linker_plugin_configure_flags
830enable_linker_plugin_flags
cdfee50a 831enable_host_shared
5213506e 832enable_stage1_languages
43c40f3e 833enable_objc_gc
114bf3f1
MK
834with_target_bdw_gc
835with_target_bdw_gc_include
836with_target_bdw_gc_lib
3c36aa6b 837with_gcc_major_version_only
5213506e
RW
838with_build_sysroot
839with_debug_prefix_map
5646b7b9 840with_build_config
beeda1d9 841enable_vtable_verify
5213506e
RW
842enable_serial_configure
843with_build_time_tools
844enable_maintainer_mode
845enable_stage1_checking
846enable_werror
5213506e
RW
847'
848 ac_precious_vars='build_alias
849host_alias
850target_alias
851CC
852CFLAGS
853LDFLAGS
854LIBS
855CPPFLAGS
856CXX
857CXXFLAGS
858CCC
ffedf511
RW
859build_configargs
860host_configargs
861target_configargs
5213506e
RW
862AR
863AS
864DLLTOOL
3b5e8ee4 865DSYMUTIL
5213506e
RW
866LD
867LIPO
868NM
869RANLIB
870STRIP
871WINDRES
872WINDMC
873OBJCOPY
874OBJDUMP
e4a9a572 875OTOOL
e7a82751 876READELF
5213506e
RW
877CC_FOR_TARGET
878CXX_FOR_TARGET
879GCC_FOR_TARGET
5213506e 880GFORTRAN_FOR_TARGET
632e2a07 881GOC_FOR_TARGET
b4c522fa 882GDC_FOR_TARGET
5213506e
RW
883AR_FOR_TARGET
884AS_FOR_TARGET
885DLLTOOL_FOR_TARGET
3b5e8ee4 886DSYMUTIL_FOR_TARGET
5213506e
RW
887LD_FOR_TARGET
888LIPO_FOR_TARGET
889NM_FOR_TARGET
9bccfdf5 890OBJCOPY_FOR_TARGET
5213506e 891OBJDUMP_FOR_TARGET
e4a9a572 892OTOOL_FOR_TARGET
5213506e 893RANLIB_FOR_TARGET
e7a82751 894READELF_FOR_TARGET
5213506e
RW
895STRIP_FOR_TARGET
896WINDRES_FOR_TARGET
897WINDMC_FOR_TARGET'
898
671aa708
NN
899
900# Initialize some variables set by options.
1c710c3c
DJ
901ac_init_help=
902ac_init_version=false
5213506e
RW
903ac_unrecognized_opts=
904ac_unrecognized_sep=
671aa708
NN
905# The variables have the same names as the options, with
906# dashes changed to underlines.
1c710c3c 907cache_file=/dev/null
671aa708 908exec_prefix=NONE
671aa708 909no_create=
671aa708
NN
910no_recursion=
911prefix=NONE
912program_prefix=NONE
913program_suffix=NONE
914program_transform_name=s,x,x,
915silent=
916site=
917srcdir=
671aa708
NN
918verbose=
919x_includes=NONE
920x_libraries=NONE
1c710c3c
DJ
921
922# Installation directory options.
923# These are left unexpanded so users can "make install exec_prefix=/foo"
924# and all the variables that are supposed to be based on exec_prefix
925# by default will actually change.
926# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 927# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
928bindir='${exec_prefix}/bin'
929sbindir='${exec_prefix}/sbin'
930libexecdir='${exec_prefix}/libexec'
5213506e
RW
931datarootdir='${prefix}/share'
932datadir='${datarootdir}'
671aa708
NN
933sysconfdir='${prefix}/etc'
934sharedstatedir='${prefix}/com'
935localstatedir='${prefix}/var'
671aa708
NN
936includedir='${prefix}/include'
937oldincludedir='/usr/include'
5213506e
RW
938docdir='${datarootdir}/doc/${PACKAGE}'
939infodir='${datarootdir}/info'
940htmldir='${docdir}'
941dvidir='${docdir}'
942pdfdir='${docdir}'
943psdir='${docdir}'
944libdir='${exec_prefix}/lib'
945localedir='${datarootdir}/locale'
946mandir='${datarootdir}/man'
79c06341 947
671aa708 948ac_prev=
5213506e 949ac_dashdash=
671aa708
NN
950for ac_option
951do
671aa708
NN
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
5213506e 954 eval $ac_prev=\$ac_option
671aa708
NN
955 ac_prev=
956 continue
957 fi
79c06341 958
5213506e 959 case $ac_option in
22e05272
JM
960 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 *=) ac_optarg= ;;
962 *) ac_optarg=yes ;;
5213506e 963 esac
671aa708
NN
964
965 # Accept the important Cygnus configure options, so we can diagnose typos.
966
5213506e
RW
967 case $ac_dashdash$ac_option in
968 --)
969 ac_dashdash=yes ;;
671aa708
NN
970
971 -bindir | --bindir | --bindi | --bind | --bin | --bi)
972 ac_prev=bindir ;;
973 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 974 bindir=$ac_optarg ;;
671aa708
NN
975
976 -build | --build | --buil | --bui | --bu)
1c710c3c 977 ac_prev=build_alias ;;
671aa708 978 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 979 build_alias=$ac_optarg ;;
671aa708
NN
980
981 -cache-file | --cache-file | --cache-fil | --cache-fi \
982 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983 ac_prev=cache_file ;;
984 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
986 cache_file=$ac_optarg ;;
987
988 --config-cache | -C)
989 cache_file=config.cache ;;
671aa708 990
5213506e 991 -datadir | --datadir | --datadi | --datad)
671aa708 992 ac_prev=datadir ;;
5213506e 993 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 994 datadir=$ac_optarg ;;
671aa708 995
5213506e
RW
996 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997 | --dataroo | --dataro | --datar)
998 ac_prev=datarootdir ;;
999 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001 datarootdir=$ac_optarg ;;
1002
671aa708 1003 -disable-* | --disable-*)
5213506e 1004 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 1005 # Reject names that are not valid shell variable names.
5213506e 1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1007 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1011 *"
1012"enable_$ac_useropt"
1013"*) ;;
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1016 esac
1017 eval enable_$ac_useropt=no ;;
1018
1019 -docdir | --docdir | --docdi | --doc | --do)
1020 ac_prev=docdir ;;
1021 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022 docdir=$ac_optarg ;;
1023
1024 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025 ac_prev=dvidir ;;
1026 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027 dvidir=$ac_optarg ;;
671aa708
NN
1028
1029 -enable-* | --enable-*)
5213506e 1030 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 1031 # Reject names that are not valid shell variable names.
5213506e 1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1033 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1034 ac_useropt_orig=$ac_useropt
1035 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036 case $ac_user_opts in
1037 *"
1038"enable_$ac_useropt"
1039"*) ;;
1040 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1041 ac_unrecognized_sep=', ';;
2aeb72e9 1042 esac
5213506e 1043 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1044
1045 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047 | --exec | --exe | --ex)
1048 ac_prev=exec_prefix ;;
1049 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051 | --exec=* | --exe=* | --ex=*)
1c710c3c 1052 exec_prefix=$ac_optarg ;;
671aa708
NN
1053
1054 -gas | --gas | --ga | --g)
1055 # Obsolete; use --with-gas.
1056 with_gas=yes ;;
1057
1c710c3c
DJ
1058 -help | --help | --hel | --he | -h)
1059 ac_init_help=long ;;
1060 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061 ac_init_help=recursive ;;
1062 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063 ac_init_help=short ;;
671aa708
NN
1064
1065 -host | --host | --hos | --ho)
1c710c3c 1066 ac_prev=host_alias ;;
671aa708 1067 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1068 host_alias=$ac_optarg ;;
671aa708 1069
5213506e
RW
1070 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071 ac_prev=htmldir ;;
1072 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073 | --ht=*)
1074 htmldir=$ac_optarg ;;
1075
671aa708
NN
1076 -includedir | --includedir | --includedi | --included | --include \
1077 | --includ | --inclu | --incl | --inc)
1078 ac_prev=includedir ;;
1079 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1081 includedir=$ac_optarg ;;
671aa708
NN
1082
1083 -infodir | --infodir | --infodi | --infod | --info | --inf)
1084 ac_prev=infodir ;;
1085 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1086 infodir=$ac_optarg ;;
671aa708
NN
1087
1088 -libdir | --libdir | --libdi | --libd)
1089 ac_prev=libdir ;;
1090 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1091 libdir=$ac_optarg ;;
671aa708
NN
1092
1093 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094 | --libexe | --libex | --libe)
1095 ac_prev=libexecdir ;;
1096 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1098 libexecdir=$ac_optarg ;;
671aa708 1099
5213506e
RW
1100 -localedir | --localedir | --localedi | --localed | --locale)
1101 ac_prev=localedir ;;
1102 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103 localedir=$ac_optarg ;;
1104
671aa708 1105 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1106 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1107 ac_prev=localstatedir ;;
1108 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1109 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1110 localstatedir=$ac_optarg ;;
671aa708
NN
1111
1112 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113 ac_prev=mandir ;;
1114 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1115 mandir=$ac_optarg ;;
671aa708
NN
1116
1117 -nfp | --nfp | --nf)
1118 # Obsolete; use --without-fp.
1119 with_fp=no ;;
1120
1121 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1122 | --no-cr | --no-c | -n)
671aa708
NN
1123 no_create=yes ;;
1124
1125 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1127 no_recursion=yes ;;
1128
1129 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131 | --oldin | --oldi | --old | --ol | --o)
1132 ac_prev=oldincludedir ;;
1133 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1136 oldincludedir=$ac_optarg ;;
671aa708
NN
1137
1138 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139 ac_prev=prefix ;;
1140 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1141 prefix=$ac_optarg ;;
671aa708
NN
1142
1143 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144 | --program-pre | --program-pr | --program-p)
1145 ac_prev=program_prefix ;;
1146 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1148 program_prefix=$ac_optarg ;;
671aa708
NN
1149
1150 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151 | --program-suf | --program-su | --program-s)
1152 ac_prev=program_suffix ;;
1153 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1155 program_suffix=$ac_optarg ;;
671aa708
NN
1156
1157 -program-transform-name | --program-transform-name \
1158 | --program-transform-nam | --program-transform-na \
1159 | --program-transform-n | --program-transform- \
1160 | --program-transform | --program-transfor \
1161 | --program-transfo | --program-transf \
1162 | --program-trans | --program-tran \
1163 | --progr-tra | --program-tr | --program-t)
1164 ac_prev=program_transform_name ;;
1165 -program-transform-name=* | --program-transform-name=* \
1166 | --program-transform-nam=* | --program-transform-na=* \
1167 | --program-transform-n=* | --program-transform-=* \
1168 | --program-transform=* | --program-transfor=* \
1169 | --program-transfo=* | --program-transf=* \
1170 | --program-trans=* | --program-tran=* \
1171 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1172 program_transform_name=$ac_optarg ;;
671aa708 1173
5213506e
RW
1174 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175 ac_prev=pdfdir ;;
1176 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177 pdfdir=$ac_optarg ;;
1178
1179 -psdir | --psdir | --psdi | --psd | --ps)
1180 ac_prev=psdir ;;
1181 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1182 psdir=$ac_optarg ;;
1183
671aa708
NN
1184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185 | -silent | --silent | --silen | --sile | --sil)
1186 silent=yes ;;
1187
1188 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189 ac_prev=sbindir ;;
1190 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191 | --sbi=* | --sb=*)
1c710c3c 1192 sbindir=$ac_optarg ;;
671aa708
NN
1193
1194 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196 | --sharedst | --shareds | --shared | --share | --shar \
1197 | --sha | --sh)
1198 ac_prev=sharedstatedir ;;
1199 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202 | --sha=* | --sh=*)
1c710c3c 1203 sharedstatedir=$ac_optarg ;;
671aa708
NN
1204
1205 -site | --site | --sit)
1206 ac_prev=site ;;
1207 -site=* | --site=* | --sit=*)
1c710c3c 1208 site=$ac_optarg ;;
671aa708
NN
1209
1210 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211 ac_prev=srcdir ;;
1212 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1213 srcdir=$ac_optarg ;;
671aa708
NN
1214
1215 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216 | --syscon | --sysco | --sysc | --sys | --sy)
1217 ac_prev=sysconfdir ;;
1218 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1220 sysconfdir=$ac_optarg ;;
671aa708
NN
1221
1222 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1223 ac_prev=target_alias ;;
671aa708 1224 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1225 target_alias=$ac_optarg ;;
671aa708
NN
1226
1227 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228 verbose=yes ;;
1229
1c710c3c
DJ
1230 -version | --version | --versio | --versi | --vers | -V)
1231 ac_init_version=: ;;
671aa708
NN
1232
1233 -with-* | --with-*)
5213506e 1234 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1235 # Reject names that are not valid shell variable names.
5213506e 1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1237 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1238 ac_useropt_orig=$ac_useropt
1239 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1241 *"
1242"with_$ac_useropt"
1243"*) ;;
1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1245 ac_unrecognized_sep=', ';;
2aeb72e9 1246 esac
5213506e 1247 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1248
1249 -without-* | --without-*)
5213506e 1250 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1251 # Reject names that are not valid shell variable names.
5213506e 1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1253 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1257 *"
1258"with_$ac_useropt"
1259"*) ;;
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1262 esac
1263 eval with_$ac_useropt=no ;;
671aa708
NN
1264
1265 --x)
1266 # Obsolete; use --with-x.
1267 with_x=yes ;;
1268
1269 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1270 | --x-incl | --x-inc | --x-in | --x-i)
1271 ac_prev=x_includes ;;
1272 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1273 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1274 x_includes=$ac_optarg ;;
671aa708
NN
1275
1276 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1277 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1278 ac_prev=x_libraries ;;
1279 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1280 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1281 x_libraries=$ac_optarg ;;
671aa708 1282
22e05272
JM
1283 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1284Try \`$0 --help' for more information"
671aa708
NN
1285 ;;
1286
1c710c3c
DJ
1287 *=*)
1288 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289 # Reject names that are not valid shell variable names.
5213506e
RW
1290 case $ac_envvar in #(
1291 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1292 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1293 esac
1294 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1295 export $ac_envvar ;;
1296
671aa708 1297 *)
1c710c3c 1298 # FIXME: should be removed in autoconf 3.0.
5213506e 1299 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1300 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1301 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1302 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
671aa708
NN
1303 ;;
1304
1305 esac
1306done
1307
1308if test -n "$ac_prev"; then
1c710c3c 1309 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1310 as_fn_error $? "missing argument to $ac_option"
af71363e 1311fi
af71363e 1312
5213506e
RW
1313if test -n "$ac_unrecognized_opts"; then
1314 case $enable_option_checking in
1315 no) ;;
22e05272 1316 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1317 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1318 esac
5213506e 1319fi
2aeb72e9 1320
5213506e
RW
1321# Check all directory arguments for consistency.
1322for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323 datadir sysconfdir sharedstatedir localstatedir includedir \
1324 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1325 libdir localedir mandir
2aeb72e9 1326do
5213506e
RW
1327 eval ac_val=\$$ac_var
1328 # Remove trailing slashes.
1329 case $ac_val in
1330 */ )
1331 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1332 eval $ac_var=\$ac_val;;
1333 esac
1334 # Be sure to have absolute directory names.
2aeb72e9 1335 case $ac_val in
5213506e
RW
1336 [\\/$]* | ?:[\\/]* ) continue;;
1337 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1338 esac
22e05272 1339 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1340done
1341
1c710c3c
DJ
1342# There might be people who depend on the old broken behavior: `$host'
1343# used to hold the argument of --host etc.
1344# FIXME: To remove some day.
1345build=$build_alias
1346host=$host_alias
1347target=$target_alias
0b0dc272 1348
1c710c3c
DJ
1349# FIXME: To remove some day.
1350if test "x$host_alias" != x; then
1351 if test "x$build_alias" = x; then
1352 cross_compiling=maybe
1c710c3c
DJ
1353 elif test "x$build_alias" != "x$host_alias"; then
1354 cross_compiling=yes
1355 fi
1356fi
1357
1358ac_tool_prefix=
1359test -n "$host_alias" && ac_tool_prefix=$host_alias-
1360
1361test "$silent" = yes && exec 6>/dev/null
671aa708 1362
671aa708 1363
5213506e
RW
1364ac_pwd=`pwd` && test -n "$ac_pwd" &&
1365ac_ls_di=`ls -di .` &&
1366ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1367 as_fn_error $? "working directory cannot be determined"
5213506e 1368test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1369 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1370
1371
671aa708
NN
1372# Find the source files, if location was not specified.
1373if test -z "$srcdir"; then
1374 ac_srcdir_defaulted=yes
5213506e
RW
1375 # Try the directory containing this script, then the parent directory.
1376 ac_confdir=`$as_dirname -- "$as_myself" ||
1377$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1378 X"$as_myself" : 'X\(//\)[^/]' \| \
1379 X"$as_myself" : 'X\(//\)$' \| \
1380 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1381$as_echo X"$as_myself" |
1382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1383 s//\1/
1384 q
1385 }
1386 /^X\(\/\/\)[^/].*/{
1387 s//\1/
1388 q
1389 }
1390 /^X\(\/\/\)$/{
1391 s//\1/
1392 q
1393 }
1394 /^X\(\/\).*/{
1395 s//\1/
1396 q
1397 }
1398 s/.*/./; q'`
671aa708 1399 srcdir=$ac_confdir
5213506e 1400 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1401 srcdir=..
1402 fi
1403else
1404 ac_srcdir_defaulted=no
1405fi
5213506e
RW
1406if test ! -r "$srcdir/$ac_unique_file"; then
1407 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1408 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1409fi
1410ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1411ac_abs_confdir=`(
22e05272 1412 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1413 pwd)`
1414# When building in place, set srcdir=.
1415if test "$ac_abs_confdir" = "$ac_pwd"; then
1416 srcdir=.
1417fi
1418# Remove unnecessary trailing slashes from srcdir.
1419# Double slashes in file names in object file debugging info
1420# mess up M-x gdb in Emacs.
1421case $srcdir in
1422*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1423esac
87841584
AM
1424case $srcdir in
1425 *" "*)
22e05272 1426 as_fn_error $? "path to source, $srcdir, contains spaces"
87841584
AM
1427 ;;
1428esac
ac9e6043
RW
1429ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1430
5213506e
RW
1431for ac_var in $ac_precious_vars; do
1432 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_env_${ac_var}_value=\$${ac_var}
1434 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1436done
1c710c3c
DJ
1437
1438#
1439# Report the --help message.
1440#
1441if test "$ac_init_help" = "long"; then
1442 # Omit some internal or obsolete options to make the list less imposing.
1443 # This message is too long to be a string in the A/UX 3.1 sh.
1444 cat <<_ACEOF
1445\`configure' configures this package to adapt to many kinds of systems.
1446
1447Usage: $0 [OPTION]... [VAR=VALUE]...
1448
1449To assign environment variables (e.g., CC, CFLAGS...), specify them as
1450VAR=VALUE. See below for descriptions of some of the useful variables.
1451
1452Defaults for the options are specified in brackets.
1453
1454Configuration:
1455 -h, --help display this help and exit
1456 --help=short display options specific to this package
1457 --help=recursive display the short help of all the included packages
1458 -V, --version display version information and exit
22e05272 1459 -q, --quiet, --silent do not print \`checking ...' messages
1c710c3c
DJ
1460 --cache-file=FILE cache test results in FILE [disabled]
1461 -C, --config-cache alias for \`--cache-file=config.cache'
1462 -n, --no-create do not create output files
1463 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1464
1c710c3c
DJ
1465Installation directories:
1466 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1467 [$ac_default_prefix]
1c710c3c 1468 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1469 [PREFIX]
1c710c3c
DJ
1470
1471By default, \`make install' will install all the files in
1472\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1473an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1474for instance \`--prefix=\$HOME'.
1475
1476For better control, use the options below.
1477
1478Fine tuning of the installation directories:
5213506e
RW
1479 --bindir=DIR user executables [EPREFIX/bin]
1480 --sbindir=DIR system admin executables [EPREFIX/sbin]
1481 --libexecdir=DIR program executables [EPREFIX/libexec]
1482 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1483 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1484 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1485 --libdir=DIR object code libraries [EPREFIX/lib]
1486 --includedir=DIR C header files [PREFIX/include]
1487 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1488 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1489 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1490 --infodir=DIR info documentation [DATAROOTDIR/info]
1491 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1492 --mandir=DIR man documentation [DATAROOTDIR/man]
1493 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1494 --htmldir=DIR html documentation [DOCDIR]
1495 --dvidir=DIR dvi documentation [DOCDIR]
1496 --pdfdir=DIR pdf documentation [DOCDIR]
1497 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1498_ACEOF
1499
1500 cat <<\_ACEOF
1501
1502Program names:
1503 --program-prefix=PREFIX prepend PREFIX to installed program names
1504 --program-suffix=SUFFIX append SUFFIX to installed program names
1505 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1506
1507System types:
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1510 --target=TARGET configure for building compilers for TARGET [HOST]
1511_ACEOF
1512fi
1513
1514if test -n "$ac_init_help"; then
1515
1516 cat <<\_ACEOF
1517
1518Optional Features:
5213506e 1519 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1520 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1521 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1522 --enable-as-accelerator-for=ARG
1523 build as offload target compiler. Specify offload
1524 host triple by ARG
1525 --enable-offload-targets=LIST
1526 enable offloading to devices from comma-separated
1527 LIST of TARGET[=DIR]. Use optional path to find
1528 offload target compiler during the build
fe5bfa67
TB
1529 --enable-offload-defaulted
1530 If enabled, configured but not installed offload compilers and
1531 libgomp plugins are silently ignored. Useful for distribution
1532 compilers where those are in separate optional packages.
1533
21539e2e 1534 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1535 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1536 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1537 Enable compressed debug sections for gas, gold or ld
1538 by default
87e6d9dc
TB
1539 --disable-libquadmath do not build libquadmath directory
1540 --disable-libquadmath-support
1541 disable libquadmath support for Fortran
30b74385
RW
1542 --enable-libada build libada directory
1543 --enable-libssp build libssp directory
1873ec0c 1544 --disable-libstdcxx do not build libstdc++-v3 directory
ff3ac0f4 1545 --enable-bootstrap enable bootstrapping [yes if native build]
4a5e71f2
L
1546 --enable-pgo-build[=lto]
1547 enable the PGO build
33ad93b9 1548 --disable-isl-version-check
560d18d3 1549 disable check for isl version
d7f09764 1550 --enable-lto enable link time optimization support
45b3824d
TS
1551 --enable-linker-plugin-configure-flags=FLAGS
1552 additional flags for configuring linker plugins
1553 [none]
1554 --enable-linker-plugin-flags=FLAGS
1555 additional flags for configuring and building linker
1556 plugins [none]
cdfee50a 1557 --enable-host-shared build host code as shared libraries
33e39b66
AS
1558 --enable-stage1-languages[=all]
1559 choose additional languages to build during stage1.
1560 Mostly useful for compiler development
43c40f3e
RO
1561 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1562 Objective-C runtime
318a4e6d 1563 --enable-vtable-verify Enable vtable verification feature
30b74385 1564 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1565 force sequential configuration of sub-packages for
1566 the host, target or build machine, or all
1567 sub-packages
1568 --enable-maintainer-mode
1569 enable make rules and dependencies not useful (and
1570 sometimes confusing) to the casual installer
1571 --enable-stage1-checking[=all]
1572 choose additional checking for stage1 of the
1573 compiler
1c710c3c
DJ
1574 --enable-werror enable -Werror in bootstrap stage2 and later
1575
1576Optional Packages:
1577 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1578 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1579 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1580 --with-system-zlib use installed libz
33e39b66
AS
1581 --with-mpc=PATH specify prefix directory for installed MPC package.
1582 Equivalent to --with-mpc-include=PATH/include plus
1583 --with-mpc-lib=PATH/lib
1584 --with-mpc-include=PATH specify directory for installed MPC include files
1585 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385 1586 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1587 Equivalent to --with-mpfr-include=PATH/include plus
1588 --with-mpfr-lib=PATH/lib
1c710c3c 1589 --with-mpfr-include=PATH
30b74385
RW
1590 specify directory for installed MPFR include files
1591 --with-mpfr-lib=PATH specify directory for the installed MPFR library
33e39b66
AS
1592 --with-gmp=PATH specify prefix directory for the installed GMP
1593 package. Equivalent to
1594 --with-gmp-include=PATH/include plus
1595 --with-gmp-lib=PATH/lib
30b74385
RW
1596 --with-gmp-include=PATH specify directory for installed GMP include files
1597 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1598 --with-stage1-libs=LIBS libraries for stage1
aac9103b
TT
1599 --with-static-standard-libraries
1600 use -static-libstdc++ and -static-libgcc
1601 (default=auto)
33e39b66
AS
1602 --with-stage1-ldflags=FLAGS
1603 linker flags for stage1
33e39b66
AS
1604 --with-boot-libs=LIBS libraries for stage2 and later
1605 --with-boot-ldflags=FLAGS
1606 linker flags for stage2 and later
e357a5e0 1607 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1608 package. Equivalent to
33ad93b9
RG
1609 --with-isl-include=PATH/include plus
1610 --with-isl-lib=PATH/lib
560d18d3
AK
1611 --with-isl-include=PATH Specify directory for installed isl include files
1612 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1613 --with-target-bdw-gc=PATHLIST
1614 specify prefix directory for installed bdw-gc
1615 package. Equivalent to
1616 --with-target-bdw-gc-include=PATH/include plus
1617 --with-target-bdw-gc-lib=PATH/lib
1618 --with-target-bdw-gc-include=PATHLIST
1619 specify directories for installed bdw-gc include
1620 files
1621 --with-target-bdw-gc-lib=PATHLIST
1622 specify directories for installed bdw-gc library
3c36aa6b
JJ
1623 --with-gcc-major-version-only
1624 use only GCC major number in filesystem paths
30b74385 1625 --with-build-sysroot=SYSROOT
1c710c3c 1626 use sysroot as the system root during the build
c8aea42c 1627 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1628 map A to B, C to D ... in debug information
1629 --with-build-config='NAME NAME2...'
1630 use config/NAME.mk build configuration
30b74385 1631 --with-build-time-tools=PATH
1c710c3c 1632 use given path to find target tools during the build
1c710c3c
DJ
1633
1634Some influential environment variables:
1635 CC C compiler command
1636 CFLAGS C compiler flags
1637 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1638 nonstandard directory <lib dir>
5213506e 1639 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1640 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1641 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1642 CXX C++ compiler command
1643 CXXFLAGS C++ compiler flags
ffedf511
RW
1644 build_configargs
1645 additional configure arguments for build directories
1646 host_configargs
1647 additional configure arguments for host directories
1648 target_configargs
1649 additional configure arguments for target directories
278a7a38
AO
1650 AR AR for the host
1651 AS AS for the host
1652 DLLTOOL DLLTOOL for the host
3b5e8ee4 1653 DSYMUTIL DSYMUTIL for the host
278a7a38
AO
1654 LD LD for the host
1655 LIPO LIPO for the host
1656 NM NM for the host
1657 RANLIB RANLIB for the host
1658 STRIP STRIP for the host
1659 WINDRES WINDRES for the host
901119ae 1660 WINDMC WINDMC for the host
278a7a38
AO
1661 OBJCOPY OBJCOPY for the host
1662 OBJDUMP OBJDUMP for the host
e4a9a572 1663 OTOOL OTOOL for the host
e7a82751 1664 READELF READELF for the host
278a7a38
AO
1665 CC_FOR_TARGET
1666 CC for the target
1667 CXX_FOR_TARGET
1668 CXX for the target
1669 GCC_FOR_TARGET
1670 GCC for the target
278a7a38
AO
1671 GFORTRAN_FOR_TARGET
1672 GFORTRAN for the target
632e2a07
ILT
1673 GOC_FOR_TARGET
1674 GOC for the target
b4c522fa
IB
1675 GDC_FOR_TARGET
1676 GDC for the target
278a7a38
AO
1677 AR_FOR_TARGET
1678 AR for the target
1679 AS_FOR_TARGET
1680 AS for the target
1681 DLLTOOL_FOR_TARGET
1682 DLLTOOL for the target
3b5e8ee4
IS
1683 DSYMUTIL_FOR_TARGET
1684 DSYMUTIL for the target
278a7a38
AO
1685 LD_FOR_TARGET
1686 LD for the target
1687 LIPO_FOR_TARGET
1688 LIPO for the target
1689 NM_FOR_TARGET
1690 NM for the target
9bccfdf5
AP
1691 OBJCOPY_FOR_TARGET
1692 OBJCOPY for the target
278a7a38
AO
1693 OBJDUMP_FOR_TARGET
1694 OBJDUMP for the target
e4a9a572
IS
1695 OTOOL_FOR_TARGET
1696 OTOOL for the target
278a7a38
AO
1697 RANLIB_FOR_TARGET
1698 RANLIB for the target
e7a82751
RM
1699 READELF_FOR_TARGET
1700 READELF for the target
278a7a38
AO
1701 STRIP_FOR_TARGET
1702 STRIP for the target
1703 WINDRES_FOR_TARGET
1704 WINDRES for the target
901119ae
KT
1705 WINDMC_FOR_TARGET
1706 WINDMC for the target
1c710c3c
DJ
1707
1708Use these variables to override the choices made by `configure' or to help
1709it to find libraries and programs with nonstandard names/locations.
1710
5213506e 1711Report bugs to the package provider.
1c710c3c 1712_ACEOF
5213506e 1713ac_status=$?
1c710c3c
DJ
1714fi
1715
1716if test "$ac_init_help" = "recursive"; then
1717 # If there are subdirs, report their specific --help.
1c710c3c 1718 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1719 test -d "$ac_dir" ||
1720 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1721 continue
1c710c3c
DJ
1722 ac_builddir=.
1723
5213506e
RW
1724case "$ac_dir" in
1725.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726*)
1727 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1728 # A ".." for each directory in $ac_dir_suffix.
1729 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1730 case $ac_top_builddir_sub in
1731 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1732 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1733 esac ;;
1734esac
1735ac_abs_top_builddir=$ac_pwd
1736ac_abs_builddir=$ac_pwd$ac_dir_suffix
1737# for backward compatibility:
1738ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1739
1740case $srcdir in
5213506e 1741 .) # We are building in place.
1c710c3c 1742 ac_srcdir=.
5213506e
RW
1743 ac_top_srcdir=$ac_top_builddir_sub
1744 ac_abs_top_srcdir=$ac_pwd ;;
1745 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1746 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1747 ac_top_srcdir=$srcdir
1748 ac_abs_top_srcdir=$srcdir ;;
1749 *) # Relative name.
1750 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1751 ac_top_srcdir=$ac_top_build_prefix$srcdir
1752 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1753esac
5213506e
RW
1754ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1755
1756 cd "$ac_dir" || { ac_status=$?; continue; }
1757 # Check for guested configure.
1758 if test -f "$ac_srcdir/configure.gnu"; then
1759 echo &&
1760 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1761 elif test -f "$ac_srcdir/configure"; then
1762 echo &&
1763 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1764 else
5213506e
RW
1765 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1766 fi || ac_status=$?
1767 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1768 done
1769fi
1770
5213506e 1771test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1772if $ac_init_version; then
1773 cat <<\_ACEOF
5213506e 1774configure
22e05272 1775generated by GNU Autoconf 2.69
1c710c3c 1776
22e05272 1777Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
1778This configure script is free software; the Free Software Foundation
1779gives unlimited permission to copy, distribute and modify it.
1780_ACEOF
5213506e 1781 exit
0b0dc272 1782fi
5213506e
RW
1783
1784## ------------------------ ##
1785## Autoconf initialization. ##
1786## ------------------------ ##
1787
1788# ac_fn_c_try_compile LINENO
1789# --------------------------
1790# Try to compile conftest.$ac_ext, and return whether this succeeded.
1791ac_fn_c_try_compile ()
1792{
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 rm -f conftest.$ac_objext
1795 if { { ac_try="$ac_compile"
1796case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799esac
1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801$as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_compile") 2>conftest.err
1803 ac_status=$?
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1808 fi
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && {
1811 test -z "$ac_c_werror_flag" ||
1812 test ! -s conftest.err
1813 } && test -s conftest.$ac_objext; then :
1814 ac_retval=0
1815else
1816 $as_echo "$as_me: failed program was:" >&5
1817sed 's/^/| /' conftest.$ac_ext >&5
1818
1819 ac_retval=1
1820fi
22e05272
JM
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
5213506e
RW
1823
1824} # ac_fn_c_try_compile
1825
1826# ac_fn_cxx_try_compile LINENO
1827# ----------------------------
1828# Try to compile conftest.$ac_ext, and return whether this succeeded.
1829ac_fn_cxx_try_compile ()
1830{
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 rm -f conftest.$ac_objext
1833 if { { ac_try="$ac_compile"
1834case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837esac
1838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839$as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_compile") 2>conftest.err
1841 ac_status=$?
1842 if test -s conftest.err; then
1843 grep -v '^ *+' conftest.err >conftest.er1
1844 cat conftest.er1 >&5
1845 mv -f conftest.er1 conftest.err
1846 fi
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && {
1849 test -z "$ac_cxx_werror_flag" ||
1850 test ! -s conftest.err
1851 } && test -s conftest.$ac_objext; then :
1852 ac_retval=0
1853else
1854 $as_echo "$as_me: failed program was:" >&5
1855sed 's/^/| /' conftest.$ac_ext >&5
1856
1857 ac_retval=1
1858fi
22e05272
JM
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status $ac_retval
5213506e
RW
1861
1862} # ac_fn_cxx_try_compile
1863
0b21f5d3
EB
1864# ac_fn_cxx_try_link LINENO
1865# -------------------------
1866# Try to link conftest.$ac_ext, and return whether this succeeded.
1867ac_fn_cxx_try_link ()
1868{
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 rm -f conftest.$ac_objext conftest$ac_exeext
1871 if { { ac_try="$ac_link"
1872case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875esac
1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877$as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_link") 2>conftest.err
1879 ac_status=$?
1880 if test -s conftest.err; then
1881 grep -v '^ *+' conftest.err >conftest.er1
1882 cat conftest.er1 >&5
1883 mv -f conftest.er1 conftest.err
1884 fi
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; } && {
1887 test -z "$ac_cxx_werror_flag" ||
1888 test ! -s conftest.err
1889 } && test -s conftest$ac_exeext && {
1890 test "$cross_compiling" = yes ||
22e05272 1891 test -x conftest$ac_exeext
0b21f5d3
EB
1892 }; then :
1893 ac_retval=0
1894else
1895 $as_echo "$as_me: failed program was:" >&5
1896sed 's/^/| /' conftest.$ac_ext >&5
1897
1898 ac_retval=1
1899fi
1900 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1901 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1902 # interfere with the next link command; also delete a directory that is
1903 # left behind by Apple's compiler. We do this before executing the actions.
1904 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 as_fn_set_status $ac_retval
0b21f5d3
EB
1907
1908} # ac_fn_cxx_try_link
1909
5213506e
RW
1910# ac_fn_c_try_link LINENO
1911# -----------------------
1912# Try to link conftest.$ac_ext, and return whether this succeeded.
1913ac_fn_c_try_link ()
1914{
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 rm -f conftest.$ac_objext conftest$ac_exeext
1917 if { { ac_try="$ac_link"
1918case "(($ac_try" in
1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920 *) ac_try_echo=$ac_try;;
1921esac
1922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923$as_echo "$ac_try_echo"; } >&5
1924 (eval "$ac_link") 2>conftest.err
1925 ac_status=$?
1926 if test -s conftest.err; then
1927 grep -v '^ *+' conftest.err >conftest.er1
1928 cat conftest.er1 >&5
1929 mv -f conftest.er1 conftest.err
1930 fi
1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932 test $ac_status = 0; } && {
1933 test -z "$ac_c_werror_flag" ||
1934 test ! -s conftest.err
1935 } && test -s conftest$ac_exeext && {
1936 test "$cross_compiling" = yes ||
22e05272 1937 test -x conftest$ac_exeext
5213506e
RW
1938 }; then :
1939 ac_retval=0
1940else
1941 $as_echo "$as_me: failed program was:" >&5
1942sed 's/^/| /' conftest.$ac_ext >&5
1943
1944 ac_retval=1
1945fi
1946 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1947 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1948 # interfere with the next link command; also delete a directory that is
1949 # left behind by Apple's compiler. We do this before executing the actions.
1950 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 as_fn_set_status $ac_retval
5213506e
RW
1953
1954} # ac_fn_c_try_link
1955cat >config.log <<_ACEOF
1c710c3c
DJ
1956This file contains any messages produced by compilers while
1957running configure, to aid debugging if configure makes a mistake.
1958
1959It was created by $as_me, which was
22e05272 1960generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
1961
1962 $ $0 $@
1963
1964_ACEOF
5213506e 1965exec 5>>config.log
1c710c3c
DJ
1966{
1967cat <<_ASUNAME
1968## --------- ##
1969## Platform. ##
1970## --------- ##
1971
1972hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1973uname -m = `(uname -m) 2>/dev/null || echo unknown`
1974uname -r = `(uname -r) 2>/dev/null || echo unknown`
1975uname -s = `(uname -s) 2>/dev/null || echo unknown`
1976uname -v = `(uname -v) 2>/dev/null || echo unknown`
1977
1978/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1979/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1980
1981/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1982/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1983/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1984/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1985/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1986/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1987/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1988
1989_ASUNAME
1990
1991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992for as_dir in $PATH
1993do
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
5213506e
RW
1996 $as_echo "PATH: $as_dir"
1997 done
1998IFS=$as_save_IFS
1c710c3c
DJ
1999
2000} >&5
2001
2002cat >&5 <<_ACEOF
2003
2004
2005## ----------- ##
2006## Core tests. ##
2007## ----------- ##
2008
2009_ACEOF
2010
2011
2012# Keep a trace of the command line.
2013# Strip out --no-create and --no-recursion so they do not pile up.
2014# Strip out --silent because we don't want to record it for future runs.
2015# Also quote any args containing shell meta-characters.
2016# Make two passes to allow for proper duplicate-argument suppression.
2017ac_configure_args=
2018ac_configure_args0=
2019ac_configure_args1=
1c710c3c
DJ
2020ac_must_keep_next=false
2021for ac_pass in 1 2
2022do
2023 for ac_arg
2024 do
2025 case $ac_arg in
2026 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2028 | -silent | --silent | --silen | --sile | --sil)
2029 continue ;;
5213506e
RW
2030 *\'*)
2031 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2032 esac
2033 case $ac_pass in
5213506e 2034 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2035 2)
5213506e 2036 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2037 if test $ac_must_keep_next = true; then
2038 ac_must_keep_next=false # Got value, back to normal.
2039 else
2040 case $ac_arg in
2041 *=* | --config-cache | -C | -disable-* | --disable-* \
2042 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2043 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2044 | -with-* | --with-* | -without-* | --without-* | --x)
2045 case "$ac_configure_args0 " in
2046 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2047 esac
2048 ;;
2049 -* ) ac_must_keep_next=true ;;
2050 esac
2051 fi
5213506e 2052 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2053 ;;
2054 esac
2055 done
2056done
5213506e
RW
2057{ ac_configure_args0=; unset ac_configure_args0;}
2058{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2059
2060# When interrupted or exit'd, cleanup temporary files, and complete
2061# config.log. We remove comments because anyway the quotes in there
2062# would cause problems or look ugly.
5213506e
RW
2063# WARNING: Use '\'' to represent an apostrophe within the trap.
2064# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2065trap 'exit_status=$?
2066 # Save into config.log some information that might help in debugging.
2067 {
2068 echo
2069
22e05272 2070 $as_echo "## ---------------- ##
1c710c3c 2071## Cache variables. ##
22e05272 2072## ---------------- ##"
1c710c3c
DJ
2073 echo
2074 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2075(
2076 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2077 eval ac_val=\$$ac_var
2078 case $ac_val in #(
2079 *${as_nl}*)
2080 case $ac_var in #(
2081 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2082$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2083 esac
2084 case $ac_var in #(
2085 _ | IFS | as_nl) ;; #(
2086 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2087 *) { eval $ac_var=; unset $ac_var;} ;;
2088 esac ;;
2089 esac
2090 done
1c710c3c 2091 (set) 2>&1 |
5213506e
RW
2092 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2093 *${as_nl}ac_space=\ *)
1c710c3c 2094 sed -n \
5213506e
RW
2095 "s/'\''/'\''\\\\'\'''\''/g;
2096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2097 ;; #(
1c710c3c 2098 *)
5213506e 2099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2100 ;;
5213506e
RW
2101 esac |
2102 sort
2103)
1c710c3c
DJ
2104 echo
2105
22e05272 2106 $as_echo "## ----------------- ##
1c710c3c 2107## Output variables. ##
22e05272 2108## ----------------- ##"
1c710c3c
DJ
2109 echo
2110 for ac_var in $ac_subst_vars
2111 do
5213506e
RW
2112 eval ac_val=\$$ac_var
2113 case $ac_val in
2114 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2115 esac
2116 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2117 done | sort
2118 echo
2119
2120 if test -n "$ac_subst_files"; then
22e05272 2121 $as_echo "## ------------------- ##
5213506e 2122## File substitutions. ##
22e05272 2123## ------------------- ##"
1c710c3c
DJ
2124 echo
2125 for ac_var in $ac_subst_files
2126 do
5213506e
RW
2127 eval ac_val=\$$ac_var
2128 case $ac_val in
2129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130 esac
2131 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2132 done | sort
2133 echo
2134 fi
2135
2136 if test -s confdefs.h; then
22e05272 2137 $as_echo "## ----------- ##
1c710c3c 2138## confdefs.h. ##
22e05272 2139## ----------- ##"
1c710c3c 2140 echo
5213506e 2141 cat confdefs.h
1c710c3c
DJ
2142 echo
2143 fi
2144 test "$ac_signal" != 0 &&
5213506e
RW
2145 $as_echo "$as_me: caught signal $ac_signal"
2146 $as_echo "$as_me: exit $exit_status"
1c710c3c 2147 } >&5
5213506e
RW
2148 rm -f core *.core core.conftest.* &&
2149 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2150 exit $exit_status
5213506e 2151' 0
1c710c3c 2152for ac_signal in 1 2 13 15; do
5213506e 2153 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2154done
2155ac_signal=0
2156
2157# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2158rm -f -r conftest* confdefs.h
2159
2160$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2161
2162# Predefined preprocessor variables.
2163
2164cat >>confdefs.h <<_ACEOF
2165#define PACKAGE_NAME "$PACKAGE_NAME"
2166_ACEOF
2167
1c710c3c
DJ
2168cat >>confdefs.h <<_ACEOF
2169#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2170_ACEOF
2171
1c710c3c
DJ
2172cat >>confdefs.h <<_ACEOF
2173#define PACKAGE_VERSION "$PACKAGE_VERSION"
2174_ACEOF
0b0dc272 2175
1c710c3c
DJ
2176cat >>confdefs.h <<_ACEOF
2177#define PACKAGE_STRING "$PACKAGE_STRING"
2178_ACEOF
2179
1c710c3c
DJ
2180cat >>confdefs.h <<_ACEOF
2181#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2182_ACEOF
2183
5213506e
RW
2184cat >>confdefs.h <<_ACEOF
2185#define PACKAGE_URL "$PACKAGE_URL"
2186_ACEOF
2187
1c710c3c
DJ
2188
2189# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2190# Prefer an explicitly selected file to automatically selected ones.
2191ac_site_file1=NONE
2192ac_site_file2=NONE
2193if test -n "$CONFIG_SITE"; then
22e05272
JM
2194 # We do not want a PATH search for config.site.
2195 case $CONFIG_SITE in #((
2196 -*) ac_site_file1=./$CONFIG_SITE;;
2197 */*) ac_site_file1=$CONFIG_SITE;;
2198 *) ac_site_file1=./$CONFIG_SITE;;
2199 esac
5213506e
RW
2200elif test "x$prefix" != xNONE; then
2201 ac_site_file1=$prefix/share/config.site
2202 ac_site_file2=$prefix/etc/config.site
2203else
2204 ac_site_file1=$ac_default_prefix/share/config.site
2205 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2206fi
5213506e
RW
2207for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2208do
2209 test "x$ac_site_file" = xNONE && continue
22e05272 2210 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2212$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2213 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2214 . "$ac_site_file" \
2215 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217as_fn_error $? "failed to load site script $ac_site_file
2218See \`config.log' for more details" "$LINENO" 5; }
671aa708
NN
2219 fi
2220done
2221
2222if test -r "$cache_file"; then
22e05272
JM
2223 # Some versions of bash will fail to source /dev/null (special files
2224 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2225 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2227$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2228 case $cache_file in
5213506e
RW
2229 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2230 *) . "./$cache_file";;
1c710c3c
DJ
2231 esac
2232 fi
671aa708 2233else
5213506e
RW
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2235$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2236 >$cache_file
2237fi
2238
2239# Check that the precious variables saved in the cache have kept the same
2240# value.
2241ac_cache_corrupted=false
5213506e 2242for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2244 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2245 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2246 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2247 case $ac_old_set,$ac_new_set in
2248 set,)
5213506e
RW
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2250$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2251 ac_cache_corrupted=: ;;
2252 ,set)
5213506e
RW
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2254$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2255 ac_cache_corrupted=: ;;
2256 ,);;
2257 *)
2258 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2259 # differences in whitespace do not lead to failure.
2260 ac_old_val_w=`echo x $ac_old_val`
2261 ac_new_val_w=`echo x $ac_new_val`
2262 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2264$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2265 ac_cache_corrupted=:
2266 else
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2268$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2269 eval $ac_var=\$ac_old_val
2270 fi
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2272$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2274$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2275 fi;;
2276 esac
2277 # Pass precious variables to config.status.
2278 if test "$ac_new_set" = set; then
2279 case $ac_new_val in
5213506e 2280 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2281 *) ac_arg=$ac_var=$ac_new_val ;;
2282 esac
2283 case " $ac_configure_args " in
2284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2285 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2286 esac
2287 fi
2288done
2289if $ac_cache_corrupted; then
5213506e
RW
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2293$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2294 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2295fi
5213506e
RW
2296## -------------------- ##
2297## Main body of script. ##
2298## -------------------- ##
671aa708 2299
2aeb72e9
DD
2300ac_ext=c
2301ac_cpp='$CPP $CPPFLAGS'
2302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304ac_compiler_gnu=$ac_cv_c_compiler_gnu
2305
1c710c3c
DJ
2306
2307
2308
1c710c3c
DJ
2309
2310
0115d4a3 2311
1c710c3c 2312
ad33ff57
RW
2313progname=$0
2314# if PWD already has a value, it is probably wrong.
2315if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2316
2317# Export original configure arguments for use by sub-configures.
2318# Quote arguments with shell meta charatcers.
2319TOPLEVEL_CONFIGURE_ARGUMENTS=
2320set -- "$progname" "$@"
2321for ac_arg
2322do
2323 case "$ac_arg" in
2324 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2325 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2326 # if the argument is of the form -foo=baz, quote the baz part only
2327 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2328 *) ;;
2329 esac
2330 # Add the quoted argument to the list.
2331 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2332done
2333if test "$silent" = yes; then
2334 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2335fi
2336# Remove the initial space we just introduced and, as these will be
2337# expanded by make, quote '$'.
2338TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2339
1c710c3c
DJ
2340
2341# Find the build, host, and target systems.
671aa708 2342ac_aux_dir=
5213506e 2343for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2344 if test -f "$ac_dir/install-sh"; then
2345 ac_aux_dir=$ac_dir
2346 ac_install_sh="$ac_aux_dir/install-sh -c"
2347 break
2348 elif test -f "$ac_dir/install.sh"; then
2349 ac_aux_dir=$ac_dir
2350 ac_install_sh="$ac_aux_dir/install.sh -c"
2351 break
2352 elif test -f "$ac_dir/shtool"; then
2353 ac_aux_dir=$ac_dir
2354 ac_install_sh="$ac_aux_dir/shtool install -c"
2355 break
2356 fi
671aa708
NN
2357done
2358if test -z "$ac_aux_dir"; then
22e05272 2359 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2360fi
5213506e
RW
2361
2362# These three variables are undocumented and unsupported,
2363# and are intended to be withdrawn in a future Autoconf release.
2364# They can cause serious problems if a builder's source tree is in a directory
2365# whose full name contains unusual characters.
2366ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2367ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2368ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2369
671aa708 2370
1c710c3c 2371# Make sure we can run config.sub.
5213506e 2372$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2373 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2374
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2376$as_echo_n "checking build system type... " >&6; }
22e05272 2377if ${ac_cv_build+:} false; then :
5213506e
RW
2378 $as_echo_n "(cached) " >&6
2379else
2380 ac_build_alias=$build_alias
2381test "x$ac_build_alias" = x &&
2382 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2383test "x$ac_build_alias" = x &&
22e05272 2384 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2385ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2386 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2387
2388fi
2389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2390$as_echo "$ac_cv_build" >&6; }
2391case $ac_cv_build in
2392*-*-*) ;;
22e05272 2393*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2394esac
1c710c3c 2395build=$ac_cv_build
5213506e
RW
2396ac_save_IFS=$IFS; IFS='-'
2397set x $ac_cv_build
2398shift
2399build_cpu=$1
2400build_vendor=$2
2401shift; shift
2402# Remember, the first character of IFS is used to create $*,
2403# except with old shells:
2404build_os=$*
2405IFS=$ac_save_IFS
2406case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2407
671aa708 2408
1c710c3c
DJ
2409 case ${build_alias} in
2410 "") build_noncanonical=${build} ;;
2411 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2412esac
2413
2414
af71363e 2415
1c710c3c
DJ
2416 case ${host_alias} in
2417 "") host_noncanonical=${build_noncanonical} ;;
2418 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2419esac
2420
af71363e 2421
1c710c3c
DJ
2422
2423 case ${target_alias} in
2424 "") target_noncanonical=${host_noncanonical} ;;
2425 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2426esac
2427
af71363e 2428
1c710c3c
DJ
2429
2430
2431test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2432 test "$program_prefix$program_suffix$program_transform_name" = \
2433 NONENONEs,x,x, &&
1c710c3c 2434 program_transform_name=s,y,y,
af71363e 2435
5213506e
RW
2436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2437$as_echo_n "checking host system type... " >&6; }
22e05272 2438if ${ac_cv_host+:} false; then :
5213506e 2439 $as_echo_n "(cached) " >&6
af71363e 2440else
5213506e
RW
2441 if test "x$host_alias" = x; then
2442 ac_cv_host=$ac_cv_build
2443else
2444 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2445 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2446fi
1c710c3c 2447
af71363e 2448fi
5213506e
RW
2449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2450$as_echo "$ac_cv_host" >&6; }
2451case $ac_cv_host in
2452*-*-*) ;;
22e05272 2453*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2454esac
1c710c3c 2455host=$ac_cv_host
5213506e
RW
2456ac_save_IFS=$IFS; IFS='-'
2457set x $ac_cv_host
2458shift
2459host_cpu=$1
2460host_vendor=$2
2461shift; shift
2462# Remember, the first character of IFS is used to create $*,
2463# except with old shells:
2464host_os=$*
2465IFS=$ac_save_IFS
2466case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2467
2468
5213506e
RW
2469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2470$as_echo_n "checking target system type... " >&6; }
22e05272 2471if ${ac_cv_target+:} false; then :
5213506e 2472 $as_echo_n "(cached) " >&6
1c710c3c 2473else
5213506e
RW
2474 if test "x$target_alias" = x; then
2475 ac_cv_target=$ac_cv_host
2476else
2477 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2478 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2479fi
1c710c3c
DJ
2480
2481fi
5213506e
RW
2482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2483$as_echo "$ac_cv_target" >&6; }
2484case $ac_cv_target in
2485*-*-*) ;;
22e05272 2486*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2487esac
1c710c3c 2488target=$ac_cv_target
5213506e
RW
2489ac_save_IFS=$IFS; IFS='-'
2490set x $ac_cv_target
2491shift
2492target_cpu=$1
2493target_vendor=$2
2494shift; shift
2495# Remember, the first character of IFS is used to create $*,
2496# except with old shells:
2497target_os=$*
2498IFS=$ac_save_IFS
2499case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2500
2501
2502# The aliases save the names the user supplied, while $host etc.
2503# will get canonicalized.
2504test -n "$target_alias" &&
2505 test "$program_prefix$program_suffix$program_transform_name" = \
2506 NONENONEs,x,x, &&
2507 program_prefix=${target_alias}-
5213506e 2508
671aa708 2509test "$program_prefix" != NONE &&
5213506e 2510 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2511# Use a double $ so make ignores it.
2512test "$program_suffix" != NONE &&
5213506e
RW
2513 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2514# Double any \ or $.
1c710c3c 2515# By default was `s,x,x', remove it if useless.
5213506e
RW
2516ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2517program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2518
671aa708
NN
2519
2520
775956d0
NN
2521# Get 'install' or 'install-sh' and its variants.
2522# Find a good install program. We prefer a C program (faster),
2523# so one script is as good as another. But avoid the broken or
2524# incompatible versions:
2525# SysV /etc/install, /usr/sbin/install
2526# SunOS /usr/etc/install
2527# IRIX /sbin/install
2528# AIX /bin/install
1c710c3c 2529# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2530# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2531# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2532# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2533# OS/2's system install, which has a completely different semantic
775956d0 2534# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2535# Reject install programs that cannot install multiple files.
5213506e
RW
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2537$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2538if test -z "$INSTALL"; then
22e05272 2539if ${ac_cv_path_install+:} false; then :
5213506e 2540 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2541else
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543for as_dir in $PATH
2544do
2545 IFS=$as_save_IFS
2546 test -z "$as_dir" && as_dir=.
5213506e
RW
2547 # Account for people who put trailing slashes in PATH elements.
2548case $as_dir/ in #((
2549 ./ | .// | /[cC]/* | \
1c710c3c 2550 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2551 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2552 /usr/ucb/* ) ;;
2553 *)
2554 # OSF1 and SCO ODT 3.0 have their own names for install.
2555 # Don't use installbsd from OSF since it installs stuff as root
2556 # by default.
2557 for ac_prog in ginstall scoinst install; do
2558 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2559 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 2560 if test $ac_prog = install &&
1c710c3c 2561 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2562 # AIX install. It has an incompatible calling convention.
2563 :
1c710c3c
DJ
2564 elif test $ac_prog = install &&
2565 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2566 # program-specific install script used by HP pwplus--don't use.
2567 :
775956d0 2568 else
38d24731
RW
2569 rm -rf conftest.one conftest.two conftest.dir
2570 echo one > conftest.one
2571 echo two > conftest.two
2572 mkdir conftest.dir
2573 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2574 test -s conftest.one && test -s conftest.two &&
2575 test -s conftest.dir/conftest.one &&
2576 test -s conftest.dir/conftest.two
2577 then
2578 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2579 break 3
2580 fi
775956d0
NN
2581 fi
2582 fi
2583 done
1c710c3c
DJ
2584 done
2585 ;;
2586esac
5213506e
RW
2587
2588 done
2589IFS=$as_save_IFS
1c710c3c 2590
38d24731 2591rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2592
2593fi
2594 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2595 INSTALL=$ac_cv_path_install
775956d0 2596 else
38d24731
RW
2597 # As a last resort, use the slow shell script. Don't cache a
2598 # value for INSTALL within a source directory, because that will
775956d0 2599 # break other packages using the cache if that directory is
38d24731 2600 # removed, or if the value is a relative name.
1c710c3c 2601 INSTALL=$ac_install_sh
775956d0
NN
2602 fi
2603fi
5213506e
RW
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2605$as_echo "$INSTALL" >&6; }
775956d0
NN
2606
2607# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2608# It thinks the first close brace ends the variable substitution.
2609test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2610
1c710c3c 2611test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2612
2613test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2614
5213506e
RW
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2616$as_echo_n "checking whether ln works... " >&6; }
22e05272 2617if ${acx_cv_prog_LN+:} false; then :
5213506e 2618 $as_echo_n "(cached) " >&6
ad6717df
PB
2619else
2620 rm -f conftestdata_t
2621echo >conftestdata_f
2622if ln conftestdata_f conftestdata_t 2>/dev/null
2623then
2624 acx_cv_prog_LN=ln
2625else
2626 acx_cv_prog_LN=no
2627fi
2628rm -f conftestdata_f conftestdata_t
2629
2630fi
2631if test $acx_cv_prog_LN = no; then
2632 LN="cp"
5213506e
RW
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2634$as_echo "no, using $LN" >&6; }
ad6717df
PB
2635else
2636 LN="$acx_cv_prog_LN"
5213506e
RW
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2638$as_echo "yes" >&6; }
ad6717df
PB
2639fi
2640
5213506e
RW
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2642$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2643LN_S=$as_ln_s
2644if test "$LN_S" = "ln -s"; then
5213506e
RW
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2646$as_echo "yes" >&6; }
fb0103e5 2647else
5213506e
RW
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2649$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2650fi
2651
87264276
PB
2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2653$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 2654if ${ac_cv_path_SED+:} false; then :
87264276
PB
2655 $as_echo_n "(cached) " >&6
2656else
2657 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2658 for ac_i in 1 2 3 4 5 6 7; do
2659 ac_script="$ac_script$as_nl$ac_script"
2660 done
2661 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2662 { ac_script=; unset ac_script;}
2663 if test -z "$SED"; then
2664 ac_path_SED_found=false
2665 # Loop through the user's path and test for each of PROGNAME-LIST
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667for as_dir in $PATH
2668do
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
2671 for ac_prog in sed gsed; do
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 2674 as_fn_executable_p "$ac_path_SED" || continue
87264276
PB
2675# Check for GNU ac_path_SED and select it if it is found.
2676 # Check for GNU $ac_path_SED
2677case `"$ac_path_SED" --version 2>&1` in
2678*GNU*)
2679 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2680*)
2681 ac_count=0
2682 $as_echo_n 0123456789 >"conftest.in"
2683 while :
2684 do
2685 cat "conftest.in" "conftest.in" >"conftest.tmp"
2686 mv "conftest.tmp" "conftest.in"
2687 cp "conftest.in" "conftest.nl"
2688 $as_echo '' >> "conftest.nl"
2689 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2690 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2691 as_fn_arith $ac_count + 1 && ac_count=$as_val
2692 if test $ac_count -gt ${ac_path_SED_max-0}; then
2693 # Best one so far, save it but keep looking for a better one
2694 ac_cv_path_SED="$ac_path_SED"
2695 ac_path_SED_max=$ac_count
2696 fi
2697 # 10*(2^10) chars as input seems more than enough
2698 test $ac_count -gt 10 && break
2699 done
2700 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2701esac
2702
2703 $ac_path_SED_found && break 3
2704 done
2705 done
2706 done
2707IFS=$as_save_IFS
2708 if test -z "$ac_cv_path_SED"; then
22e05272 2709 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
87264276
PB
2710 fi
2711else
2712 ac_cv_path_SED=$SED
2713fi
2714
2715fi
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2717$as_echo "$ac_cv_path_SED" >&6; }
2718 SED="$ac_cv_path_SED"
2719 rm -f conftest.sed
2720
2721for ac_prog in gawk mawk nawk awk
2722do
2723 # Extract the first word of "$ac_prog", so it can be a program name with args.
2724set dummy $ac_prog; ac_word=$2
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2727if ${ac_cv_prog_AWK+:} false; then :
87264276
PB
2728 $as_echo_n "(cached) " >&6
2729else
2730 if test -n "$AWK"; then
2731 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2732else
2733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734for as_dir in $PATH
2735do
2736 IFS=$as_save_IFS
2737 test -z "$as_dir" && as_dir=.
2738 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87264276
PB
2740 ac_cv_prog_AWK="$ac_prog"
2741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 break 2
2743 fi
2744done
2745 done
2746IFS=$as_save_IFS
2747
2748fi
2749fi
2750AWK=$ac_cv_prog_AWK
2751if test -n "$AWK"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2753$as_echo "$AWK" >&6; }
2754else
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756$as_echo "no" >&6; }
2757fi
2758
2759
2760 test -n "$AWK" && break
2761done
2762
775956d0 2763
ee6a22df
L
2764srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2765
2766# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2767# a relative path.
2768if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2769 INSTALL="${srcpwd}/install-sh -c"
2770fi
2771
671aa708
NN
2772# Set srcdir to "." if that's what it is.
2773# This is important for multilib support.
2774pwd=`${PWDCMD-pwd}`
671aa708
NN
2775if test "${pwd}" = "${srcpwd}" ; then
2776 srcdir=.
79c06341
JL
2777fi
2778
671aa708 2779topsrcdir=$srcpwd
5d4a5ee6 2780
671aa708 2781extra_host_args=
afabd8e6 2782
671aa708
NN
2783### To add a new directory to the tree, first choose whether it is a target
2784### or a host dependent tool. Then put it into the appropriate list
2785### (library or tools, host or target), doing a dependency sort.
79c06341 2786
1c710c3c 2787# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2788# configdirs, or target_configdirs; see the serialization section below.
79c06341 2789
1c710c3c
DJ
2790# Dependency sorting is only needed when *configuration* must be done in
2791# a particular order. In all cases a dependency should be specified in
671aa708 2792# the Makefile, whether or not it's implicitly specified here.
79c06341 2793
671aa708
NN
2794# Double entries in build_configdirs, configdirs, or target_configdirs may
2795# cause circular dependencies and break everything horribly.
79c06341 2796
23f6b2f9
PB
2797# these library is used by various programs built for the build
2798# environment
2799#
929315a9 2800build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2801
2802# these tools are built for the build environment
85bfb75e 2803build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2804
671aa708 2805# these libraries are used by various programs built for the host environment
eae1a5d4 2806#f
3de627ff 2807host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
671aa708 2808
671aa708
NN
2809# these tools are built for the host environment
2810# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2811# know that we are building the simulator.
2812# binutils, gas and ld appear in that order because it makes sense to run
2813# "make check" in that particular order.
38e3d868 2814# If --enable-gold is used, "gold" may replace "ld".
2efd8b1f 2815host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools"
671aa708 2816
671aa708
NN
2817# these libraries are built for the target environment, and are built after
2818# the host libraries and the host tools (which may be a cross compiler)
8499116a 2819# Note that libiberty is not a target library.
291f172e 2820target_libraries="target-libgcc \
eff02e4f 2821 target-libbacktrace \
671aa708
NN
2822 target-libgloss \
2823 target-newlib \
6d3b5aea 2824 target-libgomp \
48310492 2825 target-libatomic \
0a35513e 2826 target-libitm \
cb543528 2827 target-libstdc++-v3 \
f35db108 2828 target-libsanitizer \
2077db1b 2829 target-libvtv \
77008252 2830 target-libssp \
1ec601bf 2831 target-libquadmath \
6de9cd9a 2832 target-libgfortran \
012447ea 2833 target-libffi \
d9cdb878 2834 target-libobjc \
632e2a07 2835 target-libada \
b4c522fa 2836 target-libgo \
bb50312e
IB
2837 target-libphobos \
2838 target-zlib"
671aa708 2839
4dbda6f0
NN
2840# these tools are built using the target libraries, and are intended to
2841# run only in the target environment
671aa708 2842#
4dbda6f0 2843# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2844# list belongs in this list.
671aa708 2845#
85bfb75e 2846target_tools="target-rda"
79c06341 2847
671aa708 2848################################################################################
79c06341 2849
671aa708
NN
2850## All tools belong in one of the four categories, and are assigned above
2851## We assign ${configdirs} this way to remove all embedded newlines. This
2852## is important because configure will choke if they ever get through.
2853## ${configdirs} is directories we build using the host tools.
2854## ${target_configdirs} is directories we build using the target tools.
671aa708 2855configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2856target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2857build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2858
ac9e6043
RW
2859
2860
671aa708 2861################################################################################
79c06341 2862
671aa708 2863srcname="gnu development package"
79c06341 2864
671aa708
NN
2865# This gets set non-empty for some net releases of packages.
2866appdirs=""
79c06341 2867
671aa708
NN
2868# Define is_cross_compiler to save on calls to 'test'.
2869is_cross_compiler=
2870if test x"${host}" = x"${target}" ; then
2871 is_cross_compiler=no
79c06341 2872else
671aa708 2873 is_cross_compiler=yes
1c710c3c 2874fi
79c06341 2875
b4acb5ef 2876# Find the build and target subdir names.
8b87bb96 2877
2e9e6f68
DJ
2878# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2879# have matching libraries, they should use host libraries: Makefile.tpl
2880# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2881# However, they still use the build modules, because the corresponding
2882# host modules (e.g. bison) are only built for the host when bootstrap
2883# finishes. So:
2884# - build_subdir is where we find build modules, and never changes.
2885# - build_libsubdir is where we find build libraries, and can be overridden.
2886
2887# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2888build_subdir="build-${build_noncanonical}"
1c710c3c 2889
5213506e
RW
2890# Check whether --with-build-libsubdir was given.
2891if test "${with_build_libsubdir+set}" = set; then :
2892 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2893else
2894 build_libsubdir="$build_subdir"
5213506e
RW
2895fi
2896
215c351a
PB
2897# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2898if ( test $srcdir = . && test -d gcc ) \
2899 || test -d $srcdir/../host-${host_noncanonical}; then
2900 host_subdir="host-${host_noncanonical}"
2901else
2902 host_subdir=.
2903fi
8b87bb96
NN
2904# No prefix.
2905target_subdir=${target_noncanonical}
1c710c3c 2906
0db770bd
RW
2907# Be sure to cover against remnants of an in-tree build.
2908if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
22e05272 2909 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
0db770bd
RW
2910Use a pristine source tree when building in a separate tree" "$LINENO" 5
2911fi
79c06341 2912
671aa708
NN
2913# Skipdirs are removed silently.
2914skipdirs=
2915# Noconfigdirs are removed loudly.
2916noconfigdirs=""
79c06341 2917
671aa708
NN
2918use_gnu_ld=
2919# Make sure we don't let GNU ld be added if we didn't want it.
2920if test x$with_gnu_ld = xno ; then
2921 use_gnu_ld=no
5afab7ad 2922 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2923fi
2924
671aa708
NN
2925use_gnu_as=
2926# Make sure we don't let GNU as be added if we didn't want it.
2927if test x$with_gnu_as = xno ; then
2928 use_gnu_as=no
2929 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2930fi
2931
d7f09764 2932use_included_zlib=
a05c2c75
L
2933
2934# Check whether --with-system-zlib was given.
2935if test "${with_system_zlib+set}" = set; then :
2936 withval=$with_system_zlib;
2937fi
2938
d7f09764
DN
2939# Make sure we don't let ZLIB be added if we didn't want it.
2940if test x$with_system_zlib = xyes ; then
2941 use_included_zlib=no
2942 noconfigdirs="$noconfigdirs zlib"
2943fi
2944
36ba9851
ДП
2945# Don't compile the bundled readline/libreadline.a if --with-system-readline
2946# is provided.
2947if test x$with_system_readline = xyes ; then
2948 noconfigdirs="$noconfigdirs readline"
2949fi
2950
1c710c3c 2951# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2952# it's not even worth trying to configure, much less build, that tool.
79c06341 2953
671aa708
NN
2954case ${with_x} in
2955 yes | "") ;; # the default value for this tree is that X11 is available
2956 no)
b4f96efe 2957 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2958 # We won't be able to build gdbtk without X.
1c710c3c 2959 enable_gdbtk=no
671aa708
NN
2960 ;;
2961 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2962esac
79c06341 2963
1bcce263 2964# Some are only suitable for cross toolchains.
671aa708
NN
2965# Remove these if host=target.
2966cross_only="target-libgloss target-newlib target-opcodes"
2967
2968case $is_cross_compiler in
2969 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2970esac
79c06341 2971
671aa708
NN
2972# If both --with-headers and --with-libs are specified, default to
2973# --without-newlib.
ee6a22df
L
2974if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2975 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2976 if test x"${with_newlib}" = x ; then
2977 with_newlib=no
2978 fi
79c06341
JL
2979fi
2980
671aa708
NN
2981# Recognize --with-newlib/--without-newlib.
2982case ${with_newlib} in
2983 no) skipdirs="${skipdirs} target-newlib" ;;
2984 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2985esac
79c06341 2986
85c64bbe
BS
2987# Check whether --enable-as-accelerator-for was given.
2988if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2989 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2990fi
2991
2992
2993# Check whether --enable-offload-targets was given.
2994if test "${enable_offload_targets+set}" = set; then :
2995 enableval=$enable_offload_targets;
2996 if test x"$enable_offload_targets" = x; then
22e05272 2997 as_fn_error $? "no offload targets specified" "$LINENO" 5
85c64bbe
BS
2998 fi
2999
3000else
3001 enable_offload_targets=
3002fi
3003
3004
fe5bfa67
TB
3005# Check whether --enable-offload-defaulted was given.
3006if test "${enable_offload_defaulted+set}" = set; then :
3007 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3008else
3009 enable_offload_defaulted=
3010fi
3011
3012
21539e2e
MK
3013# Handle --enable-gold, --enable-ld.
3014# --disable-gold [--enable-ld]
3015# Build only ld. Default option.
9580395f
L
3016# --enable-gold [--enable-ld]
3017# Build both gold and ld. Install gold as "ld.gold", install ld
3018# as "ld.bfd" and "ld".
3019# --enable-gold=default [--enable-ld]
21539e2e
MK
3020# Build both gold and ld. Install gold as "ld.gold" and "ld",
3021# install ld as "ld.bfd".
3022# --enable-gold[=default] --disable-ld
3023# Build only gold, which is then installed as both "ld.gold" and "ld".
3024# --enable-gold --enable-ld=default
9580395f
L
3025# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3026# and ld.bfd).
21539e2e
MK
3027# In other words, ld is default
3028# --enable-gold=default --enable-ld=default
3029# Error.
3030
3031default_ld=
5213506e
RW
3032# Check whether --enable-gold was given.
3033if test "${enable_gold+set}" = set; then :
3034 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
3035else
3036 ENABLE_GOLD=no
5213506e
RW
3037fi
3038
21539e2e
MK
3039case "${ENABLE_GOLD}" in
3040 yes|default)
38e3d868
RM
3041 # Check for ELF target.
3042 is_elf=no
3043 case "${target}" in
3044 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 3045 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 3046 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 3047 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
3048 case "${target}" in
3049 *-*-linux*aout* | *-*-linux*oldld*)
3050 ;;
3051 *)
3052 is_elf=yes
3053 ;;
3054 esac
3055 esac
3056
3057 if test "$is_elf" = "yes"; then
3058 # Check for target supported by gold.
5afab7ad 3059 case "${target}" in
7705dfd1 3060 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
fc259b52 3061 | aarch64*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
21539e2e
MK
3062 configdirs="$configdirs gold"
3063 if test x${ENABLE_GOLD} = xdefault; then
3064 default_ld=gold
3065 fi
38e3d868 3066 ENABLE_GOLD=yes
5afab7ad
ILT
3067 ;;
3068 esac
38e3d868
RM
3069 fi
3070 ;;
3071 no)
3072 ;;
3073 *)
22e05272 3074 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
38e3d868 3075 ;;
21539e2e
MK
3076esac
3077
3078# Check whether --enable-ld was given.
3079if test "${enable_ld+set}" = set; then :
3080 enableval=$enable_ld; ENABLE_LD=$enableval
3081else
3082 ENABLE_LD=yes
3083fi
3084
3085
3086case "${ENABLE_LD}" in
3087 default)
9580395f 3088 if test x${default_ld} != x; then
22e05272 3089 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
21539e2e
MK
3090 fi
3091 ;;
3092 yes)
3093 ;;
3094 no)
3095 if test x${ENABLE_GOLD} != xyes; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3097$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3098 fi
3099 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3100 ;;
3101 *)
22e05272 3102 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
21539e2e
MK
3103 ;;
3104esac
5afab7ad 3105
78edb32f
L
3106# PR gas/19109
3107# Decide the default method for compressing debug sections.
3108# Provide a configure time option to override our default.
3109# Check whether --enable-compressed_debug_sections was given.
3110if test "${enable_compressed_debug_sections+set}" = set; then :
3111 enableval=$enable_compressed_debug_sections;
3112 if test x"$enable_compressed_debug_sections" = xyes; then
22e05272 3113 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
78edb32f
L
3114 fi
3115
3116else
3117 enable_compressed_debug_sections=
3118fi
3119
3120
671aa708 3121# Configure extra directories which are host specific
79c06341 3122
671aa708
NN
3123case "${host}" in
3124 *-cygwin*)
3125 configdirs="$configdirs libtermcap" ;;
3126esac
79c06341 3127
4fab7234
HPN
3128# A target can indicate whether a language isn't supported for some reason.
3129# Only spaces may be used in this macro; not newlines or tabs.
3130unsupported_languages=
3131
1c710c3c 3132# Remove more programs from consideration, based on the host or
671aa708
NN
3133# target this usually means that a port of the program doesn't
3134# exist yet.
ec8d6ddc 3135
671aa708 3136case "${host}" in
111eeb6e 3137 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3138 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3139 ;;
671aa708 3140esac
ec8d6ddc 3141
6de9cd9a 3142
87e6d9dc
TB
3143# Check whether --enable-libquadmath was given.
3144if test "${enable_libquadmath+set}" = set; then :
3145 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3146else
3147 ENABLE_LIBQUADMATH=yes
3148fi
3149
3150if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3151 noconfigdirs="$noconfigdirs target-libquadmath"
3152fi
3153
3154
3155# Check whether --enable-libquadmath-support was given.
3156if test "${enable_libquadmath_support+set}" = set; then :
3157 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3158else
3159 ENABLE_LIBQUADMATH_SUPPORT=yes
3160fi
3161
3162enable_libquadmath_support=
3163if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3164 enable_libquadmath_support=no
3165fi
3166
3167
5213506e
RW
3168# Check whether --enable-libada was given.
3169if test "${enable_libada+set}" = set; then :
3170 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3171else
3172 ENABLE_LIBADA=yes
5213506e
RW
3173fi
3174
d9cdb878 3175if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3176 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3177fi
3178
5213506e
RW
3179# Check whether --enable-libssp was given.
3180if test "${enable_libssp+set}" = set; then :
3181 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3182else
3183 ENABLE_LIBSSP=yes
5213506e
RW
3184fi
3185
ef0087a7 3186
1873ec0c
L
3187# Check whether --enable-libstdcxx was given.
3188if test "${enable_libstdcxx+set}" = set; then :
3189 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3190else
3191 ENABLE_LIBSTDCXX=default
3192fi
3193
3194if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3195 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3196fi
3197
44a7d18d 3198# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3199if test x$enable_libgomp = x ; then
953ff289 3200 case "${target}" in
416ac4d4 3201 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3202 ;;
8c6d158a 3203 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3204 ;;
b24513a1 3205 *-*-solaris2* | *-*-hpux11*)
953ff289 3206 ;;
cac90078 3207 *-*-darwin* | *-*-aix*)
953ff289 3208 ;;
29b1533a 3209 nvptx*-*-* | amdgcn*-*-*)
44a7d18d 3210 ;;
953ff289
DN
3211 *)
3212 noconfigdirs="$noconfigdirs target-libgomp"
3213 ;;
3214 esac
27079765 3215fi
953ff289 3216
48310492
RH
3217# Disable libatomic on unsupported systems.
3218if test -d ${srcdir}/libatomic; then
3219 if test x$enable_libatomic = x; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3221$as_echo_n "checking for libatomic support... " >&6; }
3222 if (srcdir=${srcdir}/libatomic; \
3223 . ${srcdir}/configure.tgt; \
3224 test -n "$UNSUPPORTED")
3225 then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227$as_echo "no" >&6; }
3228 noconfigdirs="$noconfigdirs target-libatomic"
3229 else
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3231$as_echo "yes" >&6; }
3232 fi
3233 fi
3234fi
3235
e948157d
RH
3236# Disable libitm on unsupported systems.
3237if test -d ${srcdir}/libitm; then
3238 if test x$enable_libitm = x; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3240$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3241 if (srcdir=${srcdir}/libitm; \
3242 . ${srcdir}/configure.tgt; \
3243 test -n "$UNSUPPORTED")
3244 then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3246$as_echo "no" >&6; }
e948157d
RH
3247 noconfigdirs="$noconfigdirs target-libitm"
3248 else
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3250$as_echo "yes" >&6; }
e948157d
RH
3251 fi
3252 fi
0a35513e
AH
3253fi
3254
93bf5390
RH
3255# Disable libsanitizer on unsupported systems.
3256if test -d ${srcdir}/libsanitizer; then
3257 if test x$enable_libsanitizer = x; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3259$as_echo_n "checking for libsanitizer support... " >&6; }
3260 if (srcdir=${srcdir}/libsanitizer; \
3261 . ${srcdir}/configure.tgt; \
3262 test -n "$UNSUPPORTED")
3263 then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265$as_echo "no" >&6; }
3266 noconfigdirs="$noconfigdirs target-libsanitizer"
3267 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3269$as_echo "yes" >&6; }
3270 fi
3271 fi
3272fi
3273
2077db1b
CT
3274# Disable libvtv on unsupported systems.
3275if test -d ${srcdir}/libvtv; then
3276 if test x$enable_libvtv = x; then
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3278$as_echo_n "checking for libvtv support... " >&6; }
3279 if (srcdir=${srcdir}/libvtv; \
3280 . ${srcdir}/configure.tgt; \
1e74b850 3281 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3282 then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284$as_echo "no" >&6; }
3285 noconfigdirs="$noconfigdirs target-libvtv"
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3288$as_echo "yes" >&6; }
3289 fi
3290 fi
3291fi
3292
d91491e5
SE
3293# Disable libquadmath for some systems.
3294case "${target}" in
e7fae550
DE
3295 avr-*-*)
3296 noconfigdirs="$noconfigdirs target-libquadmath"
3297 ;;
d91491e5
SE
3298 # libquadmath is unused on AIX and libquadmath build process use of
3299 # LD_LIBRARY_PATH can break AIX bootstrap.
3300 powerpc-*-aix* | rs6000-*-aix*)
3301 noconfigdirs="$noconfigdirs target-libquadmath"
3302 ;;
3303esac
3304
1e9e0e23
JM
3305# Disable libssp for some systems.
3306case "${target}" in
3307 avr-*-*)
b318fb4b 3308 # No hosted I/O support.
1e9e0e23
JM
3309 noconfigdirs="$noconfigdirs target-libssp"
3310 ;;
91dfef96
JM
3311 bpf-*-*)
3312 noconfigdirs="$noconfigdirs target-libssp"
3313 ;;
1e9e0e23
JM
3314 powerpc-*-aix* | rs6000-*-aix*)
3315 noconfigdirs="$noconfigdirs target-libssp"
85b8555e 3316 ;;
8d2af3a2
DD
3317 pru-*-*)
3318 # No hosted I/O support.
3319 noconfigdirs="$noconfigdirs target-libssp"
3320 ;;
85b8555e 3321 rl78-*-*)
7cb62ef1
EB
3322 # libssp uses a misaligned load to trigger a fault, but the RL78
3323 # doesn't fault for those - instead, it gives a build-time error
3324 # for explicit misaligned loads.
85b8555e 3325 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3326 ;;
0969ec7d
EB
3327 visium-*-*)
3328 # No hosted I/O support.
3329 noconfigdirs="$noconfigdirs target-libssp"
3330 ;;
1e9e0e23
JM
3331esac
3332
1e9e0e23 3333# Disable libstdc++-v3 for some systems.
67a1cb2a 3334# Allow user to override this if they pass --enable-libstdcxx
1873ec0c
L
3335if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3336 case "${target}" in
3337 *-*-vxworks*)
3338 # VxWorks uses the Dinkumware C++ library.
3339 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3340 ;;
afa3d80e
TS
3341 amdgcn*-*-*)
3342 # Not ported/fails to build when using newlib.
3343 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3344 ;;
1873ec0c
L
3345 arm*-wince-pe*)
3346 # the C++ libraries don't build on top of CE's C libraries
3347 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3348 ;;
3349 avr-*-*)
3350 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3351 ;;
91dfef96
JM
3352 bpf-*-*)
3353 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3354 ;;
fef939d6
JB
3355 ft32-*-*)
3356 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3357 ;;
1873ec0c
L
3358 esac
3359fi
1e9e0e23 3360
91dfef96
JM
3361# Disable C++ on systems where it is known to not work.
3362# For testing, you can override this with --enable-languages=c++.
3363case ,${enable_languages}, in
3364 *,c++,*)
3365 ;;
3366 *)
3367 case "${target}" in
3368 bpf-*-*)
3369 unsupported_languages="$unsupported_languages c++"
3370 ;;
3371 esac
3372 ;;
3373esac
3374
3375# Disable Objc on systems where it is known to not work.
3376# For testing, you can override this with --enable-languages=objc.
3377case ,${enable_languages}, in
3378 *,objc,*)
3379 ;;
3380 *)
3381 case "${target}" in
3382 bpf-*-*)
3383 unsupported_languages="$unsupported_languages objc"
3384 ;;
3385 esac
3386 ;;
3387esac
3388
260eedb9
IB
3389# Disable D on systems where it is known to not work.
3390# For testing, you can override this with --enable-languages=d.
3391case ,${enable_languages}, in
3392 *,d,*)
3393 ;;
3394 *)
3395 case "${target}" in
91dfef96 3396 bpf-*-*)
260eedb9
IB
3397 unsupported_languages="$unsupported_languages d"
3398 ;;
3399 esac
3400 ;;
3401esac
3402
3403# Disable libphobos on unsupported systems.
3404# For testing, you can override this with --enable-libphobos.
3405if test -d ${srcdir}/libphobos; then
3406 if test x$enable_libphobos = x; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3408$as_echo_n "checking for libphobos support... " >&6; }
3409 if (srcdir=${srcdir}/libphobos; \
3410 . ${srcdir}/configure.tgt; \
7d31d331 3411 test "$LIBPHOBOS_SUPPORTED" != "yes")
260eedb9
IB
3412 then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414$as_echo "no" >&6; }
3415 noconfigdirs="$noconfigdirs target-libphobos"
3416 else
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3418$as_echo "yes" >&6; }
3419 fi
3420 fi
3421fi
3422
1e9e0e23
JM
3423# Disable Fortran for some systems.
3424case "${target}" in
3425 mmix-*-*)
3426 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3427 unsupported_languages="$unsupported_languages fortran"
3428 ;;
91dfef96
JM
3429 bpf-*-*)
3430 unsupported_languages="$unsupported_languages fortran"
3431 ;;
1e9e0e23
JM
3432esac
3433
012447ea
JJ
3434# Disable libffi for some systems.
3435case "${target}" in
3436 powerpc-*-darwin*)
3437 ;;
3438 i[3456789]86-*-darwin*)
3439 ;;
3440 x86_64-*-darwin[912]*)
3441 ;;
3442 *-*-darwin*)
3443 noconfigdirs="$noconfigdirs target-libffi"
3444 ;;
3445 *-*-netware*)
3446 noconfigdirs="$noconfigdirs target-libffi"
3447 ;;
3448 *-*-phoenix*)
3449 noconfigdirs="$noconfigdirs target-libffi"
3450 ;;
3451 *-*-rtems*)
3452 noconfigdirs="$noconfigdirs target-libffi"
3453 ;;
3454 *-*-tpf*)
3455 noconfigdirs="$noconfigdirs target-libffi"
3456 ;;
3457 *-*-uclinux*)
3458 noconfigdirs="$noconfigdirs target-libffi"
3459 ;;
3460 *-*-vxworks*)
3461 noconfigdirs="$noconfigdirs target-libffi"
3462 ;;
b20e7532
AT
3463 aarch64*-*-freebsd*)
3464 noconfigdirs="$noconfigdirs target-libffi"
3465 ;;
012447ea
JJ
3466 alpha*-*-*vms*)
3467 noconfigdirs="$noconfigdirs target-libffi"
3468 ;;
3469 arm*-*-freebsd*)
3470 noconfigdirs="$noconfigdirs target-libffi"
3471 ;;
3472 arm-wince-pe)
3473 noconfigdirs="$noconfigdirs target-libffi"
3474 ;;
3475 arm*-*-symbianelf*)
3476 noconfigdirs="$noconfigdirs target-libffi"
3477 ;;
91dfef96
JM
3478 bpf-*-*)
3479 noconfigdirs="$noconfigdirs target-libffi"
3480 ;;
012447ea
JJ
3481 cris-*-* | crisv32-*-*)
3482 case "${target}" in
3483 *-*-linux*)
3484 ;;
3485 *) # See PR46792 regarding target-libffi.
3486 noconfigdirs="$noconfigdirs target-libffi";;
3487 esac
3488 ;;
3489 hppa*64*-*-hpux*)
3490 noconfigdirs="$noconfigdirs target-libffi"
3491 ;;
012447ea
JJ
3492 ia64*-*-*vms*)
3493 noconfigdirs="$noconfigdirs target-libffi"
3494 ;;
3495 i[3456789]86-w64-mingw*)
3496 noconfigdirs="$noconfigdirs target-libffi"
3497 ;;
3498 i[3456789]86-*-mingw*)
3499 noconfigdirs="$noconfigdirs target-libffi"
3500 ;;
3501 x86_64-*-mingw*)
3502 noconfigdirs="$noconfigdirs target-libffi"
3503 ;;
3504 mmix-*-*)
3505 noconfigdirs="$noconfigdirs target-libffi"
3506 ;;
3507 powerpc-*-aix*)
012447ea
JJ
3508 ;;
3509 rs6000-*-aix*)
012447ea
JJ
3510 ;;
3511 ft32-*-*)
3512 noconfigdirs="$noconfigdirs target-libffi"
3513 ;;
3514 *-*-lynxos*)
3515 noconfigdirs="$noconfigdirs target-libffi"
3516 ;;
3517esac
3518
3519# Disable the go frontend on systems where it is known to not work. Please keep
3520# this in sync with contrib/config-list.mk.
3521case "${target}" in
91dfef96 3522*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
012447ea
JJ
3523 unsupported_languages="$unsupported_languages go"
3524 ;;
3525esac
3526
f9d09df0
TT
3527# Only allow gdbserver on some systems.
3528if test -d ${srcdir}/gdbserver; then
3529 if test x$enable_gdbserver = x; then
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3531$as_echo_n "checking for gdbserver support... " >&6; }
3532 if (srcdir=${srcdir}/gdbserver; \
3533 . ${srcdir}/configure.srv; \
3534 test -n "$UNSUPPORTED")
3535 then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537$as_echo "no" >&6; }
3538 noconfigdirs="$noconfigdirs gdbserver"
3539 else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3541$as_echo "yes" >&6; }
3542 fi
3543 fi
3544fi
3545
cdbc9e92
ILT
3546# Disable libgo for some systems where it is known to not work.
3547# For testing, you can easily override this with --enable-libgo.
3548if test x$enable_libgo = x; then
3549 case "${target}" in
3550 *-*-darwin*)
3551 # PR 46986
3552 noconfigdirs="$noconfigdirs target-libgo"
3553 ;;
3554 *-*-cygwin* | *-*-mingw*)
3555 noconfigdirs="$noconfigdirs target-libgo"
3556 ;;
91dfef96
JM
3557 bpf-*-*)
3558 noconfigdirs="$noconfigdirs target-libgo"
3559 ;;
cdbc9e92
ILT
3560 esac
3561fi
3562
c03353e2
RIL
3563# Default libgloss CPU subdirectory.
3564libgloss_dir="$target_cpu"
6de9cd9a 3565
fbcf0dca
JM
3566case "${target}" in
3567 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3568 libgloss_dir=wince
3569 ;;
4dddfc74
YZ
3570 aarch64*-*-* )
3571 libgloss_dir=aarch64
3572 ;;
fbcf0dca
JM
3573 arm*-*-*)
3574 libgloss_dir=arm
3575 ;;
3576 cris-*-* | crisv32-*-*)
3577 libgloss_dir=cris
3578 ;;
3579 hppa*-*-*)
3580 libgloss_dir=pa
3581 ;;
3582 i[3456789]86-*-*)
3583 libgloss_dir=i386
3584 ;;
c6c0594e 3585 loongarch*-*-*)
3586 libgloss_dir=loongarch
3587 ;;
fbcf0dca
JM
3588 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3589 libgloss_dir=m68hc11
3590 ;;
3591 m68*-*-* | fido-*-*)
3592 libgloss_dir=m68k
3593 ;;
3594 mips*-*-*)
3595 libgloss_dir=mips
3596 ;;
3597 powerpc*-*-*)
3598 libgloss_dir=rs6000
3599 ;;
8d2af3a2
DD
3600 pru-*-*)
3601 libgloss_dir=pru
3602 ;;
fbcf0dca
JM
3603 sparc*-*-*)
3604 libgloss_dir=sparc
3605 ;;
3606esac
3607
6a789d5e 3608# Disable newlib and libgloss for various target OSes.
671aa708 3609case "${target}" in
6a789d5e
JM
3610 alpha*-dec-osf*)
3611 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3612 ;;
3613 i[3456789]86-*-linux*)
3614 # This section makes it possible to build newlib natively on linux.
3615 # If we are using a cross compiler then don't configure newlib.
3616 if test x${is_cross_compiler} != xno ; then
3617 noconfigdirs="$noconfigdirs target-newlib"
3618 fi
3619 noconfigdirs="$noconfigdirs target-libgloss"
3620 # If we are not using a cross compiler, do configure newlib.
3621 # Note however, that newlib will only be configured in this situation
3622 # if the --with-newlib option has been given, because otherwise
3623 # 'target-newlib' will appear in skipdirs.
3624 ;;
3625 i[3456789]86-*-rdos*)
3626 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3627 ;;
3628 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3629 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3630 ;;
3631 sparc-*-sunos4*)
3632 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3633 ;;
91dfef96
JM
3634 bpf-*-*)
3635 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3636 ;;
6a789d5e
JM
3637 *-*-aix*)
3638 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3639 ;;
3640 *-*-beos*)
3641 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3642 ;;
671aa708 3643 *-*-chorusos)
0036370f 3644 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3645 ;;
6a789d5e
JM
3646 *-*-dragonfly*)
3647 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3648 ;;
3649 *-*-freebsd*)
3650 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3651 ;;
3652 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3653 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3654 ;;
3655 *-*-lynxos*)
3656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3657 ;;
3658 *-*-mingw*)
3659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3660 ;;
3661 *-*-netbsd*)
3662 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3663 ;;
3664 *-*-netware*)
3665 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3666 ;;
3667 *-*-tpf*)
3668 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3669 ;;
3670 *-*-uclinux*)
3671 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3672 ;;
3673 *-*-vxworks*)
3674 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3675 ;;
3676esac
3677
3678case "${target}" in
3679 *-*-chorusos)
3680 ;;
3be96231
TG
3681 aarch64-*-darwin*)
3682 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3683 noconfigdirs="$noconfigdirs sim target-rda"
3684 ;;
7431c1a1
AS
3685 amdgcn*-*-*)
3686 ;;
3be96231
TG
3687 arm-*-darwin*)
3688 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3689 noconfigdirs="$noconfigdirs sim target-rda"
3690 ;;
75eeae1a 3691 powerpc-*-darwin*)
e1514c3f 3692 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3693 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3694 ;;
354ebf88
RW
3695 i[3456789]86-*-darwin*)
3696 noconfigdirs="$noconfigdirs ld gprof"
3697 noconfigdirs="$noconfigdirs sim target-rda"
3698 ;;
3699 x86_64-*-darwin[912]*)
0db3a858
TG
3700 noconfigdirs="$noconfigdirs ld gas gprof"
3701 noconfigdirs="$noconfigdirs sim target-rda"
3702 ;;
42c1cd8a
AT
3703 *-*-darwin*)
3704 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3705 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3706 ;;
8c6d158a 3707 *-*-dragonfly*)
8c6d158a 3708 ;;
c3f84f61 3709 *-*-freebsd*)
88252529 3710 if test "x$with_gmp" = x \
c0d0a722 3711 && ! test -d ${srcdir}/gmp \
6de9cd9a
DN
3712 && test -f /usr/local/include/gmp.h; then
3713 with_gmp=/usr/local
3714 fi
6de9cd9a 3715 ;;
ef4e7569
US
3716 *-*-kaos*)
3717 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3718 noconfigdirs="$noconfigdirs target-libgloss"
3719 ;;
671aa708 3720 *-*-netbsd*)
671aa708 3721 ;;
61fec9ff 3722 *-*-netware*)
671aa708 3723 ;;
fd6487af
JS
3724 *-*-phoenix*)
3725 noconfigdirs="$noconfigdirs target-libgloss"
3726 ;;
671aa708 3727 *-*-rtems*)
2909494b 3728 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3729 ;;
a8ba31f2
EC
3730 # The tpf target doesn't support gdb yet.
3731 *-*-tpf*)
6a789d5e 3732 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3733 ;;
5785c0ed 3734 *-*-uclinux*)
6a789d5e 3735 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3736 ;;
671aa708 3737 *-*-vxworks*)
671aa708
NN
3738 ;;
3739 alpha*-dec-osf*)
3740 # ld works, but does not support shared libraries.
671aa708 3741 # gas doesn't generate exception information.
6a789d5e 3742 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3743 ;;
3744 alpha*-*-*vms*)
2909494b 3745 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3746 ;;
671aa708
NN
3747 alpha*-*-*)
3748 # newlib is not 64 bit ready
2909494b 3749 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3750 ;;
91dfef96
JM
3751 bpf-*-*)
3752 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3753 ;;
671aa708 3754 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3755 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3756 ;;
2fd88f4f
AK
3757 arc*-*-*)
3758 noconfigdirs="$noconfigdirs sim"
3759 ;;
671aa708 3760 arm-*-pe*)
2909494b 3761 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3762 ;;
671aa708 3763 arm-*-riscix*)
0036370f 3764 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3765 ;;
b588ae30
GJL
3766 avr-*-*)
3767 if test x${with_avrlibc} != xno; then
3768 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3769 fi
3770 ;;
671aa708 3771 c4x-*-* | tic4x-*-*)
0036370f 3772 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3773 ;;
0036370f
JM
3774 tic54x-*-*)
3775 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3776 ;;
671aa708 3777 d10v-*-*)
0036370f 3778 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3779 ;;
3780 d30v-*-*)
0036370f 3781 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3782 ;;
3783 fr30-*-elf*)
2909494b 3784 noconfigdirs="$noconfigdirs gdb"
671aa708 3785 ;;
a05c2c75
L
3786 ft32-*-*)
3787 noconfigdirs="$noconfigdirs target-rda gprof"
3788 ;;
55f2d967 3789 moxie-*-*)
a05c2c75 3790 noconfigdirs="$noconfigdirs"
55f2d967 3791 ;;
671aa708 3792 h8300*-*-*)
2909494b 3793 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3794 ;;
3795 h8500-*-*)
0036370f 3796 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3797 ;;
a05c2c75
L
3798 hppa*64*-*-hpux*)
3799 noconfigdirs="$noconfigdirs gdb"
3800 ;;
4569f85e 3801 hppa*64*-*-linux*)
671aa708 3802 ;;
56f8587a 3803 hppa*-*-linux*)
3e732ba0 3804 ;;
671aa708 3805 hppa*-*-*elf* | \
671aa708
NN
3806 hppa*-*-lites* | \
3807 hppa*-*-openbsd* | \
3808 hppa*64*-*-*)
671aa708 3809 ;;
c03353e2 3810 hppa*-*-pro*)
c03353e2 3811 ;;
671aa708 3812 hppa*-*-*)
2909494b 3813 noconfigdirs="$noconfigdirs ld"
671aa708 3814 ;;
fb87ad5d 3815 i960-*-*)
0036370f 3816 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3817 ;;
671aa708
NN
3818 ia64*-*-elf*)
3819 # No gdb support yet.
1bcce263 3820 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3821 ;;
3822 ia64*-**-hpux*)
5a2931d1 3823 # No ld support yet.
a05c2c75 3824 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3825 ;;
52535a64 3826 ia64*-*-*vms*)
091fe9ca
TG
3827 # No ld support yet.
3828 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3829 ;;
ef4c4300 3830 i[3456789]86-w64-mingw*)
ef4c4300
KT
3831 ;;
3832 i[3456789]86-*-mingw*)
b91f0a41 3833 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3834 ;;
671aa708
NN
3835 *-*-cygwin*)
3836 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3837 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3838 # always build newlib if winsup directory is present.
b91f0a41 3839 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3840 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3841 elif test -d "$srcdir/newlib"; then
b91f0a41 3842 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3843 fi
1c710c3c 3844 ;;
f2a0e225 3845 i[3456789]86-*-pe)
ebb9f8b0 3846 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3847 ;;
f2a0e225 3848 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3849 # The linker does not yet know about weak symbols in COFF,
3850 # and is not configured to handle mixed ELF and COFF.
0036370f 3851 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3852 ;;
f2a0e225 3853 i[3456789]86-*-sco*)
0036370f 3854 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3855 ;;
fbdd5d87 3856 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3857 noconfigdirs="$noconfigdirs target-libgloss"
3858 ;;
f2a0e225 3859 i[3456789]86-*-sysv4*)
0036370f 3860 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3861 ;;
f2a0e225 3862 i[3456789]86-*-beos*)
6a789d5e 3863 noconfigdirs="$noconfigdirs gdb"
3aa83176 3864 ;;
d1f8db0c 3865 i[3456789]86-*-rdos*)
6a789d5e 3866 noconfigdirs="$noconfigdirs gdb"
c03353e2 3867 ;;
671aa708 3868 mmix-*-*)
2909494b 3869 noconfigdirs="$noconfigdirs gdb"
671aa708 3870 ;;
ab34901f 3871 mt-*-*)
79dd769c
AH
3872 noconfigdirs="$noconfigdirs sim"
3873 ;;
58b40a67
FT
3874 nfp-*-*)
3875 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3876 noconfigdirs="$noconfigdirs $target_libraries"
3877 ;;
e6cbe965
SC
3878 pdp11-*-*)
3879 noconfigdirs="$noconfigdirs gdb gprof"
3880 ;;
671aa708
NN
3881 powerpc-*-aix*)
3882 # copied from rs6000-*-* entry
6a789d5e 3883 noconfigdirs="$noconfigdirs gprof"
671aa708 3884 ;;
4569f85e 3885 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3886 target_configdirs="$target_configdirs target-winsup"
0036370f 3887 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3888 # always build newlib.
3889 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3890 ;;
3891 # This is temporary until we can link against shared libraries
3892 powerpcle-*-solaris*)
0036370f 3893 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3894 ;;
3895 powerpc-*-beos*)
6a789d5e 3896 noconfigdirs="$noconfigdirs gdb"
671aa708 3897 ;;
671aa708 3898 rs6000-*-lynxos*)
6a789d5e 3899 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3900 ;;
3901 rs6000-*-aix*)
6a789d5e 3902 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3903 ;;
3904 rs6000-*-*)
2909494b 3905 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3906 ;;
3907 m68k-apollo-*)
0036370f 3908 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3909 ;;
ca9fe997 3910 microblaze*)
2909494b 3911 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3912 ;;
d896cc4d 3913 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3914 if test x$with_newlib = xyes; then
3915 noconfigdirs="$noconfigdirs gprof"
3916 fi
d9dced13 3917 ;;
671aa708 3918 mips*-*-irix5*)
0036370f 3919 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3920 ;;
3921 mips*-*-irix6*)
2909494b 3922 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3923 ;;
671aa708 3924 mips*-*-bsd*)
bc98bcc4 3925 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3926 ;;
671aa708 3927 mips*-*-linux*)
671aa708 3928 ;;
bc98bcc4
JBG
3929 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3930 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3931 noconfigdirs="$noconfigdirs ld gas gprof"
3932 ;;
671aa708 3933 mips*-*-*)
2909494b 3934 noconfigdirs="$noconfigdirs gprof"
671aa708 3935 ;;
738f2522 3936 nvptx*-*-*)
738f2522
BS
3937 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3938 ;;
bc6d9014 3939 sh-*-*)
ea2002ba
CB
3940 case "${target}" in
3941 sh*-*-elf)
2909494b 3942 ;;
ea2002ba 3943 *)
2909494b 3944 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3945 esac
671aa708 3946 ;;
671aa708 3947 sparc-*-sunos4*)
6a789d5e 3948 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3949 use_gnu_ld=no
3950 fi
3951 ;;
b42f0d7e 3952 tic6x-*-*)
0d557ff8 3953 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3954 ;;
671aa708 3955 v810-*-*)
0036370f 3956 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3957 ;;
3958 vax-*-*)
2909494b 3959 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3960 ;;
1fc1d82e
MR
3961 wasm32-*-*)
3962 noconfigdirs="$noconfigdirs ld"
3963 ;;
c6c0594e 3964 loongarch*-*-linux*)
3965 ;;
3966 loongarch*-*-*)
3967 noconfigdirs="$noconfigdirs gprof"
3968 ;;
671aa708 3969esac
79c06341 3970
671aa708
NN
3971# If we aren't building newlib, then don't build libgloss, since libgloss
3972# depends upon some newlib header files.
3973case "${noconfigdirs}" in
3974 *target-libgloss*) ;;
3975 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3976esac
3977
671aa708 3978# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3979host_makefile_frag=/dev/null
3980if test -d ${srcdir}/config ; then
3981case "${host}" in
f2a0e225 3982 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3983 host_makefile_frag="config/mh-djgpp"
3984 ;;
3985 *-cygwin*)
2a79c47f 3986
5213506e
RW
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3988$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3989echo a >cygwin-cat-check
e25a8c82 3990if test `cat cygwin-cat-check` = a ; then
2a79c47f 3991 rm cygwin-cat-check
5213506e
RW
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3993$as_echo "yes" >&6; }
2a79c47f
NC
3994else
3995 rm cygwin-cat-check
5213506e
RW
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997$as_echo "no" >&6; }
22e05272 3998 as_fn_error $? "The cat command does not ignore carriage return characters.
2a79c47f
NC
3999 Please either mount the build directory in binary mode or run the following
4000 commands before running any configure script:
4001set -o igncr
4002export SHELLOPTS
5213506e 4003 " "$LINENO" 5
2a79c47f
NC
4004fi
4005
671aa708
NN
4006 host_makefile_frag="config/mh-cygwin"
4007 ;;
c53a18d3 4008 *-mingw*)
1f5a6b84 4009 host_makefile_frag="config/mh-mingw"
95af8923 4010 ;;
cabb9d59 4011 alpha*-linux*)
13be44ed
UB
4012 host_makefile_frag="config/mh-alpha-linux"
4013 ;;
111eeb6e 4014 hppa*-hp-hpux*)
efd41714
PB
4015 host_makefile_frag="config/mh-pa"
4016 ;;
4017 hppa*-*)
4018 host_makefile_frag="config/mh-pa"
4019 ;;
54258e22 4020 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
d8ed14ce 4021 host_makefile_frag="config/mh-darwin"
be8fff81 4022 ;;
d19bca38
PB
4023 powerpc-*-aix*)
4024 host_makefile_frag="config/mh-ppc-aix"
4025 ;;
4026 rs6000-*-aix*)
4027 host_makefile_frag="config/mh-ppc-aix"
4028 ;;
671aa708
NN
4029esac
4030fi
4031
55ffb5ed 4032if test "${build}" != "${host}" ; then
0999159b
PB
4033 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4034 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4035 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
c841dc0a 4036 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
0999159b 4037 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3b5e8ee4 4038 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
0999159b 4039 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4040 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
b4c522fa 4041 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
0999159b
PB
4042 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4043 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4044 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4045 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4046 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4047 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4048else
4049 AR_FOR_BUILD="\$(AR)"
4050 AS_FOR_BUILD="\$(AS)"
fb0103e5 4051 CC_FOR_BUILD="\$(CC)"
0999159b 4052 CXX_FOR_BUILD="\$(CXX)"
3b5e8ee4 4053 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
0999159b 4054 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4055 GOC_FOR_BUILD="\$(GOC)"
b4c522fa 4056 GDC_FOR_BUILD="\$(GDC)"
0999159b
PB
4057 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4058 LD_FOR_BUILD="\$(LD)"
4059 NM_FOR_BUILD="\$(NM)"
4060 RANLIB_FOR_BUILD="\$(RANLIB)"
4061 WINDRES_FOR_BUILD="\$(WINDRES)"
4062 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4063fi
4064
4065ac_ext=c
1c710c3c
DJ
4066ac_cpp='$CPP $CPPFLAGS'
4067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070if test -n "$ac_tool_prefix"; then
4071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4072set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4075if ${ac_cv_prog_CC+:} false; then :
5213506e 4076 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4077else
4078 if test -n "$CC"; then
4079 ac_cv_prog_CC="$CC" # Let the user override the test.
4080else
4081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082for as_dir in $PATH
4083do
4084 IFS=$as_save_IFS
4085 test -z "$as_dir" && as_dir=.
5213506e 4086 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4088 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4090 break 2
4091 fi
4092done
5213506e
RW
4093 done
4094IFS=$as_save_IFS
1c710c3c
DJ
4095
4096fi
4097fi
4098CC=$ac_cv_prog_CC
4099if test -n "$CC"; then
5213506e
RW
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4101$as_echo "$CC" >&6; }
1c710c3c 4102else
5213506e
RW
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104$as_echo "no" >&6; }
1c710c3c
DJ
4105fi
4106
5213506e 4107
1c710c3c
DJ
4108fi
4109if test -z "$ac_cv_prog_CC"; then
4110 ac_ct_CC=$CC
fb0103e5
RG
4111 # Extract the first word of "gcc", so it can be a program name with args.
4112set dummy gcc; ac_word=$2
5213506e
RW
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4115if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4116 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4117else
4118 if test -n "$ac_ct_CC"; then
4119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4120else
4121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122for as_dir in $PATH
4123do
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
5213506e 4126 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4128 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4130 break 2
4131 fi
4132done
5213506e
RW
4133 done
4134IFS=$as_save_IFS
1c710c3c
DJ
4135
4136fi
4137fi
4138ac_ct_CC=$ac_cv_prog_ac_ct_CC
4139if test -n "$ac_ct_CC"; then
5213506e
RW
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4141$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4142else
5213506e
RW
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144$as_echo "no" >&6; }
1c710c3c
DJ
4145fi
4146
5213506e
RW
4147 if test "x$ac_ct_CC" = x; then
4148 CC=""
4149 else
4150 case $cross_compiling:$ac_tool_warned in
4151yes:)
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4154ac_tool_warned=yes ;;
4155esac
4156 CC=$ac_ct_CC
4157 fi
1c710c3c
DJ
4158else
4159 CC="$ac_cv_prog_CC"
4160fi
4161
4162if test -z "$CC"; then
5213506e
RW
4163 if test -n "$ac_tool_prefix"; then
4164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4165set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4168if ${ac_cv_prog_CC+:} false; then :
5213506e 4169 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4170else
4171 if test -n "$CC"; then
4172 ac_cv_prog_CC="$CC" # Let the user override the test.
4173else
1c710c3c
DJ
4174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175for as_dir in $PATH
4176do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
5213506e 4179 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4181 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4183 break 2
4184 fi
4185done
5213506e
RW
4186 done
4187IFS=$as_save_IFS
1c710c3c 4188
0b0dc272 4189fi
0b0dc272 4190fi
1c710c3c 4191CC=$ac_cv_prog_CC
af71363e 4192if test -n "$CC"; then
5213506e
RW
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4194$as_echo "$CC" >&6; }
2aeb72e9 4195else
5213506e
RW
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197$as_echo "no" >&6; }
2aeb72e9
DD
4198fi
4199
2aeb72e9 4200
5213506e 4201 fi
1c710c3c 4202fi
55ffb5ed
NN
4203if test -z "$CC"; then
4204 # Extract the first word of "cc", so it can be a program name with args.
4205set dummy cc; ac_word=$2
5213506e
RW
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4208if ${ac_cv_prog_CC+:} false; then :
5213506e 4209 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4210else
4211 if test -n "$CC"; then
4212 ac_cv_prog_CC="$CC" # Let the user override the test.
4213else
0b0dc272 4214 ac_prog_rejected=no
1c710c3c
DJ
4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH
4217do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
5213506e 4220 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4222 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4223 ac_prog_rejected=yes
4224 continue
4225 fi
4226 ac_cv_prog_CC="cc"
5213506e 4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4228 break 2
4229 fi
4230done
5213506e
RW
4231 done
4232IFS=$as_save_IFS
1c710c3c 4233
55ffb5ed
NN
4234if test $ac_prog_rejected = yes; then
4235 # We found a bogon in the path, so make sure we never use it.
4236 set dummy $ac_cv_prog_CC
4237 shift
1c710c3c 4238 if test $# != 0; then
55ffb5ed
NN
4239 # We chose a different compiler from the bogus one.
4240 # However, it has the same basename, so the bogon will be chosen
4241 # first if we set CC to just the basename; use the full file name.
4242 shift
1c710c3c 4243 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4244 fi
4245fi
4246fi
4247fi
1c710c3c 4248CC=$ac_cv_prog_CC
55ffb5ed 4249if test -n "$CC"; then
5213506e
RW
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4251$as_echo "$CC" >&6; }
55ffb5ed 4252else
5213506e
RW
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254$as_echo "no" >&6; }
55ffb5ed
NN
4255fi
4256
5213506e 4257
1c710c3c
DJ
4258fi
4259if test -z "$CC"; then
4260 if test -n "$ac_tool_prefix"; then
5213506e 4261 for ac_prog in cl.exe
1c710c3c
DJ
4262 do
4263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4264set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4267if ${ac_cv_prog_CC+:} false; then :
5213506e 4268 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4269else
4270 if test -n "$CC"; then
4271 ac_cv_prog_CC="$CC" # Let the user override the test.
4272else
1c710c3c
DJ
4273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
5213506e 4278 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4280 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4282 break 2
4283 fi
4284done
5213506e
RW
4285 done
4286IFS=$as_save_IFS
1c710c3c 4287
55ffb5ed
NN
4288fi
4289fi
1c710c3c 4290CC=$ac_cv_prog_CC
55ffb5ed 4291if test -n "$CC"; then
5213506e
RW
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4293$as_echo "$CC" >&6; }
a4b9e93e 4294else
5213506e
RW
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296$as_echo "no" >&6; }
fb0103e5 4297fi
af71363e 4298
5213506e 4299
1c710c3c
DJ
4300 test -n "$CC" && break
4301 done
af71363e 4302fi
1c710c3c
DJ
4303if test -z "$CC"; then
4304 ac_ct_CC=$CC
5213506e 4305 for ac_prog in cl.exe
1c710c3c
DJ
4306do
4307 # Extract the first word of "$ac_prog", so it can be a program name with args.
4308set dummy $ac_prog; ac_word=$2
5213506e
RW
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4311if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4312 $as_echo_n "(cached) " >&6
0b0dc272 4313else
1c710c3c
DJ
4314 if test -n "$ac_ct_CC"; then
4315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4316else
1c710c3c
DJ
4317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318for as_dir in $PATH
4319do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
5213506e 4322 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4324 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4326 break 2
4327 fi
4328done
5213506e
RW
4329 done
4330IFS=$as_save_IFS
1c710c3c 4331
af71363e
AS
4332fi
4333fi
1c710c3c
DJ
4334ac_ct_CC=$ac_cv_prog_ac_ct_CC
4335if test -n "$ac_ct_CC"; then
5213506e
RW
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4337$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4338else
5213506e
RW
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340$as_echo "no" >&6; }
af71363e 4341fi
0b0dc272 4342
5213506e 4343
1c710c3c
DJ
4344 test -n "$ac_ct_CC" && break
4345done
4346
5213506e
RW
4347 if test "x$ac_ct_CC" = x; then
4348 CC=""
4349 else
4350 case $cross_compiling:$ac_tool_warned in
4351yes:)
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4354ac_tool_warned=yes ;;
4355esac
4356 CC=$ac_ct_CC
4357 fi
1c710c3c
DJ
4358fi
4359
4360fi
4361
4362
5213506e
RW
4363test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4365as_fn_error $? "no acceptable C compiler found in \$PATH
4366See \`config.log' for more details" "$LINENO" 5; }
1c710c3c
DJ
4367
4368# Provide some information about the compiler.
5213506e
RW
4369$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4370set X $ac_compile
4371ac_compiler=$2
4372for ac_option in --version -v -V -qversion; do
4373 { { ac_try="$ac_compiler $ac_option >&5"
4374case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377esac
4378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4379$as_echo "$ac_try_echo"; } >&5
4380 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4381 ac_status=$?
5213506e
RW
4382 if test -s conftest.err; then
4383 sed '10a\
4384... rest of stderr output deleted ...
4385 10q' conftest.err >conftest.er1
4386 cat conftest.er1 >&5
5213506e 4387 fi
22e05272 4388 rm -f conftest.er1 conftest.err
5213506e
RW
4389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390 test $ac_status = 0; }
4391done
1c710c3c 4392
5213506e 4393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4394/* end confdefs.h. */
4395
4396int
4397main ()
4398{
4399
4400 ;
4401 return 0;
4402}
4403_ACEOF
4404ac_clean_files_save=$ac_clean_files
22e05272 4405ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1c710c3c
DJ
4406# Try to create an executable without -o first, disregard a.out.
4407# It will help us diagnose broken compilers, and finding out an intuition
4408# of exeext.
22e05272
JM
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4410$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4411ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4412
4413# The possible output files:
4414ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4415
4416ac_rmfiles=
4417for ac_file in $ac_files
4418do
4419 case $ac_file in
4420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4422 esac
4423done
4424rm -f $ac_rmfiles
4425
4426if { { ac_try="$ac_link_default"
4427case "(($ac_try" in
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4430esac
4431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432$as_echo "$ac_try_echo"; } >&5
4433 (eval "$ac_link_default") 2>&5
1c710c3c 4434 ac_status=$?
5213506e
RW
4435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436 test $ac_status = 0; }; then :
4437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4438# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4439# in a Makefile. We should not override ac_cv_exeext if it was cached,
4440# so that the user can short-circuit this test for compilers unknown to
4441# Autoconf.
4442for ac_file in $ac_files ''
1c710c3c
DJ
4443do
4444 test -f "$ac_file" || continue
4445 case $ac_file in
5213506e 4446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4447 ;;
4448 [ab].out )
4449 # We found the default executable, but exeext='' is most
4450 # certainly right.
4451 break;;
4452 *.* )
5213506e
RW
4453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4454 then :; else
4455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4456 fi
4457 # We set ac_cv_exeext here because the later test for it is not
4458 # safe: cross compilers may not add the suffix if given an `-o'
4459 # argument, so we may need to know it at that point already.
4460 # Even if this section looks crufty: it has the advantage of
4461 # actually working.
1c710c3c
DJ
4462 break;;
4463 * )
4464 break;;
4465 esac
4466done
5213506e
RW
4467test "$ac_cv_exeext" = no && ac_cv_exeext=
4468
1c710c3c 4469else
5213506e
RW
4470 ac_file=''
4471fi
5213506e 4472if test -z "$ac_file"; then :
22e05272
JM
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474$as_echo "no" >&6; }
4475$as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4476sed 's/^/| /' conftest.$ac_ext >&5
4477
5213506e
RW
4478{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4480as_fn_error 77 "C compiler cannot create executables
4481See \`config.log' for more details" "$LINENO" 5; }
4482else
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4484$as_echo "yes" >&6; }
1c710c3c 4485fi
22e05272
JM
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4487$as_echo_n "checking for C compiler default output file name... " >&6; }
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4489$as_echo "$ac_file" >&6; }
1c710c3c 4490ac_exeext=$ac_cv_exeext
1c710c3c 4491
22e05272 4492rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1c710c3c 4493ac_clean_files=$ac_clean_files_save
5213506e
RW
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4495$as_echo_n "checking for suffix of executables... " >&6; }
4496if { { ac_try="$ac_link"
4497case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500esac
4501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4502$as_echo "$ac_try_echo"; } >&5
4503 (eval "$ac_link") 2>&5
1c710c3c 4504 ac_status=$?
5213506e
RW
4505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4506 test $ac_status = 0; }; then :
1c710c3c
DJ
4507 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4508# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4509# work properly (i.e., refer to `conftest.exe'), while it won't with
4510# `rm'.
4511for ac_file in conftest.exe conftest conftest.*; do
4512 test -f "$ac_file" || continue
4513 case $ac_file in
5213506e 4514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4515 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4516 break;;
4517 * ) break;;
4518 esac
4519done
af71363e 4520else
5213506e
RW
4521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4523as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4524See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4525fi
22e05272 4526rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4528$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4529
4530rm -f conftest.$ac_ext
4531EXEEXT=$ac_cv_exeext
4532ac_exeext=$EXEEXT
22e05272
JM
4533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534/* end confdefs.h. */
4535#include <stdio.h>
4536int
4537main ()
4538{
4539FILE *f = fopen ("conftest.out", "w");
4540 return ferror (f) || fclose (f) != 0;
4541
4542 ;
4543 return 0;
4544}
4545_ACEOF
4546ac_clean_files="$ac_clean_files conftest.out"
4547# Check that the compiler produces executables we can run. If not, either
4548# the compiler is broken, or we cross compile.
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4550$as_echo_n "checking whether we are cross compiling... " >&6; }
4551if test "$cross_compiling" != yes; then
4552 { { 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
4560 ac_status=$?
4561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4562 test $ac_status = 0; }
4563 if { ac_try='./conftest$ac_cv_exeext'
4564 { { case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567esac
4568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4569$as_echo "$ac_try_echo"; } >&5
4570 (eval "$ac_try") 2>&5
4571 ac_status=$?
4572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4573 test $ac_status = 0; }; }; then
4574 cross_compiling=no
4575 else
4576 if test "$cross_compiling" = maybe; then
4577 cross_compiling=yes
4578 else
4579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4581as_fn_error $? "cannot run C compiled programs.
4582If you meant to cross compile, use \`--host'.
4583See \`config.log' for more details" "$LINENO" 5; }
4584 fi
4585 fi
4586fi
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4588$as_echo "$cross_compiling" >&6; }
4589
4590rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4591ac_clean_files=$ac_clean_files_save
5213506e
RW
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4593$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4594if ${ac_cv_objext+:} false; then :
5213506e 4595 $as_echo_n "(cached) " >&6
1c710c3c 4596else
5213506e 4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4598/* end confdefs.h. */
4599
4600int
4601main ()
4602{
4603
4604 ;
4605 return 0;
4606}
4607_ACEOF
4608rm -f conftest.o conftest.obj
5213506e
RW
4609if { { ac_try="$ac_compile"
4610case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4613esac
4614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4615$as_echo "$ac_try_echo"; } >&5
4616 (eval "$ac_compile") 2>&5
1c710c3c 4617 ac_status=$?
5213506e
RW
4618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4619 test $ac_status = 0; }; then :
4620 for ac_file in conftest.o conftest.obj conftest.*; do
4621 test -f "$ac_file" || continue;
1c710c3c 4622 case $ac_file in
5213506e 4623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4624 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4625 break;;
4626 esac
4627done
4628else
5213506e 4629 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4630sed 's/^/| /' conftest.$ac_ext >&5
4631
5213506e
RW
4632{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4634as_fn_error $? "cannot compute suffix of object files: cannot compile
4635See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4636fi
1c710c3c
DJ
4637rm -f conftest.$ac_cv_objext conftest.$ac_ext
4638fi
5213506e
RW
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4640$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4641OBJEXT=$ac_cv_objext
4642ac_objext=$OBJEXT
5213506e
RW
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4644$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4645if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4646 $as_echo_n "(cached) " >&6
1c710c3c 4647else
5213506e 4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4649/* end confdefs.h. */
4650
4651int
4652main ()
4653{
4654#ifndef __GNUC__
4655 choke me
4656#endif
4657
4658 ;
4659 return 0;
4660}
4661_ACEOF
5213506e 4662if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4663 ac_compiler_gnu=yes
4664else
5213506e 4665 ac_compiler_gnu=no
1c710c3c 4666fi
5213506e 4667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4668ac_cv_c_compiler_gnu=$ac_compiler_gnu
4669
4670fi
5213506e
RW
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4672$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4673if test $ac_compiler_gnu = yes; then
4674 GCC=yes
4675else
4676 GCC=
4677fi
1c710c3c
DJ
4678ac_test_CFLAGS=${CFLAGS+set}
4679ac_save_CFLAGS=$CFLAGS
5213506e
RW
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4681$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4682if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4683 $as_echo_n "(cached) " >&6
4684else
4685 ac_save_c_werror_flag=$ac_c_werror_flag
4686 ac_c_werror_flag=yes
4687 ac_cv_prog_cc_g=no
4688 CFLAGS="-g"
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4690/* end confdefs.h. */
4691
4692int
4693main ()
4694{
4695
4696 ;
4697 return 0;
4698}
4699_ACEOF
5213506e 4700if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4701 ac_cv_prog_cc_g=yes
4702else
5213506e
RW
4703 CFLAGS=""
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705/* end confdefs.h. */
4706
4707int
4708main ()
4709{
4710
4711 ;
4712 return 0;
4713}
4714_ACEOF
4715if ac_fn_c_try_compile "$LINENO"; then :
4716
4717else
4718 ac_c_werror_flag=$ac_save_c_werror_flag
4719 CFLAGS="-g"
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721/* end confdefs.h. */
af71363e 4722
5213506e
RW
4723int
4724main ()
4725{
4726
4727 ;
4728 return 0;
4729}
4730_ACEOF
4731if ac_fn_c_try_compile "$LINENO"; then :
4732 ac_cv_prog_cc_g=yes
4733fi
4734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4735fi
5213506e 4736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4737fi
5213506e
RW
4738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739 ac_c_werror_flag=$ac_save_c_werror_flag
4740fi
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4742$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4743if test "$ac_test_CFLAGS" = set; then
1c710c3c 4744 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4745elif test $ac_cv_prog_cc_g = yes; then
4746 if test "$GCC" = yes; then
4747 CFLAGS="-g -O2"
4748 else
4749 CFLAGS="-g"
4750 fi
4751else
4752 if test "$GCC" = yes; then
4753 CFLAGS="-O2"
4754 else
4755 CFLAGS=
4756 fi
4757fi
5213506e
RW
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4759$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4760if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4761 $as_echo_n "(cached) " >&6
1c710c3c 4762else
5213506e 4763 ac_cv_prog_cc_c89=no
1c710c3c 4764ac_save_CC=$CC
5213506e 4765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4766/* end confdefs.h. */
4767#include <stdarg.h>
4768#include <stdio.h>
22e05272 4769struct stat;
1c710c3c
DJ
4770/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4771struct buf { int x; };
4772FILE * (*rcsopen) (struct buf *, struct stat *, int);
4773static char *e (p, i)
4774 char **p;
4775 int i;
4776{
4777 return p[i];
4778}
4779static char *f (char * (*g) (char **, int), char **p, ...)
4780{
4781 char *s;
4782 va_list v;
4783 va_start (v,p);
4784 s = g (p, va_arg (v,int));
4785 va_end (v);
4786 return s;
4787}
4788
4789/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4790 function prototypes and stuff, but not '\xHH' hex character constants.
4791 These don't provoke an error unfortunately, instead are silently treated
5213506e 4792 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4794 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4795 that's true only with -std. */
1c710c3c
DJ
4796int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4797
5213506e
RW
4798/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4799 inside strings and character constants. */
4800#define FOO(x) 'x'
4801int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4802
1c710c3c
DJ
4803int test (int i, double x);
4804struct s1 {int (*f) (int a);};
4805struct s2 {int (*f) (double a);};
4806int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4807int argc;
4808char **argv;
4809int
4810main ()
4811{
4812return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4813 ;
4814 return 0;
4815}
4816_ACEOF
5213506e
RW
4817for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4818 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4819do
4820 CC="$ac_save_CC $ac_arg"
5213506e
RW
4821 if ac_fn_c_try_compile "$LINENO"; then :
4822 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4823fi
5213506e
RW
4824rm -f core conftest.err conftest.$ac_objext
4825 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4826done
5213506e 4827rm -f conftest.$ac_ext
1c710c3c
DJ
4828CC=$ac_save_CC
4829
4830fi
5213506e
RW
4831# AC_CACHE_VAL
4832case "x$ac_cv_prog_cc_c89" in
4833 x)
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4835$as_echo "none needed" >&6; } ;;
4836 xno)
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4838$as_echo "unsupported" >&6; } ;;
1c710c3c 4839 *)
5213506e
RW
4840 CC="$CC $ac_cv_prog_cc_c89"
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4842$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4843esac
5213506e 4844if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4845
2aeb72e9
DD
4846fi
4847
2aeb72e9
DD
4848ac_ext=c
4849ac_cpp='$CPP $CPPFLAGS'
4850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4852ac_compiler_gnu=$ac_cv_c_compiler_gnu
4853
91743432
NC
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4855$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4856if ${ac_cv_prog_cc_c99+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858else
4859 ac_cv_prog_cc_c99=no
4860ac_save_CC=$CC
4861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862/* end confdefs.h. */
4863#include <stdarg.h>
4864#include <stdbool.h>
4865#include <stdlib.h>
4866#include <wchar.h>
4867#include <stdio.h>
4868
4869// Check varargs macros. These examples are taken from C99 6.10.3.5.
4870#define debug(...) fprintf (stderr, __VA_ARGS__)
4871#define showlist(...) puts (#__VA_ARGS__)
4872#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4873static void
4874test_varargs_macros (void)
4875{
4876 int x = 1234;
4877 int y = 5678;
4878 debug ("Flag");
4879 debug ("X = %d\n", x);
4880 showlist (The first, second, and third items.);
4881 report (x>y, "x is %d but y is %d", x, y);
4882}
4883
4884// Check long long types.
4885#define BIG64 18446744073709551615ull
4886#define BIG32 4294967295ul
4887#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4888#if !BIG_OK
4889 your preprocessor is broken;
4890#endif
4891#if BIG_OK
4892#else
4893 your preprocessor is broken;
4894#endif
4895static long long int bignum = -9223372036854775807LL;
4896static unsigned long long int ubignum = BIG64;
4897
4898struct incomplete_array
4899{
4900 int datasize;
4901 double data[];
4902};
4903
4904struct named_init {
4905 int number;
4906 const wchar_t *name;
4907 double average;
4908};
4909
4910typedef const char *ccp;
4911
4912static inline int
4913test_restrict (ccp restrict text)
4914{
4915 // See if C++-style comments work.
4916 // Iterate through items via the restricted pointer.
4917 // Also check for declarations in for loops.
4918 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4919 continue;
4920 return 0;
4921}
4922
4923// Check varargs and va_copy.
4924static void
4925test_varargs (const char *format, ...)
4926{
4927 va_list args;
4928 va_start (args, format);
4929 va_list args_copy;
4930 va_copy (args_copy, args);
4931
4932 const char *str;
4933 int number;
4934 float fnumber;
4935
4936 while (*format)
4937 {
4938 switch (*format++)
4939 {
4940 case 's': // string
4941 str = va_arg (args_copy, const char *);
4942 break;
4943 case 'd': // int
4944 number = va_arg (args_copy, int);
4945 break;
4946 case 'f': // float
4947 fnumber = va_arg (args_copy, double);
4948 break;
4949 default:
4950 break;
4951 }
4952 }
4953 va_end (args_copy);
4954 va_end (args);
4955}
4956
4957int
4958main ()
4959{
4960
4961 // Check bool.
4962 _Bool success = false;
4963
4964 // Check restrict.
4965 if (test_restrict ("String literal") == 0)
4966 success = true;
4967 char *restrict newvar = "Another string";
4968
4969 // Check varargs.
4970 test_varargs ("s, d' f .", "string", 65, 34.234);
4971 test_varargs_macros ();
4972
4973 // Check flexible array members.
4974 struct incomplete_array *ia =
4975 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4976 ia->datasize = 10;
4977 for (int i = 0; i < ia->datasize; ++i)
4978 ia->data[i] = i * 1.234;
4979
4980 // Check named initializers.
4981 struct named_init ni = {
4982 .number = 34,
4983 .name = L"Test wide string",
4984 .average = 543.34343,
4985 };
4986
4987 ni.number = 58;
4988
4989 int dynamic_array[ni.number];
4990 dynamic_array[ni.number - 1] = 543;
4991
4992 // work around unused variable warnings
4993 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4994 || dynamic_array[ni.number - 1] != 543);
4995
4996 ;
4997 return 0;
4998}
4999_ACEOF
5000for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5001do
5002 CC="$ac_save_CC $ac_arg"
5003 if ac_fn_c_try_compile "$LINENO"; then :
5004 ac_cv_prog_cc_c99=$ac_arg
5005fi
5006rm -f core conftest.err conftest.$ac_objext
5007 test "x$ac_cv_prog_cc_c99" != "xno" && break
5008done
5009rm -f conftest.$ac_ext
5010CC=$ac_save_CC
5011
5012fi
5013# AC_CACHE_VAL
5014case "x$ac_cv_prog_cc_c99" in
5015 x)
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5017$as_echo "none needed" >&6; } ;;
5018 xno)
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5020$as_echo "unsupported" >&6; } ;;
5021 *)
5022 CC="$CC $ac_cv_prog_cc_c99"
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5024$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5025esac
5026if test "x$ac_cv_prog_cc_c99" != xno; then :
5027
5028fi
5029
5030
5213506e 5031ac_ext=cpp
2aeb72e9
DD
5032ac_cpp='$CXXCPP $CPPFLAGS'
5033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
5036if test -z "$CXX"; then
5037 if test -n "$CCC"; then
5038 CXX=$CCC
5039 else
5040 if test -n "$ac_tool_prefix"; then
5041 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
5042 do
5043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5044set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5047if ${ac_cv_prog_CXX+:} false; then :
5213506e 5048 $as_echo_n "(cached) " >&6
2aeb72e9
DD
5049else
5050 if test -n "$CXX"; then
5051 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5052else
5053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054for as_dir in $PATH
5055do
5056 IFS=$as_save_IFS
5057 test -z "$as_dir" && as_dir=.
5213506e 5058 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2aeb72e9 5060 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 5061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
5062 break 2
5063 fi
5064done
5213506e
RW
5065 done
5066IFS=$as_save_IFS
55ffb5ed 5067
c3a86da9
DJ
5068fi
5069fi
5070CXX=$ac_cv_prog_CXX
5071if test -n "$CXX"; then
5213506e
RW
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5073$as_echo "$CXX" >&6; }
c3a86da9 5074else
5213506e
RW
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076$as_echo "no" >&6; }
c3a86da9
DJ
5077fi
5078
5213506e 5079
c3a86da9
DJ
5080 test -n "$CXX" && break
5081 done
5082fi
5083if test -z "$CXX"; then
5084 ac_ct_CXX=$CXX
5213506e 5085 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
5086do
5087 # Extract the first word of "$ac_prog", so it can be a program name with args.
5088set dummy $ac_prog; ac_word=$2
5213506e
RW
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5091if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5213506e 5092 $as_echo_n "(cached) " >&6
c3a86da9
DJ
5093else
5094 if test -n "$ac_ct_CXX"; then
5095 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5096else
5097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098for as_dir in $PATH
5099do
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5213506e 5102 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9 5104 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
5106 break 2
5107 fi
5108done
5213506e
RW
5109 done
5110IFS=$as_save_IFS
c3a86da9
DJ
5111
5112fi
5113fi
5114ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5115if test -n "$ac_ct_CXX"; then
5213506e
RW
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5117$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 5118else
5213506e
RW
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120$as_echo "no" >&6; }
c3a86da9
DJ
5121fi
5122
5213506e 5123
c3a86da9
DJ
5124 test -n "$ac_ct_CXX" && break
5125done
c3a86da9 5126
5213506e
RW
5127 if test "x$ac_ct_CXX" = x; then
5128 CXX="g++"
5129 else
5130 case $cross_compiling:$ac_tool_warned in
5131yes:)
5132{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5133$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5134ac_tool_warned=yes ;;
5135esac
5136 CXX=$ac_ct_CXX
5137 fi
c3a86da9
DJ
5138fi
5139
5213506e
RW
5140 fi
5141fi
c3a86da9 5142# Provide some information about the compiler.
5213506e
RW
5143$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5144set X $ac_compile
5145ac_compiler=$2
5146for ac_option in --version -v -V -qversion; do
5147 { { ac_try="$ac_compiler $ac_option >&5"
5148case "(($ac_try" in
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5151esac
5152eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5153$as_echo "$ac_try_echo"; } >&5
5154 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 5155 ac_status=$?
5213506e
RW
5156 if test -s conftest.err; then
5157 sed '10a\
5158... rest of stderr output deleted ...
5159 10q' conftest.err >conftest.er1
5160 cat conftest.er1 >&5
5213506e 5161 fi
22e05272 5162 rm -f conftest.er1 conftest.err
5213506e
RW
5163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5164 test $ac_status = 0; }
5165done
c3a86da9 5166
5213506e
RW
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5168$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5169if ${ac_cv_cxx_compiler_gnu+:} false; then :
5213506e 5170 $as_echo_n "(cached) " >&6
c3a86da9 5171else
5213506e 5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5173/* end confdefs.h. */
5174
5175int
5176main ()
5177{
5178#ifndef __GNUC__
5179 choke me
5180#endif
5181
5182 ;
5183 return 0;
5184}
5185_ACEOF
5213506e 5186if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5187 ac_compiler_gnu=yes
5188else
5213506e 5189 ac_compiler_gnu=no
c3a86da9 5190fi
5213506e 5191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
5192ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5193
5194fi
5213506e
RW
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5196$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5197if test $ac_compiler_gnu = yes; then
5198 GXX=yes
5199else
5200 GXX=
5201fi
c3a86da9
DJ
5202ac_test_CXXFLAGS=${CXXFLAGS+set}
5203ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5205$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5206if ${ac_cv_prog_cxx_g+:} false; then :
5213506e
RW
5207 $as_echo_n "(cached) " >&6
5208else
5209 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5210 ac_cxx_werror_flag=yes
5211 ac_cv_prog_cxx_g=no
5212 CXXFLAGS="-g"
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5214/* end confdefs.h. */
5215
5216int
5217main ()
5218{
5219
5220 ;
5221 return 0;
5222}
5223_ACEOF
5213506e 5224if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5225 ac_cv_prog_cxx_g=yes
5226else
5213506e
RW
5227 CXXFLAGS=""
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5229/* end confdefs.h. */
5213506e 5230
c3a86da9
DJ
5231int
5232main ()
5233{
5213506e 5234
c3a86da9
DJ
5235 ;
5236 return 0;
5237}
5238_ACEOF
5213506e 5239if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5240
5213506e
RW
5241else
5242 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5243 CXXFLAGS="-g"
5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5245/* end confdefs.h. */
5213506e 5246
c3a86da9
DJ
5247int
5248main ()
5249{
5213506e 5250
c3a86da9
DJ
5251 ;
5252 return 0;
5253}
5254_ACEOF
5213506e
RW
5255if ac_fn_cxx_try_compile "$LINENO"; then :
5256 ac_cv_prog_cxx_g=yes
11a67599 5257fi
5213506e
RW
5258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259fi
5260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5261fi
5262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5264fi
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5266$as_echo "$ac_cv_prog_cxx_g" >&6; }
5267if test "$ac_test_CXXFLAGS" = set; then
5268 CXXFLAGS=$ac_save_CXXFLAGS
5269elif test $ac_cv_prog_cxx_g = yes; then
5270 if test "$GXX" = yes; then
5271 CXXFLAGS="-g -O2"
5272 else
5273 CXXFLAGS="-g"
5274 fi
5275else
5276 if test "$GXX" = yes; then
5277 CXXFLAGS="-O2"
5278 else
5279 CXXFLAGS=
5280 fi
c3a86da9 5281fi
c3a86da9
DJ
5282ac_ext=c
5283ac_cpp='$CPP $CPPFLAGS'
5284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5286ac_compiler_gnu=$ac_cv_c_compiler_gnu
5287
5288
5289# We must set the default linker to the linker used by gcc for the correct
5290# operation of libtool. If LD is not defined and we are using gcc, try to
5291# set the LD default to the ld used by gcc.
5292if test -z "$LD"; then
5293 if test "$GCC" = yes; then
5294 case $build in
5295 *-*-mingw*)
5296 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5297 *)
5298 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5299 esac
5300 case $gcc_prog_ld in
5301 # Accept absolute paths.
5302 [\\/]* | [A-Za-z]:[\\/]*)
5303 LD="$gcc_prog_ld" ;;
5304 esac
5305 fi
23f6b2f9
PB
5306fi
5307
0b21f5d3
EB
5308# Check whether -static-libstdc++ -static-libgcc is supported.
5309have_static_libs=no
5310if test "$GCC" = yes; then
5311 saved_LDFLAGS="$LDFLAGS"
5312
5313 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5315$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5316 ac_ext=cpp
5317ac_cpp='$CXXCPP $CPPFLAGS'
5318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5321
5322
5323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324/* end confdefs.h. */
0d6414b2
EB
5325
5326#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5327#error -static-libstdc++ not implemented
5328#endif
0b21f5d3
EB
5329int main() {}
5330_ACEOF
5331if ac_fn_cxx_try_link "$LINENO"; then :
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5333$as_echo "yes" >&6; }; have_static_libs=yes
5334else
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336$as_echo "no" >&6; }
5337fi
5338rm -f core conftest.err conftest.$ac_objext \
5339 conftest$ac_exeext conftest.$ac_ext
5340 ac_ext=c
5341ac_cpp='$CPP $CPPFLAGS'
5342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5344ac_compiler_gnu=$ac_cv_c_compiler_gnu
5345
5346
5347 LDFLAGS="$saved_LDFLAGS"
5348fi
5349
23f6b2f9
PB
5350
5351
55ffb5ed 5352
1c710c3c
DJ
5353if test -n "$ac_tool_prefix"; then
5354 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5355set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5358if ${ac_cv_prog_GNATBIND+:} false; then :
5213506e 5359 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5360else
5361 if test -n "$GNATBIND"; then
5362 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5363else
1c710c3c
DJ
5364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365for as_dir in $PATH
5366do
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5213506e 5369 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5371 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5373 break 2
5374 fi
5375done
5213506e
RW
5376 done
5377IFS=$as_save_IFS
1c710c3c 5378
55ffb5ed
NN
5379fi
5380fi
1c710c3c 5381GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5382if test -n "$GNATBIND"; then
5213506e
RW
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5384$as_echo "$GNATBIND" >&6; }
55ffb5ed 5385else
5213506e
RW
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387$as_echo "no" >&6; }
55ffb5ed
NN
5388fi
5389
5213506e 5390
1c710c3c 5391fi
55ffb5ed 5392if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5393 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5394 # Extract the first word of "gnatbind", so it can be a program name with args.
5395set dummy gnatbind; ac_word=$2
5213506e
RW
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5398if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5213506e 5399 $as_echo_n "(cached) " >&6
55ffb5ed 5400else
1c710c3c
DJ
5401 if test -n "$ac_ct_GNATBIND"; then
5402 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5403else
1c710c3c
DJ
5404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405for as_dir in $PATH
5406do
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5213506e 5409 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5411 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5413 break 2
5414 fi
5415done
5213506e
RW
5416 done
5417IFS=$as_save_IFS
1c710c3c 5418
55ffb5ed
NN
5419fi
5420fi
1c710c3c
DJ
5421ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5422if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5424$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5425else
5213506e
RW
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427$as_echo "no" >&6; }
55ffb5ed
NN
5428fi
5429
5213506e
RW
5430 if test "x$ac_ct_GNATBIND" = x; then
5431 GNATBIND="no"
5432 else
5433 case $cross_compiling:$ac_tool_warned in
5434yes:)
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437ac_tool_warned=yes ;;
5438esac
5439 GNATBIND=$ac_ct_GNATBIND
5440 fi
55ffb5ed 5441else
1c710c3c 5442 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5443fi
5444
1c710c3c
DJ
5445if test -n "$ac_tool_prefix"; then
5446 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5447set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5450if ${ac_cv_prog_GNATMAKE+:} false; then :
5213506e 5451 $as_echo_n "(cached) " >&6
5305be7e
RG
5452else
5453 if test -n "$GNATMAKE"; then
5454 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5455else
1c710c3c
DJ
5456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457for as_dir in $PATH
5458do
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
5213506e 5461 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5463 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5465 break 2
5466 fi
5467done
5213506e
RW
5468 done
5469IFS=$as_save_IFS
1c710c3c 5470
5305be7e
RG
5471fi
5472fi
1c710c3c 5473GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5474if test -n "$GNATMAKE"; then
5213506e
RW
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5476$as_echo "$GNATMAKE" >&6; }
5305be7e 5477else
5213506e
RW
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479$as_echo "no" >&6; }
5305be7e
RG
5480fi
5481
5213506e 5482
1c710c3c 5483fi
5305be7e 5484if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5485 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5486 # Extract the first word of "gnatmake", so it can be a program name with args.
5487set dummy gnatmake; ac_word=$2
5213506e
RW
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5490if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5213506e 5491 $as_echo_n "(cached) " >&6
5305be7e 5492else
1c710c3c
DJ
5493 if test -n "$ac_ct_GNATMAKE"; then
5494 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5495else
1c710c3c
DJ
5496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497for as_dir in $PATH
5498do
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5213506e 5501 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5503 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5505 break 2
5506 fi
5507done
5213506e
RW
5508 done
5509IFS=$as_save_IFS
1c710c3c 5510
5305be7e
RG
5511fi
5512fi
1c710c3c
DJ
5513ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5514if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5516$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5517else
5213506e
RW
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519$as_echo "no" >&6; }
5305be7e
RG
5520fi
5521
5213506e
RW
5522 if test "x$ac_ct_GNATMAKE" = x; then
5523 GNATMAKE="no"
5524 else
5525 case $cross_compiling:$ac_tool_warned in
5526yes:)
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5529ac_tool_warned=yes ;;
5530esac
5531 GNATMAKE=$ac_ct_GNATMAKE
5532 fi
5305be7e 5533else
1c710c3c 5534 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5535fi
5536
71f068a9
RS
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5538$as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
22e05272 5539if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5213506e 5540 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5541else
5542 cat >conftest.adb <<EOF
71f068a9
RS
5543pragma Warnings (Off);
5544with System.CRTL;
5545pragma Warnings (On);
5546use type System.CRTL.int64;
55ffb5ed
NN
5547procedure conftest is begin null; end conftest;
5548EOF
5549acx_cv_cc_gcc_supports_ada=no
5550# There is a bug in old released versions of GCC which causes the
5551# driver to exit successfully when the appropriate language module
5552# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5553# Therefore we must check for the error message as well as an
5554# unsuccessful exit.
1db673ca
RO
5555# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5556# given a .adb file, but produce no object file. So we must check
5557# if an object file was really produced to guard against this.
55ffb5ed 5558errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5559if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5560 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5561fi
5562rm -f conftest.*
5563fi
5213506e
RW
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5565$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5566
7cb62ef1 5567if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5568 have_gnat=yes
5569else
5570 have_gnat=no
5571fi
5572
5fee5ec3
IB
5573
5574
5575if test -n "$ac_tool_prefix"; then
5576 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5577set dummy ${ac_tool_prefix}gdc; ac_word=$2
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579$as_echo_n "checking for $ac_word... " >&6; }
5580if ${ac_cv_prog_GDC+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582else
5583 if test -n "$GDC"; then
5584 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5585else
5586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587for as_dir in $PATH
5588do
5589 IFS=$as_save_IFS
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 break 2
5596 fi
5597done
5598 done
5599IFS=$as_save_IFS
5600
5601fi
5602fi
5603GDC=$ac_cv_prog_GDC
5604if test -n "$GDC"; then
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5606$as_echo "$GDC" >&6; }
5607else
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609$as_echo "no" >&6; }
5610fi
5611
5612
5613fi
5614if test -z "$ac_cv_prog_GDC"; then
5615 ac_ct_GDC=$GDC
5616 # Extract the first word of "gdc", so it can be a program name with args.
5617set dummy gdc; ac_word=$2
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619$as_echo_n "checking for $ac_word... " >&6; }
5620if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622else
5623 if test -n "$ac_ct_GDC"; then
5624 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5625else
5626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627for as_dir in $PATH
5628do
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_prog_ac_ct_GDC="gdc"
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 break 2
5636 fi
5637done
5638 done
5639IFS=$as_save_IFS
5640
5641fi
5642fi
5643ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5644if test -n "$ac_ct_GDC"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5646$as_echo "$ac_ct_GDC" >&6; }
5647else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649$as_echo "no" >&6; }
5650fi
5651
5652 if test "x$ac_ct_GDC" = x; then
5653 GDC="no"
5654 else
5655 case $cross_compiling:$ac_tool_warned in
5656yes:)
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5659ac_tool_warned=yes ;;
5660esac
5661 GDC=$ac_ct_GDC
5662 fi
5663else
5664 GDC="$ac_cv_prog_GDC"
5665fi
5666
7c6ae994
IB
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5668$as_echo_n "checking whether the D compiler works... " >&6; }
5669if ${acx_cv_d_compiler_works+:} false; then :
5670 $as_echo_n "(cached) " >&6
5671else
5672 cat >conftest.d <<EOF
5673module conftest; int main() { return 0; }
5674EOF
5675acx_cv_d_compiler_works=no
5fee5ec3 5676if test "x$GDC" != xno; then
7c6ae994
IB
5677 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5678 if test x"$errors" = x && test -f conftest.$ac_objext; then
5679 acx_cv_d_compiler_works=yes
5680 fi
5681 rm -f conftest.*
5682fi
5683fi
5684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5685$as_echo "$acx_cv_d_compiler_works" >&6; }
5686if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5fee5ec3
IB
5687 have_gdc=yes
5688else
5689 have_gdc=no
5690fi
5691
5213506e
RW
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5693$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
22e05272 5694if ${gcc_cv_prog_cmp_skip+:} false; then :
5213506e 5695 $as_echo_n "(cached) " >&6
a76494aa
PB
5696else
5697 echo abfoo >t1
5698 echo cdfoo >t2
b55e6680 5699 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5700 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5701 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5702 :
5703 else
5704 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5705 fi
5706 fi
a76494aa
PB
5707 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5708 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5709 :
a76494aa
PB
5710 else
5711 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5712 fi
5713 fi
5714 rm t1 t2
5715
5716fi
5213506e
RW
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5718$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5719do_compare="$gcc_cv_prog_cmp_skip"
5720
5721
55ffb5ed 5722
ff3ac0f4
ILT
5723# Check whether --enable-bootstrap was given.
5724if test "${enable_bootstrap+set}" = set; then :
5725 enableval=$enable_bootstrap;
5726else
5727 enable_bootstrap=default
5728fi
5729
5730
5731# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5732if test -r $srcdir/gcc/configure; then
5733 have_compiler=yes
5734else
5735 have_compiler=no
5736fi
ff3ac0f4
ILT
5737
5738case "$have_compiler:$host:$target:$enable_bootstrap" in
5739 *:*:*:no) ;;
5740
5741 # Default behavior. Enable bootstrap if we have a compiler
5742 # and we are in a native configuration.
5743 yes:$build:$build:default)
5744 enable_bootstrap=yes ;;
5745
5746 *:*:*:default)
5747 enable_bootstrap=no ;;
5748
5749 # We have a compiler and we are in a native configuration, bootstrap is ok
5750 yes:$build:$build:yes)
5751 ;;
5752
5753 # Other configurations, but we have a compiler. Assume the user knows
5754 # what he's doing.
5755 yes:*:*:yes)
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5757$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5758 ;;
5759
5760 # No compiler: if they passed --enable-bootstrap explicitly, fail
5761 no:*:*:yes)
22e05272 5762 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ff3ac0f4
ILT
5763
5764 # Fail if wrong command line
5765 *)
22e05272 5766 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ff3ac0f4
ILT
5767 ;;
5768esac
5769
5329b59a 5770# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
ffac9597
JM
5771# C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5772# require C++11 (or higher).
46070488 5773if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5329b59a 5774 CXX="$CXX -std=c++11"
ffac9597
JM
5775elif test "$have_compiler" = yes; then
5776 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5777 ac_ext=cpp
5778ac_cpp='$CXXCPP $CPPFLAGS'
5779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5782 ac_success=no
5783
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5785$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5786if ${ax_cv_cxx_compile_cxx11+:} false; then :
5787 $as_echo_n "(cached) " >&6
5788else
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790/* end confdefs.h. */
5791
5792
5793// If the compiler admits that it is not ready for C++11, why torture it?
5794// Hopefully, this will speed up the test.
5795
5796#ifndef __cplusplus
5797
5798#error "This is not a C++ compiler"
5799
5800#elif __cplusplus < 201103L
5801
5802#error "This is not a C++11 compiler"
5803
5804#else
5805
5806namespace cxx11
5807{
5808
5809 namespace test_static_assert
5810 {
5811
5812 template <typename T>
5813 struct check
5814 {
5815 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5816 };
5817
5818 }
5819
5820 namespace test_final_override
5821 {
5822
5823 struct Base
5824 {
5825 virtual ~Base() {}
5826 virtual void f() {}
5827 };
5828
5829 struct Derived : public Base
5830 {
5831 virtual ~Derived() override {}
5832 virtual void f() override {}
5833 };
5834
5835 }
5836
5837 namespace test_double_right_angle_brackets
5838 {
5839
5840 template < typename T >
5841 struct check {};
5842
5843 typedef check<void> single_type;
5844 typedef check<check<void>> double_type;
5845 typedef check<check<check<void>>> triple_type;
5846 typedef check<check<check<check<void>>>> quadruple_type;
5847
5848 }
5849
5850 namespace test_decltype
5851 {
5852
5853 int
5854 f()
5855 {
5856 int a = 1;
5857 decltype(a) b = 2;
5858 return a + b;
5859 }
5860
5861 }
5862
5863 namespace test_type_deduction
5864 {
5865
5866 template < typename T1, typename T2 >
5867 struct is_same
5868 {
5869 static const bool value = false;
5870 };
5871
5872 template < typename T >
5873 struct is_same<T, T>
5874 {
5875 static const bool value = true;
5876 };
5877
5878 template < typename T1, typename T2 >
5879 auto
5880 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5881 {
5882 return a1 + a2;
5883 }
5884
5885 int
5886 test(const int c, volatile int v)
5887 {
5888 static_assert(is_same<int, decltype(0)>::value == true, "");
5889 static_assert(is_same<int, decltype(c)>::value == false, "");
5890 static_assert(is_same<int, decltype(v)>::value == false, "");
5891 auto ac = c;
5892 auto av = v;
5893 auto sumi = ac + av + 'x';
5894 auto sumf = ac + av + 1.0;
5895 static_assert(is_same<int, decltype(ac)>::value == true, "");
5896 static_assert(is_same<int, decltype(av)>::value == true, "");
5897 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5898 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5899 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5900 return (sumf > 0.0) ? sumi : add(c, v);
5901 }
5902
5903 }
5904
5905 namespace test_noexcept
5906 {
5907
5908 int f() { return 0; }
5909 int g() noexcept { return 0; }
5910
5911 static_assert(noexcept(f()) == false, "");
5912 static_assert(noexcept(g()) == true, "");
5913
5914 }
5915
5916 namespace test_constexpr
5917 {
5918
5919 template < typename CharT >
5920 unsigned long constexpr
5921 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5922 {
5923 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5924 }
5925
5926 template < typename CharT >
5927 unsigned long constexpr
5928 strlen_c(const CharT *const s) noexcept
5929 {
5930 return strlen_c_r(s, 0UL);
5931 }
5932
5933 static_assert(strlen_c("") == 0UL, "");
5934 static_assert(strlen_c("1") == 1UL, "");
5935 static_assert(strlen_c("example") == 7UL, "");
5936 static_assert(strlen_c("another\0example") == 7UL, "");
5937
5938 }
5939
5940 namespace test_rvalue_references
5941 {
5942
5943 template < int N >
5944 struct answer
5945 {
5946 static constexpr int value = N;
5947 };
5948
5949 answer<1> f(int&) { return answer<1>(); }
5950 answer<2> f(const int&) { return answer<2>(); }
5951 answer<3> f(int&&) { return answer<3>(); }
5952
5953 void
5954 test()
5955 {
5956 int i = 0;
5957 const int c = 0;
5958 static_assert(decltype(f(i))::value == 1, "");
5959 static_assert(decltype(f(c))::value == 2, "");
5960 static_assert(decltype(f(0))::value == 3, "");
5961 }
5962
5963 }
5964
5965 namespace test_uniform_initialization
5966 {
5967
5968 struct test
5969 {
5970 static const int zero {};
5971 static const int one {1};
5972 };
5973
5974 static_assert(test::zero == 0, "");
5975 static_assert(test::one == 1, "");
5976
5977 }
5978
5979 namespace test_lambdas
5980 {
5981
5982 void
5983 test1()
5984 {
5985 auto lambda1 = [](){};
5986 auto lambda2 = lambda1;
5987 lambda1();
5988 lambda2();
5989 }
5990
5991 int
5992 test2()
5993 {
5994 auto a = [](int i, int j){ return i + j; }(1, 2);
5995 auto b = []() -> int { return '0'; }();
5996 auto c = [=](){ return a + b; }();
5997 auto d = [&](){ return c; }();
5998 auto e = [a, &b](int x) mutable {
5999 const auto identity = [](int y){ return y; };
6000 for (auto i = 0; i < a; ++i)
6001 a += b--;
6002 return x + identity(a + b);
6003 }(0);
6004 return a + b + c + d + e;
6005 }
6006
6007 int
6008 test3()
6009 {
6010 const auto nullary = [](){ return 0; };
6011 const auto unary = [](int x){ return x; };
6012 using nullary_t = decltype(nullary);
6013 using unary_t = decltype(unary);
6014 const auto higher1st = [](nullary_t f){ return f(); };
6015 const auto higher2nd = [unary](nullary_t f1){
6016 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6017 };
6018 return higher1st(nullary) + higher2nd(nullary)(unary);
6019 }
6020
6021 }
6022
6023 namespace test_variadic_templates
6024 {
6025
6026 template <int...>
6027 struct sum;
6028
6029 template <int N0, int... N1toN>
6030 struct sum<N0, N1toN...>
6031 {
6032 static constexpr auto value = N0 + sum<N1toN...>::value;
6033 };
6034
6035 template <>
6036 struct sum<>
6037 {
6038 static constexpr auto value = 0;
6039 };
6040
6041 static_assert(sum<>::value == 0, "");
6042 static_assert(sum<1>::value == 1, "");
6043 static_assert(sum<23>::value == 23, "");
6044 static_assert(sum<1, 2>::value == 3, "");
6045 static_assert(sum<5, 5, 11>::value == 21, "");
6046 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6047
6048 }
6049
6050 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6051 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6052 // because of this.
6053 namespace test_template_alias_sfinae
6054 {
6055
6056 struct foo {};
6057
6058 template<typename T>
6059 using member = typename T::member_type;
6060
6061 template<typename T>
6062 void func(...) {}
6063
6064 template<typename T>
6065 void func(member<T>*) {}
6066
6067 void test();
6068
6069 void test() { func<foo>(0); }
6070
6071 }
6072
6073} // namespace cxx11
6074
6075#endif // __cplusplus >= 201103L
6076
6077
6078
6079_ACEOF
6080if ac_fn_cxx_try_compile "$LINENO"; then :
6081 ax_cv_cxx_compile_cxx11=yes
6082else
6083 ax_cv_cxx_compile_cxx11=no
6084fi
6085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6086fi
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6088$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6089 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6090 ac_success=yes
6091 fi
6092
6093 if test x$ac_success = xno; then
6094 for alternative in ${ax_cxx_compile_alternatives}; do
6095 switch="-std=gnu++${alternative}"
6096 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6098$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6099if eval \${$cachevar+:} false; then :
6100 $as_echo_n "(cached) " >&6
6101else
6102 ac_save_CXX="$CXX"
6103 CXX="$CXX $switch"
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105/* end confdefs.h. */
6106
6107
6108// If the compiler admits that it is not ready for C++11, why torture it?
6109// Hopefully, this will speed up the test.
6110
6111#ifndef __cplusplus
6112
6113#error "This is not a C++ compiler"
6114
6115#elif __cplusplus < 201103L
6116
6117#error "This is not a C++11 compiler"
6118
6119#else
6120
6121namespace cxx11
6122{
6123
6124 namespace test_static_assert
6125 {
6126
6127 template <typename T>
6128 struct check
6129 {
6130 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6131 };
6132
6133 }
6134
6135 namespace test_final_override
6136 {
6137
6138 struct Base
6139 {
6140 virtual ~Base() {}
6141 virtual void f() {}
6142 };
6143
6144 struct Derived : public Base
6145 {
6146 virtual ~Derived() override {}
6147 virtual void f() override {}
6148 };
6149
6150 }
6151
6152 namespace test_double_right_angle_brackets
6153 {
6154
6155 template < typename T >
6156 struct check {};
6157
6158 typedef check<void> single_type;
6159 typedef check<check<void>> double_type;
6160 typedef check<check<check<void>>> triple_type;
6161 typedef check<check<check<check<void>>>> quadruple_type;
6162
6163 }
6164
6165 namespace test_decltype
6166 {
6167
6168 int
6169 f()
6170 {
6171 int a = 1;
6172 decltype(a) b = 2;
6173 return a + b;
6174 }
6175
6176 }
6177
6178 namespace test_type_deduction
6179 {
6180
6181 template < typename T1, typename T2 >
6182 struct is_same
6183 {
6184 static const bool value = false;
6185 };
6186
6187 template < typename T >
6188 struct is_same<T, T>
6189 {
6190 static const bool value = true;
6191 };
6192
6193 template < typename T1, typename T2 >
6194 auto
6195 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6196 {
6197 return a1 + a2;
6198 }
6199
6200 int
6201 test(const int c, volatile int v)
6202 {
6203 static_assert(is_same<int, decltype(0)>::value == true, "");
6204 static_assert(is_same<int, decltype(c)>::value == false, "");
6205 static_assert(is_same<int, decltype(v)>::value == false, "");
6206 auto ac = c;
6207 auto av = v;
6208 auto sumi = ac + av + 'x';
6209 auto sumf = ac + av + 1.0;
6210 static_assert(is_same<int, decltype(ac)>::value == true, "");
6211 static_assert(is_same<int, decltype(av)>::value == true, "");
6212 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6213 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6214 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6215 return (sumf > 0.0) ? sumi : add(c, v);
6216 }
6217
6218 }
6219
6220 namespace test_noexcept
6221 {
6222
6223 int f() { return 0; }
6224 int g() noexcept { return 0; }
6225
6226 static_assert(noexcept(f()) == false, "");
6227 static_assert(noexcept(g()) == true, "");
6228
6229 }
6230
6231 namespace test_constexpr
6232 {
6233
6234 template < typename CharT >
6235 unsigned long constexpr
6236 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6237 {
6238 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6239 }
6240
6241 template < typename CharT >
6242 unsigned long constexpr
6243 strlen_c(const CharT *const s) noexcept
6244 {
6245 return strlen_c_r(s, 0UL);
6246 }
6247
6248 static_assert(strlen_c("") == 0UL, "");
6249 static_assert(strlen_c("1") == 1UL, "");
6250 static_assert(strlen_c("example") == 7UL, "");
6251 static_assert(strlen_c("another\0example") == 7UL, "");
6252
6253 }
6254
6255 namespace test_rvalue_references
6256 {
6257
6258 template < int N >
6259 struct answer
6260 {
6261 static constexpr int value = N;
6262 };
6263
6264 answer<1> f(int&) { return answer<1>(); }
6265 answer<2> f(const int&) { return answer<2>(); }
6266 answer<3> f(int&&) { return answer<3>(); }
6267
6268 void
6269 test()
6270 {
6271 int i = 0;
6272 const int c = 0;
6273 static_assert(decltype(f(i))::value == 1, "");
6274 static_assert(decltype(f(c))::value == 2, "");
6275 static_assert(decltype(f(0))::value == 3, "");
6276 }
6277
6278 }
6279
6280 namespace test_uniform_initialization
6281 {
6282
6283 struct test
6284 {
6285 static const int zero {};
6286 static const int one {1};
6287 };
6288
6289 static_assert(test::zero == 0, "");
6290 static_assert(test::one == 1, "");
6291
6292 }
6293
6294 namespace test_lambdas
6295 {
6296
6297 void
6298 test1()
6299 {
6300 auto lambda1 = [](){};
6301 auto lambda2 = lambda1;
6302 lambda1();
6303 lambda2();
6304 }
6305
6306 int
6307 test2()
6308 {
6309 auto a = [](int i, int j){ return i + j; }(1, 2);
6310 auto b = []() -> int { return '0'; }();
6311 auto c = [=](){ return a + b; }();
6312 auto d = [&](){ return c; }();
6313 auto e = [a, &b](int x) mutable {
6314 const auto identity = [](int y){ return y; };
6315 for (auto i = 0; i < a; ++i)
6316 a += b--;
6317 return x + identity(a + b);
6318 }(0);
6319 return a + b + c + d + e;
6320 }
6321
6322 int
6323 test3()
6324 {
6325 const auto nullary = [](){ return 0; };
6326 const auto unary = [](int x){ return x; };
6327 using nullary_t = decltype(nullary);
6328 using unary_t = decltype(unary);
6329 const auto higher1st = [](nullary_t f){ return f(); };
6330 const auto higher2nd = [unary](nullary_t f1){
6331 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6332 };
6333 return higher1st(nullary) + higher2nd(nullary)(unary);
6334 }
6335
6336 }
6337
6338 namespace test_variadic_templates
6339 {
6340
6341 template <int...>
6342 struct sum;
6343
6344 template <int N0, int... N1toN>
6345 struct sum<N0, N1toN...>
6346 {
6347 static constexpr auto value = N0 + sum<N1toN...>::value;
6348 };
6349
6350 template <>
6351 struct sum<>
6352 {
6353 static constexpr auto value = 0;
6354 };
6355
6356 static_assert(sum<>::value == 0, "");
6357 static_assert(sum<1>::value == 1, "");
6358 static_assert(sum<23>::value == 23, "");
6359 static_assert(sum<1, 2>::value == 3, "");
6360 static_assert(sum<5, 5, 11>::value == 21, "");
6361 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6362
6363 }
6364
6365 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6366 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6367 // because of this.
6368 namespace test_template_alias_sfinae
6369 {
6370
6371 struct foo {};
6372
6373 template<typename T>
6374 using member = typename T::member_type;
6375
6376 template<typename T>
6377 void func(...) {}
6378
6379 template<typename T>
6380 void func(member<T>*) {}
6381
6382 void test();
6383
6384 void test() { func<foo>(0); }
6385
6386 }
6387
6388} // namespace cxx11
6389
6390#endif // __cplusplus >= 201103L
6391
6392
6393
6394_ACEOF
6395if ac_fn_cxx_try_compile "$LINENO"; then :
6396 eval $cachevar=yes
6397else
6398 eval $cachevar=no
6399fi
6400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401 CXX="$ac_save_CXX"
6402fi
6403eval ac_res=\$$cachevar
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6405$as_echo "$ac_res" >&6; }
6406 if eval test x\$$cachevar = xyes; then
6407 CXX="$CXX $switch"
6408 if test -n "$CXXCPP" ; then
6409 CXXCPP="$CXXCPP $switch"
6410 fi
6411 ac_success=yes
6412 break
6413 fi
6414 done
6415 fi
6416
6417 if test x$ac_success = xno; then
6418 for alternative in ${ax_cxx_compile_alternatives}; do
6419 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6420 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6422$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6423if eval \${$cachevar+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425else
6426 ac_save_CXX="$CXX"
6427 CXX="$CXX $switch"
6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429/* end confdefs.h. */
6430
6431
6432// If the compiler admits that it is not ready for C++11, why torture it?
6433// Hopefully, this will speed up the test.
6434
6435#ifndef __cplusplus
6436
6437#error "This is not a C++ compiler"
6438
6439#elif __cplusplus < 201103L
6440
6441#error "This is not a C++11 compiler"
6442
6443#else
6444
6445namespace cxx11
6446{
6447
6448 namespace test_static_assert
6449 {
6450
6451 template <typename T>
6452 struct check
6453 {
6454 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6455 };
6456
6457 }
6458
6459 namespace test_final_override
6460 {
6461
6462 struct Base
6463 {
6464 virtual ~Base() {}
6465 virtual void f() {}
6466 };
6467
6468 struct Derived : public Base
6469 {
6470 virtual ~Derived() override {}
6471 virtual void f() override {}
6472 };
6473
6474 }
6475
6476 namespace test_double_right_angle_brackets
6477 {
6478
6479 template < typename T >
6480 struct check {};
6481
6482 typedef check<void> single_type;
6483 typedef check<check<void>> double_type;
6484 typedef check<check<check<void>>> triple_type;
6485 typedef check<check<check<check<void>>>> quadruple_type;
6486
6487 }
6488
6489 namespace test_decltype
6490 {
6491
6492 int
6493 f()
6494 {
6495 int a = 1;
6496 decltype(a) b = 2;
6497 return a + b;
6498 }
6499
6500 }
6501
6502 namespace test_type_deduction
6503 {
6504
6505 template < typename T1, typename T2 >
6506 struct is_same
6507 {
6508 static const bool value = false;
6509 };
6510
6511 template < typename T >
6512 struct is_same<T, T>
6513 {
6514 static const bool value = true;
6515 };
6516
6517 template < typename T1, typename T2 >
6518 auto
6519 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6520 {
6521 return a1 + a2;
6522 }
6523
6524 int
6525 test(const int c, volatile int v)
6526 {
6527 static_assert(is_same<int, decltype(0)>::value == true, "");
6528 static_assert(is_same<int, decltype(c)>::value == false, "");
6529 static_assert(is_same<int, decltype(v)>::value == false, "");
6530 auto ac = c;
6531 auto av = v;
6532 auto sumi = ac + av + 'x';
6533 auto sumf = ac + av + 1.0;
6534 static_assert(is_same<int, decltype(ac)>::value == true, "");
6535 static_assert(is_same<int, decltype(av)>::value == true, "");
6536 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6537 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6538 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6539 return (sumf > 0.0) ? sumi : add(c, v);
6540 }
6541
6542 }
6543
6544 namespace test_noexcept
6545 {
6546
6547 int f() { return 0; }
6548 int g() noexcept { return 0; }
6549
6550 static_assert(noexcept(f()) == false, "");
6551 static_assert(noexcept(g()) == true, "");
6552
6553 }
6554
6555 namespace test_constexpr
6556 {
6557
6558 template < typename CharT >
6559 unsigned long constexpr
6560 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6561 {
6562 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6563 }
6564
6565 template < typename CharT >
6566 unsigned long constexpr
6567 strlen_c(const CharT *const s) noexcept
6568 {
6569 return strlen_c_r(s, 0UL);
6570 }
6571
6572 static_assert(strlen_c("") == 0UL, "");
6573 static_assert(strlen_c("1") == 1UL, "");
6574 static_assert(strlen_c("example") == 7UL, "");
6575 static_assert(strlen_c("another\0example") == 7UL, "");
6576
6577 }
6578
6579 namespace test_rvalue_references
6580 {
6581
6582 template < int N >
6583 struct answer
6584 {
6585 static constexpr int value = N;
6586 };
6587
6588 answer<1> f(int&) { return answer<1>(); }
6589 answer<2> f(const int&) { return answer<2>(); }
6590 answer<3> f(int&&) { return answer<3>(); }
6591
6592 void
6593 test()
6594 {
6595 int i = 0;
6596 const int c = 0;
6597 static_assert(decltype(f(i))::value == 1, "");
6598 static_assert(decltype(f(c))::value == 2, "");
6599 static_assert(decltype(f(0))::value == 3, "");
6600 }
6601
6602 }
6603
6604 namespace test_uniform_initialization
6605 {
6606
6607 struct test
6608 {
6609 static const int zero {};
6610 static const int one {1};
6611 };
6612
6613 static_assert(test::zero == 0, "");
6614 static_assert(test::one == 1, "");
6615
6616 }
6617
6618 namespace test_lambdas
6619 {
6620
6621 void
6622 test1()
6623 {
6624 auto lambda1 = [](){};
6625 auto lambda2 = lambda1;
6626 lambda1();
6627 lambda2();
6628 }
6629
6630 int
6631 test2()
6632 {
6633 auto a = [](int i, int j){ return i + j; }(1, 2);
6634 auto b = []() -> int { return '0'; }();
6635 auto c = [=](){ return a + b; }();
6636 auto d = [&](){ return c; }();
6637 auto e = [a, &b](int x) mutable {
6638 const auto identity = [](int y){ return y; };
6639 for (auto i = 0; i < a; ++i)
6640 a += b--;
6641 return x + identity(a + b);
6642 }(0);
6643 return a + b + c + d + e;
6644 }
6645
6646 int
6647 test3()
6648 {
6649 const auto nullary = [](){ return 0; };
6650 const auto unary = [](int x){ return x; };
6651 using nullary_t = decltype(nullary);
6652 using unary_t = decltype(unary);
6653 const auto higher1st = [](nullary_t f){ return f(); };
6654 const auto higher2nd = [unary](nullary_t f1){
6655 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6656 };
6657 return higher1st(nullary) + higher2nd(nullary)(unary);
6658 }
6659
6660 }
6661
6662 namespace test_variadic_templates
6663 {
6664
6665 template <int...>
6666 struct sum;
6667
6668 template <int N0, int... N1toN>
6669 struct sum<N0, N1toN...>
6670 {
6671 static constexpr auto value = N0 + sum<N1toN...>::value;
6672 };
6673
6674 template <>
6675 struct sum<>
6676 {
6677 static constexpr auto value = 0;
6678 };
6679
6680 static_assert(sum<>::value == 0, "");
6681 static_assert(sum<1>::value == 1, "");
6682 static_assert(sum<23>::value == 23, "");
6683 static_assert(sum<1, 2>::value == 3, "");
6684 static_assert(sum<5, 5, 11>::value == 21, "");
6685 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6686
6687 }
6688
6689 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6690 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6691 // because of this.
6692 namespace test_template_alias_sfinae
6693 {
6694
6695 struct foo {};
6696
6697 template<typename T>
6698 using member = typename T::member_type;
6699
6700 template<typename T>
6701 void func(...) {}
6702
6703 template<typename T>
6704 void func(member<T>*) {}
6705
6706 void test();
6707
6708 void test() { func<foo>(0); }
6709
6710 }
6711
6712} // namespace cxx11
6713
6714#endif // __cplusplus >= 201103L
6715
6716
6717
6718_ACEOF
6719if ac_fn_cxx_try_compile "$LINENO"; then :
6720 eval $cachevar=yes
6721else
6722 eval $cachevar=no
6723fi
6724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725 CXX="$ac_save_CXX"
6726fi
6727eval ac_res=\$$cachevar
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6729$as_echo "$ac_res" >&6; }
6730 if eval test x\$$cachevar = xyes; then
6731 CXX="$CXX $switch"
6732 if test -n "$CXXCPP" ; then
6733 CXXCPP="$CXXCPP $switch"
6734 fi
6735 ac_success=yes
6736 break
6737 fi
6738 done
6739 if test x$ac_success = xyes; then
6740 break
6741 fi
6742 done
6743 fi
7ffcf5d6 6744
ffac9597
JM
6745 ac_ext=c
6746ac_cpp='$CPP $CPPFLAGS'
6747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6749ac_compiler_gnu=$ac_cv_c_compiler_gnu
6750
6751 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6752 if test x$ac_success = xno; then
6753 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6754 fi
6755 fi
6756 if test x$ac_success = xno; then
6757 HAVE_CXX11=0
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6759$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6760 else
6761 HAVE_CXX11=1
6762
6763$as_echo "#define HAVE_CXX11 1" >>confdefs.h
6764
6765 fi
6766
6767
7ffcf5d6
TB
6768
6769 if test "${build}" != "${host}"; then
6770 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6771 ac_ext=cpp
6772ac_cpp='$CXXCPP $CPPFLAGS'
6773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6776 ac_success=no
6777 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6778 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6779 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6780 CXX="$CXX_FOR_BUILD"
6781 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6782 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6784$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6785if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6786 $as_echo_n "(cached) " >&6
6787else
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789/* end confdefs.h. */
6790
6791
6792// If the compiler admits that it is not ready for C++11, why torture it?
6793// Hopefully, this will speed up the test.
6794
6795#ifndef __cplusplus
6796
6797#error "This is not a C++ compiler"
6798
6799#elif __cplusplus < 201103L
6800
6801#error "This is not a C++11 compiler"
6802
6803#else
6804
6805namespace cxx11
6806{
6807
6808 namespace test_static_assert
6809 {
6810
6811 template <typename T>
6812 struct check
6813 {
6814 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6815 };
6816
6817 }
6818
6819 namespace test_final_override
6820 {
6821
6822 struct Base
6823 {
6824 virtual ~Base() {}
6825 virtual void f() {}
6826 };
6827
6828 struct Derived : public Base
6829 {
6830 virtual ~Derived() override {}
6831 virtual void f() override {}
6832 };
6833
6834 }
6835
6836 namespace test_double_right_angle_brackets
6837 {
6838
6839 template < typename T >
6840 struct check {};
6841
6842 typedef check<void> single_type;
6843 typedef check<check<void>> double_type;
6844 typedef check<check<check<void>>> triple_type;
6845 typedef check<check<check<check<void>>>> quadruple_type;
6846
6847 }
6848
6849 namespace test_decltype
6850 {
6851
6852 int
6853 f()
6854 {
6855 int a = 1;
6856 decltype(a) b = 2;
6857 return a + b;
6858 }
6859
6860 }
6861
6862 namespace test_type_deduction
6863 {
6864
6865 template < typename T1, typename T2 >
6866 struct is_same
6867 {
6868 static const bool value = false;
6869 };
6870
6871 template < typename T >
6872 struct is_same<T, T>
6873 {
6874 static const bool value = true;
6875 };
6876
6877 template < typename T1, typename T2 >
6878 auto
6879 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6880 {
6881 return a1 + a2;
6882 }
6883
6884 int
6885 test(const int c, volatile int v)
6886 {
6887 static_assert(is_same<int, decltype(0)>::value == true, "");
6888 static_assert(is_same<int, decltype(c)>::value == false, "");
6889 static_assert(is_same<int, decltype(v)>::value == false, "");
6890 auto ac = c;
6891 auto av = v;
6892 auto sumi = ac + av + 'x';
6893 auto sumf = ac + av + 1.0;
6894 static_assert(is_same<int, decltype(ac)>::value == true, "");
6895 static_assert(is_same<int, decltype(av)>::value == true, "");
6896 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6897 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6898 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6899 return (sumf > 0.0) ? sumi : add(c, v);
6900 }
6901
6902 }
6903
6904 namespace test_noexcept
6905 {
6906
6907 int f() { return 0; }
6908 int g() noexcept { return 0; }
6909
6910 static_assert(noexcept(f()) == false, "");
6911 static_assert(noexcept(g()) == true, "");
6912
6913 }
6914
6915 namespace test_constexpr
6916 {
6917
6918 template < typename CharT >
6919 unsigned long constexpr
6920 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6921 {
6922 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6923 }
6924
6925 template < typename CharT >
6926 unsigned long constexpr
6927 strlen_c(const CharT *const s) noexcept
6928 {
6929 return strlen_c_r(s, 0UL);
6930 }
6931
6932 static_assert(strlen_c("") == 0UL, "");
6933 static_assert(strlen_c("1") == 1UL, "");
6934 static_assert(strlen_c("example") == 7UL, "");
6935 static_assert(strlen_c("another\0example") == 7UL, "");
6936
6937 }
6938
6939 namespace test_rvalue_references
6940 {
6941
6942 template < int N >
6943 struct answer
6944 {
6945 static constexpr int value = N;
6946 };
6947
6948 answer<1> f(int&) { return answer<1>(); }
6949 answer<2> f(const int&) { return answer<2>(); }
6950 answer<3> f(int&&) { return answer<3>(); }
6951
6952 void
6953 test()
6954 {
6955 int i = 0;
6956 const int c = 0;
6957 static_assert(decltype(f(i))::value == 1, "");
6958 static_assert(decltype(f(c))::value == 2, "");
6959 static_assert(decltype(f(0))::value == 3, "");
6960 }
6961
6962 }
6963
6964 namespace test_uniform_initialization
6965 {
6966
6967 struct test
6968 {
6969 static const int zero {};
6970 static const int one {1};
6971 };
6972
6973 static_assert(test::zero == 0, "");
6974 static_assert(test::one == 1, "");
6975
6976 }
6977
6978 namespace test_lambdas
6979 {
6980
6981 void
6982 test1()
6983 {
6984 auto lambda1 = [](){};
6985 auto lambda2 = lambda1;
6986 lambda1();
6987 lambda2();
6988 }
6989
6990 int
6991 test2()
6992 {
6993 auto a = [](int i, int j){ return i + j; }(1, 2);
6994 auto b = []() -> int { return '0'; }();
6995 auto c = [=](){ return a + b; }();
6996 auto d = [&](){ return c; }();
6997 auto e = [a, &b](int x) mutable {
6998 const auto identity = [](int y){ return y; };
6999 for (auto i = 0; i < a; ++i)
7000 a += b--;
7001 return x + identity(a + b);
7002 }(0);
7003 return a + b + c + d + e;
7004 }
7005
7006 int
7007 test3()
7008 {
7009 const auto nullary = [](){ return 0; };
7010 const auto unary = [](int x){ return x; };
7011 using nullary_t = decltype(nullary);
7012 using unary_t = decltype(unary);
7013 const auto higher1st = [](nullary_t f){ return f(); };
7014 const auto higher2nd = [unary](nullary_t f1){
7015 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7016 };
7017 return higher1st(nullary) + higher2nd(nullary)(unary);
7018 }
7019
7020 }
7021
7022 namespace test_variadic_templates
7023 {
7024
7025 template <int...>
7026 struct sum;
7027
7028 template <int N0, int... N1toN>
7029 struct sum<N0, N1toN...>
7030 {
7031 static constexpr auto value = N0 + sum<N1toN...>::value;
7032 };
7033
7034 template <>
7035 struct sum<>
7036 {
7037 static constexpr auto value = 0;
7038 };
7039
7040 static_assert(sum<>::value == 0, "");
7041 static_assert(sum<1>::value == 1, "");
7042 static_assert(sum<23>::value == 23, "");
7043 static_assert(sum<1, 2>::value == 3, "");
7044 static_assert(sum<5, 5, 11>::value == 21, "");
7045 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7046
7047 }
7048
7049 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7050 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7051 // because of this.
7052 namespace test_template_alias_sfinae
7053 {
7054
7055 struct foo {};
7056
7057 template<typename T>
7058 using member = typename T::member_type;
7059
7060 template<typename T>
7061 void func(...) {}
7062
7063 template<typename T>
7064 void func(member<T>*) {}
7065
7066 void test();
7067
7068 void test() { func<foo>(0); }
7069
7070 }
7071
7072} // namespace cxx11
7073
7074#endif // __cplusplus >= 201103L
7075
7076
7077
7078_ACEOF
7079if ac_fn_cxx_try_compile "$LINENO"; then :
7080 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7081else
7082 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7083fi
7084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7085fi
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7087$as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7088 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7089 ac_success=yes
7090 fi
7091
7092 if test x$ac_success = xno; then
7093 for alternative in ${ax_cxx_compile_alternatives}; do
7094 switch="-std=gnu++${alternative}"
7095 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7097$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7098if eval \${$cachevar+:} false; then :
7099 $as_echo_n "(cached) " >&6
7100else
7101 ac_save_CXX="$CXX"
7102 CXX="$CXX $switch"
7103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104/* end confdefs.h. */
7105
7106
7107// If the compiler admits that it is not ready for C++11, why torture it?
7108// Hopefully, this will speed up the test.
7109
7110#ifndef __cplusplus
7111
7112#error "This is not a C++ compiler"
7113
7114#elif __cplusplus < 201103L
7115
7116#error "This is not a C++11 compiler"
7117
7118#else
7119
7120namespace cxx11
7121{
7122
7123 namespace test_static_assert
7124 {
7125
7126 template <typename T>
7127 struct check
7128 {
7129 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7130 };
7131
7132 }
7133
7134 namespace test_final_override
7135 {
7136
7137 struct Base
7138 {
7139 virtual ~Base() {}
7140 virtual void f() {}
7141 };
7142
7143 struct Derived : public Base
7144 {
7145 virtual ~Derived() override {}
7146 virtual void f() override {}
7147 };
7148
7149 }
7150
7151 namespace test_double_right_angle_brackets
7152 {
7153
7154 template < typename T >
7155 struct check {};
7156
7157 typedef check<void> single_type;
7158 typedef check<check<void>> double_type;
7159 typedef check<check<check<void>>> triple_type;
7160 typedef check<check<check<check<void>>>> quadruple_type;
7161
7162 }
7163
7164 namespace test_decltype
7165 {
7166
7167 int
7168 f()
7169 {
7170 int a = 1;
7171 decltype(a) b = 2;
7172 return a + b;
7173 }
7174
7175 }
7176
7177 namespace test_type_deduction
7178 {
7179
7180 template < typename T1, typename T2 >
7181 struct is_same
7182 {
7183 static const bool value = false;
7184 };
7185
7186 template < typename T >
7187 struct is_same<T, T>
7188 {
7189 static const bool value = true;
7190 };
7191
7192 template < typename T1, typename T2 >
7193 auto
7194 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7195 {
7196 return a1 + a2;
7197 }
7198
7199 int
7200 test(const int c, volatile int v)
7201 {
7202 static_assert(is_same<int, decltype(0)>::value == true, "");
7203 static_assert(is_same<int, decltype(c)>::value == false, "");
7204 static_assert(is_same<int, decltype(v)>::value == false, "");
7205 auto ac = c;
7206 auto av = v;
7207 auto sumi = ac + av + 'x';
7208 auto sumf = ac + av + 1.0;
7209 static_assert(is_same<int, decltype(ac)>::value == true, "");
7210 static_assert(is_same<int, decltype(av)>::value == true, "");
7211 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7212 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7213 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7214 return (sumf > 0.0) ? sumi : add(c, v);
7215 }
7216
7217 }
7218
7219 namespace test_noexcept
7220 {
7221
7222 int f() { return 0; }
7223 int g() noexcept { return 0; }
7224
7225 static_assert(noexcept(f()) == false, "");
7226 static_assert(noexcept(g()) == true, "");
7227
7228 }
7229
7230 namespace test_constexpr
7231 {
7232
7233 template < typename CharT >
7234 unsigned long constexpr
7235 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7236 {
7237 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7238 }
7239
7240 template < typename CharT >
7241 unsigned long constexpr
7242 strlen_c(const CharT *const s) noexcept
7243 {
7244 return strlen_c_r(s, 0UL);
7245 }
7246
7247 static_assert(strlen_c("") == 0UL, "");
7248 static_assert(strlen_c("1") == 1UL, "");
7249 static_assert(strlen_c("example") == 7UL, "");
7250 static_assert(strlen_c("another\0example") == 7UL, "");
7251
7252 }
7253
7254 namespace test_rvalue_references
7255 {
7256
7257 template < int N >
7258 struct answer
7259 {
7260 static constexpr int value = N;
7261 };
7262
7263 answer<1> f(int&) { return answer<1>(); }
7264 answer<2> f(const int&) { return answer<2>(); }
7265 answer<3> f(int&&) { return answer<3>(); }
7266
7267 void
7268 test()
7269 {
7270 int i = 0;
7271 const int c = 0;
7272 static_assert(decltype(f(i))::value == 1, "");
7273 static_assert(decltype(f(c))::value == 2, "");
7274 static_assert(decltype(f(0))::value == 3, "");
7275 }
7276
7277 }
7278
7279 namespace test_uniform_initialization
7280 {
7281
7282 struct test
7283 {
7284 static const int zero {};
7285 static const int one {1};
7286 };
7287
7288 static_assert(test::zero == 0, "");
7289 static_assert(test::one == 1, "");
7290
7291 }
7292
7293 namespace test_lambdas
7294 {
7295
7296 void
7297 test1()
7298 {
7299 auto lambda1 = [](){};
7300 auto lambda2 = lambda1;
7301 lambda1();
7302 lambda2();
7303 }
7304
7305 int
7306 test2()
7307 {
7308 auto a = [](int i, int j){ return i + j; }(1, 2);
7309 auto b = []() -> int { return '0'; }();
7310 auto c = [=](){ return a + b; }();
7311 auto d = [&](){ return c; }();
7312 auto e = [a, &b](int x) mutable {
7313 const auto identity = [](int y){ return y; };
7314 for (auto i = 0; i < a; ++i)
7315 a += b--;
7316 return x + identity(a + b);
7317 }(0);
7318 return a + b + c + d + e;
7319 }
7320
7321 int
7322 test3()
7323 {
7324 const auto nullary = [](){ return 0; };
7325 const auto unary = [](int x){ return x; };
7326 using nullary_t = decltype(nullary);
7327 using unary_t = decltype(unary);
7328 const auto higher1st = [](nullary_t f){ return f(); };
7329 const auto higher2nd = [unary](nullary_t f1){
7330 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7331 };
7332 return higher1st(nullary) + higher2nd(nullary)(unary);
7333 }
7334
7335 }
7336
7337 namespace test_variadic_templates
7338 {
7339
7340 template <int...>
7341 struct sum;
7342
7343 template <int N0, int... N1toN>
7344 struct sum<N0, N1toN...>
7345 {
7346 static constexpr auto value = N0 + sum<N1toN...>::value;
7347 };
7348
7349 template <>
7350 struct sum<>
7351 {
7352 static constexpr auto value = 0;
7353 };
7354
7355 static_assert(sum<>::value == 0, "");
7356 static_assert(sum<1>::value == 1, "");
7357 static_assert(sum<23>::value == 23, "");
7358 static_assert(sum<1, 2>::value == 3, "");
7359 static_assert(sum<5, 5, 11>::value == 21, "");
7360 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7361
7362 }
7363
7364 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7365 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7366 // because of this.
7367 namespace test_template_alias_sfinae
7368 {
7369
7370 struct foo {};
7371
7372 template<typename T>
7373 using member = typename T::member_type;
7374
7375 template<typename T>
7376 void func(...) {}
7377
7378 template<typename T>
7379 void func(member<T>*) {}
7380
7381 void test();
7382
7383 void test() { func<foo>(0); }
7384
7385 }
7386
7387} // namespace cxx11
7388
7389#endif // __cplusplus >= 201103L
7390
7391
7392
7393_ACEOF
7394if ac_fn_cxx_try_compile "$LINENO"; then :
7395 eval $cachevar=yes
7396else
7397 eval $cachevar=no
7398fi
7399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7400 CXX="$ac_save_CXX"
7401fi
7402eval ac_res=\$$cachevar
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7404$as_echo "$ac_res" >&6; }
7405 if eval test x\$$cachevar = xyes; then
7406 CXX="$CXX $switch"
7407 if test -n "$CXXCPP" ; then
7408 CXXCPP="$CXXCPP $switch"
7409 fi
7410 ac_success=yes
7411 break
7412 fi
7413 done
7414 fi
7415
7416 if test x$ac_success = xno; then
7417 for alternative in ${ax_cxx_compile_alternatives}; do
7418 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7419 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7421$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7422if eval \${$cachevar+:} false; then :
7423 $as_echo_n "(cached) " >&6
7424else
7425 ac_save_CXX="$CXX"
7426 CXX="$CXX $switch"
7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428/* end confdefs.h. */
7429
7430
7431// If the compiler admits that it is not ready for C++11, why torture it?
7432// Hopefully, this will speed up the test.
7433
7434#ifndef __cplusplus
7435
7436#error "This is not a C++ compiler"
7437
7438#elif __cplusplus < 201103L
7439
7440#error "This is not a C++11 compiler"
7441
7442#else
7443
7444namespace cxx11
7445{
7446
7447 namespace test_static_assert
7448 {
7449
7450 template <typename T>
7451 struct check
7452 {
7453 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7454 };
7455
7456 }
7457
7458 namespace test_final_override
7459 {
7460
7461 struct Base
7462 {
7463 virtual ~Base() {}
7464 virtual void f() {}
7465 };
7466
7467 struct Derived : public Base
7468 {
7469 virtual ~Derived() override {}
7470 virtual void f() override {}
7471 };
7472
7473 }
7474
7475 namespace test_double_right_angle_brackets
7476 {
7477
7478 template < typename T >
7479 struct check {};
7480
7481 typedef check<void> single_type;
7482 typedef check<check<void>> double_type;
7483 typedef check<check<check<void>>> triple_type;
7484 typedef check<check<check<check<void>>>> quadruple_type;
7485
7486 }
7487
7488 namespace test_decltype
7489 {
7490
7491 int
7492 f()
7493 {
7494 int a = 1;
7495 decltype(a) b = 2;
7496 return a + b;
7497 }
7498
7499 }
7500
7501 namespace test_type_deduction
7502 {
7503
7504 template < typename T1, typename T2 >
7505 struct is_same
7506 {
7507 static const bool value = false;
7508 };
7509
7510 template < typename T >
7511 struct is_same<T, T>
7512 {
7513 static const bool value = true;
7514 };
7515
7516 template < typename T1, typename T2 >
7517 auto
7518 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7519 {
7520 return a1 + a2;
7521 }
7522
7523 int
7524 test(const int c, volatile int v)
7525 {
7526 static_assert(is_same<int, decltype(0)>::value == true, "");
7527 static_assert(is_same<int, decltype(c)>::value == false, "");
7528 static_assert(is_same<int, decltype(v)>::value == false, "");
7529 auto ac = c;
7530 auto av = v;
7531 auto sumi = ac + av + 'x';
7532 auto sumf = ac + av + 1.0;
7533 static_assert(is_same<int, decltype(ac)>::value == true, "");
7534 static_assert(is_same<int, decltype(av)>::value == true, "");
7535 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7536 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7537 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7538 return (sumf > 0.0) ? sumi : add(c, v);
7539 }
7540
7541 }
7542
7543 namespace test_noexcept
7544 {
7545
7546 int f() { return 0; }
7547 int g() noexcept { return 0; }
7548
7549 static_assert(noexcept(f()) == false, "");
7550 static_assert(noexcept(g()) == true, "");
7551
7552 }
7553
7554 namespace test_constexpr
7555 {
7556
7557 template < typename CharT >
7558 unsigned long constexpr
7559 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7560 {
7561 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7562 }
7563
7564 template < typename CharT >
7565 unsigned long constexpr
7566 strlen_c(const CharT *const s) noexcept
7567 {
7568 return strlen_c_r(s, 0UL);
7569 }
7570
7571 static_assert(strlen_c("") == 0UL, "");
7572 static_assert(strlen_c("1") == 1UL, "");
7573 static_assert(strlen_c("example") == 7UL, "");
7574 static_assert(strlen_c("another\0example") == 7UL, "");
7575
7576 }
7577
7578 namespace test_rvalue_references
7579 {
7580
7581 template < int N >
7582 struct answer
7583 {
7584 static constexpr int value = N;
7585 };
7586
7587 answer<1> f(int&) { return answer<1>(); }
7588 answer<2> f(const int&) { return answer<2>(); }
7589 answer<3> f(int&&) { return answer<3>(); }
7590
7591 void
7592 test()
7593 {
7594 int i = 0;
7595 const int c = 0;
7596 static_assert(decltype(f(i))::value == 1, "");
7597 static_assert(decltype(f(c))::value == 2, "");
7598 static_assert(decltype(f(0))::value == 3, "");
7599 }
7600
7601 }
7602
7603 namespace test_uniform_initialization
7604 {
7605
7606 struct test
7607 {
7608 static const int zero {};
7609 static const int one {1};
7610 };
7611
7612 static_assert(test::zero == 0, "");
7613 static_assert(test::one == 1, "");
7614
7615 }
7616
7617 namespace test_lambdas
7618 {
7619
7620 void
7621 test1()
7622 {
7623 auto lambda1 = [](){};
7624 auto lambda2 = lambda1;
7625 lambda1();
7626 lambda2();
7627 }
7628
7629 int
7630 test2()
7631 {
7632 auto a = [](int i, int j){ return i + j; }(1, 2);
7633 auto b = []() -> int { return '0'; }();
7634 auto c = [=](){ return a + b; }();
7635 auto d = [&](){ return c; }();
7636 auto e = [a, &b](int x) mutable {
7637 const auto identity = [](int y){ return y; };
7638 for (auto i = 0; i < a; ++i)
7639 a += b--;
7640 return x + identity(a + b);
7641 }(0);
7642 return a + b + c + d + e;
7643 }
7644
7645 int
7646 test3()
7647 {
7648 const auto nullary = [](){ return 0; };
7649 const auto unary = [](int x){ return x; };
7650 using nullary_t = decltype(nullary);
7651 using unary_t = decltype(unary);
7652 const auto higher1st = [](nullary_t f){ return f(); };
7653 const auto higher2nd = [unary](nullary_t f1){
7654 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7655 };
7656 return higher1st(nullary) + higher2nd(nullary)(unary);
7657 }
7658
7659 }
7660
7661 namespace test_variadic_templates
7662 {
7663
7664 template <int...>
7665 struct sum;
7666
7667 template <int N0, int... N1toN>
7668 struct sum<N0, N1toN...>
7669 {
7670 static constexpr auto value = N0 + sum<N1toN...>::value;
7671 };
7672
7673 template <>
7674 struct sum<>
7675 {
7676 static constexpr auto value = 0;
7677 };
7678
7679 static_assert(sum<>::value == 0, "");
7680 static_assert(sum<1>::value == 1, "");
7681 static_assert(sum<23>::value == 23, "");
7682 static_assert(sum<1, 2>::value == 3, "");
7683 static_assert(sum<5, 5, 11>::value == 21, "");
7684 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7685
7686 }
7687
7688 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7689 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7690 // because of this.
7691 namespace test_template_alias_sfinae
7692 {
7693
7694 struct foo {};
7695
7696 template<typename T>
7697 using member = typename T::member_type;
7698
7699 template<typename T>
7700 void func(...) {}
7701
7702 template<typename T>
7703 void func(member<T>*) {}
7704
7705 void test();
7706
7707 void test() { func<foo>(0); }
7708
7709 }
7710
7711} // namespace cxx11
7712
7713#endif // __cplusplus >= 201103L
7714
7715
7716
7717_ACEOF
7718if ac_fn_cxx_try_compile "$LINENO"; then :
7719 eval $cachevar=yes
7720else
7721 eval $cachevar=no
7722fi
7723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7724 CXX="$ac_save_CXX"
7725fi
7726eval ac_res=\$$cachevar
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7728$as_echo "$ac_res" >&6; }
7729 if eval test x\$$cachevar = xyes; then
7730 CXX="$CXX $switch"
7731 if test -n "$CXXCPP" ; then
7732 CXXCPP="$CXXCPP $switch"
7733 fi
7734 ac_success=yes
7735 break
7736 fi
7737 done
7738 if test x$ac_success = xyes; then
7739 break
7740 fi
7741 done
7742 fi
7743 CXX_FOR_BUILD="$CXX"
7744 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7745 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7746 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7747 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7748 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7749 ac_ext=c
7750ac_cpp='$CPP $CPPFLAGS'
7751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7753ac_compiler_gnu=$ac_cv_c_compiler_gnu
7754
7755 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7756 if test x$ac_success = xno; then
7757 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7758 fi
7759 fi
7760 if test x$ac_success = xno; then
7761 HAVE_CXX11_FOR_BUILD=0
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7763$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7764 else
7765 HAVE_CXX11_FOR_BUILD=1
7766
7767$as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7768
7769 fi
7770
7771
7772 fi
46070488
JM
7773fi
7774
4a5e71f2
L
7775# Check whether --enable-pgo-build was given.
7776if test "${enable_pgo_build+set}" = set; then :
7777 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7778else
7779 enable_pgo_build=no
7780fi
7781
7782
7783# Issue errors and warnings for invalid/strange PGO build combinations.
7784case "$have_compiler:$host:$target:$enable_pgo_build" in
7785 *:*:*:no) ;;
7786
7787 # Allow the PGO build only if we aren't building a compiler and
7788 # we are in a native configuration.
7789 no:$build:$build:yes | no:$build:$build:lto) ;;
7790
7791 # Disallow the PGO bootstrap if we are building a compiler.
7792 yes:*:*:yes | yes:*:*:lto)
7793 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7794
7795 *)
7796 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7797 ;;
7798esac
7799
7800if test "$enable_pgo_build" != "no"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7802$as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7803 old_CFLAGS="$CFLAGS"
7804 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7805 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7806
7807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808/* end confdefs.h. */
7809int foo;
7810_ACEOF
7811if ac_fn_c_try_compile "$LINENO"; then :
7812
7813else
7814 PGO_BUILD_GEN_CFLAGS=
7815fi
7816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817 CFLAGS="$old_CFLAGS"
7818 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7820$as_echo "yes" >&6; }
7821 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7822 else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824$as_echo "no" >&6; }
7825 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7826 fi
7827
7828 if test "$enable_pgo_build" = "lto"; then
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7830$as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7831 old_CFLAGS="$CFLAGS"
7832 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7833 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835/* end confdefs.h. */
7836int foo;
7837_ACEOF
7838if ac_fn_c_try_compile "$LINENO"; then :
7839
7840else
7841 PGO_BUILD_LTO_CFLAGS=
7842fi
7843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7844 CFLAGS="$old_CFLAGS"
7845 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7847$as_echo "yes" >&6; }
7848 else
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850$as_echo "no" >&6; }
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7852$as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7853 fi
7854 fi
7855fi
7856
7857
7858
7859
592c90ff
KG
7860# Used for setting $lt_cv_objdir
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7862$as_echo_n "checking for objdir... " >&6; }
22e05272 7863if ${lt_cv_objdir+:} false; then :
592c90ff
KG
7864 $as_echo_n "(cached) " >&6
7865else
7866 rm -f .libs 2>/dev/null
7867mkdir .libs 2>/dev/null
7868if test -d .libs; then
7869 lt_cv_objdir=.libs
7870else
7871 # MS-DOS does not allow filenames that begin with a dot.
7872 lt_cv_objdir=_libs
7873fi
7874rmdir .libs 2>/dev/null
7875fi
7876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7877$as_echo "$lt_cv_objdir" >&6; }
7878objdir=$lt_cv_objdir
7879
7880
7881
7882
7883
7884cat >>confdefs.h <<_ACEOF
7885#define LT_OBJDIR "$lt_cv_objdir/"
7886_ACEOF
7887
7888
7889
acd26225 7890# Check for GMP, MPFR and MPC
3a5729ea 7891gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 7892gmpinc=
e69bf64b 7893have_gmp=no
acd26225
KG
7894
7895# Specify a location for mpc
7896# check for this first so it ends up on the link line before mpfr.
7897
5213506e
RW
7898# Check whether --with-mpc was given.
7899if test "${with_mpc+set}" = set; then :
7900 withval=$with_mpc;
7901fi
acd26225 7902
acd26225 7903
9965e3cd 7904# Check whether --with-mpc-include was given.
5213506e
RW
7905if test "${with_mpc_include+set}" = set; then :
7906 withval=$with_mpc_include;
7907fi
acd26225 7908
acd26225 7909
9965e3cd 7910# Check whether --with-mpc-lib was given.
5213506e
RW
7911if test "${with_mpc_lib+set}" = set; then :
7912 withval=$with_mpc_lib;
7913fi
acd26225 7914
acd26225
KG
7915
7916if test "x$with_mpc" != x; then
3a5729ea
KG
7917 gmplibs="-L$with_mpc/lib $gmplibs"
7918 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
7919fi
7920if test "x$with_mpc_include" != x; then
3a5729ea 7921 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
7922fi
7923if test "x$with_mpc_lib" != x; then
3a5729ea 7924 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
7925fi
7926if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 7927 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 7928 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
7929 # Do not test the mpc version. Assume that it is sufficient, since
7930 # it is in the source tree, and the library has not been built yet
7931 # but it would be included on the link line in the version check below
7932 # hence making the test fail.
3a5729ea 7933 have_gmp=yes
acd26225 7934fi
e69bf64b 7935
bebf829d
PB
7936# Specify a location for mpfr
7937# check for this first so it ends up on the link line before gmp.
1c710c3c 7938
5213506e
RW
7939# Check whether --with-mpfr was given.
7940if test "${with_mpfr+set}" = set; then :
7941 withval=$with_mpfr;
7942fi
1c710c3c 7943
bebf829d 7944
9965e3cd 7945# Check whether --with-mpfr-include was given.
5213506e
RW
7946if test "${with_mpfr_include+set}" = set; then :
7947 withval=$with_mpfr_include;
7948fi
1c710c3c 7949
8a877c9c 7950
9965e3cd 7951# Check whether --with-mpfr-lib was given.
5213506e
RW
7952if test "${with_mpfr_lib+set}" = set; then :
7953 withval=$with_mpfr_lib;
7954fi
8a877c9c 7955
bebf829d
PB
7956
7957if test "x$with_mpfr" != x; then
7958 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 7959 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 7960fi
8a877c9c 7961if test "x$with_mpfr_include" != x; then
3a5729ea 7962 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
7963fi
7964if test "x$with_mpfr_lib" != x; then
7965 gmplibs="-L$with_mpfr_lib $gmplibs"
7966fi
e69bf64b 7967if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
7968 # MPFR v3.1.0 moved the sources into a src sub-directory.
7969 if ! test -d ${srcdir}/mpfr/src; then
22e05272 7970 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8f3675f8 7971 fi
00f35794
BE
7972 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7973 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7974 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
7975 # Do not test the mpfr version. Assume that it is sufficient, since
7976 # it is in the source tree, and the library has not been built yet
7977 # but it would be included on the link line in the version check below
7978 # hence making the test fail.
7979 have_gmp=yes
7980fi
bebf829d 7981
6de9cd9a 7982# Specify a location for gmp
1c710c3c 7983
5213506e
RW
7984# Check whether --with-gmp was given.
7985if test "${with_gmp+set}" = set; then :
7986 withval=$with_gmp;
7987fi
1c710c3c 7988
6de9cd9a 7989
9965e3cd 7990# Check whether --with-gmp-include was given.
5213506e
RW
7991if test "${with_gmp_include+set}" = set; then :
7992 withval=$with_gmp_include;
7993fi
1c710c3c 7994
8a877c9c 7995
9965e3cd 7996# Check whether --with-gmp-lib was given.
5213506e
RW
7997if test "${with_gmp_lib+set}" = set; then :
7998 withval=$with_gmp_lib;
7999fi
8a877c9c
KG
8000
8001
6de9cd9a 8002
bebf829d
PB
8003if test "x$with_gmp" != x; then
8004 gmplibs="-L$with_gmp/lib $gmplibs"
8005 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 8006fi
8a877c9c
KG
8007if test "x$with_gmp_include" != x; then
8008 gmpinc="-I$with_gmp_include $gmpinc"
8009fi
8010if test "x$with_gmp_lib" != x; then
8011 gmplibs="-L$with_gmp_lib $gmplibs"
8012fi
e69bf64b 8013if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 8014 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 8015 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 8016 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 8017 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 8018 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
8019 # Do not test the gmp version. Assume that it is sufficient, since
8020 # it is in the source tree, and the library has not been built yet
8021 # but it would be included on the link line in the version check below
8022 # hence making the test fail.
8023 have_gmp=yes
8024fi
6de9cd9a 8025
d943d7c4 8026if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
8027 have_gmp=yes
8028 saved_CFLAGS="$CFLAGS"
8029 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
8030 # Check for the recommended and required versions of GMP.
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8032$as_echo_n "checking for the correct version of gmp.h... " >&6; }
4a5e71f2 8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
8034/* end confdefs.h. */
8035#include "gmp.h"
8036int
8037main ()
8038{
8039
8040 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8041 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 8042 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
8043 choke me
8044 #endif
8045
8046 ;
8047 return 0;
8048}
8049_ACEOF
8050if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 8051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8052/* end confdefs.h. */
362c6d2f 8053#include <gmp.h>
1c710c3c
DJ
8054int
8055main ()
8056{
6de9cd9a 8057
362c6d2f
KG
8058 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8059 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8060 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
8061 choke me
8062 #endif
1c710c3c
DJ
8063
8064 ;
8065 return 0;
8066}
8067_ACEOF
5213506e
RW
8068if ac_fn_c_try_compile "$LINENO"; then :
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8070$as_echo "yes" >&6; }
362c6d2f
KG
8071else
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8073$as_echo "buggy but acceptable" >&6; }
8074fi
8075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 8076else
5213506e
RW
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078$as_echo "no" >&6; }; have_gmp=no
1c710c3c 8079fi
5213506e 8080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 8081
acd26225 8082 # If we have GMP, check the MPFR version.
e69bf64b 8083 if test x"$have_gmp" = xyes; then
362c6d2f
KG
8084 # Check for the recommended and required versions of MPFR.
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8086$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8088/* end confdefs.h. */
70ec446f 8089#include <gmp.h>
e69bf64b 8090 #include <mpfr.h>
1c710c3c
DJ
8091int
8092main ()
8093{
e48d66a9 8094
8be34204 8095 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
e69bf64b
PB
8096 choke me
8097 #endif
1c710c3c
DJ
8098
8099 ;
8100 return 0;
8101}
8102_ACEOF
5213506e
RW
8103if ac_fn_c_try_compile "$LINENO"; then :
8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8105/* end confdefs.h. */
a3993f33 8106#include <gmp.h>
e69bf64b 8107 #include <mpfr.h>
1c710c3c
DJ
8108int
8109main ()
8110{
a3993f33 8111
8be34204 8112 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
e69bf64b
PB
8113 choke me
8114 #endif
acd26225
KG
8115
8116 ;
8117 return 0;
8118}
8119_ACEOF
5213506e
RW
8120if ac_fn_c_try_compile "$LINENO"; then :
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8122$as_echo "yes" >&6; }
acd26225 8123else
5213506e
RW
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8125$as_echo "buggy but acceptable" >&6; }
acd26225 8126fi
5213506e 8127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 8128else
5213506e
RW
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130$as_echo "no" >&6; }; have_gmp=no
acd26225 8131fi
5213506e 8132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
8133 fi
8134
8135 # Check for the MPC header version.
3a5729ea 8136 if test x"$have_gmp" = xyes ; then
362c6d2f 8137 # Check for the recommended and required versions of MPC.
5213506e
RW
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8139$as_echo_n "checking for the correct version of mpc.h... " >&6; }
8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
8141/* end confdefs.h. */
8142#include <mpc.h>
8143int
8144main ()
8145{
8146
362c6d2f
KG
8147 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8148 choke me
8149 #endif
8150
8151 ;
8152 return 0;
8153}
8154_ACEOF
8155if ac_fn_c_try_compile "$LINENO"; then :
8156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8157/* end confdefs.h. */
8158#include <mpc.h>
8159int
8160main ()
8161{
8162
8163 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
8164 choke me
8165 #endif
8166
8167 ;
8168 return 0;
8169}
8170_ACEOF
5213506e
RW
8171if ac_fn_c_try_compile "$LINENO"; then :
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 8173$as_echo "yes" >&6; }
362c6d2f
KG
8174else
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8176$as_echo "buggy but acceptable" >&6; }
8177fi
8178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 8179else
5213506e 8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 8181$as_echo "no" >&6; }; have_gmp=no
acd26225 8182fi
5213506e 8183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
8184 fi
8185
8186 # Now check the MPFR library.
8187 if test x"$have_gmp" = xyes; then
8188 saved_LIBS="$LIBS"
8189 LIBS="$LIBS $gmplibs"
3a5729ea
KG
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8191$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 8193/* end confdefs.h. */
3a5729ea 8194#include <mpc.h>
acd26225
KG
8195int
8196main ()
8197{
8198
8199 mpfr_t n;
8200 mpfr_t x;
3a5729ea 8201 mpc_t c;
acd26225
KG
8202 int t;
8203 mpfr_init (n);
8204 mpfr_init (x);
90ca6847
TB
8205 mpfr_atan2 (n, n, x, MPFR_RNDN);
8206 mpfr_erfc (n, x, MPFR_RNDN);
8207 mpfr_subnormalize (x, t, MPFR_RNDN);
3a5729ea
KG
8208 mpfr_clear(n);
8209 mpfr_clear(x);
8210 mpc_init2 (c, 53);
8211 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8212 mpc_cosh (c, c, MPC_RNDNN);
8213 mpc_pow (c, c, c, MPC_RNDNN);
8214 mpc_acosh (c, c, MPC_RNDNN);
8215 mpc_clear (c);
1c710c3c
DJ
8216
8217 ;
8218 return 0;
8219}
8220_ACEOF
5213506e
RW
8221if ac_fn_c_try_link "$LINENO"; then :
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8223$as_echo "yes" >&6; }
1c710c3c 8224else
5213506e
RW
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226$as_echo "no" >&6; }; have_gmp=no
1c710c3c 8227fi
5213506e
RW
8228rm -f core conftest.err conftest.$ac_objext \
8229 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
8230 LIBS="$saved_LIBS"
8231 fi
8232
e69bf64b 8233 CFLAGS="$saved_CFLAGS"
6de9cd9a 8234
362c6d2f
KG
8235# The library versions listed in the error message below should match
8236# the HARD-minimums enforced above.
e69bf64b 8237 if test x$have_gmp != xyes; then
8be34204 8238 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
3a5729ea
KG
8239Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8240their locations. Source code for these libraries can be found at
8241their respective hosting sites as well as at
aeebd94c 8242https://gcc.gnu.org/pub/gcc/infrastructure/. See also
45ab87d4 8243http://gcc.gnu.org/install/prerequisites.html for additional info. If
3a5729ea
KG
8244you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8245make sure that you have installed both the libraries and the header
8246files. They may be located in separate packages." "$LINENO" 5
e69bf64b 8247 fi
70ec446f
KG
8248fi
8249
acd26225
KG
8250# Flags needed for both GMP, MPFR and/or MPC.
8251
8252
6de9cd9a
DN
8253
8254
8255
9e3eba15 8256
0ff2d841 8257
0b21f5d3 8258# Libraries to use for stage1 or when not bootstrapping.
00020c16 8259
0b21f5d3
EB
8260# Check whether --with-stage1-libs was given.
8261if test "${with_stage1_libs+set}" = set; then :
8262 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8263 stage1_libs=
00020c16 8264 else
0b21f5d3 8265 stage1_libs=$withval
00020c16
ILT
8266 fi
8267else
5dc85f7e 8268 stage1_libs=
5213506e
RW
8269fi
8270
00020c16
ILT
8271
8272
aac9103b
TT
8273# Whether or not to use -static-libstdc++ and -static-libgcc. The
8274# default is yes if gcc is being built; no otherwise. The reason for
8275# this default is that gdb is sometimes linked against GNU Source
8276# Highlight, which is a shared library that uses C++ exceptions. In
8277# this case, -static-libstdc++ will cause crashes.
8278
8279# Check whether --with-static-standard-libraries was given.
8280if test "${with_static_standard_libraries+set}" = set; then :
8281 withval=$with_static_standard_libraries;
8282else
8283 with_static_standard_libraries=auto
8284fi
8285
8286if test "$with_static_standard_libraries" = auto; then
8287 with_static_standard_libraries=$have_compiler
8288fi
8289
0b21f5d3 8290# Linker flags to use for stage1 or when not bootstrapping.
00020c16 8291
0b21f5d3
EB
8292# Check whether --with-stage1-ldflags was given.
8293if test "${with_stage1_ldflags+set}" = set; then :
8294 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8295 stage1_ldflags=
00020c16 8296 else
0b21f5d3 8297 stage1_ldflags=$withval
00020c16
ILT
8298 fi
8299else
0b21f5d3
EB
8300 stage1_ldflags=
8301 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8302 # if supported. But if the user explicitly specified the libraries to use,
8303 # trust that they are doing what they want.
aac9103b
TT
8304 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8305 -a "$have_static_libs" = yes; then
0b21f5d3
EB
8306 stage1_ldflags="-static-libstdc++ -static-libgcc"
8307 fi
5213506e
RW
8308fi
8309
00020c16
ILT
8310
8311
5dc85f7e 8312# Libraries to use for stage2 and later builds.
00020c16 8313
5213506e
RW
8314# Check whether --with-boot-libs was given.
8315if test "${with_boot_libs+set}" = set; then :
8316 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
8317 poststage1_libs=
8318 else
8319 poststage1_libs=$withval
8320 fi
8321else
5dc85f7e 8322 poststage1_libs=
5213506e
RW
8323fi
8324
00020c16
ILT
8325
8326
ed2eaa9f
ILT
8327# Linker flags to use for stage2 and later builds.
8328
8329# Check whether --with-boot-ldflags was given.
8330if test "${with_boot_ldflags+set}" = set; then :
8331 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8332 poststage1_ldflags=
8333 else
8334 poststage1_ldflags=$withval
8335 fi
8336else
8337 poststage1_ldflags=
bec93d73
ILT
8338 # In stages 2 and 3, default to linking libstdc++ and libgcc
8339 # statically. But if the user explicitly specified the libraries to
8340 # use, trust that they are doing what they want.
8341 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
8342 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8343 fi
8344fi
8345
8346
8347
e357a5e0 8348# GCC GRAPHITE dependency isl.
4a9bb2aa 8349# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
8350
8351
33ad93b9
RG
8352# Check whether --with-isl was given.
8353if test "${with_isl+set}" = set; then :
8354 withval=$with_isl;
5213506e 8355fi
f8bf9252 8356
f8bf9252 8357
eae1a5d4 8358# Treat --without-isl as a request to disable
625afa23 8359# GRAPHITE support and skip all following checks.
eae1a5d4 8360if test "x$with_isl" != "xno"; then
e357a5e0 8361 # Check for isl
625afa23
RG
8362
8363
33ad93b9
RG
8364# Check whether --with-isl-include was given.
8365if test "${with_isl_include+set}" = set; then :
8366 withval=$with_isl_include;
5213506e
RW
8367fi
8368
f8bf9252 8369
33ad93b9
RG
8370# Check whether --with-isl-lib was given.
8371if test "${with_isl_lib+set}" = set; then :
8372 withval=$with_isl_lib;
5213506e 8373fi
f8bf9252 8374
f8bf9252 8375
33ad93b9
RG
8376 # Check whether --enable-isl-version-check was given.
8377if test "${enable_isl_version_check+set}" = set; then :
8378 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8379else
8380 ENABLE_ISL_CHECK=yes
7d32a440
SP
8381fi
8382
8383
33ad93b9
RG
8384 # Initialize isllibs and islinc.
8385 case $with_isl in
8386 no)
8387 isllibs=
8388 islinc=
8389 ;;
8390 "" | yes)
8391 ;;
8392 *)
8393 isllibs="-L$with_isl/lib"
8394 islinc="-I$with_isl/include"
8395 ;;
8396 esac
8397 if test "x${with_isl_include}" != x ; then
8398 islinc="-I$with_isl_include"
8399 fi
8400 if test "x${with_isl_lib}" != x; then
8401 isllibs="-L$with_isl_lib"
8402 fi
8403 if test "x${islinc}" = x && test "x${isllibs}" = x \
8404 && test -d ${srcdir}/isl; then
8405 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8406 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8407 ENABLE_ISL_CHECK=no
560d18d3
AK
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8409$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 8410 fi
7d32a440 8411
eae1a5d4
RG
8412 isllibs="${isllibs} -lisl"
8413
7d32a440 8414
7d32a440 8415
9847828b
RB
8416 if test "${ENABLE_ISL_CHECK}" = yes ; then
8417 _isl_saved_CFLAGS=$CFLAGS
8418 _isl_saved_LDFLAGS=$LDFLAGS
8419 _isl_saved_LIBS=$LIBS
8420
8421 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
8422 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8423 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 8424
f877b3ad
RB
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8426$as_echo_n "checking for isl 0.15 or later... " >&6; }
e0c0c325 8427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 8428/* end confdefs.h. */
f877b3ad 8429#include <isl/schedule.h>
622dbadf
BC
8430int
8431main ()
8432{
f877b3ad 8433isl_options_set_schedule_serialize_sccs (NULL, 0);
622dbadf
BC
8434 ;
8435 return 0;
8436}
8437_ACEOF
8438if ac_fn_c_try_link "$LINENO"; then :
9847828b 8439 gcc_cv_isl=yes
622dbadf
BC
8440else
8441 gcc_cv_isl=no
8442fi
8443rm -f core conftest.err conftest.$ac_objext \
8444 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8446$as_echo "$gcc_cv_isl" >&6; }
8447
560d18d3 8448 if test "${gcc_cv_isl}" = no ; then
f877b3ad
RB
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8450$as_echo "required isl version is 0.15 or later" >&6; }
1e050c90
AK
8451 fi
8452
9847828b
RB
8453 CFLAGS=$_isl_saved_CFLAGS
8454 LDFLAGS=$_isl_saved_LDFLAGS
8455 LIBS=$_isl_saved_LIBS
8456 fi
8457
8458
f8bf9252 8459
f8bf9252 8460
33ad93b9
RG
8461
8462
33ad93b9
RG
8463 if test "x${with_isl}" = xno; then
8464 graphite_requested=no
8465 elif test "x${with_isl}" != x \
8466 || test "x${with_isl_include}" != x \
8467 || test "x${with_isl_lib}" != x ; then
8468 graphite_requested=yes
8469 else
8470 graphite_requested=no
7d32a440 8471 fi
d789184e 8472
d789184e
SP
8473
8474
33ad93b9
RG
8475 if test "${gcc_cv_isl}" = no ; then
8476 isllibs=
8477 islinc=
8478 fi
8479
8480 if test "${graphite_requested}" = yes \
8481 && test "x${isllibs}" = x \
8482 && test "x${islinc}" = x ; then
f8bf9252 8483
22e05272 8484 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 8485 fi
f8bf9252 8486
d32ef397 8487
d32ef397
AS
8488fi
8489
e357a5e0 8490# If the isl check failed, disable builds of in-tree variant of isl
625afa23 8491if test "x$with_isl" = xno ||
625afa23 8492 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 8493 noconfigdirs="$noconfigdirs isl"
625afa23 8494 islinc=
32d024bf
RG
8495fi
8496
625afa23
RG
8497
8498
8499
d7f09764
DN
8500# Check for LTO support.
8501# Check whether --enable-lto was given.
8502if test "${enable_lto+set}" = set; then :
8503 enableval=$enable_lto; enable_lto=$enableval
8504else
8505 enable_lto=yes; default_enable_lto=yes
8506fi
8507
8508
7413962d 8509
9a02962b
DK
8510
8511
8512target_elf=no
8513case $target in
8514 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 8515 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 8516 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 8517 nvptx-*-none)
9a02962b
DK
8518 target_elf=no
8519 ;;
8520 *)
8521 target_elf=yes
8522 ;;
8523esac
8524
8525if test $target_elf = yes; then :
48215350
DK
8526 # ELF platforms build the lto-plugin always.
8527 build_lto_plugin=yes
9a02962b 8528
9a02962b
DK
8529else
8530 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 8531 case $target in
deeba76a 8532 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 8533 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
8534 *) enable_lto=no ;;
8535 esac
9a02962b 8536 else
db50fe7d
IS
8537 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8538 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
8539 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8540 # warn during gcc/ subconfigure; unless you're bootstrapping with
8541 # -flto it won't be needed until after installation anyway.
8542 case $target in
9e530bcd 8543 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b 8544 *) if test x"$enable_lto" = x"yes"; then
22e05272 8545 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9a02962b
DK
8546 fi
8547 ;;
8548 esac
8549 fi
1cd0b716 8550 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 8551 # Build it unless LTO was explicitly disabled.
1cd0b716 8552 case $target in
48215350 8553 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
8554 *) ;;
8555 esac
48215350 8556
9a02962b
DK
8557fi
8558
d7f09764 8559
45b3824d
TS
8560# Check whether --enable-linker-plugin-configure-flags was given.
8561if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8562 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8563else
8564 extra_linker_plugin_configure_flags=
8565fi
8566
8567
8568# Check whether --enable-linker-plugin-flags was given.
8569if test "${enable_linker_plugin_flags+set}" = set; then :
8570 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8571else
8572 extra_linker_plugin_flags=
8573fi
8574
8575
8576
cdfee50a
NS
8577# Enable --enable-host-shared.
8578# Checked early to determine whether jit is an 'all' language
8579# Check whether --enable-host-shared was given.
8580if test "${enable_host_shared+set}" = set; then :
8581 enableval=$enable_host_shared; host_shared=$enableval
1edfc8f2 8582 case $host in
a1d2b162
IS
8583 x86_64-*-darwin* | aarch64-*-darwin*)
8584 if test x$host_shared != xyes ; then
8585 # PIC is the default, and actually cannot be switched off.
8586 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8587 host_shared=yes
8588 fi ;;
8589 *) ;;
8590 esac
cdfee50a 8591else
1edfc8f2 8592 case $host in
a1d2b162
IS
8593 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8594 *) host_shared=no ;;
8595 esac
cdfee50a
NS
8596fi
8597
8598
f8bf9252 8599
05048fc2
IS
8600
8601# If we are building PIC/PIE host executables, and we are building dependent
8602# libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8603# code.
8604host_libs_picflag=
8605if test "$host_shared" = "yes";then
8606host_libs_picflag='--with-pic'
8607fi
8608
8609
0823efed 8610# By default, C and C++ are the only stage 1 languages.
e1888513 8611stage1_languages=,c,
2805b53a 8612
00020c16 8613# Target libraries that we bootstrap.
ad1e5170 8614bootstrap_target_libs=,target-libgcc,
00020c16 8615
55ffb5ed
NN
8616# Figure out what language subdirectories are present.
8617# Look if the user specified --enable-languages="..."; if not, use
8618# the environment variable $LANGUAGES if defined. $LANGUAGES might
8619# go away some day.
8620# NB: embedded tabs in this IF block -- do not untabify
8621if test -d ${srcdir}/gcc; then
8622 if test x"${enable_languages+set}" != xset; then
8623 if test x"${LANGUAGES+set}" = xset; then
8624 enable_languages="${LANGUAGES}"
6b1786aa 8625 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed 8626 else
cdfee50a 8627 enable_languages=default
55ffb5ed
NN
8628 fi
8629 else
8630 if test x"${enable_languages}" = x ||
8631 test x"${enable_languages}" = xyes;
8632 then
6b1786aa 8633 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
8634 exit 1
8635 fi
8636 fi
8637 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8638
7f26dfa3
FXC
8639 # 'f95' is the old name for the 'fortran' language. We issue a warning
8640 # and make the substitution.
8641 case ,${enable_languages}, in
8642 *,f95,*)
6b1786aa 8643 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
8644 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8645 ;;
8646 esac
8647
0823efed
DN
8648 # If bootstrapping, C++ must be enabled.
8649 case ",$enable_languages,:$enable_bootstrap" in
8650 *,c++,*:*) ;;
8651 *:yes)
ff3ac0f4
ILT
8652 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8653 enable_languages="${enable_languages},c++"
8654 else
22e05272 8655 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
8656 fi
8657 ;;
8658 esac
8659
55ffb5ed
NN
8660 # First scan to see if an enabled language requires some other language.
8661 # We assume that a given config-lang.in will list all the language
8662 # front ends it requires, even if some are required indirectly.
8663 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8664 case ${lang_frag} in
8665 ..) ;;
8666 # The odd quoting in the next line works around
8667 # an apparent bug in bash 1.12 on linux.
8668 ${srcdir}/gcc/[*]/config-lang.in) ;;
8669 *)
69ecd18f
ILT
8670 # From the config-lang.in, get $language, $lang_requires, and
8671 # $lang_requires_boot_languages.
55ffb5ed
NN
8672 language=
8673 lang_requires=
69ecd18f 8674 lang_requires_boot_languages=
d4360477
NS
8675 # set srcdir during sourcing lang_frag to the gcc dir.
8676 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8677 # polutes this shell
8678 saved_srcdir=${srcdir}
8679 srcdir=${srcdir}/gcc . ${lang_frag}
8680 srcdir=${saved_srcdir}
69ecd18f 8681 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
8682 case ,${enable_languages}, in
8683 *,$other,*) ;;
cdfee50a 8684 *,default,*) ;;
55ffb5ed
NN
8685 *,all,*) ;;
8686 *,$language,*)
8687 echo " \`$other' language required by \`$language'; enabling" 1>&2
8688 enable_languages="${enable_languages},${other}"
8689 ;;
8690 esac
8691 done
69ecd18f
ILT
8692 for other in ${lang_requires_boot_languages} ; do
8693 if test "$other" != "c"; then
8694 case ,${enable_stage1_languages}, in
8695 *,$other,*) ;;
cdfee50a 8696 *,default,*) ;;
69ecd18f
ILT
8697 *,all,*) ;;
8698 *)
8699 case ,${enable_languages}, in
8700 *,$language,*)
8701 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8702 enable_stage1_languages="$enable_stage1_languages,${other}"
8703 ;;
8704 esac
8705 ;;
8706 esac
8707 fi
8708 done
55ffb5ed
NN
8709 ;;
8710 esac
8711 done
8712
e1888513 8713 new_enable_languages=,c,
d7f09764
DN
8714
8715 # If LTO is enabled, add the LTO front end.
d7f09764 8716 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
8717 case ,${enable_languages}, in
8718 *,lto,*) ;;
8719 *) enable_languages="${enable_languages},lto" ;;
8720 esac
1cd0b716 8721 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 8722 configdirs="$configdirs lto-plugin"
d7f09764
DN
8723 fi
8724 fi
8725
426c1eb0
TS
8726 # If we're building an offloading compiler, add the LTO front end.
8727 if test x"$enable_as_accelerator_for" != x ; then
8728 case ,${enable_languages}, in
8729 *,lto,*) ;;
8730 *) enable_languages="${enable_languages},lto" ;;
8731 esac
8732 fi
8733
cdfee50a 8734 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
e1888513 8735 potential_languages=,c,
55ffb5ed 8736
4da3b0f8
ILT
8737 enabled_target_libs=
8738 disabled_target_libs=
8739
55ffb5ed
NN
8740 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8741 case ${lang_frag} in
8742 ..) ;;
8743 # The odd quoting in the next line works around
8744 # an apparent bug in bash 1.12 on linux.
8745 ${srcdir}/gcc/[*]/config-lang.in) ;;
8746 *)
1c710c3c 8747 # From the config-lang.in, get $language, $target_libs,
2805b53a 8748 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
8749 language=
8750 target_libs=
8751 lang_dirs=
1546bb64 8752 subdir_requires=
e1888513
PB
8753 boot_language=no
8754 build_by_default=yes
d4360477
NS
8755 # set srcdir during sourcing. See above about save & restore
8756 saved_srcdir=${srcdir}
8757 srcdir=${srcdir}/gcc . ${lang_frag}
8758 srcdir=${saved_srcdir}
e1888513
PB
8759 if test x${language} = x; then
8760 echo "${lang_frag} doesn't set \$language." 1>&2
8761 exit 1
8762 fi
8763
78767fd9 8764 if test "$language" = "c++"; then
0823efed 8765 boot_language=yes
00020c16
ILT
8766 fi
8767
178f875a 8768 add_this_lang=no
cdfee50a
NS
8769 # C is always enabled, so no need to add it again
8770 if test "$language" != "c"; then
8771 case ,${enable_languages}, in
8772 *,${language},*)
8773 # Language was explicitly selected; include it
d4a10d0a 8774 add_this_lang=yes
cdfee50a
NS
8775 ;;
8776 *,all,*)
8777 # All languages are enabled
8778 add_this_lang=all
8779 ;;
8780 *,default,*)
8781 # 'default' was selected, select it if it is a default language
178f875a 8782 add_this_lang=${build_by_default}
cdfee50a
NS
8783 ;;
8784 esac
8785 fi
6de9cd9a 8786
1546bb64 8787 # Disable languages that need other directories if these aren't available.
95695ad3 8788 for i in $subdir_requires; do
b6348cb3 8789 test -f "$srcdir/gcc/$i/config-lang.in" && continue
cdfee50a
NS
8790 case ${add_this_lang} in
8791 yes)
1546bb64 8792 # Specifically requested language; tell them.
22e05272 8793 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64 8794 ;;
cdfee50a
NS
8795 all)
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8797$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8798 add_this_lang=unsupported
8799 ;;
1546bb64
PB
8800 *)
8801 # Silently disable.
e1888513 8802 add_this_lang=unsupported
1546bb64
PB
8803 ;;
8804 esac
8805 done
8806
e1888513 8807 # Disable Ada if no preexisting GNAT is available.
cdfee50a
NS
8808 case ${add_this_lang}:${language}:${have_gnat} in
8809 yes:ada:no)
e1888513 8810 # Specifically requested language; tell them.
22e05272 8811 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
e1888513 8812 ;;
cdfee50a
NS
8813 all:ada:no)
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8815$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8816 add_this_lang=unsupported
8817 ;;
e1888513
PB
8818 *:ada:no)
8819 # Silently disable.
8820 add_this_lang=unsupported
8821 ;;
8822 esac
8823
5fee5ec3
IB
8824 # Disable D if no preexisting GDC is available.
8825 case ${add_this_lang}:${language}:${have_gdc} in
8826 yes:d:no)
8827 # Specifically requested language; tell them.
8828 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8829 ;;
8830 all:d:no)
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8832$as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8833 add_this_lang=unsupported
8834 ;;
8835 *:d:no)
8836 # Silently disable.
8837 add_this_lang=unsupported
8838 ;;
8839 esac
8840
cdfee50a 8841 # Disable jit if -enable-host-shared not specified
ffac9597
JM
8842 # but not if building for Mingw. All code in Windows
8843 # is position independent code (PIC).
c83027f3
NB
8844 case $target in
8845 *mingw*) ;;
8846 *)
8847 case ${add_this_lang}:${language}:${host_shared} in
8848 yes:jit:no)
8849 # PR jit/64780: explicitly specify --enable-host-shared
22e05272 8850 as_fn_error $? "
cdfee50a
NS
8851Enabling language \"jit\" requires --enable-host-shared.
8852
8853--enable-host-shared typically slows the rest of the compiler down by
8854a few %, so you must explicitly enable it.
8855
8856If you want to build both the jit and the regular compiler, it is often
8857best to do this via two separate configure/builds, in separate
8858directories, to avoid imposing the performance cost of
8859--enable-host-shared on the regular compiler." "$LINENO" 5
c83027f3
NB
8860 ;;
8861 all:jit:no)
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
cdfee50a 8863$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
c83027f3
NB
8864 add_this_lang=unsupported
8865 ;;
8866 *:jit:no)
8867 # Silently disable.
8868 add_this_lang=unsupported
8869 ;;
8870 esac
8871 ;;
8872 esac
cdfee50a
NS
8873
8874 # Disable a language that is unsupported by the target.
8875 case "${add_this_lang}: $unsupported_languages " in
8876 no:*) ;;
8877 unsupported:*) ;;
8878 *:*" $language "*)
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8880$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
e1888513 8881 add_this_lang=unsupported
4fab7234
HPN
8882 ;;
8883 esac
8884
6de9cd9a 8885 case $add_this_lang in
e1888513 8886 unsupported)
55ffb5ed 8887 # Remove language-dependent dirs.
4da3b0f8
ILT
8888 disabled_target_libs="$disabled_target_libs $target_libs"
8889 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 8890 ;;
e1888513
PB
8891 no)
8892 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
8893 disabled_target_libs="$disabled_target_libs $target_libs"
8894 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
8895 potential_languages="${potential_languages}${language},"
8896 ;;
cdfee50a 8897 all|yes)
e1888513
PB
8898 new_enable_languages="${new_enable_languages}${language},"
8899 potential_languages="${potential_languages}${language},"
2805b53a 8900 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 8901 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
8902 case "${boot_language}:,$enable_stage1_languages," in
8903 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 8904 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
8905 case ",$stage1_languages," in
8906 *,$language,* | ,yes, | ,all,) ;;
8907 *) stage1_languages="${stage1_languages}${language}," ;;
8908 esac
00020c16 8909 # We need to bootstrap any supporting libraries.
5fee5ec3 8910 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
2805b53a
NN
8911 ;;
8912 esac
8913 ;;
55ffb5ed
NN
8914 esac
8915 ;;
8916 esac
8917 done
8918
4da3b0f8
ILT
8919 # Add target libraries which are only needed for disabled languages
8920 # to noconfigdirs.
8921 if test -n "$disabled_target_libs"; then
8922 for dir in $disabled_target_libs; do
8923 case " $enabled_target_libs " in
8924 *" ${dir} "*) ;;
8925 *) noconfigdirs="$noconfigdirs $dir" ;;
8926 esac
8927 done
8928 fi
8929
5213506e
RW
8930 # Check whether --enable-stage1-languages was given.
8931if test "${enable_stage1_languages+set}" = set; then :
8932 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
8933 ,no,|,,)
8934 # Set it to something that will have no effect in the loop below
8935 enable_stage1_languages=c ;;
8936 ,yes,)
8937 enable_stage1_languages=`echo $new_enable_languages | \
8938 sed -e "s/^,//" -e "s/,$//" ` ;;
8939 *,all,*)
8940 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8941 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8942 esac
8943
8944 # Add "good" languages from enable_stage1_languages to stage1_languages,
8945 # while "bad" languages go in missing_languages. Leave no duplicates.
8946 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8947 case $potential_languages in
8948 *,$i,*)
8949 case $stage1_languages in
8950 *,$i,*) ;;
8951 *) stage1_languages="$stage1_languages$i," ;;
8952 esac ;;
8953 *)
8954 case $missing_languages in
8955 *,$i,*) ;;
8956 *) missing_languages="$missing_languages$i," ;;
8957 esac ;;
8958 esac
8959 done
5213506e
RW
8960fi
8961
e1888513
PB
8962
8963 # Remove leading/trailing commas that were added for simplicity
8964 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 8965 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
8966 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8967 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8968
55ffb5ed 8969 if test "x$missing_languages" != x; then
22e05272 8970 as_fn_error $? "
0cf085e4 8971The following requested languages could not be built: ${missing_languages}
5213506e 8972Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 8973 fi
55ffb5ed
NN
8974 if test "x$new_enable_languages" != "x$enable_languages"; then
8975 echo The following languages will be built: ${new_enable_languages}
e1888513 8976 enable_languages="$new_enable_languages"
55ffb5ed 8977 fi
e1888513 8978
1c710c3c 8979
b2eaac4a 8980 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
8981fi
8982
27079765
AH
8983# Handle --disable-<component> generically.
8984for dir in $configdirs $build_configdirs $target_configdirs ; do
8985 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
8986 varname=`echo $dirname | sed -e s/+/_/g`
8987 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
8988 noconfigdirs="$noconfigdirs $dir"
8989 fi
8990done
8991
43c40f3e
RO
8992# Check for Boehm's garbage collector
8993# Check whether --enable-objc-gc was given.
8994if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
8995 enableval=$enable_objc_gc;
8996fi
8997
8998
8999# Check whether --with-target-bdw-gc was given.
9000if test "${with_target_bdw_gc+set}" = set; then :
9001 withval=$with_target_bdw_gc;
9002fi
9003
9004
9005# Check whether --with-target-bdw-gc-include was given.
9006if test "${with_target_bdw_gc_include+set}" = set; then :
9007 withval=$with_target_bdw_gc_include;
9008fi
9009
9010
9011# Check whether --with-target-bdw-gc-lib was given.
9012if test "${with_target_bdw_gc_lib+set}" = set; then :
9013 withval=$with_target_bdw_gc_lib;
9014fi
9015
9016
9017case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9019$as_echo_n "checking for bdw garbage collector... " >&6; }
9020 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9022$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
9023 else
9024 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
22e05272 9025 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
114bf3f1 9026 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
22e05272 9027 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
114bf3f1
MK
9028 else
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9030$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9031 fi
9032 fi
43c40f3e
RO
9033esac
9034
e4cba494 9035# Disable libitm, libsanitizer, libvtv if we're not building C++
99776ebd 9036case ,${enable_languages}, in
1007a55c 9037 *,c++,*)
5e9d6aa4 9038 # Disable libitm, libsanitizer if we're not building libstdc++
1007a55c
JW
9039 case "${noconfigdirs}" in
9040 *target-libstdc++-v3*)
5e9d6aa4 9041 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1007a55c
JW
9042 ;;
9043 *) ;;
9044 esac
9045 ;;
99776ebd 9046 *)
e4cba494 9047 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
9048 ;;
9049esac
9050
dc614a83
AB
9051# If gcc/ is not in the source tree then we'll not be building a
9052# target compiler, assume in that case we don't want to build any
9053# target libraries or tools.
9054#
9055# This was added primarily for the benefit for binutils-gdb who reuse
9056# this configure script, but don't always have target tools available.
9057if test ! -d ${srcdir}/gcc; then
9058 skipdirs="${skipdirs} ${target_configdirs}"
9059fi
9060
ee6a22df
L
9061# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9062# $build_configdirs and $target_configdirs.
55ffb5ed
NN
9063# If we have the source for $noconfigdirs entries, add them to $notsupp.
9064
9065notsupp=""
9066for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 9067 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
9068 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9069 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9070 if test -r $srcdir/$dirname/configure ; then
9071 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9072 true
9073 else
9074 notsupp="$notsupp $dir"
9075 fi
9076 fi
9077 fi
ee6a22df
L
9078 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9079 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9080 if test -r $srcdir/$dirname/configure ; then
9081 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9082 true
9083 else
9084 notsupp="$notsupp $dir"
9085 fi
9086 fi
9087 fi
55ffb5ed
NN
9088 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9089 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9090 if test -r $srcdir/$dirname/configure ; then
9091 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9092 true
9093 else
9094 notsupp="$notsupp $dir"
9095 fi
9096 fi
9097 fi
9098done
9099
55ffb5ed
NN
9100# Quietly strip out all directories which aren't configurable in this tree.
9101# This relies on all configurable subdirectories being autoconfiscated, which
9102# is now the case.
23f6b2f9
PB
9103build_configdirs_all="$build_configdirs"
9104build_configdirs=
9105for i in ${build_configdirs_all} ; do
1c710c3c 9106 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
9107 if test -f ${srcdir}/$j/configure ; then
9108 build_configdirs="${build_configdirs} $i"
9109 fi
9110done
9111
55ffb5ed
NN
9112configdirs_all="$configdirs"
9113configdirs=
9114for i in ${configdirs_all} ; do
9115 if test -f ${srcdir}/$i/configure ; then
9116 configdirs="${configdirs} $i"
9117 fi
9118done
23f6b2f9 9119
55ffb5ed
NN
9120target_configdirs_all="$target_configdirs"
9121target_configdirs=
9122for i in ${target_configdirs_all} ; do
1c710c3c 9123 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
9124 if test -f ${srcdir}/$j/configure ; then
9125 target_configdirs="${target_configdirs} $i"
9126 fi
9127done
9128
45b3824d
TS
9129# libiberty-linker-plugin is special: it doesn't have its own source directory,
9130# so we have to add it after the preceding checks.
9131if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9132then
9133 case " $configdirs " in
9134 *" libiberty "*)
9135 # If we can build libiberty, we can also build libiberty-linker-plugin.
9136 configdirs="$configdirs libiberty-linker-plugin"
9137 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9138 --with-libiberty=../libiberty-linker-plugin";;
9139 *)
22e05272 9140 as_fn_error $? "libiberty missing" "$LINENO" 5;;
45b3824d
TS
9141 esac
9142fi
9143
fca38047
TS
9144# Sometimes we have special requirements for the host libiberty.
9145extra_host_libiberty_configure_flags=
9146case " $configdirs " in
15368960 9147 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
fca38047
TS
9148 # When these are to be built as shared libraries, the same applies to
9149 # libiberty.
9150 extra_host_libiberty_configure_flags=--enable-shared
9151 ;;
04bb15e4
TV
9152esac
9153
9154
9155# Sometimes we have special requirements for the host zlib.
9156extra_host_zlib_configure_flags=
9157case " $configdirs " in
1c01ebf6
L
9158 *" bfd "*)
9159 # When bfd is to be built as a shared library, the same applies to
9160 # zlib.
9161 if test "$enable_shared" = "yes"; then
9162 extra_host_zlib_configure_flags=--enable-host-shared
9163 fi
9164 ;;
fca38047
TS
9165esac
9166
9167
55ffb5ed
NN
9168# Produce a warning message for the subdirs we can't configure.
9169# This isn't especially interesting in the Cygnus tree, but in the individual
9170# FSF releases, it's important to let people know when their machine isn't
9171# supported by the one or two programs in a package.
9172
9173if test -n "${notsupp}" && test -z "${norecursion}" ; then
9174 # If $appdirs is non-empty, at least one of those directories must still
9175 # be configured, or we error out. (E.g., if the gas release supports a
9176 # specified target in some subdirs but not the gas subdir, we shouldn't
9177 # pretend that all is well.)
9178 if test -n "$appdirs" ; then
9179 for dir in $appdirs ; do
9180 if test -r $dir/Makefile.in ; then
9181 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9182 appdirs=""
9183 break
9184 fi
23f6b2f9 9185 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
9186 appdirs=""
9187 break
9188 fi
9189 fi
9190 done
9191 if test -n "$appdirs" ; then
9192 echo "*** This configuration is not supported by this package." 1>&2
9193 exit 1
9194 fi
9195 fi
9196 # Okay, some application will build, or we don't care to check. Still
9197 # notify of subdirs not getting built.
9198 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9199 echo " ${notsupp}" 1>&2
9200 echo " (Any other directories should still work fine.)" 1>&2
9201fi
9202
9203case "$host" in
9204 *msdosdjgpp*)
9205 enable_gdbtk=no ;;
9206esac
9207
c3a86da9
DJ
9208# To find our prefix, in gcc_cv_tool_prefix.
9209
9210# The user is always right.
9211if test "${PATH_SEPARATOR+set}" != set; then
9212 echo "#! /bin/sh" >conf$$.sh
9213 echo "exit 0" >>conf$$.sh
9214 chmod +x conf$$.sh
9215 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9216 PATH_SEPARATOR=';'
9217 else
9218 PATH_SEPARATOR=:
9219 fi
9220 rm -f conf$$.sh
9221fi
9222
9223
3c36aa6b
JJ
9224 get_gcc_base_ver="cat"
9225
9226# Check whether --with-gcc-major-version-only was given.
9227if test "${with_gcc_major_version_only+set}" = set; then :
9228 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
31db0fe0 9229 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
9230 fi
9231
9232fi
9233
9234
9235
9236
9237
c3a86da9
DJ
9238
9239if test "x$exec_prefix" = xNONE; then
9240 if test "x$prefix" = xNONE; then
9241 gcc_cv_tool_prefix=$ac_default_prefix
9242 else
9243 gcc_cv_tool_prefix=$prefix
9244 fi
9245else
9246 gcc_cv_tool_prefix=$exec_prefix
9247fi
9248
9249# If there is no compiler in the tree, use the PATH only. In any
9250# case, if there is no compiler in the tree nobody should use
9251# AS_FOR_TARGET and LD_FOR_TARGET.
9252if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
9253 if test x$with_gcc_major_version_only = xyes ; then
9254 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9255 else
9256 gcc_version=`cat $srcdir/gcc/BASE-VER`
9257 fi
c3a86da9
DJ
9258 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9259 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9260 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9261 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9262 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9263 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9264else
9265 gcc_cv_tool_dirs=
9266fi
9267
9268if test x$build = x$target && test -n "$md_exec_prefix"; then
9269 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9270fi
9271
9272
9273
55ffb5ed
NN
9274copy_dirs=
9275
1c710c3c 9276
5213506e
RW
9277# Check whether --with-build-sysroot was given.
9278if test "${with_build_sysroot+set}" = set; then :
9279 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
9280 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9281 fi
9282else
9283 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 9284fi
526635cb
MM
9285
9286
c8aea42c 9287
5213506e
RW
9288
9289# Check whether --with-debug-prefix-map was given.
9290if test "${with_debug_prefix_map+set}" = set; then :
9291 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
9292 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9293 for debug_map in $withval; do
9294 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9295 done
9296 fi
9297else
9298 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
9299fi
9300
c8aea42c
PB
9301
9302
1c8bd6a3
PB
9303# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9304# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9305# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9306# We want to ensure that TARGET libraries (which we know are built with
9307# gcc) are built with "-O2 -g", so include those options when setting
9308# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9309if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9310 if test "x${is_cross_compiler}" = xyes; then
9311 CFLAGS_FOR_TARGET="-g -O2"
9312 else
9313 CFLAGS_FOR_TARGET=$CFLAGS
9314 case " $CFLAGS " in
9315 *" -O2 "*) ;;
9316 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9317 esac
9318 case " $CFLAGS " in
9319 *" -g "* | *" -g3 "*) ;;
9320 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9321 esac
9322 fi
1c8bd6a3
PB
9323fi
9324
9325
9326if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9327 if test "x${is_cross_compiler}" = xyes; then
9328 CXXFLAGS_FOR_TARGET="-g -O2"
9329 else
9330 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9331 case " $CXXFLAGS " in
9332 *" -O2 "*) ;;
9333 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9334 esac
9335 case " $CXXFLAGS " in
9336 *" -g "* | *" -g3 "*) ;;
9337 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9338 esac
9339 fi
1c8bd6a3
PB
9340fi
9341
9342
6f57bdf6
DK
9343
9344
55ffb5ed
NN
9345# Handle --with-headers=XXX. If the value is not "yes", the contents of
9346# the named directory are copied to $(tooldir)/sys-include.
9347if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9348 if test x${is_cross_compiler} = xno ; then
9349 echo 1>&2 '***' --with-headers is only supported when cross compiling
9350 exit 1
9351 fi
9352 if test x"${with_headers}" != xyes ; then
c3a86da9 9353 x=${gcc_cv_tool_prefix}
1c710c3c 9354 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
9355 fi
9356fi
9357
9358# Handle --with-libs=XXX. If the value is not "yes", the contents of
9359# the name directories are copied to $(tooldir)/lib. Multiple directories
9360# are permitted.
9361if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9362 if test x${is_cross_compiler} = xno ; then
9363 echo 1>&2 '***' --with-libs is only supported when cross compiling
9364 exit 1
9365 fi
9366 if test x"${with_libs}" != xyes ; then
9367 # Copy the libraries in reverse order, so that files in the first named
9368 # library override files in subsequent libraries.
c3a86da9 9369 x=${gcc_cv_tool_prefix}
55ffb5ed 9370 for l in ${with_libs}; do
1c710c3c 9371 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
9372 done
9373 fi
9374fi
9375
d7f09764 9376# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
9377#
9378# This is done by determining whether or not the appropriate directory
9379# is available, and by checking whether or not specific configurations
9380# have requested that this magic not happen.
1c710c3c
DJ
9381#
9382# The command line options always override the explicit settings in
6b1786aa 9383# configure.ac, and the settings in configure.ac override this magic.
e8b05380 9384#
1c710c3c 9385# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 9386# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
9387# --without-gnu-ld options for the configure script. Similarly, if
9388# the default is to use the included zlib and you don't want to do that,
9389# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
9390
9391if test x${use_gnu_as} = x &&
9392 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9393 with_gnu_as=yes
9394 extra_host_args="$extra_host_args --with-gnu-as"
9395fi
9396
9397if test x${use_gnu_ld} = x &&
5afab7ad 9398 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
9399 with_gnu_ld=yes
9400 extra_host_args="$extra_host_args --with-gnu-ld"
9401fi
9402
d7f09764
DN
9403if test x${use_included_zlib} = x &&
9404 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9405 :
9406else
9407 with_system_zlib=yes
9408 extra_host_args="$extra_host_args --with-system-zlib"
9409fi
9410
e8b05380
PB
9411# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9412# can detect this case.
9413
9414if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9415 with_newlib=yes
9416 extra_host_args="$extra_host_args --with-newlib"
9417fi
9418
55ffb5ed
NN
9419# Handle ${copy_dirs}
9420set fnord ${copy_dirs}
9421shift
9422while test $# != 0 ; do
9423 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9424 :
9425 else
9426 echo Copying $1 to $2
9427
9428 # Use the install script to create the directory and all required
9429 # parent directories.
9430 if test -d $2 ; then
9431 :
9432 else
9433 echo >config.temp
9434 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9435 fi
9436
9437 # Copy the directory, assuming we have tar.
9438 # FIXME: Should we use B in the second tar? Not all systems support it.
9439 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9440
9441 # It is the responsibility of the user to correctly adjust all
9442 # symlinks. If somebody can figure out how to handle them correctly
9443 # here, feel free to add the code.
9444
9445 echo $1 > $2/COPIED
9446 fi
9447 shift; shift
9448done
9449
e8b05380
PB
9450# Determine a target-dependent exec_prefix that the installed
9451# gcc will search in. Keep this list sorted by triplet, with
9452# the *-*-osname triplets last.
9453md_exec_prefix=
9454case "${target}" in
30b74385 9455 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
9456 md_exec_prefix=/dev/env/DJDIR/bin
9457 ;;
e8b05380 9458 *-*-hpux* | \
e8b05380 9459 *-*-nto-qnx* | \
6de66370 9460 *-*-solaris2*)
e8b05380
PB
9461 md_exec_prefix=/usr/ccs/bin
9462 ;;
9463esac
9464
671aa708
NN
9465extra_arflags_for_target=
9466extra_nmflags_for_target=
9467extra_ranlibflags_for_target=
9468target_makefile_frag=/dev/null
9469case "${target}" in
58e24147
AM
9470 spu-*-*)
9471 target_makefile_frag="config/mt-spu"
9472 ;;
d896cc4d 9473 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
9474 target_makefile_frag="config/mt-sde"
9475 ;;
1ec3b87b
RS
9476 mipsisa*-*-elfoabi*)
9477 target_makefile_frag="config/mt-mips-elfoabi"
9478 ;;
08d0963a
RS
9479 mips*-*-*linux* | mips*-*-gnu*)
9480 target_makefile_frag="config/mt-mips-gnu"
9481 ;;
707f1839
SL
9482 nios2-*-elf*)
9483 target_makefile_frag="config/mt-nios2-elf"
9484 ;;
76052545
EB
9485 *-*-linux-android*)
9486 target_makefile_frag="config/mt-android"
9487 ;;
416ac4d4 9488 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 9489 target_makefile_frag="config/mt-gnu"
671aa708
NN
9490 ;;
9491 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 9492 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
9493 # commands to handle both 32-bit and 64-bit objects. These flags are
9494 # harmless if we're using GNU nm or ar.
9495 extra_arflags_for_target=" -X32_64"
9496 extra_nmflags_for_target=" -B -X32_64"
9497 ;;
671aa708
NN
9498esac
9499
9500alphaieee_frag=/dev/null
9501case $target in
9502 alpha*-*-*)
9503 # This just makes sure to use the -mieee option to build target libs.
9504 # This should probably be set individually by each library.
9505 alphaieee_frag="config/mt-alphaieee"
9506 ;;
9507esac
9508
9509# If --enable-target-optspace always use -Os instead of -O2 to build
9510# the target libraries, similarly if it is not specified, use -Os
9511# on selected platforms.
9512ospace_frag=/dev/null
9513case "${enable_target_optspace}:${target}" in
9514 yes:*)
9515 ospace_frag="config/mt-ospace"
9516 ;;
9517 :d30v-*)
9518 ospace_frag="config/mt-d30v"
9519 ;;
d9063947 9520 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
9521 ospace_frag="config/mt-ospace"
9522 ;;
9523 no:* | :*)
9524 ;;
9525 *)
9526 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9527 ;;
9528esac
9529
671aa708
NN
9530# Some systems (e.g., one of the i386-aix systems the gas testers are
9531# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 9532tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
9533build_tooldir=${tooldir}
9534
671aa708
NN
9535# Create a .gdbinit file which runs the one in srcdir
9536# and tells GDB to look there for source files.
9537
9538if test -r ${srcdir}/.gdbinit ; then
9539 case ${srcdir} in
9540 .) ;;
9541 *) cat > ./.gdbinit <<EOF
9542# ${NO_EDIT}
9543dir ${srcdir}
9544dir .
9545source ${srcdir}/.gdbinit
9546EOF
9547 ;;
9548 esac
9549fi
9550
671aa708
NN
9551# Make sure that the compiler is able to generate an executable. If it
9552# can't, we are probably in trouble. We don't care whether we can run the
9553# executable--we might be using a cross compiler--we only care whether it
9554# can be created. At this point the main configure script has set CC.
9555we_are_ok=no
9556echo "int main () { return 0; }" > conftest.c
9557${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9558if test $? = 0 ; then
9559 if test -s conftest || test -s conftest.exe ; then
9560 we_are_ok=yes
9561 fi
1c710c3c 9562fi
671aa708
NN
9563case $we_are_ok in
9564 no)
9565 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9566 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9567 rm -f conftest*
9568 exit 1
9569 ;;
9570esac
9571rm -f conftest*
9572
d89f0ad6 9573# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
9574case "${host}" in
9575 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 9576 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 9577 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
9578 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9579esac
9580
d89f0ad6
AL
9581# On systems where the dynamic library environment variable is PATH,
9582# gcc/ will put dynamic libraries into a subdirectory to avoid adding
9583# built executables to PATH.
9584if test "$RPATH_ENVVAR" = PATH; then
9585 GCC_SHLIB_SUBDIR=/shlib
9586else
9587 GCC_SHLIB_SUBDIR=
9588fi
9589
beeda1d9
JJ
9590# Adjust the toplevel makefile according to whether bootstrap was selected.
9591case $enable_bootstrap in
9592 yes)
9593 bootstrap_suffix=bootstrap
9594 BUILD_CONFIG=bootstrap-debug
9595 ;;
9596 no)
9597 bootstrap_suffix=no-bootstrap
9598 BUILD_CONFIG=
9599 ;;
9600esac
9601
9602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9603$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9604
9605
9606# Check whether --with-build-config was given.
9607if test "${with_build_config+set}" = set; then :
9608 withval=$with_build_config; case $with_build_config in
9609 yes) with_build_config= ;;
9610 no) with_build_config= BUILD_CONFIG= ;;
9611 esac
9612fi
9613
9614
9615if test "x${with_build_config}" != x; then
9616 BUILD_CONFIG=$with_build_config
9617else
9618 case $BUILD_CONFIG in
9619 bootstrap-debug)
9620 if echo "int f (void) { return 0; }" > conftest.c &&
9621 ${CC} -c conftest.c &&
9622 mv conftest.o conftest.o.g0 &&
9623 ${CC} -c -g conftest.c &&
9624 mv conftest.o conftest.o.g &&
9625 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9626 :
9627 else
9628 BUILD_CONFIG=
9629 fi
9630 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9631 ;;
9632 esac
9633fi
9634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9635$as_echo "$BUILD_CONFIG" >&6; }
9636
9637
9638# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9640$as_echo_n "checking for --enable-vtable-verify... " >&6; }
9641# Check whether --enable-vtable-verify was given.
9642if test "${enable_vtable_verify+set}" = set; then :
9643 enableval=$enable_vtable_verify; case "$enableval" in
9644 yes) enable_vtable_verify=yes ;;
9645 no) enable_vtable_verify=no ;;
9646 *) enable_vtable_verify=no;;
9647 esac
9648else
9649 enable_vtable_verify=no
9650fi
9651
9652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9653$as_echo "$enable_vtable_verify" >&6; }
9654
671aa708
NN
9655# Record target_configdirs and the configure arguments for target and
9656# build configuration in Makefile.
9657target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 9658build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 9659bootstrap_fixincludes=no
671aa708 9660
ad1e5170
JR
9661# If we are building libgomp, bootstrap it.
9662if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9663 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9664fi
9665
beeda1d9
JJ
9666# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9667# or bootstrap-ubsan, bootstrap it.
9668if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9669 case "$BUILD_CONFIG" in
170e618e 9670 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
beeda1d9 9671 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 9672 bootstrap_fixincludes=yes
beeda1d9
JJ
9673 ;;
9674 esac
ac8701fe
L
9675fi
9676
beeda1d9
JJ
9677# If we are building libvtv and --enable-vtable-verify, bootstrap it.
9678if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9679 test "$enable_vtable_verify" != no; then
2077db1b
CT
9680 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9681fi
9682
5fee5ec3
IB
9683# If we are building libatomic and the list of enabled languages includes the
9684# D frontend, bootstrap it.
9685if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9686 case ,${enable_languages}, in
9687 *,d,*)
9688 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9689 ;;
9690 esac
9691fi
9692
671aa708
NN
9693# Determine whether gdb needs tk/tcl or not.
9694# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9695# and in that case we want gdb to be built without tk. Ugh!
9696# In fact I believe gdb is the *only* package directly dependent on tk,
9697# so we should be able to put the 'maybe's in unconditionally and
9698# leave out the maybe dependencies when enable_gdbtk is false. I'm not
9699# 100% sure that that's safe though.
e914a571 9700
b4f96efe 9701gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
9702case "$enable_gdbtk" in
9703 no)
9704 GDB_TK="" ;;
e914a571
AC
9705 yes)
9706 GDB_TK="${gdb_tk}" ;;
671aa708 9707 *)
e914a571
AC
9708 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9709 # distro. Eventually someone will fix this and move Insight, nee
9710 # gdbtk to a separate directory.
9711 if test -d ${srcdir}/gdb/gdbtk ; then
9712 GDB_TK="${gdb_tk}"
9713 else
9714 GDB_TK=""
9715 fi
9716 ;;
671aa708 9717esac
ef9db8d5
DJ
9718CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9719INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 9720
f9d09df0
TT
9721# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9722# else does, only include them if one of these is built. The Makefile
9723# provides the ordering, so it's enough here to add to the list.
9724case " ${configdirs} " in
9725 *\ gdb\ *)
9726 configdirs="${configdirs} gnulib gdbsupport"
9727 ;;
9728 *\ gdbserver\ *)
9729 configdirs="${configdirs} gnulib gdbsupport"
9730 ;;
f14c9bd4
MF
9731 *\ sim\ *)
9732 configdirs="${configdirs} gnulib"
9733 ;;
f9d09df0 9734esac
98e5be21 9735
60975492 9736# Strip out unwanted targets.
8b87bb96
NN
9737
9738# While at that, we remove Makefiles if we were started for recursive
9739# configuration, so that the top-level Makefile reconfigures them,
9740# like we used to do when configure itself was recursive.
8b87bb96 9741
3e54529c
RW
9742# Loop over modules. We used to use the "$extrasub" feature from Autoconf
9743# but now we're fixing up the Makefile ourselves with the additional
9744# commands passed to AC_CONFIG_FILES. Use separate variables
9745# extrasub-{build,host,target} not because there is any reason to split
9746# the substitutions up that way, but only to remain below the limit of
9747# 99 commands in a script, for HP-UX sed.
da34ca3f
AO
9748
9749# Do not nest @if/@endif or @unless/@endunless pairs, because
9750# configure will not warn you at all.
8b87bb96 9751
79cd2b23
RW
9752case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9753 yes:yes:*\ gold\ *:*,c++,*) ;;
9754 yes:yes:*\ gold\ *:*)
22e05272 9755 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
79cd2b23
RW
9756 ;;
9757esac
9758
3e54529c 9759extrasub_build=
23f6b2f9 9760for module in ${build_configdirs} ; do
5607edfd
PB
9761 if test -z "${no_recursion}" \
9762 && test -f ${build_subdir}/${module}/Makefile; then
9763 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9764 rm -f ${build_subdir}/${module}/Makefile
9765 fi
3e54529c 9766 extrasub_build="$extrasub_build
5607edfd
PB
9767/^@if build-$module\$/d
9768/^@endif build-$module\$/d
da34ca3f 9769/^@unless build-$module\$/,/^@endunless build-$module\$/d
5607edfd 9770/^@if build-$module-$bootstrap_suffix\$/d
da34ca3f
AO
9771/^@endif build-$module-$bootstrap_suffix\$/d
9772/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
5607edfd 9773done
3e54529c 9774extrasub_host=
5607edfd 9775for module in ${configdirs} ; do
a6fbc1e2 9776 if test -z "${no_recursion}"; then
f063a9ed 9777 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
9778 if test -f ${file}; then
9779 echo 1>&2 "*** removing ${file} to force reconfigure"
9780 rm -f ${file}
9781 fi
9782 done
5607edfd 9783 fi
9e1c8fc1
JJ
9784 case ${module},${bootstrap_fixincludes} in
9785 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9786 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9787 esac
3e54529c 9788 extrasub_host="$extrasub_host
5607edfd
PB
9789/^@if $module\$/d
9790/^@endif $module\$/d
da34ca3f 9791/^@unless $module\$/,/^@endunless $module\$/d
9e1c8fc1 9792/^@if $module-$host_bootstrap_suffix\$/d
da34ca3f
AO
9793/^@endif $module-$host_bootstrap_suffix\$/d
9794/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
5607edfd 9795done
3e54529c 9796extrasub_target=
5607edfd
PB
9797for module in ${target_configdirs} ; do
9798 if test -z "${no_recursion}" \
9799 && test -f ${target_subdir}/${module}/Makefile; then
9800 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9801 rm -f ${target_subdir}/${module}/Makefile
9802 fi
00020c16
ILT
9803
9804 # We only bootstrap target libraries listed in bootstrap_target_libs.
9805 case $bootstrap_target_libs in
9806 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9807 *) target_bootstrap_suffix=no-bootstrap ;;
9808 esac
9809
3e54529c 9810 extrasub_target="$extrasub_target
5607edfd
PB
9811/^@if target-$module\$/d
9812/^@endif target-$module\$/d
da34ca3f 9813/^@unless target-$module\$/,/^@endunless target-$module\$/d
00020c16 9814/^@if target-$module-$target_bootstrap_suffix\$/d
da34ca3f
AO
9815/^@endif target-$module-$target_bootstrap_suffix\$/d
9816/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
9817done
9818
3e54529c
RW
9819# Do the final fixup along with target modules.
9820extrasub_target="$extrasub_target
da34ca3f
AO
9821/^@if /,/^@endif /d
9822/^@unless /d
9823/^@endunless /d"
671aa708 9824
4a5e71f2
L
9825if test "$enable_pgo_build" != "no"; then
9826 extrasub_build="$extrasub_build
9827/^@if pgo-build\$/d
9828/^@endif pgo-build\$/d"
9829fi
9830
671aa708
NN
9831# Create the serialization dependencies. This uses a temporary file.
9832
5213506e
RW
9833# Check whether --enable-serial-configure was given.
9834if test "${enable_serial_configure+set}" = set; then :
9835 enableval=$enable_serial_configure;
9836fi
ade82b16
AO
9837
9838
bf1d3e81
NN
9839case ${enable_serial_configure} in
9840 yes)
9841 enable_serial_build_configure=yes
9842 enable_serial_host_configure=yes
9843 enable_serial_target_configure=yes
9844 ;;
9845esac
9846
671aa708
NN
9847# These force 'configure's to be done one at a time, to avoid problems
9848# with contention over a shared config.cache.
9849rm -f serdep.tmp
ade82b16 9850echo '# serdep.tmp' > serdep.tmp
671aa708 9851olditem=
bf1d3e81 9852test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
9853for item in ${build_configdirs} ; do
9854 case ${olditem} in
9855 "") ;;
ade82b16 9856 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
9857 esac
9858 olditem=${item}
9859done
9860olditem=
bf1d3e81 9861test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
9862for item in ${configdirs} ; do
9863 case ${olditem} in
9864 "") ;;
ade82b16 9865 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
9866 esac
9867 olditem=${item}
9868done
9869olditem=
bf1d3e81 9870test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
9871for item in ${target_configdirs} ; do
9872 case ${olditem} in
9873 "") ;;
ade82b16 9874 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
9875 esac
9876 olditem=${item}
9877done
9878serialization_dependencies=serdep.tmp
9879
9880
ade82b16 9881# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 9882# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
9883# might not want to pass down to subconfigures. The exception being
9884# --cache-file=/dev/null, which is used to turn off the use of cache
9885# files altogether, and which should be passed on to subconfigures.
9886# Also strip program-prefix, program-suffix, and program-transform-name,
9887# so that we can pass down a consistent program-transform-name.
1c710c3c 9888baseargs=
29a63921 9889tbaseargs=
1c710c3c
DJ
9890keep_next=no
9891skip_next=no
9892eval "set -- $ac_configure_args"
44bfc3ac
DJ
9893for ac_arg
9894do
1c710c3c
DJ
9895 if test X"$skip_next" = X"yes"; then
9896 skip_next=no
9897 continue
9898 fi
9899 if test X"$keep_next" = X"yes"; then
9900 case $ac_arg in
9901 *\'*)
9902 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9903 esac
9904 baseargs="$baseargs '$ac_arg'"
29a63921 9905 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
9906 keep_next=no
9907 continue
9908 fi
9909
9910 # Handle separated arguments. Based on the logic generated by
9911 # autoconf 2.59.
9912 case $ac_arg in
9913 *=* | --config-cache | -C | -disable-* | --disable-* \
9914 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9915 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9916 | -with-* | --with-* | -without-* | --without-* | --x)
9917 separate_arg=no
9918 ;;
9919 -*)
9920 separate_arg=yes
9921 ;;
9922 *)
9923 separate_arg=no
9924 ;;
9925 esac
9926
29a63921
AO
9927 skip_targ=no
9928 case $ac_arg in
9929
9930 --with-* | --without-*)
9931 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9932
9933 case $libopt in
9934 *[-_]include)
9935 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9936 ;;
9937 *[-_]lib)
9938 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9939 ;;
9940 *)
9941 lib=$libopt
9942 ;;
9943 esac
9944
9945
9946 case $lib in
4a9bb2aa 9947 mpc | mpfr | gmp | isl)
29a63921
AO
9948 # If we're processing --with-$lib, --with-$lib-include or
9949 # --with-$lib-lib, for one of the libs above, and target is
9950 # different from host, don't pass the current argument to any
9951 # target library's configure.
9952 if test x$is_cross_compiler = xyes; then
9953 skip_targ=yes
9954 fi
9955 ;;
9956 esac
9957 ;;
9958 esac
9959
1c710c3c 9960 case "$ac_arg" in
f1a036e4
NC
9961 --cache-file=/dev/null | \
9962 -cache-file=/dev/null )
9963 # Handled here to avoid the test to skip args below.
9964 baseargs="$baseargs '$ac_arg'"
29a63921 9965 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
9966 # Assert: $separate_arg should always be no.
9967 keep_next=$separate_arg
9968 ;;
1c710c3c
DJ
9969 --no*)
9970 continue
9971 ;;
9972 --c* | \
9973 --sr* | \
9974 --ho* | \
9975 --bu* | \
9976 --t* | \
9977 --program-* | \
9978 -cache_file* | \
9979 -srcdir* | \
9980 -host* | \
9981 -build* | \
9982 -target* | \
9983 -program-prefix* | \
9984 -program-suffix* | \
9985 -program-transform-name* )
9986 skip_next=$separate_arg
9987 continue
9988 ;;
9989 -*)
9990 # An option. Add it.
9991 case $ac_arg in
9992 *\'*)
9993 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9994 esac
9995 baseargs="$baseargs '$ac_arg'"
29a63921
AO
9996 if test X"$skip_targ" = Xno; then
9997 tbaseargs="$tbaseargs '$ac_arg'"
9998 fi
1c710c3c
DJ
9999 keep_next=$separate_arg
10000 ;;
10001 *)
10002 # Either a variable assignment, or a nonopt (triplet). Don't
10003 # pass it down; let the Makefile handle this.
10004 continue
10005 ;;
10006 esac
10007done
10008# Remove the initial space we just introduced and, as these will be
10009# expanded by make, quote '$'.
10010baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 10011
43bb47c2
DJ
10012# Add in --program-transform-name, after --program-prefix and
10013# --program-suffix have been applied to it. Autoconf has already
10014# doubled dollar signs and backslashes in program_transform_name; we want
10015# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 10016# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
10017# Also, because we want to override the logic in subdir configure scripts to
10018# choose program_transform_name, replace any s,x,x, with s,y,y,.
10019sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10020${program_transform_name}
10021EOF_SED
10022gcc_transform_name=`cat conftestsed.out`
10023rm -f conftestsed.out
10024baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 10025tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
10026if test "$silent" = yes; then
10027 baseargs="$baseargs --silent"
29a63921 10028 tbaseargs="$tbaseargs --silent"
d9acb717 10029fi
0115d4a3 10030baseargs="$baseargs --disable-option-checking"
29a63921 10031tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 10032
ffedf511
RW
10033# Record and document user additions to sub configure arguments.
10034
10035
10036
10037
671aa708
NN
10038# For the build-side libraries, we just need to pretend we're native,
10039# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
10040# desired. We can't even use the same cache file for all build-side
10041# libraries, as they're compiled differently; some with C, some with
10042# C++ or with different feature-enabling options.
10043build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
10044
10045# For host modules, accept cache file option, or specification as blank.
10046case "${cache_file}" in
10047"") # empty
10048 cache_file_option="" ;;
10049/* | [A-Za-z]:[\\/]* ) # absolute path
10050 cache_file_option="--cache-file=${cache_file}" ;;
10051*) # relative path
10052 cache_file_option="--cache-file=../${cache_file}" ;;
10053esac
10054
09438bde
NN
10055# Host dirs don't like to share a cache file either, horribly enough.
10056# This seems to be due to autoconf 2.5x stupidity.
ffedf511 10057host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 10058
29a63921 10059target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
10060
10061# Passing a --with-cross-host argument lets the target libraries know
10062# whether they are being built with a cross-compiler or being built
10063# native. However, it would be better to use other mechanisms to make the
10064# sorts of decisions they want to make on this basis. Please consider
10065# this option to be deprecated. FIXME.
10066if test x${is_cross_compiler} = xyes ; then
1c710c3c 10067 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
10068fi
10069
79e0604d
FXC
10070# Special user-friendly check for native x86_64-linux build, if
10071# multilib is not explicitly enabled.
10072case "$target:$have_compiler:$host:$target:$enable_multilib" in
10073 x86_64-*linux*:yes:$build:$build:)
e640447c 10074 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
10075 dev64=no
10076 echo "int main () { return 0; }" > conftest.c
10077 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10078 if test $? = 0 ; then
10079 if test -s conftest || test -s conftest.exe ; then
10080 dev64=yes
10081 fi
10082 fi
10083 rm -f conftest*
10084 if test x${dev64} != xyes ; then
22e05272 10085 as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
79e0604d
FXC
10086 fi
10087 ;;
10088esac
10089
dc683a3f
RW
10090# Default to --enable-multilib.
10091if test x${enable_multilib} = x ; then
671aa708 10092 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 10093fi
671aa708
NN
10094
10095# Pass --with-newlib if appropriate. Note that target_configdirs has
10096# changed from the earlier setting of with_newlib.
10097if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10098 target_configargs="--with-newlib ${target_configargs}"
10099fi
10100
6b9eb62c
NN
10101# Different target subdirs use different values of certain variables
10102# (notably CXX). Worse, multilibs use *lots* of different values.
10103# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10104# it doesn't automatically accept command-line overrides of them.
10105# This means it's not safe for target subdirs to share a cache file,
10106# which is disgusting, but there you have it. Hopefully this can be
10107# fixed in future. It's still worthwhile to use a cache file for each
10108# directory. I think.
10109
bebcd931
MS
10110# Pass the appropriate --build, --host, --target and --cache-file arguments.
10111# We need to pass --target, as newer autoconf's requires consistency
10112# for target_alias and gcc doesn't manage it consistently.
e69bf64b 10113target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 10114
671aa708
NN
10115FLAGS_FOR_TARGET=
10116case " $target_configdirs " in
10117 *" newlib "*)
10118 case " $target_configargs " in
10119 *" --with-newlib "*)
10120 case "$target" in
5d571eaa 10121 *-cygwin*)
443e6238 10122 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 10123 ;;
671aa708
NN
10124 esac
10125
10126 # If we're not building GCC, don't discard standard headers.
10127 if test -d ${srcdir}/gcc; then
10128 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10129
10130 if test "${build}" != "${host}"; then
10131 # On Canadian crosses, CC_FOR_TARGET will have already been set
10132 # by `configure', so we won't have an opportunity to add -Bgcc/
10133 # to it. This is right: we don't want to search that directory
10134 # for binaries, but we want the header files in there, so add
10135 # them explicitly.
0463992b 10136 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
10137
10138 # Someone might think of using the pre-installed headers on
10139 # Canadian crosses, in case the installed compiler is not fully
10140 # compatible with the compiler being built. In this case, it
10141 # would be better to flag an error than risking having
10142 # incompatible object files being constructed. We can't
10143 # guarantee that an error will be flagged, but let's hope the
10144 # compiler will do it, when presented with incompatible header
10145 # files.
10146 fi
10147 fi
10148
10149 case "${target}-${is_cross_compiler}" in
f2a0e225 10150 i[3456789]86-*-linux*-no)
671aa708
NN
10151 # Here host == target, so we don't need to build gcc,
10152 # so we don't want to discard standard headers.
10153 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10154 ;;
10155 *)
10156 # If we're building newlib, use its generic headers last, but search
10157 # for any libc-related directories first (so make it the last -B
10158 # switch).
10159 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
c03353e2
RIL
10160
10161 # If we're building libgloss, find the startup file, simulator library
10162 # and linker script.
10163 case " $target_configdirs " in
10164 *" libgloss "*)
10165 # Look for startup file, simulator library and maybe linker script.
10166 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10167 # Look for libnosys.a in case the target needs it.
10168 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10169 # Most targets have the linker script in the source directory.
10170 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10171 ;;
10172 esac
671aa708
NN
10173 ;;
10174 esac
10175 ;;
10176 esac
10177 ;;
10178esac
5d571eaa 10179
b91f0a41 10180case "$target" in
5d571eaa
OS
10181 x86_64-*mingw* | *-w64-mingw*)
10182 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10183 # however, use a symlink named 'mingw' in ${prefix} .
10184 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10185 ;;
10186 *-mingw*)
10187 # MinGW can't be handled as Cygwin above since it does not use newlib.
10188 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'
10189 ;;
b91f0a41 10190esac
671aa708 10191
6691a79e
ME
10192# Allow the user to override the flags for
10193# our build compiler if desired.
f019adc1
MF
10194if test x"${build}" = x"${host}" ; then
10195 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
84401ce5 10196 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
f019adc1
MF
10197 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10198 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10199fi
6691a79e 10200
671aa708
NN
10201# On Canadian crosses, we'll be searching the right directories for
10202# the previously-installed cross compiler, so don't bother to add
10203# flags for directories within the install tree of the compiler
10204# being built; programs in there won't even run.
10205if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10206 # Search for pre-installed headers if nothing else fits.
9124bc53 10207 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
10208fi
10209
10210if test "x${use_gnu_ld}" = x &&
10211 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10212 # Arrange for us to find uninstalled linker scripts.
215c351a 10213 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
10214fi
10215
e88a2c09
DD
10216# Search for other target-specific linker scripts and such.
10217case "${target}" in
3e19841a
PB
10218 mep*)
10219 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10220 ;;
9b8ffbb8
OH
10221 # The VxWorks support for shared libraries is getting in
10222 # incrementally. Make sure it doesn't get activated implicitly:
10223 *vxworks*)
10224 if test "${enable_shared-unset}" = unset ; then
10225 enable_shared=no
10226 # So the build of libraries knows ...
10227 target_configargs="${target_configargs} --disable-shared"
10228 # So gcc knows ...
10229 host_configargs="${host_configargs} --disable-shared"
10230 fi
10231 ;;
e88a2c09
DD
10232esac
10233
671aa708 10234# Makefile fragments.
7b61653a
PE
10235for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10236do
10237 eval fragval=\$$frag
10238 if test $fragval != /dev/null; then
10239 eval $frag=${srcdir}/$fragval
10240 fi
10241done
671aa708
NN
10242
10243
10244
10245
10246
10247# Miscellanea: directories, flags, etc.
10248
10249
10250
10251
10252
10253
10254
d89f0ad6 10255
23f6b2f9 10256# Build module lists & subconfigure args.
671aa708
NN
10257
10258
10259
2abefe3d
PB
10260# Host module lists & subconfigure args.
10261
10262
10263
aae29963 10264
2abefe3d
PB
10265# Target module lists & subconfigure args.
10266
10267
10268
10269# Build tools.
10270
10271
10272
0999159b
PB
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
b4c522fa 10286
3b5e8ee4 10287
a1d2b162
IS
10288
10289
2abefe3d
PB
10290# Generate default definitions for YACC, M4, LEX and other programs that run
10291# on the build machine. These are used if the Makefile can't locate these
10292# programs in objdir.
10293MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10294
10295for ac_prog in 'bison -y' byacc yacc
10296do
1c710c3c 10297 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10298set dummy $ac_prog; ac_word=$2
5213506e
RW
10299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10300$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10301if ${ac_cv_prog_YACC+:} false; then :
5213506e 10302 $as_echo_n "(cached) " >&6
2abefe3d
PB
10303else
10304 if test -n "$YACC"; then
10305 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10306else
1c710c3c
DJ
10307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10308for as_dir in $PATH
10309do
10310 IFS=$as_save_IFS
10311 test -z "$as_dir" && as_dir=.
5213506e 10312 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10314 ac_cv_prog_YACC="$ac_prog"
5213506e 10315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10316 break 2
10317 fi
10318done
5213506e
RW
10319 done
10320IFS=$as_save_IFS
1c710c3c 10321
2abefe3d
PB
10322fi
10323fi
1c710c3c 10324YACC=$ac_cv_prog_YACC
2abefe3d 10325if test -n "$YACC"; then
5213506e
RW
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10327$as_echo "$YACC" >&6; }
2abefe3d 10328else
5213506e
RW
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10330$as_echo "no" >&6; }
2abefe3d
PB
10331fi
10332
5213506e 10333
1c710c3c 10334 test -n "$YACC" && break
2abefe3d
PB
10335done
10336test -n "$YACC" || YACC="$MISSING bison -y"
10337
10338case " $build_configdirs " in
10339 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
10340esac
10341
10342for ac_prog in bison
10343do
1c710c3c 10344 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10345set dummy $ac_prog; ac_word=$2
5213506e
RW
10346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10347$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10348if ${ac_cv_prog_BISON+:} false; then :
5213506e 10349 $as_echo_n "(cached) " >&6
2abefe3d
PB
10350else
10351 if test -n "$BISON"; then
10352 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10353else
1c710c3c
DJ
10354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355for as_dir in $PATH
10356do
10357 IFS=$as_save_IFS
10358 test -z "$as_dir" && as_dir=.
5213506e 10359 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10361 ac_cv_prog_BISON="$ac_prog"
5213506e 10362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10363 break 2
10364 fi
10365done
5213506e
RW
10366 done
10367IFS=$as_save_IFS
1c710c3c 10368
2abefe3d
PB
10369fi
10370fi
1c710c3c 10371BISON=$ac_cv_prog_BISON
2abefe3d 10372if test -n "$BISON"; then
5213506e
RW
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10374$as_echo "$BISON" >&6; }
2abefe3d 10375else
5213506e
RW
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10377$as_echo "no" >&6; }
2abefe3d
PB
10378fi
10379
5213506e 10380
1c710c3c 10381 test -n "$BISON" && break
2abefe3d
PB
10382done
10383test -n "$BISON" || BISON="$MISSING bison"
10384
10385case " $build_configdirs " in
10386 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10387esac
10388
10389for ac_prog in gm4 gnum4 m4
10390do
1c710c3c 10391 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10392set dummy $ac_prog; ac_word=$2
5213506e
RW
10393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10394$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10395if ${ac_cv_prog_M4+:} false; then :
5213506e 10396 $as_echo_n "(cached) " >&6
2abefe3d
PB
10397else
10398 if test -n "$M4"; then
10399 ac_cv_prog_M4="$M4" # Let the user override the test.
10400else
1c710c3c
DJ
10401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402for as_dir in $PATH
10403do
10404 IFS=$as_save_IFS
10405 test -z "$as_dir" && as_dir=.
5213506e 10406 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10408 ac_cv_prog_M4="$ac_prog"
5213506e 10409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10410 break 2
10411 fi
10412done
5213506e
RW
10413 done
10414IFS=$as_save_IFS
1c710c3c 10415
2abefe3d
PB
10416fi
10417fi
1c710c3c 10418M4=$ac_cv_prog_M4
2abefe3d 10419if test -n "$M4"; then
5213506e
RW
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10421$as_echo "$M4" >&6; }
2abefe3d 10422else
5213506e
RW
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424$as_echo "no" >&6; }
2abefe3d
PB
10425fi
10426
5213506e 10427
1c710c3c 10428 test -n "$M4" && break
2abefe3d
PB
10429done
10430test -n "$M4" || M4="$MISSING m4"
10431
10432case " $build_configdirs " in
10433 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10434esac
10435
10436for ac_prog in flex lex
10437do
1c710c3c 10438 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10439set dummy $ac_prog; ac_word=$2
5213506e
RW
10440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10442if ${ac_cv_prog_LEX+:} false; then :
5213506e 10443 $as_echo_n "(cached) " >&6
2abefe3d
PB
10444else
10445 if test -n "$LEX"; then
10446 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10447else
1c710c3c
DJ
10448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449for as_dir in $PATH
10450do
10451 IFS=$as_save_IFS
10452 test -z "$as_dir" && as_dir=.
5213506e 10453 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10455 ac_cv_prog_LEX="$ac_prog"
5213506e 10456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10457 break 2
10458 fi
10459done
5213506e
RW
10460 done
10461IFS=$as_save_IFS
1c710c3c 10462
2abefe3d
PB
10463fi
10464fi
1c710c3c 10465LEX=$ac_cv_prog_LEX
2abefe3d 10466if test -n "$LEX"; then
5213506e
RW
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10468$as_echo "$LEX" >&6; }
2abefe3d 10469else
5213506e
RW
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471$as_echo "no" >&6; }
2abefe3d
PB
10472fi
10473
5213506e 10474
1c710c3c 10475 test -n "$LEX" && break
2abefe3d
PB
10476done
10477test -n "$LEX" || LEX="$MISSING flex"
10478
10479case " $build_configdirs " in
10480 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10481 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10482esac
10483
10484for ac_prog in flex
10485do
1c710c3c 10486 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10487set dummy $ac_prog; ac_word=$2
5213506e
RW
10488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10489$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10490if ${ac_cv_prog_FLEX+:} false; then :
5213506e 10491 $as_echo_n "(cached) " >&6
2abefe3d
PB
10492else
10493 if test -n "$FLEX"; then
10494 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10495else
1c710c3c
DJ
10496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497for as_dir in $PATH
10498do
10499 IFS=$as_save_IFS
10500 test -z "$as_dir" && as_dir=.
5213506e 10501 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10503 ac_cv_prog_FLEX="$ac_prog"
5213506e 10504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10505 break 2
10506 fi
10507done
5213506e
RW
10508 done
10509IFS=$as_save_IFS
1c710c3c 10510
2abefe3d
PB
10511fi
10512fi
1c710c3c 10513FLEX=$ac_cv_prog_FLEX
2abefe3d 10514if test -n "$FLEX"; then
5213506e
RW
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10516$as_echo "$FLEX" >&6; }
2abefe3d 10517else
5213506e
RW
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519$as_echo "no" >&6; }
2abefe3d
PB
10520fi
10521
5213506e 10522
1c710c3c 10523 test -n "$FLEX" && break
2abefe3d
PB
10524done
10525test -n "$FLEX" || FLEX="$MISSING flex"
10526
10527case " $build_configdirs " in
10528 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10529esac
10530
10531for ac_prog in makeinfo
10532do
1c710c3c 10533 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10534set dummy $ac_prog; ac_word=$2
5213506e
RW
10535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10536$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10537if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 10538 $as_echo_n "(cached) " >&6
2abefe3d
PB
10539else
10540 if test -n "$MAKEINFO"; then
10541 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10542else
1c710c3c
DJ
10543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544for as_dir in $PATH
10545do
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
5213506e 10548 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10550 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 10551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10552 break 2
10553 fi
10554done
5213506e
RW
10555 done
10556IFS=$as_save_IFS
1c710c3c 10557
2abefe3d
PB
10558fi
10559fi
1c710c3c 10560MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 10561if test -n "$MAKEINFO"; then
5213506e
RW
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10563$as_echo "$MAKEINFO" >&6; }
2abefe3d 10564else
5213506e
RW
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566$as_echo "no" >&6; }
2abefe3d
PB
10567fi
10568
5213506e 10569
1c710c3c 10570 test -n "$MAKEINFO" && break
2abefe3d
PB
10571done
10572test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10573
10574case " $build_configdirs " in
10575 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10576 *)
10577
d18ff35a 10578 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
10579 # higher, else we use the "missing" dummy.
10580 if ${MAKEINFO} --version \
d18ff35a 10581 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
10582 :
10583 else
10584 MAKEINFO="$MISSING makeinfo"
10585 fi
10586 ;;
10587
10588esac
671aa708 10589
2abefe3d 10590# FIXME: expect and dejagnu may become build tools?
671aa708 10591
2abefe3d
PB
10592for ac_prog in expect
10593do
1c710c3c 10594 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10595set dummy $ac_prog; ac_word=$2
5213506e
RW
10596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10597$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10598if ${ac_cv_prog_EXPECT+:} false; then :
5213506e 10599 $as_echo_n "(cached) " >&6
2abefe3d
PB
10600else
10601 if test -n "$EXPECT"; then
10602 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10603else
1c710c3c
DJ
10604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10605for as_dir in $PATH
10606do
10607 IFS=$as_save_IFS
10608 test -z "$as_dir" && as_dir=.
5213506e 10609 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10611 ac_cv_prog_EXPECT="$ac_prog"
5213506e 10612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10613 break 2
10614 fi
10615done
5213506e
RW
10616 done
10617IFS=$as_save_IFS
1c710c3c 10618
2abefe3d
PB
10619fi
10620fi
1c710c3c 10621EXPECT=$ac_cv_prog_EXPECT
2abefe3d 10622if test -n "$EXPECT"; then
5213506e
RW
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10624$as_echo "$EXPECT" >&6; }
2abefe3d 10625else
5213506e
RW
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627$as_echo "no" >&6; }
2abefe3d 10628fi
671aa708 10629
5213506e 10630
1c710c3c 10631 test -n "$EXPECT" && break
2abefe3d
PB
10632done
10633test -n "$EXPECT" || EXPECT="expect"
671aa708 10634
2abefe3d
PB
10635case " $configdirs " in
10636 *" expect "*)
10637 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10638 ;;
10639esac
671aa708 10640
2abefe3d
PB
10641for ac_prog in runtest
10642do
1c710c3c 10643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10644set dummy $ac_prog; ac_word=$2
5213506e
RW
10645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10646$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10647if ${ac_cv_prog_RUNTEST+:} false; then :
5213506e 10648 $as_echo_n "(cached) " >&6
2abefe3d
PB
10649else
10650 if test -n "$RUNTEST"; then
10651 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 10652else
1c710c3c
DJ
10653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10654for as_dir in $PATH
10655do
10656 IFS=$as_save_IFS
10657 test -z "$as_dir" && as_dir=.
5213506e 10658 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10660 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 10661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10662 break 2
10663 fi
10664done
5213506e
RW
10665 done
10666IFS=$as_save_IFS
1c710c3c 10667
2abefe3d
PB
10668fi
10669fi
1c710c3c 10670RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 10671if test -n "$RUNTEST"; then
5213506e
RW
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10673$as_echo "$RUNTEST" >&6; }
2abefe3d 10674else
5213506e
RW
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10676$as_echo "no" >&6; }
2abefe3d 10677fi
671aa708 10678
5213506e 10679
1c710c3c 10680 test -n "$RUNTEST" && break
2abefe3d
PB
10681done
10682test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 10683
2abefe3d
PB
10684case " $configdirs " in
10685 *" dejagnu "*)
c394e891 10686 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
10687 ;;
10688esac
671aa708 10689
4e3dcf20 10690
671aa708 10691# Host tools.
ca9f4b81
AO
10692ncn_tool_prefix=
10693test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10694ncn_target_tool_prefix=
10695test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10696
278a7a38
AO
10697
10698
10699if test -n "$AR"; then
10700 ac_cv_prog_AR=$AR
10701elif test -n "$ac_cv_prog_AR"; then
10702 AR=$ac_cv_prog_AR
10703fi
10704
10705if test -n "$ac_cv_prog_AR"; then
10706 for ncn_progname in ar; do
10707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10708set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10710$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10711if ${ac_cv_prog_AR+:} false; then :
5213506e 10712 $as_echo_n "(cached) " >&6
278a7a38
AO
10713else
10714 if test -n "$AR"; then
10715 ac_cv_prog_AR="$AR" # Let the user override the test.
10716else
10717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718for as_dir in $PATH
10719do
10720 IFS=$as_save_IFS
10721 test -z "$as_dir" && as_dir=.
5213506e 10722 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10724 ac_cv_prog_AR="${ncn_progname}"
5213506e 10725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10726 break 2
10727 fi
10728done
5213506e
RW
10729 done
10730IFS=$as_save_IFS
278a7a38
AO
10731
10732fi
10733fi
10734AR=$ac_cv_prog_AR
10735if test -n "$AR"; then
5213506e
RW
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10737$as_echo "$AR" >&6; }
278a7a38 10738else
5213506e
RW
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10740$as_echo "no" >&6; }
278a7a38
AO
10741fi
10742
5213506e 10743
278a7a38
AO
10744 done
10745fi
10746
10747for ncn_progname in ar; do
2693c0b0
PB
10748 if test -n "$ncn_tool_prefix"; then
10749 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10750set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10752$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10753if ${ac_cv_prog_AR+:} false; then :
5213506e 10754 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10755else
10756 if test -n "$AR"; then
10757 ac_cv_prog_AR="$AR" # Let the user override the test.
10758else
1c710c3c
DJ
10759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760for as_dir in $PATH
10761do
10762 IFS=$as_save_IFS
10763 test -z "$as_dir" && as_dir=.
5213506e 10764 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10766 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 10767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10768 break 2
10769 fi
10770done
5213506e
RW
10771 done
10772IFS=$as_save_IFS
1c710c3c 10773
ca9f4b81
AO
10774fi
10775fi
1c710c3c 10776AR=$ac_cv_prog_AR
ca9f4b81 10777if test -n "$AR"; then
5213506e
RW
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10779$as_echo "$AR" >&6; }
ca9f4b81 10780else
5213506e
RW
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782$as_echo "no" >&6; }
ca9f4b81
AO
10783fi
10784
5213506e 10785
2693c0b0
PB
10786 fi
10787 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10788 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10789set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10791$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10792if ${ac_cv_prog_AR+:} false; then :
5213506e 10793 $as_echo_n "(cached) " >&6
ca9f4b81 10794else
2693c0b0 10795 if test -n "$AR"; then
af71363e
AS
10796 ac_cv_prog_AR="$AR" # Let the user override the test.
10797else
1c710c3c
DJ
10798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799for as_dir in $PATH
10800do
10801 IFS=$as_save_IFS
10802 test -z "$as_dir" && as_dir=.
5213506e 10803 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10805 ac_cv_prog_AR="${ncn_progname}"
5213506e 10806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10807 break 2
10808 fi
10809done
5213506e
RW
10810 done
10811IFS=$as_save_IFS
1c710c3c 10812
ca9f4b81
AO
10813fi
10814fi
1c710c3c 10815AR=$ac_cv_prog_AR
2693c0b0 10816if test -n "$AR"; then
5213506e
RW
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10818$as_echo "$AR" >&6; }
ca9f4b81 10819else
5213506e
RW
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821$as_echo "no" >&6; }
ca9f4b81 10822fi
1c710c3c 10823
5213506e 10824
2693c0b0
PB
10825 fi
10826 test -n "$ac_cv_prog_AR" && break
10827done
10828
10829if test -z "$ac_cv_prog_AR" ; then
10830 set dummy ar
10831 if test $build = $host ; then
10832 AR="$2"
ca9f4b81 10833 else
2693c0b0 10834 AR="${ncn_tool_prefix}$2"
ca9f4b81 10835 fi
ca9f4b81
AO
10836fi
10837
278a7a38
AO
10838
10839
10840if test -n "$AS"; then
10841 ac_cv_prog_AS=$AS
10842elif test -n "$ac_cv_prog_AS"; then
10843 AS=$ac_cv_prog_AS
10844fi
10845
10846if test -n "$ac_cv_prog_AS"; then
10847 for ncn_progname in as; do
10848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10849set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10851$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10852if ${ac_cv_prog_AS+:} false; then :
5213506e 10853 $as_echo_n "(cached) " >&6
278a7a38
AO
10854else
10855 if test -n "$AS"; then
10856 ac_cv_prog_AS="$AS" # Let the user override the test.
10857else
10858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10859for as_dir in $PATH
10860do
10861 IFS=$as_save_IFS
10862 test -z "$as_dir" && as_dir=.
5213506e 10863 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10865 ac_cv_prog_AS="${ncn_progname}"
5213506e 10866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10867 break 2
10868 fi
10869done
5213506e
RW
10870 done
10871IFS=$as_save_IFS
278a7a38
AO
10872
10873fi
10874fi
10875AS=$ac_cv_prog_AS
10876if test -n "$AS"; then
5213506e
RW
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10878$as_echo "$AS" >&6; }
278a7a38 10879else
5213506e
RW
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10881$as_echo "no" >&6; }
278a7a38
AO
10882fi
10883
5213506e 10884
278a7a38
AO
10885 done
10886fi
10887
10888for ncn_progname in as; do
2693c0b0
PB
10889 if test -n "$ncn_tool_prefix"; then
10890 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10891set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10893$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10894if ${ac_cv_prog_AS+:} false; then :
5213506e 10895 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10896else
10897 if test -n "$AS"; then
10898 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 10899else
1c710c3c
DJ
10900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901for as_dir in $PATH
10902do
10903 IFS=$as_save_IFS
10904 test -z "$as_dir" && as_dir=.
5213506e 10905 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10907 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 10908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10909 break 2
10910 fi
10911done
5213506e
RW
10912 done
10913IFS=$as_save_IFS
1c710c3c 10914
ca9f4b81
AO
10915fi
10916fi
1c710c3c 10917AS=$ac_cv_prog_AS
ca9f4b81 10918if test -n "$AS"; then
5213506e
RW
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10920$as_echo "$AS" >&6; }
ca9f4b81 10921else
5213506e
RW
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10923$as_echo "no" >&6; }
ca9f4b81
AO
10924fi
10925
5213506e 10926
2693c0b0
PB
10927 fi
10928 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10929 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10930set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10932$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10933if ${ac_cv_prog_AS+:} false; then :
5213506e 10934 $as_echo_n "(cached) " >&6
ca9f4b81 10935else
2693c0b0
PB
10936 if test -n "$AS"; then
10937 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 10938else
1c710c3c
DJ
10939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10940for as_dir in $PATH
10941do
10942 IFS=$as_save_IFS
10943 test -z "$as_dir" && as_dir=.
5213506e 10944 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10946 ac_cv_prog_AS="${ncn_progname}"
5213506e 10947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10948 break 2
10949 fi
10950done
5213506e
RW
10951 done
10952IFS=$as_save_IFS
1c710c3c 10953
ca9f4b81
AO
10954fi
10955fi
1c710c3c 10956AS=$ac_cv_prog_AS
2693c0b0 10957if test -n "$AS"; then
5213506e
RW
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10959$as_echo "$AS" >&6; }
ca9f4b81 10960else
5213506e
RW
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10962$as_echo "no" >&6; }
ca9f4b81 10963fi
1c710c3c 10964
5213506e 10965
2693c0b0
PB
10966 fi
10967 test -n "$ac_cv_prog_AS" && break
10968done
10969
10970if test -z "$ac_cv_prog_AS" ; then
10971 set dummy as
10972 if test $build = $host ; then
10973 AS="$2"
ca9f4b81 10974 else
2693c0b0 10975 AS="${ncn_tool_prefix}$2"
ca9f4b81 10976 fi
ca9f4b81
AO
10977fi
10978
278a7a38
AO
10979
10980
10981if test -n "$DLLTOOL"; then
10982 ac_cv_prog_DLLTOOL=$DLLTOOL
10983elif test -n "$ac_cv_prog_DLLTOOL"; then
10984 DLLTOOL=$ac_cv_prog_DLLTOOL
10985fi
10986
10987if test -n "$ac_cv_prog_DLLTOOL"; then
10988 for ncn_progname in dlltool; do
10989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10990set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10992$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10993if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 10994 $as_echo_n "(cached) " >&6
278a7a38
AO
10995else
10996 if test -n "$DLLTOOL"; then
10997 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10998else
10999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11000for as_dir in $PATH
11001do
11002 IFS=$as_save_IFS
11003 test -z "$as_dir" && as_dir=.
5213506e 11004 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11006 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 11007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11008 break 2
11009 fi
11010done
5213506e
RW
11011 done
11012IFS=$as_save_IFS
278a7a38
AO
11013
11014fi
11015fi
11016DLLTOOL=$ac_cv_prog_DLLTOOL
11017if test -n "$DLLTOOL"; then
5213506e
RW
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11019$as_echo "$DLLTOOL" >&6; }
278a7a38 11020else
5213506e
RW
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022$as_echo "no" >&6; }
278a7a38
AO
11023fi
11024
5213506e 11025
278a7a38
AO
11026 done
11027fi
11028
11029for ncn_progname in dlltool; do
2693c0b0
PB
11030 if test -n "$ncn_tool_prefix"; then
11031 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11032set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11034$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11035if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11036 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11037else
11038 if test -n "$DLLTOOL"; then
11039 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11040else
1c710c3c
DJ
11041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042for as_dir in $PATH
11043do
11044 IFS=$as_save_IFS
11045 test -z "$as_dir" && as_dir=.
5213506e 11046 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11048 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 11049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11050 break 2
11051 fi
11052done
5213506e
RW
11053 done
11054IFS=$as_save_IFS
1c710c3c 11055
ca9f4b81
AO
11056fi
11057fi
1c710c3c 11058DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 11059if test -n "$DLLTOOL"; then
5213506e
RW
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11061$as_echo "$DLLTOOL" >&6; }
ca9f4b81 11062else
5213506e
RW
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064$as_echo "no" >&6; }
ca9f4b81
AO
11065fi
11066
5213506e 11067
2693c0b0
PB
11068 fi
11069 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11071set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11073$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11074if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11075 $as_echo_n "(cached) " >&6
ca9f4b81 11076else
2693c0b0
PB
11077 if test -n "$DLLTOOL"; then
11078 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 11079else
1c710c3c
DJ
11080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11081for as_dir in $PATH
11082do
11083 IFS=$as_save_IFS
11084 test -z "$as_dir" && as_dir=.
5213506e 11085 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11087 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 11088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11089 break 2
11090 fi
11091done
5213506e
RW
11092 done
11093IFS=$as_save_IFS
1c710c3c 11094
ca9f4b81
AO
11095fi
11096fi
1c710c3c 11097DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 11098if test -n "$DLLTOOL"; then
5213506e
RW
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11100$as_echo "$DLLTOOL" >&6; }
ca9f4b81 11101else
5213506e
RW
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11103$as_echo "no" >&6; }
ca9f4b81 11104fi
1c710c3c 11105
5213506e 11106
2693c0b0
PB
11107 fi
11108 test -n "$ac_cv_prog_DLLTOOL" && break
11109done
11110
11111if test -z "$ac_cv_prog_DLLTOOL" ; then
11112 set dummy dlltool
11113 if test $build = $host ; then
11114 DLLTOOL="$2"
ca9f4b81 11115 else
2693c0b0 11116 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 11117 fi
ca9f4b81
AO
11118fi
11119
278a7a38
AO
11120
11121
3b5e8ee4
IS
11122if test -n "$DSYMUTIL"; then
11123 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11124elif test -n "$ac_cv_prog_DSYMUTIL"; then
11125 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11126fi
11127
11128if test -n "$ac_cv_prog_DSYMUTIL"; then
11129 for ncn_progname in dsymutil; do
11130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11131set dummy ${ncn_progname}; ac_word=$2
11132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11133$as_echo_n "checking for $ac_word... " >&6; }
11134if ${ac_cv_prog_DSYMUTIL+:} false; then :
11135 $as_echo_n "(cached) " >&6
11136else
11137 if test -n "$DSYMUTIL"; then
11138 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11139else
11140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141for as_dir in $PATH
11142do
11143 IFS=$as_save_IFS
11144 test -z "$as_dir" && as_dir=.
11145 for ac_exec_ext in '' $ac_executable_extensions; do
11146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11147 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11149 break 2
11150 fi
11151done
11152 done
11153IFS=$as_save_IFS
11154
11155fi
11156fi
11157DSYMUTIL=$ac_cv_prog_DSYMUTIL
11158if test -n "$DSYMUTIL"; then
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11160$as_echo "$DSYMUTIL" >&6; }
11161else
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163$as_echo "no" >&6; }
11164fi
11165
11166
11167 done
11168fi
11169
11170for ncn_progname in dsymutil; do
11171 if test -n "$ncn_tool_prefix"; then
11172 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11173set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11175$as_echo_n "checking for $ac_word... " >&6; }
11176if ${ac_cv_prog_DSYMUTIL+:} false; then :
11177 $as_echo_n "(cached) " >&6
11178else
11179 if test -n "$DSYMUTIL"; then
11180 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11181else
11182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11183for as_dir in $PATH
11184do
11185 IFS=$as_save_IFS
11186 test -z "$as_dir" && as_dir=.
11187 for ac_exec_ext in '' $ac_executable_extensions; do
11188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11189 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11191 break 2
11192 fi
11193done
11194 done
11195IFS=$as_save_IFS
11196
11197fi
11198fi
11199DSYMUTIL=$ac_cv_prog_DSYMUTIL
11200if test -n "$DSYMUTIL"; then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11202$as_echo "$DSYMUTIL" >&6; }
11203else
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11205$as_echo "no" >&6; }
11206fi
11207
11208
11209 fi
11210 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11212set dummy ${ncn_progname}; ac_word=$2
11213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11214$as_echo_n "checking for $ac_word... " >&6; }
11215if ${ac_cv_prog_DSYMUTIL+:} false; then :
11216 $as_echo_n "(cached) " >&6
11217else
11218 if test -n "$DSYMUTIL"; then
11219 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11220else
11221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222for as_dir in $PATH
11223do
11224 IFS=$as_save_IFS
11225 test -z "$as_dir" && as_dir=.
11226 for ac_exec_ext in '' $ac_executable_extensions; do
11227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11228 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11230 break 2
11231 fi
11232done
11233 done
11234IFS=$as_save_IFS
11235
11236fi
11237fi
11238DSYMUTIL=$ac_cv_prog_DSYMUTIL
11239if test -n "$DSYMUTIL"; then
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11241$as_echo "$DSYMUTIL" >&6; }
11242else
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11244$as_echo "no" >&6; }
11245fi
11246
11247
11248 fi
11249 test -n "$ac_cv_prog_DSYMUTIL" && break
11250done
11251
11252if test -z "$ac_cv_prog_DSYMUTIL" ; then
11253 set dummy dsymutil
11254 if test $build = $host ; then
11255 DSYMUTIL="$2"
11256 else
11257 DSYMUTIL="${ncn_tool_prefix}$2"
11258 fi
11259fi
11260
11261
11262
278a7a38
AO
11263if test -n "$LD"; then
11264 ac_cv_prog_LD=$LD
11265elif test -n "$ac_cv_prog_LD"; then
11266 LD=$ac_cv_prog_LD
11267fi
11268
11269if test -n "$ac_cv_prog_LD"; then
11270 for ncn_progname in ld; do
11271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11272set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11274$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11275if ${ac_cv_prog_LD+:} false; then :
5213506e 11276 $as_echo_n "(cached) " >&6
278a7a38
AO
11277else
11278 if test -n "$LD"; then
11279 ac_cv_prog_LD="$LD" # Let the user override the test.
11280else
11281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11282for as_dir in $PATH
11283do
11284 IFS=$as_save_IFS
11285 test -z "$as_dir" && as_dir=.
5213506e 11286 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11288 ac_cv_prog_LD="${ncn_progname}"
5213506e 11289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11290 break 2
11291 fi
11292done
5213506e
RW
11293 done
11294IFS=$as_save_IFS
278a7a38
AO
11295
11296fi
11297fi
11298LD=$ac_cv_prog_LD
11299if test -n "$LD"; then
5213506e
RW
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11301$as_echo "$LD" >&6; }
278a7a38 11302else
5213506e
RW
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11304$as_echo "no" >&6; }
278a7a38
AO
11305fi
11306
5213506e 11307
278a7a38
AO
11308 done
11309fi
11310
11311for ncn_progname in ld; do
2693c0b0
PB
11312 if test -n "$ncn_tool_prefix"; then
11313 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11314set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11316$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11317if ${ac_cv_prog_LD+:} false; then :
5213506e 11318 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11319else
11320 if test -n "$LD"; then
11321 ac_cv_prog_LD="$LD" # Let the user override the test.
11322else
1c710c3c
DJ
11323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324for as_dir in $PATH
11325do
11326 IFS=$as_save_IFS
11327 test -z "$as_dir" && as_dir=.
5213506e 11328 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11330 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 11331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11332 break 2
11333 fi
11334done
5213506e
RW
11335 done
11336IFS=$as_save_IFS
1c710c3c 11337
ca9f4b81
AO
11338fi
11339fi
1c710c3c 11340LD=$ac_cv_prog_LD
ca9f4b81 11341if test -n "$LD"; then
5213506e
RW
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11343$as_echo "$LD" >&6; }
ca9f4b81 11344else
5213506e
RW
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346$as_echo "no" >&6; }
ca9f4b81
AO
11347fi
11348
5213506e 11349
2693c0b0
PB
11350 fi
11351 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11353set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11355$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11356if ${ac_cv_prog_LD+:} false; then :
5213506e 11357 $as_echo_n "(cached) " >&6
ca9f4b81 11358else
2693c0b0
PB
11359 if test -n "$LD"; then
11360 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 11361else
1c710c3c
DJ
11362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11363for as_dir in $PATH
11364do
11365 IFS=$as_save_IFS
11366 test -z "$as_dir" && as_dir=.
5213506e 11367 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11369 ac_cv_prog_LD="${ncn_progname}"
5213506e 11370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11371 break 2
11372 fi
11373done
5213506e
RW
11374 done
11375IFS=$as_save_IFS
1c710c3c 11376
ca9f4b81
AO
11377fi
11378fi
1c710c3c 11379LD=$ac_cv_prog_LD
2693c0b0 11380if test -n "$LD"; then
5213506e
RW
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11382$as_echo "$LD" >&6; }
ca9f4b81 11383else
5213506e
RW
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11385$as_echo "no" >&6; }
ca9f4b81 11386fi
1c710c3c 11387
5213506e 11388
2693c0b0
PB
11389 fi
11390 test -n "$ac_cv_prog_LD" && break
11391done
11392
11393if test -z "$ac_cv_prog_LD" ; then
11394 set dummy ld
11395 if test $build = $host ; then
11396 LD="$2"
ca9f4b81 11397 else
2693c0b0 11398 LD="${ncn_tool_prefix}$2"
ca9f4b81 11399 fi
ca9f4b81
AO
11400fi
11401
278a7a38
AO
11402
11403
11404if test -n "$LIPO"; then
11405 ac_cv_prog_LIPO=$LIPO
11406elif test -n "$ac_cv_prog_LIPO"; then
11407 LIPO=$ac_cv_prog_LIPO
11408fi
11409
11410if test -n "$ac_cv_prog_LIPO"; then
11411 for ncn_progname in lipo; do
11412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11413set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11415$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11416if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11417 $as_echo_n "(cached) " >&6
278a7a38
AO
11418else
11419 if test -n "$LIPO"; then
11420 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11421else
11422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423for as_dir in $PATH
11424do
11425 IFS=$as_save_IFS
11426 test -z "$as_dir" && as_dir=.
5213506e 11427 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11429 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11431 break 2
11432 fi
11433done
5213506e
RW
11434 done
11435IFS=$as_save_IFS
278a7a38
AO
11436
11437fi
11438fi
11439LIPO=$ac_cv_prog_LIPO
11440if test -n "$LIPO"; then
5213506e
RW
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11442$as_echo "$LIPO" >&6; }
278a7a38 11443else
5213506e
RW
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11445$as_echo "no" >&6; }
278a7a38
AO
11446fi
11447
5213506e 11448
278a7a38
AO
11449 done
11450fi
11451
11452for ncn_progname in lipo; do
2abefe3d
PB
11453 if test -n "$ncn_tool_prefix"; then
11454 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11455set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11457$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11458if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11459 $as_echo_n "(cached) " >&6
2abefe3d
PB
11460else
11461 if test -n "$LIPO"; then
11462 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11463else
1c710c3c
DJ
11464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465for as_dir in $PATH
11466do
11467 IFS=$as_save_IFS
11468 test -z "$as_dir" && as_dir=.
5213506e 11469 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11471 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 11472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11473 break 2
11474 fi
11475done
5213506e
RW
11476 done
11477IFS=$as_save_IFS
1c710c3c 11478
2abefe3d
PB
11479fi
11480fi
1c710c3c 11481LIPO=$ac_cv_prog_LIPO
2abefe3d 11482if test -n "$LIPO"; then
5213506e
RW
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11484$as_echo "$LIPO" >&6; }
2abefe3d 11485else
5213506e
RW
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487$as_echo "no" >&6; }
2abefe3d
PB
11488fi
11489
5213506e 11490
2abefe3d
PB
11491 fi
11492 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11494set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11496$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11497if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11498 $as_echo_n "(cached) " >&6
2abefe3d
PB
11499else
11500 if test -n "$LIPO"; then
11501 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11502else
1c710c3c
DJ
11503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504for as_dir in $PATH
11505do
11506 IFS=$as_save_IFS
11507 test -z "$as_dir" && as_dir=.
5213506e 11508 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11510 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11512 break 2
11513 fi
11514done
5213506e
RW
11515 done
11516IFS=$as_save_IFS
1c710c3c 11517
2abefe3d
PB
11518fi
11519fi
1c710c3c 11520LIPO=$ac_cv_prog_LIPO
2abefe3d 11521if test -n "$LIPO"; then
5213506e
RW
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11523$as_echo "$LIPO" >&6; }
2abefe3d 11524else
5213506e
RW
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526$as_echo "no" >&6; }
2abefe3d 11527fi
1c710c3c 11528
5213506e 11529
2abefe3d
PB
11530 fi
11531 test -n "$ac_cv_prog_LIPO" && break
11532done
11533
11534if test -z "$ac_cv_prog_LIPO" ; then
11535 set dummy lipo
11536 if test $build = $host ; then
11537 LIPO="$2"
11538 else
11539 LIPO="${ncn_tool_prefix}$2"
11540 fi
11541fi
11542
278a7a38
AO
11543
11544
11545if test -n "$NM"; then
11546 ac_cv_prog_NM=$NM
11547elif test -n "$ac_cv_prog_NM"; then
11548 NM=$ac_cv_prog_NM
11549fi
11550
11551if test -n "$ac_cv_prog_NM"; then
11552 for ncn_progname in nm; do
11553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11554set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11556$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11557if ${ac_cv_prog_NM+:} false; then :
5213506e 11558 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11559else
11560 if test -n "$NM"; then
11561 ac_cv_prog_NM="$NM" # Let the user override the test.
11562else
1c710c3c
DJ
11563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11564for as_dir in $PATH
11565do
11566 IFS=$as_save_IFS
11567 test -z "$as_dir" && as_dir=.
5213506e 11568 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11570 ac_cv_prog_NM="${ncn_progname}"
5213506e 11571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11572 break 2
11573 fi
11574done
5213506e
RW
11575 done
11576IFS=$as_save_IFS
1c710c3c 11577
ca9f4b81
AO
11578fi
11579fi
1c710c3c 11580NM=$ac_cv_prog_NM
ca9f4b81 11581if test -n "$NM"; then
5213506e
RW
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11583$as_echo "$NM" >&6; }
ca9f4b81 11584else
5213506e
RW
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586$as_echo "no" >&6; }
ca9f4b81
AO
11587fi
11588
5213506e 11589
278a7a38
AO
11590 done
11591fi
11592
11593for ncn_progname in nm; do
11594 if test -n "$ncn_tool_prefix"; then
11595 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11596set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11598$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11599if ${ac_cv_prog_NM+:} false; then :
5213506e 11600 $as_echo_n "(cached) " >&6
ca9f4b81 11601else
2693c0b0
PB
11602 if test -n "$NM"; then
11603 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 11604else
1c710c3c
DJ
11605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606for as_dir in $PATH
11607do
11608 IFS=$as_save_IFS
11609 test -z "$as_dir" && as_dir=.
5213506e 11610 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11612 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 11613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11614 break 2
11615 fi
11616done
5213506e
RW
11617 done
11618IFS=$as_save_IFS
1c710c3c 11619
ca9f4b81
AO
11620fi
11621fi
1c710c3c 11622NM=$ac_cv_prog_NM
2693c0b0 11623if test -n "$NM"; then
5213506e
RW
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11625$as_echo "$NM" >&6; }
ca9f4b81 11626else
5213506e
RW
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628$as_echo "no" >&6; }
ca9f4b81 11629fi
1c710c3c 11630
5213506e 11631
2693c0b0 11632 fi
278a7a38
AO
11633 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11635set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11637$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11638if ${ac_cv_prog_NM+:} false; then :
5213506e 11639 $as_echo_n "(cached) " >&6
278a7a38
AO
11640else
11641 if test -n "$NM"; then
11642 ac_cv_prog_NM="$NM" # Let the user override the test.
11643else
11644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645for as_dir in $PATH
11646do
11647 IFS=$as_save_IFS
11648 test -z "$as_dir" && as_dir=.
5213506e 11649 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11651 ac_cv_prog_NM="${ncn_progname}"
5213506e 11652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11653 break 2
11654 fi
11655done
5213506e
RW
11656 done
11657IFS=$as_save_IFS
278a7a38
AO
11658
11659fi
11660fi
11661NM=$ac_cv_prog_NM
11662if test -n "$NM"; then
5213506e
RW
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11664$as_echo "$NM" >&6; }
278a7a38 11665else
5213506e
RW
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11667$as_echo "no" >&6; }
278a7a38
AO
11668fi
11669
5213506e 11670
278a7a38
AO
11671 fi
11672 test -n "$ac_cv_prog_NM" && break
11673done
11674
11675if test -z "$ac_cv_prog_NM" ; then
11676 set dummy nm
11677 if test $build = $host ; then
11678 NM="$2"
11679 else
11680 NM="${ncn_tool_prefix}$2"
11681 fi
11682fi
11683
11684
11685
11686if test -n "$RANLIB"; then
11687 ac_cv_prog_RANLIB=$RANLIB
11688elif test -n "$ac_cv_prog_RANLIB"; then
11689 RANLIB=$ac_cv_prog_RANLIB
11690fi
11691
11692if test -n "$ac_cv_prog_RANLIB"; then
11693 for ncn_progname in ranlib; do
11694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11695set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11697$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11698if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11699 $as_echo_n "(cached) " >&6
278a7a38
AO
11700else
11701 if test -n "$RANLIB"; then
11702 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11703else
11704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705for as_dir in $PATH
11706do
11707 IFS=$as_save_IFS
11708 test -z "$as_dir" && as_dir=.
5213506e 11709 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11711 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11713 break 2
11714 fi
11715done
5213506e
RW
11716 done
11717IFS=$as_save_IFS
278a7a38
AO
11718
11719fi
11720fi
11721RANLIB=$ac_cv_prog_RANLIB
11722if test -n "$RANLIB"; then
5213506e
RW
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11724$as_echo "$RANLIB" >&6; }
278a7a38 11725else
5213506e
RW
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727$as_echo "no" >&6; }
278a7a38
AO
11728fi
11729
5213506e 11730
278a7a38
AO
11731 done
11732fi
ca9f4b81 11733
278a7a38 11734for ncn_progname in ranlib; do
2693c0b0
PB
11735 if test -n "$ncn_tool_prefix"; then
11736 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11737set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11740if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11741 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11742else
11743 if test -n "$RANLIB"; then
11744 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11745else
1c710c3c
DJ
11746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747for as_dir in $PATH
11748do
11749 IFS=$as_save_IFS
11750 test -z "$as_dir" && as_dir=.
5213506e 11751 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11753 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 11754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11755 break 2
11756 fi
11757done
5213506e
RW
11758 done
11759IFS=$as_save_IFS
1c710c3c 11760
ca9f4b81
AO
11761fi
11762fi
1c710c3c 11763RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 11764if test -n "$RANLIB"; then
5213506e
RW
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11766$as_echo "$RANLIB" >&6; }
ca9f4b81 11767else
5213506e
RW
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769$as_echo "no" >&6; }
ca9f4b81
AO
11770fi
11771
5213506e 11772
2693c0b0
PB
11773 fi
11774 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11776set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11778$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11779if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11780 $as_echo_n "(cached) " >&6
ca9f4b81 11781else
2693c0b0
PB
11782 if test -n "$RANLIB"; then
11783 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 11784else
1c710c3c
DJ
11785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786for as_dir in $PATH
11787do
11788 IFS=$as_save_IFS
11789 test -z "$as_dir" && as_dir=.
5213506e 11790 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11792 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11794 break 2
11795 fi
11796done
5213506e
RW
11797 done
11798IFS=$as_save_IFS
1c710c3c 11799
ca9f4b81
AO
11800fi
11801fi
1c710c3c 11802RANLIB=$ac_cv_prog_RANLIB
2693c0b0 11803if test -n "$RANLIB"; then
5213506e
RW
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11805$as_echo "$RANLIB" >&6; }
ca9f4b81 11806else
5213506e
RW
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808$as_echo "no" >&6; }
ca9f4b81 11809fi
1c710c3c 11810
5213506e 11811
ca9f4b81 11812 fi
2693c0b0
PB
11813 test -n "$ac_cv_prog_RANLIB" && break
11814done
11815
11816if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 11817 RANLIB="true"
ca9f4b81
AO
11818fi
11819
278a7a38
AO
11820
11821
11822if test -n "$STRIP"; then
11823 ac_cv_prog_STRIP=$STRIP
11824elif test -n "$ac_cv_prog_STRIP"; then
11825 STRIP=$ac_cv_prog_STRIP
11826fi
11827
11828if test -n "$ac_cv_prog_STRIP"; then
11829 for ncn_progname in strip; do
11830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11831set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11834if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11835 $as_echo_n "(cached) " >&6
278a7a38
AO
11836else
11837 if test -n "$STRIP"; then
11838 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11839else
11840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11841for as_dir in $PATH
11842do
11843 IFS=$as_save_IFS
11844 test -z "$as_dir" && as_dir=.
5213506e 11845 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11847 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 11848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11849 break 2
11850 fi
11851done
5213506e
RW
11852 done
11853IFS=$as_save_IFS
278a7a38
AO
11854
11855fi
11856fi
11857STRIP=$ac_cv_prog_STRIP
11858if test -n "$STRIP"; then
5213506e
RW
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11860$as_echo "$STRIP" >&6; }
278a7a38 11861else
5213506e
RW
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863$as_echo "no" >&6; }
278a7a38
AO
11864fi
11865
5213506e 11866
278a7a38
AO
11867 done
11868fi
11869
11870for ncn_progname in strip; do
2abefe3d
PB
11871 if test -n "$ncn_tool_prefix"; then
11872 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11873set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11875$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11876if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11877 $as_echo_n "(cached) " >&6
2abefe3d
PB
11878else
11879 if test -n "$STRIP"; then
11880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11881else
1c710c3c
DJ
11882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11883for as_dir in $PATH
11884do
11885 IFS=$as_save_IFS
11886 test -z "$as_dir" && as_dir=.
5213506e 11887 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11889 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 11890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11891 break 2
11892 fi
11893done
5213506e
RW
11894 done
11895IFS=$as_save_IFS
1c710c3c 11896
2abefe3d
PB
11897fi
11898fi
1c710c3c 11899STRIP=$ac_cv_prog_STRIP
2abefe3d 11900if test -n "$STRIP"; then
5213506e
RW
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11902$as_echo "$STRIP" >&6; }
2abefe3d 11903else
5213506e
RW
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905$as_echo "no" >&6; }
2abefe3d
PB
11906fi
11907
5213506e 11908
2abefe3d
PB
11909 fi
11910 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11911 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11912set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11915if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11916 $as_echo_n "(cached) " >&6
2abefe3d
PB
11917else
11918 if test -n "$STRIP"; then
11919 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11920else
1c710c3c
DJ
11921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922for as_dir in $PATH
11923do
11924 IFS=$as_save_IFS
11925 test -z "$as_dir" && as_dir=.
5213506e 11926 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11928 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 11929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11930 break 2
11931 fi
11932done
5213506e
RW
11933 done
11934IFS=$as_save_IFS
1c710c3c 11935
2abefe3d
PB
11936fi
11937fi
1c710c3c 11938STRIP=$ac_cv_prog_STRIP
2abefe3d 11939if test -n "$STRIP"; then
5213506e
RW
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11941$as_echo "$STRIP" >&6; }
2abefe3d 11942else
5213506e
RW
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944$as_echo "no" >&6; }
2abefe3d 11945fi
1c710c3c 11946
5213506e 11947
2abefe3d
PB
11948 fi
11949 test -n "$ac_cv_prog_STRIP" && break
11950done
11951
11952if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 11953 STRIP="true"
2abefe3d
PB
11954fi
11955
278a7a38
AO
11956
11957
11958if test -n "$WINDRES"; then
11959 ac_cv_prog_WINDRES=$WINDRES
11960elif test -n "$ac_cv_prog_WINDRES"; then
11961 WINDRES=$ac_cv_prog_WINDRES
11962fi
11963
11964if test -n "$ac_cv_prog_WINDRES"; then
11965 for ncn_progname in windres; do
11966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11967set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11969$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11970if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 11971 $as_echo_n "(cached) " >&6
278a7a38
AO
11972else
11973 if test -n "$WINDRES"; then
11974 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11975else
11976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11977for as_dir in $PATH
11978do
11979 IFS=$as_save_IFS
11980 test -z "$as_dir" && as_dir=.
5213506e 11981 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11983 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 11984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11985 break 2
11986 fi
11987done
5213506e
RW
11988 done
11989IFS=$as_save_IFS
278a7a38
AO
11990
11991fi
11992fi
11993WINDRES=$ac_cv_prog_WINDRES
11994if test -n "$WINDRES"; then
5213506e
RW
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11996$as_echo "$WINDRES" >&6; }
278a7a38 11997else
5213506e
RW
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999$as_echo "no" >&6; }
278a7a38
AO
12000fi
12001
5213506e 12002
278a7a38
AO
12003 done
12004fi
12005
12006for ncn_progname in windres; do
2693c0b0
PB
12007 if test -n "$ncn_tool_prefix"; then
12008 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12009set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12011$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12012if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12013 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12014else
12015 if test -n "$WINDRES"; then
12016 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12017else
1c710c3c
DJ
12018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019for as_dir in $PATH
12020do
12021 IFS=$as_save_IFS
12022 test -z "$as_dir" && as_dir=.
5213506e 12023 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12025 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 12026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12027 break 2
12028 fi
12029done
5213506e
RW
12030 done
12031IFS=$as_save_IFS
1c710c3c 12032
ca9f4b81
AO
12033fi
12034fi
1c710c3c 12035WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 12036if test -n "$WINDRES"; then
5213506e
RW
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12038$as_echo "$WINDRES" >&6; }
ca9f4b81 12039else
5213506e
RW
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041$as_echo "no" >&6; }
ca9f4b81
AO
12042fi
12043
5213506e 12044
2693c0b0
PB
12045 fi
12046 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12048set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12050$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12051if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12052 $as_echo_n "(cached) " >&6
ca9f4b81 12053else
2693c0b0
PB
12054 if test -n "$WINDRES"; then
12055 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 12056else
1c710c3c
DJ
12057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058for as_dir in $PATH
12059do
12060 IFS=$as_save_IFS
12061 test -z "$as_dir" && as_dir=.
5213506e 12062 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12064 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 12065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12066 break 2
12067 fi
12068done
5213506e
RW
12069 done
12070IFS=$as_save_IFS
1c710c3c 12071
ca9f4b81
AO
12072fi
12073fi
1c710c3c 12074WINDRES=$ac_cv_prog_WINDRES
2693c0b0 12075if test -n "$WINDRES"; then
5213506e
RW
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12077$as_echo "$WINDRES" >&6; }
ca9f4b81 12078else
5213506e
RW
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12080$as_echo "no" >&6; }
ca9f4b81 12081fi
1c710c3c 12082
5213506e 12083
2693c0b0
PB
12084 fi
12085 test -n "$ac_cv_prog_WINDRES" && break
12086done
12087
12088if test -z "$ac_cv_prog_WINDRES" ; then
12089 set dummy windres
12090 if test $build = $host ; then
12091 WINDRES="$2"
ca9f4b81 12092 else
2693c0b0 12093 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 12094 fi
ca9f4b81
AO
12095fi
12096
278a7a38
AO
12097
12098
901119ae
KT
12099if test -n "$WINDMC"; then
12100 ac_cv_prog_WINDMC=$WINDMC
12101elif test -n "$ac_cv_prog_WINDMC"; then
12102 WINDMC=$ac_cv_prog_WINDMC
12103fi
12104
12105if test -n "$ac_cv_prog_WINDMC"; then
12106 for ncn_progname in windmc; do
12107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12108set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12110$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12111if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12112 $as_echo_n "(cached) " >&6
901119ae
KT
12113else
12114 if test -n "$WINDMC"; then
12115 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12116else
12117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12118for as_dir in $PATH
12119do
12120 IFS=$as_save_IFS
12121 test -z "$as_dir" && as_dir=.
5213506e 12122 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12124 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 12125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12126 break 2
12127 fi
12128done
5213506e
RW
12129 done
12130IFS=$as_save_IFS
901119ae
KT
12131
12132fi
12133fi
12134WINDMC=$ac_cv_prog_WINDMC
12135if test -n "$WINDMC"; then
5213506e
RW
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12137$as_echo "$WINDMC" >&6; }
901119ae 12138else
5213506e
RW
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140$as_echo "no" >&6; }
901119ae
KT
12141fi
12142
5213506e 12143
901119ae
KT
12144 done
12145fi
12146
12147for ncn_progname in windmc; do
12148 if test -n "$ncn_tool_prefix"; then
12149 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12150set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12152$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12153if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12154 $as_echo_n "(cached) " >&6
901119ae
KT
12155else
12156 if test -n "$WINDMC"; then
12157 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12158else
12159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12160for as_dir in $PATH
12161do
12162 IFS=$as_save_IFS
12163 test -z "$as_dir" && as_dir=.
5213506e 12164 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12166 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 12167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12168 break 2
12169 fi
12170done
5213506e
RW
12171 done
12172IFS=$as_save_IFS
901119ae
KT
12173
12174fi
12175fi
12176WINDMC=$ac_cv_prog_WINDMC
12177if test -n "$WINDMC"; then
5213506e
RW
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12179$as_echo "$WINDMC" >&6; }
901119ae 12180else
5213506e
RW
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12182$as_echo "no" >&6; }
901119ae
KT
12183fi
12184
5213506e 12185
901119ae
KT
12186 fi
12187 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12189set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12191$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12192if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12193 $as_echo_n "(cached) " >&6
901119ae
KT
12194else
12195 if test -n "$WINDMC"; then
12196 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12197else
12198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12199for as_dir in $PATH
12200do
12201 IFS=$as_save_IFS
12202 test -z "$as_dir" && as_dir=.
5213506e 12203 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12205 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 12206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12207 break 2
12208 fi
12209done
5213506e
RW
12210 done
12211IFS=$as_save_IFS
901119ae
KT
12212
12213fi
12214fi
12215WINDMC=$ac_cv_prog_WINDMC
12216if test -n "$WINDMC"; then
5213506e
RW
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12218$as_echo "$WINDMC" >&6; }
901119ae 12219else
5213506e
RW
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12221$as_echo "no" >&6; }
901119ae
KT
12222fi
12223
5213506e 12224
901119ae
KT
12225 fi
12226 test -n "$ac_cv_prog_WINDMC" && break
12227done
12228
12229if test -z "$ac_cv_prog_WINDMC" ; then
12230 set dummy windmc
12231 if test $build = $host ; then
12232 WINDMC="$2"
12233 else
12234 WINDMC="${ncn_tool_prefix}$2"
12235 fi
12236fi
12237
12238
12239
278a7a38
AO
12240if test -n "$OBJCOPY"; then
12241 ac_cv_prog_OBJCOPY=$OBJCOPY
12242elif test -n "$ac_cv_prog_OBJCOPY"; then
12243 OBJCOPY=$ac_cv_prog_OBJCOPY
12244fi
12245
12246if test -n "$ac_cv_prog_OBJCOPY"; then
12247 for ncn_progname in objcopy; do
12248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12249set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12251$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12252if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12253 $as_echo_n "(cached) " >&6
278a7a38
AO
12254else
12255 if test -n "$OBJCOPY"; then
12256 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12257else
12258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12259for as_dir in $PATH
12260do
12261 IFS=$as_save_IFS
12262 test -z "$as_dir" && as_dir=.
5213506e 12263 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12265 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12267 break 2
12268 fi
12269done
5213506e
RW
12270 done
12271IFS=$as_save_IFS
278a7a38
AO
12272
12273fi
12274fi
12275OBJCOPY=$ac_cv_prog_OBJCOPY
12276if test -n "$OBJCOPY"; then
5213506e
RW
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12278$as_echo "$OBJCOPY" >&6; }
278a7a38 12279else
5213506e
RW
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281$as_echo "no" >&6; }
278a7a38
AO
12282fi
12283
5213506e 12284
278a7a38
AO
12285 done
12286fi
12287
12288for ncn_progname in objcopy; do
2693c0b0
PB
12289 if test -n "$ncn_tool_prefix"; then
12290 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12291set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12293$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12294if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12295 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12296else
12297 if test -n "$OBJCOPY"; then
12298 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12299else
1c710c3c
DJ
12300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12301for as_dir in $PATH
12302do
12303 IFS=$as_save_IFS
12304 test -z "$as_dir" && as_dir=.
5213506e 12305 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12307 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 12308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12309 break 2
12310 fi
12311done
5213506e
RW
12312 done
12313IFS=$as_save_IFS
1c710c3c 12314
ca9f4b81
AO
12315fi
12316fi
1c710c3c 12317OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 12318if test -n "$OBJCOPY"; then
5213506e
RW
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12320$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12321else
5213506e
RW
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323$as_echo "no" >&6; }
ca9f4b81
AO
12324fi
12325
5213506e 12326
2693c0b0
PB
12327 fi
12328 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12330set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12332$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12333if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12334 $as_echo_n "(cached) " >&6
ca9f4b81 12335else
2693c0b0
PB
12336 if test -n "$OBJCOPY"; then
12337 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 12338else
1c710c3c
DJ
12339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12340for as_dir in $PATH
12341do
12342 IFS=$as_save_IFS
12343 test -z "$as_dir" && as_dir=.
5213506e 12344 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12346 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12348 break 2
12349 fi
12350done
5213506e
RW
12351 done
12352IFS=$as_save_IFS
1c710c3c 12353
ca9f4b81
AO
12354fi
12355fi
1c710c3c 12356OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 12357if test -n "$OBJCOPY"; then
5213506e
RW
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12359$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12360else
5213506e
RW
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362$as_echo "no" >&6; }
ca9f4b81 12363fi
1c710c3c 12364
5213506e 12365
2693c0b0
PB
12366 fi
12367 test -n "$ac_cv_prog_OBJCOPY" && break
12368done
12369
12370if test -z "$ac_cv_prog_OBJCOPY" ; then
12371 set dummy objcopy
12372 if test $build = $host ; then
12373 OBJCOPY="$2"
ca9f4b81 12374 else
2693c0b0 12375 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 12376 fi
ca9f4b81
AO
12377fi
12378
278a7a38
AO
12379
12380
12381if test -n "$OBJDUMP"; then
12382 ac_cv_prog_OBJDUMP=$OBJDUMP
12383elif test -n "$ac_cv_prog_OBJDUMP"; then
12384 OBJDUMP=$ac_cv_prog_OBJDUMP
12385fi
12386
12387if test -n "$ac_cv_prog_OBJDUMP"; then
12388 for ncn_progname in objdump; do
12389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12390set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12393if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12394 $as_echo_n "(cached) " >&6
278a7a38
AO
12395else
12396 if test -n "$OBJDUMP"; then
12397 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12398else
12399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400for as_dir in $PATH
12401do
12402 IFS=$as_save_IFS
12403 test -z "$as_dir" && as_dir=.
5213506e 12404 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12406 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12408 break 2
12409 fi
12410done
5213506e
RW
12411 done
12412IFS=$as_save_IFS
278a7a38
AO
12413
12414fi
12415fi
12416OBJDUMP=$ac_cv_prog_OBJDUMP
12417if test -n "$OBJDUMP"; then
5213506e
RW
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12419$as_echo "$OBJDUMP" >&6; }
278a7a38 12420else
5213506e
RW
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422$as_echo "no" >&6; }
278a7a38
AO
12423fi
12424
5213506e 12425
278a7a38
AO
12426 done
12427fi
12428
12429for ncn_progname in objdump; do
2693c0b0
PB
12430 if test -n "$ncn_tool_prefix"; then
12431 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12432set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12434$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12435if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12436 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12437else
12438 if test -n "$OBJDUMP"; then
12439 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12440else
1c710c3c
DJ
12441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442for as_dir in $PATH
12443do
12444 IFS=$as_save_IFS
12445 test -z "$as_dir" && as_dir=.
5213506e 12446 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12448 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 12449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12450 break 2
12451 fi
12452done
5213506e
RW
12453 done
12454IFS=$as_save_IFS
1c710c3c 12455
ca9f4b81
AO
12456fi
12457fi
1c710c3c 12458OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 12459if test -n "$OBJDUMP"; then
5213506e
RW
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12461$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12462else
5213506e
RW
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464$as_echo "no" >&6; }
ca9f4b81
AO
12465fi
12466
5213506e 12467
2693c0b0
PB
12468 fi
12469 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12471set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12474if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12475 $as_echo_n "(cached) " >&6
ca9f4b81 12476else
2693c0b0
PB
12477 if test -n "$OBJDUMP"; then
12478 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 12479else
1c710c3c
DJ
12480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481for as_dir in $PATH
12482do
12483 IFS=$as_save_IFS
12484 test -z "$as_dir" && as_dir=.
5213506e 12485 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12487 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12489 break 2
12490 fi
12491done
5213506e
RW
12492 done
12493IFS=$as_save_IFS
1c710c3c 12494
ca9f4b81
AO
12495fi
12496fi
1c710c3c 12497OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 12498if test -n "$OBJDUMP"; then
5213506e
RW
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12500$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12501else
5213506e
RW
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503$as_echo "no" >&6; }
ca9f4b81 12504fi
1c710c3c 12505
5213506e 12506
2693c0b0
PB
12507 fi
12508 test -n "$ac_cv_prog_OBJDUMP" && break
12509done
12510
12511if test -z "$ac_cv_prog_OBJDUMP" ; then
12512 set dummy objdump
12513 if test $build = $host ; then
12514 OBJDUMP="$2"
ca9f4b81 12515 else
2693c0b0 12516 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 12517 fi
ca9f4b81
AO
12518fi
12519
671aa708
NN
12520
12521
e4a9a572
IS
12522if test -n "$OTOOL"; then
12523 ac_cv_prog_OTOOL=$OTOOL
12524elif test -n "$ac_cv_prog_OTOOL"; then
12525 OTOOL=$ac_cv_prog_OTOOL
12526fi
12527
12528if test -n "$ac_cv_prog_OTOOL"; then
12529 for ncn_progname in otool; do
12530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12531set dummy ${ncn_progname}; ac_word=$2
12532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12533$as_echo_n "checking for $ac_word... " >&6; }
12534if ${ac_cv_prog_OTOOL+:} false; then :
12535 $as_echo_n "(cached) " >&6
12536else
12537 if test -n "$OTOOL"; then
12538 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12539else
12540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12541for as_dir in $PATH
12542do
12543 IFS=$as_save_IFS
12544 test -z "$as_dir" && as_dir=.
12545 for ac_exec_ext in '' $ac_executable_extensions; do
12546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12547 ac_cv_prog_OTOOL="${ncn_progname}"
12548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12549 break 2
12550 fi
12551done
12552 done
12553IFS=$as_save_IFS
12554
12555fi
12556fi
12557OTOOL=$ac_cv_prog_OTOOL
12558if test -n "$OTOOL"; then
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12560$as_echo "$OTOOL" >&6; }
12561else
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563$as_echo "no" >&6; }
12564fi
12565
12566
12567 done
12568fi
12569
12570for ncn_progname in otool; do
12571 if test -n "$ncn_tool_prefix"; then
12572 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12573set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12575$as_echo_n "checking for $ac_word... " >&6; }
12576if ${ac_cv_prog_OTOOL+:} false; then :
12577 $as_echo_n "(cached) " >&6
12578else
12579 if test -n "$OTOOL"; then
12580 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12581else
12582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583for as_dir in $PATH
12584do
12585 IFS=$as_save_IFS
12586 test -z "$as_dir" && as_dir=.
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12589 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12591 break 2
12592 fi
12593done
12594 done
12595IFS=$as_save_IFS
12596
12597fi
12598fi
12599OTOOL=$ac_cv_prog_OTOOL
12600if test -n "$OTOOL"; then
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12602$as_echo "$OTOOL" >&6; }
12603else
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605$as_echo "no" >&6; }
12606fi
12607
12608
12609 fi
12610 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12612set dummy ${ncn_progname}; ac_word=$2
12613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12614$as_echo_n "checking for $ac_word... " >&6; }
12615if ${ac_cv_prog_OTOOL+:} false; then :
12616 $as_echo_n "(cached) " >&6
12617else
12618 if test -n "$OTOOL"; then
12619 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12620else
12621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12622for as_dir in $PATH
12623do
12624 IFS=$as_save_IFS
12625 test -z "$as_dir" && as_dir=.
12626 for ac_exec_ext in '' $ac_executable_extensions; do
12627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12628 ac_cv_prog_OTOOL="${ncn_progname}"
12629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12630 break 2
12631 fi
12632done
12633 done
12634IFS=$as_save_IFS
12635
12636fi
12637fi
12638OTOOL=$ac_cv_prog_OTOOL
12639if test -n "$OTOOL"; then
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12641$as_echo "$OTOOL" >&6; }
12642else
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644$as_echo "no" >&6; }
12645fi
12646
12647
12648 fi
12649 test -n "$ac_cv_prog_OTOOL" && break
12650done
12651
12652if test -z "$ac_cv_prog_OTOOL" ; then
12653 set dummy otool
12654 if test $build = $host ; then
12655 OTOOL="$2"
12656 else
12657 OTOOL="${ncn_tool_prefix}$2"
12658 fi
12659fi
12660
12661
12662
e7a82751
RM
12663if test -n "$READELF"; then
12664 ac_cv_prog_READELF=$READELF
12665elif test -n "$ac_cv_prog_READELF"; then
12666 READELF=$ac_cv_prog_READELF
12667fi
12668
12669if test -n "$ac_cv_prog_READELF"; then
12670 for ncn_progname in readelf; do
12671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12672set dummy ${ncn_progname}; ac_word=$2
12673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12674$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12675if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12676 $as_echo_n "(cached) " >&6
12677else
12678 if test -n "$READELF"; then
12679 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12680else
12681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12682for as_dir in $PATH
12683do
12684 IFS=$as_save_IFS
12685 test -z "$as_dir" && as_dir=.
12686 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12688 ac_cv_prog_READELF="${ncn_progname}"
12689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12690 break 2
12691 fi
12692done
12693 done
12694IFS=$as_save_IFS
12695
12696fi
12697fi
12698READELF=$ac_cv_prog_READELF
12699if test -n "$READELF"; then
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12701$as_echo "$READELF" >&6; }
12702else
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704$as_echo "no" >&6; }
12705fi
12706
12707
12708 done
12709fi
12710
12711for ncn_progname in readelf; do
12712 if test -n "$ncn_tool_prefix"; then
12713 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12714set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12716$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12717if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12718 $as_echo_n "(cached) " >&6
12719else
12720 if test -n "$READELF"; then
12721 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12722else
12723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724for as_dir in $PATH
12725do
12726 IFS=$as_save_IFS
12727 test -z "$as_dir" && as_dir=.
12728 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12730 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12732 break 2
12733 fi
12734done
12735 done
12736IFS=$as_save_IFS
12737
12738fi
12739fi
12740READELF=$ac_cv_prog_READELF
12741if test -n "$READELF"; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12743$as_echo "$READELF" >&6; }
12744else
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746$as_echo "no" >&6; }
12747fi
12748
12749
12750 fi
12751 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12753set dummy ${ncn_progname}; ac_word=$2
12754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12755$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12756if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12757 $as_echo_n "(cached) " >&6
12758else
12759 if test -n "$READELF"; then
12760 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12761else
12762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12763for as_dir in $PATH
12764do
12765 IFS=$as_save_IFS
12766 test -z "$as_dir" && as_dir=.
12767 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12769 ac_cv_prog_READELF="${ncn_progname}"
12770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12771 break 2
12772 fi
12773done
12774 done
12775IFS=$as_save_IFS
12776
12777fi
12778fi
12779READELF=$ac_cv_prog_READELF
12780if test -n "$READELF"; then
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12782$as_echo "$READELF" >&6; }
12783else
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785$as_echo "no" >&6; }
12786fi
12787
12788
12789 fi
12790 test -n "$ac_cv_prog_READELF" && break
12791done
12792
12793if test -z "$ac_cv_prog_READELF" ; then
12794 set dummy readelf
12795 if test $build = $host ; then
12796 READELF="$2"
12797 else
12798 READELF="${ncn_tool_prefix}$2"
12799 fi
12800fi
12801
12802
12803
671aa708
NN
12804
12805
12806
5fee5ec3
IB
12807
12808
2abefe3d 12809# Target tools.
1c710c3c 12810
5213506e
RW
12811# Check whether --with-build-time-tools was given.
12812if test "${with_build_time_tools+set}" = set; then :
12813 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
12814 x/*) ;;
12815 *)
12816 with_build_time_tools=
5213506e
RW
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12818$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
12819 ;;
12820 esac
ca9f4b81 12821else
e8b05380 12822 with_build_time_tools=
5213506e
RW
12823fi
12824
ca9f4b81 12825
278a7a38
AO
12826
12827
12828if test -n "$CC_FOR_TARGET"; then
12829 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12830elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12831 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12832fi
12833
12834if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12835 for ncn_progname in cc gcc; do
12836 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12837set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12839$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12840if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12841 $as_echo_n "(cached) " >&6
278a7a38
AO
12842else
12843 if test -n "$CC_FOR_TARGET"; then
12844 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12845else
12846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12847for as_dir in $PATH
12848do
12849 IFS=$as_save_IFS
12850 test -z "$as_dir" && as_dir=.
5213506e 12851 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12853 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 12854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12855 break 2
12856 fi
12857done
5213506e
RW
12858 done
12859IFS=$as_save_IFS
278a7a38
AO
12860
12861fi
12862fi
12863CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12864if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12866$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 12867else
5213506e
RW
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12869$as_echo "no" >&6; }
278a7a38
AO
12870fi
12871
5213506e 12872
278a7a38
AO
12873 done
12874fi
12875
12876if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12877 for ncn_progname in cc gcc; do
5213506e
RW
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12879$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12880 if test -x $with_build_time_tools/${ncn_progname}; then
12881 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12883$as_echo "yes" >&6; }
72a7ab82 12884 break
e8b05380 12885 else
5213506e
RW
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12887$as_echo "no" >&6; }
72a7ab82
AP
12888 fi
12889 done
4de997d1
PB
12890fi
12891
e8b05380
PB
12892if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12893 for ncn_progname in cc gcc; do
12894 if test -n "$ncn_target_tool_prefix"; then
12895 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12896set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12898$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12899if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12900 $as_echo_n "(cached) " >&6
4de997d1
PB
12901else
12902 if test -n "$CC_FOR_TARGET"; then
12903 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12904else
1c710c3c
DJ
12905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906for as_dir in $PATH
12907do
12908 IFS=$as_save_IFS
12909 test -z "$as_dir" && as_dir=.
5213506e 12910 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12912 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12914 break 2
12915 fi
12916done
5213506e
RW
12917 done
12918IFS=$as_save_IFS
1c710c3c 12919
4de997d1
PB
12920fi
12921fi
1c710c3c 12922CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 12923if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12925$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 12926else
5213506e
RW
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928$as_echo "no" >&6; }
4de997d1
PB
12929fi
12930
5213506e 12931
e8b05380
PB
12932 fi
12933 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12935set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12937$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12938if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12939 $as_echo_n "(cached) " >&6
4de997d1 12940else
2693c0b0
PB
12941 if test -n "$CC_FOR_TARGET"; then
12942 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 12943else
1c710c3c
DJ
12944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945for as_dir in $PATH
12946do
12947 IFS=$as_save_IFS
12948 test -z "$as_dir" && as_dir=.
5213506e 12949 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12951 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 12952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12953 break 2
12954 fi
12955done
5213506e
RW
12956 done
12957IFS=$as_save_IFS
1c710c3c 12958
4de997d1
PB
12959fi
12960fi
1c710c3c 12961CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 12962if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12964$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 12965else
5213506e
RW
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967$as_echo "no" >&6; }
4de997d1 12968fi
1c710c3c 12969
5213506e 12970
e8b05380
PB
12971 fi
12972 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12973 done
12974fi
1c710c3c 12975
2693c0b0
PB
12976if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12977 set dummy cc gcc
12978 if test $build = $target ; then
12979 CC_FOR_TARGET="$2"
4de997d1 12980 else
2693c0b0 12981 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 12982 fi
1c00b503
PB
12983else
12984 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
12985fi
12986
278a7a38
AO
12987
12988
12989if test -n "$CXX_FOR_TARGET"; then
12990 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12991elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12992 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12993fi
12994
12995if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12996 for ncn_progname in c++ g++ cxx gxx; do
12997 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12998set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13000$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13001if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13002 $as_echo_n "(cached) " >&6
278a7a38
AO
13003else
13004 if test -n "$CXX_FOR_TARGET"; then
13005 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13006else
13007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008for as_dir in $PATH
13009do
13010 IFS=$as_save_IFS
13011 test -z "$as_dir" && as_dir=.
5213506e 13012 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13014 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 13015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13016 break 2
13017 fi
13018done
5213506e
RW
13019 done
13020IFS=$as_save_IFS
278a7a38
AO
13021
13022fi
13023fi
13024CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13025if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13027$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 13028else
5213506e
RW
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030$as_echo "no" >&6; }
278a7a38
AO
13031fi
13032
5213506e 13033
278a7a38
AO
13034 done
13035fi
13036
13037if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13038 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13040$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13041 if test -x $with_build_time_tools/${ncn_progname}; then
13042 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13044$as_echo "yes" >&6; }
e8b05380
PB
13045 break
13046 else
5213506e
RW
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13048$as_echo "no" >&6; }
e8b05380
PB
13049 fi
13050 done
13051fi
13052
13053if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13054 for ncn_progname in c++ g++ cxx gxx; do
13055 if test -n "$ncn_target_tool_prefix"; then
13056 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13057set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13059$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13060if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13061 $as_echo_n "(cached) " >&6
4de997d1
PB
13062else
13063 if test -n "$CXX_FOR_TARGET"; then
13064 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13065else
1c710c3c
DJ
13066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13067for as_dir in $PATH
13068do
13069 IFS=$as_save_IFS
13070 test -z "$as_dir" && as_dir=.
5213506e 13071 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13073 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13075 break 2
13076 fi
13077done
5213506e
RW
13078 done
13079IFS=$as_save_IFS
1c710c3c 13080
4de997d1
PB
13081fi
13082fi
1c710c3c 13083CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 13084if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13086$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 13087else
5213506e
RW
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089$as_echo "no" >&6; }
4de997d1
PB
13090fi
13091
5213506e 13092
e8b05380
PB
13093 fi
13094 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13095 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13096set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13098$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13099if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13100 $as_echo_n "(cached) " >&6
4de997d1 13101else
2693c0b0
PB
13102 if test -n "$CXX_FOR_TARGET"; then
13103 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 13104else
1c710c3c
DJ
13105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13106for as_dir in $PATH
13107do
13108 IFS=$as_save_IFS
13109 test -z "$as_dir" && as_dir=.
5213506e 13110 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13112 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 13113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13114 break 2
13115 fi
13116done
5213506e
RW
13117 done
13118IFS=$as_save_IFS
1c710c3c 13119
4de997d1
PB
13120fi
13121fi
1c710c3c 13122CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 13123if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13125$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 13126else
5213506e
RW
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128$as_echo "no" >&6; }
4de997d1 13129fi
1c710c3c 13130
5213506e 13131
e8b05380
PB
13132 fi
13133 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13134 done
13135fi
1c710c3c 13136
2693c0b0
PB
13137if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13138 set dummy c++ g++ cxx gxx
13139 if test $build = $target ; then
13140 CXX_FOR_TARGET="$2"
4de997d1 13141 else
2693c0b0 13142 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 13143 fi
1c00b503
PB
13144else
13145 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
13146fi
13147
278a7a38
AO
13148
13149
13150if test -n "$GCC_FOR_TARGET"; then
13151 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13152elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13153 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13154fi
13155
13156if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13157 for ncn_progname in gcc; do
13158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13159set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13161$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13162if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13163 $as_echo_n "(cached) " >&6
278a7a38
AO
13164else
13165 if test -n "$GCC_FOR_TARGET"; then
13166 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13167else
13168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169for as_dir in $PATH
13170do
13171 IFS=$as_save_IFS
13172 test -z "$as_dir" && as_dir=.
5213506e 13173 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13175 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 13176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13177 break 2
13178 fi
13179done
5213506e
RW
13180 done
13181IFS=$as_save_IFS
278a7a38
AO
13182
13183fi
13184fi
13185GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13186if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13188$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 13189else
5213506e
RW
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191$as_echo "no" >&6; }
278a7a38
AO
13192fi
13193
5213506e 13194
278a7a38
AO
13195 done
13196fi
13197
13198if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13199 for ncn_progname in gcc; do
5213506e
RW
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13201$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13202 if test -x $with_build_time_tools/${ncn_progname}; then
13203 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13205$as_echo "yes" >&6; }
e8b05380
PB
13206 break
13207 else
5213506e
RW
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209$as_echo "no" >&6; }
e8b05380
PB
13210 fi
13211 done
13212fi
13213
13214if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13215 for ncn_progname in gcc; do
13216 if test -n "$ncn_target_tool_prefix"; then
13217 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13218set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13220$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13221if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13222 $as_echo_n "(cached) " >&6
ca9f4b81 13223else
e8b05380
PB
13224 if test -n "$GCC_FOR_TARGET"; then
13225 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13226else
1c710c3c
DJ
13227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228for as_dir in $PATH
13229do
13230 IFS=$as_save_IFS
13231 test -z "$as_dir" && as_dir=.
5213506e 13232 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13234 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13236 break 2
13237 fi
13238done
5213506e
RW
13239 done
13240IFS=$as_save_IFS
1c710c3c 13241
ca9f4b81
AO
13242fi
13243fi
1c710c3c 13244GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13245if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13247$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13248else
5213506e
RW
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13250$as_echo "no" >&6; }
ca9f4b81
AO
13251fi
13252
5213506e 13253
e8b05380
PB
13254 fi
13255 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13257set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13259$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13260if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13261 $as_echo_n "(cached) " >&6
ca9f4b81 13262else
e8b05380
PB
13263 if test -n "$GCC_FOR_TARGET"; then
13264 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13265else
1c710c3c
DJ
13266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267for as_dir in $PATH
13268do
13269 IFS=$as_save_IFS
13270 test -z "$as_dir" && as_dir=.
5213506e 13271 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13273 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 13274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13275 break 2
13276 fi
13277done
5213506e
RW
13278 done
13279IFS=$as_save_IFS
1c710c3c 13280
ca9f4b81
AO
13281fi
13282fi
1c710c3c 13283GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13284if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13286$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13287else
5213506e
RW
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13289$as_echo "no" >&6; }
ca9f4b81 13290fi
1c710c3c 13291
5213506e 13292
e8b05380
PB
13293 fi
13294 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13295 done
13296fi
1c710c3c 13297
e8b05380
PB
13298if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13299 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
13300else
13301 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
13302fi
13303
278a7a38
AO
13304
13305
278a7a38
AO
13306if test -n "$GFORTRAN_FOR_TARGET"; then
13307 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13308elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13309 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
13310fi
13311
278a7a38
AO
13312if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13313 for ncn_progname in gfortran; do
13314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 13315set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13318if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13319 $as_echo_n "(cached) " >&6
e8b05380 13320else
278a7a38
AO
13321 if test -n "$GFORTRAN_FOR_TARGET"; then
13322 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 13323else
1c710c3c
DJ
13324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325for as_dir in $PATH
13326do
13327 IFS=$as_save_IFS
13328 test -z "$as_dir" && as_dir=.
5213506e 13329 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13331 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13333 break 2
13334 fi
13335done
5213506e
RW
13336 done
13337IFS=$as_save_IFS
1c710c3c 13338
e8b05380
PB
13339fi
13340fi
278a7a38
AO
13341GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13342if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13344$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13345else
5213506e
RW
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347$as_echo "no" >&6; }
e8b05380 13348fi
1c710c3c 13349
5213506e 13350
e8b05380
PB
13351 done
13352fi
1c710c3c 13353
278a7a38 13354if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13355 for ncn_progname in gfortran; do
5213506e
RW
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13357$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13358 if test -x $with_build_time_tools/${ncn_progname}; then
13359 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13361$as_echo "yes" >&6; }
e8b05380
PB
13362 break
13363 else
5213506e
RW
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13365$as_echo "no" >&6; }
e8b05380
PB
13366 fi
13367 done
13368fi
13369
13370if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13371 for ncn_progname in gfortran; do
13372 if test -n "$ncn_target_tool_prefix"; then
13373 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13374set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13376$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13377if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13378 $as_echo_n "(cached) " >&6
e8b05380
PB
13379else
13380 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
13381 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13382else
13383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13384for as_dir in $PATH
13385do
13386 IFS=$as_save_IFS
13387 test -z "$as_dir" && as_dir=.
5213506e 13388 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13390 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13392 break 2
13393 fi
13394done
5213506e
RW
13395 done
13396IFS=$as_save_IFS
1c710c3c 13397
e8b05380
PB
13398fi
13399fi
1c710c3c 13400GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13401if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13403$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13404else
5213506e
RW
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406$as_echo "no" >&6; }
e8b05380
PB
13407fi
13408
5213506e 13409
e8b05380
PB
13410 fi
13411 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13413set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13415$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13416if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13417 $as_echo_n "(cached) " >&6
e8b05380
PB
13418else
13419 if test -n "$GFORTRAN_FOR_TARGET"; then
13420 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13421else
1c710c3c
DJ
13422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13423for as_dir in $PATH
13424do
13425 IFS=$as_save_IFS
13426 test -z "$as_dir" && as_dir=.
5213506e 13427 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13429 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13431 break 2
13432 fi
13433done
5213506e
RW
13434 done
13435IFS=$as_save_IFS
1c710c3c 13436
e8b05380
PB
13437fi
13438fi
1c710c3c 13439GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13440if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13442$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13443else
5213506e
RW
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13445$as_echo "no" >&6; }
e8b05380 13446fi
1c710c3c 13447
5213506e 13448
e8b05380
PB
13449 fi
13450 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13451 done
13452fi
1c710c3c 13453
e8b05380
PB
13454if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13455 set dummy gfortran
2693c0b0 13456 if test $build = $target ; then
e8b05380 13457 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 13458 else
e8b05380
PB
13459 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13460 fi
1c00b503
PB
13461else
13462 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
13463fi
13464
13465
13466
632e2a07
ILT
13467if test -n "$GOC_FOR_TARGET"; then
13468 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13469elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13470 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13471fi
13472
13473if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13474 for ncn_progname in gccgo; do
13475 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13476set dummy ${ncn_progname}; ac_word=$2
13477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13478$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13479if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13480 $as_echo_n "(cached) " >&6
13481else
13482 if test -n "$GOC_FOR_TARGET"; then
13483 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13484else
13485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13486for as_dir in $PATH
13487do
13488 IFS=$as_save_IFS
13489 test -z "$as_dir" && as_dir=.
13490 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13492 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13494 break 2
13495 fi
13496done
13497 done
13498IFS=$as_save_IFS
13499
13500fi
13501fi
13502GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13503if test -n "$GOC_FOR_TARGET"; then
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13505$as_echo "$GOC_FOR_TARGET" >&6; }
13506else
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508$as_echo "no" >&6; }
13509fi
13510
13511
13512 done
13513fi
13514
13515if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13516 for ncn_progname in gccgo; do
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13518$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13519 if test -x $with_build_time_tools/${ncn_progname}; then
13520 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13522$as_echo "yes" >&6; }
13523 break
13524 else
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526$as_echo "no" >&6; }
13527 fi
13528 done
13529fi
13530
13531if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13532 for ncn_progname in gccgo; do
13533 if test -n "$ncn_target_tool_prefix"; then
13534 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13535set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13537$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13538if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13539 $as_echo_n "(cached) " >&6
13540else
13541 if test -n "$GOC_FOR_TARGET"; then
13542 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13543else
13544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13545for as_dir in $PATH
13546do
13547 IFS=$as_save_IFS
13548 test -z "$as_dir" && as_dir=.
13549 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13551 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13553 break 2
13554 fi
13555done
13556 done
13557IFS=$as_save_IFS
13558
13559fi
13560fi
13561GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13562if test -n "$GOC_FOR_TARGET"; then
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13564$as_echo "$GOC_FOR_TARGET" >&6; }
13565else
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13567$as_echo "no" >&6; }
13568fi
13569
13570
13571 fi
13572 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13574set dummy ${ncn_progname}; ac_word=$2
13575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13576$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13577if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13578 $as_echo_n "(cached) " >&6
13579else
13580 if test -n "$GOC_FOR_TARGET"; then
13581 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13582else
13583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13584for as_dir in $PATH
13585do
13586 IFS=$as_save_IFS
13587 test -z "$as_dir" && as_dir=.
13588 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13590 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13592 break 2
13593 fi
13594done
13595 done
13596IFS=$as_save_IFS
13597
13598fi
13599fi
13600GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13601if test -n "$GOC_FOR_TARGET"; then
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13603$as_echo "$GOC_FOR_TARGET" >&6; }
13604else
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13606$as_echo "no" >&6; }
13607fi
13608
13609
13610 fi
13611 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13612 done
13613fi
13614
13615if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13616 set dummy gccgo
13617 if test $build = $target ; then
13618 GOC_FOR_TARGET="$2"
13619 else
13620 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13621 fi
13622else
13623 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13624fi
13625
13626
13627
b4c522fa
IB
13628if test -n "$GDC_FOR_TARGET"; then
13629 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13630elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13631 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13632fi
13633
13634if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13635 for ncn_progname in gdc; do
13636 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13637set dummy ${ncn_progname}; ac_word=$2
13638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13639$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13640if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13641 $as_echo_n "(cached) " >&6
13642else
13643 if test -n "$GDC_FOR_TARGET"; then
13644 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13645else
13646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13647for as_dir in $PATH
13648do
13649 IFS=$as_save_IFS
13650 test -z "$as_dir" && as_dir=.
13651 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13653 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13655 break 2
13656 fi
13657done
13658 done
13659IFS=$as_save_IFS
13660
13661fi
13662fi
13663GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13664if test -n "$GDC_FOR_TARGET"; then
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13666$as_echo "$GDC_FOR_TARGET" >&6; }
13667else
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13669$as_echo "no" >&6; }
13670fi
13671
13672
13673 done
13674fi
13675
13676if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13677 for ncn_progname in gdc; do
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13679$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13680 if test -x $with_build_time_tools/${ncn_progname}; then
13681 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13683$as_echo "yes" >&6; }
13684 break
13685 else
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13687$as_echo "no" >&6; }
13688 fi
13689 done
13690fi
13691
13692if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13693 for ncn_progname in gdc; do
13694 if test -n "$ncn_target_tool_prefix"; then
13695 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13696set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13698$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13699if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13700 $as_echo_n "(cached) " >&6
13701else
13702 if test -n "$GDC_FOR_TARGET"; then
13703 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13704else
13705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706for as_dir in $PATH
13707do
13708 IFS=$as_save_IFS
13709 test -z "$as_dir" && as_dir=.
13710 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13712 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13714 break 2
13715 fi
13716done
13717 done
13718IFS=$as_save_IFS
13719
13720fi
13721fi
13722GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13723if test -n "$GDC_FOR_TARGET"; then
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13725$as_echo "$GDC_FOR_TARGET" >&6; }
13726else
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728$as_echo "no" >&6; }
13729fi
13730
13731
13732 fi
13733 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13735set dummy ${ncn_progname}; ac_word=$2
13736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13737$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13738if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13739 $as_echo_n "(cached) " >&6
13740else
13741 if test -n "$GDC_FOR_TARGET"; then
13742 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13743else
13744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13745for as_dir in $PATH
13746do
13747 IFS=$as_save_IFS
13748 test -z "$as_dir" && as_dir=.
13749 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13751 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13753 break 2
13754 fi
13755done
13756 done
13757IFS=$as_save_IFS
13758
13759fi
13760fi
13761GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13762if test -n "$GDC_FOR_TARGET"; then
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13764$as_echo "$GDC_FOR_TARGET" >&6; }
13765else
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767$as_echo "no" >&6; }
13768fi
13769
13770
13771 fi
13772 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13773 done
13774fi
13775
13776if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13777 set dummy gdc
13778 if test $build = $target ; then
13779 GDC_FOR_TARGET="$2"
13780 else
13781 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13782 fi
13783else
13784 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13785fi
13786
13787
13788
e8b05380
PB
13789cat > conftest.c << \EOF
13790#ifdef __GNUC__
13791 gcc_yay;
13792#endif
13793EOF
13794if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13795 have_gcc_for_target=yes
13796else
13797 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13798 have_gcc_for_target=no
13799fi
13800rm conftest.c
13801
13802
13803
13804
13805if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13806 if test -n "$with_build_time_tools"; then
5213506e
RW
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13808$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13809 if test -x $with_build_time_tools/ar; then
13810 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13811 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13813$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 13814 else
5213506e
RW
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13816$as_echo "no" >&6; }
d1f8db0c 13817 fi
e8b05380
PB
13818 elif test $build != $host && test $have_gcc_for_target = yes; then
13819 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
13820 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13821 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
13822 fi
13823fi
3e19841a 13824if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13825 # Extract the first word of "ar", so it can be a program name with args.
13826set dummy ar; ac_word=$2
5213506e
RW
13827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13828$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13829if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
5213506e 13830 $as_echo_n "(cached) " >&6
e8b05380 13831else
1c710c3c
DJ
13832 case $AR_FOR_TARGET in
13833 [\\/]* | ?:[\\/]*)
e8b05380
PB
13834 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13835 ;;
e8b05380 13836 *)
1c710c3c
DJ
13837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13838for as_dir in $gcc_cv_tool_dirs
13839do
13840 IFS=$as_save_IFS
13841 test -z "$as_dir" && as_dir=.
5213506e 13842 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13844 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13846 break 2
13847 fi
13848done
5213506e
RW
13849 done
13850IFS=$as_save_IFS
1c710c3c 13851
e8b05380
PB
13852 ;;
13853esac
13854fi
1c710c3c 13855AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 13856if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13858$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 13859else
5213506e
RW
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13861$as_echo "no" >&6; }
4de997d1
PB
13862fi
13863
5213506e 13864
e8b05380
PB
13865fi
13866if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
13867
13868
13869if test -n "$AR_FOR_TARGET"; then
13870 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13871elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13872 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13873fi
13874
13875if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13876 for ncn_progname in ar; do
13877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13878set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13880$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13881if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 13882 $as_echo_n "(cached) " >&6
278a7a38
AO
13883else
13884 if test -n "$AR_FOR_TARGET"; then
13885 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13886else
13887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13888for as_dir in $PATH
13889do
13890 IFS=$as_save_IFS
13891 test -z "$as_dir" && as_dir=.
5213506e 13892 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13894 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 13895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13896 break 2
13897 fi
13898done
5213506e
RW
13899 done
13900IFS=$as_save_IFS
278a7a38
AO
13901
13902fi
13903fi
13904AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13905if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13907$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 13908else
5213506e
RW
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13910$as_echo "no" >&6; }
278a7a38
AO
13911fi
13912
5213506e 13913
278a7a38
AO
13914 done
13915fi
13916
13917if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13918 for ncn_progname in ar; do
5213506e
RW
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13920$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13921 if test -x $with_build_time_tools/${ncn_progname}; then
13922 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13924$as_echo "yes" >&6; }
e8b05380
PB
13925 break
13926 else
5213506e
RW
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13928$as_echo "no" >&6; }
e8b05380
PB
13929 fi
13930 done
13931fi
13932
13933if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13934 for ncn_progname in ar; do
13935 if test -n "$ncn_target_tool_prefix"; then
13936 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13937set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13939$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13940if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 13941 $as_echo_n "(cached) " >&6
4de997d1 13942else
e8b05380
PB
13943 if test -n "$AR_FOR_TARGET"; then
13944 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 13945else
1c710c3c
DJ
13946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13947for as_dir in $PATH
13948do
13949 IFS=$as_save_IFS
13950 test -z "$as_dir" && as_dir=.
5213506e 13951 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13953 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13955 break 2
13956 fi
13957done
5213506e
RW
13958 done
13959IFS=$as_save_IFS
1c710c3c 13960
4de997d1
PB
13961fi
13962fi
1c710c3c 13963AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 13964if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13966$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 13967else
5213506e
RW
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13969$as_echo "no" >&6; }
4de997d1
PB
13970fi
13971
5213506e 13972
e8b05380
PB
13973 fi
13974 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13976set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13978$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13979if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 13980 $as_echo_n "(cached) " >&6
e8b05380
PB
13981else
13982 if test -n "$AR_FOR_TARGET"; then
13983 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13984else
1c710c3c
DJ
13985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13986for as_dir in $PATH
13987do
13988 IFS=$as_save_IFS
13989 test -z "$as_dir" && as_dir=.
5213506e 13990 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13992 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 13993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13994 break 2
13995 fi
13996done
5213506e
RW
13997 done
13998IFS=$as_save_IFS
1c710c3c 13999
e8b05380
PB
14000fi
14001fi
1c710c3c 14002AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 14003if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14005$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 14006else
5213506e
RW
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14008$as_echo "no" >&6; }
e8b05380 14009fi
1c710c3c 14010
5213506e 14011
e8b05380
PB
14012 fi
14013 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14014 done
14015fi
1c710c3c 14016
e8b05380
PB
14017if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14018 set dummy ar
14019 if test $build = $target ; then
14020 AR_FOR_TARGET="$2"
14021 else
14022 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 14023 fi
1c00b503
PB
14024else
14025 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
14026fi
14027
d1f8db0c
PB
14028else
14029 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
14030fi
14031
14032
14033
14034
14035if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14036 if test -n "$with_build_time_tools"; then
5213506e
RW
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14038$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14039 if test -x $with_build_time_tools/as; then
14040 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14041 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14043$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 14044 else
5213506e
RW
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14046$as_echo "no" >&6; }
d1f8db0c 14047 fi
e8b05380
PB
14048 elif test $build != $host && test $have_gcc_for_target = yes; then
14049 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
14050 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14051 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
14052 fi
14053fi
3e19841a 14054if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14055 # Extract the first word of "as", so it can be a program name with args.
14056set dummy as; ac_word=$2
5213506e
RW
14057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14058$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14059if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
5213506e 14060 $as_echo_n "(cached) " >&6
e8b05380 14061else
1c710c3c
DJ
14062 case $AS_FOR_TARGET in
14063 [\\/]* | ?:[\\/]*)
e8b05380
PB
14064 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14065 ;;
e8b05380 14066 *)
1c710c3c
DJ
14067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14068for as_dir in $gcc_cv_tool_dirs
14069do
14070 IFS=$as_save_IFS
14071 test -z "$as_dir" && as_dir=.
5213506e 14072 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14074 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14076 break 2
14077 fi
14078done
5213506e
RW
14079 done
14080IFS=$as_save_IFS
1c710c3c 14081
e8b05380
PB
14082 ;;
14083esac
14084fi
1c710c3c 14085AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 14086if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14088$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 14089else
5213506e
RW
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14091$as_echo "no" >&6; }
e8b05380
PB
14092fi
14093
5213506e 14094
e8b05380
PB
14095fi
14096if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
14097
14098
14099if test -n "$AS_FOR_TARGET"; then
14100 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14101elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14102 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14103fi
14104
14105if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14106 for ncn_progname in as; do
14107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14108set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14110$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14111if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14112 $as_echo_n "(cached) " >&6
278a7a38
AO
14113else
14114 if test -n "$AS_FOR_TARGET"; then
14115 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14116else
14117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14118for as_dir in $PATH
14119do
14120 IFS=$as_save_IFS
14121 test -z "$as_dir" && as_dir=.
5213506e 14122 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14124 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 14125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14126 break 2
14127 fi
14128done
5213506e
RW
14129 done
14130IFS=$as_save_IFS
278a7a38
AO
14131
14132fi
14133fi
14134AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14135if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14137$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 14138else
5213506e
RW
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14140$as_echo "no" >&6; }
278a7a38
AO
14141fi
14142
5213506e 14143
278a7a38
AO
14144 done
14145fi
14146
14147if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14148 for ncn_progname in as; do
5213506e
RW
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14150$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14151 if test -x $with_build_time_tools/${ncn_progname}; then
14152 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14154$as_echo "yes" >&6; }
e8b05380
PB
14155 break
14156 else
5213506e
RW
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14158$as_echo "no" >&6; }
e8b05380
PB
14159 fi
14160 done
14161fi
14162
14163if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14164 for ncn_progname in as; do
14165 if test -n "$ncn_target_tool_prefix"; then
14166 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14167set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14169$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14170if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14171 $as_echo_n "(cached) " >&6
e8b05380
PB
14172else
14173 if test -n "$AS_FOR_TARGET"; then
14174 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14175else
1c710c3c
DJ
14176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14177for as_dir in $PATH
14178do
14179 IFS=$as_save_IFS
14180 test -z "$as_dir" && as_dir=.
5213506e 14181 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14183 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14185 break 2
14186 fi
14187done
5213506e
RW
14188 done
14189IFS=$as_save_IFS
1c710c3c 14190
e8b05380
PB
14191fi
14192fi
1c710c3c 14193AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 14194if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14196$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 14197else
5213506e
RW
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199$as_echo "no" >&6; }
e8b05380
PB
14200fi
14201
5213506e 14202
e8b05380
PB
14203 fi
14204 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14205 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14206set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14208$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14209if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14210 $as_echo_n "(cached) " >&6
4de997d1 14211else
e8b05380
PB
14212 if test -n "$AS_FOR_TARGET"; then
14213 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 14214else
1c710c3c
DJ
14215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14216for as_dir in $PATH
14217do
14218 IFS=$as_save_IFS
14219 test -z "$as_dir" && as_dir=.
5213506e 14220 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14222 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 14223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14224 break 2
14225 fi
14226done
5213506e
RW
14227 done
14228IFS=$as_save_IFS
1c710c3c 14229
4de997d1
PB
14230fi
14231fi
1c710c3c 14232AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 14233if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14235$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 14236else
5213506e
RW
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14238$as_echo "no" >&6; }
4de997d1 14239fi
1c710c3c 14240
5213506e 14241
e8b05380
PB
14242 fi
14243 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14244 done
14245fi
1c710c3c 14246
e8b05380
PB
14247if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14248 set dummy as
14249 if test $build = $target ; then
14250 AS_FOR_TARGET="$2"
14251 else
14252 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 14253 fi
1c00b503
PB
14254else
14255 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 14256fi
2693c0b0 14257
d1f8db0c
PB
14258else
14259 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
14260fi
14261
e8b05380
PB
14262
14263
14264
14265if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14266 if test -n "$with_build_time_tools"; then
5213506e
RW
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14268$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14269 if test -x $with_build_time_tools/dlltool; then
14270 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14271 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14273$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 14274 else
5213506e
RW
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14276$as_echo "no" >&6; }
d1f8db0c 14277 fi
e8b05380
PB
14278 elif test $build != $host && test $have_gcc_for_target = yes; then
14279 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
14280 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14281 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
14282 fi
14283fi
3e19841a 14284if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14285 # Extract the first word of "dlltool", so it can be a program name with args.
14286set dummy dlltool; ac_word=$2
5213506e
RW
14287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14288$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14289if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14290 $as_echo_n "(cached) " >&6
4de997d1 14291else
1c710c3c
DJ
14292 case $DLLTOOL_FOR_TARGET in
14293 [\\/]* | ?:[\\/]*)
e8b05380
PB
14294 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14295 ;;
e8b05380 14296 *)
1c710c3c
DJ
14297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14298for as_dir in $gcc_cv_tool_dirs
14299do
14300 IFS=$as_save_IFS
14301 test -z "$as_dir" && as_dir=.
5213506e 14302 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14304 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14306 break 2
14307 fi
14308done
5213506e
RW
14309 done
14310IFS=$as_save_IFS
1c710c3c 14311
e8b05380
PB
14312 ;;
14313esac
4de997d1 14314fi
1c710c3c 14315DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 14316if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14318$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14319else
5213506e
RW
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14321$as_echo "no" >&6; }
4de997d1
PB
14322fi
14323
5213506e 14324
e8b05380
PB
14325fi
14326if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
14327
14328
14329if test -n "$DLLTOOL_FOR_TARGET"; then
14330 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14331elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14332 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14333fi
14334
14335if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14336 for ncn_progname in dlltool; do
14337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14338set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14340$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14341if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14342 $as_echo_n "(cached) " >&6
278a7a38
AO
14343else
14344 if test -n "$DLLTOOL_FOR_TARGET"; then
14345 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14346else
14347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14348for as_dir in $PATH
14349do
14350 IFS=$as_save_IFS
14351 test -z "$as_dir" && as_dir=.
5213506e 14352 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14354 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14356 break 2
14357 fi
14358done
5213506e
RW
14359 done
14360IFS=$as_save_IFS
278a7a38
AO
14361
14362fi
14363fi
14364DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14365if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14367$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 14368else
5213506e
RW
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14370$as_echo "no" >&6; }
278a7a38
AO
14371fi
14372
5213506e 14373
278a7a38
AO
14374 done
14375fi
14376
14377if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14378 for ncn_progname in dlltool; do
5213506e
RW
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14380$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14381 if test -x $with_build_time_tools/${ncn_progname}; then
14382 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14384$as_echo "yes" >&6; }
e8b05380
PB
14385 break
14386 else
5213506e
RW
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14388$as_echo "no" >&6; }
e8b05380
PB
14389 fi
14390 done
14391fi
14392
14393if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14394 for ncn_progname in dlltool; do
14395 if test -n "$ncn_target_tool_prefix"; then
14396 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14397set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14399$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14400if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14401 $as_echo_n "(cached) " >&6
4de997d1 14402else
e8b05380
PB
14403 if test -n "$DLLTOOL_FOR_TARGET"; then
14404 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14405else
1c710c3c
DJ
14406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14407for as_dir in $PATH
14408do
14409 IFS=$as_save_IFS
14410 test -z "$as_dir" && as_dir=.
5213506e 14411 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14413 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14415 break 2
14416 fi
14417done
5213506e
RW
14418 done
14419IFS=$as_save_IFS
1c710c3c 14420
4de997d1
PB
14421fi
14422fi
1c710c3c 14423DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14424if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14426$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14427else
5213506e
RW
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14429$as_echo "no" >&6; }
4de997d1 14430fi
4de997d1 14431
5213506e 14432
e8b05380
PB
14433 fi
14434 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14436set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14438$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14439if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14440 $as_echo_n "(cached) " >&6
4de997d1 14441else
e8b05380
PB
14442 if test -n "$DLLTOOL_FOR_TARGET"; then
14443 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14444else
1c710c3c
DJ
14445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14446for as_dir in $PATH
14447do
14448 IFS=$as_save_IFS
14449 test -z "$as_dir" && as_dir=.
5213506e 14450 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14452 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14454 break 2
14455 fi
14456done
5213506e
RW
14457 done
14458IFS=$as_save_IFS
1c710c3c 14459
4de997d1
PB
14460fi
14461fi
1c710c3c 14462DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14463if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14465$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14466else
5213506e
RW
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14468$as_echo "no" >&6; }
4de997d1 14469fi
1c710c3c 14470
5213506e 14471
e8b05380
PB
14472 fi
14473 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14474 done
14475fi
1c710c3c 14476
e8b05380
PB
14477if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14478 set dummy dlltool
14479 if test $build = $target ; then
14480 DLLTOOL_FOR_TARGET="$2"
14481 else
14482 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14483 fi
1c00b503
PB
14484else
14485 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
14486fi
14487
d1f8db0c
PB
14488else
14489 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
14490fi
14491
4de997d1 14492
e8b05380
PB
14493
14494
3b5e8ee4
IS
14495if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14496 if test -n "$with_build_time_tools"; then
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14498$as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14499 if test -x $with_build_time_tools/dsymutil; then
14500 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14501 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14503$as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14504 else
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14506$as_echo "no" >&6; }
14507 fi
14508 elif test $build != $host && test $have_gcc_for_target = yes; then
14509 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14510 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14511 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14512 fi
14513fi
14514if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14515 # Extract the first word of "dsymutil", so it can be a program name with args.
14516set dummy dsymutil; ac_word=$2
14517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14518$as_echo_n "checking for $ac_word... " >&6; }
14519if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14520 $as_echo_n "(cached) " >&6
14521else
14522 case $DSYMUTIL_FOR_TARGET in
14523 [\\/]* | ?:[\\/]*)
14524 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14525 ;;
14526 *)
14527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14528for as_dir in $gcc_cv_tool_dirs
14529do
14530 IFS=$as_save_IFS
14531 test -z "$as_dir" && as_dir=.
14532 for ac_exec_ext in '' $ac_executable_extensions; do
14533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14534 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14536 break 2
14537 fi
14538done
14539 done
14540IFS=$as_save_IFS
14541
14542 ;;
14543esac
14544fi
14545DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14546if test -n "$DSYMUTIL_FOR_TARGET"; then
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14548$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14549else
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14551$as_echo "no" >&6; }
14552fi
14553
14554
14555fi
14556if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14557
14558
14559if test -n "$DSYMUTIL_FOR_TARGET"; then
14560 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14561elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14562 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14563fi
14564
14565if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14566 for ncn_progname in dsymutil; do
14567 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14568set dummy ${ncn_progname}; ac_word=$2
14569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14570$as_echo_n "checking for $ac_word... " >&6; }
14571if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14572 $as_echo_n "(cached) " >&6
14573else
14574 if test -n "$DSYMUTIL_FOR_TARGET"; then
14575 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14576else
14577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14578for as_dir in $PATH
14579do
14580 IFS=$as_save_IFS
14581 test -z "$as_dir" && as_dir=.
14582 for ac_exec_ext in '' $ac_executable_extensions; do
14583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14584 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14586 break 2
14587 fi
14588done
14589 done
14590IFS=$as_save_IFS
14591
14592fi
14593fi
14594DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14595if test -n "$DSYMUTIL_FOR_TARGET"; then
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14597$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14598else
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14600$as_echo "no" >&6; }
14601fi
14602
14603
14604 done
14605fi
14606
14607if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14608 for ncn_progname in dsymutil; do
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14610$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14611 if test -x $with_build_time_tools/${ncn_progname}; then
14612 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14614$as_echo "yes" >&6; }
14615 break
14616 else
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14618$as_echo "no" >&6; }
14619 fi
14620 done
14621fi
14622
14623if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14624 for ncn_progname in dsymutil; do
14625 if test -n "$ncn_target_tool_prefix"; then
14626 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14627set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14629$as_echo_n "checking for $ac_word... " >&6; }
14630if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14631 $as_echo_n "(cached) " >&6
14632else
14633 if test -n "$DSYMUTIL_FOR_TARGET"; then
14634 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14635else
14636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14637for as_dir in $PATH
14638do
14639 IFS=$as_save_IFS
14640 test -z "$as_dir" && as_dir=.
14641 for ac_exec_ext in '' $ac_executable_extensions; do
14642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14643 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14645 break 2
14646 fi
14647done
14648 done
14649IFS=$as_save_IFS
14650
14651fi
14652fi
14653DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14654if test -n "$DSYMUTIL_FOR_TARGET"; then
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14656$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14657else
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14659$as_echo "no" >&6; }
14660fi
14661
14662
14663 fi
14664 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14665 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14666set dummy ${ncn_progname}; ac_word=$2
14667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14668$as_echo_n "checking for $ac_word... " >&6; }
14669if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14670 $as_echo_n "(cached) " >&6
14671else
14672 if test -n "$DSYMUTIL_FOR_TARGET"; then
14673 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14674else
14675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14676for as_dir in $PATH
14677do
14678 IFS=$as_save_IFS
14679 test -z "$as_dir" && as_dir=.
14680 for ac_exec_ext in '' $ac_executable_extensions; do
14681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14682 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14684 break 2
14685 fi
14686done
14687 done
14688IFS=$as_save_IFS
14689
14690fi
14691fi
14692DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14693if test -n "$DSYMUTIL_FOR_TARGET"; then
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14695$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14696else
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14698$as_echo "no" >&6; }
14699fi
14700
14701
14702 fi
14703 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14704 done
14705fi
14706
14707if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14708 set dummy dsymutil
14709 if test $build = $target ; then
14710 DSYMUTIL_FOR_TARGET="$2"
14711 else
14712 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14713 fi
14714else
14715 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14716fi
14717
14718else
14719 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14720fi
14721
14722
14723
14724
e8b05380
PB
14725if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14726 if test -n "$with_build_time_tools"; then
5213506e
RW
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14728$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14729 if test -x $with_build_time_tools/ld; then
14730 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14731 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14733$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 14734 else
5213506e
RW
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14736$as_echo "no" >&6; }
d1f8db0c 14737 fi
e8b05380
PB
14738 elif test $build != $host && test $have_gcc_for_target = yes; then
14739 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
14740 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14741 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 14742 fi
e8b05380 14743fi
3e19841a 14744if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14745 # Extract the first word of "ld", so it can be a program name with args.
14746set dummy ld; ac_word=$2
5213506e
RW
14747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14748$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14749if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
5213506e 14750 $as_echo_n "(cached) " >&6
4de997d1 14751else
1c710c3c
DJ
14752 case $LD_FOR_TARGET in
14753 [\\/]* | ?:[\\/]*)
e8b05380
PB
14754 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14755 ;;
e8b05380 14756 *)
1c710c3c
DJ
14757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14758for as_dir in $gcc_cv_tool_dirs
14759do
14760 IFS=$as_save_IFS
14761 test -z "$as_dir" && as_dir=.
5213506e 14762 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14764 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14766 break 2
14767 fi
14768done
5213506e
RW
14769 done
14770IFS=$as_save_IFS
1c710c3c 14771
e8b05380
PB
14772 ;;
14773esac
4de997d1 14774fi
1c710c3c 14775LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 14776if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14778$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 14779else
5213506e
RW
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14781$as_echo "no" >&6; }
4de997d1 14782fi
2693c0b0 14783
5213506e 14784
e8b05380
PB
14785fi
14786if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
14787
14788
14789if test -n "$LD_FOR_TARGET"; then
14790 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14791elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14792 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14793fi
14794
14795if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14796 for ncn_progname in ld; do
14797 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14798set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14800$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14801if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14802 $as_echo_n "(cached) " >&6
278a7a38
AO
14803else
14804 if test -n "$LD_FOR_TARGET"; then
14805 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14806else
14807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14808for as_dir in $PATH
14809do
14810 IFS=$as_save_IFS
14811 test -z "$as_dir" && as_dir=.
5213506e 14812 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14814 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 14815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14816 break 2
14817 fi
14818done
5213506e
RW
14819 done
14820IFS=$as_save_IFS
278a7a38
AO
14821
14822fi
14823fi
14824LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14825if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14827$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 14828else
5213506e
RW
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14830$as_echo "no" >&6; }
278a7a38
AO
14831fi
14832
5213506e 14833
278a7a38
AO
14834 done
14835fi
14836
14837if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14838 for ncn_progname in ld; do
5213506e
RW
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14840$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14841 if test -x $with_build_time_tools/${ncn_progname}; then
14842 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14844$as_echo "yes" >&6; }
e8b05380
PB
14845 break
14846 else
5213506e
RW
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14848$as_echo "no" >&6; }
e8b05380
PB
14849 fi
14850 done
ca9f4b81
AO
14851fi
14852
e8b05380
PB
14853if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14854 for ncn_progname in ld; do
14855 if test -n "$ncn_target_tool_prefix"; then
14856 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14857set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14859$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14860if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14861 $as_echo_n "(cached) " >&6
ca9f4b81 14862else
4de997d1
PB
14863 if test -n "$LD_FOR_TARGET"; then
14864 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 14865else
1c710c3c
DJ
14866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14867for as_dir in $PATH
14868do
14869 IFS=$as_save_IFS
14870 test -z "$as_dir" && as_dir=.
5213506e 14871 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14873 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14875 break 2
14876 fi
14877done
5213506e
RW
14878 done
14879IFS=$as_save_IFS
1c710c3c 14880
ca9f4b81
AO
14881fi
14882fi
1c710c3c 14883LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 14884if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14886$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 14887else
5213506e
RW
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14889$as_echo "no" >&6; }
ca9f4b81
AO
14890fi
14891
5213506e 14892
e8b05380
PB
14893 fi
14894 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14896set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14898$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14899if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14900 $as_echo_n "(cached) " >&6
ca9f4b81 14901else
2693c0b0
PB
14902 if test -n "$LD_FOR_TARGET"; then
14903 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 14904else
1c710c3c
DJ
14905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14906for as_dir in $PATH
14907do
14908 IFS=$as_save_IFS
14909 test -z "$as_dir" && as_dir=.
5213506e 14910 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14912 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 14913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14914 break 2
14915 fi
14916done
5213506e
RW
14917 done
14918IFS=$as_save_IFS
1c710c3c 14919
ca9f4b81
AO
14920fi
14921fi
1c710c3c 14922LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 14923if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14925$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 14926else
5213506e
RW
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14928$as_echo "no" >&6; }
ca9f4b81 14929fi
1c710c3c 14930
5213506e 14931
e8b05380
PB
14932 fi
14933 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14934 done
14935fi
1c710c3c 14936
2693c0b0
PB
14937if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14938 set dummy ld
14939 if test $build = $target ; then
14940 LD_FOR_TARGET="$2"
ca9f4b81 14941 else
2693c0b0 14942 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 14943 fi
1c00b503
PB
14944else
14945 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
14946fi
14947
d1f8db0c
PB
14948else
14949 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
14950fi
14951
14952
14953
14954
14955if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14956 if test -n "$with_build_time_tools"; then
5213506e
RW
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14958$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14959 if test -x $with_build_time_tools/lipo; then
14960 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14961 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14963$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 14964 else
5213506e
RW
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14966$as_echo "no" >&6; }
d1f8db0c 14967 fi
e8b05380
PB
14968 elif test $build != $host && test $have_gcc_for_target = yes; then
14969 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
14970 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14971 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
14972 fi
14973fi
278a7a38
AO
14974if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14975 # Extract the first word of "lipo", so it can be a program name with args.
14976set dummy lipo; ac_word=$2
5213506e
RW
14977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14978$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14979if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
5213506e 14980 $as_echo_n "(cached) " >&6
278a7a38
AO
14981else
14982 case $LIPO_FOR_TARGET in
14983 [\\/]* | ?:[\\/]*)
14984 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14985 ;;
14986 *)
14987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14988for as_dir in $gcc_cv_tool_dirs
14989do
14990 IFS=$as_save_IFS
14991 test -z "$as_dir" && as_dir=.
5213506e 14992 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14994 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14996 break 2
14997 fi
14998done
5213506e
RW
14999 done
15000IFS=$as_save_IFS
278a7a38
AO
15001
15002 ;;
15003esac
15004fi
15005LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 15006if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15008$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 15009else
5213506e
RW
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15011$as_echo "no" >&6; }
278a7a38
AO
15012fi
15013
5213506e 15014
278a7a38
AO
15015fi
15016if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15017
15018
15019if test -n "$LIPO_FOR_TARGET"; then
15020 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15021elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15022 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15023fi
15024
15025if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15026 for ncn_progname in lipo; do
15027 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15028set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15030$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15031if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15032 $as_echo_n "(cached) " >&6
e8b05380 15033else
278a7a38
AO
15034 if test -n "$LIPO_FOR_TARGET"; then
15035 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15036else
15037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15038for as_dir in $PATH
1c710c3c
DJ
15039do
15040 IFS=$as_save_IFS
15041 test -z "$as_dir" && as_dir=.
5213506e 15042 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15044 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 15045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15046 break 2
15047 fi
15048done
5213506e
RW
15049 done
15050IFS=$as_save_IFS
1c710c3c 15051
e8b05380 15052fi
278a7a38
AO
15053fi
15054LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 15055if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15057$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 15058else
5213506e
RW
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15060$as_echo "no" >&6; }
e8b05380
PB
15061fi
15062
5213506e 15063
278a7a38 15064 done
e8b05380 15065fi
278a7a38
AO
15066
15067if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15068 for ncn_progname in lipo; do
5213506e
RW
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15070$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15071 if test -x $with_build_time_tools/${ncn_progname}; then
15072 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15074$as_echo "yes" >&6; }
e8b05380
PB
15075 break
15076 else
5213506e
RW
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15078$as_echo "no" >&6; }
e8b05380
PB
15079 fi
15080 done
15081fi
15082
15083if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15084 for ncn_progname in lipo; do
15085 if test -n "$ncn_target_tool_prefix"; then
15086 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15087set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15089$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15090if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15091 $as_echo_n "(cached) " >&6
040b1c5a
GK
15092else
15093 if test -n "$LIPO_FOR_TARGET"; then
15094 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15095else
1c710c3c
DJ
15096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15097for as_dir in $PATH
15098do
15099 IFS=$as_save_IFS
15100 test -z "$as_dir" && as_dir=.
5213506e 15101 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15103 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15105 break 2
15106 fi
15107done
5213506e
RW
15108 done
15109IFS=$as_save_IFS
1c710c3c 15110
040b1c5a
GK
15111fi
15112fi
1c710c3c 15113LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 15114if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15116$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 15117else
5213506e
RW
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15119$as_echo "no" >&6; }
040b1c5a
GK
15120fi
15121
5213506e 15122
e8b05380
PB
15123 fi
15124 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15125 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 15126set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15128$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15129if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15130 $as_echo_n "(cached) " >&6
040b1c5a
GK
15131else
15132 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
15133 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15134else
1c710c3c
DJ
15135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15136for as_dir in $PATH
15137do
15138 IFS=$as_save_IFS
15139 test -z "$as_dir" && as_dir=.
5213506e 15140 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15142 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 15143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15144 break 2
15145 fi
15146done
5213506e
RW
15147 done
15148IFS=$as_save_IFS
1c710c3c 15149
040b1c5a
GK
15150fi
15151fi
1c710c3c 15152LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 15153if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15155$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 15156else
5213506e
RW
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15158$as_echo "no" >&6; }
040b1c5a 15159fi
1c710c3c 15160
5213506e 15161
e8b05380
PB
15162 fi
15163 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15164 done
15165fi
1c710c3c 15166
040b1c5a
GK
15167if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15168 set dummy lipo
15169 if test $build = $target ; then
15170 LIPO_FOR_TARGET="$2"
15171 else
15172 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15173 fi
1c00b503
PB
15174else
15175 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
15176fi
15177
d1f8db0c
PB
15178else
15179 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
15180fi
15181
15182
15183
15184
15185if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15186 if test -n "$with_build_time_tools"; then
5213506e
RW
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15188$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15189 if test -x $with_build_time_tools/nm; then
15190 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15191 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15193$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 15194 else
5213506e
RW
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15196$as_echo "no" >&6; }
d1f8db0c 15197 fi
e8b05380
PB
15198 elif test $build != $host && test $have_gcc_for_target = yes; then
15199 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
15200 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15201 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
15202 fi
15203fi
3e19841a 15204if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15205 # Extract the first word of "nm", so it can be a program name with args.
15206set dummy nm; ac_word=$2
5213506e
RW
15207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15208$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15209if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
5213506e 15210 $as_echo_n "(cached) " >&6
e8b05380 15211else
1c710c3c
DJ
15212 case $NM_FOR_TARGET in
15213 [\\/]* | ?:[\\/]*)
e8b05380
PB
15214 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15215 ;;
e8b05380 15216 *)
1c710c3c
DJ
15217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15218for as_dir in $gcc_cv_tool_dirs
15219do
15220 IFS=$as_save_IFS
15221 test -z "$as_dir" && as_dir=.
5213506e 15222 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15224 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15226 break 2
15227 fi
15228done
5213506e
RW
15229 done
15230IFS=$as_save_IFS
1c710c3c 15231
e8b05380
PB
15232 ;;
15233esac
15234fi
1c710c3c 15235NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 15236if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15238$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 15239else
5213506e
RW
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15241$as_echo "no" >&6; }
e8b05380
PB
15242fi
15243
5213506e 15244
e8b05380
PB
15245fi
15246if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
15247
15248
15249if test -n "$NM_FOR_TARGET"; then
15250 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15251elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15252 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15253fi
15254
15255if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15256 for ncn_progname in nm; do
15257 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15258set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15260$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15261if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15262 $as_echo_n "(cached) " >&6
278a7a38
AO
15263else
15264 if test -n "$NM_FOR_TARGET"; then
15265 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15266else
15267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15268for as_dir in $PATH
15269do
15270 IFS=$as_save_IFS
15271 test -z "$as_dir" && as_dir=.
5213506e 15272 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15274 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15276 break 2
15277 fi
15278done
5213506e
RW
15279 done
15280IFS=$as_save_IFS
278a7a38
AO
15281
15282fi
15283fi
15284NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15285if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15287$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 15288else
5213506e
RW
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15290$as_echo "no" >&6; }
278a7a38
AO
15291fi
15292
5213506e 15293
278a7a38
AO
15294 done
15295fi
15296
15297if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15298 for ncn_progname in nm; do
5213506e
RW
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15300$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15301 if test -x $with_build_time_tools/${ncn_progname}; then
15302 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15304$as_echo "yes" >&6; }
e8b05380
PB
15305 break
15306 else
5213506e
RW
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15308$as_echo "no" >&6; }
e8b05380
PB
15309 fi
15310 done
15311fi
15312
15313if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15314 for ncn_progname in nm; do
15315 if test -n "$ncn_target_tool_prefix"; then
15316 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 15317set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15319$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15320if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15321 $as_echo_n "(cached) " >&6
ca9f4b81 15322else
4de997d1
PB
15323 if test -n "$NM_FOR_TARGET"; then
15324 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15325else
1c710c3c
DJ
15326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15327for as_dir in $PATH
15328do
15329 IFS=$as_save_IFS
15330 test -z "$as_dir" && as_dir=.
5213506e 15331 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15333 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15335 break 2
15336 fi
15337done
5213506e
RW
15338 done
15339IFS=$as_save_IFS
1c710c3c 15340
ca9f4b81
AO
15341fi
15342fi
1c710c3c 15343NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 15344if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15346$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15347else
5213506e
RW
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15349$as_echo "no" >&6; }
ca9f4b81
AO
15350fi
15351
5213506e 15352
e8b05380
PB
15353 fi
15354 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 15356set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15358$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15359if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15360 $as_echo_n "(cached) " >&6
ca9f4b81 15361else
2693c0b0
PB
15362 if test -n "$NM_FOR_TARGET"; then
15363 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15364else
1c710c3c
DJ
15365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15366for as_dir in $PATH
15367do
15368 IFS=$as_save_IFS
15369 test -z "$as_dir" && as_dir=.
5213506e 15370 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15372 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15374 break 2
15375 fi
15376done
5213506e
RW
15377 done
15378IFS=$as_save_IFS
1c710c3c 15379
ca9f4b81
AO
15380fi
15381fi
1c710c3c 15382NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 15383if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15385$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15386else
5213506e
RW
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15388$as_echo "no" >&6; }
ca9f4b81 15389fi
1c710c3c 15390
5213506e 15391
e8b05380
PB
15392 fi
15393 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15394 done
15395fi
1c710c3c 15396
2693c0b0
PB
15397if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15398 set dummy nm
15399 if test $build = $target ; then
15400 NM_FOR_TARGET="$2"
ca9f4b81 15401 else
2693c0b0 15402 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 15403 fi
1c00b503
PB
15404else
15405 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
15406fi
15407
d1f8db0c
PB
15408else
15409 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
15410fi
15411
15412
15413
15414
9bccfdf5
AP
15415if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15416 if test -n "$with_build_time_tools"; then
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15418$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15419 if test -x $with_build_time_tools/objcopy; then
15420 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15421 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15423$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15424 else
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15426$as_echo "no" >&6; }
15427 fi
15428 elif test $build != $host && test $have_gcc_for_target = yes; then
15429 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15430 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15431 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15432 fi
15433fi
15434if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15435 # Extract the first word of "objcopy", so it can be a program name with args.
15436set dummy objcopy; ac_word=$2
15437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15438$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15439if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15440 $as_echo_n "(cached) " >&6
15441else
15442 case $OBJCOPY_FOR_TARGET in
15443 [\\/]* | ?:[\\/]*)
15444 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15445 ;;
15446 *)
15447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15448for as_dir in $gcc_cv_tool_dirs
15449do
15450 IFS=$as_save_IFS
15451 test -z "$as_dir" && as_dir=.
15452 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15454 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15456 break 2
15457 fi
15458done
15459 done
15460IFS=$as_save_IFS
15461
15462 ;;
15463esac
15464fi
15465OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15466if test -n "$OBJCOPY_FOR_TARGET"; then
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15468$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15469else
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15471$as_echo "no" >&6; }
15472fi
15473
15474
15475fi
15476if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15477
15478
15479if test -n "$OBJCOPY_FOR_TARGET"; then
15480 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15481elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15482 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15483fi
15484
15485if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15486 for ncn_progname in objcopy; do
15487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15488set dummy ${ncn_progname}; ac_word=$2
15489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15490$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15491if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15492 $as_echo_n "(cached) " >&6
15493else
15494 if test -n "$OBJCOPY_FOR_TARGET"; then
15495 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15496else
15497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15498for as_dir in $PATH
15499do
15500 IFS=$as_save_IFS
15501 test -z "$as_dir" && as_dir=.
15502 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15504 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15506 break 2
15507 fi
15508done
15509 done
15510IFS=$as_save_IFS
15511
15512fi
15513fi
15514OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15515if test -n "$OBJCOPY_FOR_TARGET"; then
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15517$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15518else
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15520$as_echo "no" >&6; }
15521fi
15522
15523
15524 done
15525fi
15526
15527if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15528 for ncn_progname in objcopy; do
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15530$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15531 if test -x $with_build_time_tools/${ncn_progname}; then
15532 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15534$as_echo "yes" >&6; }
15535 break
15536 else
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15538$as_echo "no" >&6; }
15539 fi
15540 done
15541fi
15542
15543if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15544 for ncn_progname in objcopy; do
15545 if test -n "$ncn_target_tool_prefix"; then
15546 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15547set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15549$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15550if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15551 $as_echo_n "(cached) " >&6
15552else
15553 if test -n "$OBJCOPY_FOR_TARGET"; then
15554 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15555else
15556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15557for as_dir in $PATH
15558do
15559 IFS=$as_save_IFS
15560 test -z "$as_dir" && as_dir=.
15561 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15563 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15565 break 2
15566 fi
15567done
15568 done
15569IFS=$as_save_IFS
15570
15571fi
15572fi
15573OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15574if test -n "$OBJCOPY_FOR_TARGET"; then
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15576$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15577else
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15579$as_echo "no" >&6; }
15580fi
15581
15582
15583 fi
15584 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15586set dummy ${ncn_progname}; ac_word=$2
15587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15588$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15589if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15590 $as_echo_n "(cached) " >&6
15591else
15592 if test -n "$OBJCOPY_FOR_TARGET"; then
15593 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15594else
15595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15596for as_dir in $PATH
15597do
15598 IFS=$as_save_IFS
15599 test -z "$as_dir" && as_dir=.
15600 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15602 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15604 break 2
15605 fi
15606done
15607 done
15608IFS=$as_save_IFS
15609
15610fi
15611fi
15612OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15613if test -n "$OBJCOPY_FOR_TARGET"; then
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15615$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15616else
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15618$as_echo "no" >&6; }
15619fi
15620
15621
15622 fi
15623 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15624 done
15625fi
15626
15627if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15628 set dummy objcopy
15629 if test $build = $target ; then
15630 OBJCOPY_FOR_TARGET="$2"
15631 else
15632 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15633 fi
15634else
15635 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15636fi
15637
15638else
15639 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15640fi
15641
15642
15643
15644
e8b05380
PB
15645if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15646 if test -n "$with_build_time_tools"; then
5213506e
RW
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15648$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15649 if test -x $with_build_time_tools/objdump; then
15650 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15651 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15653$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 15654 else
5213506e
RW
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15656$as_echo "no" >&6; }
d1f8db0c 15657 fi
e8b05380
PB
15658 elif test $build != $host && test $have_gcc_for_target = yes; then
15659 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
15660 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15661 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
15662 fi
15663fi
3e19841a 15664if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15665 # Extract the first word of "objdump", so it can be a program name with args.
15666set dummy objdump; ac_word=$2
5213506e
RW
15667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15668$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15669if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15670 $as_echo_n "(cached) " >&6
e8b05380 15671else
1c710c3c
DJ
15672 case $OBJDUMP_FOR_TARGET in
15673 [\\/]* | ?:[\\/]*)
e8b05380
PB
15674 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15675 ;;
e8b05380 15676 *)
1c710c3c
DJ
15677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15678for as_dir in $gcc_cv_tool_dirs
15679do
15680 IFS=$as_save_IFS
15681 test -z "$as_dir" && as_dir=.
5213506e 15682 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15684 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15686 break 2
15687 fi
15688done
5213506e
RW
15689 done
15690IFS=$as_save_IFS
1c710c3c 15691
e8b05380
PB
15692 ;;
15693esac
15694fi
1c710c3c 15695OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 15696if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15698$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 15699else
5213506e
RW
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15701$as_echo "no" >&6; }
e8b05380
PB
15702fi
15703
5213506e 15704
e8b05380
PB
15705fi
15706if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
15707
15708
15709if test -n "$OBJDUMP_FOR_TARGET"; then
15710 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15711elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15712 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15713fi
15714
15715if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15716 for ncn_progname in objdump; do
15717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15718set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15720$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15721if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15722 $as_echo_n "(cached) " >&6
278a7a38
AO
15723else
15724 if test -n "$OBJDUMP_FOR_TARGET"; then
15725 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15726else
15727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15728for as_dir in $PATH
15729do
15730 IFS=$as_save_IFS
15731 test -z "$as_dir" && as_dir=.
5213506e 15732 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15734 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 15735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15736 break 2
15737 fi
15738done
5213506e
RW
15739 done
15740IFS=$as_save_IFS
278a7a38
AO
15741
15742fi
15743fi
15744OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15745if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15747$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 15748else
5213506e
RW
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15750$as_echo "no" >&6; }
278a7a38
AO
15751fi
15752
5213506e 15753
278a7a38
AO
15754 done
15755fi
15756
15757if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15758 for ncn_progname in objdump; do
5213506e
RW
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15760$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15761 if test -x $with_build_time_tools/${ncn_progname}; then
15762 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15764$as_echo "yes" >&6; }
e8b05380
PB
15765 break
15766 else
5213506e
RW
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15768$as_echo "no" >&6; }
e8b05380
PB
15769 fi
15770 done
15771fi
15772
15773if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15774 for ncn_progname in objdump; do
15775 if test -n "$ncn_target_tool_prefix"; then
15776 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15777set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15779$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15780if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15781 $as_echo_n "(cached) " >&6
d739199a
DJ
15782else
15783 if test -n "$OBJDUMP_FOR_TARGET"; then
15784 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15785else
1c710c3c
DJ
15786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15787for as_dir in $PATH
15788do
15789 IFS=$as_save_IFS
15790 test -z "$as_dir" && as_dir=.
5213506e 15791 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15793 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15795 break 2
15796 fi
15797done
5213506e
RW
15798 done
15799IFS=$as_save_IFS
1c710c3c 15800
d739199a
DJ
15801fi
15802fi
1c710c3c 15803OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 15804if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15806$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 15807else
5213506e
RW
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15809$as_echo "no" >&6; }
d739199a
DJ
15810fi
15811
5213506e 15812
e8b05380
PB
15813 fi
15814 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 15816set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15818$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15819if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15820 $as_echo_n "(cached) " >&6
d739199a
DJ
15821else
15822 if test -n "$OBJDUMP_FOR_TARGET"; then
15823 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15824else
1c710c3c
DJ
15825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15826for as_dir in $PATH
15827do
15828 IFS=$as_save_IFS
15829 test -z "$as_dir" && as_dir=.
5213506e 15830 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15832 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 15833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15834 break 2
15835 fi
15836done
5213506e
RW
15837 done
15838IFS=$as_save_IFS
1c710c3c 15839
d739199a
DJ
15840fi
15841fi
1c710c3c 15842OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 15843if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15845$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 15846else
5213506e
RW
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15848$as_echo "no" >&6; }
d739199a 15849fi
1c710c3c 15850
5213506e 15851
e8b05380
PB
15852 fi
15853 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15854 done
15855fi
1c710c3c 15856
d739199a
DJ
15857if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15858 set dummy objdump
15859 if test $build = $target ; then
15860 OBJDUMP_FOR_TARGET="$2"
15861 else
15862 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15863 fi
1c00b503
PB
15864else
15865 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
15866fi
15867
d1f8db0c
PB
15868else
15869 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
15870fi
15871
15872
15873
15874
e4a9a572
IS
15875if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15876 if test -n "$with_build_time_tools"; then
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15878$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15879 if test -x $with_build_time_tools/otool; then
15880 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15881 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15883$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15884 else
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15886$as_echo "no" >&6; }
15887 fi
15888 elif test $build != $host && test $have_gcc_for_target = yes; then
15889 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15890 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15891 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15892 fi
15893fi
15894if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15895 # Extract the first word of "otool", so it can be a program name with args.
15896set dummy otool; ac_word=$2
15897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15898$as_echo_n "checking for $ac_word... " >&6; }
15899if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15900 $as_echo_n "(cached) " >&6
15901else
15902 case $OTOOL_FOR_TARGET in
15903 [\\/]* | ?:[\\/]*)
15904 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15905 ;;
15906 *)
15907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15908for as_dir in $gcc_cv_tool_dirs
15909do
15910 IFS=$as_save_IFS
15911 test -z "$as_dir" && as_dir=.
15912 for ac_exec_ext in '' $ac_executable_extensions; do
15913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15914 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15916 break 2
15917 fi
15918done
15919 done
15920IFS=$as_save_IFS
15921
15922 ;;
15923esac
15924fi
15925OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15926if test -n "$OTOOL_FOR_TARGET"; then
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15928$as_echo "$OTOOL_FOR_TARGET" >&6; }
15929else
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15931$as_echo "no" >&6; }
15932fi
15933
15934
15935fi
15936if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15937
15938
15939if test -n "$OTOOL_FOR_TARGET"; then
15940 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15941elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15942 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15943fi
15944
15945if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15946 for ncn_progname in otool; do
15947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15948set dummy ${ncn_progname}; ac_word=$2
15949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15950$as_echo_n "checking for $ac_word... " >&6; }
15951if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15952 $as_echo_n "(cached) " >&6
15953else
15954 if test -n "$OTOOL_FOR_TARGET"; then
15955 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15956else
15957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15958for as_dir in $PATH
15959do
15960 IFS=$as_save_IFS
15961 test -z "$as_dir" && as_dir=.
15962 for ac_exec_ext in '' $ac_executable_extensions; do
15963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15964 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15966 break 2
15967 fi
15968done
15969 done
15970IFS=$as_save_IFS
15971
15972fi
15973fi
15974OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15975if test -n "$OTOOL_FOR_TARGET"; then
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15977$as_echo "$OTOOL_FOR_TARGET" >&6; }
15978else
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15980$as_echo "no" >&6; }
15981fi
15982
15983
15984 done
15985fi
15986
15987if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15988 for ncn_progname in otool; do
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15990$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15991 if test -x $with_build_time_tools/${ncn_progname}; then
15992 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15994$as_echo "yes" >&6; }
15995 break
15996 else
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15998$as_echo "no" >&6; }
15999 fi
16000 done
16001fi
16002
16003if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16004 for ncn_progname in otool; do
16005 if test -n "$ncn_target_tool_prefix"; then
16006 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16007set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16009$as_echo_n "checking for $ac_word... " >&6; }
16010if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16011 $as_echo_n "(cached) " >&6
16012else
16013 if test -n "$OTOOL_FOR_TARGET"; then
16014 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16015else
16016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16017for as_dir in $PATH
16018do
16019 IFS=$as_save_IFS
16020 test -z "$as_dir" && as_dir=.
16021 for ac_exec_ext in '' $ac_executable_extensions; do
16022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16023 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16025 break 2
16026 fi
16027done
16028 done
16029IFS=$as_save_IFS
16030
16031fi
16032fi
16033OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16034if test -n "$OTOOL_FOR_TARGET"; then
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16036$as_echo "$OTOOL_FOR_TARGET" >&6; }
16037else
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16039$as_echo "no" >&6; }
16040fi
16041
16042
16043 fi
16044 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16045 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16046set dummy ${ncn_progname}; ac_word=$2
16047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16048$as_echo_n "checking for $ac_word... " >&6; }
16049if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16050 $as_echo_n "(cached) " >&6
16051else
16052 if test -n "$OTOOL_FOR_TARGET"; then
16053 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16054else
16055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16056for as_dir in $PATH
16057do
16058 IFS=$as_save_IFS
16059 test -z "$as_dir" && as_dir=.
16060 for ac_exec_ext in '' $ac_executable_extensions; do
16061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16062 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16064 break 2
16065 fi
16066done
16067 done
16068IFS=$as_save_IFS
16069
16070fi
16071fi
16072OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16073if test -n "$OTOOL_FOR_TARGET"; then
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16075$as_echo "$OTOOL_FOR_TARGET" >&6; }
16076else
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16078$as_echo "no" >&6; }
16079fi
16080
16081
16082 fi
16083 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16084 done
16085fi
16086
16087if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16088 set dummy otool
16089 if test $build = $target ; then
16090 OTOOL_FOR_TARGET="$2"
16091 else
16092 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16093 fi
16094else
16095 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16096fi
16097
16098else
16099 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16100fi
16101
16102
16103
16104
e8b05380
PB
16105if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16106 if test -n "$with_build_time_tools"; then
5213506e
RW
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16108$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16109 if test -x $with_build_time_tools/ranlib; then
16110 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16111 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16113$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 16114 else
5213506e
RW
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16116$as_echo "no" >&6; }
d1f8db0c 16117 fi
e8b05380
PB
16118 elif test $build != $host && test $have_gcc_for_target = yes; then
16119 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
16120 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16121 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
16122 fi
16123fi
3e19841a 16124if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16125 # Extract the first word of "ranlib", so it can be a program name with args.
16126set dummy ranlib; ac_word=$2
5213506e
RW
16127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16128$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16129if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
5213506e 16130 $as_echo_n "(cached) " >&6
e8b05380 16131else
1c710c3c
DJ
16132 case $RANLIB_FOR_TARGET in
16133 [\\/]* | ?:[\\/]*)
e8b05380
PB
16134 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16135 ;;
e8b05380 16136 *)
1c710c3c
DJ
16137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16138for as_dir in $gcc_cv_tool_dirs
16139do
16140 IFS=$as_save_IFS
16141 test -z "$as_dir" && as_dir=.
5213506e 16142 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16144 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16146 break 2
16147 fi
16148done
5213506e
RW
16149 done
16150IFS=$as_save_IFS
1c710c3c 16151
e8b05380
PB
16152 ;;
16153esac
16154fi
1c710c3c 16155RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 16156if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16158$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 16159else
5213506e
RW
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16161$as_echo "no" >&6; }
e8b05380
PB
16162fi
16163
5213506e 16164
e8b05380
PB
16165fi
16166if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
16167
16168
16169if test -n "$RANLIB_FOR_TARGET"; then
16170 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16171elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16172 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16173fi
16174
16175if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16176 for ncn_progname in ranlib; do
16177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16178set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16180$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16181if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16182 $as_echo_n "(cached) " >&6
278a7a38
AO
16183else
16184 if test -n "$RANLIB_FOR_TARGET"; then
16185 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16186else
16187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16188for as_dir in $PATH
16189do
16190 IFS=$as_save_IFS
16191 test -z "$as_dir" && as_dir=.
5213506e 16192 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16194 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 16195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16196 break 2
16197 fi
16198done
5213506e
RW
16199 done
16200IFS=$as_save_IFS
278a7a38
AO
16201
16202fi
16203fi
16204RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16205if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16207$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 16208else
5213506e
RW
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16210$as_echo "no" >&6; }
278a7a38
AO
16211fi
16212
5213506e 16213
278a7a38
AO
16214 done
16215fi
16216
16217if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16218 for ncn_progname in ranlib; do
5213506e
RW
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16220$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16221 if test -x $with_build_time_tools/${ncn_progname}; then
16222 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16224$as_echo "yes" >&6; }
e8b05380
PB
16225 break
16226 else
5213506e
RW
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16228$as_echo "no" >&6; }
e8b05380
PB
16229 fi
16230 done
16231fi
16232
16233if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16234 for ncn_progname in ranlib; do
16235 if test -n "$ncn_target_tool_prefix"; then
16236 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 16237set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16239$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16240if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16241 $as_echo_n "(cached) " >&6
ca9f4b81 16242else
4de997d1
PB
16243 if test -n "$RANLIB_FOR_TARGET"; then
16244 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16245else
1c710c3c
DJ
16246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16247for as_dir in $PATH
16248do
16249 IFS=$as_save_IFS
16250 test -z "$as_dir" && as_dir=.
5213506e 16251 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16253 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16255 break 2
16256 fi
16257done
5213506e
RW
16258 done
16259IFS=$as_save_IFS
1c710c3c 16260
ca9f4b81
AO
16261fi
16262fi
1c710c3c 16263RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 16264if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16266$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16267else
5213506e
RW
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16269$as_echo "no" >&6; }
ca9f4b81
AO
16270fi
16271
5213506e 16272
e8b05380
PB
16273 fi
16274 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 16276set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16278$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16279if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16280 $as_echo_n "(cached) " >&6
ca9f4b81 16281else
2693c0b0
PB
16282 if test -n "$RANLIB_FOR_TARGET"; then
16283 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16284else
1c710c3c
DJ
16285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16286for as_dir in $PATH
16287do
16288 IFS=$as_save_IFS
16289 test -z "$as_dir" && as_dir=.
5213506e 16290 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16292 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 16293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16294 break 2
16295 fi
16296done
5213506e
RW
16297 done
16298IFS=$as_save_IFS
1c710c3c 16299
ca9f4b81
AO
16300fi
16301fi
1c710c3c 16302RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 16303if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16305$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16306else
5213506e
RW
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16308$as_echo "no" >&6; }
ca9f4b81 16309fi
1c710c3c 16310
5213506e 16311
e8b05380
PB
16312 fi
16313 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16314 done
16315fi
1c710c3c 16316
e8b05380
PB
16317if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16318 set dummy ranlib
16319 if test $build = $target ; then
16320 RANLIB_FOR_TARGET="$2"
16321 else
16322 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 16323 fi
1c00b503
PB
16324else
16325 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 16326fi
2693c0b0 16327
d1f8db0c
PB
16328else
16329 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
16330fi
16331
e8b05380
PB
16332
16333
16334
e7a82751
RM
16335if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16336 if test -n "$with_build_time_tools"; then
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16338$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16339 if test -x $with_build_time_tools/readelf; then
16340 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16341 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16343$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16344 else
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16346$as_echo "no" >&6; }
16347 fi
16348 elif test $build != $host && test $have_gcc_for_target = yes; then
16349 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16350 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16351 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16352 fi
16353fi
16354if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16355 # Extract the first word of "readelf", so it can be a program name with args.
16356set dummy readelf; ac_word=$2
16357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16358$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16359if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16360 $as_echo_n "(cached) " >&6
16361else
16362 case $READELF_FOR_TARGET in
16363 [\\/]* | ?:[\\/]*)
16364 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16365 ;;
16366 *)
16367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16368for as_dir in $gcc_cv_tool_dirs
16369do
16370 IFS=$as_save_IFS
16371 test -z "$as_dir" && as_dir=.
16372 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16374 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16376 break 2
16377 fi
16378done
16379 done
16380IFS=$as_save_IFS
16381
16382 ;;
16383esac
16384fi
16385READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16386if test -n "$READELF_FOR_TARGET"; then
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16388$as_echo "$READELF_FOR_TARGET" >&6; }
16389else
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16391$as_echo "no" >&6; }
16392fi
16393
16394
16395fi
16396if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16397
16398
16399if test -n "$READELF_FOR_TARGET"; then
16400 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16401elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16402 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16403fi
16404
16405if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16406 for ncn_progname in readelf; do
16407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16408set dummy ${ncn_progname}; ac_word=$2
16409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16410$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16411if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16412 $as_echo_n "(cached) " >&6
16413else
16414 if test -n "$READELF_FOR_TARGET"; then
16415 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16416else
16417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16418for as_dir in $PATH
16419do
16420 IFS=$as_save_IFS
16421 test -z "$as_dir" && as_dir=.
16422 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16424 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16426 break 2
16427 fi
16428done
16429 done
16430IFS=$as_save_IFS
16431
16432fi
16433fi
16434READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16435if test -n "$READELF_FOR_TARGET"; then
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16437$as_echo "$READELF_FOR_TARGET" >&6; }
16438else
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16440$as_echo "no" >&6; }
16441fi
16442
16443
16444 done
16445fi
16446
16447if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16448 for ncn_progname in readelf; do
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16450$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16451 if test -x $with_build_time_tools/${ncn_progname}; then
16452 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16454$as_echo "yes" >&6; }
16455 break
16456 else
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16458$as_echo "no" >&6; }
16459 fi
16460 done
16461fi
16462
16463if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16464 for ncn_progname in readelf; do
16465 if test -n "$ncn_target_tool_prefix"; then
16466 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16467set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16469$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16470if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16471 $as_echo_n "(cached) " >&6
16472else
16473 if test -n "$READELF_FOR_TARGET"; then
16474 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16475else
16476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16477for as_dir in $PATH
16478do
16479 IFS=$as_save_IFS
16480 test -z "$as_dir" && as_dir=.
16481 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16483 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16485 break 2
16486 fi
16487done
16488 done
16489IFS=$as_save_IFS
16490
16491fi
16492fi
16493READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16494if test -n "$READELF_FOR_TARGET"; then
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16496$as_echo "$READELF_FOR_TARGET" >&6; }
16497else
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16499$as_echo "no" >&6; }
16500fi
16501
16502
16503 fi
16504 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16506set dummy ${ncn_progname}; ac_word=$2
16507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16508$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16509if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16510 $as_echo_n "(cached) " >&6
16511else
16512 if test -n "$READELF_FOR_TARGET"; then
16513 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16514else
16515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16516for as_dir in $PATH
16517do
16518 IFS=$as_save_IFS
16519 test -z "$as_dir" && as_dir=.
16520 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16522 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16524 break 2
16525 fi
16526done
16527 done
16528IFS=$as_save_IFS
16529
16530fi
16531fi
16532READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16533if test -n "$READELF_FOR_TARGET"; then
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16535$as_echo "$READELF_FOR_TARGET" >&6; }
16536else
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16538$as_echo "no" >&6; }
16539fi
16540
16541
16542 fi
16543 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16544 done
16545fi
16546
16547if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16548 set dummy readelf
16549 if test $build = $target ; then
16550 READELF_FOR_TARGET="$2"
16551 else
16552 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16553 fi
16554else
16555 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16556fi
16557
16558else
16559 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16560fi
16561
16562
16563
16564
e8b05380
PB
16565if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16566 if test -n "$with_build_time_tools"; then
5213506e
RW
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16568$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16569 if test -x $with_build_time_tools/strip; then
16570 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16571 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16573$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 16574 else
5213506e
RW
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16576$as_echo "no" >&6; }
d1f8db0c 16577 fi
e8b05380
PB
16578 elif test $build != $host && test $have_gcc_for_target = yes; then
16579 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
16580 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16581 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
16582 fi
16583fi
3e19841a 16584if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16585 # Extract the first word of "strip", so it can be a program name with args.
16586set dummy strip; ac_word=$2
5213506e
RW
16587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16588$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16589if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
5213506e 16590 $as_echo_n "(cached) " >&6
e8b05380 16591else
1c710c3c
DJ
16592 case $STRIP_FOR_TARGET in
16593 [\\/]* | ?:[\\/]*)
e8b05380
PB
16594 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16595 ;;
e8b05380 16596 *)
1c710c3c
DJ
16597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16598for as_dir in $gcc_cv_tool_dirs
16599do
16600 IFS=$as_save_IFS
16601 test -z "$as_dir" && as_dir=.
5213506e 16602 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16604 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16606 break 2
16607 fi
16608done
5213506e
RW
16609 done
16610IFS=$as_save_IFS
1c710c3c 16611
e8b05380
PB
16612 ;;
16613esac
16614fi
1c710c3c 16615STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 16616if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16618$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 16619else
5213506e
RW
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16621$as_echo "no" >&6; }
e8b05380
PB
16622fi
16623
5213506e 16624
e8b05380
PB
16625fi
16626if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
16627
16628
16629if test -n "$STRIP_FOR_TARGET"; then
16630 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16631elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16632 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16633fi
16634
16635if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16636 for ncn_progname in strip; do
16637 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16638set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16640$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16641if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16642 $as_echo_n "(cached) " >&6
278a7a38
AO
16643else
16644 if test -n "$STRIP_FOR_TARGET"; then
16645 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16646else
16647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16648for as_dir in $PATH
16649do
16650 IFS=$as_save_IFS
16651 test -z "$as_dir" && as_dir=.
5213506e 16652 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16654 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 16655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16656 break 2
16657 fi
16658done
5213506e
RW
16659 done
16660IFS=$as_save_IFS
278a7a38
AO
16661
16662fi
16663fi
16664STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16665if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16667$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 16668else
5213506e
RW
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16670$as_echo "no" >&6; }
278a7a38
AO
16671fi
16672
5213506e 16673
278a7a38
AO
16674 done
16675fi
16676
16677if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16678 for ncn_progname in strip; do
5213506e
RW
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16680$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16681 if test -x $with_build_time_tools/${ncn_progname}; then
16682 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16684$as_echo "yes" >&6; }
e8b05380
PB
16685 break
16686 else
5213506e
RW
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16688$as_echo "no" >&6; }
e8b05380
PB
16689 fi
16690 done
16691fi
16692
16693if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16694 for ncn_progname in strip; do
16695 if test -n "$ncn_target_tool_prefix"; then
16696 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 16697set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16699$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16700if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16701 $as_echo_n "(cached) " >&6
af71363e
AS
16702else
16703 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
16704 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16705else
16706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16707for as_dir in $PATH
16708do
16709 IFS=$as_save_IFS
16710 test -z "$as_dir" && as_dir=.
5213506e 16711 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16713 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16715 break 2
16716 fi
16717done
5213506e
RW
16718 done
16719IFS=$as_save_IFS
1c710c3c 16720
040b1c5a
GK
16721fi
16722fi
1c710c3c 16723STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 16724if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16726$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 16727else
5213506e
RW
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16729$as_echo "no" >&6; }
040b1c5a
GK
16730fi
16731
5213506e 16732
e8b05380
PB
16733 fi
16734 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 16736set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16738$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16739if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16740 $as_echo_n "(cached) " >&6
040b1c5a
GK
16741else
16742 if test -n "$STRIP_FOR_TARGET"; then
16743 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16744else
1c710c3c
DJ
16745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16746for as_dir in $PATH
16747do
16748 IFS=$as_save_IFS
16749 test -z "$as_dir" && as_dir=.
5213506e 16750 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16752 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 16753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16754 break 2
16755 fi
16756done
5213506e
RW
16757 done
16758IFS=$as_save_IFS
1c710c3c 16759
040b1c5a
GK
16760fi
16761fi
1c710c3c 16762STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 16763if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16765$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 16766else
5213506e
RW
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16768$as_echo "no" >&6; }
040b1c5a 16769fi
1c710c3c 16770
5213506e 16771
e8b05380
PB
16772 fi
16773 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16774 done
16775fi
1c710c3c 16776
040b1c5a
GK
16777if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16778 set dummy strip
16779 if test $build = $target ; then
16780 STRIP_FOR_TARGET="$2"
16781 else
16782 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16783 fi
1c00b503
PB
16784else
16785 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
16786fi
16787
d1f8db0c
PB
16788else
16789 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
16790fi
16791
16792
16793
16794
16795if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16796 if test -n "$with_build_time_tools"; then
5213506e
RW
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16798$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16799 if test -x $with_build_time_tools/windres; then
16800 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16801 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16803$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 16804 else
5213506e
RW
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16806$as_echo "no" >&6; }
d1f8db0c 16807 fi
e8b05380
PB
16808 elif test $build != $host && test $have_gcc_for_target = yes; then
16809 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
16810 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16811 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
16812 fi
16813fi
3e19841a 16814if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16815 # Extract the first word of "windres", so it can be a program name with args.
16816set dummy windres; ac_word=$2
5213506e
RW
16817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16818$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16819if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
5213506e 16820 $as_echo_n "(cached) " >&6
e8b05380 16821else
1c710c3c
DJ
16822 case $WINDRES_FOR_TARGET in
16823 [\\/]* | ?:[\\/]*)
e8b05380
PB
16824 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16825 ;;
e8b05380 16826 *)
1c710c3c
DJ
16827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16828for as_dir in $gcc_cv_tool_dirs
16829do
16830 IFS=$as_save_IFS
16831 test -z "$as_dir" && as_dir=.
5213506e 16832 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16834 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16836 break 2
16837 fi
16838done
5213506e
RW
16839 done
16840IFS=$as_save_IFS
1c710c3c 16841
e8b05380
PB
16842 ;;
16843esac
16844fi
1c710c3c 16845WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 16846if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16848$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 16849else
5213506e
RW
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16851$as_echo "no" >&6; }
e8b05380
PB
16852fi
16853
5213506e 16854
e8b05380
PB
16855fi
16856if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
16857
16858
16859if test -n "$WINDRES_FOR_TARGET"; then
16860 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16861elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16862 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16863fi
16864
16865if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16866 for ncn_progname in windres; do
16867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16868set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16870$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16871if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 16872 $as_echo_n "(cached) " >&6
278a7a38
AO
16873else
16874 if test -n "$WINDRES_FOR_TARGET"; then
16875 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16876else
16877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16878for as_dir in $PATH
16879do
16880 IFS=$as_save_IFS
16881 test -z "$as_dir" && as_dir=.
5213506e 16882 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16884 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 16885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16886 break 2
16887 fi
16888done
5213506e
RW
16889 done
16890IFS=$as_save_IFS
278a7a38
AO
16891
16892fi
16893fi
16894WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16895if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16897$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 16898else
5213506e
RW
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16900$as_echo "no" >&6; }
278a7a38
AO
16901fi
16902
5213506e 16903
278a7a38
AO
16904 done
16905fi
16906
16907if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16908 for ncn_progname in windres; do
5213506e
RW
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16910$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16911 if test -x $with_build_time_tools/${ncn_progname}; then
16912 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16914$as_echo "yes" >&6; }
e8b05380
PB
16915 break
16916 else
5213506e
RW
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16918$as_echo "no" >&6; }
e8b05380
PB
16919 fi
16920 done
16921fi
16922
16923if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16924 for ncn_progname in windres; do
16925 if test -n "$ncn_target_tool_prefix"; then
16926 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 16927set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16929$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16930if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 16931 $as_echo_n "(cached) " >&6
ca9f4b81 16932else
4de997d1
PB
16933 if test -n "$WINDRES_FOR_TARGET"; then
16934 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 16935else
1c710c3c
DJ
16936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16937for as_dir in $PATH
16938do
16939 IFS=$as_save_IFS
16940 test -z "$as_dir" && as_dir=.
5213506e 16941 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16943 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16945 break 2
16946 fi
16947done
5213506e
RW
16948 done
16949IFS=$as_save_IFS
1c710c3c 16950
ca9f4b81
AO
16951fi
16952fi
1c710c3c 16953WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 16954if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16956$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 16957else
5213506e
RW
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16959$as_echo "no" >&6; }
ca9f4b81
AO
16960fi
16961
5213506e 16962
e8b05380
PB
16963 fi
16964 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 16966set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16968$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16969if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 16970 $as_echo_n "(cached) " >&6
ca9f4b81 16971else
2693c0b0
PB
16972 if test -n "$WINDRES_FOR_TARGET"; then
16973 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 16974else
1c710c3c
DJ
16975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16976for as_dir in $PATH
16977do
16978 IFS=$as_save_IFS
16979 test -z "$as_dir" && as_dir=.
5213506e 16980 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16982 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 16983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16984 break 2
16985 fi
16986done
5213506e
RW
16987 done
16988IFS=$as_save_IFS
1c710c3c 16989
ca9f4b81
AO
16990fi
16991fi
1c710c3c 16992WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 16993if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16995$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 16996else
5213506e
RW
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16998$as_echo "no" >&6; }
ca9f4b81 16999fi
1c710c3c 17000
5213506e 17001
e8b05380
PB
17002 fi
17003 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17004 done
17005fi
1c710c3c 17006
2693c0b0
PB
17007if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17008 set dummy windres
17009 if test $build = $target ; then
17010 WINDRES_FOR_TARGET="$2"
ca9f4b81 17011 else
2693c0b0 17012 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 17013 fi
1c00b503
PB
17014else
17015 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
17016fi
17017
d1f8db0c
PB
17018else
17019 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
17020fi
17021
4977bab6 17022
901119ae
KT
17023
17024
17025if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17026 if test -n "$with_build_time_tools"; then
5213506e
RW
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17028$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
17029 if test -x $with_build_time_tools/windmc; then
17030 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17031 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17033$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 17034 else
5213506e
RW
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17036$as_echo "no" >&6; }
901119ae
KT
17037 fi
17038 elif test $build != $host && test $have_gcc_for_target = yes; then
17039 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
17040 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17041 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
17042 fi
17043fi
17044if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17045 # Extract the first word of "windmc", so it can be a program name with args.
17046set dummy windmc; ac_word=$2
5213506e
RW
17047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17048$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17049if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
5213506e 17050 $as_echo_n "(cached) " >&6
901119ae
KT
17051else
17052 case $WINDMC_FOR_TARGET in
17053 [\\/]* | ?:[\\/]*)
17054 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17055 ;;
17056 *)
17057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17058for as_dir in $gcc_cv_tool_dirs
17059do
17060 IFS=$as_save_IFS
17061 test -z "$as_dir" && as_dir=.
5213506e 17062 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17064 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 17065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17066 break 2
17067 fi
17068done
5213506e
RW
17069 done
17070IFS=$as_save_IFS
901119ae
KT
17071
17072 ;;
17073esac
17074fi
17075WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 17076if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17078$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17079else
5213506e
RW
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17081$as_echo "no" >&6; }
901119ae
KT
17082fi
17083
5213506e 17084
901119ae
KT
17085fi
17086if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17087
17088
17089if test -n "$WINDMC_FOR_TARGET"; then
17090 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17091elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17092 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17093fi
17094
17095if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17096 for ncn_progname in windmc; do
17097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17098set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17100$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17101if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17102 $as_echo_n "(cached) " >&6
901119ae
KT
17103else
17104 if test -n "$WINDMC_FOR_TARGET"; then
17105 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17106else
17107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17108for as_dir in $PATH
17109do
17110 IFS=$as_save_IFS
17111 test -z "$as_dir" && as_dir=.
5213506e 17112 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17114 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 17115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17116 break 2
17117 fi
17118done
5213506e
RW
17119 done
17120IFS=$as_save_IFS
901119ae
KT
17121
17122fi
17123fi
17124WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17125if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17127$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17128else
5213506e
RW
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17130$as_echo "no" >&6; }
901119ae
KT
17131fi
17132
5213506e 17133
901119ae
KT
17134 done
17135fi
17136
17137if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17138 for ncn_progname in windmc; do
5213506e
RW
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17140$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
17141 if test -x $with_build_time_tools/${ncn_progname}; then
17142 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17144$as_echo "yes" >&6; }
901119ae
KT
17145 break
17146 else
5213506e
RW
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17148$as_echo "no" >&6; }
901119ae
KT
17149 fi
17150 done
17151fi
17152
17153if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17154 for ncn_progname in windmc; do
17155 if test -n "$ncn_target_tool_prefix"; then
17156 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17157set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
17158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17159$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17160if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17161 $as_echo_n "(cached) " >&6
901119ae
KT
17162else
17163 if test -n "$WINDMC_FOR_TARGET"; then
17164 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17165else
17166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17167for as_dir in $PATH
17168do
17169 IFS=$as_save_IFS
17170 test -z "$as_dir" && as_dir=.
5213506e 17171 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17173 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 17174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17175 break 2
17176 fi
17177done
5213506e
RW
17178 done
17179IFS=$as_save_IFS
901119ae
KT
17180
17181fi
17182fi
17183WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17184if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17186$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17187else
5213506e
RW
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17189$as_echo "no" >&6; }
901119ae
KT
17190fi
17191
5213506e 17192
901119ae
KT
17193 fi
17194 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17195 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17196set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17198$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17199if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17200 $as_echo_n "(cached) " >&6
901119ae
KT
17201else
17202 if test -n "$WINDMC_FOR_TARGET"; then
17203 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17204else
17205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17206for as_dir in $PATH
17207do
17208 IFS=$as_save_IFS
17209 test -z "$as_dir" && as_dir=.
5213506e 17210 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17212 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 17213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17214 break 2
17215 fi
17216done
5213506e
RW
17217 done
17218IFS=$as_save_IFS
901119ae
KT
17219
17220fi
17221fi
17222WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17223if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17225$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17226else
5213506e
RW
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17228$as_echo "no" >&6; }
901119ae
KT
17229fi
17230
5213506e 17231
901119ae
KT
17232 fi
17233 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17234 done
17235fi
17236
17237if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17238 set dummy windmc
17239 if test $build = $target ; then
17240 WINDMC_FOR_TARGET="$2"
17241 else
17242 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17243 fi
1c00b503
PB
17244else
17245 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
17246fi
17247
17248else
17249 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17250fi
17251
17252
2abefe3d
PB
17253RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17254
5213506e
RW
17255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17256$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 17257if test "x${build}" != "x${host}" ; then
e8b05380
PB
17258 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17259 # We already found the complete path
172e41aa 17260 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17262$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17263 else
17264 # Canadian cross, just use what we found
5213506e
RW
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17266$as_echo "pre-installed" >&6; }
e8b05380 17267 fi
2abefe3d
PB
17268else
17269 ok=yes
17270 case " ${configdirs} " in
17271 *" binutils "*) ;;
17272 *) ok=no ;;
17273 esac
1c710c3c 17274
2abefe3d
PB
17275 if test $ok = yes; then
17276 # An in-tree tool is available and we can use it
17277 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17279$as_echo "just compiled" >&6; }
e8b05380
PB
17280 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17281 # We already found the complete path
172e41aa 17282 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17284$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17285 elif test "x$target" = "x$host"; then
17286 # We can use an host tool
17287 AR_FOR_TARGET='$(AR)'
5213506e
RW
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17289$as_echo "host tool" >&6; }
2abefe3d
PB
17290 else
17291 # We need a cross tool
5213506e
RW
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17293$as_echo "pre-installed" >&6; }
2abefe3d
PB
17294 fi
17295fi
0b0dc272 17296
5213506e
RW
17297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17298$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 17299if test "x${build}" != "x${host}" ; then
e8b05380
PB
17300 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17301 # We already found the complete path
172e41aa 17302 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17304$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17305 else
17306 # Canadian cross, just use what we found
5213506e
RW
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17308$as_echo "pre-installed" >&6; }
e8b05380 17309 fi
2abefe3d
PB
17310else
17311 ok=yes
17312 case " ${configdirs} " in
17313 *" gas "*) ;;
17314 *) ok=no ;;
17315 esac
1c710c3c 17316
2abefe3d
PB
17317 if test $ok = yes; then
17318 # An in-tree tool is available and we can use it
17319 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17321$as_echo "just compiled" >&6; }
e8b05380
PB
17322 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17323 # We already found the complete path
172e41aa 17324 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17326$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17327 elif test "x$target" = "x$host"; then
17328 # We can use an host tool
17329 AS_FOR_TARGET='$(AS)'
5213506e
RW
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17331$as_echo "host tool" >&6; }
2abefe3d
PB
17332 else
17333 # We need a cross tool
5213506e
RW
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17335$as_echo "pre-installed" >&6; }
2abefe3d
PB
17336 fi
17337fi
0b0dc272 17338
5213506e
RW
17339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17340$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 17341if test "x${build}" != "x${host}" ; then
e8b05380
PB
17342 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17343 # We already found the complete path
172e41aa 17344 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17346$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17347 else
17348 # Canadian cross, just use what we found
5213506e
RW
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17350$as_echo "pre-installed" >&6; }
e8b05380 17351 fi
2abefe3d
PB
17352else
17353 ok=yes
17354 case " ${configdirs} " in
17355 *" gcc "*) ;;
17356 *) ok=no ;;
17357 esac
1c710c3c 17358
2abefe3d
PB
17359 if test $ok = yes; then
17360 # An in-tree tool is available and we can use it
17361 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17363$as_echo "just compiled" >&6; }
e8b05380
PB
17364 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17365 # We already found the complete path
172e41aa 17366 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17368$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17369 elif test "x$target" = "x$host"; then
17370 # We can use an host tool
17371 CC_FOR_TARGET='$(CC)'
5213506e
RW
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17373$as_echo "host tool" >&6; }
2abefe3d
PB
17374 else
17375 # We need a cross tool
5213506e
RW
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17377$as_echo "pre-installed" >&6; }
2abefe3d
PB
17378 fi
17379fi
0b0dc272 17380
5213506e
RW
17381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17382$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 17383if test "x${build}" != "x${host}" ; then
e8b05380
PB
17384 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17385 # We already found the complete path
172e41aa 17386 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17388$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17389 else
17390 # Canadian cross, just use what we found
5213506e
RW
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17392$as_echo "pre-installed" >&6; }
e8b05380 17393 fi
2abefe3d
PB
17394else
17395 ok=yes
17396 case " ${configdirs} " in
17397 *" gcc "*) ;;
17398 *) ok=no ;;
17399 esac
17400 case ,${enable_languages}, in
17401 *,c++,*) ;;
17402 *) ok=no ;;
17403 esac
17404 if test $ok = yes; then
17405 # An in-tree tool is available and we can use it
2077db1b 17406 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
5213506e
RW
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17408$as_echo "just compiled" >&6; }
e8b05380
PB
17409 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17410 # We already found the complete path
172e41aa 17411 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17413$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17414 elif test "x$target" = "x$host"; then
17415 # We can use an host tool
17416 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17418$as_echo "host tool" >&6; }
2abefe3d
PB
17419 else
17420 # We need a cross tool
5213506e
RW
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17422$as_echo "pre-installed" >&6; }
2abefe3d
PB
17423 fi
17424fi
0b0dc272 17425
5213506e
RW
17426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17427$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 17428if test "x${build}" != "x${host}" ; then
e8b05380
PB
17429 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17430 # We already found the complete path
172e41aa 17431 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17433$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17434 else
17435 # Canadian cross, just use what we found
5213506e
RW
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17437$as_echo "pre-installed" >&6; }
e8b05380 17438 fi
2abefe3d
PB
17439else
17440 ok=yes
17441 case " ${configdirs} " in
17442 *" gcc "*) ;;
17443 *) ok=no ;;
17444 esac
17445 case ,${enable_languages}, in
17446 *,c++,*) ;;
17447 *) ok=no ;;
17448 esac
17449 if test $ok = yes; then
17450 # An in-tree tool is available and we can use it
2077db1b 17451 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
5213506e
RW
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17453$as_echo "just compiled" >&6; }
e8b05380
PB
17454 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17455 # We already found the complete path
172e41aa 17456 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17458$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17459 elif test "x$target" = "x$host"; then
17460 # We can use an host tool
17461 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17463$as_echo "host tool" >&6; }
2abefe3d
PB
17464 else
17465 # We need a cross tool
5213506e
RW
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17467$as_echo "pre-installed" >&6; }
2abefe3d
PB
17468 fi
17469fi
0b0dc272 17470
5213506e
RW
17471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17472$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 17473if test "x${build}" != "x${host}" ; then
e8b05380
PB
17474 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17475 # We already found the complete path
172e41aa 17476 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17478$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17479 else
17480 # Canadian cross, just use what we found
5213506e
RW
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17482$as_echo "pre-installed" >&6; }
e8b05380 17483 fi
2abefe3d
PB
17484else
17485 ok=yes
17486 case " ${configdirs} " in
17487 *" binutils "*) ;;
17488 *) ok=no ;;
17489 esac
1c710c3c 17490
2abefe3d
PB
17491 if test $ok = yes; then
17492 # An in-tree tool is available and we can use it
17493 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17495$as_echo "just compiled" >&6; }
e8b05380
PB
17496 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17497 # We already found the complete path
172e41aa 17498 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17500$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17501 elif test "x$target" = "x$host"; then
17502 # We can use an host tool
17503 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17505$as_echo "host tool" >&6; }
2abefe3d
PB
17506 else
17507 # We need a cross tool
5213506e
RW
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17509$as_echo "pre-installed" >&6; }
2abefe3d
PB
17510 fi
17511fi
0b0dc272 17512
3b5e8ee4
IS
17513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17514$as_echo_n "checking where to find the target dsymutil... " >&6; }
17515if test "x${build}" != "x${host}" ; then
17516 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17517 # We already found the complete path
17518 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17520$as_echo "pre-installed in $ac_dir" >&6; }
17521 else
17522 # Canadian cross, just use what we found
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17524$as_echo "pre-installed" >&6; }
17525 fi
17526else
17527 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17528 # We already found the complete path
17529 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17531$as_echo "pre-installed in $ac_dir" >&6; }
17532 elif test "x$target" = "x$host"; then
17533 # We can use an host tool
17534 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17536$as_echo "host tool" >&6; }
17537 else
17538 # We need a cross tool
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17540$as_echo "pre-installed" >&6; }
17541 fi
17542fi
17543
5213506e
RW
17544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17545$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 17546if test "x${build}" != "x${host}" ; then
e8b05380
PB
17547 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17548 # We already found the complete path
172e41aa 17549 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17551$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17552 else
17553 # Canadian cross, just use what we found
5213506e
RW
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17555$as_echo "pre-installed" >&6; }
e8b05380 17556 fi
2abefe3d
PB
17557else
17558 ok=yes
17559 case " ${configdirs} " in
17560 *" gcc "*) ;;
17561 *) ok=no ;;
17562 esac
1c710c3c 17563
2abefe3d
PB
17564 if test $ok = yes; then
17565 # An in-tree tool is available and we can use it
17566 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17568$as_echo "just compiled" >&6; }
e8b05380
PB
17569 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17570 # We already found the complete path
172e41aa 17571 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17573$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17574 elif test "x$target" = "x$host"; then
17575 # We can use an host tool
17576 GCC_FOR_TARGET='$()'
5213506e
RW
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17578$as_echo "host tool" >&6; }
2abefe3d
PB
17579 else
17580 # We need a cross tool
5213506e
RW
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17582$as_echo "pre-installed" >&6; }
2abefe3d
PB
17583 fi
17584fi
0b0dc272 17585
5213506e
RW
17586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17587$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 17588if test "x${build}" != "x${host}" ; then
e8b05380
PB
17589 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17590 # We already found the complete path
172e41aa 17591 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17593$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17594 else
17595 # Canadian cross, just use what we found
5213506e
RW
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17597$as_echo "pre-installed" >&6; }
e8b05380 17598 fi
2abefe3d
PB
17599else
17600 ok=yes
17601 case " ${configdirs} " in
17602 *" gcc "*) ;;
17603 *) ok=no ;;
17604 esac
17605 case ,${enable_languages}, in
17606 *,fortran,*) ;;
17607 *) ok=no ;;
17608 esac
17609 if test $ok = yes; then
17610 # An in-tree tool is available and we can use it
17611 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17613$as_echo "just compiled" >&6; }
e8b05380
PB
17614 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17615 # We already found the complete path
172e41aa 17616 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17618$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17619 elif test "x$target" = "x$host"; then
17620 # We can use an host tool
17621 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17623$as_echo "host tool" >&6; }
2abefe3d
PB
17624 else
17625 # We need a cross tool
5213506e
RW
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17627$as_echo "pre-installed" >&6; }
2abefe3d
PB
17628 fi
17629fi
0b0dc272 17630
632e2a07
ILT
17631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17632$as_echo_n "checking where to find the target gccgo... " >&6; }
17633if test "x${build}" != "x${host}" ; then
17634 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17635 # We already found the complete path
17636 ac_dir=`dirname $GOC_FOR_TARGET`
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17638$as_echo "pre-installed in $ac_dir" >&6; }
17639 else
17640 # Canadian cross, just use what we found
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17642$as_echo "pre-installed" >&6; }
17643 fi
17644else
17645 ok=yes
17646 case " ${configdirs} " in
17647 *" gcc "*) ;;
17648 *) ok=no ;;
17649 esac
17650 case ,${enable_languages}, in
17651 *,go,*) ;;
17652 *) ok=no ;;
17653 esac
17654 if test $ok = yes; then
17655 # An in-tree tool is available and we can use it
17656 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17658$as_echo "just compiled" >&6; }
17659 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17660 # We already found the complete path
17661 ac_dir=`dirname $GOC_FOR_TARGET`
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17663$as_echo "pre-installed in $ac_dir" >&6; }
17664 elif test "x$target" = "x$host"; then
17665 # We can use an host tool
17666 GOC_FOR_TARGET='$(GOC)'
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17668$as_echo "host tool" >&6; }
17669 else
17670 # We need a cross tool
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17672$as_echo "pre-installed" >&6; }
17673 fi
17674fi
17675
b4c522fa
IB
17676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17677$as_echo_n "checking where to find the target gdc... " >&6; }
17678if test "x${build}" != "x${host}" ; then
17679 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17680 # We already found the complete path
17681 ac_dir=`dirname $GDC_FOR_TARGET`
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17683$as_echo "pre-installed in $ac_dir" >&6; }
17684 else
17685 # Canadian cross, just use what we found
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17687$as_echo "pre-installed" >&6; }
17688 fi
17689else
17690 ok=yes
17691 case " ${configdirs} " in
17692 *" gcc "*) ;;
17693 *) ok=no ;;
17694 esac
17695 case ,${enable_languages}, in
17696 *,d,*) ;;
17697 *) ok=no ;;
17698 esac
17699 if test $ok = yes; then
17700 # An in-tree tool is available and we can use it
17701 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17703$as_echo "just compiled" >&6; }
17704 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17705 # We already found the complete path
17706 ac_dir=`dirname $GDC_FOR_TARGET`
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17708$as_echo "pre-installed in $ac_dir" >&6; }
17709 elif test "x$target" = "x$host"; then
17710 # We can use an host tool
17711 GDC_FOR_TARGET='$(GDC)'
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17713$as_echo "host tool" >&6; }
17714 else
17715 # We need a cross tool
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17717$as_echo "pre-installed" >&6; }
17718 fi
17719fi
17720
5213506e
RW
17721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17722$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 17723if test "x${build}" != "x${host}" ; then
e8b05380
PB
17724 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17725 # We already found the complete path
172e41aa 17726 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17728$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17729 else
17730 # Canadian cross, just use what we found
5213506e
RW
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17732$as_echo "pre-installed" >&6; }
e8b05380 17733 fi
2abefe3d
PB
17734else
17735 ok=yes
17736 case " ${configdirs} " in
17737 *" ld "*) ;;
17738 *) ok=no ;;
17739 esac
1c710c3c 17740
2abefe3d
PB
17741 if test $ok = yes; then
17742 # An in-tree tool is available and we can use it
17743 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17745$as_echo "just compiled" >&6; }
e8b05380
PB
17746 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17747 # We already found the complete path
172e41aa 17748 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17750$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17751 elif test "x$target" = "x$host"; then
17752 # We can use an host tool
17753 LD_FOR_TARGET='$(LD)'
5213506e
RW
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17755$as_echo "host tool" >&6; }
2abefe3d
PB
17756 else
17757 # We need a cross tool
5213506e
RW
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17759$as_echo "pre-installed" >&6; }
2abefe3d
PB
17760 fi
17761fi
0b0dc272 17762
5213506e
RW
17763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17764$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 17765if test "x${build}" != "x${host}" ; then
e8b05380
PB
17766 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17767 # We already found the complete path
172e41aa 17768 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17770$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17771 else
17772 # Canadian cross, just use what we found
5213506e
RW
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17774$as_echo "pre-installed" >&6; }
e8b05380 17775 fi
2abefe3d 17776else
e8b05380
PB
17777 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17778 # We already found the complete path
172e41aa 17779 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17781$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 17782 elif test "x$target" = "x$host"; then
2abefe3d
PB
17783 # We can use an host tool
17784 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17786$as_echo "host tool" >&6; }
2abefe3d
PB
17787 else
17788 # We need a cross tool
5213506e
RW
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17790$as_echo "pre-installed" >&6; }
2abefe3d
PB
17791 fi
17792fi
0b0dc272 17793
5213506e
RW
17794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17795$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 17796if test "x${build}" != "x${host}" ; then
e8b05380
PB
17797 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17798 # We already found the complete path
172e41aa 17799 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17801$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17802 else
17803 # Canadian cross, just use what we found
5213506e
RW
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17805$as_echo "pre-installed" >&6; }
e8b05380 17806 fi
2abefe3d
PB
17807else
17808 ok=yes
17809 case " ${configdirs} " in
17810 *" binutils "*) ;;
17811 *) ok=no ;;
17812 esac
1c710c3c 17813
2abefe3d
PB
17814 if test $ok = yes; then
17815 # An in-tree tool is available and we can use it
17816 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17818$as_echo "just compiled" >&6; }
e8b05380
PB
17819 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17820 # We already found the complete path
172e41aa 17821 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17823$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17824 elif test "x$target" = "x$host"; then
17825 # We can use an host tool
17826 NM_FOR_TARGET='$(NM)'
5213506e
RW
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17828$as_echo "host tool" >&6; }
2abefe3d
PB
17829 else
17830 # We need a cross tool
5213506e
RW
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17832$as_echo "pre-installed" >&6; }
2abefe3d
PB
17833 fi
17834fi
0b0dc272 17835
9bccfdf5
AP
17836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17837$as_echo_n "checking where to find the target objcopy... " >&6; }
17838if test "x${build}" != "x${host}" ; then
17839 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17840 # We already found the complete path
17841 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17843$as_echo "pre-installed in $ac_dir" >&6; }
17844 else
17845 # Canadian cross, just use what we found
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17847$as_echo "pre-installed" >&6; }
17848 fi
17849else
17850 ok=yes
17851 case " ${configdirs} " in
17852 *" binutils "*) ;;
17853 *) ok=no ;;
17854 esac
17855
17856 if test $ok = yes; then
17857 # An in-tree tool is available and we can use it
17858 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17860$as_echo "just compiled" >&6; }
17861 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17862 # We already found the complete path
17863 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17865$as_echo "pre-installed in $ac_dir" >&6; }
17866 elif test "x$target" = "x$host"; then
17867 # We can use an host tool
ec8fd1c0 17868 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17870$as_echo "host tool" >&6; }
17871 else
17872 # We need a cross tool
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17874$as_echo "pre-installed" >&6; }
17875 fi
17876fi
17877
5213506e
RW
17878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17879$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 17880if test "x${build}" != "x${host}" ; then
e8b05380
PB
17881 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17882 # We already found the complete path
172e41aa 17883 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17885$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17886 else
17887 # Canadian cross, just use what we found
5213506e
RW
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17889$as_echo "pre-installed" >&6; }
e8b05380 17890 fi
2abefe3d
PB
17891else
17892 ok=yes
17893 case " ${configdirs} " in
17894 *" binutils "*) ;;
17895 *) ok=no ;;
17896 esac
1c710c3c 17897
2abefe3d
PB
17898 if test $ok = yes; then
17899 # An in-tree tool is available and we can use it
17900 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17902$as_echo "just compiled" >&6; }
e8b05380
PB
17903 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17904 # We already found the complete path
172e41aa 17905 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17907$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17908 elif test "x$target" = "x$host"; then
17909 # We can use an host tool
17910 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17912$as_echo "host tool" >&6; }
2abefe3d
PB
17913 else
17914 # We need a cross tool
5213506e
RW
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17916$as_echo "pre-installed" >&6; }
2abefe3d
PB
17917 fi
17918fi
0b0dc272 17919
e4a9a572
IS
17920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17921$as_echo_n "checking where to find the target otool... " >&6; }
17922if test "x${build}" != "x${host}" ; then
17923 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17924 # We already found the complete path
17925 ac_dir=`dirname $OTOOL_FOR_TARGET`
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17927$as_echo "pre-installed in $ac_dir" >&6; }
17928 else
17929 # Canadian cross, just use what we found
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17931$as_echo "pre-installed" >&6; }
17932 fi
17933else
17934 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17935 # We already found the complete path
17936 ac_dir=`dirname $OTOOL_FOR_TARGET`
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17938$as_echo "pre-installed in $ac_dir" >&6; }
17939 elif test "x$target" = "x$host"; then
17940 # We can use an host tool
17941 OTOOL_FOR_TARGET='$(OTOOL)'
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17943$as_echo "host tool" >&6; }
17944 else
17945 # We need a cross tool
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17947$as_echo "pre-installed" >&6; }
17948 fi
17949fi
17950
5213506e
RW
17951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17952$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 17953if test "x${build}" != "x${host}" ; then
e8b05380
PB
17954 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17955 # We already found the complete path
172e41aa 17956 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17958$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17959 else
17960 # Canadian cross, just use what we found
5213506e
RW
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17962$as_echo "pre-installed" >&6; }
e8b05380 17963 fi
2abefe3d
PB
17964else
17965 ok=yes
17966 case " ${configdirs} " in
17967 *" binutils "*) ;;
17968 *) ok=no ;;
17969 esac
1c710c3c 17970
2abefe3d
PB
17971 if test $ok = yes; then
17972 # An in-tree tool is available and we can use it
17973 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17975$as_echo "just compiled" >&6; }
e8b05380
PB
17976 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17977 # We already found the complete path
172e41aa 17978 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17980$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17981 elif test "x$target" = "x$host"; then
17982 # We can use an host tool
17983 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17985$as_echo "host tool" >&6; }
2abefe3d
PB
17986 else
17987 # We need a cross tool
5213506e
RW
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17989$as_echo "pre-installed" >&6; }
2abefe3d
PB
17990 fi
17991fi
0b0dc272 17992
e7a82751
RM
17993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17994$as_echo_n "checking where to find the target readelf... " >&6; }
17995if test "x${build}" != "x${host}" ; then
17996 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17997 # We already found the complete path
17998 ac_dir=`dirname $READELF_FOR_TARGET`
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18000$as_echo "pre-installed in $ac_dir" >&6; }
18001 else
18002 # Canadian cross, just use what we found
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18004$as_echo "pre-installed" >&6; }
18005 fi
18006else
18007 ok=yes
18008 case " ${configdirs} " in
18009 *" binutils "*) ;;
18010 *) ok=no ;;
18011 esac
18012
18013 if test $ok = yes; then
18014 # An in-tree tool is available and we can use it
18015 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18017$as_echo "just compiled" >&6; }
18018 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18019 # We already found the complete path
18020 ac_dir=`dirname $READELF_FOR_TARGET`
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18022$as_echo "pre-installed in $ac_dir" >&6; }
18023 elif test "x$target" = "x$host"; then
18024 # We can use an host tool
18025 READELF_FOR_TARGET='$(READELF)'
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18027$as_echo "host tool" >&6; }
18028 else
18029 # We need a cross tool
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18031$as_echo "pre-installed" >&6; }
18032 fi
18033fi
18034
5213506e
RW
18035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18036$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 18037if test "x${build}" != "x${host}" ; then
e8b05380
PB
18038 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18039 # We already found the complete path
172e41aa 18040 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18042$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18043 else
18044 # Canadian cross, just use what we found
5213506e
RW
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18046$as_echo "pre-installed" >&6; }
e8b05380 18047 fi
2abefe3d
PB
18048else
18049 ok=yes
18050 case " ${configdirs} " in
18051 *" binutils "*) ;;
18052 *) ok=no ;;
18053 esac
1c710c3c 18054
2abefe3d
PB
18055 if test $ok = yes; then
18056 # An in-tree tool is available and we can use it
455c8f48 18057 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18059$as_echo "just compiled" >&6; }
e8b05380
PB
18060 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18061 # We already found the complete path
172e41aa 18062 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18064$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18065 elif test "x$target" = "x$host"; then
18066 # We can use an host tool
18067 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18069$as_echo "host tool" >&6; }
2abefe3d
PB
18070 else
18071 # We need a cross tool
5213506e
RW
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18073$as_echo "pre-installed" >&6; }
2abefe3d
PB
18074 fi
18075fi
0b0dc272 18076
5213506e
RW
18077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18078$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 18079if test "x${build}" != "x${host}" ; then
e8b05380
PB
18080 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18081 # We already found the complete path
172e41aa 18082 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18084$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18085 else
18086 # Canadian cross, just use what we found
5213506e
RW
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18088$as_echo "pre-installed" >&6; }
e8b05380 18089 fi
2abefe3d
PB
18090else
18091 ok=yes
18092 case " ${configdirs} " in
18093 *" binutils "*) ;;
18094 *) ok=no ;;
18095 esac
1c710c3c 18096
2abefe3d
PB
18097 if test $ok = yes; then
18098 # An in-tree tool is available and we can use it
18099 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18101$as_echo "just compiled" >&6; }
e8b05380
PB
18102 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18103 # We already found the complete path
172e41aa 18104 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18106$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18107 elif test "x$target" = "x$host"; then
18108 # We can use an host tool
18109 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18111$as_echo "host tool" >&6; }
2abefe3d
PB
18112 else
18113 # We need a cross tool
5213506e
RW
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18115$as_echo "pre-installed" >&6; }
2abefe3d 18116 fi
671aa708 18117fi
be912515 18118
5213506e
RW
18119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18120$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
18121if test "x${build}" != "x${host}" ; then
18122 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18123 # We already found the complete path
18124 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18126$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
18127 else
18128 # Canadian cross, just use what we found
5213506e
RW
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18130$as_echo "pre-installed" >&6; }
901119ae
KT
18131 fi
18132else
18133 ok=yes
18134 case " ${configdirs} " in
18135 *" binutils "*) ;;
18136 *) ok=no ;;
18137 esac
18138
18139 if test $ok = yes; then
18140 # An in-tree tool is available and we can use it
18141 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18143$as_echo "just compiled" >&6; }
901119ae
KT
18144 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18145 # We already found the complete path
18146 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18148$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
18149 elif test "x$target" = "x$host"; then
18150 # We can use an host tool
18151 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18153$as_echo "host tool" >&6; }
901119ae
KT
18154 else
18155 # We need a cross tool
5213506e
RW
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18157$as_echo "pre-installed" >&6; }
901119ae
KT
18158 fi
18159fi
18160
be912515
NN
18161
18162
2abefe3d 18163
0b0dc272 18164
671aa708
NN
18165# Certain tools may need extra flags.
18166AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18167RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18168NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18169
2abefe3d
PB
18170# When building target libraries, except in a Canadian cross, we use
18171# the same toolchain as the compiler we just built.
18172COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18173COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18174COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18175if test $host = $build; then
18176 case " $configdirs " in
18177 *" gcc "*)
18178 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18179 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18180 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18181 ;;
18182 esac
18183fi
18184
18185
18186
18187
18188
5213506e
RW
18189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18190$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18191# Check whether --enable-maintainer-mode was given.
18192if test "${enable_maintainer_mode+set}" = set; then :
18193 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
18194else
18195 USE_MAINTAINER_MODE=no
5213506e
RW
18196fi
18197
18198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18199$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
18200
18201
18202if test "$USE_MAINTAINER_MODE" = yes; then
18203 MAINTAINER_MODE_TRUE=
18204 MAINTAINER_MODE_FALSE='#'
18205else
18206 MAINTAINER_MODE_TRUE='#'
18207 MAINTAINER_MODE_FALSE=
1c710c3c 18208fi
ee03dc5e
AO
18209MAINT=$MAINTAINER_MODE_TRUE
18210
2805b53a
NN
18211# ---------------------
18212# GCC bootstrap support
18213# ---------------------
18214
18215# Stage specific cflags for build.
18216stage1_cflags="-g"
18217case $build in
18218 vax-*-*)
18219 case ${GCC} in
18220 yes) stage1_cflags="-g -Wa,-J" ;;
18221 *) stage1_cflags="-g -J" ;;
18222 esac ;;
2805b53a
NN
18223esac
18224
0b50988a 18225
2805b53a 18226
8efea775 18227# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
18228# Check whether --enable-stage1-checking was given.
18229if test "${enable_stage1_checking+set}" = set; then :
18230 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 18231else
e643dc23 18232 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
18233 # For --disable-checking or implicit --enable-checking=release, avoid
18234 # setting --enable-checking=gc in the default stage1 checking for LTO
18235 # bootstraps. See PR62077.
c10b5ea0
JJ
18236 case $BUILD_CONFIG in
18237 *lto*)
7db11a5a
JJ
18238 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18239 *)
18240 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 18241 esac
7db11a5a
JJ
18242 if test "x$enable_checking" = x && \
18243 test -d ${srcdir}/gcc && \
18244 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 18245 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 18246 fi
8efea775 18247else
e643dc23 18248 stage1_checking=--enable-checking=$enable_checking,types
8efea775 18249fi
5213506e 18250fi
8efea775
PB
18251
18252
2aeb72e9 18253
5213506e
RW
18254# Enable -Werror in bootstrap stage2 and later.
18255# Check whether --enable-werror was given.
18256if test "${enable_werror+set}" = set; then :
18257 enableval=$enable_werror;
09a9c095
NN
18258case ${enable_werror} in
18259 yes) stage2_werror_flag="--enable-werror-always" ;;
18260 *) stage2_werror_flag="" ;;
2805b53a
NN
18261esac
18262
afd88efc
ML
18263else
18264
01c712cb
ML
18265if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18266 case $BUILD_CONFIG in
18267 bootstrap-debug)
18268 stage2_werror_flag="--enable-werror-always" ;;
18269 "")
18270 stage2_werror_flag="--enable-werror-always" ;;
18271 esac
18272fi
18273
afd88efc
ML
18274fi
18275
18276
01c712cb 18277
2805b53a 18278
f2689b09
SE
18279# Specify what files to not compare during bootstrap.
18280
18281compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18282case "$target" in
18283 hppa*64*-*-hpux*) ;;
4f943869 18284 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
f2689b09
SE
18285esac
18286
18287
5213506e
RW
18288ac_config_files="$ac_config_files Makefile"
18289
1c710c3c 18290cat >confcache <<\_ACEOF
671aa708
NN
18291# This file is a shell script that caches the results of configure
18292# tests run on this system so they can be shared between configure
1c710c3c
DJ
18293# scripts and configure runs, see configure's option --config-cache.
18294# It is not useful on other systems. If it contains results you don't
18295# want to keep, you may remove or edit it.
671aa708 18296#
1c710c3c
DJ
18297# config.status only pays attention to the cache file if you give it
18298# the --recheck option to rerun configure.
671aa708 18299#
1c710c3c
DJ
18300# `ac_cv_env_foo' variables (set or unset) will be overridden when
18301# loading this file, other *unset* `ac_cv_foo' will be assigned the
18302# following values.
18303
18304_ACEOF
18305
671aa708
NN
18306# The following way of writing the cache mishandles newlines in values,
18307# but we know of no workaround that is simple, portable, and efficient.
5213506e 18308# So, we kill variables containing newlines.
671aa708
NN
18309# Ultrix sh set writes to stderr and can't be redirected directly,
18310# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
18311(
18312 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18313 eval ac_val=\$$ac_var
18314 case $ac_val in #(
18315 *${as_nl}*)
18316 case $ac_var in #(
18317 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18318$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18319 esac
18320 case $ac_var in #(
18321 _ | IFS | as_nl) ;; #(
18322 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18323 *) { eval $ac_var=; unset $ac_var;} ;;
18324 esac ;;
18325 esac
18326 done
18327
1c710c3c 18328 (set) 2>&1 |
5213506e
RW
18329 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18330 *${as_nl}ac_space=\ *)
18331 # `set' does not quote correctly, so add quotes: double-quote
18332 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
18333 sed -n \
18334 "s/'/'\\\\''/g;
18335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 18336 ;; #(
1c710c3c
DJ
18337 *)
18338 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 18339 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 18340 ;;
5213506e
RW
18341 esac |
18342 sort
18343) |
1c710c3c 18344 sed '
5213506e 18345 /^ac_cv_env_/b end
1c710c3c 18346 t clear
5213506e 18347 :clear
1c710c3c
DJ
18348 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18349 t end
5213506e
RW
18350 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18351 :end' >>confcache
18352if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18353 if test -w "$cache_file"; then
22e05272 18354 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18356$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
18357 if test ! -f "$cache_file" || test -h "$cache_file"; then
18358 cat confcache >"$cache_file"
18359 else
18360 case $cache_file in #(
18361 */* | ?:*)
18362 mv -f confcache "$cache_file"$$ &&
18363 mv -f "$cache_file"$$ "$cache_file" ;; #(
18364 *)
18365 mv -f confcache "$cache_file" ;;
18366 esac
18367 fi
18368 fi
671aa708 18369 else
5213506e
RW
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18371$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 18372 fi
4977bab6 18373fi
671aa708 18374rm -f confcache
79c06341 18375
671aa708
NN
18376test "x$prefix" = xNONE && prefix=$ac_default_prefix
18377# Let make expand exec_prefix.
18378test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 18379
671aa708
NN
18380# Transform confdefs.h into DEFS.
18381# Protect against shell expansion while executing Makefile rules.
18382# Protect against Makefile macro expansion.
1c710c3c
DJ
18383#
18384# If the first sed substitution is executed (which looks for macros that
5213506e 18385# take arguments), then branch to the quote section. Otherwise,
1c710c3c 18386# look for a macro that doesn't take arguments.
5213506e
RW
18387ac_script='
18388:mline
18389/\\$/{
18390 N
18391 s,\\\n,,
18392 b mline
18393}
1c710c3c 18394t clear
5213506e
RW
18395:clear
18396s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18397t quote
5213506e 18398s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18399t quote
5213506e
RW
18400b any
18401:quote
18402s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18403s/\[/\\&/g
18404s/\]/\\&/g
18405s/\$/$$/g
18406H
18407:any
18408${
18409 g
18410 s/^\n//
18411 s/\n/ /g
18412 p
18413}
18414'
18415DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
18416
18417
18418ac_libobjs=
18419ac_ltlibobjs=
22e05272 18420U=
1c710c3c
DJ
18421for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18422 # 1. Remove the extension, and $U if already installed.
5213506e
RW
18423 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18424 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18425 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18426 # will be set to the directory where LIBOBJS objects are built.
18427 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18428 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
18429done
18430LIBOBJS=$ac_libobjs
fb0103e5 18431
1c710c3c 18432LTLIBOBJS=$ac_ltlibobjs
0b0dc272 18433
af71363e 18434
1c710c3c 18435
22e05272 18436: "${CONFIG_STATUS=./config.status}"
5213506e 18437ac_write_fail=0
1c710c3c
DJ
18438ac_clean_files_save=$ac_clean_files
18439ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
18440{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18441$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18442as_write_fail=0
18443cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
18444#! $SHELL
18445# Generated by $as_me.
671aa708 18446# Run this file to recreate the current configuration.
671aa708 18447# Compiler output produced by configure, useful for debugging
1c710c3c 18448# configure, is in config.log if it exists.
0b0dc272 18449
1c710c3c
DJ
18450debug=false
18451ac_cs_recheck=false
18452ac_cs_silent=false
1c710c3c 18453
5213506e
RW
18454SHELL=\${CONFIG_SHELL-$SHELL}
18455export SHELL
18456_ASEOF
18457cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18458## -------------------- ##
18459## M4sh Initialization. ##
18460## -------------------- ##
18461
18462# Be more Bourne compatible
18463DUALCASE=1; export DUALCASE # for MKS sh
18464if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18465 emulate sh
18466 NULLCMD=:
5213506e 18467 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
18468 # is contrary to our usage. Disable this feature.
18469 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
18470 setopt NO_GLOB_SUBST
18471else
18472 case `(set -o) 2>/dev/null` in #(
18473 *posix*) :
18474 set -o posix ;; #(
18475 *) :
18476 ;;
18477esac
1c710c3c 18478fi
1c710c3c 18479
5213506e
RW
18480
18481as_nl='
18482'
18483export as_nl
18484# Printing a long string crashes Solaris 7 /usr/bin/printf.
18485as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18486as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18487as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18488# Prefer a ksh shell builtin over an external printf program on Solaris,
18489# but without wasting forks for bash or zsh.
18490if test -z "$BASH_VERSION$ZSH_VERSION" \
18491 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18492 as_echo='print -r --'
18493 as_echo_n='print -rn --'
18494elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18495 as_echo='printf %s\n'
18496 as_echo_n='printf %s'
18497else
18498 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18499 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18500 as_echo_n='/usr/ucb/echo -n'
18501 else
18502 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18503 as_echo_n_body='eval
18504 arg=$1;
18505 case $arg in #(
18506 *"$as_nl"*)
18507 expr "X$arg" : "X\\(.*\\)$as_nl";
18508 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18509 esac;
18510 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18511 '
18512 export as_echo_n_body
18513 as_echo_n='sh -c $as_echo_n_body as_echo'
18514 fi
18515 export as_echo_body
18516 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
18517fi
18518
5213506e
RW
18519# The user is always right.
18520if test "${PATH_SEPARATOR+set}" != set; then
18521 PATH_SEPARATOR=:
18522 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18523 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18524 PATH_SEPARATOR=';'
18525 }
18526fi
18527
18528
18529# IFS
18530# We need space, tab and new line, in precisely that order. Quoting is
18531# there to prevent editors from complaining about space-tab.
18532# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18533# splitting by setting IFS to empty value.)
18534IFS=" "" $as_nl"
18535
18536# Find who we are. Look in the path if we contain no directory separator.
22e05272 18537as_myself=
5213506e
RW
18538case $0 in #((
18539 *[\\/]* ) as_myself=$0 ;;
18540 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18541for as_dir in $PATH
18542do
18543 IFS=$as_save_IFS
18544 test -z "$as_dir" && as_dir=.
18545 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18546 done
18547IFS=$as_save_IFS
18548
18549 ;;
18550esac
18551# We did not find ourselves, most probably we were run as `sh COMMAND'
18552# in which case we are not to be found in the path.
18553if test "x$as_myself" = x; then
18554 as_myself=$0
18555fi
18556if test ! -f "$as_myself"; then
18557 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18558 exit 1
18559fi
1c710c3c 18560
5213506e
RW
18561# Unset variables that we do not need and which cause bugs (e.g. in
18562# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18563# suppresses any "Segmentation fault" message there. '((' could
18564# trigger a bug in pdksh 5.2.14.
18565for as_var in BASH_ENV ENV MAIL MAILPATH
18566do eval test x\${$as_var+set} = xset \
18567 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18568done
1c710c3c
DJ
18569PS1='$ '
18570PS2='> '
18571PS4='+ '
18572
18573# NLS nuisances.
5213506e
RW
18574LC_ALL=C
18575export LC_ALL
18576LANGUAGE=C
18577export LANGUAGE
18578
18579# CDPATH.
18580(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18581
18582
22e05272
JM
18583# as_fn_error STATUS ERROR [LINENO LOG_FD]
18584# ----------------------------------------
5213506e
RW
18585# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18586# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 18587# script with STATUS, using 1 if that was 0.
5213506e
RW
18588as_fn_error ()
18589{
22e05272
JM
18590 as_status=$1; test $as_status -eq 0 && as_status=1
18591 if test "$4"; then
18592 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18593 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1c710c3c 18594 fi
22e05272 18595 $as_echo "$as_me: error: $2" >&2
5213506e
RW
18596 as_fn_exit $as_status
18597} # as_fn_error
18598
18599
18600# as_fn_set_status STATUS
18601# -----------------------
18602# Set $? to STATUS, without forking.
18603as_fn_set_status ()
18604{
18605 return $1
18606} # as_fn_set_status
18607
18608# as_fn_exit STATUS
18609# -----------------
18610# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18611as_fn_exit ()
18612{
18613 set +e
18614 as_fn_set_status $1
18615 exit $1
18616} # as_fn_exit
18617
18618# as_fn_unset VAR
18619# ---------------
18620# Portably unset VAR.
18621as_fn_unset ()
18622{
18623 { eval $1=; unset $1;}
18624}
18625as_unset=as_fn_unset
18626# as_fn_append VAR VALUE
18627# ----------------------
18628# Append the text in VALUE to the end of the definition contained in VAR. Take
18629# advantage of any shell optimizations that allow amortized linear growth over
18630# repeated appends, instead of the typical quadratic growth present in naive
18631# implementations.
18632if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18633 eval 'as_fn_append ()
18634 {
18635 eval $1+=\$2
18636 }'
18637else
18638 as_fn_append ()
18639 {
18640 eval $1=\$$1\$2
18641 }
18642fi # as_fn_append
18643
18644# as_fn_arith ARG...
18645# ------------------
18646# Perform arithmetic evaluation on the ARGs, and store the result in the
18647# global $as_val. Take advantage of shells that can avoid forks. The arguments
18648# must be portable across $(()) and expr.
18649if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18650 eval 'as_fn_arith ()
18651 {
18652 as_val=$(( $* ))
18653 }'
18654else
18655 as_fn_arith ()
18656 {
18657 as_val=`expr "$@" || test $? -eq 1`
18658 }
18659fi # as_fn_arith
18660
1c710c3c 18661
5213506e
RW
18662if expr a : '\(a\)' >/dev/null 2>&1 &&
18663 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
18664 as_expr=expr
18665else
18666 as_expr=false
18667fi
18668
5213506e 18669if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
18670 as_basename=basename
18671else
18672 as_basename=false
18673fi
18674
5213506e
RW
18675if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18676 as_dirname=dirname
18677else
18678 as_dirname=false
18679fi
1c710c3c 18680
5213506e 18681as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
18682$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18683 X"$0" : 'X\(//\)$' \| \
5213506e
RW
18684 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18685$as_echo X/"$0" |
18686 sed '/^.*\/\([^/][^/]*\)\/*$/{
18687 s//\1/
18688 q
18689 }
18690 /^X\/\(\/\/\)$/{
18691 s//\1/
18692 q
18693 }
18694 /^X\/\(\/\).*/{
18695 s//\1/
18696 q
18697 }
18698 s/.*/./; q'`
2aeb72e9 18699
2aeb72e9
DD
18700# Avoid depending upon Character Ranges.
18701as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18702as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18703as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18704as_cr_digits='0123456789'
18705as_cr_alnum=$as_cr_Letters$as_cr_digits
18706
5213506e
RW
18707ECHO_C= ECHO_N= ECHO_T=
18708case `echo -n x` in #(((((
18709-n*)
18710 case `echo 'xy\c'` in
18711 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18712 xy) ECHO_C='\c';;
18713 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18714 ECHO_T=' ';;
18715 esac;;
18716*)
18717 ECHO_N='-n';;
1c710c3c
DJ
18718esac
18719
5213506e
RW
18720rm -f conf$$ conf$$.exe conf$$.file
18721if test -d conf$$.dir; then
18722 rm -f conf$$.dir/conf$$.file
1c710c3c 18723else
5213506e
RW
18724 rm -f conf$$.dir
18725 mkdir conf$$.dir 2>/dev/null
1c710c3c 18726fi
5213506e
RW
18727if (echo >conf$$.file) 2>/dev/null; then
18728 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 18729 as_ln_s='ln -s'
5213506e
RW
18730 # ... but there are two gotchas:
18731 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18732 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 18733 # In both cases, we have to default to `cp -pR'.
5213506e 18734 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 18735 as_ln_s='cp -pR'
5213506e
RW
18736 elif ln conf$$.file conf$$ 2>/dev/null; then
18737 as_ln_s=ln
18738 else
22e05272 18739 as_ln_s='cp -pR'
2aeb72e9 18740 fi
1c710c3c 18741else
22e05272 18742 as_ln_s='cp -pR'
1c710c3c 18743fi
5213506e
RW
18744rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18745rmdir conf$$.dir 2>/dev/null
18746
18747
18748# as_fn_mkdir_p
18749# -------------
18750# Create "$as_dir" as a directory, including parents if necessary.
18751as_fn_mkdir_p ()
18752{
18753
18754 case $as_dir in #(
18755 -*) as_dir=./$as_dir;;
18756 esac
18757 test -d "$as_dir" || eval $as_mkdir_p || {
18758 as_dirs=
18759 while :; do
18760 case $as_dir in #(
18761 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18762 *) as_qdir=$as_dir;;
18763 esac
18764 as_dirs="'$as_qdir' $as_dirs"
18765 as_dir=`$as_dirname -- "$as_dir" ||
18766$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18767 X"$as_dir" : 'X\(//\)[^/]' \| \
18768 X"$as_dir" : 'X\(//\)$' \| \
18769 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18770$as_echo X"$as_dir" |
18771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18772 s//\1/
18773 q
18774 }
18775 /^X\(\/\/\)[^/].*/{
18776 s//\1/
18777 q
18778 }
18779 /^X\(\/\/\)$/{
18780 s//\1/
18781 q
18782 }
18783 /^X\(\/\).*/{
18784 s//\1/
18785 q
18786 }
18787 s/.*/./; q'`
18788 test -d "$as_dir" && break
18789 done
18790 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 18791 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 18792
1c710c3c 18793
5213506e 18794} # as_fn_mkdir_p
1c710c3c 18795if mkdir -p . 2>/dev/null; then
5213506e 18796 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
18797else
18798 test -d ./-p && rmdir ./-p
18799 as_mkdir_p=false
18800fi
18801
22e05272
JM
18802
18803# as_fn_executable_p FILE
18804# -----------------------
18805# Test if FILE is an executable regular file.
18806as_fn_executable_p ()
18807{
18808 test -f "$1" && test -x "$1"
18809} # as_fn_executable_p
18810as_test_x='test -x'
18811as_executable_p=as_fn_executable_p
1c710c3c
DJ
18812
18813# Sed expression to map a string onto a valid CPP name.
18814as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18815
18816# Sed expression to map a string onto a valid variable name.
18817as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18818
18819
1c710c3c 18820exec 6>&1
5213506e
RW
18821## ----------------------------------- ##
18822## Main body of $CONFIG_STATUS script. ##
18823## ----------------------------------- ##
18824_ASEOF
18825test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18826
18827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18828# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 18829# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
18830# values after options handling.
18831ac_log="
1c710c3c 18832This file was extended by $as_me, which was
22e05272 18833generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
18834
18835 CONFIG_FILES = $CONFIG_FILES
18836 CONFIG_HEADERS = $CONFIG_HEADERS
18837 CONFIG_LINKS = $CONFIG_LINKS
18838 CONFIG_COMMANDS = $CONFIG_COMMANDS
18839 $ $0 $@
18840
5213506e
RW
18841on `(hostname || uname -n) 2>/dev/null | sed 1q`
18842"
18843
1c710c3c
DJ
18844_ACEOF
18845
5213506e
RW
18846case $ac_config_files in *"
18847"*) set x $ac_config_files; shift; ac_config_files=$*;;
18848esac
1c710c3c 18849
2aeb72e9 18850
2aeb72e9 18851
5213506e
RW
18852cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18853# Files that config.status was made for.
18854config_files="$ac_config_files"
1c710c3c 18855
5213506e 18856_ACEOF
2aeb72e9 18857
5213506e 18858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 18859ac_cs_usage="\
5213506e
RW
18860\`$as_me' instantiates files and other configuration actions
18861from templates according to the current configuration. Unless the files
18862and actions are specified as TAGs, all are instantiated by default.
1c710c3c 18863
5213506e 18864Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
18865
18866 -h, --help print this help, then exit
5213506e 18867 -V, --version print version number and configuration settings, then exit
22e05272 18868 --config print configuration, then exit
5213506e
RW
18869 -q, --quiet, --silent
18870 do not print progress messages
1c710c3c
DJ
18871 -d, --debug don't remove temporary files
18872 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
18873 --file=FILE[:TEMPLATE]
18874 instantiate the configuration file FILE
1c710c3c
DJ
18875
18876Configuration files:
18877$config_files
18878
5213506e 18879Report bugs to the package provider."
2aeb72e9 18880
5213506e
RW
18881_ACEOF
18882cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 18883ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1c710c3c
DJ
18884ac_cs_version="\\
18885config.status
22e05272
JM
18886configured by $0, generated by GNU Autoconf 2.69,
18887 with options \\"\$ac_cs_config\\"
1c710c3c 18888
22e05272 18889Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
18890This config.status script is free software; the Free Software Foundation
18891gives unlimited permission to copy, distribute and modify it."
5213506e
RW
18892
18893ac_pwd='$ac_pwd'
18894srcdir='$srcdir'
18895INSTALL='$INSTALL'
87264276 18896AWK='$AWK'
5213506e 18897test -n "\$AWK" || AWK=awk
1c710c3c
DJ
18898_ACEOF
18899
5213506e
RW
18900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18901# The default lists apply if the user does not specify any file.
1c710c3c
DJ
18902ac_need_defaults=:
18903while test $# != 0
a4b9e93e 18904do
1c710c3c 18905 case $1 in
22e05272 18906 --*=?*)
5213506e
RW
18907 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18908 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
18909 ac_shift=:
18910 ;;
22e05272
JM
18911 --*=)
18912 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18913 ac_optarg=
18914 ac_shift=:
18915 ;;
5213506e 18916 *)
1c710c3c
DJ
18917 ac_option=$1
18918 ac_optarg=$2
18919 ac_shift=shift
18920 ;;
1c710c3c
DJ
18921 esac
18922
18923 case $ac_option in
18924 # Handling of the options.
671aa708 18925 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 18926 ac_cs_recheck=: ;;
5213506e
RW
18927 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18928 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
18929 --config | --confi | --conf | --con | --co | --c )
18930 $as_echo "$ac_cs_config"; exit ;;
5213506e 18931 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
18932 debug=: ;;
18933 --file | --fil | --fi | --f )
18934 $ac_shift
5213506e
RW
18935 case $ac_optarg in
18936 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 18937 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
18938 esac
18939 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 18940 ac_need_defaults=false;;
5213506e
RW
18941 --he | --h | --help | --hel | -h )
18942 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
18943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18944 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18945 ac_cs_silent=: ;;
18946
18947 # This is an error.
22e05272 18948 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 18949Try \`$0 --help' for more information." ;;
1c710c3c 18950
5213506e
RW
18951 *) as_fn_append ac_config_targets " $1"
18952 ac_need_defaults=false ;;
1c710c3c 18953
0b0dc272 18954 esac
1c710c3c 18955 shift
0b0dc272
AM
18956done
18957
1c710c3c 18958ac_configure_extra_args=
0b0dc272 18959
1c710c3c
DJ
18960if $ac_cs_silent; then
18961 exec 6>/dev/null
18962 ac_configure_extra_args="$ac_configure_extra_args --silent"
18963fi
0b0dc272 18964
1c710c3c 18965_ACEOF
5213506e 18966cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 18967if \$ac_cs_recheck; then
22e05272 18968 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
18969 shift
18970 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18971 CONFIG_SHELL='$SHELL'
18972 export CONFIG_SHELL
18973 exec "\$@"
1c710c3c
DJ
18974fi
18975
18976_ACEOF
5213506e
RW
18977cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18978exec 5>>config.log
18979{
18980 echo
18981 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18982## Running $as_me. ##
18983_ASBOX
18984 $as_echo "$ac_log"
18985} >&5
1c710c3c 18986
5213506e
RW
18987_ACEOF
18988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
18989#
18990# INIT-COMMANDS
18991#
18992extrasub_build="$extrasub_build"
18993 extrasub_host="$extrasub_host"
18994 extrasub_target="$extrasub_target"
18995
5213506e 18996_ACEOF
1c710c3c 18997
5213506e 18998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 18999
5213506e 19000# Handling of arguments.
1c710c3c
DJ
19001for ac_config_target in $ac_config_targets
19002do
5213506e
RW
19003 case $ac_config_target in
19004 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19005
22e05272 19006 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
19007 esac
19008done
19009
5213506e 19010
1c710c3c
DJ
19011# If the user did not use the arguments to specify the items to instantiate,
19012# then the envvar interface is used. Set only those that are not.
19013# We use the long form for the default assignment because of an extremely
19014# bizarre bug on SunOS 4.1.3.
19015if $ac_need_defaults; then
19016 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19017fi
19018
19019# Have a temporary directory for convenience. Make it in the build tree
5213506e 19020# simply because there is no reason against having it here, and in addition,
1c710c3c 19021# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
19022# Hook for its removal unless debugging.
19023# Note that there is a small window in which the directory will not be cleaned:
19024# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
19025$debug ||
19026{
22e05272 19027 tmp= ac_tmp=
5213506e 19028 trap 'exit_status=$?
22e05272
JM
19029 : "${ac_tmp:=$tmp}"
19030 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
19031' 0
19032 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 19033}
1c710c3c
DJ
19034# Create a (secure) tmp directory for tmp files.
19035
19036{
5213506e 19037 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 19038 test -d "$tmp"
1c710c3c
DJ
19039} ||
19040{
5213506e
RW
19041 tmp=./conf$$-$RANDOM
19042 (umask 077 && mkdir "$tmp")
22e05272
JM
19043} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19044ac_tmp=$tmp
5213506e
RW
19045
19046# Set up the scripts for CONFIG_FILES section.
19047# No need to generate them if there are no CONFIG_FILES.
19048# This happens for instance with `./config.status config.h'.
19049if test -n "$CONFIG_FILES"; then
19050
19051if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19052 ac_cs_awk_getline=:
19053 ac_cs_awk_pipe_init=
19054 ac_cs_awk_read_file='
19055 while ((getline aline < (F[key])) > 0)
19056 print(aline)
19057 close(F[key])'
19058 ac_cs_awk_pipe_fini=
19059else
19060 ac_cs_awk_getline=false
19061 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19062 ac_cs_awk_read_file='
19063 print "|#_!!_#|"
19064 print "cat " F[key] " &&"
19065 '$ac_cs_awk_pipe_init
19066 # The final `:' finishes the AND list.
19067 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19068fi
19069ac_cr=`echo X | tr X '\015'`
19070# On cygwin, bash can eat \r inside `` if the user requested igncr.
19071# But we know of no other shell where ac_cr would be empty at this
19072# point, so we can use a bashism as a fallback.
19073if test "x$ac_cr" = x; then
19074 eval ac_cr=\$\'\\r\'
19075fi
19076ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19077if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 19078 ac_cs_awk_cr='\\r'
5213506e
RW
19079else
19080 ac_cs_awk_cr=$ac_cr
19081fi
19082
22e05272 19083echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
19084_ACEOF
19085
19086# Create commands to substitute file output variables.
1c710c3c 19087{
5213506e 19088 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22e05272 19089 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
5213506e
RW
19090 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19091 echo "_ACAWK" &&
19092 echo "_ACEOF"
19093} >conf$$files.sh &&
19094. ./conf$$files.sh ||
22e05272 19095 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e 19096rm -f conf$$files.sh
1c710c3c 19097
5213506e
RW
19098{
19099 echo "cat >conf$$subs.awk <<_ACEOF" &&
19100 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19101 echo "_ACEOF"
19102} >conf$$subs.sh ||
22e05272
JM
19103 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19104ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
19105ac_delim='%!_!# '
19106for ac_last_try in false false false false false :; do
19107 . ./conf$$subs.sh ||
22e05272 19108 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
19109
19110 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19111 if test $ac_delim_n = $ac_delim_num; then
19112 break
19113 elif $ac_last_try; then
22e05272 19114 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
19115 else
19116 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19117 fi
19118done
19119rm -f conf$$subs.sh
19120
19121cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 19122cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 19123_ACEOF
5213506e
RW
19124sed -n '
19125h
19126s/^/S["/; s/!.*/"]=/
19127p
19128g
19129s/^[^!]*!//
19130:repl
19131t repl
19132s/'"$ac_delim"'$//
19133t delim
19134:nl
19135h
22e05272 19136s/\(.\{148\}\)..*/\1/
5213506e
RW
19137t more1
19138s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19139p
19140n
19141b repl
19142:more1
19143s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19144p
19145g
19146s/.\{148\}//
19147t nl
19148:delim
19149h
22e05272 19150s/\(.\{148\}\)..*/\1/
5213506e
RW
19151t more2
19152s/["\\]/\\&/g; s/^/"/; s/$/"/
19153p
19154b
19155:more2
19156s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19157p
19158g
19159s/.\{148\}//
19160t delim
19161' <conf$$subs.awk | sed '
19162/^[^""]/{
19163 N
19164 s/\n//
19165}
19166' >>$CONFIG_STATUS || ac_write_fail=1
19167rm -f conf$$subs.awk
19168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19169_ACAWK
22e05272 19170cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
19171 for (key in S) S_is_set[key] = 1
19172 FS = "\a"
19173 \$ac_cs_awk_pipe_init
19174}
19175{
19176 line = $ 0
19177 nfields = split(line, field, "@")
19178 substed = 0
19179 len = length(field[1])
19180 for (i = 2; i < nfields; i++) {
19181 key = field[i]
19182 keylen = length(key)
19183 if (S_is_set[key]) {
19184 value = S[key]
19185 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19186 len += length(value) + length(field[++i])
19187 substed = 1
19188 } else
19189 len += 1 + keylen
19190 }
19191 if (nfields == 3 && !substed) {
19192 key = field[2]
19193 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19194 \$ac_cs_awk_read_file
19195 next
19196 }
19197 }
19198 print line
19199}
19200\$ac_cs_awk_pipe_fini
19201_ACAWK
19202_ACEOF
19203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19204if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19205 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19206else
19207 cat
22e05272
JM
19208fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19209 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
19210_ACEOF
19211
22e05272
JM
19212# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19213# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
19214# trailing colons and then remove the whole line if VPATH becomes empty
19215# (actually we leave an empty line to preserve line numbers).
19216if test "x$srcdir" = x.; then
22e05272
JM
19217 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19218h
19219s///
19220s/^/:/
19221s/[ ]*$/:/
19222s/:\$(srcdir):/:/g
19223s/:\${srcdir}:/:/g
19224s/:@srcdir@:/:/g
19225s/^:*//
5213506e 19226s/:*$//
22e05272
JM
19227x
19228s/\(=[ ]*\).*/\1/
19229G
19230s/\n//
5213506e
RW
19231s/^[^=]*=[ ]*$//
19232}'
19233fi
2aeb72e9 19234
5213506e
RW
19235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19236fi # test -n "$CONFIG_FILES"
2aeb72e9 19237
1c710c3c 19238
5213506e
RW
19239eval set X " :F $CONFIG_FILES "
19240shift
19241for ac_tag
19242do
19243 case $ac_tag in
19244 :[FHLC]) ac_mode=$ac_tag; continue;;
19245 esac
19246 case $ac_mode$ac_tag in
19247 :[FHL]*:*);;
22e05272 19248 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
19249 :[FH]-) ac_tag=-:-;;
19250 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19251 esac
19252 ac_save_IFS=$IFS
19253 IFS=:
19254 set x $ac_tag
19255 IFS=$ac_save_IFS
19256 shift
19257 ac_file=$1
19258 shift
79c06341 19259
5213506e
RW
19260 case $ac_mode in
19261 :L) ac_source=$1;;
19262 :[FH])
19263 ac_file_inputs=
19264 for ac_f
19265 do
19266 case $ac_f in
22e05272 19267 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
19268 *) # Look for the file first in the build tree, then in the source tree
19269 # (if the path is not absolute). The absolute path cannot be DOS-style,
19270 # because $ac_f cannot contain `:'.
19271 test -f "$ac_f" ||
19272 case $ac_f in
19273 [\\/$]*) false;;
19274 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19275 esac ||
22e05272 19276 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
19277 esac
19278 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19279 as_fn_append ac_file_inputs " '$ac_f'"
19280 done
1c710c3c 19281
5213506e
RW
19282 # Let's still pretend it is `configure' which instantiates (i.e., don't
19283 # use $as_me), people would be surprised to read:
19284 # /* config.h. Generated by config.status. */
19285 configure_input='Generated from '`
19286 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19287 `' by configure.'
19288 if test x"$ac_file" != x-; then
19289 configure_input="$ac_file. $configure_input"
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19291$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 19292 fi
5213506e
RW
19293 # Neutralize special characters interpreted by sed in replacement strings.
19294 case $configure_input in #(
19295 *\&* | *\|* | *\\* )
19296 ac_sed_conf_input=`$as_echo "$configure_input" |
19297 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19298 *) ac_sed_conf_input=$configure_input;;
19299 esac
11a67599 19300
5213506e 19301 case $ac_tag in
22e05272
JM
19302 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
19304 esac
19305 ;;
11a67599
ZW
19306 esac
19307
5213506e 19308 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
19309$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19310 X"$ac_file" : 'X\(//\)[^/]' \| \
19311 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
19312 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19313$as_echo X"$ac_file" |
19314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19315 s//\1/
19316 q
19317 }
19318 /^X\(\/\/\)[^/].*/{
19319 s//\1/
19320 q
19321 }
19322 /^X\(\/\/\)$/{
19323 s//\1/
19324 q
19325 }
19326 /^X\(\/\).*/{
19327 s//\1/
19328 q
19329 }
19330 s/.*/./; q'`
19331 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 19332 ac_builddir=.
0b0dc272 19333
5213506e
RW
19334case "$ac_dir" in
19335.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19336*)
19337 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19338 # A ".." for each directory in $ac_dir_suffix.
19339 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19340 case $ac_top_builddir_sub in
19341 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19342 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19343 esac ;;
19344esac
19345ac_abs_top_builddir=$ac_pwd
19346ac_abs_builddir=$ac_pwd$ac_dir_suffix
19347# for backward compatibility:
19348ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
19349
19350case $srcdir in
5213506e 19351 .) # We are building in place.
1c710c3c 19352 ac_srcdir=.
5213506e
RW
19353 ac_top_srcdir=$ac_top_builddir_sub
19354 ac_abs_top_srcdir=$ac_pwd ;;
19355 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 19356 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
19357 ac_top_srcdir=$srcdir
19358 ac_abs_top_srcdir=$srcdir ;;
19359 *) # Relative name.
19360 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19361 ac_top_srcdir=$ac_top_build_prefix$srcdir
19362 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 19363esac
5213506e 19364ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 19365
0b0dc272 19366
5213506e
RW
19367 case $ac_mode in
19368 :F)
19369 #
19370 # CONFIG_FILE
19371 #
1c710c3c
DJ
19372
19373 case $INSTALL in
19374 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 19375 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 19376 esac
5213506e 19377_ACEOF
11a67599 19378
5213506e
RW
19379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19380# If the template does not know about datarootdir, expand it.
19381# FIXME: This hack should be removed a few years after 2.60.
19382ac_datarootdir_hack=; ac_datarootdir_seen=
19383ac_sed_dataroot='
19384/datarootdir/ {
19385 p
19386 q
19387}
19388/@datadir@/p
19389/@docdir@/p
19390/@infodir@/p
19391/@localedir@/p
19392/@mandir@/p'
19393case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19394*datarootdir*) ac_datarootdir_seen=yes;;
19395*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19397$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 19398_ACEOF
5213506e
RW
19399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19400 ac_datarootdir_hack='
19401 s&@datadir@&$datadir&g
19402 s&@docdir@&$docdir&g
19403 s&@infodir@&$infodir&g
19404 s&@localedir@&$localedir&g
19405 s&@mandir@&$mandir&g
19406 s&\\\${datarootdir}&$datarootdir&g' ;;
19407esac
19408_ACEOF
19409
19410# Neutralize VPATH when `$srcdir' = `.'.
19411# Shell code in configure.ac might set extrasub.
19412# FIXME: do we really want to maintain this feature?
19413cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19414ac_sed_extra="$ac_vpsub
1c710c3c
DJ
19415$extrasub
19416_ACEOF
5213506e 19417cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
19418:t
19419/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
19420s|@configure_input@|$ac_sed_conf_input|;t t
19421s&@top_builddir@&$ac_top_builddir_sub&;t t
19422s&@top_build_prefix@&$ac_top_build_prefix&;t t
19423s&@srcdir@&$ac_srcdir&;t t
19424s&@abs_srcdir@&$ac_abs_srcdir&;t t
19425s&@top_srcdir@&$ac_top_srcdir&;t t
19426s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19427s&@builddir@&$ac_builddir&;t t
19428s&@abs_builddir@&$ac_abs_builddir&;t t
19429s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19430s&@INSTALL@&$ac_INSTALL&;t t
19431$ac_datarootdir_hack
19432"
19433eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19434if $ac_cs_awk_getline; then
22e05272 19435 $AWK -f "$ac_tmp/subs.awk"
5213506e 19436else
22e05272
JM
19437 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19438fi \
19439 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
19440
19441test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
19442 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19443 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19444 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 19445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19446which seems to be undefined. Please make sure it is defined" >&5
5213506e 19447$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19448which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 19449
22e05272 19450 rm -f "$ac_tmp/stdin"
5213506e 19451 case $ac_file in
22e05272
JM
19452 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19453 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 19454 esac \
22e05272 19455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 19456 ;;
11a67599 19457
11a67599 19458
79c06341 19459
5213506e
RW
19460 esac
19461
3e54529c
RW
19462
19463 case $ac_file$ac_mode in
19464 "Makefile":F) sed "$extrasub_build" Makefile |
19465 sed "$extrasub_host" |
19466 sed "$extrasub_target" > mf$$
19467 mv -f mf$$ Makefile ;;
19468
19469 esac
5213506e
RW
19470done # for ac_tag
19471
19472
19473as_fn_exit 0
1c710c3c 19474_ACEOF
1c710c3c
DJ
19475ac_clean_files=$ac_clean_files_save
19476
5213506e 19477test $ac_write_fail = 0 ||
22e05272 19478 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 19479
1c710c3c
DJ
19480
19481# configure is writing to config.log, and then calls config.status.
19482# config.status does its own redirection, appending to config.log.
19483# Unfortunately, on DOS this fails, as config.log is still kept open
19484# by configure, so config.status won't be able to write to it; its
19485# output is simply discarded. So we exec the FD to /dev/null,
19486# effectively closing config.log, so it can be properly (re)opened and
19487# appended to by config.status. When coming back to configure, we
19488# need to make the FD available again.
19489if test "$no_create" != yes; then
19490 ac_cs_success=:
19491 ac_config_status_args=
19492 test "$silent" = yes &&
19493 ac_config_status_args="$ac_config_status_args --quiet"
19494 exec 5>/dev/null
19495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19496 exec 5>>config.log
19497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19498 # would make configure fail if this is the last instruction.
22e05272 19499 $ac_cs_success || as_fn_exit 1
5213506e
RW
19500fi
19501if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19503$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 19504fi
79c06341 19505