]> gcc.gnu.org Git - gcc.git/blame - configure
cprop_hardreg: Enable propagation of the stack pointer if possible
[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
1eee94d3 616GM2_FOR_TARGET
b4c522fa 617GDC_FOR_TARGET
632e2a07 618GOC_FOR_TARGET
5213506e 619GFORTRAN_FOR_TARGET
5213506e
RW
620GCC_FOR_TARGET
621CXX_FOR_TARGET
622CC_FOR_TARGET
5fee5ec3 623GDCFLAGS
e7a82751 624READELF
e4a9a572 625OTOOL
5213506e
RW
626OBJDUMP
627OBJCOPY
628WINDMC
629WINDRES
630STRIP
631RANLIB
632NM
633LIPO
634LD
3b5e8ee4 635DSYMUTIL
5213506e
RW
636DLLTOOL
637AS
638AR
639RUNTEST
640EXPECT
641MAKEINFO
642FLEX
643LEX
644M4
645BISON
646YACC
5213506e
RW
647WINDRES_FOR_BUILD
648WINDMC_FOR_BUILD
649RANLIB_FOR_BUILD
650NM_FOR_BUILD
651LD_FOR_BUILD
652LDFLAGS_FOR_BUILD
b4c522fa 653GDC_FOR_BUILD
632e2a07 654GOC_FOR_BUILD
5213506e 655GFORTRAN_FOR_BUILD
3b5e8ee4 656DSYMUTIL_FOR_BUILD
5213506e
RW
657DLLTOOL_FOR_BUILD
658CXX_FOR_BUILD
659CXXFLAGS_FOR_BUILD
84401ce5
RP
660CPPFLAGS_FOR_BUILD
661CPP_FOR_BUILD
5213506e
RW
662CFLAGS_FOR_BUILD
663CC_FOR_BUILD
664AS_FOR_BUILD
665AR_FOR_BUILD
aae29963 666target_configdirs
5213506e 667configdirs
5213506e 668build_configdirs
5213506e
RW
669INSTALL_GDB_TK
670GDB_TK
671CONFIGURE_GDB_TK
672build_tooldir
673tooldir
674GCC_SHLIB_SUBDIR
675RPATH_ENVVAR
ffedf511
RW
676target_configargs
677host_configargs
678build_configargs
e12c4094 679BUILD_CONFIG
6f57bdf6 680LDFLAGS_FOR_TARGET
5213506e
RW
681CXXFLAGS_FOR_TARGET
682CFLAGS_FOR_TARGET
683DEBUG_PREFIX_CFLAGS_FOR_TARGET
684SYSROOT_CFLAGS_FOR_TARGET
3c36aa6b 685get_gcc_base_ver
1c01ebf6 686extra_host_zlib_configure_flags
d7f09764 687extra_host_libiberty_configure_flags
fca38047 688stage1_languages
05048fc2 689host_libs_picflag
cdfee50a 690host_shared
45b3824d
TS
691extra_linker_plugin_flags
692extra_linker_plugin_configure_flags
33ad93b9 693islinc
eae1a5d4 694isllibs
5213506e 695poststage1_ldflags
ed2eaa9f 696poststage1_libs
5213506e 697stage1_ldflags
0b21f5d3 698stage1_libs
0ff2d841 699extra_isl_gmp_configure_flags
5213506e
RW
700extra_mpc_mpfr_configure_flags
701extra_mpc_gmp_configure_flags
702extra_mpfr_configure_flags
703gmpinc
704gmplibs
4a5e71f2
L
705PGO_BUILD_LTO_CFLAGS
706PGO_BUILD_USE_CFLAGS
707PGO_BUILD_GEN_CFLAGS
7ffcf5d6 708HAVE_CXX11_FOR_BUILD
ffac9597 709HAVE_CXX11
5213506e 710do_compare
5fee5ec3 711GDC
5213506e
RW
712GNATMAKE
713GNATBIND
714ac_ct_CXX
715CXXFLAGS
716CXX
717OBJEXT
718EXEEXT
719ac_ct_CC
720CPPFLAGS
721LDFLAGS
722CFLAGS
723CC
724target_subdir
725host_subdir
726build_subdir
727build_libsubdir
87264276
PB
728AWK
729SED
5213506e
RW
730LN_S
731LN
732INSTALL_DATA
733INSTALL_SCRIPT
734INSTALL_PROGRAM
735target_os
736target_vendor
737target_cpu
738target
739host_os
740host_vendor
741host_cpu
742host
743target_noncanonical
744host_noncanonical
745build_noncanonical
746build_os
747build_vendor
748build_cpu
749build
750TOPLEVEL_CONFIGURE_ARGUMENTS
751target_alias
752host_alias
753build_alias
754LIBS
755ECHO_T
756ECHO_N
757ECHO_C
758DEFS
759mandir
760localedir
761libdir
762psdir
763pdfdir
764dvidir
765htmldir
766infodir
767docdir
768oldincludedir
769includedir
770localstatedir
771sharedstatedir
772sysconfdir
773datadir
774datarootdir
775libexecdir
776sbindir
777bindir
778program_transform_name
779prefix
780exec_prefix
781PACKAGE_URL
782PACKAGE_BUGREPORT
783PACKAGE_STRING
784PACKAGE_VERSION
785PACKAGE_TARNAME
786PACKAGE_NAME
787PATH_SEPARATOR
788SHELL'
789ac_subst_files='serialization_dependencies
790host_makefile_frag
791target_makefile_frag
792alphaieee_frag
793ospace_frag'
794ac_user_opts='
795enable_option_checking
796with_build_libsubdir
a05c2c75 797with_system_zlib
85c64bbe
BS
798enable_as_accelerator_for
799enable_offload_targets
fe5bfa67 800enable_offload_defaulted
5213506e 801enable_gold
21539e2e 802enable_ld
78edb32f 803enable_compressed_debug_sections
87e6d9dc
TB
804enable_libquadmath
805enable_libquadmath_support
5213506e 806enable_libada
1eee94d3 807enable_libgm2
5213506e 808enable_libssp
1873ec0c 809enable_libstdcxx
ff3ac0f4 810enable_bootstrap
4a5e71f2 811enable_pgo_build
5213506e
RW
812with_mpc
813with_mpc_include
814with_mpc_lib
5213506e
RW
815with_mpfr
816with_mpfr_include
817with_mpfr_lib
5213506e
RW
818with_gmp
819with_gmp_include
820with_gmp_lib
5213506e 821with_stage1_libs
aac9103b 822with_static_standard_libraries
0b21f5d3 823with_stage1_ldflags
5213506e 824with_boot_libs
ed2eaa9f 825with_boot_ldflags
33ad93b9
RG
826with_isl
827with_isl_include
828with_isl_lib
829enable_isl_version_check
d7f09764 830enable_lto
45b3824d
TS
831enable_linker_plugin_configure_flags
832enable_linker_plugin_flags
cdfee50a 833enable_host_shared
5213506e 834enable_stage1_languages
43c40f3e 835enable_objc_gc
114bf3f1
MK
836with_target_bdw_gc
837with_target_bdw_gc_include
838with_target_bdw_gc_lib
3c36aa6b 839with_gcc_major_version_only
5213506e
RW
840with_build_sysroot
841with_debug_prefix_map
5646b7b9 842with_build_config
beeda1d9 843enable_vtable_verify
5213506e
RW
844enable_serial_configure
845with_build_time_tools
846enable_maintainer_mode
847enable_stage1_checking
848enable_werror
5213506e
RW
849'
850 ac_precious_vars='build_alias
851host_alias
852target_alias
853CC
854CFLAGS
855LDFLAGS
856LIBS
857CPPFLAGS
858CXX
859CXXFLAGS
860CCC
ffedf511
RW
861build_configargs
862host_configargs
863target_configargs
5213506e
RW
864AR
865AS
866DLLTOOL
3b5e8ee4 867DSYMUTIL
5213506e
RW
868LD
869LIPO
870NM
871RANLIB
872STRIP
873WINDRES
874WINDMC
875OBJCOPY
876OBJDUMP
e4a9a572 877OTOOL
e7a82751 878READELF
5213506e
RW
879CC_FOR_TARGET
880CXX_FOR_TARGET
881GCC_FOR_TARGET
5213506e 882GFORTRAN_FOR_TARGET
632e2a07 883GOC_FOR_TARGET
b4c522fa 884GDC_FOR_TARGET
1eee94d3 885GM2_FOR_TARGET
5213506e
RW
886AR_FOR_TARGET
887AS_FOR_TARGET
888DLLTOOL_FOR_TARGET
3b5e8ee4 889DSYMUTIL_FOR_TARGET
5213506e
RW
890LD_FOR_TARGET
891LIPO_FOR_TARGET
892NM_FOR_TARGET
9bccfdf5 893OBJCOPY_FOR_TARGET
5213506e 894OBJDUMP_FOR_TARGET
e4a9a572 895OTOOL_FOR_TARGET
5213506e 896RANLIB_FOR_TARGET
e7a82751 897READELF_FOR_TARGET
5213506e
RW
898STRIP_FOR_TARGET
899WINDRES_FOR_TARGET
900WINDMC_FOR_TARGET'
901
671aa708
NN
902
903# Initialize some variables set by options.
1c710c3c
DJ
904ac_init_help=
905ac_init_version=false
5213506e
RW
906ac_unrecognized_opts=
907ac_unrecognized_sep=
671aa708
NN
908# The variables have the same names as the options, with
909# dashes changed to underlines.
1c710c3c 910cache_file=/dev/null
671aa708 911exec_prefix=NONE
671aa708 912no_create=
671aa708
NN
913no_recursion=
914prefix=NONE
915program_prefix=NONE
916program_suffix=NONE
917program_transform_name=s,x,x,
918silent=
919site=
920srcdir=
671aa708
NN
921verbose=
922x_includes=NONE
923x_libraries=NONE
1c710c3c
DJ
924
925# Installation directory options.
926# These are left unexpanded so users can "make install exec_prefix=/foo"
927# and all the variables that are supposed to be based on exec_prefix
928# by default will actually change.
929# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 930# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
931bindir='${exec_prefix}/bin'
932sbindir='${exec_prefix}/sbin'
933libexecdir='${exec_prefix}/libexec'
5213506e
RW
934datarootdir='${prefix}/share'
935datadir='${datarootdir}'
671aa708
NN
936sysconfdir='${prefix}/etc'
937sharedstatedir='${prefix}/com'
938localstatedir='${prefix}/var'
671aa708
NN
939includedir='${prefix}/include'
940oldincludedir='/usr/include'
5213506e
RW
941docdir='${datarootdir}/doc/${PACKAGE}'
942infodir='${datarootdir}/info'
943htmldir='${docdir}'
944dvidir='${docdir}'
945pdfdir='${docdir}'
946psdir='${docdir}'
947libdir='${exec_prefix}/lib'
948localedir='${datarootdir}/locale'
949mandir='${datarootdir}/man'
79c06341 950
671aa708 951ac_prev=
5213506e 952ac_dashdash=
671aa708
NN
953for ac_option
954do
671aa708
NN
955 # If the previous option needs an argument, assign it.
956 if test -n "$ac_prev"; then
5213506e 957 eval $ac_prev=\$ac_option
671aa708
NN
958 ac_prev=
959 continue
960 fi
79c06341 961
5213506e 962 case $ac_option in
22e05272
JM
963 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964 *=) ac_optarg= ;;
965 *) ac_optarg=yes ;;
5213506e 966 esac
671aa708
NN
967
968 # Accept the important Cygnus configure options, so we can diagnose typos.
969
5213506e
RW
970 case $ac_dashdash$ac_option in
971 --)
972 ac_dashdash=yes ;;
671aa708
NN
973
974 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 ac_prev=bindir ;;
976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 977 bindir=$ac_optarg ;;
671aa708
NN
978
979 -build | --build | --buil | --bui | --bu)
1c710c3c 980 ac_prev=build_alias ;;
671aa708 981 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 982 build_alias=$ac_optarg ;;
671aa708
NN
983
984 -cache-file | --cache-file | --cache-fil | --cache-fi \
985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986 ac_prev=cache_file ;;
987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
989 cache_file=$ac_optarg ;;
990
991 --config-cache | -C)
992 cache_file=config.cache ;;
671aa708 993
5213506e 994 -datadir | --datadir | --datadi | --datad)
671aa708 995 ac_prev=datadir ;;
5213506e 996 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 997 datadir=$ac_optarg ;;
671aa708 998
5213506e
RW
999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000 | --dataroo | --dataro | --datar)
1001 ac_prev=datarootdir ;;
1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004 datarootdir=$ac_optarg ;;
1005
671aa708 1006 -disable-* | --disable-*)
5213506e 1007 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 1008 # Reject names that are not valid shell variable names.
5213506e 1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1010 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1014 *"
1015"enable_$ac_useropt"
1016"*) ;;
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1019 esac
1020 eval enable_$ac_useropt=no ;;
1021
1022 -docdir | --docdir | --docdi | --doc | --do)
1023 ac_prev=docdir ;;
1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025 docdir=$ac_optarg ;;
1026
1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028 ac_prev=dvidir ;;
1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030 dvidir=$ac_optarg ;;
671aa708
NN
1031
1032 -enable-* | --enable-*)
5213506e 1033 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 1034 # Reject names that are not valid shell variable names.
5213506e 1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1036 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1037 ac_useropt_orig=$ac_useropt
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1040 *"
1041"enable_$ac_useropt"
1042"*) ;;
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1044 ac_unrecognized_sep=', ';;
2aeb72e9 1045 esac
5213506e 1046 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1047
1048 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050 | --exec | --exe | --ex)
1051 ac_prev=exec_prefix ;;
1052 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1053 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1054 | --exec=* | --exe=* | --ex=*)
1c710c3c 1055 exec_prefix=$ac_optarg ;;
671aa708
NN
1056
1057 -gas | --gas | --ga | --g)
1058 # Obsolete; use --with-gas.
1059 with_gas=yes ;;
1060
1c710c3c
DJ
1061 -help | --help | --hel | --he | -h)
1062 ac_init_help=long ;;
1063 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1064 ac_init_help=recursive ;;
1065 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1066 ac_init_help=short ;;
671aa708
NN
1067
1068 -host | --host | --hos | --ho)
1c710c3c 1069 ac_prev=host_alias ;;
671aa708 1070 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1071 host_alias=$ac_optarg ;;
671aa708 1072
5213506e
RW
1073 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074 ac_prev=htmldir ;;
1075 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076 | --ht=*)
1077 htmldir=$ac_optarg ;;
1078
671aa708
NN
1079 -includedir | --includedir | --includedi | --included | --include \
1080 | --includ | --inclu | --incl | --inc)
1081 ac_prev=includedir ;;
1082 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1083 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1084 includedir=$ac_optarg ;;
671aa708
NN
1085
1086 -infodir | --infodir | --infodi | --infod | --info | --inf)
1087 ac_prev=infodir ;;
1088 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1089 infodir=$ac_optarg ;;
671aa708
NN
1090
1091 -libdir | --libdir | --libdi | --libd)
1092 ac_prev=libdir ;;
1093 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1094 libdir=$ac_optarg ;;
671aa708
NN
1095
1096 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1097 | --libexe | --libex | --libe)
1098 ac_prev=libexecdir ;;
1099 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1100 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1101 libexecdir=$ac_optarg ;;
671aa708 1102
5213506e
RW
1103 -localedir | --localedir | --localedi | --localed | --locale)
1104 ac_prev=localedir ;;
1105 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1106 localedir=$ac_optarg ;;
1107
671aa708 1108 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1109 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1110 ac_prev=localstatedir ;;
1111 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1112 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1113 localstatedir=$ac_optarg ;;
671aa708
NN
1114
1115 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116 ac_prev=mandir ;;
1117 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1118 mandir=$ac_optarg ;;
671aa708
NN
1119
1120 -nfp | --nfp | --nf)
1121 # Obsolete; use --without-fp.
1122 with_fp=no ;;
1123
1124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1125 | --no-cr | --no-c | -n)
671aa708
NN
1126 no_create=yes ;;
1127
1128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130 no_recursion=yes ;;
1131
1132 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1133 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1134 | --oldin | --oldi | --old | --ol | --o)
1135 ac_prev=oldincludedir ;;
1136 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1137 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1138 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1139 oldincludedir=$ac_optarg ;;
671aa708
NN
1140
1141 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142 ac_prev=prefix ;;
1143 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1144 prefix=$ac_optarg ;;
671aa708
NN
1145
1146 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1147 | --program-pre | --program-pr | --program-p)
1148 ac_prev=program_prefix ;;
1149 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1150 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1151 program_prefix=$ac_optarg ;;
671aa708
NN
1152
1153 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1154 | --program-suf | --program-su | --program-s)
1155 ac_prev=program_suffix ;;
1156 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1157 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1158 program_suffix=$ac_optarg ;;
671aa708
NN
1159
1160 -program-transform-name | --program-transform-name \
1161 | --program-transform-nam | --program-transform-na \
1162 | --program-transform-n | --program-transform- \
1163 | --program-transform | --program-transfor \
1164 | --program-transfo | --program-transf \
1165 | --program-trans | --program-tran \
1166 | --progr-tra | --program-tr | --program-t)
1167 ac_prev=program_transform_name ;;
1168 -program-transform-name=* | --program-transform-name=* \
1169 | --program-transform-nam=* | --program-transform-na=* \
1170 | --program-transform-n=* | --program-transform-=* \
1171 | --program-transform=* | --program-transfor=* \
1172 | --program-transfo=* | --program-transf=* \
1173 | --program-trans=* | --program-tran=* \
1174 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1175 program_transform_name=$ac_optarg ;;
671aa708 1176
5213506e
RW
1177 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178 ac_prev=pdfdir ;;
1179 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1180 pdfdir=$ac_optarg ;;
1181
1182 -psdir | --psdir | --psdi | --psd | --ps)
1183 ac_prev=psdir ;;
1184 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185 psdir=$ac_optarg ;;
1186
671aa708
NN
1187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188 | -silent | --silent | --silen | --sile | --sil)
1189 silent=yes ;;
1190
1191 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192 ac_prev=sbindir ;;
1193 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194 | --sbi=* | --sb=*)
1c710c3c 1195 sbindir=$ac_optarg ;;
671aa708
NN
1196
1197 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199 | --sharedst | --shareds | --shared | --share | --shar \
1200 | --sha | --sh)
1201 ac_prev=sharedstatedir ;;
1202 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205 | --sha=* | --sh=*)
1c710c3c 1206 sharedstatedir=$ac_optarg ;;
671aa708
NN
1207
1208 -site | --site | --sit)
1209 ac_prev=site ;;
1210 -site=* | --site=* | --sit=*)
1c710c3c 1211 site=$ac_optarg ;;
671aa708
NN
1212
1213 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214 ac_prev=srcdir ;;
1215 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1216 srcdir=$ac_optarg ;;
671aa708
NN
1217
1218 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219 | --syscon | --sysco | --sysc | --sys | --sy)
1220 ac_prev=sysconfdir ;;
1221 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1223 sysconfdir=$ac_optarg ;;
671aa708
NN
1224
1225 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1226 ac_prev=target_alias ;;
671aa708 1227 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1228 target_alias=$ac_optarg ;;
671aa708
NN
1229
1230 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231 verbose=yes ;;
1232
1c710c3c
DJ
1233 -version | --version | --versio | --versi | --vers | -V)
1234 ac_init_version=: ;;
671aa708
NN
1235
1236 -with-* | --with-*)
5213506e 1237 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1238 # Reject names that are not valid shell variable names.
5213506e 1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1240 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1244 *"
1245"with_$ac_useropt"
1246"*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
2aeb72e9 1249 esac
5213506e 1250 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1251
1252 -without-* | --without-*)
5213506e 1253 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1254 # Reject names that are not valid shell variable names.
5213506e 1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1256 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1260 *"
1261"with_$ac_useropt"
1262"*) ;;
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
1265 esac
1266 eval with_$ac_useropt=no ;;
671aa708
NN
1267
1268 --x)
1269 # Obsolete; use --with-x.
1270 with_x=yes ;;
1271
1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273 | --x-incl | --x-inc | --x-in | --x-i)
1274 ac_prev=x_includes ;;
1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1277 x_includes=$ac_optarg ;;
671aa708
NN
1278
1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281 ac_prev=x_libraries ;;
1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1284 x_libraries=$ac_optarg ;;
671aa708 1285
22e05272
JM
1286 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1287Try \`$0 --help' for more information"
671aa708
NN
1288 ;;
1289
1c710c3c
DJ
1290 *=*)
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
5213506e
RW
1293 case $ac_envvar in #(
1294 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1295 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1296 esac
1297 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1298 export $ac_envvar ;;
1299
671aa708 1300 *)
1c710c3c 1301 # FIXME: should be removed in autoconf 3.0.
5213506e 1302 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1304 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1305 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
671aa708
NN
1306 ;;
1307
1308 esac
1309done
1310
1311if test -n "$ac_prev"; then
1c710c3c 1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1313 as_fn_error $? "missing argument to $ac_option"
af71363e 1314fi
af71363e 1315
5213506e
RW
1316if test -n "$ac_unrecognized_opts"; then
1317 case $enable_option_checking in
1318 no) ;;
22e05272 1319 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1320 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1321 esac
5213506e 1322fi
2aeb72e9 1323
5213506e
RW
1324# Check all directory arguments for consistency.
1325for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1326 datadir sysconfdir sharedstatedir localstatedir includedir \
1327 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1328 libdir localedir mandir
2aeb72e9 1329do
5213506e
RW
1330 eval ac_val=\$$ac_var
1331 # Remove trailing slashes.
1332 case $ac_val in
1333 */ )
1334 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1335 eval $ac_var=\$ac_val;;
1336 esac
1337 # Be sure to have absolute directory names.
2aeb72e9 1338 case $ac_val in
5213506e
RW
1339 [\\/$]* | ?:[\\/]* ) continue;;
1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1341 esac
22e05272 1342 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1343done
1344
1c710c3c
DJ
1345# There might be people who depend on the old broken behavior: `$host'
1346# used to hold the argument of --host etc.
1347# FIXME: To remove some day.
1348build=$build_alias
1349host=$host_alias
1350target=$target_alias
0b0dc272 1351
1c710c3c
DJ
1352# FIXME: To remove some day.
1353if test "x$host_alias" != x; then
1354 if test "x$build_alias" = x; then
1355 cross_compiling=maybe
1c710c3c
DJ
1356 elif test "x$build_alias" != "x$host_alias"; then
1357 cross_compiling=yes
1358 fi
1359fi
1360
1361ac_tool_prefix=
1362test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363
1364test "$silent" = yes && exec 6>/dev/null
671aa708 1365
671aa708 1366
5213506e
RW
1367ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368ac_ls_di=`ls -di .` &&
1369ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1370 as_fn_error $? "working directory cannot be determined"
5213506e 1371test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1372 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1373
1374
671aa708
NN
1375# Find the source files, if location was not specified.
1376if test -z "$srcdir"; then
1377 ac_srcdir_defaulted=yes
5213506e
RW
1378 # Try the directory containing this script, then the parent directory.
1379 ac_confdir=`$as_dirname -- "$as_myself" ||
1380$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381 X"$as_myself" : 'X\(//\)[^/]' \| \
1382 X"$as_myself" : 'X\(//\)$' \| \
1383 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1384$as_echo X"$as_myself" |
1385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386 s//\1/
1387 q
1388 }
1389 /^X\(\/\/\)[^/].*/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\/\)$/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\).*/{
1398 s//\1/
1399 q
1400 }
1401 s/.*/./; q'`
671aa708 1402 srcdir=$ac_confdir
5213506e 1403 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1404 srcdir=..
1405 fi
1406else
1407 ac_srcdir_defaulted=no
1408fi
5213506e
RW
1409if test ! -r "$srcdir/$ac_unique_file"; then
1410 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1411 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1412fi
1413ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1414ac_abs_confdir=`(
22e05272 1415 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1416 pwd)`
1417# When building in place, set srcdir=.
1418if test "$ac_abs_confdir" = "$ac_pwd"; then
1419 srcdir=.
1420fi
1421# Remove unnecessary trailing slashes from srcdir.
1422# Double slashes in file names in object file debugging info
1423# mess up M-x gdb in Emacs.
1424case $srcdir in
1425*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426esac
87841584
AM
1427case $srcdir in
1428 *" "*)
22e05272 1429 as_fn_error $? "path to source, $srcdir, contains spaces"
87841584
AM
1430 ;;
1431esac
ac9e6043
RW
1432ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1433
5213506e
RW
1434for ac_var in $ac_precious_vars; do
1435 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_env_${ac_var}_value=\$${ac_var}
1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439done
1c710c3c
DJ
1440
1441#
1442# Report the --help message.
1443#
1444if test "$ac_init_help" = "long"; then
1445 # Omit some internal or obsolete options to make the list less imposing.
1446 # This message is too long to be a string in the A/UX 3.1 sh.
1447 cat <<_ACEOF
1448\`configure' configures this package to adapt to many kinds of systems.
1449
1450Usage: $0 [OPTION]... [VAR=VALUE]...
1451
1452To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453VAR=VALUE. See below for descriptions of some of the useful variables.
1454
1455Defaults for the options are specified in brackets.
1456
1457Configuration:
1458 -h, --help display this help and exit
1459 --help=short display options specific to this package
1460 --help=recursive display the short help of all the included packages
1461 -V, --version display version information and exit
22e05272 1462 -q, --quiet, --silent do not print \`checking ...' messages
1c710c3c
DJ
1463 --cache-file=FILE cache test results in FILE [disabled]
1464 -C, --config-cache alias for \`--cache-file=config.cache'
1465 -n, --no-create do not create output files
1466 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1467
1c710c3c
DJ
1468Installation directories:
1469 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1470 [$ac_default_prefix]
1c710c3c 1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1472 [PREFIX]
1c710c3c
DJ
1473
1474By default, \`make install' will install all the files in
1475\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1476an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477for instance \`--prefix=\$HOME'.
1478
1479For better control, use the options below.
1480
1481Fine tuning of the installation directories:
5213506e
RW
1482 --bindir=DIR user executables [EPREFIX/bin]
1483 --sbindir=DIR system admin executables [EPREFIX/sbin]
1484 --libexecdir=DIR program executables [EPREFIX/libexec]
1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1488 --libdir=DIR object code libraries [EPREFIX/lib]
1489 --includedir=DIR C header files [PREFIX/include]
1490 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1493 --infodir=DIR info documentation [DATAROOTDIR/info]
1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1495 --mandir=DIR man documentation [DATAROOTDIR/man]
1496 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1497 --htmldir=DIR html documentation [DOCDIR]
1498 --dvidir=DIR dvi documentation [DOCDIR]
1499 --pdfdir=DIR pdf documentation [DOCDIR]
1500 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1501_ACEOF
1502
1503 cat <<\_ACEOF
1504
1505Program names:
1506 --program-prefix=PREFIX prepend PREFIX to installed program names
1507 --program-suffix=SUFFIX append SUFFIX to installed program names
1508 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1509
1510System types:
1511 --build=BUILD configure for building on BUILD [guessed]
1512 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1513 --target=TARGET configure for building compilers for TARGET [HOST]
1514_ACEOF
1515fi
1516
1517if test -n "$ac_init_help"; then
1518
1519 cat <<\_ACEOF
1520
1521Optional Features:
5213506e 1522 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1523 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1524 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1525 --enable-as-accelerator-for=ARG
1526 build as offload target compiler. Specify offload
1527 host triple by ARG
1528 --enable-offload-targets=LIST
1529 enable offloading to devices from comma-separated
1530 LIST of TARGET[=DIR]. Use optional path to find
1531 offload target compiler during the build
fe5bfa67
TB
1532 --enable-offload-defaulted
1533 If enabled, configured but not installed offload compilers and
1534 libgomp plugins are silently ignored. Useful for distribution
1535 compilers where those are in separate optional packages.
1536
21539e2e 1537 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1538 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1539 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1540 Enable compressed debug sections for gas, gold or ld
1541 by default
87e6d9dc
TB
1542 --disable-libquadmath do not build libquadmath directory
1543 --disable-libquadmath-support
1544 disable libquadmath support for Fortran
30b74385 1545 --enable-libada build libada directory
1eee94d3 1546 --enable-libgm2 build libgm2 directory
30b74385 1547 --enable-libssp build libssp directory
1873ec0c 1548 --disable-libstdcxx do not build libstdc++-v3 directory
ff3ac0f4 1549 --enable-bootstrap enable bootstrapping [yes if native build]
4a5e71f2
L
1550 --enable-pgo-build[=lto]
1551 enable the PGO build
33ad93b9 1552 --disable-isl-version-check
560d18d3 1553 disable check for isl version
d7f09764 1554 --enable-lto enable link time optimization support
45b3824d
TS
1555 --enable-linker-plugin-configure-flags=FLAGS
1556 additional flags for configuring linker plugins
1557 [none]
1558 --enable-linker-plugin-flags=FLAGS
1559 additional flags for configuring and building linker
1560 plugins [none]
cdfee50a 1561 --enable-host-shared build host code as shared libraries
33e39b66
AS
1562 --enable-stage1-languages[=all]
1563 choose additional languages to build during stage1.
1564 Mostly useful for compiler development
43c40f3e
RO
1565 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1566 Objective-C runtime
318a4e6d 1567 --enable-vtable-verify Enable vtable verification feature
30b74385 1568 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1569 force sequential configuration of sub-packages for
1570 the host, target or build machine, or all
1571 sub-packages
1572 --enable-maintainer-mode
1573 enable make rules and dependencies not useful (and
1574 sometimes confusing) to the casual installer
1575 --enable-stage1-checking[=all]
1576 choose additional checking for stage1 of the
1577 compiler
1c710c3c
DJ
1578 --enable-werror enable -Werror in bootstrap stage2 and later
1579
1580Optional Packages:
1581 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1582 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1583 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1584 --with-system-zlib use installed libz
33e39b66
AS
1585 --with-mpc=PATH specify prefix directory for installed MPC package.
1586 Equivalent to --with-mpc-include=PATH/include plus
1587 --with-mpc-lib=PATH/lib
1588 --with-mpc-include=PATH specify directory for installed MPC include files
1589 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385 1590 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1591 Equivalent to --with-mpfr-include=PATH/include plus
1592 --with-mpfr-lib=PATH/lib
1c710c3c 1593 --with-mpfr-include=PATH
30b74385
RW
1594 specify directory for installed MPFR include files
1595 --with-mpfr-lib=PATH specify directory for the installed MPFR library
33e39b66
AS
1596 --with-gmp=PATH specify prefix directory for the installed GMP
1597 package. Equivalent to
1598 --with-gmp-include=PATH/include plus
1599 --with-gmp-lib=PATH/lib
30b74385
RW
1600 --with-gmp-include=PATH specify directory for installed GMP include files
1601 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1602 --with-stage1-libs=LIBS libraries for stage1
aac9103b
TT
1603 --with-static-standard-libraries
1604 use -static-libstdc++ and -static-libgcc
1605 (default=auto)
33e39b66
AS
1606 --with-stage1-ldflags=FLAGS
1607 linker flags for stage1
33e39b66
AS
1608 --with-boot-libs=LIBS libraries for stage2 and later
1609 --with-boot-ldflags=FLAGS
1610 linker flags for stage2 and later
e357a5e0 1611 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1612 package. Equivalent to
33ad93b9
RG
1613 --with-isl-include=PATH/include plus
1614 --with-isl-lib=PATH/lib
560d18d3
AK
1615 --with-isl-include=PATH Specify directory for installed isl include files
1616 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1617 --with-target-bdw-gc=PATHLIST
1618 specify prefix directory for installed bdw-gc
1619 package. Equivalent to
1620 --with-target-bdw-gc-include=PATH/include plus
1621 --with-target-bdw-gc-lib=PATH/lib
1622 --with-target-bdw-gc-include=PATHLIST
1623 specify directories for installed bdw-gc include
1624 files
1625 --with-target-bdw-gc-lib=PATHLIST
1626 specify directories for installed bdw-gc library
3c36aa6b
JJ
1627 --with-gcc-major-version-only
1628 use only GCC major number in filesystem paths
30b74385 1629 --with-build-sysroot=SYSROOT
1c710c3c 1630 use sysroot as the system root during the build
c8aea42c 1631 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1632 map A to B, C to D ... in debug information
1633 --with-build-config='NAME NAME2...'
1634 use config/NAME.mk build configuration
30b74385 1635 --with-build-time-tools=PATH
1c710c3c 1636 use given path to find target tools during the build
1c710c3c
DJ
1637
1638Some influential environment variables:
1639 CC C compiler command
1640 CFLAGS C compiler flags
1641 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1642 nonstandard directory <lib dir>
5213506e 1643 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1644 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1645 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1646 CXX C++ compiler command
1647 CXXFLAGS C++ compiler flags
ffedf511
RW
1648 build_configargs
1649 additional configure arguments for build directories
1650 host_configargs
1651 additional configure arguments for host directories
1652 target_configargs
1653 additional configure arguments for target directories
278a7a38
AO
1654 AR AR for the host
1655 AS AS for the host
1656 DLLTOOL DLLTOOL for the host
3b5e8ee4 1657 DSYMUTIL DSYMUTIL for the host
278a7a38
AO
1658 LD LD for the host
1659 LIPO LIPO for the host
1660 NM NM for the host
1661 RANLIB RANLIB for the host
1662 STRIP STRIP for the host
1663 WINDRES WINDRES for the host
901119ae 1664 WINDMC WINDMC for the host
278a7a38
AO
1665 OBJCOPY OBJCOPY for the host
1666 OBJDUMP OBJDUMP for the host
e4a9a572 1667 OTOOL OTOOL for the host
e7a82751 1668 READELF READELF for the host
278a7a38
AO
1669 CC_FOR_TARGET
1670 CC for the target
1671 CXX_FOR_TARGET
1672 CXX for the target
1673 GCC_FOR_TARGET
1674 GCC for the target
278a7a38
AO
1675 GFORTRAN_FOR_TARGET
1676 GFORTRAN for the target
632e2a07
ILT
1677 GOC_FOR_TARGET
1678 GOC for the target
b4c522fa
IB
1679 GDC_FOR_TARGET
1680 GDC for the target
1eee94d3
GM
1681 GM2_FOR_TARGET
1682 GM2 for the target
278a7a38
AO
1683 AR_FOR_TARGET
1684 AR for the target
1685 AS_FOR_TARGET
1686 AS for the target
1687 DLLTOOL_FOR_TARGET
1688 DLLTOOL for the target
3b5e8ee4
IS
1689 DSYMUTIL_FOR_TARGET
1690 DSYMUTIL for the target
278a7a38
AO
1691 LD_FOR_TARGET
1692 LD for the target
1693 LIPO_FOR_TARGET
1694 LIPO for the target
1695 NM_FOR_TARGET
1696 NM for the target
9bccfdf5
AP
1697 OBJCOPY_FOR_TARGET
1698 OBJCOPY for the target
278a7a38
AO
1699 OBJDUMP_FOR_TARGET
1700 OBJDUMP for the target
e4a9a572
IS
1701 OTOOL_FOR_TARGET
1702 OTOOL for the target
278a7a38
AO
1703 RANLIB_FOR_TARGET
1704 RANLIB for the target
e7a82751
RM
1705 READELF_FOR_TARGET
1706 READELF for the target
278a7a38
AO
1707 STRIP_FOR_TARGET
1708 STRIP for the target
1709 WINDRES_FOR_TARGET
1710 WINDRES for the target
901119ae
KT
1711 WINDMC_FOR_TARGET
1712 WINDMC for the target
1c710c3c
DJ
1713
1714Use these variables to override the choices made by `configure' or to help
1715it to find libraries and programs with nonstandard names/locations.
1716
5213506e 1717Report bugs to the package provider.
1c710c3c 1718_ACEOF
5213506e 1719ac_status=$?
1c710c3c
DJ
1720fi
1721
1722if test "$ac_init_help" = "recursive"; then
1723 # If there are subdirs, report their specific --help.
1c710c3c 1724 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1725 test -d "$ac_dir" ||
1726 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1727 continue
1c710c3c
DJ
1728 ac_builddir=.
1729
5213506e
RW
1730case "$ac_dir" in
1731.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1732*)
1733 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1734 # A ".." for each directory in $ac_dir_suffix.
1735 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1736 case $ac_top_builddir_sub in
1737 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1738 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1739 esac ;;
1740esac
1741ac_abs_top_builddir=$ac_pwd
1742ac_abs_builddir=$ac_pwd$ac_dir_suffix
1743# for backward compatibility:
1744ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1745
1746case $srcdir in
5213506e 1747 .) # We are building in place.
1c710c3c 1748 ac_srcdir=.
5213506e
RW
1749 ac_top_srcdir=$ac_top_builddir_sub
1750 ac_abs_top_srcdir=$ac_pwd ;;
1751 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1752 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1753 ac_top_srcdir=$srcdir
1754 ac_abs_top_srcdir=$srcdir ;;
1755 *) # Relative name.
1756 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1757 ac_top_srcdir=$ac_top_build_prefix$srcdir
1758 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1759esac
5213506e
RW
1760ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1761
1762 cd "$ac_dir" || { ac_status=$?; continue; }
1763 # Check for guested configure.
1764 if test -f "$ac_srcdir/configure.gnu"; then
1765 echo &&
1766 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1767 elif test -f "$ac_srcdir/configure"; then
1768 echo &&
1769 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1770 else
5213506e
RW
1771 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1772 fi || ac_status=$?
1773 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1774 done
1775fi
1776
5213506e 1777test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1778if $ac_init_version; then
1779 cat <<\_ACEOF
5213506e 1780configure
22e05272 1781generated by GNU Autoconf 2.69
1c710c3c 1782
22e05272 1783Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
1784This configure script is free software; the Free Software Foundation
1785gives unlimited permission to copy, distribute and modify it.
1786_ACEOF
5213506e 1787 exit
0b0dc272 1788fi
5213506e
RW
1789
1790## ------------------------ ##
1791## Autoconf initialization. ##
1792## ------------------------ ##
1793
1794# ac_fn_c_try_compile LINENO
1795# --------------------------
1796# Try to compile conftest.$ac_ext, and return whether this succeeded.
1797ac_fn_c_try_compile ()
1798{
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 rm -f conftest.$ac_objext
1801 if { { ac_try="$ac_compile"
1802case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805esac
1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807$as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_compile") 2>conftest.err
1809 ac_status=$?
1810 if test -s conftest.err; then
1811 grep -v '^ *+' conftest.err >conftest.er1
1812 cat conftest.er1 >&5
1813 mv -f conftest.er1 conftest.err
1814 fi
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && {
1817 test -z "$ac_c_werror_flag" ||
1818 test ! -s conftest.err
1819 } && test -s conftest.$ac_objext; then :
1820 ac_retval=0
1821else
1822 $as_echo "$as_me: failed program was:" >&5
1823sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 ac_retval=1
1826fi
22e05272
JM
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
5213506e
RW
1829
1830} # ac_fn_c_try_compile
1831
1832# ac_fn_cxx_try_compile LINENO
1833# ----------------------------
1834# Try to compile conftest.$ac_ext, and return whether this succeeded.
1835ac_fn_cxx_try_compile ()
1836{
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext
1839 if { { ac_try="$ac_compile"
1840case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843esac
1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845$as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_compile") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1852 fi
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_cxx_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest.$ac_objext; then :
1858 ac_retval=0
1859else
1860 $as_echo "$as_me: failed program was:" >&5
1861sed 's/^/| /' conftest.$ac_ext >&5
1862
1863 ac_retval=1
1864fi
22e05272
JM
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 as_fn_set_status $ac_retval
5213506e
RW
1867
1868} # ac_fn_cxx_try_compile
1869
0b21f5d3
EB
1870# ac_fn_cxx_try_link LINENO
1871# -------------------------
1872# Try to link conftest.$ac_ext, and return whether this succeeded.
1873ac_fn_cxx_try_link ()
1874{
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext conftest$ac_exeext
1877 if { { ac_try="$ac_link"
1878case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881esac
1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883$as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_link") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1890 fi
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_cxx_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest$ac_exeext && {
1896 test "$cross_compiling" = yes ||
22e05272 1897 test -x conftest$ac_exeext
0b21f5d3
EB
1898 }; then :
1899 ac_retval=0
1900else
1901 $as_echo "$as_me: failed program was:" >&5
1902sed 's/^/| /' conftest.$ac_ext >&5
1903
1904 ac_retval=1
1905fi
1906 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1907 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1908 # interfere with the next link command; also delete a directory that is
1909 # left behind by Apple's compiler. We do this before executing the actions.
1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 as_fn_set_status $ac_retval
0b21f5d3
EB
1913
1914} # ac_fn_cxx_try_link
1915
5213506e
RW
1916# ac_fn_c_try_link LINENO
1917# -----------------------
1918# Try to link conftest.$ac_ext, and return whether this succeeded.
1919ac_fn_c_try_link ()
1920{
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 rm -f conftest.$ac_objext conftest$ac_exeext
1923 if { { ac_try="$ac_link"
1924case "(($ac_try" in
1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926 *) ac_try_echo=$ac_try;;
1927esac
1928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929$as_echo "$ac_try_echo"; } >&5
1930 (eval "$ac_link") 2>conftest.err
1931 ac_status=$?
1932 if test -s conftest.err; then
1933 grep -v '^ *+' conftest.err >conftest.er1
1934 cat conftest.er1 >&5
1935 mv -f conftest.er1 conftest.err
1936 fi
1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938 test $ac_status = 0; } && {
1939 test -z "$ac_c_werror_flag" ||
1940 test ! -s conftest.err
1941 } && test -s conftest$ac_exeext && {
1942 test "$cross_compiling" = yes ||
22e05272 1943 test -x conftest$ac_exeext
5213506e
RW
1944 }; then :
1945 ac_retval=0
1946else
1947 $as_echo "$as_me: failed program was:" >&5
1948sed 's/^/| /' conftest.$ac_ext >&5
1949
1950 ac_retval=1
1951fi
1952 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1953 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1954 # interfere with the next link command; also delete a directory that is
1955 # left behind by Apple's compiler. We do this before executing the actions.
1956 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958 as_fn_set_status $ac_retval
5213506e
RW
1959
1960} # ac_fn_c_try_link
1961cat >config.log <<_ACEOF
1c710c3c
DJ
1962This file contains any messages produced by compilers while
1963running configure, to aid debugging if configure makes a mistake.
1964
1965It was created by $as_me, which was
22e05272 1966generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
1967
1968 $ $0 $@
1969
1970_ACEOF
5213506e 1971exec 5>>config.log
1c710c3c
DJ
1972{
1973cat <<_ASUNAME
1974## --------- ##
1975## Platform. ##
1976## --------- ##
1977
1978hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1979uname -m = `(uname -m) 2>/dev/null || echo unknown`
1980uname -r = `(uname -r) 2>/dev/null || echo unknown`
1981uname -s = `(uname -s) 2>/dev/null || echo unknown`
1982uname -v = `(uname -v) 2>/dev/null || echo unknown`
1983
1984/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1985/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1986
1987/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1988/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1989/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1990/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1991/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1992/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1993/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1994
1995_ASUNAME
1996
1997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998for as_dir in $PATH
1999do
2000 IFS=$as_save_IFS
2001 test -z "$as_dir" && as_dir=.
5213506e
RW
2002 $as_echo "PATH: $as_dir"
2003 done
2004IFS=$as_save_IFS
1c710c3c
DJ
2005
2006} >&5
2007
2008cat >&5 <<_ACEOF
2009
2010
2011## ----------- ##
2012## Core tests. ##
2013## ----------- ##
2014
2015_ACEOF
2016
2017
2018# Keep a trace of the command line.
2019# Strip out --no-create and --no-recursion so they do not pile up.
2020# Strip out --silent because we don't want to record it for future runs.
2021# Also quote any args containing shell meta-characters.
2022# Make two passes to allow for proper duplicate-argument suppression.
2023ac_configure_args=
2024ac_configure_args0=
2025ac_configure_args1=
1c710c3c
DJ
2026ac_must_keep_next=false
2027for ac_pass in 1 2
2028do
2029 for ac_arg
2030 do
2031 case $ac_arg in
2032 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2034 | -silent | --silent | --silen | --sile | --sil)
2035 continue ;;
5213506e
RW
2036 *\'*)
2037 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2038 esac
2039 case $ac_pass in
5213506e 2040 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2041 2)
5213506e 2042 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2043 if test $ac_must_keep_next = true; then
2044 ac_must_keep_next=false # Got value, back to normal.
2045 else
2046 case $ac_arg in
2047 *=* | --config-cache | -C | -disable-* | --disable-* \
2048 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2049 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2050 | -with-* | --with-* | -without-* | --without-* | --x)
2051 case "$ac_configure_args0 " in
2052 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2053 esac
2054 ;;
2055 -* ) ac_must_keep_next=true ;;
2056 esac
2057 fi
5213506e 2058 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2059 ;;
2060 esac
2061 done
2062done
5213506e
RW
2063{ ac_configure_args0=; unset ac_configure_args0;}
2064{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2065
2066# When interrupted or exit'd, cleanup temporary files, and complete
2067# config.log. We remove comments because anyway the quotes in there
2068# would cause problems or look ugly.
5213506e
RW
2069# WARNING: Use '\'' to represent an apostrophe within the trap.
2070# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2071trap 'exit_status=$?
2072 # Save into config.log some information that might help in debugging.
2073 {
2074 echo
2075
22e05272 2076 $as_echo "## ---------------- ##
1c710c3c 2077## Cache variables. ##
22e05272 2078## ---------------- ##"
1c710c3c
DJ
2079 echo
2080 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2081(
2082 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2083 eval ac_val=\$$ac_var
2084 case $ac_val in #(
2085 *${as_nl}*)
2086 case $ac_var in #(
2087 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2088$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2089 esac
2090 case $ac_var in #(
2091 _ | IFS | as_nl) ;; #(
2092 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2093 *) { eval $ac_var=; unset $ac_var;} ;;
2094 esac ;;
2095 esac
2096 done
1c710c3c 2097 (set) 2>&1 |
5213506e
RW
2098 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2099 *${as_nl}ac_space=\ *)
1c710c3c 2100 sed -n \
5213506e
RW
2101 "s/'\''/'\''\\\\'\'''\''/g;
2102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2103 ;; #(
1c710c3c 2104 *)
5213506e 2105 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2106 ;;
5213506e
RW
2107 esac |
2108 sort
2109)
1c710c3c
DJ
2110 echo
2111
22e05272 2112 $as_echo "## ----------------- ##
1c710c3c 2113## Output variables. ##
22e05272 2114## ----------------- ##"
1c710c3c
DJ
2115 echo
2116 for ac_var in $ac_subst_vars
2117 do
5213506e
RW
2118 eval ac_val=\$$ac_var
2119 case $ac_val in
2120 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2121 esac
2122 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2123 done | sort
2124 echo
2125
2126 if test -n "$ac_subst_files"; then
22e05272 2127 $as_echo "## ------------------- ##
5213506e 2128## File substitutions. ##
22e05272 2129## ------------------- ##"
1c710c3c
DJ
2130 echo
2131 for ac_var in $ac_subst_files
2132 do
5213506e
RW
2133 eval ac_val=\$$ac_var
2134 case $ac_val in
2135 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2136 esac
2137 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2138 done | sort
2139 echo
2140 fi
2141
2142 if test -s confdefs.h; then
22e05272 2143 $as_echo "## ----------- ##
1c710c3c 2144## confdefs.h. ##
22e05272 2145## ----------- ##"
1c710c3c 2146 echo
5213506e 2147 cat confdefs.h
1c710c3c
DJ
2148 echo
2149 fi
2150 test "$ac_signal" != 0 &&
5213506e
RW
2151 $as_echo "$as_me: caught signal $ac_signal"
2152 $as_echo "$as_me: exit $exit_status"
1c710c3c 2153 } >&5
5213506e
RW
2154 rm -f core *.core core.conftest.* &&
2155 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2156 exit $exit_status
5213506e 2157' 0
1c710c3c 2158for ac_signal in 1 2 13 15; do
5213506e 2159 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2160done
2161ac_signal=0
2162
2163# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2164rm -f -r conftest* confdefs.h
2165
2166$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2167
2168# Predefined preprocessor variables.
2169
2170cat >>confdefs.h <<_ACEOF
2171#define PACKAGE_NAME "$PACKAGE_NAME"
2172_ACEOF
2173
1c710c3c
DJ
2174cat >>confdefs.h <<_ACEOF
2175#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2176_ACEOF
2177
1c710c3c
DJ
2178cat >>confdefs.h <<_ACEOF
2179#define PACKAGE_VERSION "$PACKAGE_VERSION"
2180_ACEOF
0b0dc272 2181
1c710c3c
DJ
2182cat >>confdefs.h <<_ACEOF
2183#define PACKAGE_STRING "$PACKAGE_STRING"
2184_ACEOF
2185
1c710c3c
DJ
2186cat >>confdefs.h <<_ACEOF
2187#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2188_ACEOF
2189
5213506e
RW
2190cat >>confdefs.h <<_ACEOF
2191#define PACKAGE_URL "$PACKAGE_URL"
2192_ACEOF
2193
1c710c3c
DJ
2194
2195# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2196# Prefer an explicitly selected file to automatically selected ones.
2197ac_site_file1=NONE
2198ac_site_file2=NONE
2199if test -n "$CONFIG_SITE"; then
22e05272
JM
2200 # We do not want a PATH search for config.site.
2201 case $CONFIG_SITE in #((
2202 -*) ac_site_file1=./$CONFIG_SITE;;
2203 */*) ac_site_file1=$CONFIG_SITE;;
2204 *) ac_site_file1=./$CONFIG_SITE;;
2205 esac
5213506e
RW
2206elif test "x$prefix" != xNONE; then
2207 ac_site_file1=$prefix/share/config.site
2208 ac_site_file2=$prefix/etc/config.site
2209else
2210 ac_site_file1=$ac_default_prefix/share/config.site
2211 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2212fi
5213506e
RW
2213for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2214do
2215 test "x$ac_site_file" = xNONE && continue
22e05272 2216 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2218$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2219 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2220 . "$ac_site_file" \
2221 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2223as_fn_error $? "failed to load site script $ac_site_file
2224See \`config.log' for more details" "$LINENO" 5; }
671aa708
NN
2225 fi
2226done
2227
2228if test -r "$cache_file"; then
22e05272
JM
2229 # Some versions of bash will fail to source /dev/null (special files
2230 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2231 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2233$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2234 case $cache_file in
5213506e
RW
2235 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2236 *) . "./$cache_file";;
1c710c3c
DJ
2237 esac
2238 fi
671aa708 2239else
5213506e
RW
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2241$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2242 >$cache_file
2243fi
2244
2245# Check that the precious variables saved in the cache have kept the same
2246# value.
2247ac_cache_corrupted=false
5213506e 2248for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2249 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2250 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2251 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2252 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2253 case $ac_old_set,$ac_new_set in
2254 set,)
5213506e
RW
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2256$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2257 ac_cache_corrupted=: ;;
2258 ,set)
5213506e
RW
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2260$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2261 ac_cache_corrupted=: ;;
2262 ,);;
2263 *)
2264 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2265 # differences in whitespace do not lead to failure.
2266 ac_old_val_w=`echo x $ac_old_val`
2267 ac_new_val_w=`echo x $ac_new_val`
2268 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2270$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2271 ac_cache_corrupted=:
2272 else
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2274$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2275 eval $ac_var=\$ac_old_val
2276 fi
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2278$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2280$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2281 fi;;
2282 esac
2283 # Pass precious variables to config.status.
2284 if test "$ac_new_set" = set; then
2285 case $ac_new_val in
5213506e 2286 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2287 *) ac_arg=$ac_var=$ac_new_val ;;
2288 esac
2289 case " $ac_configure_args " in
2290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2291 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2292 esac
2293 fi
2294done
2295if $ac_cache_corrupted; then
5213506e
RW
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2299$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2300 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2301fi
5213506e
RW
2302## -------------------- ##
2303## Main body of script. ##
2304## -------------------- ##
671aa708 2305
2aeb72e9
DD
2306ac_ext=c
2307ac_cpp='$CPP $CPPFLAGS'
2308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2310ac_compiler_gnu=$ac_cv_c_compiler_gnu
2311
1c710c3c
DJ
2312
2313
2314
1c710c3c
DJ
2315
2316
0115d4a3 2317
1c710c3c 2318
ad33ff57
RW
2319progname=$0
2320# if PWD already has a value, it is probably wrong.
2321if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2322
2323# Export original configure arguments for use by sub-configures.
2324# Quote arguments with shell meta charatcers.
2325TOPLEVEL_CONFIGURE_ARGUMENTS=
2326set -- "$progname" "$@"
2327for ac_arg
2328do
2329 case "$ac_arg" in
2330 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2331 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2332 # if the argument is of the form -foo=baz, quote the baz part only
2333 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2334 *) ;;
2335 esac
2336 # Add the quoted argument to the list.
2337 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2338done
2339if test "$silent" = yes; then
2340 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2341fi
2342# Remove the initial space we just introduced and, as these will be
2343# expanded by make, quote '$'.
2344TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2345
1c710c3c
DJ
2346
2347# Find the build, host, and target systems.
671aa708 2348ac_aux_dir=
5213506e 2349for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2350 if test -f "$ac_dir/install-sh"; then
2351 ac_aux_dir=$ac_dir
2352 ac_install_sh="$ac_aux_dir/install-sh -c"
2353 break
2354 elif test -f "$ac_dir/install.sh"; then
2355 ac_aux_dir=$ac_dir
2356 ac_install_sh="$ac_aux_dir/install.sh -c"
2357 break
2358 elif test -f "$ac_dir/shtool"; then
2359 ac_aux_dir=$ac_dir
2360 ac_install_sh="$ac_aux_dir/shtool install -c"
2361 break
2362 fi
671aa708
NN
2363done
2364if test -z "$ac_aux_dir"; then
22e05272 2365 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2366fi
5213506e
RW
2367
2368# These three variables are undocumented and unsupported,
2369# and are intended to be withdrawn in a future Autoconf release.
2370# They can cause serious problems if a builder's source tree is in a directory
2371# whose full name contains unusual characters.
2372ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2373ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2374ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2375
671aa708 2376
1c710c3c 2377# Make sure we can run config.sub.
5213506e 2378$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2379 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2380
2381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2382$as_echo_n "checking build system type... " >&6; }
22e05272 2383if ${ac_cv_build+:} false; then :
5213506e
RW
2384 $as_echo_n "(cached) " >&6
2385else
2386 ac_build_alias=$build_alias
2387test "x$ac_build_alias" = x &&
2388 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2389test "x$ac_build_alias" = x &&
22e05272 2390 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2391ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2392 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2393
2394fi
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2396$as_echo "$ac_cv_build" >&6; }
2397case $ac_cv_build in
2398*-*-*) ;;
22e05272 2399*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2400esac
1c710c3c 2401build=$ac_cv_build
5213506e
RW
2402ac_save_IFS=$IFS; IFS='-'
2403set x $ac_cv_build
2404shift
2405build_cpu=$1
2406build_vendor=$2
2407shift; shift
2408# Remember, the first character of IFS is used to create $*,
2409# except with old shells:
2410build_os=$*
2411IFS=$ac_save_IFS
2412case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2413
671aa708 2414
1c710c3c
DJ
2415 case ${build_alias} in
2416 "") build_noncanonical=${build} ;;
2417 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2418esac
2419
2420
af71363e 2421
1c710c3c
DJ
2422 case ${host_alias} in
2423 "") host_noncanonical=${build_noncanonical} ;;
2424 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2425esac
2426
af71363e 2427
1c710c3c
DJ
2428
2429 case ${target_alias} in
2430 "") target_noncanonical=${host_noncanonical} ;;
2431 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2432esac
2433
af71363e 2434
1c710c3c
DJ
2435
2436
2437test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2438 test "$program_prefix$program_suffix$program_transform_name" = \
2439 NONENONEs,x,x, &&
1c710c3c 2440 program_transform_name=s,y,y,
af71363e 2441
5213506e
RW
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2443$as_echo_n "checking host system type... " >&6; }
22e05272 2444if ${ac_cv_host+:} false; then :
5213506e 2445 $as_echo_n "(cached) " >&6
af71363e 2446else
5213506e
RW
2447 if test "x$host_alias" = x; then
2448 ac_cv_host=$ac_cv_build
2449else
2450 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2451 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2452fi
1c710c3c 2453
af71363e 2454fi
5213506e
RW
2455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2456$as_echo "$ac_cv_host" >&6; }
2457case $ac_cv_host in
2458*-*-*) ;;
22e05272 2459*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2460esac
1c710c3c 2461host=$ac_cv_host
5213506e
RW
2462ac_save_IFS=$IFS; IFS='-'
2463set x $ac_cv_host
2464shift
2465host_cpu=$1
2466host_vendor=$2
2467shift; shift
2468# Remember, the first character of IFS is used to create $*,
2469# except with old shells:
2470host_os=$*
2471IFS=$ac_save_IFS
2472case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2473
2474
5213506e
RW
2475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2476$as_echo_n "checking target system type... " >&6; }
22e05272 2477if ${ac_cv_target+:} false; then :
5213506e 2478 $as_echo_n "(cached) " >&6
1c710c3c 2479else
5213506e
RW
2480 if test "x$target_alias" = x; then
2481 ac_cv_target=$ac_cv_host
2482else
2483 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2484 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2485fi
1c710c3c
DJ
2486
2487fi
5213506e
RW
2488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2489$as_echo "$ac_cv_target" >&6; }
2490case $ac_cv_target in
2491*-*-*) ;;
22e05272 2492*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2493esac
1c710c3c 2494target=$ac_cv_target
5213506e
RW
2495ac_save_IFS=$IFS; IFS='-'
2496set x $ac_cv_target
2497shift
2498target_cpu=$1
2499target_vendor=$2
2500shift; shift
2501# Remember, the first character of IFS is used to create $*,
2502# except with old shells:
2503target_os=$*
2504IFS=$ac_save_IFS
2505case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2506
2507
2508# The aliases save the names the user supplied, while $host etc.
2509# will get canonicalized.
2510test -n "$target_alias" &&
2511 test "$program_prefix$program_suffix$program_transform_name" = \
2512 NONENONEs,x,x, &&
2513 program_prefix=${target_alias}-
5213506e 2514
671aa708 2515test "$program_prefix" != NONE &&
5213506e 2516 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2517# Use a double $ so make ignores it.
2518test "$program_suffix" != NONE &&
5213506e
RW
2519 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2520# Double any \ or $.
1c710c3c 2521# By default was `s,x,x', remove it if useless.
5213506e
RW
2522ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2523program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2524
671aa708
NN
2525
2526
775956d0
NN
2527# Get 'install' or 'install-sh' and its variants.
2528# Find a good install program. We prefer a C program (faster),
2529# so one script is as good as another. But avoid the broken or
2530# incompatible versions:
2531# SysV /etc/install, /usr/sbin/install
2532# SunOS /usr/etc/install
2533# IRIX /sbin/install
2534# AIX /bin/install
1c710c3c 2535# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2536# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2537# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2538# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2539# OS/2's system install, which has a completely different semantic
775956d0 2540# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2541# Reject install programs that cannot install multiple files.
5213506e
RW
2542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2543$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2544if test -z "$INSTALL"; then
22e05272 2545if ${ac_cv_path_install+:} false; then :
5213506e 2546 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2547else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549for as_dir in $PATH
2550do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
5213506e
RW
2553 # Account for people who put trailing slashes in PATH elements.
2554case $as_dir/ in #((
2555 ./ | .// | /[cC]/* | \
1c710c3c 2556 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2557 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2558 /usr/ucb/* ) ;;
2559 *)
2560 # OSF1 and SCO ODT 3.0 have their own names for install.
2561 # Don't use installbsd from OSF since it installs stuff as root
2562 # by default.
2563 for ac_prog in ginstall scoinst install; do
2564 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2565 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 2566 if test $ac_prog = install &&
1c710c3c 2567 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2568 # AIX install. It has an incompatible calling convention.
2569 :
1c710c3c
DJ
2570 elif test $ac_prog = install &&
2571 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2572 # program-specific install script used by HP pwplus--don't use.
2573 :
775956d0 2574 else
38d24731
RW
2575 rm -rf conftest.one conftest.two conftest.dir
2576 echo one > conftest.one
2577 echo two > conftest.two
2578 mkdir conftest.dir
2579 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2580 test -s conftest.one && test -s conftest.two &&
2581 test -s conftest.dir/conftest.one &&
2582 test -s conftest.dir/conftest.two
2583 then
2584 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2585 break 3
2586 fi
775956d0
NN
2587 fi
2588 fi
2589 done
1c710c3c
DJ
2590 done
2591 ;;
2592esac
5213506e
RW
2593
2594 done
2595IFS=$as_save_IFS
1c710c3c 2596
38d24731 2597rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2598
2599fi
2600 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2601 INSTALL=$ac_cv_path_install
775956d0 2602 else
38d24731
RW
2603 # As a last resort, use the slow shell script. Don't cache a
2604 # value for INSTALL within a source directory, because that will
775956d0 2605 # break other packages using the cache if that directory is
38d24731 2606 # removed, or if the value is a relative name.
1c710c3c 2607 INSTALL=$ac_install_sh
775956d0
NN
2608 fi
2609fi
5213506e
RW
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2611$as_echo "$INSTALL" >&6; }
775956d0
NN
2612
2613# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2614# It thinks the first close brace ends the variable substitution.
2615test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2616
1c710c3c 2617test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2618
2619test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2620
5213506e
RW
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2622$as_echo_n "checking whether ln works... " >&6; }
22e05272 2623if ${acx_cv_prog_LN+:} false; then :
5213506e 2624 $as_echo_n "(cached) " >&6
ad6717df
PB
2625else
2626 rm -f conftestdata_t
2627echo >conftestdata_f
2628if ln conftestdata_f conftestdata_t 2>/dev/null
2629then
2630 acx_cv_prog_LN=ln
2631else
2632 acx_cv_prog_LN=no
2633fi
2634rm -f conftestdata_f conftestdata_t
2635
2636fi
2637if test $acx_cv_prog_LN = no; then
2638 LN="cp"
5213506e
RW
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2640$as_echo "no, using $LN" >&6; }
ad6717df
PB
2641else
2642 LN="$acx_cv_prog_LN"
5213506e
RW
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2644$as_echo "yes" >&6; }
ad6717df
PB
2645fi
2646
5213506e
RW
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2648$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2649LN_S=$as_ln_s
2650if test "$LN_S" = "ln -s"; then
5213506e
RW
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2652$as_echo "yes" >&6; }
fb0103e5 2653else
5213506e
RW
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2655$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2656fi
2657
87264276
PB
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2659$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 2660if ${ac_cv_path_SED+:} false; then :
87264276
PB
2661 $as_echo_n "(cached) " >&6
2662else
2663 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2664 for ac_i in 1 2 3 4 5 6 7; do
2665 ac_script="$ac_script$as_nl$ac_script"
2666 done
2667 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2668 { ac_script=; unset ac_script;}
2669 if test -z "$SED"; then
2670 ac_path_SED_found=false
2671 # Loop through the user's path and test for each of PROGNAME-LIST
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673for as_dir in $PATH
2674do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_prog in sed gsed; do
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 2680 as_fn_executable_p "$ac_path_SED" || continue
87264276
PB
2681# Check for GNU ac_path_SED and select it if it is found.
2682 # Check for GNU $ac_path_SED
2683case `"$ac_path_SED" --version 2>&1` in
2684*GNU*)
2685 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2686*)
2687 ac_count=0
2688 $as_echo_n 0123456789 >"conftest.in"
2689 while :
2690 do
2691 cat "conftest.in" "conftest.in" >"conftest.tmp"
2692 mv "conftest.tmp" "conftest.in"
2693 cp "conftest.in" "conftest.nl"
2694 $as_echo '' >> "conftest.nl"
2695 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2696 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2697 as_fn_arith $ac_count + 1 && ac_count=$as_val
2698 if test $ac_count -gt ${ac_path_SED_max-0}; then
2699 # Best one so far, save it but keep looking for a better one
2700 ac_cv_path_SED="$ac_path_SED"
2701 ac_path_SED_max=$ac_count
2702 fi
2703 # 10*(2^10) chars as input seems more than enough
2704 test $ac_count -gt 10 && break
2705 done
2706 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2707esac
2708
2709 $ac_path_SED_found && break 3
2710 done
2711 done
2712 done
2713IFS=$as_save_IFS
2714 if test -z "$ac_cv_path_SED"; then
22e05272 2715 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
87264276
PB
2716 fi
2717else
2718 ac_cv_path_SED=$SED
2719fi
2720
2721fi
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2723$as_echo "$ac_cv_path_SED" >&6; }
2724 SED="$ac_cv_path_SED"
2725 rm -f conftest.sed
2726
2727for ac_prog in gawk mawk nawk awk
2728do
2729 # Extract the first word of "$ac_prog", so it can be a program name with args.
2730set dummy $ac_prog; ac_word=$2
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2733if ${ac_cv_prog_AWK+:} false; then :
87264276
PB
2734 $as_echo_n "(cached) " >&6
2735else
2736 if test -n "$AWK"; then
2737 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2738else
2739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740for as_dir in $PATH
2741do
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87264276
PB
2746 ac_cv_prog_AWK="$ac_prog"
2747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 break 2
2749 fi
2750done
2751 done
2752IFS=$as_save_IFS
2753
2754fi
2755fi
2756AWK=$ac_cv_prog_AWK
2757if test -n "$AWK"; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2759$as_echo "$AWK" >&6; }
2760else
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762$as_echo "no" >&6; }
2763fi
2764
2765
2766 test -n "$AWK" && break
2767done
2768
775956d0 2769
ee6a22df
L
2770srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2771
2772# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2773# a relative path.
2774if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2775 INSTALL="${srcpwd}/install-sh -c"
2776fi
2777
671aa708
NN
2778# Set srcdir to "." if that's what it is.
2779# This is important for multilib support.
2780pwd=`${PWDCMD-pwd}`
671aa708
NN
2781if test "${pwd}" = "${srcpwd}" ; then
2782 srcdir=.
79c06341
JL
2783fi
2784
671aa708 2785topsrcdir=$srcpwd
5d4a5ee6 2786
671aa708 2787extra_host_args=
afabd8e6 2788
671aa708
NN
2789### To add a new directory to the tree, first choose whether it is a target
2790### or a host dependent tool. Then put it into the appropriate list
2791### (library or tools, host or target), doing a dependency sort.
79c06341 2792
1c710c3c 2793# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2794# configdirs, or target_configdirs; see the serialization section below.
79c06341 2795
1c710c3c
DJ
2796# Dependency sorting is only needed when *configuration* must be done in
2797# a particular order. In all cases a dependency should be specified in
671aa708 2798# the Makefile, whether or not it's implicitly specified here.
79c06341 2799
671aa708
NN
2800# Double entries in build_configdirs, configdirs, or target_configdirs may
2801# cause circular dependencies and break everything horribly.
79c06341 2802
23f6b2f9
PB
2803# these library is used by various programs built for the build
2804# environment
2805#
929315a9 2806build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2807
2808# these tools are built for the build environment
85bfb75e 2809build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2810
671aa708 2811# these libraries are used by various programs built for the host environment
eae1a5d4 2812#f
3de627ff 2813host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
671aa708 2814
671aa708
NN
2815# these tools are built for the host environment
2816# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2817# know that we are building the simulator.
2818# binutils, gas and ld appear in that order because it makes sense to run
2819# "make check" in that particular order.
38e3d868 2820# If --enable-gold is used, "gold" may replace "ld".
1eee94d3 2821host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gm2tools gotools c++tools"
671aa708 2822
671aa708
NN
2823# these libraries are built for the target environment, and are built after
2824# the host libraries and the host tools (which may be a cross compiler)
8499116a 2825# Note that libiberty is not a target library.
291f172e 2826target_libraries="target-libgcc \
eff02e4f 2827 target-libbacktrace \
671aa708
NN
2828 target-libgloss \
2829 target-newlib \
6d3b5aea 2830 target-libgomp \
48310492 2831 target-libatomic \
0a35513e 2832 target-libitm \
cb543528 2833 target-libstdc++-v3 \
f35db108 2834 target-libsanitizer \
2077db1b 2835 target-libvtv \
77008252 2836 target-libssp \
1ec601bf 2837 target-libquadmath \
6de9cd9a 2838 target-libgfortran \
012447ea 2839 target-libffi \
d9cdb878 2840 target-libobjc \
632e2a07 2841 target-libada \
1eee94d3 2842 target-libgm2 \
b4c522fa 2843 target-libgo \
bb50312e
IB
2844 target-libphobos \
2845 target-zlib"
671aa708 2846
4dbda6f0
NN
2847# these tools are built using the target libraries, and are intended to
2848# run only in the target environment
671aa708 2849#
4dbda6f0 2850# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2851# list belongs in this list.
671aa708 2852#
85bfb75e 2853target_tools="target-rda"
79c06341 2854
671aa708 2855################################################################################
79c06341 2856
671aa708
NN
2857## All tools belong in one of the four categories, and are assigned above
2858## We assign ${configdirs} this way to remove all embedded newlines. This
2859## is important because configure will choke if they ever get through.
2860## ${configdirs} is directories we build using the host tools.
2861## ${target_configdirs} is directories we build using the target tools.
671aa708 2862configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2863target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2864build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2865
ac9e6043
RW
2866
2867
671aa708 2868################################################################################
79c06341 2869
671aa708 2870srcname="gnu development package"
79c06341 2871
671aa708
NN
2872# This gets set non-empty for some net releases of packages.
2873appdirs=""
79c06341 2874
671aa708
NN
2875# Define is_cross_compiler to save on calls to 'test'.
2876is_cross_compiler=
2877if test x"${host}" = x"${target}" ; then
2878 is_cross_compiler=no
79c06341 2879else
671aa708 2880 is_cross_compiler=yes
1c710c3c 2881fi
79c06341 2882
b4acb5ef 2883# Find the build and target subdir names.
8b87bb96 2884
2e9e6f68
DJ
2885# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2886# have matching libraries, they should use host libraries: Makefile.tpl
2887# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2888# However, they still use the build modules, because the corresponding
2889# host modules (e.g. bison) are only built for the host when bootstrap
2890# finishes. So:
2891# - build_subdir is where we find build modules, and never changes.
2892# - build_libsubdir is where we find build libraries, and can be overridden.
2893
2894# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2895build_subdir="build-${build_noncanonical}"
1c710c3c 2896
5213506e
RW
2897# Check whether --with-build-libsubdir was given.
2898if test "${with_build_libsubdir+set}" = set; then :
2899 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2900else
2901 build_libsubdir="$build_subdir"
5213506e
RW
2902fi
2903
215c351a
PB
2904# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2905if ( test $srcdir = . && test -d gcc ) \
2906 || test -d $srcdir/../host-${host_noncanonical}; then
2907 host_subdir="host-${host_noncanonical}"
2908else
2909 host_subdir=.
2910fi
8b87bb96
NN
2911# No prefix.
2912target_subdir=${target_noncanonical}
1c710c3c 2913
0db770bd
RW
2914# Be sure to cover against remnants of an in-tree build.
2915if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
22e05272 2916 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
0db770bd
RW
2917Use a pristine source tree when building in a separate tree" "$LINENO" 5
2918fi
79c06341 2919
671aa708
NN
2920# Skipdirs are removed silently.
2921skipdirs=
2922# Noconfigdirs are removed loudly.
2923noconfigdirs=""
79c06341 2924
671aa708
NN
2925use_gnu_ld=
2926# Make sure we don't let GNU ld be added if we didn't want it.
2927if test x$with_gnu_ld = xno ; then
2928 use_gnu_ld=no
5afab7ad 2929 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2930fi
2931
671aa708
NN
2932use_gnu_as=
2933# Make sure we don't let GNU as be added if we didn't want it.
2934if test x$with_gnu_as = xno ; then
2935 use_gnu_as=no
2936 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2937fi
2938
d7f09764 2939use_included_zlib=
a05c2c75
L
2940
2941# Check whether --with-system-zlib was given.
2942if test "${with_system_zlib+set}" = set; then :
2943 withval=$with_system_zlib;
2944fi
2945
d7f09764
DN
2946# Make sure we don't let ZLIB be added if we didn't want it.
2947if test x$with_system_zlib = xyes ; then
2948 use_included_zlib=no
2949 noconfigdirs="$noconfigdirs zlib"
2950fi
2951
36ba9851
ДП
2952# Don't compile the bundled readline/libreadline.a if --with-system-readline
2953# is provided.
2954if test x$with_system_readline = xyes ; then
2955 noconfigdirs="$noconfigdirs readline"
2956fi
2957
1c710c3c 2958# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2959# it's not even worth trying to configure, much less build, that tool.
79c06341 2960
671aa708
NN
2961case ${with_x} in
2962 yes | "") ;; # the default value for this tree is that X11 is available
2963 no)
b4f96efe 2964 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2965 # We won't be able to build gdbtk without X.
1c710c3c 2966 enable_gdbtk=no
671aa708
NN
2967 ;;
2968 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2969esac
79c06341 2970
1bcce263 2971# Some are only suitable for cross toolchains.
671aa708
NN
2972# Remove these if host=target.
2973cross_only="target-libgloss target-newlib target-opcodes"
2974
2975case $is_cross_compiler in
2976 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2977esac
79c06341 2978
671aa708
NN
2979# If both --with-headers and --with-libs are specified, default to
2980# --without-newlib.
ee6a22df
L
2981if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2982 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2983 if test x"${with_newlib}" = x ; then
2984 with_newlib=no
2985 fi
79c06341
JL
2986fi
2987
671aa708
NN
2988# Recognize --with-newlib/--without-newlib.
2989case ${with_newlib} in
2990 no) skipdirs="${skipdirs} target-newlib" ;;
2991 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2992esac
79c06341 2993
85c64bbe
BS
2994# Check whether --enable-as-accelerator-for was given.
2995if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2996 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2997fi
2998
2999
3000# Check whether --enable-offload-targets was given.
3001if test "${enable_offload_targets+set}" = set; then :
3002 enableval=$enable_offload_targets;
3003 if test x"$enable_offload_targets" = x; then
22e05272 3004 as_fn_error $? "no offload targets specified" "$LINENO" 5
85c64bbe
BS
3005 fi
3006
3007else
3008 enable_offload_targets=
3009fi
3010
3011
fe5bfa67
TB
3012# Check whether --enable-offload-defaulted was given.
3013if test "${enable_offload_defaulted+set}" = set; then :
3014 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3015else
3016 enable_offload_defaulted=
3017fi
3018
3019
21539e2e
MK
3020# Handle --enable-gold, --enable-ld.
3021# --disable-gold [--enable-ld]
3022# Build only ld. Default option.
9580395f
L
3023# --enable-gold [--enable-ld]
3024# Build both gold and ld. Install gold as "ld.gold", install ld
3025# as "ld.bfd" and "ld".
3026# --enable-gold=default [--enable-ld]
21539e2e
MK
3027# Build both gold and ld. Install gold as "ld.gold" and "ld",
3028# install ld as "ld.bfd".
3029# --enable-gold[=default] --disable-ld
3030# Build only gold, which is then installed as both "ld.gold" and "ld".
3031# --enable-gold --enable-ld=default
9580395f
L
3032# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3033# and ld.bfd).
21539e2e
MK
3034# In other words, ld is default
3035# --enable-gold=default --enable-ld=default
3036# Error.
3037
3038default_ld=
5213506e
RW
3039# Check whether --enable-gold was given.
3040if test "${enable_gold+set}" = set; then :
3041 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
3042else
3043 ENABLE_GOLD=no
5213506e
RW
3044fi
3045
21539e2e
MK
3046case "${ENABLE_GOLD}" in
3047 yes|default)
38e3d868
RM
3048 # Check for ELF target.
3049 is_elf=no
3050 case "${target}" in
3051 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 3052 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 3053 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 3054 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
3055 case "${target}" in
3056 *-*-linux*aout* | *-*-linux*oldld*)
3057 ;;
3058 *)
3059 is_elf=yes
3060 ;;
3061 esac
3062 esac
3063
3064 if test "$is_elf" = "yes"; then
3065 # Check for target supported by gold.
5afab7ad 3066 case "${target}" in
7705dfd1 3067 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
fc259b52 3068 | aarch64*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
21539e2e
MK
3069 configdirs="$configdirs gold"
3070 if test x${ENABLE_GOLD} = xdefault; then
3071 default_ld=gold
3072 fi
38e3d868 3073 ENABLE_GOLD=yes
5afab7ad
ILT
3074 ;;
3075 esac
38e3d868
RM
3076 fi
3077 ;;
3078 no)
3079 ;;
3080 *)
22e05272 3081 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
38e3d868 3082 ;;
21539e2e
MK
3083esac
3084
3085# Check whether --enable-ld was given.
3086if test "${enable_ld+set}" = set; then :
3087 enableval=$enable_ld; ENABLE_LD=$enableval
3088else
3089 ENABLE_LD=yes
3090fi
3091
3092
3093case "${ENABLE_LD}" in
3094 default)
9580395f 3095 if test x${default_ld} != x; then
22e05272 3096 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
21539e2e
MK
3097 fi
3098 ;;
3099 yes)
3100 ;;
3101 no)
3102 if test x${ENABLE_GOLD} != xyes; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3104$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3105 fi
3106 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3107 ;;
3108 *)
22e05272 3109 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
21539e2e
MK
3110 ;;
3111esac
5afab7ad 3112
78edb32f
L
3113# PR gas/19109
3114# Decide the default method for compressing debug sections.
3115# Provide a configure time option to override our default.
3116# Check whether --enable-compressed_debug_sections was given.
3117if test "${enable_compressed_debug_sections+set}" = set; then :
3118 enableval=$enable_compressed_debug_sections;
3119 if test x"$enable_compressed_debug_sections" = xyes; then
22e05272 3120 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
78edb32f
L
3121 fi
3122
3123else
3124 enable_compressed_debug_sections=
3125fi
3126
3127
671aa708 3128# Configure extra directories which are host specific
79c06341 3129
671aa708
NN
3130case "${host}" in
3131 *-cygwin*)
3132 configdirs="$configdirs libtermcap" ;;
3133esac
79c06341 3134
4fab7234
HPN
3135# A target can indicate whether a language isn't supported for some reason.
3136# Only spaces may be used in this macro; not newlines or tabs.
3137unsupported_languages=
3138
1c710c3c 3139# Remove more programs from consideration, based on the host or
671aa708
NN
3140# target this usually means that a port of the program doesn't
3141# exist yet.
ec8d6ddc 3142
671aa708 3143case "${host}" in
111eeb6e 3144 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3145 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3146 ;;
671aa708 3147esac
ec8d6ddc 3148
6de9cd9a 3149
87e6d9dc
TB
3150# Check whether --enable-libquadmath was given.
3151if test "${enable_libquadmath+set}" = set; then :
3152 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3153else
3154 ENABLE_LIBQUADMATH=yes
3155fi
3156
3157if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3158 noconfigdirs="$noconfigdirs target-libquadmath"
3159fi
3160
3161
3162# Check whether --enable-libquadmath-support was given.
3163if test "${enable_libquadmath_support+set}" = set; then :
3164 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3165else
3166 ENABLE_LIBQUADMATH_SUPPORT=yes
3167fi
3168
3169enable_libquadmath_support=
3170if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3171 enable_libquadmath_support=no
3172fi
3173
3174
5213506e
RW
3175# Check whether --enable-libada was given.
3176if test "${enable_libada+set}" = set; then :
3177 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3178else
3179 ENABLE_LIBADA=yes
5213506e
RW
3180fi
3181
d9cdb878 3182if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3183 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3184fi
3185
1eee94d3
GM
3186# Check whether --enable-libgm2 was given.
3187if test "${enable_libgm2+set}" = set; then :
3188 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3189else
3190 ENABLE_LIBGM2=no
3191fi
3192
3193if test "${ENABLE_LIBGM2}" != "yes" ; then
3194 noconfigdirs="$noconfigdirs gm2tools"
3195fi
3196
5213506e
RW
3197# Check whether --enable-libssp was given.
3198if test "${enable_libssp+set}" = set; then :
3199 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3200else
3201 ENABLE_LIBSSP=yes
5213506e
RW
3202fi
3203
ef0087a7 3204
1873ec0c
L
3205# Check whether --enable-libstdcxx was given.
3206if test "${enable_libstdcxx+set}" = set; then :
3207 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3208else
3209 ENABLE_LIBSTDCXX=default
3210fi
3211
3212if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3213 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3214fi
3215
44a7d18d 3216# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3217if test x$enable_libgomp = x ; then
953ff289 3218 case "${target}" in
416ac4d4 3219 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3220 ;;
8c6d158a 3221 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3222 ;;
b24513a1 3223 *-*-solaris2* | *-*-hpux11*)
953ff289 3224 ;;
cac90078 3225 *-*-darwin* | *-*-aix*)
953ff289 3226 ;;
29b1533a 3227 nvptx*-*-* | amdgcn*-*-*)
44a7d18d 3228 ;;
953ff289
DN
3229 *)
3230 noconfigdirs="$noconfigdirs target-libgomp"
3231 ;;
3232 esac
27079765 3233fi
953ff289 3234
48310492
RH
3235# Disable libatomic on unsupported systems.
3236if test -d ${srcdir}/libatomic; then
3237 if test x$enable_libatomic = x; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3239$as_echo_n "checking for libatomic support... " >&6; }
3240 if (srcdir=${srcdir}/libatomic; \
3241 . ${srcdir}/configure.tgt; \
3242 test -n "$UNSUPPORTED")
3243 then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245$as_echo "no" >&6; }
3246 noconfigdirs="$noconfigdirs target-libatomic"
3247 else
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3249$as_echo "yes" >&6; }
3250 fi
3251 fi
3252fi
3253
e948157d
RH
3254# Disable libitm on unsupported systems.
3255if test -d ${srcdir}/libitm; then
3256 if test x$enable_libitm = x; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3258$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3259 if (srcdir=${srcdir}/libitm; \
3260 . ${srcdir}/configure.tgt; \
3261 test -n "$UNSUPPORTED")
3262 then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3264$as_echo "no" >&6; }
e948157d
RH
3265 noconfigdirs="$noconfigdirs target-libitm"
3266 else
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3268$as_echo "yes" >&6; }
e948157d
RH
3269 fi
3270 fi
0a35513e
AH
3271fi
3272
93bf5390
RH
3273# Disable libsanitizer on unsupported systems.
3274if test -d ${srcdir}/libsanitizer; then
3275 if test x$enable_libsanitizer = x; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3277$as_echo_n "checking for libsanitizer support... " >&6; }
3278 if (srcdir=${srcdir}/libsanitizer; \
3279 . ${srcdir}/configure.tgt; \
3280 test -n "$UNSUPPORTED")
3281 then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283$as_echo "no" >&6; }
3284 noconfigdirs="$noconfigdirs target-libsanitizer"
3285 else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3287$as_echo "yes" >&6; }
3288 fi
3289 fi
3290fi
3291
2077db1b
CT
3292# Disable libvtv on unsupported systems.
3293if test -d ${srcdir}/libvtv; then
3294 if test x$enable_libvtv = x; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3296$as_echo_n "checking for libvtv support... " >&6; }
3297 if (srcdir=${srcdir}/libvtv; \
3298 . ${srcdir}/configure.tgt; \
1e74b850 3299 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3300 then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302$as_echo "no" >&6; }
3303 noconfigdirs="$noconfigdirs target-libvtv"
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3306$as_echo "yes" >&6; }
3307 fi
3308 fi
3309fi
3310
d91491e5
SE
3311# Disable libquadmath for some systems.
3312case "${target}" in
e7fae550
DE
3313 avr-*-*)
3314 noconfigdirs="$noconfigdirs target-libquadmath"
3315 ;;
d91491e5
SE
3316 # libquadmath is unused on AIX and libquadmath build process use of
3317 # LD_LIBRARY_PATH can break AIX bootstrap.
3318 powerpc-*-aix* | rs6000-*-aix*)
3319 noconfigdirs="$noconfigdirs target-libquadmath"
3320 ;;
3321esac
3322
1e9e0e23
JM
3323# Disable libssp for some systems.
3324case "${target}" in
3325 avr-*-*)
b318fb4b 3326 # No hosted I/O support.
1e9e0e23
JM
3327 noconfigdirs="$noconfigdirs target-libssp"
3328 ;;
91dfef96
JM
3329 bpf-*-*)
3330 noconfigdirs="$noconfigdirs target-libssp"
3331 ;;
1e9e0e23
JM
3332 powerpc-*-aix* | rs6000-*-aix*)
3333 noconfigdirs="$noconfigdirs target-libssp"
85b8555e 3334 ;;
8d2af3a2
DD
3335 pru-*-*)
3336 # No hosted I/O support.
3337 noconfigdirs="$noconfigdirs target-libssp"
3338 ;;
85b8555e 3339 rl78-*-*)
7cb62ef1
EB
3340 # libssp uses a misaligned load to trigger a fault, but the RL78
3341 # doesn't fault for those - instead, it gives a build-time error
3342 # for explicit misaligned loads.
85b8555e 3343 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3344 ;;
0969ec7d
EB
3345 visium-*-*)
3346 # No hosted I/O support.
3347 noconfigdirs="$noconfigdirs target-libssp"
3348 ;;
1e9e0e23
JM
3349esac
3350
1e9e0e23 3351# Disable libstdc++-v3 for some systems.
67a1cb2a 3352# Allow user to override this if they pass --enable-libstdcxx
1873ec0c
L
3353if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3354 case "${target}" in
3355 *-*-vxworks*)
3356 # VxWorks uses the Dinkumware C++ library.
3357 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3358 ;;
afa3d80e
TS
3359 amdgcn*-*-*)
3360 # Not ported/fails to build when using newlib.
3361 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3362 ;;
1873ec0c
L
3363 arm*-wince-pe*)
3364 # the C++ libraries don't build on top of CE's C libraries
3365 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3366 ;;
3367 avr-*-*)
3368 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3369 ;;
91dfef96
JM
3370 bpf-*-*)
3371 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3372 ;;
fef939d6
JB
3373 ft32-*-*)
3374 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3375 ;;
1873ec0c
L
3376 esac
3377fi
1e9e0e23 3378
91dfef96
JM
3379# Disable C++ on systems where it is known to not work.
3380# For testing, you can override this with --enable-languages=c++.
3381case ,${enable_languages}, in
3382 *,c++,*)
3383 ;;
3384 *)
3385 case "${target}" in
3386 bpf-*-*)
3387 unsupported_languages="$unsupported_languages c++"
3388 ;;
3389 esac
3390 ;;
3391esac
3392
3393# Disable Objc on systems where it is known to not work.
3394# For testing, you can override this with --enable-languages=objc.
3395case ,${enable_languages}, in
3396 *,objc,*)
3397 ;;
3398 *)
3399 case "${target}" in
3400 bpf-*-*)
3401 unsupported_languages="$unsupported_languages objc"
3402 ;;
3403 esac
3404 ;;
3405esac
3406
260eedb9
IB
3407# Disable D on systems where it is known to not work.
3408# For testing, you can override this with --enable-languages=d.
3409case ,${enable_languages}, in
3410 *,d,*)
3411 ;;
3412 *)
3413 case "${target}" in
91dfef96 3414 bpf-*-*)
260eedb9
IB
3415 unsupported_languages="$unsupported_languages d"
3416 ;;
3417 esac
3418 ;;
3419esac
3420
3421# Disable libphobos on unsupported systems.
3422# For testing, you can override this with --enable-libphobos.
3423if test -d ${srcdir}/libphobos; then
3424 if test x$enable_libphobos = x; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3426$as_echo_n "checking for libphobos support... " >&6; }
3427 if (srcdir=${srcdir}/libphobos; \
3428 . ${srcdir}/configure.tgt; \
7d31d331 3429 test "$LIBPHOBOS_SUPPORTED" != "yes")
260eedb9
IB
3430 then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432$as_echo "no" >&6; }
3433 noconfigdirs="$noconfigdirs target-libphobos"
3434 else
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3436$as_echo "yes" >&6; }
3437 fi
3438 fi
3439fi
3440
1e9e0e23
JM
3441# Disable Fortran for some systems.
3442case "${target}" in
3443 mmix-*-*)
3444 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3445 unsupported_languages="$unsupported_languages fortran"
3446 ;;
91dfef96
JM
3447 bpf-*-*)
3448 unsupported_languages="$unsupported_languages fortran"
3449 ;;
1e9e0e23
JM
3450esac
3451
012447ea
JJ
3452# Disable libffi for some systems.
3453case "${target}" in
3454 powerpc-*-darwin*)
3455 ;;
3456 i[3456789]86-*-darwin*)
3457 ;;
3458 x86_64-*-darwin[912]*)
3459 ;;
3460 *-*-darwin*)
3461 noconfigdirs="$noconfigdirs target-libffi"
3462 ;;
3463 *-*-netware*)
3464 noconfigdirs="$noconfigdirs target-libffi"
3465 ;;
3466 *-*-phoenix*)
3467 noconfigdirs="$noconfigdirs target-libffi"
3468 ;;
3469 *-*-rtems*)
3470 noconfigdirs="$noconfigdirs target-libffi"
3471 ;;
3472 *-*-tpf*)
3473 noconfigdirs="$noconfigdirs target-libffi"
3474 ;;
3475 *-*-uclinux*)
3476 noconfigdirs="$noconfigdirs target-libffi"
3477 ;;
3478 *-*-vxworks*)
3479 noconfigdirs="$noconfigdirs target-libffi"
3480 ;;
b20e7532
AT
3481 aarch64*-*-freebsd*)
3482 noconfigdirs="$noconfigdirs target-libffi"
3483 ;;
012447ea
JJ
3484 alpha*-*-*vms*)
3485 noconfigdirs="$noconfigdirs target-libffi"
3486 ;;
3487 arm*-*-freebsd*)
3488 noconfigdirs="$noconfigdirs target-libffi"
3489 ;;
3490 arm-wince-pe)
3491 noconfigdirs="$noconfigdirs target-libffi"
3492 ;;
3493 arm*-*-symbianelf*)
3494 noconfigdirs="$noconfigdirs target-libffi"
3495 ;;
91dfef96
JM
3496 bpf-*-*)
3497 noconfigdirs="$noconfigdirs target-libffi"
3498 ;;
012447ea
JJ
3499 cris-*-* | crisv32-*-*)
3500 case "${target}" in
3501 *-*-linux*)
3502 ;;
3503 *) # See PR46792 regarding target-libffi.
3504 noconfigdirs="$noconfigdirs target-libffi";;
3505 esac
3506 ;;
3507 hppa*64*-*-hpux*)
3508 noconfigdirs="$noconfigdirs target-libffi"
3509 ;;
012447ea
JJ
3510 ia64*-*-*vms*)
3511 noconfigdirs="$noconfigdirs target-libffi"
3512 ;;
3513 i[3456789]86-w64-mingw*)
3514 noconfigdirs="$noconfigdirs target-libffi"
3515 ;;
3516 i[3456789]86-*-mingw*)
3517 noconfigdirs="$noconfigdirs target-libffi"
3518 ;;
3519 x86_64-*-mingw*)
3520 noconfigdirs="$noconfigdirs target-libffi"
3521 ;;
3522 mmix-*-*)
3523 noconfigdirs="$noconfigdirs target-libffi"
3524 ;;
3525 powerpc-*-aix*)
012447ea
JJ
3526 ;;
3527 rs6000-*-aix*)
012447ea
JJ
3528 ;;
3529 ft32-*-*)
3530 noconfigdirs="$noconfigdirs target-libffi"
3531 ;;
3532 *-*-lynxos*)
3533 noconfigdirs="$noconfigdirs target-libffi"
3534 ;;
3535esac
3536
3537# Disable the go frontend on systems where it is known to not work. Please keep
3538# this in sync with contrib/config-list.mk.
3539case "${target}" in
91dfef96 3540*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
012447ea
JJ
3541 unsupported_languages="$unsupported_languages go"
3542 ;;
3543esac
3544
f9d09df0
TT
3545# Only allow gdbserver on some systems.
3546if test -d ${srcdir}/gdbserver; then
3547 if test x$enable_gdbserver = x; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3549$as_echo_n "checking for gdbserver support... " >&6; }
3550 if (srcdir=${srcdir}/gdbserver; \
3551 . ${srcdir}/configure.srv; \
3552 test -n "$UNSUPPORTED")
3553 then
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555$as_echo "no" >&6; }
3556 noconfigdirs="$noconfigdirs gdbserver"
3557 else
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3559$as_echo "yes" >&6; }
3560 fi
3561 fi
3562fi
3563
cdbc9e92
ILT
3564# Disable libgo for some systems where it is known to not work.
3565# For testing, you can easily override this with --enable-libgo.
3566if test x$enable_libgo = x; then
3567 case "${target}" in
3568 *-*-darwin*)
3569 # PR 46986
3570 noconfigdirs="$noconfigdirs target-libgo"
3571 ;;
3572 *-*-cygwin* | *-*-mingw*)
3573 noconfigdirs="$noconfigdirs target-libgo"
3574 ;;
91dfef96
JM
3575 bpf-*-*)
3576 noconfigdirs="$noconfigdirs target-libgo"
3577 ;;
cdbc9e92
ILT
3578 esac
3579fi
3580
c03353e2
RIL
3581# Default libgloss CPU subdirectory.
3582libgloss_dir="$target_cpu"
6de9cd9a 3583
fbcf0dca
JM
3584case "${target}" in
3585 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3586 libgloss_dir=wince
3587 ;;
4dddfc74
YZ
3588 aarch64*-*-* )
3589 libgloss_dir=aarch64
3590 ;;
fbcf0dca
JM
3591 arm*-*-*)
3592 libgloss_dir=arm
3593 ;;
3594 cris-*-* | crisv32-*-*)
3595 libgloss_dir=cris
3596 ;;
3597 hppa*-*-*)
3598 libgloss_dir=pa
3599 ;;
3600 i[3456789]86-*-*)
3601 libgloss_dir=i386
3602 ;;
c6c0594e 3603 loongarch*-*-*)
3604 libgloss_dir=loongarch
3605 ;;
fbcf0dca
JM
3606 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3607 libgloss_dir=m68hc11
3608 ;;
3609 m68*-*-* | fido-*-*)
3610 libgloss_dir=m68k
3611 ;;
3612 mips*-*-*)
3613 libgloss_dir=mips
3614 ;;
3615 powerpc*-*-*)
3616 libgloss_dir=rs6000
3617 ;;
8d2af3a2
DD
3618 pru-*-*)
3619 libgloss_dir=pru
3620 ;;
fbcf0dca
JM
3621 sparc*-*-*)
3622 libgloss_dir=sparc
3623 ;;
3624esac
3625
6a789d5e 3626# Disable newlib and libgloss for various target OSes.
671aa708 3627case "${target}" in
6a789d5e
JM
3628 alpha*-dec-osf*)
3629 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3630 ;;
3631 i[3456789]86-*-linux*)
3632 # This section makes it possible to build newlib natively on linux.
3633 # If we are using a cross compiler then don't configure newlib.
3634 if test x${is_cross_compiler} != xno ; then
3635 noconfigdirs="$noconfigdirs target-newlib"
3636 fi
3637 noconfigdirs="$noconfigdirs target-libgloss"
3638 # If we are not using a cross compiler, do configure newlib.
3639 # Note however, that newlib will only be configured in this situation
3640 # if the --with-newlib option has been given, because otherwise
3641 # 'target-newlib' will appear in skipdirs.
3642 ;;
3643 i[3456789]86-*-rdos*)
3644 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3645 ;;
3646 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3647 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3648 ;;
3649 sparc-*-sunos4*)
3650 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3651 ;;
91dfef96
JM
3652 bpf-*-*)
3653 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3654 ;;
6a789d5e
JM
3655 *-*-aix*)
3656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3657 ;;
3658 *-*-beos*)
3659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3660 ;;
671aa708 3661 *-*-chorusos)
0036370f 3662 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3663 ;;
6a789d5e
JM
3664 *-*-dragonfly*)
3665 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3666 ;;
3667 *-*-freebsd*)
3668 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3669 ;;
3670 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3671 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3672 ;;
3673 *-*-lynxos*)
3674 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3675 ;;
3676 *-*-mingw*)
3677 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3678 ;;
3679 *-*-netbsd*)
3680 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3681 ;;
3682 *-*-netware*)
3683 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3684 ;;
3685 *-*-tpf*)
3686 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3687 ;;
3688 *-*-uclinux*)
3689 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3690 ;;
3691 *-*-vxworks*)
3692 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3693 ;;
3694esac
3695
3696case "${target}" in
3697 *-*-chorusos)
3698 ;;
3be96231
TG
3699 aarch64-*-darwin*)
3700 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3701 noconfigdirs="$noconfigdirs sim target-rda"
3702 ;;
7431c1a1
AS
3703 amdgcn*-*-*)
3704 ;;
3be96231
TG
3705 arm-*-darwin*)
3706 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3707 noconfigdirs="$noconfigdirs sim target-rda"
3708 ;;
75eeae1a 3709 powerpc-*-darwin*)
e1514c3f 3710 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3711 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3712 ;;
354ebf88
RW
3713 i[3456789]86-*-darwin*)
3714 noconfigdirs="$noconfigdirs ld gprof"
3715 noconfigdirs="$noconfigdirs sim target-rda"
3716 ;;
3717 x86_64-*-darwin[912]*)
0db3a858
TG
3718 noconfigdirs="$noconfigdirs ld gas gprof"
3719 noconfigdirs="$noconfigdirs sim target-rda"
3720 ;;
42c1cd8a
AT
3721 *-*-darwin*)
3722 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3723 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3724 ;;
8c6d158a 3725 *-*-dragonfly*)
8c6d158a 3726 ;;
c3f84f61 3727 *-*-freebsd*)
88252529 3728 if test "x$with_gmp" = x \
c0d0a722 3729 && ! test -d ${srcdir}/gmp \
6de9cd9a
DN
3730 && test -f /usr/local/include/gmp.h; then
3731 with_gmp=/usr/local
3732 fi
6de9cd9a 3733 ;;
ef4e7569
US
3734 *-*-kaos*)
3735 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3736 noconfigdirs="$noconfigdirs target-libgloss"
3737 ;;
671aa708 3738 *-*-netbsd*)
671aa708 3739 ;;
61fec9ff 3740 *-*-netware*)
671aa708 3741 ;;
fd6487af
JS
3742 *-*-phoenix*)
3743 noconfigdirs="$noconfigdirs target-libgloss"
3744 ;;
671aa708 3745 *-*-rtems*)
2909494b 3746 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3747 ;;
a8ba31f2
EC
3748 # The tpf target doesn't support gdb yet.
3749 *-*-tpf*)
6a789d5e 3750 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3751 ;;
5785c0ed 3752 *-*-uclinux*)
6a789d5e 3753 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3754 ;;
671aa708 3755 *-*-vxworks*)
671aa708
NN
3756 ;;
3757 alpha*-dec-osf*)
3758 # ld works, but does not support shared libraries.
671aa708 3759 # gas doesn't generate exception information.
6a789d5e 3760 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3761 ;;
3762 alpha*-*-*vms*)
2909494b 3763 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3764 ;;
671aa708
NN
3765 alpha*-*-*)
3766 # newlib is not 64 bit ready
2909494b 3767 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3768 ;;
91dfef96
JM
3769 bpf-*-*)
3770 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3771 ;;
671aa708 3772 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3773 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3774 ;;
2fd88f4f
AK
3775 arc*-*-*)
3776 noconfigdirs="$noconfigdirs sim"
3777 ;;
671aa708 3778 arm-*-pe*)
2909494b 3779 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3780 ;;
671aa708 3781 arm-*-riscix*)
0036370f 3782 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3783 ;;
b588ae30
GJL
3784 avr-*-*)
3785 if test x${with_avrlibc} != xno; then
3786 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3787 fi
3788 ;;
671aa708 3789 c4x-*-* | tic4x-*-*)
0036370f 3790 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3791 ;;
0036370f
JM
3792 tic54x-*-*)
3793 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3794 ;;
671aa708 3795 d10v-*-*)
0036370f 3796 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3797 ;;
3798 d30v-*-*)
0036370f 3799 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3800 ;;
3801 fr30-*-elf*)
2909494b 3802 noconfigdirs="$noconfigdirs gdb"
671aa708 3803 ;;
a05c2c75
L
3804 ft32-*-*)
3805 noconfigdirs="$noconfigdirs target-rda gprof"
3806 ;;
55f2d967 3807 moxie-*-*)
a05c2c75 3808 noconfigdirs="$noconfigdirs"
55f2d967 3809 ;;
671aa708 3810 h8300*-*-*)
2909494b 3811 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3812 ;;
3813 h8500-*-*)
0036370f 3814 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3815 ;;
a05c2c75
L
3816 hppa*64*-*-hpux*)
3817 noconfigdirs="$noconfigdirs gdb"
3818 ;;
4569f85e 3819 hppa*64*-*-linux*)
671aa708 3820 ;;
56f8587a 3821 hppa*-*-linux*)
3e732ba0 3822 ;;
671aa708 3823 hppa*-*-*elf* | \
671aa708
NN
3824 hppa*-*-lites* | \
3825 hppa*-*-openbsd* | \
3826 hppa*64*-*-*)
671aa708 3827 ;;
c03353e2 3828 hppa*-*-pro*)
c03353e2 3829 ;;
671aa708 3830 hppa*-*-*)
2909494b 3831 noconfigdirs="$noconfigdirs ld"
671aa708 3832 ;;
fb87ad5d 3833 i960-*-*)
0036370f 3834 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3835 ;;
671aa708
NN
3836 ia64*-*-elf*)
3837 # No gdb support yet.
1bcce263 3838 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3839 ;;
3840 ia64*-**-hpux*)
5a2931d1 3841 # No ld support yet.
a05c2c75 3842 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3843 ;;
52535a64 3844 ia64*-*-*vms*)
091fe9ca
TG
3845 # No ld support yet.
3846 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3847 ;;
ef4c4300 3848 i[3456789]86-w64-mingw*)
ef4c4300
KT
3849 ;;
3850 i[3456789]86-*-mingw*)
b91f0a41 3851 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3852 ;;
671aa708
NN
3853 *-*-cygwin*)
3854 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3855 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3856 # always build newlib if winsup directory is present.
b91f0a41 3857 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3858 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3859 elif test -d "$srcdir/newlib"; then
b91f0a41 3860 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3861 fi
1c710c3c 3862 ;;
f2a0e225 3863 i[3456789]86-*-pe)
ebb9f8b0 3864 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3865 ;;
f2a0e225 3866 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3867 # The linker does not yet know about weak symbols in COFF,
3868 # and is not configured to handle mixed ELF and COFF.
0036370f 3869 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3870 ;;
f2a0e225 3871 i[3456789]86-*-sco*)
0036370f 3872 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3873 ;;
fbdd5d87 3874 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3875 noconfigdirs="$noconfigdirs target-libgloss"
3876 ;;
f2a0e225 3877 i[3456789]86-*-sysv4*)
0036370f 3878 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3879 ;;
f2a0e225 3880 i[3456789]86-*-beos*)
6a789d5e 3881 noconfigdirs="$noconfigdirs gdb"
3aa83176 3882 ;;
d1f8db0c 3883 i[3456789]86-*-rdos*)
6a789d5e 3884 noconfigdirs="$noconfigdirs gdb"
c03353e2 3885 ;;
671aa708 3886 mmix-*-*)
2909494b 3887 noconfigdirs="$noconfigdirs gdb"
671aa708 3888 ;;
ab34901f 3889 mt-*-*)
79dd769c
AH
3890 noconfigdirs="$noconfigdirs sim"
3891 ;;
58b40a67
FT
3892 nfp-*-*)
3893 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3894 noconfigdirs="$noconfigdirs $target_libraries"
3895 ;;
e6cbe965
SC
3896 pdp11-*-*)
3897 noconfigdirs="$noconfigdirs gdb gprof"
3898 ;;
671aa708
NN
3899 powerpc-*-aix*)
3900 # copied from rs6000-*-* entry
6a789d5e 3901 noconfigdirs="$noconfigdirs gprof"
671aa708 3902 ;;
4569f85e 3903 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3904 target_configdirs="$target_configdirs target-winsup"
0036370f 3905 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3906 # always build newlib.
3907 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3908 ;;
3909 # This is temporary until we can link against shared libraries
3910 powerpcle-*-solaris*)
0036370f 3911 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3912 ;;
3913 powerpc-*-beos*)
6a789d5e 3914 noconfigdirs="$noconfigdirs gdb"
671aa708 3915 ;;
671aa708 3916 rs6000-*-lynxos*)
6a789d5e 3917 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3918 ;;
3919 rs6000-*-aix*)
6a789d5e 3920 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3921 ;;
3922 rs6000-*-*)
2909494b 3923 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3924 ;;
3925 m68k-apollo-*)
0036370f 3926 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3927 ;;
ca9fe997 3928 microblaze*)
2909494b 3929 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3930 ;;
d896cc4d 3931 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3932 if test x$with_newlib = xyes; then
3933 noconfigdirs="$noconfigdirs gprof"
3934 fi
d9dced13 3935 ;;
671aa708 3936 mips*-*-irix5*)
0036370f 3937 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3938 ;;
3939 mips*-*-irix6*)
2909494b 3940 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3941 ;;
671aa708 3942 mips*-*-bsd*)
bc98bcc4 3943 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3944 ;;
671aa708 3945 mips*-*-linux*)
671aa708 3946 ;;
bc98bcc4
JBG
3947 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3948 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3949 noconfigdirs="$noconfigdirs ld gas gprof"
3950 ;;
671aa708 3951 mips*-*-*)
2909494b 3952 noconfigdirs="$noconfigdirs gprof"
671aa708 3953 ;;
738f2522 3954 nvptx*-*-*)
738f2522
BS
3955 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3956 ;;
bc6d9014 3957 sh-*-*)
ea2002ba
CB
3958 case "${target}" in
3959 sh*-*-elf)
2909494b 3960 ;;
ea2002ba 3961 *)
2909494b 3962 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3963 esac
671aa708 3964 ;;
671aa708 3965 sparc-*-sunos4*)
6a789d5e 3966 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3967 use_gnu_ld=no
3968 fi
3969 ;;
b42f0d7e 3970 tic6x-*-*)
0d557ff8 3971 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3972 ;;
671aa708 3973 v810-*-*)
0036370f 3974 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3975 ;;
3976 vax-*-*)
2909494b 3977 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3978 ;;
1fc1d82e
MR
3979 wasm32-*-*)
3980 noconfigdirs="$noconfigdirs ld"
3981 ;;
c6c0594e 3982 loongarch*-*-linux*)
3983 ;;
3984 loongarch*-*-*)
3985 noconfigdirs="$noconfigdirs gprof"
3986 ;;
671aa708 3987esac
79c06341 3988
671aa708
NN
3989# If we aren't building newlib, then don't build libgloss, since libgloss
3990# depends upon some newlib header files.
3991case "${noconfigdirs}" in
3992 *target-libgloss*) ;;
3993 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3994esac
3995
671aa708 3996# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3997host_makefile_frag=/dev/null
3998if test -d ${srcdir}/config ; then
3999case "${host}" in
f2a0e225 4000 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
4001 host_makefile_frag="config/mh-djgpp"
4002 ;;
4003 *-cygwin*)
2a79c47f 4004
5213506e
RW
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4006$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 4007echo a >cygwin-cat-check
e25a8c82 4008if test `cat cygwin-cat-check` = a ; then
2a79c47f 4009 rm cygwin-cat-check
5213506e
RW
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4011$as_echo "yes" >&6; }
2a79c47f
NC
4012else
4013 rm cygwin-cat-check
5213506e
RW
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4015$as_echo "no" >&6; }
22e05272 4016 as_fn_error $? "The cat command does not ignore carriage return characters.
2a79c47f
NC
4017 Please either mount the build directory in binary mode or run the following
4018 commands before running any configure script:
4019set -o igncr
4020export SHELLOPTS
5213506e 4021 " "$LINENO" 5
2a79c47f
NC
4022fi
4023
671aa708
NN
4024 host_makefile_frag="config/mh-cygwin"
4025 ;;
c53a18d3 4026 *-mingw*)
1f5a6b84 4027 host_makefile_frag="config/mh-mingw"
95af8923 4028 ;;
cabb9d59 4029 alpha*-linux*)
13be44ed
UB
4030 host_makefile_frag="config/mh-alpha-linux"
4031 ;;
111eeb6e 4032 hppa*-hp-hpux*)
efd41714
PB
4033 host_makefile_frag="config/mh-pa"
4034 ;;
4035 hppa*-*)
4036 host_makefile_frag="config/mh-pa"
4037 ;;
54258e22 4038 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
d8ed14ce 4039 host_makefile_frag="config/mh-darwin"
be8fff81 4040 ;;
d19bca38
PB
4041 powerpc-*-aix*)
4042 host_makefile_frag="config/mh-ppc-aix"
4043 ;;
4044 rs6000-*-aix*)
4045 host_makefile_frag="config/mh-ppc-aix"
4046 ;;
671aa708
NN
4047esac
4048fi
4049
55ffb5ed 4050if test "${build}" != "${host}" ; then
0999159b
PB
4051 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4052 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4053 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
c841dc0a 4054 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
0999159b 4055 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3b5e8ee4 4056 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
0999159b 4057 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4058 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
b4c522fa 4059 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
0999159b
PB
4060 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4061 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4062 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4063 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4064 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4065 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4066else
4067 AR_FOR_BUILD="\$(AR)"
4068 AS_FOR_BUILD="\$(AS)"
fb0103e5 4069 CC_FOR_BUILD="\$(CC)"
0999159b 4070 CXX_FOR_BUILD="\$(CXX)"
3b5e8ee4 4071 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
0999159b 4072 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4073 GOC_FOR_BUILD="\$(GOC)"
b4c522fa 4074 GDC_FOR_BUILD="\$(GDC)"
0999159b
PB
4075 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4076 LD_FOR_BUILD="\$(LD)"
4077 NM_FOR_BUILD="\$(NM)"
4078 RANLIB_FOR_BUILD="\$(RANLIB)"
4079 WINDRES_FOR_BUILD="\$(WINDRES)"
4080 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4081fi
4082
4083ac_ext=c
1c710c3c
DJ
4084ac_cpp='$CPP $CPPFLAGS'
4085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087ac_compiler_gnu=$ac_cv_c_compiler_gnu
4088if test -n "$ac_tool_prefix"; then
4089 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4090set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4093if ${ac_cv_prog_CC+:} false; then :
5213506e 4094 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4095else
4096 if test -n "$CC"; then
4097 ac_cv_prog_CC="$CC" # Let the user override the test.
4098else
4099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100for as_dir in $PATH
4101do
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
5213506e 4104 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4106 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4108 break 2
4109 fi
4110done
5213506e
RW
4111 done
4112IFS=$as_save_IFS
1c710c3c
DJ
4113
4114fi
4115fi
4116CC=$ac_cv_prog_CC
4117if test -n "$CC"; then
5213506e
RW
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4119$as_echo "$CC" >&6; }
1c710c3c 4120else
5213506e
RW
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122$as_echo "no" >&6; }
1c710c3c
DJ
4123fi
4124
5213506e 4125
1c710c3c
DJ
4126fi
4127if test -z "$ac_cv_prog_CC"; then
4128 ac_ct_CC=$CC
fb0103e5
RG
4129 # Extract the first word of "gcc", so it can be a program name with args.
4130set dummy gcc; ac_word=$2
5213506e
RW
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4133if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4134 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4135else
4136 if test -n "$ac_ct_CC"; then
4137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4138else
4139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140for as_dir in $PATH
4141do
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
5213506e 4144 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4146 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4148 break 2
4149 fi
4150done
5213506e
RW
4151 done
4152IFS=$as_save_IFS
1c710c3c
DJ
4153
4154fi
4155fi
4156ac_ct_CC=$ac_cv_prog_ac_ct_CC
4157if test -n "$ac_ct_CC"; then
5213506e
RW
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4159$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4160else
5213506e
RW
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162$as_echo "no" >&6; }
1c710c3c
DJ
4163fi
4164
5213506e
RW
4165 if test "x$ac_ct_CC" = x; then
4166 CC=""
4167 else
4168 case $cross_compiling:$ac_tool_warned in
4169yes:)
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4172ac_tool_warned=yes ;;
4173esac
4174 CC=$ac_ct_CC
4175 fi
1c710c3c
DJ
4176else
4177 CC="$ac_cv_prog_CC"
4178fi
4179
4180if test -z "$CC"; then
5213506e
RW
4181 if test -n "$ac_tool_prefix"; then
4182 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4183set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4185$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4186if ${ac_cv_prog_CC+:} false; then :
5213506e 4187 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4188else
4189 if test -n "$CC"; then
4190 ac_cv_prog_CC="$CC" # Let the user override the test.
4191else
1c710c3c
DJ
4192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193for as_dir in $PATH
4194do
4195 IFS=$as_save_IFS
4196 test -z "$as_dir" && as_dir=.
5213506e 4197 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4199 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4201 break 2
4202 fi
4203done
5213506e
RW
4204 done
4205IFS=$as_save_IFS
1c710c3c 4206
0b0dc272 4207fi
0b0dc272 4208fi
1c710c3c 4209CC=$ac_cv_prog_CC
af71363e 4210if test -n "$CC"; then
5213506e
RW
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4212$as_echo "$CC" >&6; }
2aeb72e9 4213else
5213506e
RW
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215$as_echo "no" >&6; }
2aeb72e9
DD
4216fi
4217
2aeb72e9 4218
5213506e 4219 fi
1c710c3c 4220fi
55ffb5ed
NN
4221if test -z "$CC"; then
4222 # Extract the first word of "cc", so it can be a program name with args.
4223set dummy cc; ac_word=$2
5213506e
RW
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4226if ${ac_cv_prog_CC+:} false; then :
5213506e 4227 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4228else
4229 if test -n "$CC"; then
4230 ac_cv_prog_CC="$CC" # Let the user override the test.
4231else
0b0dc272 4232 ac_prog_rejected=no
1c710c3c
DJ
4233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234for as_dir in $PATH
4235do
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
5213506e 4238 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4240 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4241 ac_prog_rejected=yes
4242 continue
4243 fi
4244 ac_cv_prog_CC="cc"
5213506e 4245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4246 break 2
4247 fi
4248done
5213506e
RW
4249 done
4250IFS=$as_save_IFS
1c710c3c 4251
55ffb5ed
NN
4252if test $ac_prog_rejected = yes; then
4253 # We found a bogon in the path, so make sure we never use it.
4254 set dummy $ac_cv_prog_CC
4255 shift
1c710c3c 4256 if test $# != 0; then
55ffb5ed
NN
4257 # We chose a different compiler from the bogus one.
4258 # However, it has the same basename, so the bogon will be chosen
4259 # first if we set CC to just the basename; use the full file name.
4260 shift
1c710c3c 4261 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4262 fi
4263fi
4264fi
4265fi
1c710c3c 4266CC=$ac_cv_prog_CC
55ffb5ed 4267if test -n "$CC"; then
5213506e
RW
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4269$as_echo "$CC" >&6; }
55ffb5ed 4270else
5213506e
RW
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272$as_echo "no" >&6; }
55ffb5ed
NN
4273fi
4274
5213506e 4275
1c710c3c
DJ
4276fi
4277if test -z "$CC"; then
4278 if test -n "$ac_tool_prefix"; then
5213506e 4279 for ac_prog in cl.exe
1c710c3c
DJ
4280 do
4281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4282set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4285if ${ac_cv_prog_CC+:} false; then :
5213506e 4286 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4287else
4288 if test -n "$CC"; then
4289 ac_cv_prog_CC="$CC" # Let the user override the test.
4290else
1c710c3c
DJ
4291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292for as_dir in $PATH
4293do
4294 IFS=$as_save_IFS
4295 test -z "$as_dir" && as_dir=.
5213506e 4296 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4298 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4300 break 2
4301 fi
4302done
5213506e
RW
4303 done
4304IFS=$as_save_IFS
1c710c3c 4305
55ffb5ed
NN
4306fi
4307fi
1c710c3c 4308CC=$ac_cv_prog_CC
55ffb5ed 4309if test -n "$CC"; then
5213506e
RW
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4311$as_echo "$CC" >&6; }
a4b9e93e 4312else
5213506e
RW
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314$as_echo "no" >&6; }
fb0103e5 4315fi
af71363e 4316
5213506e 4317
1c710c3c
DJ
4318 test -n "$CC" && break
4319 done
af71363e 4320fi
1c710c3c
DJ
4321if test -z "$CC"; then
4322 ac_ct_CC=$CC
5213506e 4323 for ac_prog in cl.exe
1c710c3c
DJ
4324do
4325 # Extract the first word of "$ac_prog", so it can be a program name with args.
4326set dummy $ac_prog; ac_word=$2
5213506e
RW
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4329if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4330 $as_echo_n "(cached) " >&6
0b0dc272 4331else
1c710c3c
DJ
4332 if test -n "$ac_ct_CC"; then
4333 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4334else
1c710c3c
DJ
4335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336for as_dir in $PATH
4337do
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
5213506e 4340 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4342 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4344 break 2
4345 fi
4346done
5213506e
RW
4347 done
4348IFS=$as_save_IFS
1c710c3c 4349
af71363e
AS
4350fi
4351fi
1c710c3c
DJ
4352ac_ct_CC=$ac_cv_prog_ac_ct_CC
4353if test -n "$ac_ct_CC"; then
5213506e
RW
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4355$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4356else
5213506e
RW
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358$as_echo "no" >&6; }
af71363e 4359fi
0b0dc272 4360
5213506e 4361
1c710c3c
DJ
4362 test -n "$ac_ct_CC" && break
4363done
4364
5213506e
RW
4365 if test "x$ac_ct_CC" = x; then
4366 CC=""
4367 else
4368 case $cross_compiling:$ac_tool_warned in
4369yes:)
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4372ac_tool_warned=yes ;;
4373esac
4374 CC=$ac_ct_CC
4375 fi
1c710c3c
DJ
4376fi
4377
4378fi
4379
4380
5213506e
RW
4381test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4383as_fn_error $? "no acceptable C compiler found in \$PATH
4384See \`config.log' for more details" "$LINENO" 5; }
1c710c3c
DJ
4385
4386# Provide some information about the compiler.
5213506e
RW
4387$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4388set X $ac_compile
4389ac_compiler=$2
4390for ac_option in --version -v -V -qversion; do
4391 { { ac_try="$ac_compiler $ac_option >&5"
4392case "(($ac_try" in
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4395esac
4396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4397$as_echo "$ac_try_echo"; } >&5
4398 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4399 ac_status=$?
5213506e
RW
4400 if test -s conftest.err; then
4401 sed '10a\
4402... rest of stderr output deleted ...
4403 10q' conftest.err >conftest.er1
4404 cat conftest.er1 >&5
5213506e 4405 fi
22e05272 4406 rm -f conftest.er1 conftest.err
5213506e
RW
4407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4408 test $ac_status = 0; }
4409done
1c710c3c 4410
5213506e 4411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4412/* end confdefs.h. */
4413
4414int
4415main ()
4416{
4417
4418 ;
4419 return 0;
4420}
4421_ACEOF
4422ac_clean_files_save=$ac_clean_files
22e05272 4423ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1c710c3c
DJ
4424# Try to create an executable without -o first, disregard a.out.
4425# It will help us diagnose broken compilers, and finding out an intuition
4426# of exeext.
22e05272
JM
4427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4428$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4429ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4430
4431# The possible output files:
4432ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4433
4434ac_rmfiles=
4435for ac_file in $ac_files
4436do
4437 case $ac_file in
4438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4439 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4440 esac
4441done
4442rm -f $ac_rmfiles
4443
4444if { { ac_try="$ac_link_default"
4445case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4448esac
4449eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4450$as_echo "$ac_try_echo"; } >&5
4451 (eval "$ac_link_default") 2>&5
1c710c3c 4452 ac_status=$?
5213506e
RW
4453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4454 test $ac_status = 0; }; then :
4455 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4456# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4457# in a Makefile. We should not override ac_cv_exeext if it was cached,
4458# so that the user can short-circuit this test for compilers unknown to
4459# Autoconf.
4460for ac_file in $ac_files ''
1c710c3c
DJ
4461do
4462 test -f "$ac_file" || continue
4463 case $ac_file in
5213506e 4464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4465 ;;
4466 [ab].out )
4467 # We found the default executable, but exeext='' is most
4468 # certainly right.
4469 break;;
4470 *.* )
5213506e
RW
4471 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4472 then :; else
4473 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4474 fi
4475 # We set ac_cv_exeext here because the later test for it is not
4476 # safe: cross compilers may not add the suffix if given an `-o'
4477 # argument, so we may need to know it at that point already.
4478 # Even if this section looks crufty: it has the advantage of
4479 # actually working.
1c710c3c
DJ
4480 break;;
4481 * )
4482 break;;
4483 esac
4484done
5213506e
RW
4485test "$ac_cv_exeext" = no && ac_cv_exeext=
4486
1c710c3c 4487else
5213506e
RW
4488 ac_file=''
4489fi
5213506e 4490if test -z "$ac_file"; then :
22e05272
JM
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492$as_echo "no" >&6; }
4493$as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4494sed 's/^/| /' conftest.$ac_ext >&5
4495
5213506e
RW
4496{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4498as_fn_error 77 "C compiler cannot create executables
4499See \`config.log' for more details" "$LINENO" 5; }
4500else
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4502$as_echo "yes" >&6; }
1c710c3c 4503fi
22e05272
JM
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4505$as_echo_n "checking for C compiler default output file name... " >&6; }
4506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4507$as_echo "$ac_file" >&6; }
1c710c3c 4508ac_exeext=$ac_cv_exeext
1c710c3c 4509
22e05272 4510rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1c710c3c 4511ac_clean_files=$ac_clean_files_save
5213506e
RW
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4513$as_echo_n "checking for suffix of executables... " >&6; }
4514if { { ac_try="$ac_link"
4515case "(($ac_try" in
4516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517 *) ac_try_echo=$ac_try;;
4518esac
4519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4520$as_echo "$ac_try_echo"; } >&5
4521 (eval "$ac_link") 2>&5
1c710c3c 4522 ac_status=$?
5213506e
RW
4523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4524 test $ac_status = 0; }; then :
1c710c3c
DJ
4525 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4526# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4527# work properly (i.e., refer to `conftest.exe'), while it won't with
4528# `rm'.
4529for ac_file in conftest.exe conftest conftest.*; do
4530 test -f "$ac_file" || continue
4531 case $ac_file in
5213506e 4532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4533 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4534 break;;
4535 * ) break;;
4536 esac
4537done
af71363e 4538else
5213506e
RW
4539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4541as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4542See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4543fi
22e05272 4544rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4546$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4547
4548rm -f conftest.$ac_ext
4549EXEEXT=$ac_cv_exeext
4550ac_exeext=$EXEEXT
22e05272
JM
4551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552/* end confdefs.h. */
4553#include <stdio.h>
4554int
4555main ()
4556{
4557FILE *f = fopen ("conftest.out", "w");
4558 return ferror (f) || fclose (f) != 0;
4559
4560 ;
4561 return 0;
4562}
4563_ACEOF
4564ac_clean_files="$ac_clean_files conftest.out"
4565# Check that the compiler produces executables we can run. If not, either
4566# the compiler is broken, or we cross compile.
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4568$as_echo_n "checking whether we are cross compiling... " >&6; }
4569if test "$cross_compiling" != yes; then
4570 { { ac_try="$ac_link"
4571case "(($ac_try" in
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4574esac
4575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4576$as_echo "$ac_try_echo"; } >&5
4577 (eval "$ac_link") 2>&5
4578 ac_status=$?
4579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4580 test $ac_status = 0; }
4581 if { ac_try='./conftest$ac_cv_exeext'
4582 { { case "(($ac_try" in
4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584 *) ac_try_echo=$ac_try;;
4585esac
4586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4587$as_echo "$ac_try_echo"; } >&5
4588 (eval "$ac_try") 2>&5
4589 ac_status=$?
4590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4591 test $ac_status = 0; }; }; then
4592 cross_compiling=no
4593 else
4594 if test "$cross_compiling" = maybe; then
4595 cross_compiling=yes
4596 else
4597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4599as_fn_error $? "cannot run C compiled programs.
4600If you meant to cross compile, use \`--host'.
4601See \`config.log' for more details" "$LINENO" 5; }
4602 fi
4603 fi
4604fi
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4606$as_echo "$cross_compiling" >&6; }
4607
4608rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4609ac_clean_files=$ac_clean_files_save
5213506e
RW
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4611$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4612if ${ac_cv_objext+:} false; then :
5213506e 4613 $as_echo_n "(cached) " >&6
1c710c3c 4614else
5213506e 4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4616/* end confdefs.h. */
4617
4618int
4619main ()
4620{
4621
4622 ;
4623 return 0;
4624}
4625_ACEOF
4626rm -f conftest.o conftest.obj
5213506e
RW
4627if { { ac_try="$ac_compile"
4628case "(($ac_try" in
4629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630 *) ac_try_echo=$ac_try;;
4631esac
4632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4633$as_echo "$ac_try_echo"; } >&5
4634 (eval "$ac_compile") 2>&5
1c710c3c 4635 ac_status=$?
5213506e
RW
4636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4637 test $ac_status = 0; }; then :
4638 for ac_file in conftest.o conftest.obj conftest.*; do
4639 test -f "$ac_file" || continue;
1c710c3c 4640 case $ac_file in
5213506e 4641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4642 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4643 break;;
4644 esac
4645done
4646else
5213506e 4647 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4648sed 's/^/| /' conftest.$ac_ext >&5
4649
5213506e
RW
4650{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4652as_fn_error $? "cannot compute suffix of object files: cannot compile
4653See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4654fi
1c710c3c
DJ
4655rm -f conftest.$ac_cv_objext conftest.$ac_ext
4656fi
5213506e
RW
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4658$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4659OBJEXT=$ac_cv_objext
4660ac_objext=$OBJEXT
5213506e
RW
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4662$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4663if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4664 $as_echo_n "(cached) " >&6
1c710c3c 4665else
5213506e 4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4667/* end confdefs.h. */
4668
4669int
4670main ()
4671{
4672#ifndef __GNUC__
4673 choke me
4674#endif
4675
4676 ;
4677 return 0;
4678}
4679_ACEOF
5213506e 4680if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4681 ac_compiler_gnu=yes
4682else
5213506e 4683 ac_compiler_gnu=no
1c710c3c 4684fi
5213506e 4685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4686ac_cv_c_compiler_gnu=$ac_compiler_gnu
4687
4688fi
5213506e
RW
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4690$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4691if test $ac_compiler_gnu = yes; then
4692 GCC=yes
4693else
4694 GCC=
4695fi
1c710c3c
DJ
4696ac_test_CFLAGS=${CFLAGS+set}
4697ac_save_CFLAGS=$CFLAGS
5213506e
RW
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4699$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4700if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4701 $as_echo_n "(cached) " >&6
4702else
4703 ac_save_c_werror_flag=$ac_c_werror_flag
4704 ac_c_werror_flag=yes
4705 ac_cv_prog_cc_g=no
4706 CFLAGS="-g"
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4708/* end confdefs.h. */
4709
4710int
4711main ()
4712{
4713
4714 ;
4715 return 0;
4716}
4717_ACEOF
5213506e 4718if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4719 ac_cv_prog_cc_g=yes
4720else
5213506e
RW
4721 CFLAGS=""
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723/* end confdefs.h. */
4724
4725int
4726main ()
4727{
4728
4729 ;
4730 return 0;
4731}
4732_ACEOF
4733if ac_fn_c_try_compile "$LINENO"; then :
4734
4735else
4736 ac_c_werror_flag=$ac_save_c_werror_flag
4737 CFLAGS="-g"
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739/* end confdefs.h. */
af71363e 4740
5213506e
RW
4741int
4742main ()
4743{
4744
4745 ;
4746 return 0;
4747}
4748_ACEOF
4749if ac_fn_c_try_compile "$LINENO"; then :
4750 ac_cv_prog_cc_g=yes
4751fi
4752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4753fi
5213506e 4754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4755fi
5213506e
RW
4756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757 ac_c_werror_flag=$ac_save_c_werror_flag
4758fi
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4760$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4761if test "$ac_test_CFLAGS" = set; then
1c710c3c 4762 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4763elif test $ac_cv_prog_cc_g = yes; then
4764 if test "$GCC" = yes; then
4765 CFLAGS="-g -O2"
4766 else
4767 CFLAGS="-g"
4768 fi
4769else
4770 if test "$GCC" = yes; then
4771 CFLAGS="-O2"
4772 else
4773 CFLAGS=
4774 fi
4775fi
5213506e
RW
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4777$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4778if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4779 $as_echo_n "(cached) " >&6
1c710c3c 4780else
5213506e 4781 ac_cv_prog_cc_c89=no
1c710c3c 4782ac_save_CC=$CC
5213506e 4783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4784/* end confdefs.h. */
4785#include <stdarg.h>
4786#include <stdio.h>
22e05272 4787struct stat;
1c710c3c
DJ
4788/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4789struct buf { int x; };
4790FILE * (*rcsopen) (struct buf *, struct stat *, int);
4791static char *e (p, i)
4792 char **p;
4793 int i;
4794{
4795 return p[i];
4796}
4797static char *f (char * (*g) (char **, int), char **p, ...)
4798{
4799 char *s;
4800 va_list v;
4801 va_start (v,p);
4802 s = g (p, va_arg (v,int));
4803 va_end (v);
4804 return s;
4805}
4806
4807/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4808 function prototypes and stuff, but not '\xHH' hex character constants.
4809 These don't provoke an error unfortunately, instead are silently treated
5213506e 4810 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4811 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4812 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4813 that's true only with -std. */
1c710c3c
DJ
4814int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4815
5213506e
RW
4816/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4817 inside strings and character constants. */
4818#define FOO(x) 'x'
4819int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4820
1c710c3c
DJ
4821int test (int i, double x);
4822struct s1 {int (*f) (int a);};
4823struct s2 {int (*f) (double a);};
4824int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4825int argc;
4826char **argv;
4827int
4828main ()
4829{
4830return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4831 ;
4832 return 0;
4833}
4834_ACEOF
5213506e
RW
4835for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4836 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4837do
4838 CC="$ac_save_CC $ac_arg"
5213506e
RW
4839 if ac_fn_c_try_compile "$LINENO"; then :
4840 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4841fi
5213506e
RW
4842rm -f core conftest.err conftest.$ac_objext
4843 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4844done
5213506e 4845rm -f conftest.$ac_ext
1c710c3c
DJ
4846CC=$ac_save_CC
4847
4848fi
5213506e
RW
4849# AC_CACHE_VAL
4850case "x$ac_cv_prog_cc_c89" in
4851 x)
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4853$as_echo "none needed" >&6; } ;;
4854 xno)
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4856$as_echo "unsupported" >&6; } ;;
1c710c3c 4857 *)
5213506e
RW
4858 CC="$CC $ac_cv_prog_cc_c89"
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4860$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4861esac
5213506e 4862if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4863
2aeb72e9
DD
4864fi
4865
2aeb72e9
DD
4866ac_ext=c
4867ac_cpp='$CPP $CPPFLAGS'
4868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4870ac_compiler_gnu=$ac_cv_c_compiler_gnu
4871
91743432
NC
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4873$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4874if ${ac_cv_prog_cc_c99+:} false; then :
4875 $as_echo_n "(cached) " >&6
4876else
4877 ac_cv_prog_cc_c99=no
4878ac_save_CC=$CC
4879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880/* end confdefs.h. */
4881#include <stdarg.h>
4882#include <stdbool.h>
4883#include <stdlib.h>
4884#include <wchar.h>
4885#include <stdio.h>
4886
4887// Check varargs macros. These examples are taken from C99 6.10.3.5.
4888#define debug(...) fprintf (stderr, __VA_ARGS__)
4889#define showlist(...) puts (#__VA_ARGS__)
4890#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4891static void
4892test_varargs_macros (void)
4893{
4894 int x = 1234;
4895 int y = 5678;
4896 debug ("Flag");
4897 debug ("X = %d\n", x);
4898 showlist (The first, second, and third items.);
4899 report (x>y, "x is %d but y is %d", x, y);
4900}
4901
4902// Check long long types.
4903#define BIG64 18446744073709551615ull
4904#define BIG32 4294967295ul
4905#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4906#if !BIG_OK
4907 your preprocessor is broken;
4908#endif
4909#if BIG_OK
4910#else
4911 your preprocessor is broken;
4912#endif
4913static long long int bignum = -9223372036854775807LL;
4914static unsigned long long int ubignum = BIG64;
4915
4916struct incomplete_array
4917{
4918 int datasize;
4919 double data[];
4920};
4921
4922struct named_init {
4923 int number;
4924 const wchar_t *name;
4925 double average;
4926};
4927
4928typedef const char *ccp;
4929
4930static inline int
4931test_restrict (ccp restrict text)
4932{
4933 // See if C++-style comments work.
4934 // Iterate through items via the restricted pointer.
4935 // Also check for declarations in for loops.
4936 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4937 continue;
4938 return 0;
4939}
4940
4941// Check varargs and va_copy.
4942static void
4943test_varargs (const char *format, ...)
4944{
4945 va_list args;
4946 va_start (args, format);
4947 va_list args_copy;
4948 va_copy (args_copy, args);
4949
4950 const char *str;
4951 int number;
4952 float fnumber;
4953
4954 while (*format)
4955 {
4956 switch (*format++)
4957 {
4958 case 's': // string
4959 str = va_arg (args_copy, const char *);
4960 break;
4961 case 'd': // int
4962 number = va_arg (args_copy, int);
4963 break;
4964 case 'f': // float
4965 fnumber = va_arg (args_copy, double);
4966 break;
4967 default:
4968 break;
4969 }
4970 }
4971 va_end (args_copy);
4972 va_end (args);
4973}
4974
4975int
4976main ()
4977{
4978
4979 // Check bool.
4980 _Bool success = false;
4981
4982 // Check restrict.
4983 if (test_restrict ("String literal") == 0)
4984 success = true;
4985 char *restrict newvar = "Another string";
4986
4987 // Check varargs.
4988 test_varargs ("s, d' f .", "string", 65, 34.234);
4989 test_varargs_macros ();
4990
4991 // Check flexible array members.
4992 struct incomplete_array *ia =
4993 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4994 ia->datasize = 10;
4995 for (int i = 0; i < ia->datasize; ++i)
4996 ia->data[i] = i * 1.234;
4997
4998 // Check named initializers.
4999 struct named_init ni = {
5000 .number = 34,
5001 .name = L"Test wide string",
5002 .average = 543.34343,
5003 };
5004
5005 ni.number = 58;
5006
5007 int dynamic_array[ni.number];
5008 dynamic_array[ni.number - 1] = 543;
5009
5010 // work around unused variable warnings
5011 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5012 || dynamic_array[ni.number - 1] != 543);
5013
5014 ;
5015 return 0;
5016}
5017_ACEOF
5018for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5019do
5020 CC="$ac_save_CC $ac_arg"
5021 if ac_fn_c_try_compile "$LINENO"; then :
5022 ac_cv_prog_cc_c99=$ac_arg
5023fi
5024rm -f core conftest.err conftest.$ac_objext
5025 test "x$ac_cv_prog_cc_c99" != "xno" && break
5026done
5027rm -f conftest.$ac_ext
5028CC=$ac_save_CC
5029
5030fi
5031# AC_CACHE_VAL
5032case "x$ac_cv_prog_cc_c99" in
5033 x)
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5035$as_echo "none needed" >&6; } ;;
5036 xno)
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5038$as_echo "unsupported" >&6; } ;;
5039 *)
5040 CC="$CC $ac_cv_prog_cc_c99"
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5042$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5043esac
5044if test "x$ac_cv_prog_cc_c99" != xno; then :
5045
5046fi
5047
5048
5213506e 5049ac_ext=cpp
2aeb72e9
DD
5050ac_cpp='$CXXCPP $CPPFLAGS'
5051ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5052ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5053ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
5054if test -z "$CXX"; then
5055 if test -n "$CCC"; then
5056 CXX=$CCC
5057 else
5058 if test -n "$ac_tool_prefix"; then
5059 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
5060 do
5061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5062set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5065if ${ac_cv_prog_CXX+:} false; then :
5213506e 5066 $as_echo_n "(cached) " >&6
2aeb72e9
DD
5067else
5068 if test -n "$CXX"; then
5069 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5070else
5071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072for as_dir in $PATH
5073do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5213506e 5076 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2aeb72e9 5078 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
5080 break 2
5081 fi
5082done
5213506e
RW
5083 done
5084IFS=$as_save_IFS
55ffb5ed 5085
c3a86da9
DJ
5086fi
5087fi
5088CXX=$ac_cv_prog_CXX
5089if test -n "$CXX"; then
5213506e
RW
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5091$as_echo "$CXX" >&6; }
c3a86da9 5092else
5213506e
RW
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094$as_echo "no" >&6; }
c3a86da9
DJ
5095fi
5096
5213506e 5097
c3a86da9
DJ
5098 test -n "$CXX" && break
5099 done
5100fi
5101if test -z "$CXX"; then
5102 ac_ct_CXX=$CXX
5213506e 5103 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
5104do
5105 # Extract the first word of "$ac_prog", so it can be a program name with args.
5106set dummy $ac_prog; ac_word=$2
5213506e
RW
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5109if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5213506e 5110 $as_echo_n "(cached) " >&6
c3a86da9
DJ
5111else
5112 if test -n "$ac_ct_CXX"; then
5113 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5114else
5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116for as_dir in $PATH
5117do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5213506e 5120 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9 5122 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
5124 break 2
5125 fi
5126done
5213506e
RW
5127 done
5128IFS=$as_save_IFS
c3a86da9
DJ
5129
5130fi
5131fi
5132ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5133if test -n "$ac_ct_CXX"; then
5213506e
RW
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5135$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 5136else
5213506e
RW
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138$as_echo "no" >&6; }
c3a86da9
DJ
5139fi
5140
5213506e 5141
c3a86da9
DJ
5142 test -n "$ac_ct_CXX" && break
5143done
c3a86da9 5144
5213506e
RW
5145 if test "x$ac_ct_CXX" = x; then
5146 CXX="g++"
5147 else
5148 case $cross_compiling:$ac_tool_warned in
5149yes:)
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5152ac_tool_warned=yes ;;
5153esac
5154 CXX=$ac_ct_CXX
5155 fi
c3a86da9
DJ
5156fi
5157
5213506e
RW
5158 fi
5159fi
c3a86da9 5160# Provide some information about the compiler.
5213506e
RW
5161$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5162set X $ac_compile
5163ac_compiler=$2
5164for ac_option in --version -v -V -qversion; do
5165 { { ac_try="$ac_compiler $ac_option >&5"
5166case "(($ac_try" in
5167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168 *) ac_try_echo=$ac_try;;
5169esac
5170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5171$as_echo "$ac_try_echo"; } >&5
5172 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 5173 ac_status=$?
5213506e
RW
5174 if test -s conftest.err; then
5175 sed '10a\
5176... rest of stderr output deleted ...
5177 10q' conftest.err >conftest.er1
5178 cat conftest.er1 >&5
5213506e 5179 fi
22e05272 5180 rm -f conftest.er1 conftest.err
5213506e
RW
5181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5182 test $ac_status = 0; }
5183done
c3a86da9 5184
5213506e
RW
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5186$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5187if ${ac_cv_cxx_compiler_gnu+:} false; then :
5213506e 5188 $as_echo_n "(cached) " >&6
c3a86da9 5189else
5213506e 5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5191/* end confdefs.h. */
5192
5193int
5194main ()
5195{
5196#ifndef __GNUC__
5197 choke me
5198#endif
5199
5200 ;
5201 return 0;
5202}
5203_ACEOF
5213506e 5204if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5205 ac_compiler_gnu=yes
5206else
5213506e 5207 ac_compiler_gnu=no
c3a86da9 5208fi
5213506e 5209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
5210ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5211
5212fi
5213506e
RW
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5214$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5215if test $ac_compiler_gnu = yes; then
5216 GXX=yes
5217else
5218 GXX=
5219fi
c3a86da9
DJ
5220ac_test_CXXFLAGS=${CXXFLAGS+set}
5221ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5223$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5224if ${ac_cv_prog_cxx_g+:} false; then :
5213506e
RW
5225 $as_echo_n "(cached) " >&6
5226else
5227 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5228 ac_cxx_werror_flag=yes
5229 ac_cv_prog_cxx_g=no
5230 CXXFLAGS="-g"
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5232/* end confdefs.h. */
5233
5234int
5235main ()
5236{
5237
5238 ;
5239 return 0;
5240}
5241_ACEOF
5213506e 5242if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5243 ac_cv_prog_cxx_g=yes
5244else
5213506e
RW
5245 CXXFLAGS=""
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5247/* end confdefs.h. */
5213506e 5248
c3a86da9
DJ
5249int
5250main ()
5251{
5213506e 5252
c3a86da9
DJ
5253 ;
5254 return 0;
5255}
5256_ACEOF
5213506e 5257if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5258
5213506e
RW
5259else
5260 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5261 CXXFLAGS="-g"
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5263/* end confdefs.h. */
5213506e 5264
c3a86da9
DJ
5265int
5266main ()
5267{
5213506e 5268
c3a86da9
DJ
5269 ;
5270 return 0;
5271}
5272_ACEOF
5213506e
RW
5273if ac_fn_cxx_try_compile "$LINENO"; then :
5274 ac_cv_prog_cxx_g=yes
11a67599 5275fi
5213506e
RW
5276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277fi
5278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279fi
5280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5282fi
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5284$as_echo "$ac_cv_prog_cxx_g" >&6; }
5285if test "$ac_test_CXXFLAGS" = set; then
5286 CXXFLAGS=$ac_save_CXXFLAGS
5287elif test $ac_cv_prog_cxx_g = yes; then
5288 if test "$GXX" = yes; then
5289 CXXFLAGS="-g -O2"
5290 else
5291 CXXFLAGS="-g"
5292 fi
5293else
5294 if test "$GXX" = yes; then
5295 CXXFLAGS="-O2"
5296 else
5297 CXXFLAGS=
5298 fi
c3a86da9 5299fi
c3a86da9
DJ
5300ac_ext=c
5301ac_cpp='$CPP $CPPFLAGS'
5302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304ac_compiler_gnu=$ac_cv_c_compiler_gnu
5305
5306
5307# We must set the default linker to the linker used by gcc for the correct
5308# operation of libtool. If LD is not defined and we are using gcc, try to
5309# set the LD default to the ld used by gcc.
5310if test -z "$LD"; then
5311 if test "$GCC" = yes; then
5312 case $build in
5313 *-*-mingw*)
5314 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5315 *)
5316 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5317 esac
5318 case $gcc_prog_ld in
5319 # Accept absolute paths.
5320 [\\/]* | [A-Za-z]:[\\/]*)
5321 LD="$gcc_prog_ld" ;;
5322 esac
5323 fi
23f6b2f9
PB
5324fi
5325
0b21f5d3
EB
5326# Check whether -static-libstdc++ -static-libgcc is supported.
5327have_static_libs=no
5328if test "$GCC" = yes; then
5329 saved_LDFLAGS="$LDFLAGS"
5330
5331 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5333$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5334 ac_ext=cpp
5335ac_cpp='$CXXCPP $CPPFLAGS'
5336ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5337ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5338ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5339
5340
5341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342/* end confdefs.h. */
0d6414b2
EB
5343
5344#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5345#error -static-libstdc++ not implemented
5346#endif
0b21f5d3
EB
5347int main() {}
5348_ACEOF
5349if ac_fn_cxx_try_link "$LINENO"; then :
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351$as_echo "yes" >&6; }; have_static_libs=yes
5352else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354$as_echo "no" >&6; }
5355fi
5356rm -f core conftest.err conftest.$ac_objext \
5357 conftest$ac_exeext conftest.$ac_ext
5358 ac_ext=c
5359ac_cpp='$CPP $CPPFLAGS'
5360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5362ac_compiler_gnu=$ac_cv_c_compiler_gnu
5363
5364
5365 LDFLAGS="$saved_LDFLAGS"
5366fi
5367
23f6b2f9
PB
5368
5369
55ffb5ed 5370
1c710c3c
DJ
5371if test -n "$ac_tool_prefix"; then
5372 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5373set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5375$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5376if ${ac_cv_prog_GNATBIND+:} false; then :
5213506e 5377 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5378else
5379 if test -n "$GNATBIND"; then
5380 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5381else
1c710c3c
DJ
5382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383for as_dir in $PATH
5384do
5385 IFS=$as_save_IFS
5386 test -z "$as_dir" && as_dir=.
5213506e 5387 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5389 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5391 break 2
5392 fi
5393done
5213506e
RW
5394 done
5395IFS=$as_save_IFS
1c710c3c 5396
55ffb5ed
NN
5397fi
5398fi
1c710c3c 5399GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5400if test -n "$GNATBIND"; then
5213506e
RW
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5402$as_echo "$GNATBIND" >&6; }
55ffb5ed 5403else
5213506e
RW
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405$as_echo "no" >&6; }
55ffb5ed
NN
5406fi
5407
5213506e 5408
1c710c3c 5409fi
55ffb5ed 5410if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5411 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5412 # Extract the first word of "gnatbind", so it can be a program name with args.
5413set dummy gnatbind; ac_word=$2
5213506e
RW
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5416if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5213506e 5417 $as_echo_n "(cached) " >&6
55ffb5ed 5418else
1c710c3c
DJ
5419 if test -n "$ac_ct_GNATBIND"; then
5420 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5421else
1c710c3c
DJ
5422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423for as_dir in $PATH
5424do
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
5213506e 5427 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5429 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5431 break 2
5432 fi
5433done
5213506e
RW
5434 done
5435IFS=$as_save_IFS
1c710c3c 5436
55ffb5ed
NN
5437fi
5438fi
1c710c3c
DJ
5439ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5440if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5442$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5443else
5213506e
RW
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445$as_echo "no" >&6; }
55ffb5ed
NN
5446fi
5447
5213506e
RW
5448 if test "x$ac_ct_GNATBIND" = x; then
5449 GNATBIND="no"
5450 else
5451 case $cross_compiling:$ac_tool_warned in
5452yes:)
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5455ac_tool_warned=yes ;;
5456esac
5457 GNATBIND=$ac_ct_GNATBIND
5458 fi
55ffb5ed 5459else
1c710c3c 5460 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5461fi
5462
1c710c3c
DJ
5463if test -n "$ac_tool_prefix"; then
5464 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5465set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5468if ${ac_cv_prog_GNATMAKE+:} false; then :
5213506e 5469 $as_echo_n "(cached) " >&6
5305be7e
RG
5470else
5471 if test -n "$GNATMAKE"; then
5472 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5473else
1c710c3c
DJ
5474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475for as_dir in $PATH
5476do
5477 IFS=$as_save_IFS
5478 test -z "$as_dir" && as_dir=.
5213506e 5479 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5481 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5483 break 2
5484 fi
5485done
5213506e
RW
5486 done
5487IFS=$as_save_IFS
1c710c3c 5488
5305be7e
RG
5489fi
5490fi
1c710c3c 5491GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5492if test -n "$GNATMAKE"; then
5213506e
RW
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5494$as_echo "$GNATMAKE" >&6; }
5305be7e 5495else
5213506e
RW
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497$as_echo "no" >&6; }
5305be7e
RG
5498fi
5499
5213506e 5500
1c710c3c 5501fi
5305be7e 5502if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5503 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5504 # Extract the first word of "gnatmake", so it can be a program name with args.
5505set dummy gnatmake; ac_word=$2
5213506e
RW
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5508if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5213506e 5509 $as_echo_n "(cached) " >&6
5305be7e 5510else
1c710c3c
DJ
5511 if test -n "$ac_ct_GNATMAKE"; then
5512 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5513else
1c710c3c
DJ
5514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515for as_dir in $PATH
5516do
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5213506e 5519 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5521 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5523 break 2
5524 fi
5525done
5213506e
RW
5526 done
5527IFS=$as_save_IFS
1c710c3c 5528
5305be7e
RG
5529fi
5530fi
1c710c3c
DJ
5531ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5532if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5534$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5535else
5213506e
RW
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537$as_echo "no" >&6; }
5305be7e
RG
5538fi
5539
5213506e
RW
5540 if test "x$ac_ct_GNATMAKE" = x; then
5541 GNATMAKE="no"
5542 else
5543 case $cross_compiling:$ac_tool_warned in
5544yes:)
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5547ac_tool_warned=yes ;;
5548esac
5549 GNATMAKE=$ac_ct_GNATMAKE
5550 fi
5305be7e 5551else
1c710c3c 5552 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5553fi
5554
71f068a9
RS
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5556$as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
22e05272 5557if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5213506e 5558 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5559else
5560 cat >conftest.adb <<EOF
71f068a9
RS
5561pragma Warnings (Off);
5562with System.CRTL;
5563pragma Warnings (On);
5564use type System.CRTL.int64;
55ffb5ed
NN
5565procedure conftest is begin null; end conftest;
5566EOF
5567acx_cv_cc_gcc_supports_ada=no
5568# There is a bug in old released versions of GCC which causes the
5569# driver to exit successfully when the appropriate language module
5570# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5571# Therefore we must check for the error message as well as an
5572# unsuccessful exit.
1db673ca
RO
5573# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5574# given a .adb file, but produce no object file. So we must check
5575# if an object file was really produced to guard against this.
55ffb5ed 5576errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5577if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5578 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5579fi
5580rm -f conftest.*
5581fi
5213506e
RW
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5583$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5584
7cb62ef1 5585if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5586 have_gnat=yes
5587else
5588 have_gnat=no
5589fi
5590
5fee5ec3
IB
5591
5592
5593if test -n "$ac_tool_prefix"; then
5594 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5595set dummy ${ac_tool_prefix}gdc; ac_word=$2
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597$as_echo_n "checking for $ac_word... " >&6; }
5598if ${ac_cv_prog_GDC+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600else
5601 if test -n "$GDC"; then
5602 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5603else
5604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605for as_dir in $PATH
5606do
5607 IFS=$as_save_IFS
5608 test -z "$as_dir" && as_dir=.
5609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 break 2
5614 fi
5615done
5616 done
5617IFS=$as_save_IFS
5618
5619fi
5620fi
5621GDC=$ac_cv_prog_GDC
5622if test -n "$GDC"; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5624$as_echo "$GDC" >&6; }
5625else
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627$as_echo "no" >&6; }
5628fi
5629
5630
5631fi
5632if test -z "$ac_cv_prog_GDC"; then
5633 ac_ct_GDC=$GDC
5634 # Extract the first word of "gdc", so it can be a program name with args.
5635set dummy gdc; ac_word=$2
5636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5637$as_echo_n "checking for $ac_word... " >&6; }
5638if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5639 $as_echo_n "(cached) " >&6
5640else
5641 if test -n "$ac_ct_GDC"; then
5642 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5643else
5644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645for as_dir in $PATH
5646do
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5651 ac_cv_prog_ac_ct_GDC="gdc"
5652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 break 2
5654 fi
5655done
5656 done
5657IFS=$as_save_IFS
5658
5659fi
5660fi
5661ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5662if test -n "$ac_ct_GDC"; then
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5664$as_echo "$ac_ct_GDC" >&6; }
5665else
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667$as_echo "no" >&6; }
5668fi
5669
5670 if test "x$ac_ct_GDC" = x; then
5671 GDC="no"
5672 else
5673 case $cross_compiling:$ac_tool_warned in
5674yes:)
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5677ac_tool_warned=yes ;;
5678esac
5679 GDC=$ac_ct_GDC
5680 fi
5681else
5682 GDC="$ac_cv_prog_GDC"
5683fi
5684
7c6ae994
IB
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5686$as_echo_n "checking whether the D compiler works... " >&6; }
5687if ${acx_cv_d_compiler_works+:} false; then :
5688 $as_echo_n "(cached) " >&6
5689else
5690 cat >conftest.d <<EOF
5691module conftest; int main() { return 0; }
5692EOF
5693acx_cv_d_compiler_works=no
5fee5ec3 5694if test "x$GDC" != xno; then
7c6ae994
IB
5695 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5696 if test x"$errors" = x && test -f conftest.$ac_objext; then
5697 acx_cv_d_compiler_works=yes
5698 fi
5699 rm -f conftest.*
5700fi
5701fi
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5703$as_echo "$acx_cv_d_compiler_works" >&6; }
5704if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5fee5ec3
IB
5705 have_gdc=yes
5706else
5707 have_gdc=no
5708fi
5709
5213506e
RW
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5711$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
22e05272 5712if ${gcc_cv_prog_cmp_skip+:} false; then :
5213506e 5713 $as_echo_n "(cached) " >&6
a76494aa
PB
5714else
5715 echo abfoo >t1
5716 echo cdfoo >t2
b55e6680 5717 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5718 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5719 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5720 :
5721 else
5722 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5723 fi
5724 fi
a76494aa
PB
5725 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5726 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5727 :
a76494aa
PB
5728 else
5729 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5730 fi
5731 fi
5732 rm t1 t2
5733
5734fi
5213506e
RW
5735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5736$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5737do_compare="$gcc_cv_prog_cmp_skip"
5738
5739
55ffb5ed 5740
ff3ac0f4
ILT
5741# Check whether --enable-bootstrap was given.
5742if test "${enable_bootstrap+set}" = set; then :
5743 enableval=$enable_bootstrap;
5744else
5745 enable_bootstrap=default
5746fi
5747
5748
5749# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5750if test -r $srcdir/gcc/configure; then
5751 have_compiler=yes
5752else
5753 have_compiler=no
5754fi
ff3ac0f4
ILT
5755
5756case "$have_compiler:$host:$target:$enable_bootstrap" in
5757 *:*:*:no) ;;
5758
5759 # Default behavior. Enable bootstrap if we have a compiler
5760 # and we are in a native configuration.
5761 yes:$build:$build:default)
5762 enable_bootstrap=yes ;;
5763
5764 *:*:*:default)
5765 enable_bootstrap=no ;;
5766
5767 # We have a compiler and we are in a native configuration, bootstrap is ok
5768 yes:$build:$build:yes)
5769 ;;
5770
5771 # Other configurations, but we have a compiler. Assume the user knows
5772 # what he's doing.
5773 yes:*:*:yes)
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5775$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5776 ;;
5777
5778 # No compiler: if they passed --enable-bootstrap explicitly, fail
5779 no:*:*:yes)
22e05272 5780 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ff3ac0f4
ILT
5781
5782 # Fail if wrong command line
5783 *)
22e05272 5784 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ff3ac0f4
ILT
5785 ;;
5786esac
5787
5329b59a 5788# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
ffac9597
JM
5789# C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5790# require C++11 (or higher).
46070488 5791if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5329b59a 5792 CXX="$CXX -std=c++11"
ffac9597
JM
5793elif test "$have_compiler" = yes; then
5794 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5795 ac_ext=cpp
5796ac_cpp='$CXXCPP $CPPFLAGS'
5797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5800 ac_success=no
5801
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5803$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5804if ${ax_cv_cxx_compile_cxx11+:} false; then :
5805 $as_echo_n "(cached) " >&6
5806else
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808/* end confdefs.h. */
5809
5810
5811// If the compiler admits that it is not ready for C++11, why torture it?
5812// Hopefully, this will speed up the test.
5813
5814#ifndef __cplusplus
5815
5816#error "This is not a C++ compiler"
5817
5818#elif __cplusplus < 201103L
5819
5820#error "This is not a C++11 compiler"
5821
5822#else
5823
5824namespace cxx11
5825{
5826
5827 namespace test_static_assert
5828 {
5829
5830 template <typename T>
5831 struct check
5832 {
5833 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5834 };
5835
5836 }
5837
5838 namespace test_final_override
5839 {
5840
5841 struct Base
5842 {
5843 virtual ~Base() {}
5844 virtual void f() {}
5845 };
5846
5847 struct Derived : public Base
5848 {
5849 virtual ~Derived() override {}
5850 virtual void f() override {}
5851 };
5852
5853 }
5854
5855 namespace test_double_right_angle_brackets
5856 {
5857
5858 template < typename T >
5859 struct check {};
5860
5861 typedef check<void> single_type;
5862 typedef check<check<void>> double_type;
5863 typedef check<check<check<void>>> triple_type;
5864 typedef check<check<check<check<void>>>> quadruple_type;
5865
5866 }
5867
5868 namespace test_decltype
5869 {
5870
5871 int
5872 f()
5873 {
5874 int a = 1;
5875 decltype(a) b = 2;
5876 return a + b;
5877 }
5878
5879 }
5880
5881 namespace test_type_deduction
5882 {
5883
5884 template < typename T1, typename T2 >
5885 struct is_same
5886 {
5887 static const bool value = false;
5888 };
5889
5890 template < typename T >
5891 struct is_same<T, T>
5892 {
5893 static const bool value = true;
5894 };
5895
5896 template < typename T1, typename T2 >
5897 auto
5898 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5899 {
5900 return a1 + a2;
5901 }
5902
5903 int
5904 test(const int c, volatile int v)
5905 {
5906 static_assert(is_same<int, decltype(0)>::value == true, "");
5907 static_assert(is_same<int, decltype(c)>::value == false, "");
5908 static_assert(is_same<int, decltype(v)>::value == false, "");
5909 auto ac = c;
5910 auto av = v;
5911 auto sumi = ac + av + 'x';
5912 auto sumf = ac + av + 1.0;
5913 static_assert(is_same<int, decltype(ac)>::value == true, "");
5914 static_assert(is_same<int, decltype(av)>::value == true, "");
5915 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5916 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5917 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5918 return (sumf > 0.0) ? sumi : add(c, v);
5919 }
5920
5921 }
5922
5923 namespace test_noexcept
5924 {
5925
5926 int f() { return 0; }
5927 int g() noexcept { return 0; }
5928
5929 static_assert(noexcept(f()) == false, "");
5930 static_assert(noexcept(g()) == true, "");
5931
5932 }
5933
5934 namespace test_constexpr
5935 {
5936
5937 template < typename CharT >
5938 unsigned long constexpr
5939 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5940 {
5941 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5942 }
5943
5944 template < typename CharT >
5945 unsigned long constexpr
5946 strlen_c(const CharT *const s) noexcept
5947 {
5948 return strlen_c_r(s, 0UL);
5949 }
5950
5951 static_assert(strlen_c("") == 0UL, "");
5952 static_assert(strlen_c("1") == 1UL, "");
5953 static_assert(strlen_c("example") == 7UL, "");
5954 static_assert(strlen_c("another\0example") == 7UL, "");
5955
5956 }
5957
5958 namespace test_rvalue_references
5959 {
5960
5961 template < int N >
5962 struct answer
5963 {
5964 static constexpr int value = N;
5965 };
5966
5967 answer<1> f(int&) { return answer<1>(); }
5968 answer<2> f(const int&) { return answer<2>(); }
5969 answer<3> f(int&&) { return answer<3>(); }
5970
5971 void
5972 test()
5973 {
5974 int i = 0;
5975 const int c = 0;
5976 static_assert(decltype(f(i))::value == 1, "");
5977 static_assert(decltype(f(c))::value == 2, "");
5978 static_assert(decltype(f(0))::value == 3, "");
5979 }
5980
5981 }
5982
5983 namespace test_uniform_initialization
5984 {
5985
5986 struct test
5987 {
5988 static const int zero {};
5989 static const int one {1};
5990 };
5991
5992 static_assert(test::zero == 0, "");
5993 static_assert(test::one == 1, "");
5994
5995 }
5996
5997 namespace test_lambdas
5998 {
5999
6000 void
6001 test1()
6002 {
6003 auto lambda1 = [](){};
6004 auto lambda2 = lambda1;
6005 lambda1();
6006 lambda2();
6007 }
6008
6009 int
6010 test2()
6011 {
6012 auto a = [](int i, int j){ return i + j; }(1, 2);
6013 auto b = []() -> int { return '0'; }();
6014 auto c = [=](){ return a + b; }();
6015 auto d = [&](){ return c; }();
6016 auto e = [a, &b](int x) mutable {
6017 const auto identity = [](int y){ return y; };
6018 for (auto i = 0; i < a; ++i)
6019 a += b--;
6020 return x + identity(a + b);
6021 }(0);
6022 return a + b + c + d + e;
6023 }
6024
6025 int
6026 test3()
6027 {
6028 const auto nullary = [](){ return 0; };
6029 const auto unary = [](int x){ return x; };
6030 using nullary_t = decltype(nullary);
6031 using unary_t = decltype(unary);
6032 const auto higher1st = [](nullary_t f){ return f(); };
6033 const auto higher2nd = [unary](nullary_t f1){
6034 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6035 };
6036 return higher1st(nullary) + higher2nd(nullary)(unary);
6037 }
6038
6039 }
6040
6041 namespace test_variadic_templates
6042 {
6043
6044 template <int...>
6045 struct sum;
6046
6047 template <int N0, int... N1toN>
6048 struct sum<N0, N1toN...>
6049 {
6050 static constexpr auto value = N0 + sum<N1toN...>::value;
6051 };
6052
6053 template <>
6054 struct sum<>
6055 {
6056 static constexpr auto value = 0;
6057 };
6058
6059 static_assert(sum<>::value == 0, "");
6060 static_assert(sum<1>::value == 1, "");
6061 static_assert(sum<23>::value == 23, "");
6062 static_assert(sum<1, 2>::value == 3, "");
6063 static_assert(sum<5, 5, 11>::value == 21, "");
6064 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6065
6066 }
6067
6068 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6069 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6070 // because of this.
6071 namespace test_template_alias_sfinae
6072 {
6073
6074 struct foo {};
6075
6076 template<typename T>
6077 using member = typename T::member_type;
6078
6079 template<typename T>
6080 void func(...) {}
6081
6082 template<typename T>
6083 void func(member<T>*) {}
6084
6085 void test();
6086
6087 void test() { func<foo>(0); }
6088
6089 }
6090
6091} // namespace cxx11
6092
6093#endif // __cplusplus >= 201103L
6094
6095
6096
6097_ACEOF
6098if ac_fn_cxx_try_compile "$LINENO"; then :
6099 ax_cv_cxx_compile_cxx11=yes
6100else
6101 ax_cv_cxx_compile_cxx11=no
6102fi
6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104fi
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6106$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6107 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6108 ac_success=yes
6109 fi
6110
6111 if test x$ac_success = xno; then
6112 for alternative in ${ax_cxx_compile_alternatives}; do
6113 switch="-std=gnu++${alternative}"
6114 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6116$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6117if eval \${$cachevar+:} false; then :
6118 $as_echo_n "(cached) " >&6
6119else
6120 ac_save_CXX="$CXX"
6121 CXX="$CXX $switch"
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123/* end confdefs.h. */
6124
6125
6126// If the compiler admits that it is not ready for C++11, why torture it?
6127// Hopefully, this will speed up the test.
6128
6129#ifndef __cplusplus
6130
6131#error "This is not a C++ compiler"
6132
6133#elif __cplusplus < 201103L
6134
6135#error "This is not a C++11 compiler"
6136
6137#else
6138
6139namespace cxx11
6140{
6141
6142 namespace test_static_assert
6143 {
6144
6145 template <typename T>
6146 struct check
6147 {
6148 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6149 };
6150
6151 }
6152
6153 namespace test_final_override
6154 {
6155
6156 struct Base
6157 {
6158 virtual ~Base() {}
6159 virtual void f() {}
6160 };
6161
6162 struct Derived : public Base
6163 {
6164 virtual ~Derived() override {}
6165 virtual void f() override {}
6166 };
6167
6168 }
6169
6170 namespace test_double_right_angle_brackets
6171 {
6172
6173 template < typename T >
6174 struct check {};
6175
6176 typedef check<void> single_type;
6177 typedef check<check<void>> double_type;
6178 typedef check<check<check<void>>> triple_type;
6179 typedef check<check<check<check<void>>>> quadruple_type;
6180
6181 }
6182
6183 namespace test_decltype
6184 {
6185
6186 int
6187 f()
6188 {
6189 int a = 1;
6190 decltype(a) b = 2;
6191 return a + b;
6192 }
6193
6194 }
6195
6196 namespace test_type_deduction
6197 {
6198
6199 template < typename T1, typename T2 >
6200 struct is_same
6201 {
6202 static const bool value = false;
6203 };
6204
6205 template < typename T >
6206 struct is_same<T, T>
6207 {
6208 static const bool value = true;
6209 };
6210
6211 template < typename T1, typename T2 >
6212 auto
6213 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6214 {
6215 return a1 + a2;
6216 }
6217
6218 int
6219 test(const int c, volatile int v)
6220 {
6221 static_assert(is_same<int, decltype(0)>::value == true, "");
6222 static_assert(is_same<int, decltype(c)>::value == false, "");
6223 static_assert(is_same<int, decltype(v)>::value == false, "");
6224 auto ac = c;
6225 auto av = v;
6226 auto sumi = ac + av + 'x';
6227 auto sumf = ac + av + 1.0;
6228 static_assert(is_same<int, decltype(ac)>::value == true, "");
6229 static_assert(is_same<int, decltype(av)>::value == true, "");
6230 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6231 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6232 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6233 return (sumf > 0.0) ? sumi : add(c, v);
6234 }
6235
6236 }
6237
6238 namespace test_noexcept
6239 {
6240
6241 int f() { return 0; }
6242 int g() noexcept { return 0; }
6243
6244 static_assert(noexcept(f()) == false, "");
6245 static_assert(noexcept(g()) == true, "");
6246
6247 }
6248
6249 namespace test_constexpr
6250 {
6251
6252 template < typename CharT >
6253 unsigned long constexpr
6254 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6255 {
6256 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6257 }
6258
6259 template < typename CharT >
6260 unsigned long constexpr
6261 strlen_c(const CharT *const s) noexcept
6262 {
6263 return strlen_c_r(s, 0UL);
6264 }
6265
6266 static_assert(strlen_c("") == 0UL, "");
6267 static_assert(strlen_c("1") == 1UL, "");
6268 static_assert(strlen_c("example") == 7UL, "");
6269 static_assert(strlen_c("another\0example") == 7UL, "");
6270
6271 }
6272
6273 namespace test_rvalue_references
6274 {
6275
6276 template < int N >
6277 struct answer
6278 {
6279 static constexpr int value = N;
6280 };
6281
6282 answer<1> f(int&) { return answer<1>(); }
6283 answer<2> f(const int&) { return answer<2>(); }
6284 answer<3> f(int&&) { return answer<3>(); }
6285
6286 void
6287 test()
6288 {
6289 int i = 0;
6290 const int c = 0;
6291 static_assert(decltype(f(i))::value == 1, "");
6292 static_assert(decltype(f(c))::value == 2, "");
6293 static_assert(decltype(f(0))::value == 3, "");
6294 }
6295
6296 }
6297
6298 namespace test_uniform_initialization
6299 {
6300
6301 struct test
6302 {
6303 static const int zero {};
6304 static const int one {1};
6305 };
6306
6307 static_assert(test::zero == 0, "");
6308 static_assert(test::one == 1, "");
6309
6310 }
6311
6312 namespace test_lambdas
6313 {
6314
6315 void
6316 test1()
6317 {
6318 auto lambda1 = [](){};
6319 auto lambda2 = lambda1;
6320 lambda1();
6321 lambda2();
6322 }
6323
6324 int
6325 test2()
6326 {
6327 auto a = [](int i, int j){ return i + j; }(1, 2);
6328 auto b = []() -> int { return '0'; }();
6329 auto c = [=](){ return a + b; }();
6330 auto d = [&](){ return c; }();
6331 auto e = [a, &b](int x) mutable {
6332 const auto identity = [](int y){ return y; };
6333 for (auto i = 0; i < a; ++i)
6334 a += b--;
6335 return x + identity(a + b);
6336 }(0);
6337 return a + b + c + d + e;
6338 }
6339
6340 int
6341 test3()
6342 {
6343 const auto nullary = [](){ return 0; };
6344 const auto unary = [](int x){ return x; };
6345 using nullary_t = decltype(nullary);
6346 using unary_t = decltype(unary);
6347 const auto higher1st = [](nullary_t f){ return f(); };
6348 const auto higher2nd = [unary](nullary_t f1){
6349 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6350 };
6351 return higher1st(nullary) + higher2nd(nullary)(unary);
6352 }
6353
6354 }
6355
6356 namespace test_variadic_templates
6357 {
6358
6359 template <int...>
6360 struct sum;
6361
6362 template <int N0, int... N1toN>
6363 struct sum<N0, N1toN...>
6364 {
6365 static constexpr auto value = N0 + sum<N1toN...>::value;
6366 };
6367
6368 template <>
6369 struct sum<>
6370 {
6371 static constexpr auto value = 0;
6372 };
6373
6374 static_assert(sum<>::value == 0, "");
6375 static_assert(sum<1>::value == 1, "");
6376 static_assert(sum<23>::value == 23, "");
6377 static_assert(sum<1, 2>::value == 3, "");
6378 static_assert(sum<5, 5, 11>::value == 21, "");
6379 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6380
6381 }
6382
6383 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6384 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6385 // because of this.
6386 namespace test_template_alias_sfinae
6387 {
6388
6389 struct foo {};
6390
6391 template<typename T>
6392 using member = typename T::member_type;
6393
6394 template<typename T>
6395 void func(...) {}
6396
6397 template<typename T>
6398 void func(member<T>*) {}
6399
6400 void test();
6401
6402 void test() { func<foo>(0); }
6403
6404 }
6405
6406} // namespace cxx11
6407
6408#endif // __cplusplus >= 201103L
6409
6410
6411
6412_ACEOF
6413if ac_fn_cxx_try_compile "$LINENO"; then :
6414 eval $cachevar=yes
6415else
6416 eval $cachevar=no
6417fi
6418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419 CXX="$ac_save_CXX"
6420fi
6421eval ac_res=\$$cachevar
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6423$as_echo "$ac_res" >&6; }
6424 if eval test x\$$cachevar = xyes; then
6425 CXX="$CXX $switch"
6426 if test -n "$CXXCPP" ; then
6427 CXXCPP="$CXXCPP $switch"
6428 fi
6429 ac_success=yes
6430 break
6431 fi
6432 done
6433 fi
6434
6435 if test x$ac_success = xno; then
6436 for alternative in ${ax_cxx_compile_alternatives}; do
6437 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6438 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6440$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6441if eval \${$cachevar+:} false; then :
6442 $as_echo_n "(cached) " >&6
6443else
6444 ac_save_CXX="$CXX"
6445 CXX="$CXX $switch"
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447/* end confdefs.h. */
6448
6449
6450// If the compiler admits that it is not ready for C++11, why torture it?
6451// Hopefully, this will speed up the test.
6452
6453#ifndef __cplusplus
6454
6455#error "This is not a C++ compiler"
6456
6457#elif __cplusplus < 201103L
6458
6459#error "This is not a C++11 compiler"
6460
6461#else
6462
6463namespace cxx11
6464{
6465
6466 namespace test_static_assert
6467 {
6468
6469 template <typename T>
6470 struct check
6471 {
6472 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6473 };
6474
6475 }
6476
6477 namespace test_final_override
6478 {
6479
6480 struct Base
6481 {
6482 virtual ~Base() {}
6483 virtual void f() {}
6484 };
6485
6486 struct Derived : public Base
6487 {
6488 virtual ~Derived() override {}
6489 virtual void f() override {}
6490 };
6491
6492 }
6493
6494 namespace test_double_right_angle_brackets
6495 {
6496
6497 template < typename T >
6498 struct check {};
6499
6500 typedef check<void> single_type;
6501 typedef check<check<void>> double_type;
6502 typedef check<check<check<void>>> triple_type;
6503 typedef check<check<check<check<void>>>> quadruple_type;
6504
6505 }
6506
6507 namespace test_decltype
6508 {
6509
6510 int
6511 f()
6512 {
6513 int a = 1;
6514 decltype(a) b = 2;
6515 return a + b;
6516 }
6517
6518 }
6519
6520 namespace test_type_deduction
6521 {
6522
6523 template < typename T1, typename T2 >
6524 struct is_same
6525 {
6526 static const bool value = false;
6527 };
6528
6529 template < typename T >
6530 struct is_same<T, T>
6531 {
6532 static const bool value = true;
6533 };
6534
6535 template < typename T1, typename T2 >
6536 auto
6537 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6538 {
6539 return a1 + a2;
6540 }
6541
6542 int
6543 test(const int c, volatile int v)
6544 {
6545 static_assert(is_same<int, decltype(0)>::value == true, "");
6546 static_assert(is_same<int, decltype(c)>::value == false, "");
6547 static_assert(is_same<int, decltype(v)>::value == false, "");
6548 auto ac = c;
6549 auto av = v;
6550 auto sumi = ac + av + 'x';
6551 auto sumf = ac + av + 1.0;
6552 static_assert(is_same<int, decltype(ac)>::value == true, "");
6553 static_assert(is_same<int, decltype(av)>::value == true, "");
6554 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6555 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6556 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6557 return (sumf > 0.0) ? sumi : add(c, v);
6558 }
6559
6560 }
6561
6562 namespace test_noexcept
6563 {
6564
6565 int f() { return 0; }
6566 int g() noexcept { return 0; }
6567
6568 static_assert(noexcept(f()) == false, "");
6569 static_assert(noexcept(g()) == true, "");
6570
6571 }
6572
6573 namespace test_constexpr
6574 {
6575
6576 template < typename CharT >
6577 unsigned long constexpr
6578 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6579 {
6580 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6581 }
6582
6583 template < typename CharT >
6584 unsigned long constexpr
6585 strlen_c(const CharT *const s) noexcept
6586 {
6587 return strlen_c_r(s, 0UL);
6588 }
6589
6590 static_assert(strlen_c("") == 0UL, "");
6591 static_assert(strlen_c("1") == 1UL, "");
6592 static_assert(strlen_c("example") == 7UL, "");
6593 static_assert(strlen_c("another\0example") == 7UL, "");
6594
6595 }
6596
6597 namespace test_rvalue_references
6598 {
6599
6600 template < int N >
6601 struct answer
6602 {
6603 static constexpr int value = N;
6604 };
6605
6606 answer<1> f(int&) { return answer<1>(); }
6607 answer<2> f(const int&) { return answer<2>(); }
6608 answer<3> f(int&&) { return answer<3>(); }
6609
6610 void
6611 test()
6612 {
6613 int i = 0;
6614 const int c = 0;
6615 static_assert(decltype(f(i))::value == 1, "");
6616 static_assert(decltype(f(c))::value == 2, "");
6617 static_assert(decltype(f(0))::value == 3, "");
6618 }
6619
6620 }
6621
6622 namespace test_uniform_initialization
6623 {
6624
6625 struct test
6626 {
6627 static const int zero {};
6628 static const int one {1};
6629 };
6630
6631 static_assert(test::zero == 0, "");
6632 static_assert(test::one == 1, "");
6633
6634 }
6635
6636 namespace test_lambdas
6637 {
6638
6639 void
6640 test1()
6641 {
6642 auto lambda1 = [](){};
6643 auto lambda2 = lambda1;
6644 lambda1();
6645 lambda2();
6646 }
6647
6648 int
6649 test2()
6650 {
6651 auto a = [](int i, int j){ return i + j; }(1, 2);
6652 auto b = []() -> int { return '0'; }();
6653 auto c = [=](){ return a + b; }();
6654 auto d = [&](){ return c; }();
6655 auto e = [a, &b](int x) mutable {
6656 const auto identity = [](int y){ return y; };
6657 for (auto i = 0; i < a; ++i)
6658 a += b--;
6659 return x + identity(a + b);
6660 }(0);
6661 return a + b + c + d + e;
6662 }
6663
6664 int
6665 test3()
6666 {
6667 const auto nullary = [](){ return 0; };
6668 const auto unary = [](int x){ return x; };
6669 using nullary_t = decltype(nullary);
6670 using unary_t = decltype(unary);
6671 const auto higher1st = [](nullary_t f){ return f(); };
6672 const auto higher2nd = [unary](nullary_t f1){
6673 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6674 };
6675 return higher1st(nullary) + higher2nd(nullary)(unary);
6676 }
6677
6678 }
6679
6680 namespace test_variadic_templates
6681 {
6682
6683 template <int...>
6684 struct sum;
6685
6686 template <int N0, int... N1toN>
6687 struct sum<N0, N1toN...>
6688 {
6689 static constexpr auto value = N0 + sum<N1toN...>::value;
6690 };
6691
6692 template <>
6693 struct sum<>
6694 {
6695 static constexpr auto value = 0;
6696 };
6697
6698 static_assert(sum<>::value == 0, "");
6699 static_assert(sum<1>::value == 1, "");
6700 static_assert(sum<23>::value == 23, "");
6701 static_assert(sum<1, 2>::value == 3, "");
6702 static_assert(sum<5, 5, 11>::value == 21, "");
6703 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6704
6705 }
6706
6707 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6708 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6709 // because of this.
6710 namespace test_template_alias_sfinae
6711 {
6712
6713 struct foo {};
6714
6715 template<typename T>
6716 using member = typename T::member_type;
6717
6718 template<typename T>
6719 void func(...) {}
6720
6721 template<typename T>
6722 void func(member<T>*) {}
6723
6724 void test();
6725
6726 void test() { func<foo>(0); }
6727
6728 }
6729
6730} // namespace cxx11
6731
6732#endif // __cplusplus >= 201103L
6733
6734
6735
6736_ACEOF
6737if ac_fn_cxx_try_compile "$LINENO"; then :
6738 eval $cachevar=yes
6739else
6740 eval $cachevar=no
6741fi
6742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743 CXX="$ac_save_CXX"
6744fi
6745eval ac_res=\$$cachevar
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6747$as_echo "$ac_res" >&6; }
6748 if eval test x\$$cachevar = xyes; then
6749 CXX="$CXX $switch"
6750 if test -n "$CXXCPP" ; then
6751 CXXCPP="$CXXCPP $switch"
6752 fi
6753 ac_success=yes
6754 break
6755 fi
6756 done
6757 if test x$ac_success = xyes; then
6758 break
6759 fi
6760 done
6761 fi
7ffcf5d6 6762
ffac9597
JM
6763 ac_ext=c
6764ac_cpp='$CPP $CPPFLAGS'
6765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6767ac_compiler_gnu=$ac_cv_c_compiler_gnu
6768
6769 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6770 if test x$ac_success = xno; then
6771 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6772 fi
6773 fi
6774 if test x$ac_success = xno; then
6775 HAVE_CXX11=0
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6777$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6778 else
6779 HAVE_CXX11=1
6780
6781$as_echo "#define HAVE_CXX11 1" >>confdefs.h
6782
6783 fi
6784
6785
7ffcf5d6
TB
6786
6787 if test "${build}" != "${host}"; then
6788 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6789 ac_ext=cpp
6790ac_cpp='$CXXCPP $CPPFLAGS'
6791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6794 ac_success=no
6795 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6796 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6797 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6798 CXX="$CXX_FOR_BUILD"
6799 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6800 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6802$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6803if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6804 $as_echo_n "(cached) " >&6
6805else
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807/* end confdefs.h. */
6808
6809
6810// If the compiler admits that it is not ready for C++11, why torture it?
6811// Hopefully, this will speed up the test.
6812
6813#ifndef __cplusplus
6814
6815#error "This is not a C++ compiler"
6816
6817#elif __cplusplus < 201103L
6818
6819#error "This is not a C++11 compiler"
6820
6821#else
6822
6823namespace cxx11
6824{
6825
6826 namespace test_static_assert
6827 {
6828
6829 template <typename T>
6830 struct check
6831 {
6832 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6833 };
6834
6835 }
6836
6837 namespace test_final_override
6838 {
6839
6840 struct Base
6841 {
6842 virtual ~Base() {}
6843 virtual void f() {}
6844 };
6845
6846 struct Derived : public Base
6847 {
6848 virtual ~Derived() override {}
6849 virtual void f() override {}
6850 };
6851
6852 }
6853
6854 namespace test_double_right_angle_brackets
6855 {
6856
6857 template < typename T >
6858 struct check {};
6859
6860 typedef check<void> single_type;
6861 typedef check<check<void>> double_type;
6862 typedef check<check<check<void>>> triple_type;
6863 typedef check<check<check<check<void>>>> quadruple_type;
6864
6865 }
6866
6867 namespace test_decltype
6868 {
6869
6870 int
6871 f()
6872 {
6873 int a = 1;
6874 decltype(a) b = 2;
6875 return a + b;
6876 }
6877
6878 }
6879
6880 namespace test_type_deduction
6881 {
6882
6883 template < typename T1, typename T2 >
6884 struct is_same
6885 {
6886 static const bool value = false;
6887 };
6888
6889 template < typename T >
6890 struct is_same<T, T>
6891 {
6892 static const bool value = true;
6893 };
6894
6895 template < typename T1, typename T2 >
6896 auto
6897 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6898 {
6899 return a1 + a2;
6900 }
6901
6902 int
6903 test(const int c, volatile int v)
6904 {
6905 static_assert(is_same<int, decltype(0)>::value == true, "");
6906 static_assert(is_same<int, decltype(c)>::value == false, "");
6907 static_assert(is_same<int, decltype(v)>::value == false, "");
6908 auto ac = c;
6909 auto av = v;
6910 auto sumi = ac + av + 'x';
6911 auto sumf = ac + av + 1.0;
6912 static_assert(is_same<int, decltype(ac)>::value == true, "");
6913 static_assert(is_same<int, decltype(av)>::value == true, "");
6914 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6915 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6916 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6917 return (sumf > 0.0) ? sumi : add(c, v);
6918 }
6919
6920 }
6921
6922 namespace test_noexcept
6923 {
6924
6925 int f() { return 0; }
6926 int g() noexcept { return 0; }
6927
6928 static_assert(noexcept(f()) == false, "");
6929 static_assert(noexcept(g()) == true, "");
6930
6931 }
6932
6933 namespace test_constexpr
6934 {
6935
6936 template < typename CharT >
6937 unsigned long constexpr
6938 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6939 {
6940 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6941 }
6942
6943 template < typename CharT >
6944 unsigned long constexpr
6945 strlen_c(const CharT *const s) noexcept
6946 {
6947 return strlen_c_r(s, 0UL);
6948 }
6949
6950 static_assert(strlen_c("") == 0UL, "");
6951 static_assert(strlen_c("1") == 1UL, "");
6952 static_assert(strlen_c("example") == 7UL, "");
6953 static_assert(strlen_c("another\0example") == 7UL, "");
6954
6955 }
6956
6957 namespace test_rvalue_references
6958 {
6959
6960 template < int N >
6961 struct answer
6962 {
6963 static constexpr int value = N;
6964 };
6965
6966 answer<1> f(int&) { return answer<1>(); }
6967 answer<2> f(const int&) { return answer<2>(); }
6968 answer<3> f(int&&) { return answer<3>(); }
6969
6970 void
6971 test()
6972 {
6973 int i = 0;
6974 const int c = 0;
6975 static_assert(decltype(f(i))::value == 1, "");
6976 static_assert(decltype(f(c))::value == 2, "");
6977 static_assert(decltype(f(0))::value == 3, "");
6978 }
6979
6980 }
6981
6982 namespace test_uniform_initialization
6983 {
6984
6985 struct test
6986 {
6987 static const int zero {};
6988 static const int one {1};
6989 };
6990
6991 static_assert(test::zero == 0, "");
6992 static_assert(test::one == 1, "");
6993
6994 }
6995
6996 namespace test_lambdas
6997 {
6998
6999 void
7000 test1()
7001 {
7002 auto lambda1 = [](){};
7003 auto lambda2 = lambda1;
7004 lambda1();
7005 lambda2();
7006 }
7007
7008 int
7009 test2()
7010 {
7011 auto a = [](int i, int j){ return i + j; }(1, 2);
7012 auto b = []() -> int { return '0'; }();
7013 auto c = [=](){ return a + b; }();
7014 auto d = [&](){ return c; }();
7015 auto e = [a, &b](int x) mutable {
7016 const auto identity = [](int y){ return y; };
7017 for (auto i = 0; i < a; ++i)
7018 a += b--;
7019 return x + identity(a + b);
7020 }(0);
7021 return a + b + c + d + e;
7022 }
7023
7024 int
7025 test3()
7026 {
7027 const auto nullary = [](){ return 0; };
7028 const auto unary = [](int x){ return x; };
7029 using nullary_t = decltype(nullary);
7030 using unary_t = decltype(unary);
7031 const auto higher1st = [](nullary_t f){ return f(); };
7032 const auto higher2nd = [unary](nullary_t f1){
7033 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7034 };
7035 return higher1st(nullary) + higher2nd(nullary)(unary);
7036 }
7037
7038 }
7039
7040 namespace test_variadic_templates
7041 {
7042
7043 template <int...>
7044 struct sum;
7045
7046 template <int N0, int... N1toN>
7047 struct sum<N0, N1toN...>
7048 {
7049 static constexpr auto value = N0 + sum<N1toN...>::value;
7050 };
7051
7052 template <>
7053 struct sum<>
7054 {
7055 static constexpr auto value = 0;
7056 };
7057
7058 static_assert(sum<>::value == 0, "");
7059 static_assert(sum<1>::value == 1, "");
7060 static_assert(sum<23>::value == 23, "");
7061 static_assert(sum<1, 2>::value == 3, "");
7062 static_assert(sum<5, 5, 11>::value == 21, "");
7063 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7064
7065 }
7066
7067 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7068 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7069 // because of this.
7070 namespace test_template_alias_sfinae
7071 {
7072
7073 struct foo {};
7074
7075 template<typename T>
7076 using member = typename T::member_type;
7077
7078 template<typename T>
7079 void func(...) {}
7080
7081 template<typename T>
7082 void func(member<T>*) {}
7083
7084 void test();
7085
7086 void test() { func<foo>(0); }
7087
7088 }
7089
7090} // namespace cxx11
7091
7092#endif // __cplusplus >= 201103L
7093
7094
7095
7096_ACEOF
7097if ac_fn_cxx_try_compile "$LINENO"; then :
7098 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7099else
7100 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7101fi
7102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7103fi
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7105$as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7106 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7107 ac_success=yes
7108 fi
7109
7110 if test x$ac_success = xno; then
7111 for alternative in ${ax_cxx_compile_alternatives}; do
7112 switch="-std=gnu++${alternative}"
7113 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7115$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7116if eval \${$cachevar+:} false; then :
7117 $as_echo_n "(cached) " >&6
7118else
7119 ac_save_CXX="$CXX"
7120 CXX="$CXX $switch"
7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122/* end confdefs.h. */
7123
7124
7125// If the compiler admits that it is not ready for C++11, why torture it?
7126// Hopefully, this will speed up the test.
7127
7128#ifndef __cplusplus
7129
7130#error "This is not a C++ compiler"
7131
7132#elif __cplusplus < 201103L
7133
7134#error "This is not a C++11 compiler"
7135
7136#else
7137
7138namespace cxx11
7139{
7140
7141 namespace test_static_assert
7142 {
7143
7144 template <typename T>
7145 struct check
7146 {
7147 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7148 };
7149
7150 }
7151
7152 namespace test_final_override
7153 {
7154
7155 struct Base
7156 {
7157 virtual ~Base() {}
7158 virtual void f() {}
7159 };
7160
7161 struct Derived : public Base
7162 {
7163 virtual ~Derived() override {}
7164 virtual void f() override {}
7165 };
7166
7167 }
7168
7169 namespace test_double_right_angle_brackets
7170 {
7171
7172 template < typename T >
7173 struct check {};
7174
7175 typedef check<void> single_type;
7176 typedef check<check<void>> double_type;
7177 typedef check<check<check<void>>> triple_type;
7178 typedef check<check<check<check<void>>>> quadruple_type;
7179
7180 }
7181
7182 namespace test_decltype
7183 {
7184
7185 int
7186 f()
7187 {
7188 int a = 1;
7189 decltype(a) b = 2;
7190 return a + b;
7191 }
7192
7193 }
7194
7195 namespace test_type_deduction
7196 {
7197
7198 template < typename T1, typename T2 >
7199 struct is_same
7200 {
7201 static const bool value = false;
7202 };
7203
7204 template < typename T >
7205 struct is_same<T, T>
7206 {
7207 static const bool value = true;
7208 };
7209
7210 template < typename T1, typename T2 >
7211 auto
7212 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7213 {
7214 return a1 + a2;
7215 }
7216
7217 int
7218 test(const int c, volatile int v)
7219 {
7220 static_assert(is_same<int, decltype(0)>::value == true, "");
7221 static_assert(is_same<int, decltype(c)>::value == false, "");
7222 static_assert(is_same<int, decltype(v)>::value == false, "");
7223 auto ac = c;
7224 auto av = v;
7225 auto sumi = ac + av + 'x';
7226 auto sumf = ac + av + 1.0;
7227 static_assert(is_same<int, decltype(ac)>::value == true, "");
7228 static_assert(is_same<int, decltype(av)>::value == true, "");
7229 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7230 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7231 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7232 return (sumf > 0.0) ? sumi : add(c, v);
7233 }
7234
7235 }
7236
7237 namespace test_noexcept
7238 {
7239
7240 int f() { return 0; }
7241 int g() noexcept { return 0; }
7242
7243 static_assert(noexcept(f()) == false, "");
7244 static_assert(noexcept(g()) == true, "");
7245
7246 }
7247
7248 namespace test_constexpr
7249 {
7250
7251 template < typename CharT >
7252 unsigned long constexpr
7253 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7254 {
7255 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7256 }
7257
7258 template < typename CharT >
7259 unsigned long constexpr
7260 strlen_c(const CharT *const s) noexcept
7261 {
7262 return strlen_c_r(s, 0UL);
7263 }
7264
7265 static_assert(strlen_c("") == 0UL, "");
7266 static_assert(strlen_c("1") == 1UL, "");
7267 static_assert(strlen_c("example") == 7UL, "");
7268 static_assert(strlen_c("another\0example") == 7UL, "");
7269
7270 }
7271
7272 namespace test_rvalue_references
7273 {
7274
7275 template < int N >
7276 struct answer
7277 {
7278 static constexpr int value = N;
7279 };
7280
7281 answer<1> f(int&) { return answer<1>(); }
7282 answer<2> f(const int&) { return answer<2>(); }
7283 answer<3> f(int&&) { return answer<3>(); }
7284
7285 void
7286 test()
7287 {
7288 int i = 0;
7289 const int c = 0;
7290 static_assert(decltype(f(i))::value == 1, "");
7291 static_assert(decltype(f(c))::value == 2, "");
7292 static_assert(decltype(f(0))::value == 3, "");
7293 }
7294
7295 }
7296
7297 namespace test_uniform_initialization
7298 {
7299
7300 struct test
7301 {
7302 static const int zero {};
7303 static const int one {1};
7304 };
7305
7306 static_assert(test::zero == 0, "");
7307 static_assert(test::one == 1, "");
7308
7309 }
7310
7311 namespace test_lambdas
7312 {
7313
7314 void
7315 test1()
7316 {
7317 auto lambda1 = [](){};
7318 auto lambda2 = lambda1;
7319 lambda1();
7320 lambda2();
7321 }
7322
7323 int
7324 test2()
7325 {
7326 auto a = [](int i, int j){ return i + j; }(1, 2);
7327 auto b = []() -> int { return '0'; }();
7328 auto c = [=](){ return a + b; }();
7329 auto d = [&](){ return c; }();
7330 auto e = [a, &b](int x) mutable {
7331 const auto identity = [](int y){ return y; };
7332 for (auto i = 0; i < a; ++i)
7333 a += b--;
7334 return x + identity(a + b);
7335 }(0);
7336 return a + b + c + d + e;
7337 }
7338
7339 int
7340 test3()
7341 {
7342 const auto nullary = [](){ return 0; };
7343 const auto unary = [](int x){ return x; };
7344 using nullary_t = decltype(nullary);
7345 using unary_t = decltype(unary);
7346 const auto higher1st = [](nullary_t f){ return f(); };
7347 const auto higher2nd = [unary](nullary_t f1){
7348 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7349 };
7350 return higher1st(nullary) + higher2nd(nullary)(unary);
7351 }
7352
7353 }
7354
7355 namespace test_variadic_templates
7356 {
7357
7358 template <int...>
7359 struct sum;
7360
7361 template <int N0, int... N1toN>
7362 struct sum<N0, N1toN...>
7363 {
7364 static constexpr auto value = N0 + sum<N1toN...>::value;
7365 };
7366
7367 template <>
7368 struct sum<>
7369 {
7370 static constexpr auto value = 0;
7371 };
7372
7373 static_assert(sum<>::value == 0, "");
7374 static_assert(sum<1>::value == 1, "");
7375 static_assert(sum<23>::value == 23, "");
7376 static_assert(sum<1, 2>::value == 3, "");
7377 static_assert(sum<5, 5, 11>::value == 21, "");
7378 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7379
7380 }
7381
7382 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7383 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7384 // because of this.
7385 namespace test_template_alias_sfinae
7386 {
7387
7388 struct foo {};
7389
7390 template<typename T>
7391 using member = typename T::member_type;
7392
7393 template<typename T>
7394 void func(...) {}
7395
7396 template<typename T>
7397 void func(member<T>*) {}
7398
7399 void test();
7400
7401 void test() { func<foo>(0); }
7402
7403 }
7404
7405} // namespace cxx11
7406
7407#endif // __cplusplus >= 201103L
7408
7409
7410
7411_ACEOF
7412if ac_fn_cxx_try_compile "$LINENO"; then :
7413 eval $cachevar=yes
7414else
7415 eval $cachevar=no
7416fi
7417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418 CXX="$ac_save_CXX"
7419fi
7420eval ac_res=\$$cachevar
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7422$as_echo "$ac_res" >&6; }
7423 if eval test x\$$cachevar = xyes; then
7424 CXX="$CXX $switch"
7425 if test -n "$CXXCPP" ; then
7426 CXXCPP="$CXXCPP $switch"
7427 fi
7428 ac_success=yes
7429 break
7430 fi
7431 done
7432 fi
7433
7434 if test x$ac_success = xno; then
7435 for alternative in ${ax_cxx_compile_alternatives}; do
7436 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7437 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7439$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7440if eval \${$cachevar+:} false; then :
7441 $as_echo_n "(cached) " >&6
7442else
7443 ac_save_CXX="$CXX"
7444 CXX="$CXX $switch"
7445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446/* end confdefs.h. */
7447
7448
7449// If the compiler admits that it is not ready for C++11, why torture it?
7450// Hopefully, this will speed up the test.
7451
7452#ifndef __cplusplus
7453
7454#error "This is not a C++ compiler"
7455
7456#elif __cplusplus < 201103L
7457
7458#error "This is not a C++11 compiler"
7459
7460#else
7461
7462namespace cxx11
7463{
7464
7465 namespace test_static_assert
7466 {
7467
7468 template <typename T>
7469 struct check
7470 {
7471 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7472 };
7473
7474 }
7475
7476 namespace test_final_override
7477 {
7478
7479 struct Base
7480 {
7481 virtual ~Base() {}
7482 virtual void f() {}
7483 };
7484
7485 struct Derived : public Base
7486 {
7487 virtual ~Derived() override {}
7488 virtual void f() override {}
7489 };
7490
7491 }
7492
7493 namespace test_double_right_angle_brackets
7494 {
7495
7496 template < typename T >
7497 struct check {};
7498
7499 typedef check<void> single_type;
7500 typedef check<check<void>> double_type;
7501 typedef check<check<check<void>>> triple_type;
7502 typedef check<check<check<check<void>>>> quadruple_type;
7503
7504 }
7505
7506 namespace test_decltype
7507 {
7508
7509 int
7510 f()
7511 {
7512 int a = 1;
7513 decltype(a) b = 2;
7514 return a + b;
7515 }
7516
7517 }
7518
7519 namespace test_type_deduction
7520 {
7521
7522 template < typename T1, typename T2 >
7523 struct is_same
7524 {
7525 static const bool value = false;
7526 };
7527
7528 template < typename T >
7529 struct is_same<T, T>
7530 {
7531 static const bool value = true;
7532 };
7533
7534 template < typename T1, typename T2 >
7535 auto
7536 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7537 {
7538 return a1 + a2;
7539 }
7540
7541 int
7542 test(const int c, volatile int v)
7543 {
7544 static_assert(is_same<int, decltype(0)>::value == true, "");
7545 static_assert(is_same<int, decltype(c)>::value == false, "");
7546 static_assert(is_same<int, decltype(v)>::value == false, "");
7547 auto ac = c;
7548 auto av = v;
7549 auto sumi = ac + av + 'x';
7550 auto sumf = ac + av + 1.0;
7551 static_assert(is_same<int, decltype(ac)>::value == true, "");
7552 static_assert(is_same<int, decltype(av)>::value == true, "");
7553 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7554 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7555 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7556 return (sumf > 0.0) ? sumi : add(c, v);
7557 }
7558
7559 }
7560
7561 namespace test_noexcept
7562 {
7563
7564 int f() { return 0; }
7565 int g() noexcept { return 0; }
7566
7567 static_assert(noexcept(f()) == false, "");
7568 static_assert(noexcept(g()) == true, "");
7569
7570 }
7571
7572 namespace test_constexpr
7573 {
7574
7575 template < typename CharT >
7576 unsigned long constexpr
7577 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7578 {
7579 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7580 }
7581
7582 template < typename CharT >
7583 unsigned long constexpr
7584 strlen_c(const CharT *const s) noexcept
7585 {
7586 return strlen_c_r(s, 0UL);
7587 }
7588
7589 static_assert(strlen_c("") == 0UL, "");
7590 static_assert(strlen_c("1") == 1UL, "");
7591 static_assert(strlen_c("example") == 7UL, "");
7592 static_assert(strlen_c("another\0example") == 7UL, "");
7593
7594 }
7595
7596 namespace test_rvalue_references
7597 {
7598
7599 template < int N >
7600 struct answer
7601 {
7602 static constexpr int value = N;
7603 };
7604
7605 answer<1> f(int&) { return answer<1>(); }
7606 answer<2> f(const int&) { return answer<2>(); }
7607 answer<3> f(int&&) { return answer<3>(); }
7608
7609 void
7610 test()
7611 {
7612 int i = 0;
7613 const int c = 0;
7614 static_assert(decltype(f(i))::value == 1, "");
7615 static_assert(decltype(f(c))::value == 2, "");
7616 static_assert(decltype(f(0))::value == 3, "");
7617 }
7618
7619 }
7620
7621 namespace test_uniform_initialization
7622 {
7623
7624 struct test
7625 {
7626 static const int zero {};
7627 static const int one {1};
7628 };
7629
7630 static_assert(test::zero == 0, "");
7631 static_assert(test::one == 1, "");
7632
7633 }
7634
7635 namespace test_lambdas
7636 {
7637
7638 void
7639 test1()
7640 {
7641 auto lambda1 = [](){};
7642 auto lambda2 = lambda1;
7643 lambda1();
7644 lambda2();
7645 }
7646
7647 int
7648 test2()
7649 {
7650 auto a = [](int i, int j){ return i + j; }(1, 2);
7651 auto b = []() -> int { return '0'; }();
7652 auto c = [=](){ return a + b; }();
7653 auto d = [&](){ return c; }();
7654 auto e = [a, &b](int x) mutable {
7655 const auto identity = [](int y){ return y; };
7656 for (auto i = 0; i < a; ++i)
7657 a += b--;
7658 return x + identity(a + b);
7659 }(0);
7660 return a + b + c + d + e;
7661 }
7662
7663 int
7664 test3()
7665 {
7666 const auto nullary = [](){ return 0; };
7667 const auto unary = [](int x){ return x; };
7668 using nullary_t = decltype(nullary);
7669 using unary_t = decltype(unary);
7670 const auto higher1st = [](nullary_t f){ return f(); };
7671 const auto higher2nd = [unary](nullary_t f1){
7672 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7673 };
7674 return higher1st(nullary) + higher2nd(nullary)(unary);
7675 }
7676
7677 }
7678
7679 namespace test_variadic_templates
7680 {
7681
7682 template <int...>
7683 struct sum;
7684
7685 template <int N0, int... N1toN>
7686 struct sum<N0, N1toN...>
7687 {
7688 static constexpr auto value = N0 + sum<N1toN...>::value;
7689 };
7690
7691 template <>
7692 struct sum<>
7693 {
7694 static constexpr auto value = 0;
7695 };
7696
7697 static_assert(sum<>::value == 0, "");
7698 static_assert(sum<1>::value == 1, "");
7699 static_assert(sum<23>::value == 23, "");
7700 static_assert(sum<1, 2>::value == 3, "");
7701 static_assert(sum<5, 5, 11>::value == 21, "");
7702 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7703
7704 }
7705
7706 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7707 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7708 // because of this.
7709 namespace test_template_alias_sfinae
7710 {
7711
7712 struct foo {};
7713
7714 template<typename T>
7715 using member = typename T::member_type;
7716
7717 template<typename T>
7718 void func(...) {}
7719
7720 template<typename T>
7721 void func(member<T>*) {}
7722
7723 void test();
7724
7725 void test() { func<foo>(0); }
7726
7727 }
7728
7729} // namespace cxx11
7730
7731#endif // __cplusplus >= 201103L
7732
7733
7734
7735_ACEOF
7736if ac_fn_cxx_try_compile "$LINENO"; then :
7737 eval $cachevar=yes
7738else
7739 eval $cachevar=no
7740fi
7741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742 CXX="$ac_save_CXX"
7743fi
7744eval ac_res=\$$cachevar
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7746$as_echo "$ac_res" >&6; }
7747 if eval test x\$$cachevar = xyes; then
7748 CXX="$CXX $switch"
7749 if test -n "$CXXCPP" ; then
7750 CXXCPP="$CXXCPP $switch"
7751 fi
7752 ac_success=yes
7753 break
7754 fi
7755 done
7756 if test x$ac_success = xyes; then
7757 break
7758 fi
7759 done
7760 fi
7761 CXX_FOR_BUILD="$CXX"
7762 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7763 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7764 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7765 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7766 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7767 ac_ext=c
7768ac_cpp='$CPP $CPPFLAGS'
7769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7771ac_compiler_gnu=$ac_cv_c_compiler_gnu
7772
7773 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7774 if test x$ac_success = xno; then
7775 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7776 fi
7777 fi
7778 if test x$ac_success = xno; then
7779 HAVE_CXX11_FOR_BUILD=0
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7781$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7782 else
7783 HAVE_CXX11_FOR_BUILD=1
7784
7785$as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7786
7787 fi
7788
7789
7790 fi
46070488
JM
7791fi
7792
4a5e71f2
L
7793# Check whether --enable-pgo-build was given.
7794if test "${enable_pgo_build+set}" = set; then :
7795 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7796else
7797 enable_pgo_build=no
7798fi
7799
7800
7801# Issue errors and warnings for invalid/strange PGO build combinations.
7802case "$have_compiler:$host:$target:$enable_pgo_build" in
7803 *:*:*:no) ;;
7804
7805 # Allow the PGO build only if we aren't building a compiler and
7806 # we are in a native configuration.
7807 no:$build:$build:yes | no:$build:$build:lto) ;;
7808
7809 # Disallow the PGO bootstrap if we are building a compiler.
7810 yes:*:*:yes | yes:*:*:lto)
7811 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7812
7813 *)
7814 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7815 ;;
7816esac
7817
7818if test "$enable_pgo_build" != "no"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7820$as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7821 old_CFLAGS="$CFLAGS"
7822 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7823 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7824
7825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826/* end confdefs.h. */
7827int foo;
7828_ACEOF
7829if ac_fn_c_try_compile "$LINENO"; then :
7830
7831else
7832 PGO_BUILD_GEN_CFLAGS=
7833fi
7834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7835 CFLAGS="$old_CFLAGS"
7836 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7838$as_echo "yes" >&6; }
7839 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7840 else
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842$as_echo "no" >&6; }
7843 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7844 fi
7845
7846 if test "$enable_pgo_build" = "lto"; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7848$as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7849 old_CFLAGS="$CFLAGS"
7850 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7851 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853/* end confdefs.h. */
7854int foo;
7855_ACEOF
7856if ac_fn_c_try_compile "$LINENO"; then :
7857
7858else
7859 PGO_BUILD_LTO_CFLAGS=
7860fi
7861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7862 CFLAGS="$old_CFLAGS"
7863 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7865$as_echo "yes" >&6; }
7866 else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868$as_echo "no" >&6; }
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7870$as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7871 fi
7872 fi
7873fi
7874
7875
7876
7877
592c90ff
KG
7878# Used for setting $lt_cv_objdir
7879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7880$as_echo_n "checking for objdir... " >&6; }
22e05272 7881if ${lt_cv_objdir+:} false; then :
592c90ff
KG
7882 $as_echo_n "(cached) " >&6
7883else
7884 rm -f .libs 2>/dev/null
7885mkdir .libs 2>/dev/null
7886if test -d .libs; then
7887 lt_cv_objdir=.libs
7888else
7889 # MS-DOS does not allow filenames that begin with a dot.
7890 lt_cv_objdir=_libs
7891fi
7892rmdir .libs 2>/dev/null
7893fi
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7895$as_echo "$lt_cv_objdir" >&6; }
7896objdir=$lt_cv_objdir
7897
7898
7899
7900
7901
7902cat >>confdefs.h <<_ACEOF
7903#define LT_OBJDIR "$lt_cv_objdir/"
7904_ACEOF
7905
7906
7907
acd26225 7908# Check for GMP, MPFR and MPC
91e0d220
AP
7909require_gmp=no
7910require_mpc=no
7911if test -d ${srcdir}/gcc ; then
7912 require_gmp=yes
7913 require_mpc=yes
7914fi
7915if test -d ${srcdir}/gdb ; then
5977d14a
CC
7916 if test "x$enable_gdb" != xno; then
7917 require_gmp=yes
7918 fi
91e0d220
AP
7919fi
7920
7921gmplibs="-lmpfr -lgmp"
7922if test x"$require_mpc" = "xyes" ; then
7923 gmplibs="-lmpc $gmplibs"
7924fi
6de9cd9a 7925gmpinc=
e69bf64b 7926have_gmp=no
acd26225
KG
7927
7928# Specify a location for mpc
7929# check for this first so it ends up on the link line before mpfr.
7930
5213506e
RW
7931# Check whether --with-mpc was given.
7932if test "${with_mpc+set}" = set; then :
7933 withval=$with_mpc;
7934fi
acd26225 7935
acd26225 7936
9965e3cd 7937# Check whether --with-mpc-include was given.
5213506e
RW
7938if test "${with_mpc_include+set}" = set; then :
7939 withval=$with_mpc_include;
7940fi
acd26225 7941
acd26225 7942
9965e3cd 7943# Check whether --with-mpc-lib was given.
5213506e
RW
7944if test "${with_mpc_lib+set}" = set; then :
7945 withval=$with_mpc_lib;
7946fi
acd26225 7947
acd26225
KG
7948
7949if test "x$with_mpc" != x; then
3a5729ea
KG
7950 gmplibs="-L$with_mpc/lib $gmplibs"
7951 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
7952fi
7953if test "x$with_mpc_include" != x; then
3a5729ea 7954 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
7955fi
7956if test "x$with_mpc_lib" != x; then
3a5729ea 7957 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
7958fi
7959if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 7960 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 7961 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
7962 # Do not test the mpc version. Assume that it is sufficient, since
7963 # it is in the source tree, and the library has not been built yet
7964 # but it would be included on the link line in the version check below
7965 # hence making the test fail.
3a5729ea 7966 have_gmp=yes
acd26225 7967fi
e69bf64b 7968
bebf829d
PB
7969# Specify a location for mpfr
7970# check for this first so it ends up on the link line before gmp.
1c710c3c 7971
5213506e
RW
7972# Check whether --with-mpfr was given.
7973if test "${with_mpfr+set}" = set; then :
7974 withval=$with_mpfr;
7975fi
1c710c3c 7976
bebf829d 7977
9965e3cd 7978# Check whether --with-mpfr-include was given.
5213506e
RW
7979if test "${with_mpfr_include+set}" = set; then :
7980 withval=$with_mpfr_include;
7981fi
1c710c3c 7982
8a877c9c 7983
9965e3cd 7984# Check whether --with-mpfr-lib was given.
5213506e
RW
7985if test "${with_mpfr_lib+set}" = set; then :
7986 withval=$with_mpfr_lib;
7987fi
8a877c9c 7988
bebf829d
PB
7989
7990if test "x$with_mpfr" != x; then
7991 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 7992 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 7993fi
8a877c9c 7994if test "x$with_mpfr_include" != x; then
3a5729ea 7995 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
7996fi
7997if test "x$with_mpfr_lib" != x; then
7998 gmplibs="-L$with_mpfr_lib $gmplibs"
7999fi
e69bf64b 8000if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
8001 # MPFR v3.1.0 moved the sources into a src sub-directory.
8002 if ! test -d ${srcdir}/mpfr/src; then
22e05272 8003 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8f3675f8 8004 fi
00f35794
BE
8005 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8006 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8007 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
8008 # Do not test the mpfr version. Assume that it is sufficient, since
8009 # it is in the source tree, and the library has not been built yet
8010 # but it would be included on the link line in the version check below
8011 # hence making the test fail.
8012 have_gmp=yes
8013fi
bebf829d 8014
6de9cd9a 8015# Specify a location for gmp
1c710c3c 8016
5213506e
RW
8017# Check whether --with-gmp was given.
8018if test "${with_gmp+set}" = set; then :
8019 withval=$with_gmp;
8020fi
1c710c3c 8021
6de9cd9a 8022
9965e3cd 8023# Check whether --with-gmp-include was given.
5213506e
RW
8024if test "${with_gmp_include+set}" = set; then :
8025 withval=$with_gmp_include;
8026fi
1c710c3c 8027
8a877c9c 8028
9965e3cd 8029# Check whether --with-gmp-lib was given.
5213506e
RW
8030if test "${with_gmp_lib+set}" = set; then :
8031 withval=$with_gmp_lib;
8032fi
8a877c9c
KG
8033
8034
6de9cd9a 8035
bebf829d
PB
8036if test "x$with_gmp" != x; then
8037 gmplibs="-L$with_gmp/lib $gmplibs"
8038 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 8039fi
8a877c9c
KG
8040if test "x$with_gmp_include" != x; then
8041 gmpinc="-I$with_gmp_include $gmpinc"
8042fi
8043if test "x$with_gmp_lib" != x; then
8044 gmplibs="-L$with_gmp_lib $gmplibs"
8045fi
e69bf64b 8046if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 8047 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 8048 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 8049 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 8050 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 8051 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
8052 # Do not test the gmp version. Assume that it is sufficient, since
8053 # it is in the source tree, and the library has not been built yet
8054 # but it would be included on the link line in the version check below
8055 # hence making the test fail.
8056 have_gmp=yes
8057fi
6de9cd9a 8058
91e0d220 8059if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
e69bf64b
PB
8060 have_gmp=yes
8061 saved_CFLAGS="$CFLAGS"
8062 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
8063 # Check for the recommended and required versions of GMP.
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8065$as_echo_n "checking for the correct version of gmp.h... " >&6; }
4a5e71f2 8066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
8067/* end confdefs.h. */
8068#include "gmp.h"
8069int
8070main ()
8071{
8072
8073 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8074 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 8075 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
8076 choke me
8077 #endif
8078
8079 ;
8080 return 0;
8081}
8082_ACEOF
8083if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 8084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8085/* end confdefs.h. */
362c6d2f 8086#include <gmp.h>
1c710c3c
DJ
8087int
8088main ()
8089{
6de9cd9a 8090
362c6d2f
KG
8091 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8092 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8093 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
8094 choke me
8095 #endif
1c710c3c
DJ
8096
8097 ;
8098 return 0;
8099}
8100_ACEOF
5213506e
RW
8101if ac_fn_c_try_compile "$LINENO"; then :
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8103$as_echo "yes" >&6; }
362c6d2f
KG
8104else
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8106$as_echo "buggy but acceptable" >&6; }
8107fi
8108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 8109else
5213506e
RW
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111$as_echo "no" >&6; }; have_gmp=no
1c710c3c 8112fi
5213506e 8113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 8114
acd26225 8115 # If we have GMP, check the MPFR version.
e69bf64b 8116 if test x"$have_gmp" = xyes; then
362c6d2f
KG
8117 # Check for the recommended and required versions of MPFR.
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8119$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 8120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8121/* end confdefs.h. */
70ec446f 8122#include <gmp.h>
e69bf64b 8123 #include <mpfr.h>
1c710c3c
DJ
8124int
8125main ()
8126{
e48d66a9 8127
8be34204 8128 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
e69bf64b
PB
8129 choke me
8130 #endif
1c710c3c
DJ
8131
8132 ;
8133 return 0;
8134}
8135_ACEOF
5213506e
RW
8136if ac_fn_c_try_compile "$LINENO"; then :
8137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8138/* end confdefs.h. */
a3993f33 8139#include <gmp.h>
e69bf64b 8140 #include <mpfr.h>
1c710c3c
DJ
8141int
8142main ()
8143{
a3993f33 8144
8be34204 8145 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
e69bf64b
PB
8146 choke me
8147 #endif
acd26225
KG
8148
8149 ;
8150 return 0;
8151}
8152_ACEOF
5213506e
RW
8153if ac_fn_c_try_compile "$LINENO"; then :
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8155$as_echo "yes" >&6; }
acd26225 8156else
5213506e
RW
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8158$as_echo "buggy but acceptable" >&6; }
acd26225 8159fi
5213506e 8160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 8161else
5213506e
RW
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163$as_echo "no" >&6; }; have_gmp=no
acd26225 8164fi
5213506e 8165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
8166 fi
8167
8168 # Check for the MPC header version.
91e0d220 8169 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
362c6d2f 8170 # Check for the recommended and required versions of MPC.
5213506e
RW
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8172$as_echo_n "checking for the correct version of mpc.h... " >&6; }
8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
8174/* end confdefs.h. */
8175#include <mpc.h>
8176int
8177main ()
8178{
8179
362c6d2f
KG
8180 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8181 choke me
8182 #endif
8183
8184 ;
8185 return 0;
8186}
8187_ACEOF
8188if ac_fn_c_try_compile "$LINENO"; then :
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190/* end confdefs.h. */
8191#include <mpc.h>
8192int
8193main ()
8194{
8195
8196 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
8197 choke me
8198 #endif
8199
8200 ;
8201 return 0;
8202}
8203_ACEOF
5213506e
RW
8204if ac_fn_c_try_compile "$LINENO"; then :
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 8206$as_echo "yes" >&6; }
362c6d2f
KG
8207else
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8209$as_echo "buggy but acceptable" >&6; }
8210fi
8211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 8212else
5213506e 8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 8214$as_echo "no" >&6; }; have_gmp=no
acd26225 8215fi
5213506e 8216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
8217 fi
8218
8219 # Now check the MPFR library.
8220 if test x"$have_gmp" = xyes; then
8221 saved_LIBS="$LIBS"
8222 LIBS="$LIBS $gmplibs"
91e0d220
AP
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8224$as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
5213506e 8225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 8226/* end confdefs.h. */
91e0d220 8227#include <mpfr.h>
acd26225
KG
8228int
8229main ()
8230{
8231
8232 mpfr_t n;
8233 mpfr_t x;
8234 int t;
8235 mpfr_init (n);
8236 mpfr_init (x);
90ca6847
TB
8237 mpfr_atan2 (n, n, x, MPFR_RNDN);
8238 mpfr_erfc (n, x, MPFR_RNDN);
8239 mpfr_subnormalize (x, t, MPFR_RNDN);
3a5729ea
KG
8240 mpfr_clear(n);
8241 mpfr_clear(x);
91e0d220
AP
8242
8243 ;
8244 return 0;
8245}
8246_ACEOF
8247if ac_fn_c_try_link "$LINENO"; then :
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8249$as_echo "yes" >&6; }
8250else
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252$as_echo "no" >&6; }; have_gmp=no
8253fi
8254rm -f core conftest.err conftest.$ac_objext \
8255 conftest$ac_exeext conftest.$ac_ext
8256 LIBS="$saved_LIBS"
8257 fi
8258
8259 # Now check the MPC library
8260 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
8261 saved_LIBS="$LIBS"
8262 LIBS="$LIBS $gmplibs"
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8264$as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266/* end confdefs.h. */
8267#include <mpc.h>
8268int
8269main ()
8270{
8271
8272 mpc_t c;
3a5729ea
KG
8273 mpc_init2 (c, 53);
8274 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8275 mpc_cosh (c, c, MPC_RNDNN);
8276 mpc_pow (c, c, c, MPC_RNDNN);
8277 mpc_acosh (c, c, MPC_RNDNN);
8278 mpc_clear (c);
1c710c3c
DJ
8279
8280 ;
8281 return 0;
8282}
8283_ACEOF
5213506e
RW
8284if ac_fn_c_try_link "$LINENO"; then :
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8286$as_echo "yes" >&6; }
1c710c3c 8287else
5213506e
RW
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289$as_echo "no" >&6; }; have_gmp=no
1c710c3c 8290fi
5213506e
RW
8291rm -f core conftest.err conftest.$ac_objext \
8292 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
8293 LIBS="$saved_LIBS"
8294 fi
8295
e69bf64b 8296 CFLAGS="$saved_CFLAGS"
6de9cd9a 8297
362c6d2f
KG
8298# The library versions listed in the error message below should match
8299# the HARD-minimums enforced above.
e69bf64b 8300 if test x$have_gmp != xyes; then
91e0d220
AP
8301 if test -d ${srcdir}/gcc ; then
8302 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
3a5729ea
KG
8303Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8304their locations. Source code for these libraries can be found at
8305their respective hosting sites as well as at
aeebd94c 8306https://gcc.gnu.org/pub/gcc/infrastructure/. See also
45ab87d4 8307http://gcc.gnu.org/install/prerequisites.html for additional info. If
3a5729ea
KG
8308you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8309make sure that you have installed both the libraries and the header
8310files. They may be located in separate packages." "$LINENO" 5
91e0d220
AP
8311 else
8312 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8313Try the --with-gmp and/or --with-mpfr options to specify
8314their locations. If you obtained GMP and/or MPFR from a vendor
8315distribution package, make sure that you have installed both the libraries
8316and the header files. They may be located in separate packages." "$LINENO" 5
8317 fi
e69bf64b 8318 fi
70ec446f
KG
8319fi
8320
acd26225
KG
8321# Flags needed for both GMP, MPFR and/or MPC.
8322
8323
6de9cd9a
DN
8324
8325
8326
9e3eba15 8327
0ff2d841 8328
0b21f5d3 8329# Libraries to use for stage1 or when not bootstrapping.
00020c16 8330
0b21f5d3
EB
8331# Check whether --with-stage1-libs was given.
8332if test "${with_stage1_libs+set}" = set; then :
8333 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8334 stage1_libs=
00020c16 8335 else
0b21f5d3 8336 stage1_libs=$withval
00020c16
ILT
8337 fi
8338else
5dc85f7e 8339 stage1_libs=
5213506e
RW
8340fi
8341
00020c16
ILT
8342
8343
aac9103b
TT
8344# Whether or not to use -static-libstdc++ and -static-libgcc. The
8345# default is yes if gcc is being built; no otherwise. The reason for
8346# this default is that gdb is sometimes linked against GNU Source
8347# Highlight, which is a shared library that uses C++ exceptions. In
8348# this case, -static-libstdc++ will cause crashes.
8349
8350# Check whether --with-static-standard-libraries was given.
8351if test "${with_static_standard_libraries+set}" = set; then :
8352 withval=$with_static_standard_libraries;
8353else
8354 with_static_standard_libraries=auto
8355fi
8356
8357if test "$with_static_standard_libraries" = auto; then
8358 with_static_standard_libraries=$have_compiler
8359fi
8360
0b21f5d3 8361# Linker flags to use for stage1 or when not bootstrapping.
00020c16 8362
0b21f5d3
EB
8363# Check whether --with-stage1-ldflags was given.
8364if test "${with_stage1_ldflags+set}" = set; then :
8365 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8366 stage1_ldflags=
00020c16 8367 else
0b21f5d3 8368 stage1_ldflags=$withval
00020c16
ILT
8369 fi
8370else
0b21f5d3
EB
8371 stage1_ldflags=
8372 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8373 # if supported. But if the user explicitly specified the libraries to use,
8374 # trust that they are doing what they want.
aac9103b
TT
8375 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8376 -a "$have_static_libs" = yes; then
0b21f5d3
EB
8377 stage1_ldflags="-static-libstdc++ -static-libgcc"
8378 fi
5213506e
RW
8379fi
8380
00020c16
ILT
8381
8382
5dc85f7e 8383# Libraries to use for stage2 and later builds.
00020c16 8384
5213506e
RW
8385# Check whether --with-boot-libs was given.
8386if test "${with_boot_libs+set}" = set; then :
8387 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
8388 poststage1_libs=
8389 else
8390 poststage1_libs=$withval
8391 fi
8392else
5dc85f7e 8393 poststage1_libs=
5213506e
RW
8394fi
8395
00020c16
ILT
8396
8397
ed2eaa9f
ILT
8398# Linker flags to use for stage2 and later builds.
8399
8400# Check whether --with-boot-ldflags was given.
8401if test "${with_boot_ldflags+set}" = set; then :
8402 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8403 poststage1_ldflags=
8404 else
8405 poststage1_ldflags=$withval
8406 fi
8407else
8408 poststage1_ldflags=
bec93d73
ILT
8409 # In stages 2 and 3, default to linking libstdc++ and libgcc
8410 # statically. But if the user explicitly specified the libraries to
8411 # use, trust that they are doing what they want.
8412 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
8413 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8414 fi
8415fi
8416
8417
8418
e357a5e0 8419# GCC GRAPHITE dependency isl.
4a9bb2aa 8420# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
8421
8422
33ad93b9
RG
8423# Check whether --with-isl was given.
8424if test "${with_isl+set}" = set; then :
8425 withval=$with_isl;
5213506e 8426fi
f8bf9252 8427
f8bf9252 8428
eae1a5d4 8429# Treat --without-isl as a request to disable
625afa23 8430# GRAPHITE support and skip all following checks.
eae1a5d4 8431if test "x$with_isl" != "xno"; then
e357a5e0 8432 # Check for isl
625afa23
RG
8433
8434
33ad93b9
RG
8435# Check whether --with-isl-include was given.
8436if test "${with_isl_include+set}" = set; then :
8437 withval=$with_isl_include;
5213506e
RW
8438fi
8439
f8bf9252 8440
33ad93b9
RG
8441# Check whether --with-isl-lib was given.
8442if test "${with_isl_lib+set}" = set; then :
8443 withval=$with_isl_lib;
5213506e 8444fi
f8bf9252 8445
f8bf9252 8446
33ad93b9
RG
8447 # Check whether --enable-isl-version-check was given.
8448if test "${enable_isl_version_check+set}" = set; then :
8449 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8450else
8451 ENABLE_ISL_CHECK=yes
7d32a440
SP
8452fi
8453
8454
33ad93b9
RG
8455 # Initialize isllibs and islinc.
8456 case $with_isl in
8457 no)
8458 isllibs=
8459 islinc=
8460 ;;
8461 "" | yes)
8462 ;;
8463 *)
8464 isllibs="-L$with_isl/lib"
8465 islinc="-I$with_isl/include"
8466 ;;
8467 esac
8468 if test "x${with_isl_include}" != x ; then
8469 islinc="-I$with_isl_include"
8470 fi
8471 if test "x${with_isl_lib}" != x; then
8472 isllibs="-L$with_isl_lib"
8473 fi
8474 if test "x${islinc}" = x && test "x${isllibs}" = x \
8475 && test -d ${srcdir}/isl; then
8476 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8477 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8478 ENABLE_ISL_CHECK=no
560d18d3
AK
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8480$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 8481 fi
7d32a440 8482
eae1a5d4
RG
8483 isllibs="${isllibs} -lisl"
8484
7d32a440 8485
7d32a440 8486
9847828b
RB
8487 if test "${ENABLE_ISL_CHECK}" = yes ; then
8488 _isl_saved_CFLAGS=$CFLAGS
8489 _isl_saved_LDFLAGS=$LDFLAGS
8490 _isl_saved_LIBS=$LIBS
8491
8492 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
8493 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8494 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 8495
f877b3ad
RB
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8497$as_echo_n "checking for isl 0.15 or later... " >&6; }
e0c0c325 8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 8499/* end confdefs.h. */
f877b3ad 8500#include <isl/schedule.h>
622dbadf
BC
8501int
8502main ()
8503{
f877b3ad 8504isl_options_set_schedule_serialize_sccs (NULL, 0);
622dbadf
BC
8505 ;
8506 return 0;
8507}
8508_ACEOF
8509if ac_fn_c_try_link "$LINENO"; then :
9847828b 8510 gcc_cv_isl=yes
622dbadf
BC
8511else
8512 gcc_cv_isl=no
8513fi
8514rm -f core conftest.err conftest.$ac_objext \
8515 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8517$as_echo "$gcc_cv_isl" >&6; }
8518
560d18d3 8519 if test "${gcc_cv_isl}" = no ; then
f877b3ad
RB
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8521$as_echo "required isl version is 0.15 or later" >&6; }
1e050c90
AK
8522 fi
8523
9847828b
RB
8524 CFLAGS=$_isl_saved_CFLAGS
8525 LDFLAGS=$_isl_saved_LDFLAGS
8526 LIBS=$_isl_saved_LIBS
8527 fi
8528
8529
f8bf9252 8530
f8bf9252 8531
33ad93b9
RG
8532
8533
33ad93b9
RG
8534 if test "x${with_isl}" = xno; then
8535 graphite_requested=no
8536 elif test "x${with_isl}" != x \
8537 || test "x${with_isl_include}" != x \
8538 || test "x${with_isl_lib}" != x ; then
8539 graphite_requested=yes
8540 else
8541 graphite_requested=no
7d32a440 8542 fi
d789184e 8543
d789184e
SP
8544
8545
33ad93b9
RG
8546 if test "${gcc_cv_isl}" = no ; then
8547 isllibs=
8548 islinc=
8549 fi
8550
8551 if test "${graphite_requested}" = yes \
8552 && test "x${isllibs}" = x \
8553 && test "x${islinc}" = x ; then
f8bf9252 8554
22e05272 8555 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 8556 fi
f8bf9252 8557
d32ef397 8558
d32ef397
AS
8559fi
8560
e357a5e0 8561# If the isl check failed, disable builds of in-tree variant of isl
625afa23 8562if test "x$with_isl" = xno ||
625afa23 8563 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 8564 noconfigdirs="$noconfigdirs isl"
625afa23 8565 islinc=
32d024bf
RG
8566fi
8567
625afa23
RG
8568
8569
8570
d7f09764
DN
8571# Check for LTO support.
8572# Check whether --enable-lto was given.
8573if test "${enable_lto+set}" = set; then :
8574 enableval=$enable_lto; enable_lto=$enableval
8575else
8576 enable_lto=yes; default_enable_lto=yes
8577fi
8578
8579
7413962d 8580
9a02962b
DK
8581
8582
8583target_elf=no
8584case $target in
8585 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 8586 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 8587 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 8588 nvptx-*-none)
9a02962b
DK
8589 target_elf=no
8590 ;;
8591 *)
8592 target_elf=yes
8593 ;;
8594esac
8595
8596if test $target_elf = yes; then :
48215350
DK
8597 # ELF platforms build the lto-plugin always.
8598 build_lto_plugin=yes
9a02962b 8599
9a02962b
DK
8600else
8601 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 8602 case $target in
deeba76a 8603 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 8604 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
8605 *) enable_lto=no ;;
8606 esac
9a02962b 8607 else
db50fe7d
IS
8608 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8609 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
8610 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8611 # warn during gcc/ subconfigure; unless you're bootstrapping with
8612 # -flto it won't be needed until after installation anyway.
8613 case $target in
9e530bcd 8614 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b 8615 *) if test x"$enable_lto" = x"yes"; then
22e05272 8616 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9a02962b
DK
8617 fi
8618 ;;
8619 esac
8620 fi
1cd0b716 8621 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 8622 # Build it unless LTO was explicitly disabled.
1cd0b716 8623 case $target in
48215350 8624 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
8625 *) ;;
8626 esac
48215350 8627
9a02962b
DK
8628fi
8629
d7f09764 8630
45b3824d
TS
8631# Check whether --enable-linker-plugin-configure-flags was given.
8632if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8633 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8634else
8635 extra_linker_plugin_configure_flags=
8636fi
8637
8638
8639# Check whether --enable-linker-plugin-flags was given.
8640if test "${enable_linker_plugin_flags+set}" = set; then :
8641 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8642else
8643 extra_linker_plugin_flags=
8644fi
8645
8646
8647
cdfee50a
NS
8648# Enable --enable-host-shared.
8649# Checked early to determine whether jit is an 'all' language
8650# Check whether --enable-host-shared was given.
8651if test "${enable_host_shared+set}" = set; then :
8652 enableval=$enable_host_shared; host_shared=$enableval
1edfc8f2 8653 case $host in
a1d2b162
IS
8654 x86_64-*-darwin* | aarch64-*-darwin*)
8655 if test x$host_shared != xyes ; then
8656 # PIC is the default, and actually cannot be switched off.
8657 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8658 host_shared=yes
8659 fi ;;
8660 *) ;;
8661 esac
cdfee50a 8662else
1edfc8f2 8663 case $host in
a1d2b162
IS
8664 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8665 *) host_shared=no ;;
8666 esac
cdfee50a
NS
8667fi
8668
8669
f8bf9252 8670
05048fc2
IS
8671
8672# If we are building PIC/PIE host executables, and we are building dependent
8673# libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8674# code.
8675host_libs_picflag=
8676if test "$host_shared" = "yes";then
8677host_libs_picflag='--with-pic'
8678fi
8679
8680
0823efed 8681# By default, C and C++ are the only stage 1 languages.
e1888513 8682stage1_languages=,c,
2805b53a 8683
00020c16 8684# Target libraries that we bootstrap.
ad1e5170 8685bootstrap_target_libs=,target-libgcc,
00020c16 8686
55ffb5ed
NN
8687# Figure out what language subdirectories are present.
8688# Look if the user specified --enable-languages="..."; if not, use
8689# the environment variable $LANGUAGES if defined. $LANGUAGES might
8690# go away some day.
8691# NB: embedded tabs in this IF block -- do not untabify
8692if test -d ${srcdir}/gcc; then
8693 if test x"${enable_languages+set}" != xset; then
8694 if test x"${LANGUAGES+set}" = xset; then
8695 enable_languages="${LANGUAGES}"
6b1786aa 8696 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed 8697 else
cdfee50a 8698 enable_languages=default
55ffb5ed
NN
8699 fi
8700 else
8701 if test x"${enable_languages}" = x ||
8702 test x"${enable_languages}" = xyes;
8703 then
6b1786aa 8704 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
8705 exit 1
8706 fi
8707 fi
8708 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8709
7f26dfa3
FXC
8710 # 'f95' is the old name for the 'fortran' language. We issue a warning
8711 # and make the substitution.
8712 case ,${enable_languages}, in
8713 *,f95,*)
6b1786aa 8714 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
8715 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8716 ;;
8717 esac
8718
0823efed
DN
8719 # If bootstrapping, C++ must be enabled.
8720 case ",$enable_languages,:$enable_bootstrap" in
8721 *,c++,*:*) ;;
8722 *:yes)
ff3ac0f4
ILT
8723 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8724 enable_languages="${enable_languages},c++"
8725 else
22e05272 8726 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
8727 fi
8728 ;;
8729 esac
8730
55ffb5ed
NN
8731 # First scan to see if an enabled language requires some other language.
8732 # We assume that a given config-lang.in will list all the language
8733 # front ends it requires, even if some are required indirectly.
8734 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8735 case ${lang_frag} in
8736 ..) ;;
8737 # The odd quoting in the next line works around
8738 # an apparent bug in bash 1.12 on linux.
8739 ${srcdir}/gcc/[*]/config-lang.in) ;;
8740 *)
69ecd18f
ILT
8741 # From the config-lang.in, get $language, $lang_requires, and
8742 # $lang_requires_boot_languages.
55ffb5ed
NN
8743 language=
8744 lang_requires=
69ecd18f 8745 lang_requires_boot_languages=
d4360477
NS
8746 # set srcdir during sourcing lang_frag to the gcc dir.
8747 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8748 # polutes this shell
8749 saved_srcdir=${srcdir}
8750 srcdir=${srcdir}/gcc . ${lang_frag}
8751 srcdir=${saved_srcdir}
69ecd18f 8752 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
8753 case ,${enable_languages}, in
8754 *,$other,*) ;;
cdfee50a 8755 *,default,*) ;;
55ffb5ed
NN
8756 *,all,*) ;;
8757 *,$language,*)
8758 echo " \`$other' language required by \`$language'; enabling" 1>&2
8759 enable_languages="${enable_languages},${other}"
8760 ;;
8761 esac
8762 done
69ecd18f
ILT
8763 for other in ${lang_requires_boot_languages} ; do
8764 if test "$other" != "c"; then
8765 case ,${enable_stage1_languages}, in
8766 *,$other,*) ;;
cdfee50a 8767 *,default,*) ;;
69ecd18f
ILT
8768 *,all,*) ;;
8769 *)
8770 case ,${enable_languages}, in
8771 *,$language,*)
8772 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8773 enable_stage1_languages="$enable_stage1_languages,${other}"
8774 ;;
8775 esac
8776 ;;
8777 esac
8778 fi
8779 done
55ffb5ed
NN
8780 ;;
8781 esac
8782 done
8783
e1888513 8784 new_enable_languages=,c,
d7f09764
DN
8785
8786 # If LTO is enabled, add the LTO front end.
d7f09764 8787 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
8788 case ,${enable_languages}, in
8789 *,lto,*) ;;
8790 *) enable_languages="${enable_languages},lto" ;;
8791 esac
1cd0b716 8792 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 8793 configdirs="$configdirs lto-plugin"
d7f09764
DN
8794 fi
8795 fi
8796
426c1eb0
TS
8797 # If we're building an offloading compiler, add the LTO front end.
8798 if test x"$enable_as_accelerator_for" != x ; then
8799 case ,${enable_languages}, in
8800 *,lto,*) ;;
8801 *) enable_languages="${enable_languages},lto" ;;
8802 esac
8803 fi
8804
cdfee50a 8805 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
e1888513 8806 potential_languages=,c,
55ffb5ed 8807
4da3b0f8
ILT
8808 enabled_target_libs=
8809 disabled_target_libs=
8810
55ffb5ed
NN
8811 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8812 case ${lang_frag} in
8813 ..) ;;
8814 # The odd quoting in the next line works around
8815 # an apparent bug in bash 1.12 on linux.
8816 ${srcdir}/gcc/[*]/config-lang.in) ;;
8817 *)
1c710c3c 8818 # From the config-lang.in, get $language, $target_libs,
2805b53a 8819 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
8820 language=
8821 target_libs=
8822 lang_dirs=
1546bb64 8823 subdir_requires=
e1888513
PB
8824 boot_language=no
8825 build_by_default=yes
d4360477
NS
8826 # set srcdir during sourcing. See above about save & restore
8827 saved_srcdir=${srcdir}
8828 srcdir=${srcdir}/gcc . ${lang_frag}
8829 srcdir=${saved_srcdir}
e1888513
PB
8830 if test x${language} = x; then
8831 echo "${lang_frag} doesn't set \$language." 1>&2
8832 exit 1
8833 fi
8834
78767fd9 8835 if test "$language" = "c++"; then
0823efed 8836 boot_language=yes
00020c16
ILT
8837 fi
8838
178f875a 8839 add_this_lang=no
cdfee50a
NS
8840 # C is always enabled, so no need to add it again
8841 if test "$language" != "c"; then
8842 case ,${enable_languages}, in
8843 *,${language},*)
8844 # Language was explicitly selected; include it
d4a10d0a 8845 add_this_lang=yes
cdfee50a
NS
8846 ;;
8847 *,all,*)
8848 # All languages are enabled
8849 add_this_lang=all
8850 ;;
8851 *,default,*)
8852 # 'default' was selected, select it if it is a default language
178f875a 8853 add_this_lang=${build_by_default}
cdfee50a
NS
8854 ;;
8855 esac
8856 fi
6de9cd9a 8857
1546bb64 8858 # Disable languages that need other directories if these aren't available.
95695ad3 8859 for i in $subdir_requires; do
b6348cb3 8860 test -f "$srcdir/gcc/$i/config-lang.in" && continue
cdfee50a
NS
8861 case ${add_this_lang} in
8862 yes)
1546bb64 8863 # Specifically requested language; tell them.
22e05272 8864 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64 8865 ;;
cdfee50a
NS
8866 all)
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8868$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8869 add_this_lang=unsupported
8870 ;;
1546bb64
PB
8871 *)
8872 # Silently disable.
e1888513 8873 add_this_lang=unsupported
1546bb64
PB
8874 ;;
8875 esac
8876 done
8877
e1888513 8878 # Disable Ada if no preexisting GNAT is available.
cdfee50a
NS
8879 case ${add_this_lang}:${language}:${have_gnat} in
8880 yes:ada:no)
e1888513 8881 # Specifically requested language; tell them.
22e05272 8882 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
e1888513 8883 ;;
cdfee50a
NS
8884 all:ada:no)
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8886$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8887 add_this_lang=unsupported
8888 ;;
e1888513
PB
8889 *:ada:no)
8890 # Silently disable.
8891 add_this_lang=unsupported
8892 ;;
8893 esac
8894
5fee5ec3
IB
8895 # Disable D if no preexisting GDC is available.
8896 case ${add_this_lang}:${language}:${have_gdc} in
8897 yes:d:no)
8898 # Specifically requested language; tell them.
8899 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8900 ;;
8901 all:d:no)
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8903$as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8904 add_this_lang=unsupported
8905 ;;
8906 *:d:no)
8907 # Silently disable.
8908 add_this_lang=unsupported
8909 ;;
8910 esac
8911
cdfee50a 8912 # Disable jit if -enable-host-shared not specified
ffac9597
JM
8913 # but not if building for Mingw. All code in Windows
8914 # is position independent code (PIC).
c83027f3
NB
8915 case $target in
8916 *mingw*) ;;
8917 *)
8918 case ${add_this_lang}:${language}:${host_shared} in
8919 yes:jit:no)
8920 # PR jit/64780: explicitly specify --enable-host-shared
22e05272 8921 as_fn_error $? "
cdfee50a
NS
8922Enabling language \"jit\" requires --enable-host-shared.
8923
8924--enable-host-shared typically slows the rest of the compiler down by
8925a few %, so you must explicitly enable it.
8926
8927If you want to build both the jit and the regular compiler, it is often
8928best to do this via two separate configure/builds, in separate
8929directories, to avoid imposing the performance cost of
8930--enable-host-shared on the regular compiler." "$LINENO" 5
c83027f3
NB
8931 ;;
8932 all:jit:no)
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
cdfee50a 8934$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
c83027f3
NB
8935 add_this_lang=unsupported
8936 ;;
8937 *:jit:no)
8938 # Silently disable.
8939 add_this_lang=unsupported
8940 ;;
8941 esac
8942 ;;
8943 esac
cdfee50a
NS
8944
8945 # Disable a language that is unsupported by the target.
8946 case "${add_this_lang}: $unsupported_languages " in
8947 no:*) ;;
8948 unsupported:*) ;;
8949 *:*" $language "*)
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8951$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
e1888513 8952 add_this_lang=unsupported
4fab7234
HPN
8953 ;;
8954 esac
8955
6de9cd9a 8956 case $add_this_lang in
e1888513 8957 unsupported)
55ffb5ed 8958 # Remove language-dependent dirs.
4da3b0f8
ILT
8959 disabled_target_libs="$disabled_target_libs $target_libs"
8960 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 8961 ;;
e1888513
PB
8962 no)
8963 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
8964 disabled_target_libs="$disabled_target_libs $target_libs"
8965 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
8966 potential_languages="${potential_languages}${language},"
8967 ;;
cdfee50a 8968 all|yes)
e1888513
PB
8969 new_enable_languages="${new_enable_languages}${language},"
8970 potential_languages="${potential_languages}${language},"
2805b53a 8971 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 8972 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
8973 case "${boot_language}:,$enable_stage1_languages," in
8974 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 8975 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
8976 case ",$stage1_languages," in
8977 *,$language,* | ,yes, | ,all,) ;;
8978 *) stage1_languages="${stage1_languages}${language}," ;;
8979 esac
00020c16 8980 # We need to bootstrap any supporting libraries.
5fee5ec3 8981 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
2805b53a
NN
8982 ;;
8983 esac
8984 ;;
55ffb5ed
NN
8985 esac
8986 ;;
8987 esac
8988 done
8989
4da3b0f8
ILT
8990 # Add target libraries which are only needed for disabled languages
8991 # to noconfigdirs.
8992 if test -n "$disabled_target_libs"; then
8993 for dir in $disabled_target_libs; do
8994 case " $enabled_target_libs " in
8995 *" ${dir} "*) ;;
8996 *) noconfigdirs="$noconfigdirs $dir" ;;
8997 esac
8998 done
8999 fi
9000
5213506e
RW
9001 # Check whether --enable-stage1-languages was given.
9002if test "${enable_stage1_languages+set}" = set; then :
9003 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
9004 ,no,|,,)
9005 # Set it to something that will have no effect in the loop below
9006 enable_stage1_languages=c ;;
9007 ,yes,)
9008 enable_stage1_languages=`echo $new_enable_languages | \
9009 sed -e "s/^,//" -e "s/,$//" ` ;;
9010 *,all,*)
9011 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9012 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9013 esac
9014
9015 # Add "good" languages from enable_stage1_languages to stage1_languages,
9016 # while "bad" languages go in missing_languages. Leave no duplicates.
9017 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9018 case $potential_languages in
9019 *,$i,*)
9020 case $stage1_languages in
9021 *,$i,*) ;;
9022 *) stage1_languages="$stage1_languages$i," ;;
9023 esac ;;
9024 *)
9025 case $missing_languages in
9026 *,$i,*) ;;
9027 *) missing_languages="$missing_languages$i," ;;
9028 esac ;;
9029 esac
9030 done
5213506e
RW
9031fi
9032
e1888513
PB
9033
9034 # Remove leading/trailing commas that were added for simplicity
9035 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 9036 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
9037 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9038 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9039
55ffb5ed 9040 if test "x$missing_languages" != x; then
22e05272 9041 as_fn_error $? "
0cf085e4 9042The following requested languages could not be built: ${missing_languages}
5213506e 9043Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 9044 fi
55ffb5ed
NN
9045 if test "x$new_enable_languages" != "x$enable_languages"; then
9046 echo The following languages will be built: ${new_enable_languages}
e1888513 9047 enable_languages="$new_enable_languages"
55ffb5ed 9048 fi
e1888513 9049
1c710c3c 9050
b2eaac4a 9051 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
9052fi
9053
27079765
AH
9054# Handle --disable-<component> generically.
9055for dir in $configdirs $build_configdirs $target_configdirs ; do
9056 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
9057 varname=`echo $dirname | sed -e s/+/_/g`
9058 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
9059 noconfigdirs="$noconfigdirs $dir"
9060 fi
9061done
9062
43c40f3e
RO
9063# Check for Boehm's garbage collector
9064# Check whether --enable-objc-gc was given.
9065if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
9066 enableval=$enable_objc_gc;
9067fi
9068
9069
9070# Check whether --with-target-bdw-gc was given.
9071if test "${with_target_bdw_gc+set}" = set; then :
9072 withval=$with_target_bdw_gc;
9073fi
9074
9075
9076# Check whether --with-target-bdw-gc-include was given.
9077if test "${with_target_bdw_gc_include+set}" = set; then :
9078 withval=$with_target_bdw_gc_include;
9079fi
9080
9081
9082# Check whether --with-target-bdw-gc-lib was given.
9083if test "${with_target_bdw_gc_lib+set}" = set; then :
9084 withval=$with_target_bdw_gc_lib;
9085fi
9086
9087
9088case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9090$as_echo_n "checking for bdw garbage collector... " >&6; }
9091 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9093$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
9094 else
9095 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
22e05272 9096 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
114bf3f1 9097 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
22e05272 9098 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
114bf3f1
MK
9099 else
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9101$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9102 fi
9103 fi
43c40f3e
RO
9104esac
9105
e4cba494 9106# Disable libitm, libsanitizer, libvtv if we're not building C++
99776ebd 9107case ,${enable_languages}, in
1007a55c 9108 *,c++,*)
5e9d6aa4 9109 # Disable libitm, libsanitizer if we're not building libstdc++
1007a55c
JW
9110 case "${noconfigdirs}" in
9111 *target-libstdc++-v3*)
5e9d6aa4 9112 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1007a55c
JW
9113 ;;
9114 *) ;;
9115 esac
9116 ;;
99776ebd 9117 *)
e4cba494 9118 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
9119 ;;
9120esac
9121
dc614a83
AB
9122# If gcc/ is not in the source tree then we'll not be building a
9123# target compiler, assume in that case we don't want to build any
9124# target libraries or tools.
9125#
9126# This was added primarily for the benefit for binutils-gdb who reuse
9127# this configure script, but don't always have target tools available.
9128if test ! -d ${srcdir}/gcc; then
9129 skipdirs="${skipdirs} ${target_configdirs}"
9130fi
9131
ee6a22df
L
9132# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9133# $build_configdirs and $target_configdirs.
55ffb5ed
NN
9134# If we have the source for $noconfigdirs entries, add them to $notsupp.
9135
9136notsupp=""
9137for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 9138 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
9139 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9140 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9141 if test -r $srcdir/$dirname/configure ; then
9142 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9143 true
9144 else
9145 notsupp="$notsupp $dir"
9146 fi
9147 fi
9148 fi
ee6a22df
L
9149 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9150 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9151 if test -r $srcdir/$dirname/configure ; then
9152 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9153 true
9154 else
9155 notsupp="$notsupp $dir"
9156 fi
9157 fi
9158 fi
55ffb5ed
NN
9159 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9160 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9161 if test -r $srcdir/$dirname/configure ; then
9162 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9163 true
9164 else
9165 notsupp="$notsupp $dir"
9166 fi
9167 fi
9168 fi
9169done
9170
55ffb5ed
NN
9171# Quietly strip out all directories which aren't configurable in this tree.
9172# This relies on all configurable subdirectories being autoconfiscated, which
9173# is now the case.
23f6b2f9
PB
9174build_configdirs_all="$build_configdirs"
9175build_configdirs=
9176for i in ${build_configdirs_all} ; do
1c710c3c 9177 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
9178 if test -f ${srcdir}/$j/configure ; then
9179 build_configdirs="${build_configdirs} $i"
9180 fi
9181done
9182
55ffb5ed
NN
9183configdirs_all="$configdirs"
9184configdirs=
9185for i in ${configdirs_all} ; do
9186 if test -f ${srcdir}/$i/configure ; then
9187 configdirs="${configdirs} $i"
9188 fi
9189done
23f6b2f9 9190
55ffb5ed
NN
9191target_configdirs_all="$target_configdirs"
9192target_configdirs=
9193for i in ${target_configdirs_all} ; do
1c710c3c 9194 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
9195 if test -f ${srcdir}/$j/configure ; then
9196 target_configdirs="${target_configdirs} $i"
9197 fi
9198done
9199
45b3824d
TS
9200# libiberty-linker-plugin is special: it doesn't have its own source directory,
9201# so we have to add it after the preceding checks.
9202if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9203then
9204 case " $configdirs " in
9205 *" libiberty "*)
9206 # If we can build libiberty, we can also build libiberty-linker-plugin.
9207 configdirs="$configdirs libiberty-linker-plugin"
9208 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9209 --with-libiberty=../libiberty-linker-plugin";;
9210 *)
22e05272 9211 as_fn_error $? "libiberty missing" "$LINENO" 5;;
45b3824d
TS
9212 esac
9213fi
9214
fca38047
TS
9215# Sometimes we have special requirements for the host libiberty.
9216extra_host_libiberty_configure_flags=
9217case " $configdirs " in
15368960 9218 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
fca38047
TS
9219 # When these are to be built as shared libraries, the same applies to
9220 # libiberty.
9221 extra_host_libiberty_configure_flags=--enable-shared
9222 ;;
04bb15e4
TV
9223esac
9224
9225
9226# Sometimes we have special requirements for the host zlib.
9227extra_host_zlib_configure_flags=
9228case " $configdirs " in
1c01ebf6
L
9229 *" bfd "*)
9230 # When bfd is to be built as a shared library, the same applies to
9231 # zlib.
9232 if test "$enable_shared" = "yes"; then
9233 extra_host_zlib_configure_flags=--enable-host-shared
9234 fi
9235 ;;
fca38047
TS
9236esac
9237
9238
55ffb5ed
NN
9239# Produce a warning message for the subdirs we can't configure.
9240# This isn't especially interesting in the Cygnus tree, but in the individual
9241# FSF releases, it's important to let people know when their machine isn't
9242# supported by the one or two programs in a package.
9243
9244if test -n "${notsupp}" && test -z "${norecursion}" ; then
9245 # If $appdirs is non-empty, at least one of those directories must still
9246 # be configured, or we error out. (E.g., if the gas release supports a
9247 # specified target in some subdirs but not the gas subdir, we shouldn't
9248 # pretend that all is well.)
9249 if test -n "$appdirs" ; then
9250 for dir in $appdirs ; do
9251 if test -r $dir/Makefile.in ; then
9252 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9253 appdirs=""
9254 break
9255 fi
23f6b2f9 9256 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
9257 appdirs=""
9258 break
9259 fi
9260 fi
9261 done
9262 if test -n "$appdirs" ; then
9263 echo "*** This configuration is not supported by this package." 1>&2
9264 exit 1
9265 fi
9266 fi
9267 # Okay, some application will build, or we don't care to check. Still
9268 # notify of subdirs not getting built.
9269 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9270 echo " ${notsupp}" 1>&2
9271 echo " (Any other directories should still work fine.)" 1>&2
9272fi
9273
9274case "$host" in
9275 *msdosdjgpp*)
9276 enable_gdbtk=no ;;
9277esac
9278
c3a86da9
DJ
9279# To find our prefix, in gcc_cv_tool_prefix.
9280
9281# The user is always right.
9282if test "${PATH_SEPARATOR+set}" != set; then
9283 echo "#! /bin/sh" >conf$$.sh
9284 echo "exit 0" >>conf$$.sh
9285 chmod +x conf$$.sh
9286 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9287 PATH_SEPARATOR=';'
9288 else
9289 PATH_SEPARATOR=:
9290 fi
9291 rm -f conf$$.sh
9292fi
9293
9294
3c36aa6b
JJ
9295 get_gcc_base_ver="cat"
9296
9297# Check whether --with-gcc-major-version-only was given.
9298if test "${with_gcc_major_version_only+set}" = set; then :
9299 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
31db0fe0 9300 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
9301 fi
9302
9303fi
9304
9305
9306
9307
9308
c3a86da9
DJ
9309
9310if test "x$exec_prefix" = xNONE; then
9311 if test "x$prefix" = xNONE; then
9312 gcc_cv_tool_prefix=$ac_default_prefix
9313 else
9314 gcc_cv_tool_prefix=$prefix
9315 fi
9316else
9317 gcc_cv_tool_prefix=$exec_prefix
9318fi
9319
9320# If there is no compiler in the tree, use the PATH only. In any
9321# case, if there is no compiler in the tree nobody should use
9322# AS_FOR_TARGET and LD_FOR_TARGET.
9323if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
9324 if test x$with_gcc_major_version_only = xyes ; then
9325 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9326 else
9327 gcc_version=`cat $srcdir/gcc/BASE-VER`
9328 fi
c3a86da9
DJ
9329 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9330 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9331 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9332 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9333 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9334 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9335else
9336 gcc_cv_tool_dirs=
9337fi
9338
9339if test x$build = x$target && test -n "$md_exec_prefix"; then
9340 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9341fi
9342
9343
9344
55ffb5ed
NN
9345copy_dirs=
9346
1c710c3c 9347
5213506e
RW
9348# Check whether --with-build-sysroot was given.
9349if test "${with_build_sysroot+set}" = set; then :
9350 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
9351 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9352 fi
9353else
9354 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 9355fi
526635cb
MM
9356
9357
c8aea42c 9358
5213506e
RW
9359
9360# Check whether --with-debug-prefix-map was given.
9361if test "${with_debug_prefix_map+set}" = set; then :
9362 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
9363 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9364 for debug_map in $withval; do
9365 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9366 done
9367 fi
9368else
9369 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
9370fi
9371
c8aea42c
PB
9372
9373
1c8bd6a3
PB
9374# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9375# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9376# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9377# We want to ensure that TARGET libraries (which we know are built with
9378# gcc) are built with "-O2 -g", so include those options when setting
9379# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9380if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9381 if test "x${is_cross_compiler}" = xyes; then
9382 CFLAGS_FOR_TARGET="-g -O2"
9383 else
9384 CFLAGS_FOR_TARGET=$CFLAGS
9385 case " $CFLAGS " in
9386 *" -O2 "*) ;;
9387 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9388 esac
9389 case " $CFLAGS " in
9390 *" -g "* | *" -g3 "*) ;;
9391 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9392 esac
9393 fi
1c8bd6a3
PB
9394fi
9395
9396
9397if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9398 if test "x${is_cross_compiler}" = xyes; then
9399 CXXFLAGS_FOR_TARGET="-g -O2"
9400 else
9401 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9402 case " $CXXFLAGS " in
9403 *" -O2 "*) ;;
9404 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9405 esac
9406 case " $CXXFLAGS " in
9407 *" -g "* | *" -g3 "*) ;;
9408 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9409 esac
9410 fi
1c8bd6a3
PB
9411fi
9412
9413
6f57bdf6
DK
9414
9415
55ffb5ed
NN
9416# Handle --with-headers=XXX. If the value is not "yes", the contents of
9417# the named directory are copied to $(tooldir)/sys-include.
9418if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9419 if test x${is_cross_compiler} = xno ; then
9420 echo 1>&2 '***' --with-headers is only supported when cross compiling
9421 exit 1
9422 fi
9423 if test x"${with_headers}" != xyes ; then
c3a86da9 9424 x=${gcc_cv_tool_prefix}
1c710c3c 9425 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
9426 fi
9427fi
9428
9429# Handle --with-libs=XXX. If the value is not "yes", the contents of
9430# the name directories are copied to $(tooldir)/lib. Multiple directories
9431# are permitted.
9432if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9433 if test x${is_cross_compiler} = xno ; then
9434 echo 1>&2 '***' --with-libs is only supported when cross compiling
9435 exit 1
9436 fi
9437 if test x"${with_libs}" != xyes ; then
9438 # Copy the libraries in reverse order, so that files in the first named
9439 # library override files in subsequent libraries.
c3a86da9 9440 x=${gcc_cv_tool_prefix}
55ffb5ed 9441 for l in ${with_libs}; do
1c710c3c 9442 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
9443 done
9444 fi
9445fi
9446
d7f09764 9447# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
9448#
9449# This is done by determining whether or not the appropriate directory
9450# is available, and by checking whether or not specific configurations
9451# have requested that this magic not happen.
1c710c3c
DJ
9452#
9453# The command line options always override the explicit settings in
6b1786aa 9454# configure.ac, and the settings in configure.ac override this magic.
e8b05380 9455#
1c710c3c 9456# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 9457# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
9458# --without-gnu-ld options for the configure script. Similarly, if
9459# the default is to use the included zlib and you don't want to do that,
9460# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
9461
9462if test x${use_gnu_as} = x &&
9463 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9464 with_gnu_as=yes
9465 extra_host_args="$extra_host_args --with-gnu-as"
9466fi
9467
9468if test x${use_gnu_ld} = x &&
5afab7ad 9469 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
9470 with_gnu_ld=yes
9471 extra_host_args="$extra_host_args --with-gnu-ld"
9472fi
9473
d7f09764
DN
9474if test x${use_included_zlib} = x &&
9475 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9476 :
9477else
9478 with_system_zlib=yes
9479 extra_host_args="$extra_host_args --with-system-zlib"
9480fi
9481
e8b05380
PB
9482# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9483# can detect this case.
9484
9485if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9486 with_newlib=yes
9487 extra_host_args="$extra_host_args --with-newlib"
9488fi
9489
55ffb5ed
NN
9490# Handle ${copy_dirs}
9491set fnord ${copy_dirs}
9492shift
9493while test $# != 0 ; do
9494 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9495 :
9496 else
9497 echo Copying $1 to $2
9498
9499 # Use the install script to create the directory and all required
9500 # parent directories.
9501 if test -d $2 ; then
9502 :
9503 else
9504 echo >config.temp
9505 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9506 fi
9507
9508 # Copy the directory, assuming we have tar.
9509 # FIXME: Should we use B in the second tar? Not all systems support it.
9510 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9511
9512 # It is the responsibility of the user to correctly adjust all
9513 # symlinks. If somebody can figure out how to handle them correctly
9514 # here, feel free to add the code.
9515
9516 echo $1 > $2/COPIED
9517 fi
9518 shift; shift
9519done
9520
e8b05380
PB
9521# Determine a target-dependent exec_prefix that the installed
9522# gcc will search in. Keep this list sorted by triplet, with
9523# the *-*-osname triplets last.
9524md_exec_prefix=
9525case "${target}" in
30b74385 9526 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
9527 md_exec_prefix=/dev/env/DJDIR/bin
9528 ;;
e8b05380 9529 *-*-hpux* | \
e8b05380 9530 *-*-nto-qnx* | \
6de66370 9531 *-*-solaris2*)
e8b05380
PB
9532 md_exec_prefix=/usr/ccs/bin
9533 ;;
9534esac
9535
671aa708
NN
9536extra_arflags_for_target=
9537extra_nmflags_for_target=
9538extra_ranlibflags_for_target=
9539target_makefile_frag=/dev/null
9540case "${target}" in
58e24147
AM
9541 spu-*-*)
9542 target_makefile_frag="config/mt-spu"
9543 ;;
d896cc4d 9544 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
9545 target_makefile_frag="config/mt-sde"
9546 ;;
1ec3b87b
RS
9547 mipsisa*-*-elfoabi*)
9548 target_makefile_frag="config/mt-mips-elfoabi"
9549 ;;
08d0963a
RS
9550 mips*-*-*linux* | mips*-*-gnu*)
9551 target_makefile_frag="config/mt-mips-gnu"
9552 ;;
707f1839
SL
9553 nios2-*-elf*)
9554 target_makefile_frag="config/mt-nios2-elf"
9555 ;;
76052545
EB
9556 *-*-linux-android*)
9557 target_makefile_frag="config/mt-android"
9558 ;;
416ac4d4 9559 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 9560 target_makefile_frag="config/mt-gnu"
671aa708
NN
9561 ;;
9562 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 9563 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
9564 # commands to handle both 32-bit and 64-bit objects. These flags are
9565 # harmless if we're using GNU nm or ar.
9566 extra_arflags_for_target=" -X32_64"
9567 extra_nmflags_for_target=" -B -X32_64"
9568 ;;
671aa708
NN
9569esac
9570
9571alphaieee_frag=/dev/null
9572case $target in
9573 alpha*-*-*)
9574 # This just makes sure to use the -mieee option to build target libs.
9575 # This should probably be set individually by each library.
9576 alphaieee_frag="config/mt-alphaieee"
9577 ;;
9578esac
9579
9580# If --enable-target-optspace always use -Os instead of -O2 to build
9581# the target libraries, similarly if it is not specified, use -Os
9582# on selected platforms.
9583ospace_frag=/dev/null
9584case "${enable_target_optspace}:${target}" in
9585 yes:*)
9586 ospace_frag="config/mt-ospace"
9587 ;;
9588 :d30v-*)
9589 ospace_frag="config/mt-d30v"
9590 ;;
d9063947 9591 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
9592 ospace_frag="config/mt-ospace"
9593 ;;
9594 no:* | :*)
9595 ;;
9596 *)
9597 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9598 ;;
9599esac
9600
671aa708
NN
9601# Some systems (e.g., one of the i386-aix systems the gas testers are
9602# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 9603tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
9604build_tooldir=${tooldir}
9605
671aa708
NN
9606# Create a .gdbinit file which runs the one in srcdir
9607# and tells GDB to look there for source files.
9608
9609if test -r ${srcdir}/.gdbinit ; then
9610 case ${srcdir} in
9611 .) ;;
9612 *) cat > ./.gdbinit <<EOF
9613# ${NO_EDIT}
9614dir ${srcdir}
9615dir .
9616source ${srcdir}/.gdbinit
9617EOF
9618 ;;
9619 esac
9620fi
9621
671aa708
NN
9622# Make sure that the compiler is able to generate an executable. If it
9623# can't, we are probably in trouble. We don't care whether we can run the
9624# executable--we might be using a cross compiler--we only care whether it
9625# can be created. At this point the main configure script has set CC.
9626we_are_ok=no
9627echo "int main () { return 0; }" > conftest.c
9628${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9629if test $? = 0 ; then
9630 if test -s conftest || test -s conftest.exe ; then
9631 we_are_ok=yes
9632 fi
1c710c3c 9633fi
671aa708
NN
9634case $we_are_ok in
9635 no)
9636 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9637 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9638 rm -f conftest*
9639 exit 1
9640 ;;
9641esac
9642rm -f conftest*
9643
d89f0ad6 9644# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
9645case "${host}" in
9646 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 9647 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 9648 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
9649 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9650esac
9651
d89f0ad6
AL
9652# On systems where the dynamic library environment variable is PATH,
9653# gcc/ will put dynamic libraries into a subdirectory to avoid adding
9654# built executables to PATH.
9655if test "$RPATH_ENVVAR" = PATH; then
9656 GCC_SHLIB_SUBDIR=/shlib
9657else
9658 GCC_SHLIB_SUBDIR=
9659fi
9660
beeda1d9
JJ
9661# Adjust the toplevel makefile according to whether bootstrap was selected.
9662case $enable_bootstrap in
9663 yes)
9664 bootstrap_suffix=bootstrap
9665 BUILD_CONFIG=bootstrap-debug
9666 ;;
9667 no)
9668 bootstrap_suffix=no-bootstrap
9669 BUILD_CONFIG=
9670 ;;
9671esac
9672
9673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9674$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9675
9676
9677# Check whether --with-build-config was given.
9678if test "${with_build_config+set}" = set; then :
9679 withval=$with_build_config; case $with_build_config in
9680 yes) with_build_config= ;;
9681 no) with_build_config= BUILD_CONFIG= ;;
9682 esac
9683fi
9684
9685
9686if test "x${with_build_config}" != x; then
9687 BUILD_CONFIG=$with_build_config
9688else
9689 case $BUILD_CONFIG in
9690 bootstrap-debug)
9691 if echo "int f (void) { return 0; }" > conftest.c &&
9692 ${CC} -c conftest.c &&
9693 mv conftest.o conftest.o.g0 &&
9694 ${CC} -c -g conftest.c &&
9695 mv conftest.o conftest.o.g &&
9696 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9697 :
9698 else
9699 BUILD_CONFIG=
9700 fi
9701 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9702 ;;
9703 esac
9704fi
9705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9706$as_echo "$BUILD_CONFIG" >&6; }
9707
9708
9709# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9711$as_echo_n "checking for --enable-vtable-verify... " >&6; }
9712# Check whether --enable-vtable-verify was given.
9713if test "${enable_vtable_verify+set}" = set; then :
9714 enableval=$enable_vtable_verify; case "$enableval" in
9715 yes) enable_vtable_verify=yes ;;
9716 no) enable_vtable_verify=no ;;
9717 *) enable_vtable_verify=no;;
9718 esac
9719else
9720 enable_vtable_verify=no
9721fi
9722
9723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9724$as_echo "$enable_vtable_verify" >&6; }
9725
671aa708
NN
9726# Record target_configdirs and the configure arguments for target and
9727# build configuration in Makefile.
9728target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 9729build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 9730bootstrap_fixincludes=no
671aa708 9731
ad1e5170
JR
9732# If we are building libgomp, bootstrap it.
9733if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9734 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9735fi
9736
beeda1d9
JJ
9737# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9738# or bootstrap-ubsan, bootstrap it.
9739if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9740 case "$BUILD_CONFIG" in
170e618e 9741 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
beeda1d9 9742 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 9743 bootstrap_fixincludes=yes
beeda1d9
JJ
9744 ;;
9745 esac
ac8701fe
L
9746fi
9747
beeda1d9
JJ
9748# If we are building libvtv and --enable-vtable-verify, bootstrap it.
9749if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9750 test "$enable_vtable_verify" != no; then
2077db1b
CT
9751 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9752fi
9753
5fee5ec3
IB
9754# If we are building libatomic and the list of enabled languages includes the
9755# D frontend, bootstrap it.
9756if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9757 case ,${enable_languages}, in
9758 *,d,*)
9759 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9760 ;;
9761 esac
9762fi
9763
671aa708
NN
9764# Determine whether gdb needs tk/tcl or not.
9765# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9766# and in that case we want gdb to be built without tk. Ugh!
9767# In fact I believe gdb is the *only* package directly dependent on tk,
9768# so we should be able to put the 'maybe's in unconditionally and
9769# leave out the maybe dependencies when enable_gdbtk is false. I'm not
9770# 100% sure that that's safe though.
e914a571 9771
b4f96efe 9772gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
9773case "$enable_gdbtk" in
9774 no)
9775 GDB_TK="" ;;
e914a571
AC
9776 yes)
9777 GDB_TK="${gdb_tk}" ;;
671aa708 9778 *)
e914a571
AC
9779 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9780 # distro. Eventually someone will fix this and move Insight, nee
9781 # gdbtk to a separate directory.
9782 if test -d ${srcdir}/gdb/gdbtk ; then
9783 GDB_TK="${gdb_tk}"
9784 else
9785 GDB_TK=""
9786 fi
9787 ;;
671aa708 9788esac
ef9db8d5
DJ
9789CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9790INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 9791
f9d09df0
TT
9792# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9793# else does, only include them if one of these is built. The Makefile
9794# provides the ordering, so it's enough here to add to the list.
9795case " ${configdirs} " in
9796 *\ gdb\ *)
9797 configdirs="${configdirs} gnulib gdbsupport"
9798 ;;
9799 *\ gdbserver\ *)
9800 configdirs="${configdirs} gnulib gdbsupport"
9801 ;;
f14c9bd4
MF
9802 *\ sim\ *)
9803 configdirs="${configdirs} gnulib"
9804 ;;
f9d09df0 9805esac
98e5be21 9806
60975492 9807# Strip out unwanted targets.
8b87bb96
NN
9808
9809# While at that, we remove Makefiles if we were started for recursive
9810# configuration, so that the top-level Makefile reconfigures them,
9811# like we used to do when configure itself was recursive.
8b87bb96 9812
3e54529c
RW
9813# Loop over modules. We used to use the "$extrasub" feature from Autoconf
9814# but now we're fixing up the Makefile ourselves with the additional
9815# commands passed to AC_CONFIG_FILES. Use separate variables
9816# extrasub-{build,host,target} not because there is any reason to split
9817# the substitutions up that way, but only to remain below the limit of
9818# 99 commands in a script, for HP-UX sed.
da34ca3f
AO
9819
9820# Do not nest @if/@endif or @unless/@endunless pairs, because
9821# configure will not warn you at all.
8b87bb96 9822
79cd2b23
RW
9823case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9824 yes:yes:*\ gold\ *:*,c++,*) ;;
9825 yes:yes:*\ gold\ *:*)
22e05272 9826 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
79cd2b23
RW
9827 ;;
9828esac
9829
3e54529c 9830extrasub_build=
23f6b2f9 9831for module in ${build_configdirs} ; do
5607edfd
PB
9832 if test -z "${no_recursion}" \
9833 && test -f ${build_subdir}/${module}/Makefile; then
9834 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9835 rm -f ${build_subdir}/${module}/Makefile
9836 fi
3e54529c 9837 extrasub_build="$extrasub_build
5607edfd
PB
9838/^@if build-$module\$/d
9839/^@endif build-$module\$/d
da34ca3f 9840/^@unless build-$module\$/,/^@endunless build-$module\$/d
5607edfd 9841/^@if build-$module-$bootstrap_suffix\$/d
da34ca3f
AO
9842/^@endif build-$module-$bootstrap_suffix\$/d
9843/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
5607edfd 9844done
3e54529c 9845extrasub_host=
5607edfd 9846for module in ${configdirs} ; do
a6fbc1e2 9847 if test -z "${no_recursion}"; then
f063a9ed 9848 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
9849 if test -f ${file}; then
9850 echo 1>&2 "*** removing ${file} to force reconfigure"
9851 rm -f ${file}
9852 fi
9853 done
5607edfd 9854 fi
9e1c8fc1
JJ
9855 case ${module},${bootstrap_fixincludes} in
9856 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9857 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9858 esac
3e54529c 9859 extrasub_host="$extrasub_host
5607edfd
PB
9860/^@if $module\$/d
9861/^@endif $module\$/d
da34ca3f 9862/^@unless $module\$/,/^@endunless $module\$/d
9e1c8fc1 9863/^@if $module-$host_bootstrap_suffix\$/d
da34ca3f
AO
9864/^@endif $module-$host_bootstrap_suffix\$/d
9865/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
5607edfd 9866done
3e54529c 9867extrasub_target=
5607edfd
PB
9868for module in ${target_configdirs} ; do
9869 if test -z "${no_recursion}" \
9870 && test -f ${target_subdir}/${module}/Makefile; then
9871 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9872 rm -f ${target_subdir}/${module}/Makefile
9873 fi
00020c16
ILT
9874
9875 # We only bootstrap target libraries listed in bootstrap_target_libs.
9876 case $bootstrap_target_libs in
9877 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9878 *) target_bootstrap_suffix=no-bootstrap ;;
9879 esac
9880
3e54529c 9881 extrasub_target="$extrasub_target
5607edfd
PB
9882/^@if target-$module\$/d
9883/^@endif target-$module\$/d
da34ca3f 9884/^@unless target-$module\$/,/^@endunless target-$module\$/d
00020c16 9885/^@if target-$module-$target_bootstrap_suffix\$/d
da34ca3f
AO
9886/^@endif target-$module-$target_bootstrap_suffix\$/d
9887/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
9888done
9889
3e54529c
RW
9890# Do the final fixup along with target modules.
9891extrasub_target="$extrasub_target
da34ca3f
AO
9892/^@if /,/^@endif /d
9893/^@unless /d
9894/^@endunless /d"
671aa708 9895
4a5e71f2
L
9896if test "$enable_pgo_build" != "no"; then
9897 extrasub_build="$extrasub_build
9898/^@if pgo-build\$/d
9899/^@endif pgo-build\$/d"
9900fi
9901
671aa708
NN
9902# Create the serialization dependencies. This uses a temporary file.
9903
5213506e
RW
9904# Check whether --enable-serial-configure was given.
9905if test "${enable_serial_configure+set}" = set; then :
9906 enableval=$enable_serial_configure;
9907fi
ade82b16
AO
9908
9909
bf1d3e81
NN
9910case ${enable_serial_configure} in
9911 yes)
9912 enable_serial_build_configure=yes
9913 enable_serial_host_configure=yes
9914 enable_serial_target_configure=yes
9915 ;;
9916esac
9917
671aa708
NN
9918# These force 'configure's to be done one at a time, to avoid problems
9919# with contention over a shared config.cache.
9920rm -f serdep.tmp
7d115e01 9921if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
ade82b16 9922echo '# serdep.tmp' > serdep.tmp
7d115e01 9923fi
671aa708 9924olditem=
bf1d3e81 9925test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
9926for item in ${build_configdirs} ; do
9927 case ${olditem} in
9928 "") ;;
ade82b16 9929 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
9930 esac
9931 olditem=${item}
9932done
9933olditem=
bf1d3e81 9934test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
9935for item in ${configdirs} ; do
9936 case ${olditem} in
9937 "") ;;
ade82b16 9938 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
9939 esac
9940 olditem=${item}
9941done
9942olditem=
bf1d3e81 9943test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
9944for item in ${target_configdirs} ; do
9945 case ${olditem} in
9946 "") ;;
ade82b16 9947 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
9948 esac
9949 olditem=${item}
9950done
9951serialization_dependencies=serdep.tmp
9952
9953
ade82b16 9954# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 9955# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
9956# might not want to pass down to subconfigures. The exception being
9957# --cache-file=/dev/null, which is used to turn off the use of cache
9958# files altogether, and which should be passed on to subconfigures.
9959# Also strip program-prefix, program-suffix, and program-transform-name,
9960# so that we can pass down a consistent program-transform-name.
1c710c3c 9961baseargs=
29a63921 9962tbaseargs=
1c710c3c
DJ
9963keep_next=no
9964skip_next=no
9965eval "set -- $ac_configure_args"
44bfc3ac
DJ
9966for ac_arg
9967do
1c710c3c
DJ
9968 if test X"$skip_next" = X"yes"; then
9969 skip_next=no
9970 continue
9971 fi
9972 if test X"$keep_next" = X"yes"; then
9973 case $ac_arg in
9974 *\'*)
9975 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9976 esac
9977 baseargs="$baseargs '$ac_arg'"
29a63921 9978 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
9979 keep_next=no
9980 continue
9981 fi
9982
9983 # Handle separated arguments. Based on the logic generated by
9984 # autoconf 2.59.
9985 case $ac_arg in
9986 *=* | --config-cache | -C | -disable-* | --disable-* \
9987 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9988 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9989 | -with-* | --with-* | -without-* | --without-* | --x)
9990 separate_arg=no
9991 ;;
9992 -*)
9993 separate_arg=yes
9994 ;;
9995 *)
9996 separate_arg=no
9997 ;;
9998 esac
9999
29a63921
AO
10000 skip_targ=no
10001 case $ac_arg in
10002
10003 --with-* | --without-*)
10004 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10005
10006 case $libopt in
10007 *[-_]include)
10008 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10009 ;;
10010 *[-_]lib)
10011 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10012 ;;
10013 *)
10014 lib=$libopt
10015 ;;
10016 esac
10017
10018
10019 case $lib in
4a9bb2aa 10020 mpc | mpfr | gmp | isl)
29a63921
AO
10021 # If we're processing --with-$lib, --with-$lib-include or
10022 # --with-$lib-lib, for one of the libs above, and target is
10023 # different from host, don't pass the current argument to any
10024 # target library's configure.
10025 if test x$is_cross_compiler = xyes; then
10026 skip_targ=yes
10027 fi
10028 ;;
10029 esac
10030 ;;
10031 esac
10032
1c710c3c 10033 case "$ac_arg" in
f1a036e4
NC
10034 --cache-file=/dev/null | \
10035 -cache-file=/dev/null )
10036 # Handled here to avoid the test to skip args below.
10037 baseargs="$baseargs '$ac_arg'"
29a63921 10038 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
10039 # Assert: $separate_arg should always be no.
10040 keep_next=$separate_arg
10041 ;;
1c710c3c
DJ
10042 --no*)
10043 continue
10044 ;;
10045 --c* | \
10046 --sr* | \
10047 --ho* | \
10048 --bu* | \
10049 --t* | \
10050 --program-* | \
10051 -cache_file* | \
10052 -srcdir* | \
10053 -host* | \
10054 -build* | \
10055 -target* | \
10056 -program-prefix* | \
10057 -program-suffix* | \
10058 -program-transform-name* )
10059 skip_next=$separate_arg
10060 continue
10061 ;;
10062 -*)
10063 # An option. Add it.
10064 case $ac_arg in
10065 *\'*)
10066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10067 esac
10068 baseargs="$baseargs '$ac_arg'"
29a63921
AO
10069 if test X"$skip_targ" = Xno; then
10070 tbaseargs="$tbaseargs '$ac_arg'"
10071 fi
1c710c3c
DJ
10072 keep_next=$separate_arg
10073 ;;
10074 *)
10075 # Either a variable assignment, or a nonopt (triplet). Don't
10076 # pass it down; let the Makefile handle this.
10077 continue
10078 ;;
10079 esac
10080done
10081# Remove the initial space we just introduced and, as these will be
10082# expanded by make, quote '$'.
10083baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 10084
43bb47c2
DJ
10085# Add in --program-transform-name, after --program-prefix and
10086# --program-suffix have been applied to it. Autoconf has already
10087# doubled dollar signs and backslashes in program_transform_name; we want
10088# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 10089# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
10090# Also, because we want to override the logic in subdir configure scripts to
10091# choose program_transform_name, replace any s,x,x, with s,y,y,.
10092sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10093${program_transform_name}
10094EOF_SED
10095gcc_transform_name=`cat conftestsed.out`
10096rm -f conftestsed.out
10097baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 10098tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
10099if test "$silent" = yes; then
10100 baseargs="$baseargs --silent"
29a63921 10101 tbaseargs="$tbaseargs --silent"
d9acb717 10102fi
0115d4a3 10103baseargs="$baseargs --disable-option-checking"
29a63921 10104tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 10105
ffedf511
RW
10106# Record and document user additions to sub configure arguments.
10107
10108
10109
10110
671aa708
NN
10111# For the build-side libraries, we just need to pretend we're native,
10112# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
10113# desired. We can't even use the same cache file for all build-side
10114# libraries, as they're compiled differently; some with C, some with
10115# C++ or with different feature-enabling options.
10116build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
10117
10118# For host modules, accept cache file option, or specification as blank.
10119case "${cache_file}" in
10120"") # empty
10121 cache_file_option="" ;;
10122/* | [A-Za-z]:[\\/]* ) # absolute path
10123 cache_file_option="--cache-file=${cache_file}" ;;
10124*) # relative path
10125 cache_file_option="--cache-file=../${cache_file}" ;;
10126esac
10127
09438bde
NN
10128# Host dirs don't like to share a cache file either, horribly enough.
10129# This seems to be due to autoconf 2.5x stupidity.
ffedf511 10130host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 10131
29a63921 10132target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
10133
10134# Passing a --with-cross-host argument lets the target libraries know
10135# whether they are being built with a cross-compiler or being built
10136# native. However, it would be better to use other mechanisms to make the
10137# sorts of decisions they want to make on this basis. Please consider
10138# this option to be deprecated. FIXME.
10139if test x${is_cross_compiler} = xyes ; then
1c710c3c 10140 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
10141fi
10142
79e0604d
FXC
10143# Special user-friendly check for native x86_64-linux build, if
10144# multilib is not explicitly enabled.
10145case "$target:$have_compiler:$host:$target:$enable_multilib" in
10146 x86_64-*linux*:yes:$build:$build:)
e640447c 10147 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
10148 dev64=no
10149 echo "int main () { return 0; }" > conftest.c
10150 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10151 if test $? = 0 ; then
10152 if test -s conftest || test -s conftest.exe ; then
10153 dev64=yes
10154 fi
10155 fi
10156 rm -f conftest*
10157 if test x${dev64} != xyes ; then
22e05272 10158 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
10159 fi
10160 ;;
10161esac
10162
dc683a3f
RW
10163# Default to --enable-multilib.
10164if test x${enable_multilib} = x ; then
671aa708 10165 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 10166fi
671aa708
NN
10167
10168# Pass --with-newlib if appropriate. Note that target_configdirs has
10169# changed from the earlier setting of with_newlib.
10170if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10171 target_configargs="--with-newlib ${target_configargs}"
10172fi
10173
6b9eb62c
NN
10174# Different target subdirs use different values of certain variables
10175# (notably CXX). Worse, multilibs use *lots* of different values.
10176# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10177# it doesn't automatically accept command-line overrides of them.
10178# This means it's not safe for target subdirs to share a cache file,
10179# which is disgusting, but there you have it. Hopefully this can be
10180# fixed in future. It's still worthwhile to use a cache file for each
10181# directory. I think.
10182
bebcd931
MS
10183# Pass the appropriate --build, --host, --target and --cache-file arguments.
10184# We need to pass --target, as newer autoconf's requires consistency
10185# for target_alias and gcc doesn't manage it consistently.
e69bf64b 10186target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 10187
671aa708
NN
10188FLAGS_FOR_TARGET=
10189case " $target_configdirs " in
10190 *" newlib "*)
10191 case " $target_configargs " in
10192 *" --with-newlib "*)
10193 case "$target" in
5d571eaa 10194 *-cygwin*)
443e6238 10195 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 10196 ;;
671aa708
NN
10197 esac
10198
10199 # If we're not building GCC, don't discard standard headers.
10200 if test -d ${srcdir}/gcc; then
10201 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10202
10203 if test "${build}" != "${host}"; then
10204 # On Canadian crosses, CC_FOR_TARGET will have already been set
10205 # by `configure', so we won't have an opportunity to add -Bgcc/
10206 # to it. This is right: we don't want to search that directory
10207 # for binaries, but we want the header files in there, so add
10208 # them explicitly.
0463992b 10209 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
10210
10211 # Someone might think of using the pre-installed headers on
10212 # Canadian crosses, in case the installed compiler is not fully
10213 # compatible with the compiler being built. In this case, it
10214 # would be better to flag an error than risking having
10215 # incompatible object files being constructed. We can't
10216 # guarantee that an error will be flagged, but let's hope the
10217 # compiler will do it, when presented with incompatible header
10218 # files.
10219 fi
10220 fi
10221
10222 case "${target}-${is_cross_compiler}" in
f2a0e225 10223 i[3456789]86-*-linux*-no)
671aa708
NN
10224 # Here host == target, so we don't need to build gcc,
10225 # so we don't want to discard standard headers.
10226 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10227 ;;
10228 *)
10229 # If we're building newlib, use its generic headers last, but search
10230 # for any libc-related directories first (so make it the last -B
10231 # switch).
10232 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
10233
10234 # If we're building libgloss, find the startup file, simulator library
10235 # and linker script.
10236 case " $target_configdirs " in
10237 *" libgloss "*)
10238 # Look for startup file, simulator library and maybe linker script.
10239 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10240 # Look for libnosys.a in case the target needs it.
10241 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10242 # Most targets have the linker script in the source directory.
10243 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10244 ;;
10245 esac
671aa708
NN
10246 ;;
10247 esac
10248 ;;
10249 esac
10250 ;;
10251esac
5d571eaa 10252
b91f0a41 10253case "$target" in
5d571eaa
OS
10254 x86_64-*mingw* | *-w64-mingw*)
10255 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10256 # however, use a symlink named 'mingw' in ${prefix} .
10257 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10258 ;;
10259 *-mingw*)
10260 # MinGW can't be handled as Cygwin above since it does not use newlib.
10261 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'
10262 ;;
b91f0a41 10263esac
671aa708 10264
6691a79e
ME
10265# Allow the user to override the flags for
10266# our build compiler if desired.
f019adc1
MF
10267if test x"${build}" = x"${host}" ; then
10268 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
84401ce5 10269 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
f019adc1
MF
10270 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10271 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10272fi
6691a79e 10273
671aa708
NN
10274# On Canadian crosses, we'll be searching the right directories for
10275# the previously-installed cross compiler, so don't bother to add
10276# flags for directories within the install tree of the compiler
10277# being built; programs in there won't even run.
10278if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10279 # Search for pre-installed headers if nothing else fits.
9124bc53 10280 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
10281fi
10282
10283if test "x${use_gnu_ld}" = x &&
10284 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10285 # Arrange for us to find uninstalled linker scripts.
215c351a 10286 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
10287fi
10288
e88a2c09
DD
10289# Search for other target-specific linker scripts and such.
10290case "${target}" in
3e19841a
PB
10291 mep*)
10292 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10293 ;;
9b8ffbb8
OH
10294 # The VxWorks support for shared libraries is getting in
10295 # incrementally. Make sure it doesn't get activated implicitly:
10296 *vxworks*)
10297 if test "${enable_shared-unset}" = unset ; then
10298 enable_shared=no
10299 # So the build of libraries knows ...
10300 target_configargs="${target_configargs} --disable-shared"
10301 # So gcc knows ...
10302 host_configargs="${host_configargs} --disable-shared"
10303 fi
10304 ;;
e88a2c09
DD
10305esac
10306
671aa708 10307# Makefile fragments.
7b61653a
PE
10308for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10309do
10310 eval fragval=\$$frag
10311 if test $fragval != /dev/null; then
10312 eval $frag=${srcdir}/$fragval
10313 fi
10314done
671aa708
NN
10315
10316
10317
10318
10319
10320# Miscellanea: directories, flags, etc.
10321
10322
10323
10324
10325
10326
10327
d89f0ad6 10328
23f6b2f9 10329# Build module lists & subconfigure args.
671aa708
NN
10330
10331
10332
2abefe3d
PB
10333# Host module lists & subconfigure args.
10334
10335
10336
aae29963 10337
2abefe3d
PB
10338# Target module lists & subconfigure args.
10339
10340
10341
10342# Build tools.
10343
10344
10345
0999159b
PB
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
b4c522fa 10359
3b5e8ee4 10360
a1d2b162
IS
10361
10362
2abefe3d
PB
10363# Generate default definitions for YACC, M4, LEX and other programs that run
10364# on the build machine. These are used if the Makefile can't locate these
10365# programs in objdir.
10366MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10367
10368for ac_prog in 'bison -y' byacc yacc
10369do
1c710c3c 10370 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10371set dummy $ac_prog; ac_word=$2
5213506e
RW
10372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10373$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10374if ${ac_cv_prog_YACC+:} false; then :
5213506e 10375 $as_echo_n "(cached) " >&6
2abefe3d
PB
10376else
10377 if test -n "$YACC"; then
10378 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10379else
1c710c3c
DJ
10380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381for as_dir in $PATH
10382do
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
5213506e 10385 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10387 ac_cv_prog_YACC="$ac_prog"
5213506e 10388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10389 break 2
10390 fi
10391done
5213506e
RW
10392 done
10393IFS=$as_save_IFS
1c710c3c 10394
2abefe3d
PB
10395fi
10396fi
1c710c3c 10397YACC=$ac_cv_prog_YACC
2abefe3d 10398if test -n "$YACC"; then
5213506e
RW
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10400$as_echo "$YACC" >&6; }
2abefe3d 10401else
5213506e
RW
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10403$as_echo "no" >&6; }
2abefe3d
PB
10404fi
10405
5213506e 10406
1c710c3c 10407 test -n "$YACC" && break
2abefe3d
PB
10408done
10409test -n "$YACC" || YACC="$MISSING bison -y"
10410
10411case " $build_configdirs " in
10412 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
10413esac
10414
10415for ac_prog in bison
10416do
1c710c3c 10417 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10418set dummy $ac_prog; ac_word=$2
5213506e
RW
10419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10420$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10421if ${ac_cv_prog_BISON+:} false; then :
5213506e 10422 $as_echo_n "(cached) " >&6
2abefe3d
PB
10423else
10424 if test -n "$BISON"; then
10425 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10426else
1c710c3c
DJ
10427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10428for as_dir in $PATH
10429do
10430 IFS=$as_save_IFS
10431 test -z "$as_dir" && as_dir=.
5213506e 10432 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10434 ac_cv_prog_BISON="$ac_prog"
5213506e 10435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10436 break 2
10437 fi
10438done
5213506e
RW
10439 done
10440IFS=$as_save_IFS
1c710c3c 10441
2abefe3d
PB
10442fi
10443fi
1c710c3c 10444BISON=$ac_cv_prog_BISON
2abefe3d 10445if test -n "$BISON"; then
5213506e
RW
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10447$as_echo "$BISON" >&6; }
2abefe3d 10448else
5213506e
RW
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10450$as_echo "no" >&6; }
2abefe3d
PB
10451fi
10452
5213506e 10453
1c710c3c 10454 test -n "$BISON" && break
2abefe3d
PB
10455done
10456test -n "$BISON" || BISON="$MISSING bison"
10457
10458case " $build_configdirs " in
10459 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10460esac
10461
10462for ac_prog in gm4 gnum4 m4
10463do
1c710c3c 10464 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10465set dummy $ac_prog; ac_word=$2
5213506e
RW
10466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10467$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10468if ${ac_cv_prog_M4+:} false; then :
5213506e 10469 $as_echo_n "(cached) " >&6
2abefe3d
PB
10470else
10471 if test -n "$M4"; then
10472 ac_cv_prog_M4="$M4" # Let the user override the test.
10473else
1c710c3c
DJ
10474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10475for as_dir in $PATH
10476do
10477 IFS=$as_save_IFS
10478 test -z "$as_dir" && as_dir=.
5213506e 10479 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10481 ac_cv_prog_M4="$ac_prog"
5213506e 10482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10483 break 2
10484 fi
10485done
5213506e
RW
10486 done
10487IFS=$as_save_IFS
1c710c3c 10488
2abefe3d
PB
10489fi
10490fi
1c710c3c 10491M4=$ac_cv_prog_M4
2abefe3d 10492if test -n "$M4"; then
5213506e
RW
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10494$as_echo "$M4" >&6; }
2abefe3d 10495else
5213506e
RW
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497$as_echo "no" >&6; }
2abefe3d
PB
10498fi
10499
5213506e 10500
1c710c3c 10501 test -n "$M4" && break
2abefe3d
PB
10502done
10503test -n "$M4" || M4="$MISSING m4"
10504
10505case " $build_configdirs " in
10506 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10507esac
10508
10509for ac_prog in flex lex
10510do
1c710c3c 10511 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10512set dummy $ac_prog; ac_word=$2
5213506e
RW
10513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10514$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10515if ${ac_cv_prog_LEX+:} false; then :
5213506e 10516 $as_echo_n "(cached) " >&6
2abefe3d
PB
10517else
10518 if test -n "$LEX"; then
10519 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10520else
1c710c3c
DJ
10521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10522for as_dir in $PATH
10523do
10524 IFS=$as_save_IFS
10525 test -z "$as_dir" && as_dir=.
5213506e 10526 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10528 ac_cv_prog_LEX="$ac_prog"
5213506e 10529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10530 break 2
10531 fi
10532done
5213506e
RW
10533 done
10534IFS=$as_save_IFS
1c710c3c 10535
2abefe3d
PB
10536fi
10537fi
1c710c3c 10538LEX=$ac_cv_prog_LEX
2abefe3d 10539if test -n "$LEX"; then
5213506e
RW
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10541$as_echo "$LEX" >&6; }
2abefe3d 10542else
5213506e
RW
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10544$as_echo "no" >&6; }
2abefe3d
PB
10545fi
10546
5213506e 10547
1c710c3c 10548 test -n "$LEX" && break
2abefe3d
PB
10549done
10550test -n "$LEX" || LEX="$MISSING flex"
10551
10552case " $build_configdirs " in
10553 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10554 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10555esac
10556
10557for ac_prog in flex
10558do
1c710c3c 10559 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10560set dummy $ac_prog; ac_word=$2
5213506e
RW
10561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10562$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10563if ${ac_cv_prog_FLEX+:} false; then :
5213506e 10564 $as_echo_n "(cached) " >&6
2abefe3d
PB
10565else
10566 if test -n "$FLEX"; then
10567 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10568else
1c710c3c
DJ
10569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570for as_dir in $PATH
10571do
10572 IFS=$as_save_IFS
10573 test -z "$as_dir" && as_dir=.
5213506e 10574 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10576 ac_cv_prog_FLEX="$ac_prog"
5213506e 10577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10578 break 2
10579 fi
10580done
5213506e
RW
10581 done
10582IFS=$as_save_IFS
1c710c3c 10583
2abefe3d
PB
10584fi
10585fi
1c710c3c 10586FLEX=$ac_cv_prog_FLEX
2abefe3d 10587if test -n "$FLEX"; then
5213506e
RW
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10589$as_echo "$FLEX" >&6; }
2abefe3d 10590else
5213506e
RW
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592$as_echo "no" >&6; }
2abefe3d
PB
10593fi
10594
5213506e 10595
1c710c3c 10596 test -n "$FLEX" && break
2abefe3d
PB
10597done
10598test -n "$FLEX" || FLEX="$MISSING flex"
10599
10600case " $build_configdirs " in
10601 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10602esac
10603
10604for ac_prog in makeinfo
10605do
1c710c3c 10606 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10607set dummy $ac_prog; ac_word=$2
5213506e
RW
10608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10609$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10610if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 10611 $as_echo_n "(cached) " >&6
2abefe3d
PB
10612else
10613 if test -n "$MAKEINFO"; then
10614 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10615else
1c710c3c
DJ
10616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10617for as_dir in $PATH
10618do
10619 IFS=$as_save_IFS
10620 test -z "$as_dir" && as_dir=.
5213506e 10621 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10623 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 10624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10625 break 2
10626 fi
10627done
5213506e
RW
10628 done
10629IFS=$as_save_IFS
1c710c3c 10630
2abefe3d
PB
10631fi
10632fi
1c710c3c 10633MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 10634if test -n "$MAKEINFO"; then
5213506e
RW
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10636$as_echo "$MAKEINFO" >&6; }
2abefe3d 10637else
5213506e
RW
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10639$as_echo "no" >&6; }
2abefe3d
PB
10640fi
10641
5213506e 10642
1c710c3c 10643 test -n "$MAKEINFO" && break
2abefe3d
PB
10644done
10645test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10646
10647case " $build_configdirs " in
10648 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10649 *)
10650
d18ff35a 10651 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
10652 # higher, else we use the "missing" dummy.
10653 if ${MAKEINFO} --version \
d18ff35a 10654 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
10655 :
10656 else
10657 MAKEINFO="$MISSING makeinfo"
10658 fi
10659 ;;
10660
10661esac
671aa708 10662
2abefe3d 10663# FIXME: expect and dejagnu may become build tools?
671aa708 10664
2abefe3d
PB
10665for ac_prog in expect
10666do
1c710c3c 10667 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10668set dummy $ac_prog; ac_word=$2
5213506e
RW
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10670$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10671if ${ac_cv_prog_EXPECT+:} false; then :
5213506e 10672 $as_echo_n "(cached) " >&6
2abefe3d
PB
10673else
10674 if test -n "$EXPECT"; then
10675 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10676else
1c710c3c
DJ
10677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10678for as_dir in $PATH
10679do
10680 IFS=$as_save_IFS
10681 test -z "$as_dir" && as_dir=.
5213506e 10682 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10684 ac_cv_prog_EXPECT="$ac_prog"
5213506e 10685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10686 break 2
10687 fi
10688done
5213506e
RW
10689 done
10690IFS=$as_save_IFS
1c710c3c 10691
2abefe3d
PB
10692fi
10693fi
1c710c3c 10694EXPECT=$ac_cv_prog_EXPECT
2abefe3d 10695if test -n "$EXPECT"; then
5213506e
RW
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10697$as_echo "$EXPECT" >&6; }
2abefe3d 10698else
5213506e
RW
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700$as_echo "no" >&6; }
2abefe3d 10701fi
671aa708 10702
5213506e 10703
1c710c3c 10704 test -n "$EXPECT" && break
2abefe3d
PB
10705done
10706test -n "$EXPECT" || EXPECT="expect"
671aa708 10707
2abefe3d
PB
10708case " $configdirs " in
10709 *" expect "*)
10710 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10711 ;;
10712esac
671aa708 10713
2abefe3d
PB
10714for ac_prog in runtest
10715do
1c710c3c 10716 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10717set dummy $ac_prog; ac_word=$2
5213506e
RW
10718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10719$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10720if ${ac_cv_prog_RUNTEST+:} false; then :
5213506e 10721 $as_echo_n "(cached) " >&6
2abefe3d
PB
10722else
10723 if test -n "$RUNTEST"; then
10724 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 10725else
1c710c3c
DJ
10726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10727for as_dir in $PATH
10728do
10729 IFS=$as_save_IFS
10730 test -z "$as_dir" && as_dir=.
5213506e 10731 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10733 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 10734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10735 break 2
10736 fi
10737done
5213506e
RW
10738 done
10739IFS=$as_save_IFS
1c710c3c 10740
2abefe3d
PB
10741fi
10742fi
1c710c3c 10743RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 10744if test -n "$RUNTEST"; then
5213506e
RW
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10746$as_echo "$RUNTEST" >&6; }
2abefe3d 10747else
5213506e
RW
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10749$as_echo "no" >&6; }
2abefe3d 10750fi
671aa708 10751
5213506e 10752
1c710c3c 10753 test -n "$RUNTEST" && break
2abefe3d
PB
10754done
10755test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 10756
2abefe3d
PB
10757case " $configdirs " in
10758 *" dejagnu "*)
c394e891 10759 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
10760 ;;
10761esac
671aa708 10762
4e3dcf20 10763
671aa708 10764# Host tools.
ca9f4b81
AO
10765ncn_tool_prefix=
10766test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10767ncn_target_tool_prefix=
10768test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10769
278a7a38
AO
10770
10771
10772if test -n "$AR"; then
10773 ac_cv_prog_AR=$AR
10774elif test -n "$ac_cv_prog_AR"; then
10775 AR=$ac_cv_prog_AR
10776fi
10777
10778if test -n "$ac_cv_prog_AR"; then
10779 for ncn_progname in ar; do
10780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10781set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10783$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10784if ${ac_cv_prog_AR+:} false; then :
5213506e 10785 $as_echo_n "(cached) " >&6
278a7a38
AO
10786else
10787 if test -n "$AR"; then
10788 ac_cv_prog_AR="$AR" # Let the user override the test.
10789else
10790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10791for as_dir in $PATH
10792do
10793 IFS=$as_save_IFS
10794 test -z "$as_dir" && as_dir=.
5213506e 10795 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10797 ac_cv_prog_AR="${ncn_progname}"
5213506e 10798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10799 break 2
10800 fi
10801done
5213506e
RW
10802 done
10803IFS=$as_save_IFS
278a7a38
AO
10804
10805fi
10806fi
10807AR=$ac_cv_prog_AR
10808if test -n "$AR"; then
5213506e
RW
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10810$as_echo "$AR" >&6; }
278a7a38 10811else
5213506e
RW
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813$as_echo "no" >&6; }
278a7a38
AO
10814fi
10815
5213506e 10816
278a7a38
AO
10817 done
10818fi
10819
10820for ncn_progname in ar; do
2693c0b0
PB
10821 if test -n "$ncn_tool_prefix"; then
10822 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10823set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10825$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10826if ${ac_cv_prog_AR+:} false; then :
5213506e 10827 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10828else
10829 if test -n "$AR"; then
10830 ac_cv_prog_AR="$AR" # Let the user override the test.
10831else
1c710c3c
DJ
10832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10833for as_dir in $PATH
10834do
10835 IFS=$as_save_IFS
10836 test -z "$as_dir" && as_dir=.
5213506e 10837 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10839 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 10840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10841 break 2
10842 fi
10843done
5213506e
RW
10844 done
10845IFS=$as_save_IFS
1c710c3c 10846
ca9f4b81
AO
10847fi
10848fi
1c710c3c 10849AR=$ac_cv_prog_AR
ca9f4b81 10850if test -n "$AR"; then
5213506e
RW
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10852$as_echo "$AR" >&6; }
ca9f4b81 10853else
5213506e
RW
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10855$as_echo "no" >&6; }
ca9f4b81
AO
10856fi
10857
5213506e 10858
2693c0b0
PB
10859 fi
10860 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10862set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10864$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10865if ${ac_cv_prog_AR+:} false; then :
5213506e 10866 $as_echo_n "(cached) " >&6
ca9f4b81 10867else
2693c0b0 10868 if test -n "$AR"; then
af71363e
AS
10869 ac_cv_prog_AR="$AR" # Let the user override the test.
10870else
1c710c3c
DJ
10871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872for as_dir in $PATH
10873do
10874 IFS=$as_save_IFS
10875 test -z "$as_dir" && as_dir=.
5213506e 10876 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10878 ac_cv_prog_AR="${ncn_progname}"
5213506e 10879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10880 break 2
10881 fi
10882done
5213506e
RW
10883 done
10884IFS=$as_save_IFS
1c710c3c 10885
ca9f4b81
AO
10886fi
10887fi
1c710c3c 10888AR=$ac_cv_prog_AR
2693c0b0 10889if test -n "$AR"; then
5213506e
RW
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10891$as_echo "$AR" >&6; }
ca9f4b81 10892else
5213506e
RW
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894$as_echo "no" >&6; }
ca9f4b81 10895fi
1c710c3c 10896
5213506e 10897
2693c0b0
PB
10898 fi
10899 test -n "$ac_cv_prog_AR" && break
10900done
10901
10902if test -z "$ac_cv_prog_AR" ; then
10903 set dummy ar
10904 if test $build = $host ; then
10905 AR="$2"
ca9f4b81 10906 else
2693c0b0 10907 AR="${ncn_tool_prefix}$2"
ca9f4b81 10908 fi
ca9f4b81
AO
10909fi
10910
278a7a38
AO
10911
10912
10913if test -n "$AS"; then
10914 ac_cv_prog_AS=$AS
10915elif test -n "$ac_cv_prog_AS"; then
10916 AS=$ac_cv_prog_AS
10917fi
10918
10919if test -n "$ac_cv_prog_AS"; then
10920 for ncn_progname in as; do
10921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10922set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10924$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10925if ${ac_cv_prog_AS+:} false; then :
5213506e 10926 $as_echo_n "(cached) " >&6
278a7a38
AO
10927else
10928 if test -n "$AS"; then
10929 ac_cv_prog_AS="$AS" # Let the user override the test.
10930else
10931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932for as_dir in $PATH
10933do
10934 IFS=$as_save_IFS
10935 test -z "$as_dir" && as_dir=.
5213506e 10936 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10938 ac_cv_prog_AS="${ncn_progname}"
5213506e 10939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10940 break 2
10941 fi
10942done
5213506e
RW
10943 done
10944IFS=$as_save_IFS
278a7a38
AO
10945
10946fi
10947fi
10948AS=$ac_cv_prog_AS
10949if test -n "$AS"; then
5213506e
RW
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10951$as_echo "$AS" >&6; }
278a7a38 10952else
5213506e
RW
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10954$as_echo "no" >&6; }
278a7a38
AO
10955fi
10956
5213506e 10957
278a7a38
AO
10958 done
10959fi
10960
10961for ncn_progname in as; do
2693c0b0
PB
10962 if test -n "$ncn_tool_prefix"; then
10963 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10964set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10966$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10967if ${ac_cv_prog_AS+:} false; then :
5213506e 10968 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10969else
10970 if test -n "$AS"; then
10971 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 10972else
1c710c3c
DJ
10973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974for as_dir in $PATH
10975do
10976 IFS=$as_save_IFS
10977 test -z "$as_dir" && as_dir=.
5213506e 10978 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10980 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 10981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10982 break 2
10983 fi
10984done
5213506e
RW
10985 done
10986IFS=$as_save_IFS
1c710c3c 10987
ca9f4b81
AO
10988fi
10989fi
1c710c3c 10990AS=$ac_cv_prog_AS
ca9f4b81 10991if test -n "$AS"; then
5213506e
RW
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10993$as_echo "$AS" >&6; }
ca9f4b81 10994else
5213506e
RW
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10996$as_echo "no" >&6; }
ca9f4b81
AO
10997fi
10998
5213506e 10999
2693c0b0
PB
11000 fi
11001 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11003set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11005$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11006if ${ac_cv_prog_AS+:} false; then :
5213506e 11007 $as_echo_n "(cached) " >&6
ca9f4b81 11008else
2693c0b0
PB
11009 if test -n "$AS"; then
11010 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 11011else
1c710c3c
DJ
11012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11013for as_dir in $PATH
11014do
11015 IFS=$as_save_IFS
11016 test -z "$as_dir" && as_dir=.
5213506e 11017 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11019 ac_cv_prog_AS="${ncn_progname}"
5213506e 11020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11021 break 2
11022 fi
11023done
5213506e
RW
11024 done
11025IFS=$as_save_IFS
1c710c3c 11026
ca9f4b81
AO
11027fi
11028fi
1c710c3c 11029AS=$ac_cv_prog_AS
2693c0b0 11030if test -n "$AS"; then
5213506e
RW
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11032$as_echo "$AS" >&6; }
ca9f4b81 11033else
5213506e
RW
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035$as_echo "no" >&6; }
ca9f4b81 11036fi
1c710c3c 11037
5213506e 11038
2693c0b0
PB
11039 fi
11040 test -n "$ac_cv_prog_AS" && break
11041done
11042
11043if test -z "$ac_cv_prog_AS" ; then
11044 set dummy as
11045 if test $build = $host ; then
11046 AS="$2"
ca9f4b81 11047 else
2693c0b0 11048 AS="${ncn_tool_prefix}$2"
ca9f4b81 11049 fi
ca9f4b81
AO
11050fi
11051
278a7a38
AO
11052
11053
11054if test -n "$DLLTOOL"; then
11055 ac_cv_prog_DLLTOOL=$DLLTOOL
11056elif test -n "$ac_cv_prog_DLLTOOL"; then
11057 DLLTOOL=$ac_cv_prog_DLLTOOL
11058fi
11059
11060if test -n "$ac_cv_prog_DLLTOOL"; then
11061 for ncn_progname in dlltool; do
11062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11063set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11065$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11066if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11067 $as_echo_n "(cached) " >&6
278a7a38
AO
11068else
11069 if test -n "$DLLTOOL"; then
11070 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11071else
11072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11073for as_dir in $PATH
11074do
11075 IFS=$as_save_IFS
11076 test -z "$as_dir" && as_dir=.
5213506e 11077 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11079 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 11080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11081 break 2
11082 fi
11083done
5213506e
RW
11084 done
11085IFS=$as_save_IFS
278a7a38
AO
11086
11087fi
11088fi
11089DLLTOOL=$ac_cv_prog_DLLTOOL
11090if test -n "$DLLTOOL"; then
5213506e
RW
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11092$as_echo "$DLLTOOL" >&6; }
278a7a38 11093else
5213506e
RW
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11095$as_echo "no" >&6; }
278a7a38
AO
11096fi
11097
5213506e 11098
278a7a38
AO
11099 done
11100fi
11101
11102for ncn_progname in dlltool; do
2693c0b0
PB
11103 if test -n "$ncn_tool_prefix"; then
11104 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11105set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11107$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11108if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11109 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11110else
11111 if test -n "$DLLTOOL"; then
11112 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11113else
1c710c3c
DJ
11114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11115for as_dir in $PATH
11116do
11117 IFS=$as_save_IFS
11118 test -z "$as_dir" && as_dir=.
5213506e 11119 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11121 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 11122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11123 break 2
11124 fi
11125done
5213506e
RW
11126 done
11127IFS=$as_save_IFS
1c710c3c 11128
ca9f4b81
AO
11129fi
11130fi
1c710c3c 11131DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 11132if test -n "$DLLTOOL"; then
5213506e
RW
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11134$as_echo "$DLLTOOL" >&6; }
ca9f4b81 11135else
5213506e
RW
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11137$as_echo "no" >&6; }
ca9f4b81
AO
11138fi
11139
5213506e 11140
2693c0b0
PB
11141 fi
11142 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11143 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11144set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11146$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11147if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11148 $as_echo_n "(cached) " >&6
ca9f4b81 11149else
2693c0b0
PB
11150 if test -n "$DLLTOOL"; then
11151 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 11152else
1c710c3c
DJ
11153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11154for as_dir in $PATH
11155do
11156 IFS=$as_save_IFS
11157 test -z "$as_dir" && as_dir=.
5213506e 11158 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11160 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 11161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11162 break 2
11163 fi
11164done
5213506e
RW
11165 done
11166IFS=$as_save_IFS
1c710c3c 11167
ca9f4b81
AO
11168fi
11169fi
1c710c3c 11170DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 11171if test -n "$DLLTOOL"; then
5213506e
RW
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11173$as_echo "$DLLTOOL" >&6; }
ca9f4b81 11174else
5213506e
RW
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11176$as_echo "no" >&6; }
ca9f4b81 11177fi
1c710c3c 11178
5213506e 11179
2693c0b0
PB
11180 fi
11181 test -n "$ac_cv_prog_DLLTOOL" && break
11182done
11183
11184if test -z "$ac_cv_prog_DLLTOOL" ; then
11185 set dummy dlltool
11186 if test $build = $host ; then
11187 DLLTOOL="$2"
ca9f4b81 11188 else
2693c0b0 11189 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 11190 fi
ca9f4b81
AO
11191fi
11192
278a7a38
AO
11193
11194
3b5e8ee4
IS
11195if test -n "$DSYMUTIL"; then
11196 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11197elif test -n "$ac_cv_prog_DSYMUTIL"; then
11198 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11199fi
11200
11201if test -n "$ac_cv_prog_DSYMUTIL"; then
11202 for ncn_progname in dsymutil; do
11203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11204set dummy ${ncn_progname}; ac_word=$2
11205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11206$as_echo_n "checking for $ac_word... " >&6; }
11207if ${ac_cv_prog_DSYMUTIL+:} false; then :
11208 $as_echo_n "(cached) " >&6
11209else
11210 if test -n "$DSYMUTIL"; then
11211 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11212else
11213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214for as_dir in $PATH
11215do
11216 IFS=$as_save_IFS
11217 test -z "$as_dir" && as_dir=.
11218 for ac_exec_ext in '' $ac_executable_extensions; do
11219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11220 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11222 break 2
11223 fi
11224done
11225 done
11226IFS=$as_save_IFS
11227
11228fi
11229fi
11230DSYMUTIL=$ac_cv_prog_DSYMUTIL
11231if test -n "$DSYMUTIL"; then
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11233$as_echo "$DSYMUTIL" >&6; }
11234else
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11236$as_echo "no" >&6; }
11237fi
11238
11239
11240 done
11241fi
11242
11243for ncn_progname in dsymutil; do
11244 if test -n "$ncn_tool_prefix"; then
11245 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11246set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11248$as_echo_n "checking for $ac_word... " >&6; }
11249if ${ac_cv_prog_DSYMUTIL+:} false; then :
11250 $as_echo_n "(cached) " >&6
11251else
11252 if test -n "$DSYMUTIL"; then
11253 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11254else
11255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256for as_dir in $PATH
11257do
11258 IFS=$as_save_IFS
11259 test -z "$as_dir" && as_dir=.
11260 for ac_exec_ext in '' $ac_executable_extensions; do
11261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11262 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11264 break 2
11265 fi
11266done
11267 done
11268IFS=$as_save_IFS
11269
11270fi
11271fi
11272DSYMUTIL=$ac_cv_prog_DSYMUTIL
11273if test -n "$DSYMUTIL"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11275$as_echo "$DSYMUTIL" >&6; }
11276else
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278$as_echo "no" >&6; }
11279fi
11280
11281
11282 fi
11283 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11284 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11285set dummy ${ncn_progname}; ac_word=$2
11286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11287$as_echo_n "checking for $ac_word... " >&6; }
11288if ${ac_cv_prog_DSYMUTIL+:} false; then :
11289 $as_echo_n "(cached) " >&6
11290else
11291 if test -n "$DSYMUTIL"; then
11292 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11293else
11294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11295for as_dir in $PATH
11296do
11297 IFS=$as_save_IFS
11298 test -z "$as_dir" && as_dir=.
11299 for ac_exec_ext in '' $ac_executable_extensions; do
11300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11301 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11303 break 2
11304 fi
11305done
11306 done
11307IFS=$as_save_IFS
11308
11309fi
11310fi
11311DSYMUTIL=$ac_cv_prog_DSYMUTIL
11312if test -n "$DSYMUTIL"; then
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11314$as_echo "$DSYMUTIL" >&6; }
11315else
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11317$as_echo "no" >&6; }
11318fi
11319
11320
11321 fi
11322 test -n "$ac_cv_prog_DSYMUTIL" && break
11323done
11324
11325if test -z "$ac_cv_prog_DSYMUTIL" ; then
11326 set dummy dsymutil
11327 if test $build = $host ; then
11328 DSYMUTIL="$2"
11329 else
11330 DSYMUTIL="${ncn_tool_prefix}$2"
11331 fi
11332fi
11333
11334
11335
278a7a38
AO
11336if test -n "$LD"; then
11337 ac_cv_prog_LD=$LD
11338elif test -n "$ac_cv_prog_LD"; then
11339 LD=$ac_cv_prog_LD
11340fi
11341
11342if test -n "$ac_cv_prog_LD"; then
11343 for ncn_progname in ld; do
11344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11345set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11347$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11348if ${ac_cv_prog_LD+:} false; then :
5213506e 11349 $as_echo_n "(cached) " >&6
278a7a38
AO
11350else
11351 if test -n "$LD"; then
11352 ac_cv_prog_LD="$LD" # Let the user override the test.
11353else
11354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355for as_dir in $PATH
11356do
11357 IFS=$as_save_IFS
11358 test -z "$as_dir" && as_dir=.
5213506e 11359 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11361 ac_cv_prog_LD="${ncn_progname}"
5213506e 11362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11363 break 2
11364 fi
11365done
5213506e
RW
11366 done
11367IFS=$as_save_IFS
278a7a38
AO
11368
11369fi
11370fi
11371LD=$ac_cv_prog_LD
11372if test -n "$LD"; then
5213506e
RW
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11374$as_echo "$LD" >&6; }
278a7a38 11375else
5213506e
RW
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377$as_echo "no" >&6; }
278a7a38
AO
11378fi
11379
5213506e 11380
278a7a38
AO
11381 done
11382fi
11383
11384for ncn_progname in ld; do
2693c0b0
PB
11385 if test -n "$ncn_tool_prefix"; then
11386 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11387set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11389$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11390if ${ac_cv_prog_LD+:} false; then :
5213506e 11391 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11392else
11393 if test -n "$LD"; then
11394 ac_cv_prog_LD="$LD" # Let the user override the test.
11395else
1c710c3c
DJ
11396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11397for as_dir in $PATH
11398do
11399 IFS=$as_save_IFS
11400 test -z "$as_dir" && as_dir=.
5213506e 11401 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11403 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 11404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11405 break 2
11406 fi
11407done
5213506e
RW
11408 done
11409IFS=$as_save_IFS
1c710c3c 11410
ca9f4b81
AO
11411fi
11412fi
1c710c3c 11413LD=$ac_cv_prog_LD
ca9f4b81 11414if test -n "$LD"; then
5213506e
RW
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11416$as_echo "$LD" >&6; }
ca9f4b81 11417else
5213506e
RW
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419$as_echo "no" >&6; }
ca9f4b81
AO
11420fi
11421
5213506e 11422
2693c0b0
PB
11423 fi
11424 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11426set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11428$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11429if ${ac_cv_prog_LD+:} false; then :
5213506e 11430 $as_echo_n "(cached) " >&6
ca9f4b81 11431else
2693c0b0
PB
11432 if test -n "$LD"; then
11433 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 11434else
1c710c3c
DJ
11435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436for as_dir in $PATH
11437do
11438 IFS=$as_save_IFS
11439 test -z "$as_dir" && as_dir=.
5213506e 11440 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11442 ac_cv_prog_LD="${ncn_progname}"
5213506e 11443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11444 break 2
11445 fi
11446done
5213506e
RW
11447 done
11448IFS=$as_save_IFS
1c710c3c 11449
ca9f4b81
AO
11450fi
11451fi
1c710c3c 11452LD=$ac_cv_prog_LD
2693c0b0 11453if test -n "$LD"; then
5213506e
RW
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11455$as_echo "$LD" >&6; }
ca9f4b81 11456else
5213506e
RW
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458$as_echo "no" >&6; }
ca9f4b81 11459fi
1c710c3c 11460
5213506e 11461
2693c0b0
PB
11462 fi
11463 test -n "$ac_cv_prog_LD" && break
11464done
11465
11466if test -z "$ac_cv_prog_LD" ; then
11467 set dummy ld
11468 if test $build = $host ; then
11469 LD="$2"
ca9f4b81 11470 else
2693c0b0 11471 LD="${ncn_tool_prefix}$2"
ca9f4b81 11472 fi
ca9f4b81
AO
11473fi
11474
278a7a38
AO
11475
11476
11477if test -n "$LIPO"; then
11478 ac_cv_prog_LIPO=$LIPO
11479elif test -n "$ac_cv_prog_LIPO"; then
11480 LIPO=$ac_cv_prog_LIPO
11481fi
11482
11483if test -n "$ac_cv_prog_LIPO"; then
11484 for ncn_progname in lipo; do
11485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11486set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11488$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11489if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11490 $as_echo_n "(cached) " >&6
278a7a38
AO
11491else
11492 if test -n "$LIPO"; then
11493 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11494else
11495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11496for as_dir in $PATH
11497do
11498 IFS=$as_save_IFS
11499 test -z "$as_dir" && as_dir=.
5213506e 11500 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11502 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11504 break 2
11505 fi
11506done
5213506e
RW
11507 done
11508IFS=$as_save_IFS
278a7a38
AO
11509
11510fi
11511fi
11512LIPO=$ac_cv_prog_LIPO
11513if test -n "$LIPO"; then
5213506e
RW
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11515$as_echo "$LIPO" >&6; }
278a7a38 11516else
5213506e
RW
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11518$as_echo "no" >&6; }
278a7a38
AO
11519fi
11520
5213506e 11521
278a7a38
AO
11522 done
11523fi
11524
11525for ncn_progname in lipo; do
2abefe3d
PB
11526 if test -n "$ncn_tool_prefix"; then
11527 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11528set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11530$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11531if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11532 $as_echo_n "(cached) " >&6
2abefe3d
PB
11533else
11534 if test -n "$LIPO"; then
11535 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11536else
1c710c3c
DJ
11537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11538for as_dir in $PATH
11539do
11540 IFS=$as_save_IFS
11541 test -z "$as_dir" && as_dir=.
5213506e 11542 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11544 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 11545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11546 break 2
11547 fi
11548done
5213506e
RW
11549 done
11550IFS=$as_save_IFS
1c710c3c 11551
2abefe3d
PB
11552fi
11553fi
1c710c3c 11554LIPO=$ac_cv_prog_LIPO
2abefe3d 11555if test -n "$LIPO"; then
5213506e
RW
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11557$as_echo "$LIPO" >&6; }
2abefe3d 11558else
5213506e
RW
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11560$as_echo "no" >&6; }
2abefe3d
PB
11561fi
11562
5213506e 11563
2abefe3d
PB
11564 fi
11565 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11567set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11569$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11570if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11571 $as_echo_n "(cached) " >&6
2abefe3d
PB
11572else
11573 if test -n "$LIPO"; then
11574 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11575else
1c710c3c
DJ
11576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577for as_dir in $PATH
11578do
11579 IFS=$as_save_IFS
11580 test -z "$as_dir" && as_dir=.
5213506e 11581 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11583 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11585 break 2
11586 fi
11587done
5213506e
RW
11588 done
11589IFS=$as_save_IFS
1c710c3c 11590
2abefe3d
PB
11591fi
11592fi
1c710c3c 11593LIPO=$ac_cv_prog_LIPO
2abefe3d 11594if test -n "$LIPO"; then
5213506e
RW
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11596$as_echo "$LIPO" >&6; }
2abefe3d 11597else
5213506e
RW
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599$as_echo "no" >&6; }
2abefe3d 11600fi
1c710c3c 11601
5213506e 11602
2abefe3d
PB
11603 fi
11604 test -n "$ac_cv_prog_LIPO" && break
11605done
11606
11607if test -z "$ac_cv_prog_LIPO" ; then
11608 set dummy lipo
11609 if test $build = $host ; then
11610 LIPO="$2"
11611 else
11612 LIPO="${ncn_tool_prefix}$2"
11613 fi
11614fi
11615
278a7a38
AO
11616
11617
11618if test -n "$NM"; then
11619 ac_cv_prog_NM=$NM
11620elif test -n "$ac_cv_prog_NM"; then
11621 NM=$ac_cv_prog_NM
11622fi
11623
11624if test -n "$ac_cv_prog_NM"; then
11625 for ncn_progname in nm; do
11626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11627set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11629$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11630if ${ac_cv_prog_NM+:} false; then :
5213506e 11631 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11632else
11633 if test -n "$NM"; then
11634 ac_cv_prog_NM="$NM" # Let the user override the test.
11635else
1c710c3c
DJ
11636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11637for as_dir in $PATH
11638do
11639 IFS=$as_save_IFS
11640 test -z "$as_dir" && as_dir=.
5213506e 11641 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11643 ac_cv_prog_NM="${ncn_progname}"
5213506e 11644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11645 break 2
11646 fi
11647done
5213506e
RW
11648 done
11649IFS=$as_save_IFS
1c710c3c 11650
ca9f4b81
AO
11651fi
11652fi
1c710c3c 11653NM=$ac_cv_prog_NM
ca9f4b81 11654if test -n "$NM"; then
5213506e
RW
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11656$as_echo "$NM" >&6; }
ca9f4b81 11657else
5213506e
RW
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659$as_echo "no" >&6; }
ca9f4b81
AO
11660fi
11661
5213506e 11662
278a7a38
AO
11663 done
11664fi
11665
11666for ncn_progname in nm; do
11667 if test -n "$ncn_tool_prefix"; then
11668 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11669set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11671$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11672if ${ac_cv_prog_NM+:} false; then :
5213506e 11673 $as_echo_n "(cached) " >&6
ca9f4b81 11674else
2693c0b0
PB
11675 if test -n "$NM"; then
11676 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 11677else
1c710c3c
DJ
11678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11679for as_dir in $PATH
11680do
11681 IFS=$as_save_IFS
11682 test -z "$as_dir" && as_dir=.
5213506e 11683 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11685 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 11686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11687 break 2
11688 fi
11689done
5213506e
RW
11690 done
11691IFS=$as_save_IFS
1c710c3c 11692
ca9f4b81
AO
11693fi
11694fi
1c710c3c 11695NM=$ac_cv_prog_NM
2693c0b0 11696if test -n "$NM"; then
5213506e
RW
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11698$as_echo "$NM" >&6; }
ca9f4b81 11699else
5213506e
RW
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701$as_echo "no" >&6; }
ca9f4b81 11702fi
1c710c3c 11703
5213506e 11704
2693c0b0 11705 fi
278a7a38
AO
11706 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11708set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11710$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11711if ${ac_cv_prog_NM+:} false; then :
5213506e 11712 $as_echo_n "(cached) " >&6
278a7a38
AO
11713else
11714 if test -n "$NM"; then
11715 ac_cv_prog_NM="$NM" # Let the user override the test.
11716else
11717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11718for as_dir in $PATH
11719do
11720 IFS=$as_save_IFS
11721 test -z "$as_dir" && as_dir=.
5213506e 11722 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11724 ac_cv_prog_NM="${ncn_progname}"
5213506e 11725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11726 break 2
11727 fi
11728done
5213506e
RW
11729 done
11730IFS=$as_save_IFS
278a7a38
AO
11731
11732fi
11733fi
11734NM=$ac_cv_prog_NM
11735if test -n "$NM"; then
5213506e
RW
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11737$as_echo "$NM" >&6; }
278a7a38 11738else
5213506e
RW
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11740$as_echo "no" >&6; }
278a7a38
AO
11741fi
11742
5213506e 11743
278a7a38
AO
11744 fi
11745 test -n "$ac_cv_prog_NM" && break
11746done
11747
11748if test -z "$ac_cv_prog_NM" ; then
11749 set dummy nm
11750 if test $build = $host ; then
11751 NM="$2"
11752 else
11753 NM="${ncn_tool_prefix}$2"
11754 fi
11755fi
11756
11757
11758
11759if test -n "$RANLIB"; then
11760 ac_cv_prog_RANLIB=$RANLIB
11761elif test -n "$ac_cv_prog_RANLIB"; then
11762 RANLIB=$ac_cv_prog_RANLIB
11763fi
11764
11765if test -n "$ac_cv_prog_RANLIB"; then
11766 for ncn_progname in ranlib; do
11767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11768set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11770$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11771if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11772 $as_echo_n "(cached) " >&6
278a7a38
AO
11773else
11774 if test -n "$RANLIB"; then
11775 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11776else
11777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778for as_dir in $PATH
11779do
11780 IFS=$as_save_IFS
11781 test -z "$as_dir" && as_dir=.
5213506e 11782 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11784 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11786 break 2
11787 fi
11788done
5213506e
RW
11789 done
11790IFS=$as_save_IFS
278a7a38
AO
11791
11792fi
11793fi
11794RANLIB=$ac_cv_prog_RANLIB
11795if test -n "$RANLIB"; then
5213506e
RW
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11797$as_echo "$RANLIB" >&6; }
278a7a38 11798else
5213506e
RW
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800$as_echo "no" >&6; }
278a7a38
AO
11801fi
11802
5213506e 11803
278a7a38
AO
11804 done
11805fi
ca9f4b81 11806
278a7a38 11807for ncn_progname in ranlib; do
2693c0b0
PB
11808 if test -n "$ncn_tool_prefix"; then
11809 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11810set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11812$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11813if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11814 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11815else
11816 if test -n "$RANLIB"; then
11817 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11818else
1c710c3c
DJ
11819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820for as_dir in $PATH
11821do
11822 IFS=$as_save_IFS
11823 test -z "$as_dir" && as_dir=.
5213506e 11824 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11826 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 11827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11828 break 2
11829 fi
11830done
5213506e
RW
11831 done
11832IFS=$as_save_IFS
1c710c3c 11833
ca9f4b81
AO
11834fi
11835fi
1c710c3c 11836RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 11837if test -n "$RANLIB"; then
5213506e
RW
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11839$as_echo "$RANLIB" >&6; }
ca9f4b81 11840else
5213506e
RW
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842$as_echo "no" >&6; }
ca9f4b81
AO
11843fi
11844
5213506e 11845
2693c0b0
PB
11846 fi
11847 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11849set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11852if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11853 $as_echo_n "(cached) " >&6
ca9f4b81 11854else
2693c0b0
PB
11855 if test -n "$RANLIB"; then
11856 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 11857else
1c710c3c
DJ
11858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859for as_dir in $PATH
11860do
11861 IFS=$as_save_IFS
11862 test -z "$as_dir" && as_dir=.
5213506e 11863 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11865 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11867 break 2
11868 fi
11869done
5213506e
RW
11870 done
11871IFS=$as_save_IFS
1c710c3c 11872
ca9f4b81
AO
11873fi
11874fi
1c710c3c 11875RANLIB=$ac_cv_prog_RANLIB
2693c0b0 11876if test -n "$RANLIB"; then
5213506e
RW
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11878$as_echo "$RANLIB" >&6; }
ca9f4b81 11879else
5213506e
RW
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881$as_echo "no" >&6; }
ca9f4b81 11882fi
1c710c3c 11883
5213506e 11884
ca9f4b81 11885 fi
2693c0b0
PB
11886 test -n "$ac_cv_prog_RANLIB" && break
11887done
11888
11889if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 11890 RANLIB="true"
ca9f4b81
AO
11891fi
11892
278a7a38
AO
11893
11894
11895if test -n "$STRIP"; then
11896 ac_cv_prog_STRIP=$STRIP
11897elif test -n "$ac_cv_prog_STRIP"; then
11898 STRIP=$ac_cv_prog_STRIP
11899fi
11900
11901if test -n "$ac_cv_prog_STRIP"; then
11902 for ncn_progname in strip; do
11903 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11904set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11906$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11907if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11908 $as_echo_n "(cached) " >&6
278a7a38
AO
11909else
11910 if test -n "$STRIP"; then
11911 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11912else
11913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11914for as_dir in $PATH
11915do
11916 IFS=$as_save_IFS
11917 test -z "$as_dir" && as_dir=.
5213506e 11918 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11920 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 11921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11922 break 2
11923 fi
11924done
5213506e
RW
11925 done
11926IFS=$as_save_IFS
278a7a38
AO
11927
11928fi
11929fi
11930STRIP=$ac_cv_prog_STRIP
11931if test -n "$STRIP"; then
5213506e
RW
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11933$as_echo "$STRIP" >&6; }
278a7a38 11934else
5213506e
RW
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11936$as_echo "no" >&6; }
278a7a38
AO
11937fi
11938
5213506e 11939
278a7a38
AO
11940 done
11941fi
11942
11943for ncn_progname in strip; do
2abefe3d
PB
11944 if test -n "$ncn_tool_prefix"; then
11945 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11946set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11948$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11949if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11950 $as_echo_n "(cached) " >&6
2abefe3d
PB
11951else
11952 if test -n "$STRIP"; then
11953 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11954else
1c710c3c
DJ
11955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956for as_dir in $PATH
11957do
11958 IFS=$as_save_IFS
11959 test -z "$as_dir" && as_dir=.
5213506e 11960 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11962 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 11963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11964 break 2
11965 fi
11966done
5213506e
RW
11967 done
11968IFS=$as_save_IFS
1c710c3c 11969
2abefe3d
PB
11970fi
11971fi
1c710c3c 11972STRIP=$ac_cv_prog_STRIP
2abefe3d 11973if test -n "$STRIP"; then
5213506e
RW
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11975$as_echo "$STRIP" >&6; }
2abefe3d 11976else
5213506e
RW
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978$as_echo "no" >&6; }
2abefe3d
PB
11979fi
11980
5213506e 11981
2abefe3d
PB
11982 fi
11983 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11984 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11985set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11988if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11989 $as_echo_n "(cached) " >&6
2abefe3d
PB
11990else
11991 if test -n "$STRIP"; then
11992 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11993else
1c710c3c
DJ
11994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995for as_dir in $PATH
11996do
11997 IFS=$as_save_IFS
11998 test -z "$as_dir" && as_dir=.
5213506e 11999 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12001 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 12002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12003 break 2
12004 fi
12005done
5213506e
RW
12006 done
12007IFS=$as_save_IFS
1c710c3c 12008
2abefe3d
PB
12009fi
12010fi
1c710c3c 12011STRIP=$ac_cv_prog_STRIP
2abefe3d 12012if test -n "$STRIP"; then
5213506e
RW
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12014$as_echo "$STRIP" >&6; }
2abefe3d 12015else
5213506e
RW
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017$as_echo "no" >&6; }
2abefe3d 12018fi
1c710c3c 12019
5213506e 12020
2abefe3d
PB
12021 fi
12022 test -n "$ac_cv_prog_STRIP" && break
12023done
12024
12025if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 12026 STRIP="true"
2abefe3d
PB
12027fi
12028
278a7a38
AO
12029
12030
12031if test -n "$WINDRES"; then
12032 ac_cv_prog_WINDRES=$WINDRES
12033elif test -n "$ac_cv_prog_WINDRES"; then
12034 WINDRES=$ac_cv_prog_WINDRES
12035fi
12036
12037if test -n "$ac_cv_prog_WINDRES"; then
12038 for ncn_progname in windres; do
12039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12040set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12042$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12043if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12044 $as_echo_n "(cached) " >&6
278a7a38
AO
12045else
12046 if test -n "$WINDRES"; then
12047 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12048else
12049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12050for as_dir in $PATH
12051do
12052 IFS=$as_save_IFS
12053 test -z "$as_dir" && as_dir=.
5213506e 12054 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12056 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 12057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12058 break 2
12059 fi
12060done
5213506e
RW
12061 done
12062IFS=$as_save_IFS
278a7a38
AO
12063
12064fi
12065fi
12066WINDRES=$ac_cv_prog_WINDRES
12067if test -n "$WINDRES"; then
5213506e
RW
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12069$as_echo "$WINDRES" >&6; }
278a7a38 12070else
5213506e
RW
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072$as_echo "no" >&6; }
278a7a38
AO
12073fi
12074
5213506e 12075
278a7a38
AO
12076 done
12077fi
12078
12079for ncn_progname in windres; do
2693c0b0
PB
12080 if test -n "$ncn_tool_prefix"; then
12081 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12082set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12085if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12086 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12087else
12088 if test -n "$WINDRES"; then
12089 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12090else
1c710c3c
DJ
12091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092for as_dir in $PATH
12093do
12094 IFS=$as_save_IFS
12095 test -z "$as_dir" && as_dir=.
5213506e 12096 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12098 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 12099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12100 break 2
12101 fi
12102done
5213506e
RW
12103 done
12104IFS=$as_save_IFS
1c710c3c 12105
ca9f4b81
AO
12106fi
12107fi
1c710c3c 12108WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 12109if test -n "$WINDRES"; then
5213506e
RW
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12111$as_echo "$WINDRES" >&6; }
ca9f4b81 12112else
5213506e
RW
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114$as_echo "no" >&6; }
ca9f4b81
AO
12115fi
12116
5213506e 12117
2693c0b0
PB
12118 fi
12119 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12121set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12123$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12124if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12125 $as_echo_n "(cached) " >&6
ca9f4b81 12126else
2693c0b0
PB
12127 if test -n "$WINDRES"; then
12128 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 12129else
1c710c3c
DJ
12130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131for as_dir in $PATH
12132do
12133 IFS=$as_save_IFS
12134 test -z "$as_dir" && as_dir=.
5213506e 12135 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12137 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 12138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12139 break 2
12140 fi
12141done
5213506e
RW
12142 done
12143IFS=$as_save_IFS
1c710c3c 12144
ca9f4b81
AO
12145fi
12146fi
1c710c3c 12147WINDRES=$ac_cv_prog_WINDRES
2693c0b0 12148if test -n "$WINDRES"; then
5213506e
RW
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12150$as_echo "$WINDRES" >&6; }
ca9f4b81 12151else
5213506e
RW
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153$as_echo "no" >&6; }
ca9f4b81 12154fi
1c710c3c 12155
5213506e 12156
2693c0b0
PB
12157 fi
12158 test -n "$ac_cv_prog_WINDRES" && break
12159done
12160
12161if test -z "$ac_cv_prog_WINDRES" ; then
12162 set dummy windres
12163 if test $build = $host ; then
12164 WINDRES="$2"
ca9f4b81 12165 else
2693c0b0 12166 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 12167 fi
ca9f4b81
AO
12168fi
12169
278a7a38
AO
12170
12171
901119ae
KT
12172if test -n "$WINDMC"; then
12173 ac_cv_prog_WINDMC=$WINDMC
12174elif test -n "$ac_cv_prog_WINDMC"; then
12175 WINDMC=$ac_cv_prog_WINDMC
12176fi
12177
12178if test -n "$ac_cv_prog_WINDMC"; then
12179 for ncn_progname in windmc; do
12180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12181set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12183$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12184if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12185 $as_echo_n "(cached) " >&6
901119ae
KT
12186else
12187 if test -n "$WINDMC"; then
12188 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12189else
12190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191for as_dir in $PATH
12192do
12193 IFS=$as_save_IFS
12194 test -z "$as_dir" && as_dir=.
5213506e 12195 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12197 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 12198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12199 break 2
12200 fi
12201done
5213506e
RW
12202 done
12203IFS=$as_save_IFS
901119ae
KT
12204
12205fi
12206fi
12207WINDMC=$ac_cv_prog_WINDMC
12208if test -n "$WINDMC"; then
5213506e
RW
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12210$as_echo "$WINDMC" >&6; }
901119ae 12211else
5213506e
RW
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213$as_echo "no" >&6; }
901119ae
KT
12214fi
12215
5213506e 12216
901119ae
KT
12217 done
12218fi
12219
12220for ncn_progname in windmc; do
12221 if test -n "$ncn_tool_prefix"; then
12222 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12223set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12225$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12226if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12227 $as_echo_n "(cached) " >&6
901119ae
KT
12228else
12229 if test -n "$WINDMC"; then
12230 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12231else
12232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233for as_dir in $PATH
12234do
12235 IFS=$as_save_IFS
12236 test -z "$as_dir" && as_dir=.
5213506e 12237 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12239 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 12240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12241 break 2
12242 fi
12243done
5213506e
RW
12244 done
12245IFS=$as_save_IFS
901119ae
KT
12246
12247fi
12248fi
12249WINDMC=$ac_cv_prog_WINDMC
12250if test -n "$WINDMC"; then
5213506e
RW
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12252$as_echo "$WINDMC" >&6; }
901119ae 12253else
5213506e
RW
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255$as_echo "no" >&6; }
901119ae
KT
12256fi
12257
5213506e 12258
901119ae
KT
12259 fi
12260 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12261 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12262set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12264$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12265if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12266 $as_echo_n "(cached) " >&6
901119ae
KT
12267else
12268 if test -n "$WINDMC"; then
12269 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12270else
12271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12272for as_dir in $PATH
12273do
12274 IFS=$as_save_IFS
12275 test -z "$as_dir" && as_dir=.
5213506e 12276 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12278 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 12279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12280 break 2
12281 fi
12282done
5213506e
RW
12283 done
12284IFS=$as_save_IFS
901119ae
KT
12285
12286fi
12287fi
12288WINDMC=$ac_cv_prog_WINDMC
12289if test -n "$WINDMC"; then
5213506e
RW
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12291$as_echo "$WINDMC" >&6; }
901119ae 12292else
5213506e
RW
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12294$as_echo "no" >&6; }
901119ae
KT
12295fi
12296
5213506e 12297
901119ae
KT
12298 fi
12299 test -n "$ac_cv_prog_WINDMC" && break
12300done
12301
12302if test -z "$ac_cv_prog_WINDMC" ; then
12303 set dummy windmc
12304 if test $build = $host ; then
12305 WINDMC="$2"
12306 else
12307 WINDMC="${ncn_tool_prefix}$2"
12308 fi
12309fi
12310
12311
12312
278a7a38
AO
12313if test -n "$OBJCOPY"; then
12314 ac_cv_prog_OBJCOPY=$OBJCOPY
12315elif test -n "$ac_cv_prog_OBJCOPY"; then
12316 OBJCOPY=$ac_cv_prog_OBJCOPY
12317fi
12318
12319if test -n "$ac_cv_prog_OBJCOPY"; then
12320 for ncn_progname in objcopy; do
12321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12322set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12324$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12325if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12326 $as_echo_n "(cached) " >&6
278a7a38
AO
12327else
12328 if test -n "$OBJCOPY"; then
12329 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12330else
12331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12332for as_dir in $PATH
12333do
12334 IFS=$as_save_IFS
12335 test -z "$as_dir" && as_dir=.
5213506e 12336 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12338 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12340 break 2
12341 fi
12342done
5213506e
RW
12343 done
12344IFS=$as_save_IFS
278a7a38
AO
12345
12346fi
12347fi
12348OBJCOPY=$ac_cv_prog_OBJCOPY
12349if test -n "$OBJCOPY"; then
5213506e
RW
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12351$as_echo "$OBJCOPY" >&6; }
278a7a38 12352else
5213506e
RW
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354$as_echo "no" >&6; }
278a7a38
AO
12355fi
12356
5213506e 12357
278a7a38
AO
12358 done
12359fi
12360
12361for ncn_progname in objcopy; do
2693c0b0
PB
12362 if test -n "$ncn_tool_prefix"; then
12363 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12364set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12367if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12368 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12369else
12370 if test -n "$OBJCOPY"; then
12371 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12372else
1c710c3c
DJ
12373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374for as_dir in $PATH
12375do
12376 IFS=$as_save_IFS
12377 test -z "$as_dir" && as_dir=.
5213506e 12378 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12380 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 12381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12382 break 2
12383 fi
12384done
5213506e
RW
12385 done
12386IFS=$as_save_IFS
1c710c3c 12387
ca9f4b81
AO
12388fi
12389fi
1c710c3c 12390OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 12391if test -n "$OBJCOPY"; then
5213506e
RW
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12393$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12394else
5213506e
RW
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396$as_echo "no" >&6; }
ca9f4b81
AO
12397fi
12398
5213506e 12399
2693c0b0
PB
12400 fi
12401 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12403set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12406if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12407 $as_echo_n "(cached) " >&6
ca9f4b81 12408else
2693c0b0
PB
12409 if test -n "$OBJCOPY"; then
12410 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 12411else
1c710c3c
DJ
12412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413for as_dir in $PATH
12414do
12415 IFS=$as_save_IFS
12416 test -z "$as_dir" && as_dir=.
5213506e 12417 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12419 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12421 break 2
12422 fi
12423done
5213506e
RW
12424 done
12425IFS=$as_save_IFS
1c710c3c 12426
ca9f4b81
AO
12427fi
12428fi
1c710c3c 12429OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 12430if test -n "$OBJCOPY"; then
5213506e
RW
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12432$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12433else
5213506e
RW
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435$as_echo "no" >&6; }
ca9f4b81 12436fi
1c710c3c 12437
5213506e 12438
2693c0b0
PB
12439 fi
12440 test -n "$ac_cv_prog_OBJCOPY" && break
12441done
12442
12443if test -z "$ac_cv_prog_OBJCOPY" ; then
12444 set dummy objcopy
12445 if test $build = $host ; then
12446 OBJCOPY="$2"
ca9f4b81 12447 else
2693c0b0 12448 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 12449 fi
ca9f4b81
AO
12450fi
12451
278a7a38
AO
12452
12453
12454if test -n "$OBJDUMP"; then
12455 ac_cv_prog_OBJDUMP=$OBJDUMP
12456elif test -n "$ac_cv_prog_OBJDUMP"; then
12457 OBJDUMP=$ac_cv_prog_OBJDUMP
12458fi
12459
12460if test -n "$ac_cv_prog_OBJDUMP"; then
12461 for ncn_progname in objdump; do
12462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12463set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12465$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12466if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12467 $as_echo_n "(cached) " >&6
278a7a38
AO
12468else
12469 if test -n "$OBJDUMP"; then
12470 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12471else
12472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473for as_dir in $PATH
12474do
12475 IFS=$as_save_IFS
12476 test -z "$as_dir" && as_dir=.
5213506e 12477 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12479 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12481 break 2
12482 fi
12483done
5213506e
RW
12484 done
12485IFS=$as_save_IFS
278a7a38
AO
12486
12487fi
12488fi
12489OBJDUMP=$ac_cv_prog_OBJDUMP
12490if test -n "$OBJDUMP"; then
5213506e
RW
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12492$as_echo "$OBJDUMP" >&6; }
278a7a38 12493else
5213506e
RW
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12495$as_echo "no" >&6; }
278a7a38
AO
12496fi
12497
5213506e 12498
278a7a38
AO
12499 done
12500fi
12501
12502for ncn_progname in objdump; do
2693c0b0
PB
12503 if test -n "$ncn_tool_prefix"; then
12504 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12505set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12507$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12508if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12509 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12510else
12511 if test -n "$OBJDUMP"; then
12512 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12513else
1c710c3c
DJ
12514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12515for as_dir in $PATH
12516do
12517 IFS=$as_save_IFS
12518 test -z "$as_dir" && as_dir=.
5213506e 12519 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12521 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 12522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12523 break 2
12524 fi
12525done
5213506e
RW
12526 done
12527IFS=$as_save_IFS
1c710c3c 12528
ca9f4b81
AO
12529fi
12530fi
1c710c3c 12531OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 12532if test -n "$OBJDUMP"; then
5213506e
RW
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12534$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12535else
5213506e
RW
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12537$as_echo "no" >&6; }
ca9f4b81
AO
12538fi
12539
5213506e 12540
2693c0b0
PB
12541 fi
12542 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12544set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12547if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12548 $as_echo_n "(cached) " >&6
ca9f4b81 12549else
2693c0b0
PB
12550 if test -n "$OBJDUMP"; then
12551 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 12552else
1c710c3c
DJ
12553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12554for as_dir in $PATH
12555do
12556 IFS=$as_save_IFS
12557 test -z "$as_dir" && as_dir=.
5213506e 12558 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12560 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12562 break 2
12563 fi
12564done
5213506e
RW
12565 done
12566IFS=$as_save_IFS
1c710c3c 12567
ca9f4b81
AO
12568fi
12569fi
1c710c3c 12570OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 12571if test -n "$OBJDUMP"; then
5213506e
RW
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12573$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12574else
5213506e
RW
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576$as_echo "no" >&6; }
ca9f4b81 12577fi
1c710c3c 12578
5213506e 12579
2693c0b0
PB
12580 fi
12581 test -n "$ac_cv_prog_OBJDUMP" && break
12582done
12583
12584if test -z "$ac_cv_prog_OBJDUMP" ; then
12585 set dummy objdump
12586 if test $build = $host ; then
12587 OBJDUMP="$2"
ca9f4b81 12588 else
2693c0b0 12589 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 12590 fi
ca9f4b81
AO
12591fi
12592
671aa708
NN
12593
12594
e4a9a572
IS
12595if test -n "$OTOOL"; then
12596 ac_cv_prog_OTOOL=$OTOOL
12597elif test -n "$ac_cv_prog_OTOOL"; then
12598 OTOOL=$ac_cv_prog_OTOOL
12599fi
12600
12601if test -n "$ac_cv_prog_OTOOL"; then
12602 for ncn_progname in otool; do
12603 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12604set dummy ${ncn_progname}; ac_word=$2
12605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12606$as_echo_n "checking for $ac_word... " >&6; }
12607if ${ac_cv_prog_OTOOL+:} false; then :
12608 $as_echo_n "(cached) " >&6
12609else
12610 if test -n "$OTOOL"; then
12611 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12612else
12613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12614for as_dir in $PATH
12615do
12616 IFS=$as_save_IFS
12617 test -z "$as_dir" && as_dir=.
12618 for ac_exec_ext in '' $ac_executable_extensions; do
12619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12620 ac_cv_prog_OTOOL="${ncn_progname}"
12621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12622 break 2
12623 fi
12624done
12625 done
12626IFS=$as_save_IFS
12627
12628fi
12629fi
12630OTOOL=$ac_cv_prog_OTOOL
12631if test -n "$OTOOL"; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12633$as_echo "$OTOOL" >&6; }
12634else
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636$as_echo "no" >&6; }
12637fi
12638
12639
12640 done
12641fi
12642
12643for ncn_progname in otool; do
12644 if test -n "$ncn_tool_prefix"; then
12645 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12646set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12648$as_echo_n "checking for $ac_word... " >&6; }
12649if ${ac_cv_prog_OTOOL+:} false; then :
12650 $as_echo_n "(cached) " >&6
12651else
12652 if test -n "$OTOOL"; then
12653 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12654else
12655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656for as_dir in $PATH
12657do
12658 IFS=$as_save_IFS
12659 test -z "$as_dir" && as_dir=.
12660 for ac_exec_ext in '' $ac_executable_extensions; do
12661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12662 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664 break 2
12665 fi
12666done
12667 done
12668IFS=$as_save_IFS
12669
12670fi
12671fi
12672OTOOL=$ac_cv_prog_OTOOL
12673if test -n "$OTOOL"; then
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12675$as_echo "$OTOOL" >&6; }
12676else
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678$as_echo "no" >&6; }
12679fi
12680
12681
12682 fi
12683 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12685set dummy ${ncn_progname}; ac_word=$2
12686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12687$as_echo_n "checking for $ac_word... " >&6; }
12688if ${ac_cv_prog_OTOOL+:} false; then :
12689 $as_echo_n "(cached) " >&6
12690else
12691 if test -n "$OTOOL"; then
12692 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12693else
12694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695for as_dir in $PATH
12696do
12697 IFS=$as_save_IFS
12698 test -z "$as_dir" && as_dir=.
12699 for ac_exec_ext in '' $ac_executable_extensions; do
12700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12701 ac_cv_prog_OTOOL="${ncn_progname}"
12702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12703 break 2
12704 fi
12705done
12706 done
12707IFS=$as_save_IFS
12708
12709fi
12710fi
12711OTOOL=$ac_cv_prog_OTOOL
12712if test -n "$OTOOL"; then
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12714$as_echo "$OTOOL" >&6; }
12715else
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717$as_echo "no" >&6; }
12718fi
12719
12720
12721 fi
12722 test -n "$ac_cv_prog_OTOOL" && break
12723done
12724
12725if test -z "$ac_cv_prog_OTOOL" ; then
12726 set dummy otool
12727 if test $build = $host ; then
12728 OTOOL="$2"
12729 else
12730 OTOOL="${ncn_tool_prefix}$2"
12731 fi
12732fi
12733
12734
12735
e7a82751
RM
12736if test -n "$READELF"; then
12737 ac_cv_prog_READELF=$READELF
12738elif test -n "$ac_cv_prog_READELF"; then
12739 READELF=$ac_cv_prog_READELF
12740fi
12741
12742if test -n "$ac_cv_prog_READELF"; then
12743 for ncn_progname in readelf; do
12744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12745set dummy ${ncn_progname}; ac_word=$2
12746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12747$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12748if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12749 $as_echo_n "(cached) " >&6
12750else
12751 if test -n "$READELF"; then
12752 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12753else
12754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755for as_dir in $PATH
12756do
12757 IFS=$as_save_IFS
12758 test -z "$as_dir" && as_dir=.
12759 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12761 ac_cv_prog_READELF="${ncn_progname}"
12762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12763 break 2
12764 fi
12765done
12766 done
12767IFS=$as_save_IFS
12768
12769fi
12770fi
12771READELF=$ac_cv_prog_READELF
12772if test -n "$READELF"; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12774$as_echo "$READELF" >&6; }
12775else
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777$as_echo "no" >&6; }
12778fi
12779
12780
12781 done
12782fi
12783
12784for ncn_progname in readelf; do
12785 if test -n "$ncn_tool_prefix"; then
12786 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12787set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12789$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12790if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12791 $as_echo_n "(cached) " >&6
12792else
12793 if test -n "$READELF"; then
12794 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12795else
12796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12797for as_dir in $PATH
12798do
12799 IFS=$as_save_IFS
12800 test -z "$as_dir" && as_dir=.
12801 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12803 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12805 break 2
12806 fi
12807done
12808 done
12809IFS=$as_save_IFS
12810
12811fi
12812fi
12813READELF=$ac_cv_prog_READELF
12814if test -n "$READELF"; then
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12816$as_echo "$READELF" >&6; }
12817else
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12819$as_echo "no" >&6; }
12820fi
12821
12822
12823 fi
12824 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12826set dummy ${ncn_progname}; ac_word=$2
12827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12828$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12829if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12830 $as_echo_n "(cached) " >&6
12831else
12832 if test -n "$READELF"; then
12833 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12834else
12835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836for as_dir in $PATH
12837do
12838 IFS=$as_save_IFS
12839 test -z "$as_dir" && as_dir=.
12840 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12842 ac_cv_prog_READELF="${ncn_progname}"
12843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12844 break 2
12845 fi
12846done
12847 done
12848IFS=$as_save_IFS
12849
12850fi
12851fi
12852READELF=$ac_cv_prog_READELF
12853if test -n "$READELF"; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12855$as_echo "$READELF" >&6; }
12856else
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858$as_echo "no" >&6; }
12859fi
12860
12861
12862 fi
12863 test -n "$ac_cv_prog_READELF" && break
12864done
12865
12866if test -z "$ac_cv_prog_READELF" ; then
12867 set dummy readelf
12868 if test $build = $host ; then
12869 READELF="$2"
12870 else
12871 READELF="${ncn_tool_prefix}$2"
12872 fi
12873fi
12874
12875
12876
671aa708
NN
12877
12878
12879
5fee5ec3
IB
12880
12881
2abefe3d 12882# Target tools.
1c710c3c 12883
5213506e
RW
12884# Check whether --with-build-time-tools was given.
12885if test "${with_build_time_tools+set}" = set; then :
12886 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
12887 x/*) ;;
12888 *)
12889 with_build_time_tools=
5213506e
RW
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12891$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
12892 ;;
12893 esac
ca9f4b81 12894else
e8b05380 12895 with_build_time_tools=
5213506e
RW
12896fi
12897
ca9f4b81 12898
278a7a38
AO
12899
12900
12901if test -n "$CC_FOR_TARGET"; then
12902 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12903elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12904 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12905fi
12906
12907if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12908 for ncn_progname in cc gcc; do
12909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12910set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12912$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12913if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12914 $as_echo_n "(cached) " >&6
278a7a38
AO
12915else
12916 if test -n "$CC_FOR_TARGET"; then
12917 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12918else
12919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12920for as_dir in $PATH
12921do
12922 IFS=$as_save_IFS
12923 test -z "$as_dir" && as_dir=.
5213506e 12924 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12926 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 12927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12928 break 2
12929 fi
12930done
5213506e
RW
12931 done
12932IFS=$as_save_IFS
278a7a38
AO
12933
12934fi
12935fi
12936CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12937if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12939$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 12940else
5213506e
RW
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942$as_echo "no" >&6; }
278a7a38
AO
12943fi
12944
5213506e 12945
278a7a38
AO
12946 done
12947fi
12948
12949if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12950 for ncn_progname in cc gcc; do
5213506e
RW
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12952$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12953 if test -x $with_build_time_tools/${ncn_progname}; then
12954 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12956$as_echo "yes" >&6; }
72a7ab82 12957 break
e8b05380 12958 else
5213506e
RW
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960$as_echo "no" >&6; }
72a7ab82
AP
12961 fi
12962 done
4de997d1
PB
12963fi
12964
e8b05380
PB
12965if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12966 for ncn_progname in cc gcc; do
12967 if test -n "$ncn_target_tool_prefix"; then
12968 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12969set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12971$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12972if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12973 $as_echo_n "(cached) " >&6
4de997d1
PB
12974else
12975 if test -n "$CC_FOR_TARGET"; then
12976 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12977else
1c710c3c
DJ
12978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12979for as_dir in $PATH
12980do
12981 IFS=$as_save_IFS
12982 test -z "$as_dir" && as_dir=.
5213506e 12983 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12985 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12987 break 2
12988 fi
12989done
5213506e
RW
12990 done
12991IFS=$as_save_IFS
1c710c3c 12992
4de997d1
PB
12993fi
12994fi
1c710c3c 12995CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 12996if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12998$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 12999else
5213506e
RW
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13001$as_echo "no" >&6; }
4de997d1
PB
13002fi
13003
5213506e 13004
e8b05380
PB
13005 fi
13006 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13008set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13010$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13011if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 13012 $as_echo_n "(cached) " >&6
4de997d1 13013else
2693c0b0
PB
13014 if test -n "$CC_FOR_TARGET"; then
13015 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 13016else
1c710c3c
DJ
13017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13018for as_dir in $PATH
13019do
13020 IFS=$as_save_IFS
13021 test -z "$as_dir" && as_dir=.
5213506e 13022 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13024 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 13025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13026 break 2
13027 fi
13028done
5213506e
RW
13029 done
13030IFS=$as_save_IFS
1c710c3c 13031
4de997d1
PB
13032fi
13033fi
1c710c3c 13034CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 13035if test -n "$CC_FOR_TARGET"; then
5213506e
RW
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13037$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 13038else
5213506e
RW
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13040$as_echo "no" >&6; }
4de997d1 13041fi
1c710c3c 13042
5213506e 13043
e8b05380
PB
13044 fi
13045 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13046 done
13047fi
1c710c3c 13048
2693c0b0
PB
13049if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13050 set dummy cc gcc
13051 if test $build = $target ; then
13052 CC_FOR_TARGET="$2"
4de997d1 13053 else
2693c0b0 13054 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 13055 fi
1c00b503
PB
13056else
13057 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
13058fi
13059
278a7a38
AO
13060
13061
13062if test -n "$CXX_FOR_TARGET"; then
13063 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13064elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13065 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13066fi
13067
13068if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13069 for ncn_progname in c++ g++ cxx gxx; do
13070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13071set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13073$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13074if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13075 $as_echo_n "(cached) " >&6
278a7a38
AO
13076else
13077 if test -n "$CXX_FOR_TARGET"; then
13078 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13079else
13080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13081for as_dir in $PATH
13082do
13083 IFS=$as_save_IFS
13084 test -z "$as_dir" && as_dir=.
5213506e 13085 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13087 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 13088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13089 break 2
13090 fi
13091done
5213506e
RW
13092 done
13093IFS=$as_save_IFS
278a7a38
AO
13094
13095fi
13096fi
13097CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13098if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13100$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 13101else
5213506e
RW
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13103$as_echo "no" >&6; }
278a7a38
AO
13104fi
13105
5213506e 13106
278a7a38
AO
13107 done
13108fi
13109
13110if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13111 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13113$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13114 if test -x $with_build_time_tools/${ncn_progname}; then
13115 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13117$as_echo "yes" >&6; }
e8b05380
PB
13118 break
13119 else
5213506e
RW
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121$as_echo "no" >&6; }
e8b05380
PB
13122 fi
13123 done
13124fi
13125
13126if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13127 for ncn_progname in c++ g++ cxx gxx; do
13128 if test -n "$ncn_target_tool_prefix"; then
13129 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13130set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13132$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13133if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13134 $as_echo_n "(cached) " >&6
4de997d1
PB
13135else
13136 if test -n "$CXX_FOR_TARGET"; then
13137 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13138else
1c710c3c
DJ
13139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140for as_dir in $PATH
13141do
13142 IFS=$as_save_IFS
13143 test -z "$as_dir" && as_dir=.
5213506e 13144 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13146 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13148 break 2
13149 fi
13150done
5213506e
RW
13151 done
13152IFS=$as_save_IFS
1c710c3c 13153
4de997d1
PB
13154fi
13155fi
1c710c3c 13156CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 13157if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13159$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 13160else
5213506e
RW
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13162$as_echo "no" >&6; }
4de997d1
PB
13163fi
13164
5213506e 13165
e8b05380
PB
13166 fi
13167 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13168 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13169set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13171$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13172if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13173 $as_echo_n "(cached) " >&6
4de997d1 13174else
2693c0b0
PB
13175 if test -n "$CXX_FOR_TARGET"; then
13176 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 13177else
1c710c3c
DJ
13178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13179for as_dir in $PATH
13180do
13181 IFS=$as_save_IFS
13182 test -z "$as_dir" && as_dir=.
5213506e 13183 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13185 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 13186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13187 break 2
13188 fi
13189done
5213506e
RW
13190 done
13191IFS=$as_save_IFS
1c710c3c 13192
4de997d1
PB
13193fi
13194fi
1c710c3c 13195CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 13196if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13198$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 13199else
5213506e
RW
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13201$as_echo "no" >&6; }
4de997d1 13202fi
1c710c3c 13203
5213506e 13204
e8b05380
PB
13205 fi
13206 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13207 done
13208fi
1c710c3c 13209
2693c0b0
PB
13210if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13211 set dummy c++ g++ cxx gxx
13212 if test $build = $target ; then
13213 CXX_FOR_TARGET="$2"
4de997d1 13214 else
2693c0b0 13215 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 13216 fi
1c00b503
PB
13217else
13218 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
13219fi
13220
278a7a38
AO
13221
13222
13223if test -n "$GCC_FOR_TARGET"; then
13224 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13225elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13226 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13227fi
13228
13229if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13230 for ncn_progname in gcc; do
13231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13232set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13234$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13235if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13236 $as_echo_n "(cached) " >&6
278a7a38
AO
13237else
13238 if test -n "$GCC_FOR_TARGET"; then
13239 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13240else
13241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242for as_dir in $PATH
13243do
13244 IFS=$as_save_IFS
13245 test -z "$as_dir" && as_dir=.
5213506e 13246 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13248 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 13249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13250 break 2
13251 fi
13252done
5213506e
RW
13253 done
13254IFS=$as_save_IFS
278a7a38
AO
13255
13256fi
13257fi
13258GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13259if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13261$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 13262else
5213506e
RW
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264$as_echo "no" >&6; }
278a7a38
AO
13265fi
13266
5213506e 13267
278a7a38
AO
13268 done
13269fi
13270
13271if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13272 for ncn_progname in gcc; do
5213506e
RW
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13274$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13275 if test -x $with_build_time_tools/${ncn_progname}; then
13276 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13278$as_echo "yes" >&6; }
e8b05380
PB
13279 break
13280 else
5213506e
RW
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13282$as_echo "no" >&6; }
e8b05380
PB
13283 fi
13284 done
13285fi
13286
13287if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13288 for ncn_progname in gcc; do
13289 if test -n "$ncn_target_tool_prefix"; then
13290 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13291set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13293$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13294if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13295 $as_echo_n "(cached) " >&6
ca9f4b81 13296else
e8b05380
PB
13297 if test -n "$GCC_FOR_TARGET"; then
13298 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13299else
1c710c3c
DJ
13300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13301for as_dir in $PATH
13302do
13303 IFS=$as_save_IFS
13304 test -z "$as_dir" && as_dir=.
5213506e 13305 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13307 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13309 break 2
13310 fi
13311done
5213506e
RW
13312 done
13313IFS=$as_save_IFS
1c710c3c 13314
ca9f4b81
AO
13315fi
13316fi
1c710c3c 13317GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13318if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13320$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13321else
5213506e
RW
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13323$as_echo "no" >&6; }
ca9f4b81
AO
13324fi
13325
5213506e 13326
e8b05380
PB
13327 fi
13328 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13330set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13332$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13333if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13334 $as_echo_n "(cached) " >&6
ca9f4b81 13335else
e8b05380
PB
13336 if test -n "$GCC_FOR_TARGET"; then
13337 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13338else
1c710c3c
DJ
13339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13340for as_dir in $PATH
13341do
13342 IFS=$as_save_IFS
13343 test -z "$as_dir" && as_dir=.
5213506e 13344 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13346 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 13347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13348 break 2
13349 fi
13350done
5213506e
RW
13351 done
13352IFS=$as_save_IFS
1c710c3c 13353
ca9f4b81
AO
13354fi
13355fi
1c710c3c 13356GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13357if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13359$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13360else
5213506e
RW
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13362$as_echo "no" >&6; }
ca9f4b81 13363fi
1c710c3c 13364
5213506e 13365
e8b05380
PB
13366 fi
13367 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13368 done
13369fi
1c710c3c 13370
e8b05380
PB
13371if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13372 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
13373else
13374 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
13375fi
13376
278a7a38
AO
13377
13378
278a7a38
AO
13379if test -n "$GFORTRAN_FOR_TARGET"; then
13380 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13381elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13382 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
13383fi
13384
278a7a38
AO
13385if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13386 for ncn_progname in gfortran; do
13387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 13388set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13390$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13391if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13392 $as_echo_n "(cached) " >&6
e8b05380 13393else
278a7a38
AO
13394 if test -n "$GFORTRAN_FOR_TARGET"; then
13395 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 13396else
1c710c3c
DJ
13397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13398for as_dir in $PATH
13399do
13400 IFS=$as_save_IFS
13401 test -z "$as_dir" && as_dir=.
5213506e 13402 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13404 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13406 break 2
13407 fi
13408done
5213506e
RW
13409 done
13410IFS=$as_save_IFS
1c710c3c 13411
e8b05380
PB
13412fi
13413fi
278a7a38
AO
13414GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13415if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13417$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13418else
5213506e
RW
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13420$as_echo "no" >&6; }
e8b05380 13421fi
1c710c3c 13422
5213506e 13423
e8b05380
PB
13424 done
13425fi
1c710c3c 13426
278a7a38 13427if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13428 for ncn_progname in gfortran; do
5213506e
RW
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13430$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13431 if test -x $with_build_time_tools/${ncn_progname}; then
13432 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13434$as_echo "yes" >&6; }
e8b05380
PB
13435 break
13436 else
5213506e
RW
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13438$as_echo "no" >&6; }
e8b05380
PB
13439 fi
13440 done
13441fi
13442
13443if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13444 for ncn_progname in gfortran; do
13445 if test -n "$ncn_target_tool_prefix"; then
13446 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13447set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13449$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13450if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13451 $as_echo_n "(cached) " >&6
e8b05380
PB
13452else
13453 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
13454 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13455else
13456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13457for as_dir in $PATH
13458do
13459 IFS=$as_save_IFS
13460 test -z "$as_dir" && as_dir=.
5213506e 13461 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13463 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13465 break 2
13466 fi
13467done
5213506e
RW
13468 done
13469IFS=$as_save_IFS
1c710c3c 13470
e8b05380
PB
13471fi
13472fi
1c710c3c 13473GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13474if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13476$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13477else
5213506e
RW
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13479$as_echo "no" >&6; }
e8b05380
PB
13480fi
13481
5213506e 13482
e8b05380
PB
13483 fi
13484 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13486set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13488$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13489if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13490 $as_echo_n "(cached) " >&6
e8b05380
PB
13491else
13492 if test -n "$GFORTRAN_FOR_TARGET"; then
13493 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13494else
1c710c3c
DJ
13495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13496for as_dir in $PATH
13497do
13498 IFS=$as_save_IFS
13499 test -z "$as_dir" && as_dir=.
5213506e 13500 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13502 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13504 break 2
13505 fi
13506done
5213506e
RW
13507 done
13508IFS=$as_save_IFS
1c710c3c 13509
e8b05380
PB
13510fi
13511fi
1c710c3c 13512GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13513if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13515$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13516else
5213506e
RW
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13518$as_echo "no" >&6; }
e8b05380 13519fi
1c710c3c 13520
5213506e 13521
e8b05380
PB
13522 fi
13523 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13524 done
13525fi
1c710c3c 13526
e8b05380
PB
13527if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13528 set dummy gfortran
2693c0b0 13529 if test $build = $target ; then
e8b05380 13530 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 13531 else
e8b05380
PB
13532 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13533 fi
1c00b503
PB
13534else
13535 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
13536fi
13537
13538
13539
632e2a07
ILT
13540if test -n "$GOC_FOR_TARGET"; then
13541 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13542elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13543 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13544fi
13545
13546if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13547 for ncn_progname in gccgo; do
13548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13549set dummy ${ncn_progname}; ac_word=$2
13550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13551$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13552if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13553 $as_echo_n "(cached) " >&6
13554else
13555 if test -n "$GOC_FOR_TARGET"; then
13556 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13557else
13558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13559for as_dir in $PATH
13560do
13561 IFS=$as_save_IFS
13562 test -z "$as_dir" && as_dir=.
13563 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13565 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13567 break 2
13568 fi
13569done
13570 done
13571IFS=$as_save_IFS
13572
13573fi
13574fi
13575GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13576if test -n "$GOC_FOR_TARGET"; then
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13578$as_echo "$GOC_FOR_TARGET" >&6; }
13579else
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13581$as_echo "no" >&6; }
13582fi
13583
13584
13585 done
13586fi
13587
13588if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13589 for ncn_progname in gccgo; do
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13591$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13592 if test -x $with_build_time_tools/${ncn_progname}; then
13593 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13595$as_echo "yes" >&6; }
13596 break
13597 else
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13599$as_echo "no" >&6; }
13600 fi
13601 done
13602fi
13603
13604if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13605 for ncn_progname in gccgo; do
13606 if test -n "$ncn_target_tool_prefix"; then
13607 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13608set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13610$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13611if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13612 $as_echo_n "(cached) " >&6
13613else
13614 if test -n "$GOC_FOR_TARGET"; then
13615 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13616else
13617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13618for as_dir in $PATH
13619do
13620 IFS=$as_save_IFS
13621 test -z "$as_dir" && as_dir=.
13622 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13624 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13626 break 2
13627 fi
13628done
13629 done
13630IFS=$as_save_IFS
13631
13632fi
13633fi
13634GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13635if test -n "$GOC_FOR_TARGET"; then
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13637$as_echo "$GOC_FOR_TARGET" >&6; }
13638else
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13640$as_echo "no" >&6; }
13641fi
13642
13643
13644 fi
13645 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13646 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13647set dummy ${ncn_progname}; ac_word=$2
13648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13649$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13650if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13651 $as_echo_n "(cached) " >&6
13652else
13653 if test -n "$GOC_FOR_TARGET"; then
13654 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13655else
13656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13657for as_dir in $PATH
13658do
13659 IFS=$as_save_IFS
13660 test -z "$as_dir" && as_dir=.
13661 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13663 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13665 break 2
13666 fi
13667done
13668 done
13669IFS=$as_save_IFS
13670
13671fi
13672fi
13673GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13674if test -n "$GOC_FOR_TARGET"; then
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13676$as_echo "$GOC_FOR_TARGET" >&6; }
13677else
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679$as_echo "no" >&6; }
13680fi
13681
13682
13683 fi
13684 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13685 done
13686fi
13687
13688if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13689 set dummy gccgo
13690 if test $build = $target ; then
13691 GOC_FOR_TARGET="$2"
13692 else
13693 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13694 fi
13695else
13696 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13697fi
13698
13699
13700
b4c522fa
IB
13701if test -n "$GDC_FOR_TARGET"; then
13702 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13703elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13704 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13705fi
13706
13707if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13708 for ncn_progname in gdc; do
13709 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13710set dummy ${ncn_progname}; ac_word=$2
13711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13712$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13713if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13714 $as_echo_n "(cached) " >&6
13715else
13716 if test -n "$GDC_FOR_TARGET"; then
13717 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13718else
13719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13720for as_dir in $PATH
13721do
13722 IFS=$as_save_IFS
13723 test -z "$as_dir" && as_dir=.
13724 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13726 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13728 break 2
13729 fi
13730done
13731 done
13732IFS=$as_save_IFS
13733
13734fi
13735fi
13736GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13737if test -n "$GDC_FOR_TARGET"; then
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13739$as_echo "$GDC_FOR_TARGET" >&6; }
13740else
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13742$as_echo "no" >&6; }
13743fi
13744
13745
13746 done
13747fi
13748
13749if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13750 for ncn_progname in gdc; do
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13752$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13753 if test -x $with_build_time_tools/${ncn_progname}; then
13754 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13756$as_echo "yes" >&6; }
13757 break
13758 else
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13760$as_echo "no" >&6; }
13761 fi
13762 done
13763fi
13764
13765if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13766 for ncn_progname in gdc; do
13767 if test -n "$ncn_target_tool_prefix"; then
13768 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13769set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13771$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13772if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13773 $as_echo_n "(cached) " >&6
13774else
13775 if test -n "$GDC_FOR_TARGET"; then
13776 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13777else
13778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13779for as_dir in $PATH
13780do
13781 IFS=$as_save_IFS
13782 test -z "$as_dir" && as_dir=.
13783 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13785 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13787 break 2
13788 fi
13789done
13790 done
13791IFS=$as_save_IFS
13792
13793fi
13794fi
13795GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13796if test -n "$GDC_FOR_TARGET"; then
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13798$as_echo "$GDC_FOR_TARGET" >&6; }
13799else
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13801$as_echo "no" >&6; }
13802fi
13803
13804
13805 fi
13806 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13807 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13808set dummy ${ncn_progname}; ac_word=$2
13809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13810$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13811if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13812 $as_echo_n "(cached) " >&6
13813else
13814 if test -n "$GDC_FOR_TARGET"; then
13815 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13816else
13817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13818for as_dir in $PATH
13819do
13820 IFS=$as_save_IFS
13821 test -z "$as_dir" && as_dir=.
13822 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13824 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13826 break 2
13827 fi
13828done
13829 done
13830IFS=$as_save_IFS
13831
13832fi
13833fi
13834GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13835if test -n "$GDC_FOR_TARGET"; then
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13837$as_echo "$GDC_FOR_TARGET" >&6; }
13838else
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13840$as_echo "no" >&6; }
13841fi
13842
13843
13844 fi
13845 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13846 done
13847fi
13848
13849if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13850 set dummy gdc
13851 if test $build = $target ; then
13852 GDC_FOR_TARGET="$2"
13853 else
13854 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13855 fi
13856else
13857 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13858fi
13859
13860
13861
1eee94d3
GM
13862if test -n "$GM2_FOR_TARGET"; then
13863 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
13864elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13865 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13866fi
13867
13868if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13869 for ncn_progname in gm2; do
13870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13871set dummy ${ncn_progname}; ac_word=$2
13872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13873$as_echo_n "checking for $ac_word... " >&6; }
13874if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13875 $as_echo_n "(cached) " >&6
13876else
13877 if test -n "$GM2_FOR_TARGET"; then
13878 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13879else
13880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13881for as_dir in $PATH
13882do
13883 IFS=$as_save_IFS
13884 test -z "$as_dir" && as_dir=.
13885 for ac_exec_ext in '' $ac_executable_extensions; do
13886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13887 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13889 break 2
13890 fi
13891done
13892 done
13893IFS=$as_save_IFS
13894
13895fi
13896fi
13897GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13898if test -n "$GM2_FOR_TARGET"; then
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
13900$as_echo "$GM2_FOR_TARGET" >&6; }
13901else
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13903$as_echo "no" >&6; }
13904fi
13905
13906
13907 done
13908fi
13909
13910if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
13911 for ncn_progname in gm2; do
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13913$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13914 if test -x $with_build_time_tools/${ncn_progname}; then
13915 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13917$as_echo "yes" >&6; }
13918 break
13919 else
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13921$as_echo "no" >&6; }
13922 fi
13923 done
13924fi
13925
13926if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
13927 for ncn_progname in gm2; do
13928 if test -n "$ncn_target_tool_prefix"; then
13929 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13930set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13932$as_echo_n "checking for $ac_word... " >&6; }
13933if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13934 $as_echo_n "(cached) " >&6
13935else
13936 if test -n "$GM2_FOR_TARGET"; then
13937 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13938else
13939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13940for as_dir in $PATH
13941do
13942 IFS=$as_save_IFS
13943 test -z "$as_dir" && as_dir=.
13944 for ac_exec_ext in '' $ac_executable_extensions; do
13945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13946 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13948 break 2
13949 fi
13950done
13951 done
13952IFS=$as_save_IFS
13953
13954fi
13955fi
13956GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13957if test -n "$GM2_FOR_TARGET"; then
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
13959$as_echo "$GM2_FOR_TARGET" >&6; }
13960else
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13962$as_echo "no" >&6; }
13963fi
13964
13965
13966 fi
13967 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
13968 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13969set dummy ${ncn_progname}; ac_word=$2
13970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13971$as_echo_n "checking for $ac_word... " >&6; }
13972if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13973 $as_echo_n "(cached) " >&6
13974else
13975 if test -n "$GM2_FOR_TARGET"; then
13976 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13977else
13978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13979for as_dir in $PATH
13980do
13981 IFS=$as_save_IFS
13982 test -z "$as_dir" && as_dir=.
13983 for ac_exec_ext in '' $ac_executable_extensions; do
13984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13985 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13987 break 2
13988 fi
13989done
13990 done
13991IFS=$as_save_IFS
13992
13993fi
13994fi
13995GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13996if test -n "$GM2_FOR_TARGET"; then
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
13998$as_echo "$GM2_FOR_TARGET" >&6; }
13999else
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14001$as_echo "no" >&6; }
14002fi
14003
14004
14005 fi
14006 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14007 done
14008fi
14009
14010if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14011 set dummy gm2
14012 if test $build = $target ; then
14013 GM2_FOR_TARGET="$2"
14014 else
14015 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14016 fi
14017else
14018 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14019fi
14020
14021
14022
e8b05380
PB
14023cat > conftest.c << \EOF
14024#ifdef __GNUC__
14025 gcc_yay;
14026#endif
14027EOF
14028if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14029 have_gcc_for_target=yes
14030else
14031 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14032 have_gcc_for_target=no
14033fi
14034rm conftest.c
14035
14036
14037
14038
14039if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14040 if test -n "$with_build_time_tools"; then
5213506e
RW
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14042$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14043 if test -x $with_build_time_tools/ar; then
14044 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14045 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14047$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 14048 else
5213506e
RW
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14050$as_echo "no" >&6; }
d1f8db0c 14051 fi
e8b05380
PB
14052 elif test $build != $host && test $have_gcc_for_target = yes; then
14053 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
14054 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14055 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
14056 fi
14057fi
3e19841a 14058if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14059 # Extract the first word of "ar", so it can be a program name with args.
14060set dummy ar; ac_word=$2
5213506e
RW
14061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14062$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14063if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
5213506e 14064 $as_echo_n "(cached) " >&6
e8b05380 14065else
1c710c3c
DJ
14066 case $AR_FOR_TARGET in
14067 [\\/]* | ?:[\\/]*)
e8b05380
PB
14068 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14069 ;;
e8b05380 14070 *)
1c710c3c
DJ
14071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14072for as_dir in $gcc_cv_tool_dirs
14073do
14074 IFS=$as_save_IFS
14075 test -z "$as_dir" && as_dir=.
5213506e 14076 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14078 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14080 break 2
14081 fi
14082done
5213506e
RW
14083 done
14084IFS=$as_save_IFS
1c710c3c 14085
e8b05380
PB
14086 ;;
14087esac
14088fi
1c710c3c 14089AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 14090if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14092$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 14093else
5213506e
RW
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14095$as_echo "no" >&6; }
4de997d1
PB
14096fi
14097
5213506e 14098
e8b05380
PB
14099fi
14100if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
14101
14102
14103if test -n "$AR_FOR_TARGET"; then
14104 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14105elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14106 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14107fi
14108
14109if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14110 for ncn_progname in ar; do
14111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14112set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14114$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14115if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 14116 $as_echo_n "(cached) " >&6
278a7a38
AO
14117else
14118 if test -n "$AR_FOR_TARGET"; then
14119 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14120else
14121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14122for as_dir in $PATH
14123do
14124 IFS=$as_save_IFS
14125 test -z "$as_dir" && as_dir=.
5213506e 14126 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14128 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 14129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14130 break 2
14131 fi
14132done
5213506e
RW
14133 done
14134IFS=$as_save_IFS
278a7a38
AO
14135
14136fi
14137fi
14138AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14139if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14141$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 14142else
5213506e
RW
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14144$as_echo "no" >&6; }
278a7a38
AO
14145fi
14146
5213506e 14147
278a7a38
AO
14148 done
14149fi
14150
14151if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14152 for ncn_progname in ar; do
5213506e
RW
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14154$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14155 if test -x $with_build_time_tools/${ncn_progname}; then
14156 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14158$as_echo "yes" >&6; }
e8b05380
PB
14159 break
14160 else
5213506e
RW
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14162$as_echo "no" >&6; }
e8b05380
PB
14163 fi
14164 done
14165fi
14166
14167if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14168 for ncn_progname in ar; do
14169 if test -n "$ncn_target_tool_prefix"; then
14170 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14171set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14173$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14174if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 14175 $as_echo_n "(cached) " >&6
4de997d1 14176else
e8b05380
PB
14177 if test -n "$AR_FOR_TARGET"; then
14178 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 14179else
1c710c3c
DJ
14180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14181for as_dir in $PATH
14182do
14183 IFS=$as_save_IFS
14184 test -z "$as_dir" && as_dir=.
5213506e 14185 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14187 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14189 break 2
14190 fi
14191done
5213506e
RW
14192 done
14193IFS=$as_save_IFS
1c710c3c 14194
4de997d1
PB
14195fi
14196fi
1c710c3c 14197AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 14198if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14200$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 14201else
5213506e
RW
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14203$as_echo "no" >&6; }
4de997d1
PB
14204fi
14205
5213506e 14206
e8b05380
PB
14207 fi
14208 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14209 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14210set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14212$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14213if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 14214 $as_echo_n "(cached) " >&6
e8b05380
PB
14215else
14216 if test -n "$AR_FOR_TARGET"; then
14217 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14218else
1c710c3c
DJ
14219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14220for as_dir in $PATH
14221do
14222 IFS=$as_save_IFS
14223 test -z "$as_dir" && as_dir=.
5213506e 14224 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14226 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 14227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14228 break 2
14229 fi
14230done
5213506e
RW
14231 done
14232IFS=$as_save_IFS
1c710c3c 14233
e8b05380
PB
14234fi
14235fi
1c710c3c 14236AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 14237if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14239$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 14240else
5213506e
RW
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14242$as_echo "no" >&6; }
e8b05380 14243fi
1c710c3c 14244
5213506e 14245
e8b05380
PB
14246 fi
14247 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14248 done
14249fi
1c710c3c 14250
e8b05380
PB
14251if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14252 set dummy ar
14253 if test $build = $target ; then
14254 AR_FOR_TARGET="$2"
14255 else
14256 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 14257 fi
1c00b503
PB
14258else
14259 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
14260fi
14261
d1f8db0c
PB
14262else
14263 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
14264fi
14265
14266
14267
14268
14269if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14270 if test -n "$with_build_time_tools"; then
5213506e
RW
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14272$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14273 if test -x $with_build_time_tools/as; then
14274 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14275 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14277$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 14278 else
5213506e
RW
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14280$as_echo "no" >&6; }
d1f8db0c 14281 fi
e8b05380
PB
14282 elif test $build != $host && test $have_gcc_for_target = yes; then
14283 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
14284 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14285 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
14286 fi
14287fi
3e19841a 14288if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14289 # Extract the first word of "as", so it can be a program name with args.
14290set dummy as; ac_word=$2
5213506e
RW
14291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14292$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14293if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
5213506e 14294 $as_echo_n "(cached) " >&6
e8b05380 14295else
1c710c3c
DJ
14296 case $AS_FOR_TARGET in
14297 [\\/]* | ?:[\\/]*)
e8b05380
PB
14298 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14299 ;;
e8b05380 14300 *)
1c710c3c
DJ
14301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14302for as_dir in $gcc_cv_tool_dirs
14303do
14304 IFS=$as_save_IFS
14305 test -z "$as_dir" && as_dir=.
5213506e 14306 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14308 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14310 break 2
14311 fi
14312done
5213506e
RW
14313 done
14314IFS=$as_save_IFS
1c710c3c 14315
e8b05380
PB
14316 ;;
14317esac
14318fi
1c710c3c 14319AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 14320if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14322$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 14323else
5213506e
RW
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14325$as_echo "no" >&6; }
e8b05380
PB
14326fi
14327
5213506e 14328
e8b05380
PB
14329fi
14330if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
14331
14332
14333if test -n "$AS_FOR_TARGET"; then
14334 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14335elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14336 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14337fi
14338
14339if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14340 for ncn_progname in as; do
14341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14342set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14344$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14345if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14346 $as_echo_n "(cached) " >&6
278a7a38
AO
14347else
14348 if test -n "$AS_FOR_TARGET"; then
14349 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14350else
14351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14352for as_dir in $PATH
14353do
14354 IFS=$as_save_IFS
14355 test -z "$as_dir" && as_dir=.
5213506e 14356 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14358 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 14359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14360 break 2
14361 fi
14362done
5213506e
RW
14363 done
14364IFS=$as_save_IFS
278a7a38
AO
14365
14366fi
14367fi
14368AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14369if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14371$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 14372else
5213506e
RW
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14374$as_echo "no" >&6; }
278a7a38
AO
14375fi
14376
5213506e 14377
278a7a38
AO
14378 done
14379fi
14380
14381if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14382 for ncn_progname in as; do
5213506e
RW
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14384$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14385 if test -x $with_build_time_tools/${ncn_progname}; then
14386 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14388$as_echo "yes" >&6; }
e8b05380
PB
14389 break
14390 else
5213506e
RW
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14392$as_echo "no" >&6; }
e8b05380
PB
14393 fi
14394 done
14395fi
14396
14397if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14398 for ncn_progname in as; do
14399 if test -n "$ncn_target_tool_prefix"; then
14400 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14401set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14403$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14404if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14405 $as_echo_n "(cached) " >&6
e8b05380
PB
14406else
14407 if test -n "$AS_FOR_TARGET"; then
14408 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14409else
1c710c3c
DJ
14410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14411for as_dir in $PATH
14412do
14413 IFS=$as_save_IFS
14414 test -z "$as_dir" && as_dir=.
5213506e 14415 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14417 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14419 break 2
14420 fi
14421done
5213506e
RW
14422 done
14423IFS=$as_save_IFS
1c710c3c 14424
e8b05380
PB
14425fi
14426fi
1c710c3c 14427AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 14428if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14430$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 14431else
5213506e
RW
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14433$as_echo "no" >&6; }
e8b05380
PB
14434fi
14435
5213506e 14436
e8b05380
PB
14437 fi
14438 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14439 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14440set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14442$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14443if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14444 $as_echo_n "(cached) " >&6
4de997d1 14445else
e8b05380
PB
14446 if test -n "$AS_FOR_TARGET"; then
14447 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 14448else
1c710c3c
DJ
14449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14450for as_dir in $PATH
14451do
14452 IFS=$as_save_IFS
14453 test -z "$as_dir" && as_dir=.
5213506e 14454 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14456 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 14457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14458 break 2
14459 fi
14460done
5213506e
RW
14461 done
14462IFS=$as_save_IFS
1c710c3c 14463
4de997d1
PB
14464fi
14465fi
1c710c3c 14466AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 14467if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14469$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 14470else
5213506e
RW
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14472$as_echo "no" >&6; }
4de997d1 14473fi
1c710c3c 14474
5213506e 14475
e8b05380
PB
14476 fi
14477 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14478 done
14479fi
1c710c3c 14480
e8b05380
PB
14481if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14482 set dummy as
14483 if test $build = $target ; then
14484 AS_FOR_TARGET="$2"
14485 else
14486 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 14487 fi
1c00b503
PB
14488else
14489 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 14490fi
2693c0b0 14491
d1f8db0c
PB
14492else
14493 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
14494fi
14495
e8b05380
PB
14496
14497
14498
14499if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14500 if test -n "$with_build_time_tools"; then
5213506e
RW
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14502$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14503 if test -x $with_build_time_tools/dlltool; then
14504 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14505 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14507$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 14508 else
5213506e
RW
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14510$as_echo "no" >&6; }
d1f8db0c 14511 fi
e8b05380
PB
14512 elif test $build != $host && test $have_gcc_for_target = yes; then
14513 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
14514 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14515 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
14516 fi
14517fi
3e19841a 14518if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14519 # Extract the first word of "dlltool", so it can be a program name with args.
14520set dummy dlltool; ac_word=$2
5213506e
RW
14521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14522$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14523if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14524 $as_echo_n "(cached) " >&6
4de997d1 14525else
1c710c3c
DJ
14526 case $DLLTOOL_FOR_TARGET in
14527 [\\/]* | ?:[\\/]*)
e8b05380
PB
14528 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14529 ;;
e8b05380 14530 *)
1c710c3c
DJ
14531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14532for as_dir in $gcc_cv_tool_dirs
14533do
14534 IFS=$as_save_IFS
14535 test -z "$as_dir" && as_dir=.
5213506e 14536 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14538 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14540 break 2
14541 fi
14542done
5213506e
RW
14543 done
14544IFS=$as_save_IFS
1c710c3c 14545
e8b05380
PB
14546 ;;
14547esac
4de997d1 14548fi
1c710c3c 14549DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 14550if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14552$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14553else
5213506e
RW
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14555$as_echo "no" >&6; }
4de997d1
PB
14556fi
14557
5213506e 14558
e8b05380
PB
14559fi
14560if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
14561
14562
14563if test -n "$DLLTOOL_FOR_TARGET"; then
14564 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14565elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14566 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14567fi
14568
14569if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14570 for ncn_progname in dlltool; do
14571 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14572set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14574$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14575if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14576 $as_echo_n "(cached) " >&6
278a7a38
AO
14577else
14578 if test -n "$DLLTOOL_FOR_TARGET"; then
14579 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14580else
14581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14582for as_dir in $PATH
14583do
14584 IFS=$as_save_IFS
14585 test -z "$as_dir" && as_dir=.
5213506e 14586 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14588 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14590 break 2
14591 fi
14592done
5213506e
RW
14593 done
14594IFS=$as_save_IFS
278a7a38
AO
14595
14596fi
14597fi
14598DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14599if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14601$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 14602else
5213506e
RW
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14604$as_echo "no" >&6; }
278a7a38
AO
14605fi
14606
5213506e 14607
278a7a38
AO
14608 done
14609fi
14610
14611if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14612 for ncn_progname in dlltool; do
5213506e
RW
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14614$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14615 if test -x $with_build_time_tools/${ncn_progname}; then
14616 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14618$as_echo "yes" >&6; }
e8b05380
PB
14619 break
14620 else
5213506e
RW
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14622$as_echo "no" >&6; }
e8b05380
PB
14623 fi
14624 done
14625fi
14626
14627if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14628 for ncn_progname in dlltool; do
14629 if test -n "$ncn_target_tool_prefix"; then
14630 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14631set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14633$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14634if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14635 $as_echo_n "(cached) " >&6
4de997d1 14636else
e8b05380
PB
14637 if test -n "$DLLTOOL_FOR_TARGET"; then
14638 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14639else
1c710c3c
DJ
14640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14641for as_dir in $PATH
14642do
14643 IFS=$as_save_IFS
14644 test -z "$as_dir" && as_dir=.
5213506e 14645 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14647 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14649 break 2
14650 fi
14651done
5213506e
RW
14652 done
14653IFS=$as_save_IFS
1c710c3c 14654
4de997d1
PB
14655fi
14656fi
1c710c3c 14657DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14658if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14660$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14661else
5213506e
RW
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14663$as_echo "no" >&6; }
4de997d1 14664fi
4de997d1 14665
5213506e 14666
e8b05380
PB
14667 fi
14668 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14669 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14670set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14672$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14673if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14674 $as_echo_n "(cached) " >&6
4de997d1 14675else
e8b05380
PB
14676 if test -n "$DLLTOOL_FOR_TARGET"; then
14677 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14678else
1c710c3c
DJ
14679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14680for as_dir in $PATH
14681do
14682 IFS=$as_save_IFS
14683 test -z "$as_dir" && as_dir=.
5213506e 14684 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14686 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14688 break 2
14689 fi
14690done
5213506e
RW
14691 done
14692IFS=$as_save_IFS
1c710c3c 14693
4de997d1
PB
14694fi
14695fi
1c710c3c 14696DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14697if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14699$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14700else
5213506e
RW
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14702$as_echo "no" >&6; }
4de997d1 14703fi
1c710c3c 14704
5213506e 14705
e8b05380
PB
14706 fi
14707 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14708 done
14709fi
1c710c3c 14710
e8b05380
PB
14711if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14712 set dummy dlltool
14713 if test $build = $target ; then
14714 DLLTOOL_FOR_TARGET="$2"
14715 else
14716 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14717 fi
1c00b503
PB
14718else
14719 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
14720fi
14721
d1f8db0c
PB
14722else
14723 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
14724fi
14725
4de997d1 14726
e8b05380
PB
14727
14728
3b5e8ee4
IS
14729if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14730 if test -n "$with_build_time_tools"; then
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14732$as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14733 if test -x $with_build_time_tools/dsymutil; then
14734 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14735 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14737$as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14738 else
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14740$as_echo "no" >&6; }
14741 fi
14742 elif test $build != $host && test $have_gcc_for_target = yes; then
14743 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14744 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14745 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14746 fi
14747fi
14748if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14749 # Extract the first word of "dsymutil", so it can be a program name with args.
14750set dummy dsymutil; ac_word=$2
14751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14752$as_echo_n "checking for $ac_word... " >&6; }
14753if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14754 $as_echo_n "(cached) " >&6
14755else
14756 case $DSYMUTIL_FOR_TARGET in
14757 [\\/]* | ?:[\\/]*)
14758 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14759 ;;
14760 *)
14761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14762for as_dir in $gcc_cv_tool_dirs
14763do
14764 IFS=$as_save_IFS
14765 test -z "$as_dir" && as_dir=.
14766 for ac_exec_ext in '' $ac_executable_extensions; do
14767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14768 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14770 break 2
14771 fi
14772done
14773 done
14774IFS=$as_save_IFS
14775
14776 ;;
14777esac
14778fi
14779DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14780if test -n "$DSYMUTIL_FOR_TARGET"; then
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14782$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14783else
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14785$as_echo "no" >&6; }
14786fi
14787
14788
14789fi
14790if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14791
14792
14793if test -n "$DSYMUTIL_FOR_TARGET"; then
14794 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14795elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14796 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14797fi
14798
14799if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14800 for ncn_progname in dsymutil; do
14801 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14802set dummy ${ncn_progname}; ac_word=$2
14803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14804$as_echo_n "checking for $ac_word... " >&6; }
14805if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14806 $as_echo_n "(cached) " >&6
14807else
14808 if test -n "$DSYMUTIL_FOR_TARGET"; then
14809 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14810else
14811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14812for as_dir in $PATH
14813do
14814 IFS=$as_save_IFS
14815 test -z "$as_dir" && as_dir=.
14816 for ac_exec_ext in '' $ac_executable_extensions; do
14817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14818 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14820 break 2
14821 fi
14822done
14823 done
14824IFS=$as_save_IFS
14825
14826fi
14827fi
14828DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14829if test -n "$DSYMUTIL_FOR_TARGET"; then
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14831$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14832else
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14834$as_echo "no" >&6; }
14835fi
14836
14837
14838 done
14839fi
14840
14841if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14842 for ncn_progname in dsymutil; do
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14844$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14845 if test -x $with_build_time_tools/${ncn_progname}; then
14846 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14848$as_echo "yes" >&6; }
14849 break
14850 else
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14852$as_echo "no" >&6; }
14853 fi
14854 done
14855fi
14856
14857if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14858 for ncn_progname in dsymutil; do
14859 if test -n "$ncn_target_tool_prefix"; then
14860 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14861set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14863$as_echo_n "checking for $ac_word... " >&6; }
14864if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14865 $as_echo_n "(cached) " >&6
14866else
14867 if test -n "$DSYMUTIL_FOR_TARGET"; then
14868 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14869else
14870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14871for as_dir in $PATH
14872do
14873 IFS=$as_save_IFS
14874 test -z "$as_dir" && as_dir=.
14875 for ac_exec_ext in '' $ac_executable_extensions; do
14876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14877 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14879 break 2
14880 fi
14881done
14882 done
14883IFS=$as_save_IFS
14884
14885fi
14886fi
14887DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14888if test -n "$DSYMUTIL_FOR_TARGET"; then
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14890$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14891else
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14893$as_echo "no" >&6; }
14894fi
14895
14896
14897 fi
14898 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14899 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14900set dummy ${ncn_progname}; ac_word=$2
14901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14902$as_echo_n "checking for $ac_word... " >&6; }
14903if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14904 $as_echo_n "(cached) " >&6
14905else
14906 if test -n "$DSYMUTIL_FOR_TARGET"; then
14907 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14908else
14909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14910for as_dir in $PATH
14911do
14912 IFS=$as_save_IFS
14913 test -z "$as_dir" && as_dir=.
14914 for ac_exec_ext in '' $ac_executable_extensions; do
14915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14916 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14918 break 2
14919 fi
14920done
14921 done
14922IFS=$as_save_IFS
14923
14924fi
14925fi
14926DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14927if test -n "$DSYMUTIL_FOR_TARGET"; then
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14929$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14930else
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14932$as_echo "no" >&6; }
14933fi
14934
14935
14936 fi
14937 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14938 done
14939fi
14940
14941if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14942 set dummy dsymutil
14943 if test $build = $target ; then
14944 DSYMUTIL_FOR_TARGET="$2"
14945 else
14946 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14947 fi
14948else
14949 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14950fi
14951
14952else
14953 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14954fi
14955
14956
14957
14958
e8b05380
PB
14959if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14960 if test -n "$with_build_time_tools"; then
5213506e
RW
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14962$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14963 if test -x $with_build_time_tools/ld; then
14964 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14965 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14967$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 14968 else
5213506e
RW
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14970$as_echo "no" >&6; }
d1f8db0c 14971 fi
e8b05380
PB
14972 elif test $build != $host && test $have_gcc_for_target = yes; then
14973 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
14974 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14975 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 14976 fi
e8b05380 14977fi
3e19841a 14978if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14979 # Extract the first word of "ld", so it can be a program name with args.
14980set dummy ld; ac_word=$2
5213506e
RW
14981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14982$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14983if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
5213506e 14984 $as_echo_n "(cached) " >&6
4de997d1 14985else
1c710c3c
DJ
14986 case $LD_FOR_TARGET in
14987 [\\/]* | ?:[\\/]*)
e8b05380
PB
14988 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14989 ;;
e8b05380 14990 *)
1c710c3c
DJ
14991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14992for as_dir in $gcc_cv_tool_dirs
14993do
14994 IFS=$as_save_IFS
14995 test -z "$as_dir" && as_dir=.
5213506e 14996 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14998 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15000 break 2
15001 fi
15002done
5213506e
RW
15003 done
15004IFS=$as_save_IFS
1c710c3c 15005
e8b05380
PB
15006 ;;
15007esac
4de997d1 15008fi
1c710c3c 15009LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 15010if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15012$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 15013else
5213506e
RW
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15015$as_echo "no" >&6; }
4de997d1 15016fi
2693c0b0 15017
5213506e 15018
e8b05380
PB
15019fi
15020if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
15021
15022
15023if test -n "$LD_FOR_TARGET"; then
15024 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15025elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15026 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15027fi
15028
15029if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15030 for ncn_progname in ld; do
15031 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15032set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15034$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15035if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 15036 $as_echo_n "(cached) " >&6
278a7a38
AO
15037else
15038 if test -n "$LD_FOR_TARGET"; then
15039 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15040else
15041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15042for as_dir in $PATH
15043do
15044 IFS=$as_save_IFS
15045 test -z "$as_dir" && as_dir=.
5213506e 15046 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15048 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 15049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15050 break 2
15051 fi
15052done
5213506e
RW
15053 done
15054IFS=$as_save_IFS
278a7a38
AO
15055
15056fi
15057fi
15058LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15059if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15061$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 15062else
5213506e
RW
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15064$as_echo "no" >&6; }
278a7a38
AO
15065fi
15066
5213506e 15067
278a7a38
AO
15068 done
15069fi
15070
15071if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15072 for ncn_progname in ld; do
5213506e
RW
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15074$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15075 if test -x $with_build_time_tools/${ncn_progname}; then
15076 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15078$as_echo "yes" >&6; }
e8b05380
PB
15079 break
15080 else
5213506e
RW
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15082$as_echo "no" >&6; }
e8b05380
PB
15083 fi
15084 done
ca9f4b81
AO
15085fi
15086
e8b05380
PB
15087if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15088 for ncn_progname in ld; do
15089 if test -n "$ncn_target_tool_prefix"; then
15090 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15091set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15093$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15094if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 15095 $as_echo_n "(cached) " >&6
ca9f4b81 15096else
4de997d1
PB
15097 if test -n "$LD_FOR_TARGET"; then
15098 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 15099else
1c710c3c
DJ
15100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15101for as_dir in $PATH
15102do
15103 IFS=$as_save_IFS
15104 test -z "$as_dir" && as_dir=.
5213506e 15105 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15107 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15109 break 2
15110 fi
15111done
5213506e
RW
15112 done
15113IFS=$as_save_IFS
1c710c3c 15114
ca9f4b81
AO
15115fi
15116fi
1c710c3c 15117LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 15118if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15120$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 15121else
5213506e
RW
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15123$as_echo "no" >&6; }
ca9f4b81
AO
15124fi
15125
5213506e 15126
e8b05380
PB
15127 fi
15128 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 15130set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15132$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15133if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 15134 $as_echo_n "(cached) " >&6
ca9f4b81 15135else
2693c0b0
PB
15136 if test -n "$LD_FOR_TARGET"; then
15137 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 15138else
1c710c3c
DJ
15139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15140for as_dir in $PATH
15141do
15142 IFS=$as_save_IFS
15143 test -z "$as_dir" && as_dir=.
5213506e 15144 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15146 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 15147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15148 break 2
15149 fi
15150done
5213506e
RW
15151 done
15152IFS=$as_save_IFS
1c710c3c 15153
ca9f4b81
AO
15154fi
15155fi
1c710c3c 15156LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 15157if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15159$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 15160else
5213506e
RW
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15162$as_echo "no" >&6; }
ca9f4b81 15163fi
1c710c3c 15164
5213506e 15165
e8b05380
PB
15166 fi
15167 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15168 done
15169fi
1c710c3c 15170
2693c0b0
PB
15171if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15172 set dummy ld
15173 if test $build = $target ; then
15174 LD_FOR_TARGET="$2"
ca9f4b81 15175 else
2693c0b0 15176 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 15177 fi
1c00b503
PB
15178else
15179 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
15180fi
15181
d1f8db0c
PB
15182else
15183 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
15184fi
15185
15186
15187
15188
15189if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15190 if test -n "$with_build_time_tools"; then
5213506e
RW
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15192$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15193 if test -x $with_build_time_tools/lipo; then
15194 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15195 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15197$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 15198 else
5213506e
RW
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15200$as_echo "no" >&6; }
d1f8db0c 15201 fi
e8b05380
PB
15202 elif test $build != $host && test $have_gcc_for_target = yes; then
15203 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
15204 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15205 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
15206 fi
15207fi
278a7a38
AO
15208if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15209 # Extract the first word of "lipo", so it can be a program name with args.
15210set dummy lipo; ac_word=$2
5213506e
RW
15211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15212$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15213if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
5213506e 15214 $as_echo_n "(cached) " >&6
278a7a38
AO
15215else
15216 case $LIPO_FOR_TARGET in
15217 [\\/]* | ?:[\\/]*)
15218 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15219 ;;
15220 *)
15221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15222for as_dir in $gcc_cv_tool_dirs
15223do
15224 IFS=$as_save_IFS
15225 test -z "$as_dir" && as_dir=.
5213506e 15226 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15228 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15230 break 2
15231 fi
15232done
5213506e
RW
15233 done
15234IFS=$as_save_IFS
278a7a38
AO
15235
15236 ;;
15237esac
15238fi
15239LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 15240if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15242$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 15243else
5213506e
RW
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15245$as_echo "no" >&6; }
278a7a38
AO
15246fi
15247
5213506e 15248
278a7a38
AO
15249fi
15250if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15251
15252
15253if test -n "$LIPO_FOR_TARGET"; then
15254 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15255elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15256 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15257fi
15258
15259if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15260 for ncn_progname in lipo; do
15261 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15262set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15264$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15265if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15266 $as_echo_n "(cached) " >&6
e8b05380 15267else
278a7a38
AO
15268 if test -n "$LIPO_FOR_TARGET"; then
15269 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15270else
15271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15272for as_dir in $PATH
1c710c3c
DJ
15273do
15274 IFS=$as_save_IFS
15275 test -z "$as_dir" && as_dir=.
5213506e 15276 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15278 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 15279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15280 break 2
15281 fi
15282done
5213506e
RW
15283 done
15284IFS=$as_save_IFS
1c710c3c 15285
e8b05380 15286fi
278a7a38
AO
15287fi
15288LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 15289if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15291$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 15292else
5213506e
RW
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15294$as_echo "no" >&6; }
e8b05380
PB
15295fi
15296
5213506e 15297
278a7a38 15298 done
e8b05380 15299fi
278a7a38
AO
15300
15301if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15302 for ncn_progname in lipo; do
5213506e
RW
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15304$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15305 if test -x $with_build_time_tools/${ncn_progname}; then
15306 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15308$as_echo "yes" >&6; }
e8b05380
PB
15309 break
15310 else
5213506e
RW
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15312$as_echo "no" >&6; }
e8b05380
PB
15313 fi
15314 done
15315fi
15316
15317if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15318 for ncn_progname in lipo; do
15319 if test -n "$ncn_target_tool_prefix"; then
15320 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15321set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15323$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15324if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15325 $as_echo_n "(cached) " >&6
040b1c5a
GK
15326else
15327 if test -n "$LIPO_FOR_TARGET"; then
15328 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15329else
1c710c3c
DJ
15330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15331for as_dir in $PATH
15332do
15333 IFS=$as_save_IFS
15334 test -z "$as_dir" && as_dir=.
5213506e 15335 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15337 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15339 break 2
15340 fi
15341done
5213506e
RW
15342 done
15343IFS=$as_save_IFS
1c710c3c 15344
040b1c5a
GK
15345fi
15346fi
1c710c3c 15347LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 15348if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15350$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 15351else
5213506e
RW
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15353$as_echo "no" >&6; }
040b1c5a
GK
15354fi
15355
5213506e 15356
e8b05380
PB
15357 fi
15358 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15359 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 15360set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15362$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15363if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15364 $as_echo_n "(cached) " >&6
040b1c5a
GK
15365else
15366 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
15367 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15368else
1c710c3c
DJ
15369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15370for as_dir in $PATH
15371do
15372 IFS=$as_save_IFS
15373 test -z "$as_dir" && as_dir=.
5213506e 15374 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15376 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 15377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15378 break 2
15379 fi
15380done
5213506e
RW
15381 done
15382IFS=$as_save_IFS
1c710c3c 15383
040b1c5a
GK
15384fi
15385fi
1c710c3c 15386LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 15387if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15389$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 15390else
5213506e
RW
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15392$as_echo "no" >&6; }
040b1c5a 15393fi
1c710c3c 15394
5213506e 15395
e8b05380
PB
15396 fi
15397 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15398 done
15399fi
1c710c3c 15400
040b1c5a
GK
15401if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15402 set dummy lipo
15403 if test $build = $target ; then
15404 LIPO_FOR_TARGET="$2"
15405 else
15406 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15407 fi
1c00b503
PB
15408else
15409 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
15410fi
15411
d1f8db0c
PB
15412else
15413 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
15414fi
15415
15416
15417
15418
15419if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15420 if test -n "$with_build_time_tools"; then
5213506e
RW
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15422$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15423 if test -x $with_build_time_tools/nm; then
15424 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15425 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15427$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 15428 else
5213506e
RW
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15430$as_echo "no" >&6; }
d1f8db0c 15431 fi
e8b05380
PB
15432 elif test $build != $host && test $have_gcc_for_target = yes; then
15433 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
15434 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15435 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
15436 fi
15437fi
3e19841a 15438if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15439 # Extract the first word of "nm", so it can be a program name with args.
15440set dummy nm; ac_word=$2
5213506e
RW
15441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15442$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15443if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
5213506e 15444 $as_echo_n "(cached) " >&6
e8b05380 15445else
1c710c3c
DJ
15446 case $NM_FOR_TARGET in
15447 [\\/]* | ?:[\\/]*)
e8b05380
PB
15448 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15449 ;;
e8b05380 15450 *)
1c710c3c
DJ
15451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15452for as_dir in $gcc_cv_tool_dirs
15453do
15454 IFS=$as_save_IFS
15455 test -z "$as_dir" && as_dir=.
5213506e 15456 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15458 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15460 break 2
15461 fi
15462done
5213506e
RW
15463 done
15464IFS=$as_save_IFS
1c710c3c 15465
e8b05380
PB
15466 ;;
15467esac
15468fi
1c710c3c 15469NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 15470if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15472$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 15473else
5213506e
RW
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15475$as_echo "no" >&6; }
e8b05380
PB
15476fi
15477
5213506e 15478
e8b05380
PB
15479fi
15480if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
15481
15482
15483if test -n "$NM_FOR_TARGET"; then
15484 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15485elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15486 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15487fi
15488
15489if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15490 for ncn_progname in nm; do
15491 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15492set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15494$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15495if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15496 $as_echo_n "(cached) " >&6
278a7a38
AO
15497else
15498 if test -n "$NM_FOR_TARGET"; then
15499 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15500else
15501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15502for as_dir in $PATH
15503do
15504 IFS=$as_save_IFS
15505 test -z "$as_dir" && as_dir=.
5213506e 15506 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15508 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15510 break 2
15511 fi
15512done
5213506e
RW
15513 done
15514IFS=$as_save_IFS
278a7a38
AO
15515
15516fi
15517fi
15518NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15519if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15521$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 15522else
5213506e
RW
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15524$as_echo "no" >&6; }
278a7a38
AO
15525fi
15526
5213506e 15527
278a7a38
AO
15528 done
15529fi
15530
15531if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15532 for ncn_progname in nm; do
5213506e
RW
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15534$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15535 if test -x $with_build_time_tools/${ncn_progname}; then
15536 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15538$as_echo "yes" >&6; }
e8b05380
PB
15539 break
15540 else
5213506e
RW
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15542$as_echo "no" >&6; }
e8b05380
PB
15543 fi
15544 done
15545fi
15546
15547if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15548 for ncn_progname in nm; do
15549 if test -n "$ncn_target_tool_prefix"; then
15550 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 15551set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15553$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15554if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15555 $as_echo_n "(cached) " >&6
ca9f4b81 15556else
4de997d1
PB
15557 if test -n "$NM_FOR_TARGET"; then
15558 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15559else
1c710c3c
DJ
15560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15561for as_dir in $PATH
15562do
15563 IFS=$as_save_IFS
15564 test -z "$as_dir" && as_dir=.
5213506e 15565 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15567 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15569 break 2
15570 fi
15571done
5213506e
RW
15572 done
15573IFS=$as_save_IFS
1c710c3c 15574
ca9f4b81
AO
15575fi
15576fi
1c710c3c 15577NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 15578if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15580$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15581else
5213506e
RW
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15583$as_echo "no" >&6; }
ca9f4b81
AO
15584fi
15585
5213506e 15586
e8b05380
PB
15587 fi
15588 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 15590set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15592$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15593if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15594 $as_echo_n "(cached) " >&6
ca9f4b81 15595else
2693c0b0
PB
15596 if test -n "$NM_FOR_TARGET"; then
15597 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15598else
1c710c3c
DJ
15599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15600for as_dir in $PATH
15601do
15602 IFS=$as_save_IFS
15603 test -z "$as_dir" && as_dir=.
5213506e 15604 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15606 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15608 break 2
15609 fi
15610done
5213506e
RW
15611 done
15612IFS=$as_save_IFS
1c710c3c 15613
ca9f4b81
AO
15614fi
15615fi
1c710c3c 15616NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 15617if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15619$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15620else
5213506e
RW
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15622$as_echo "no" >&6; }
ca9f4b81 15623fi
1c710c3c 15624
5213506e 15625
e8b05380
PB
15626 fi
15627 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15628 done
15629fi
1c710c3c 15630
2693c0b0
PB
15631if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15632 set dummy nm
15633 if test $build = $target ; then
15634 NM_FOR_TARGET="$2"
ca9f4b81 15635 else
2693c0b0 15636 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 15637 fi
1c00b503
PB
15638else
15639 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
15640fi
15641
d1f8db0c
PB
15642else
15643 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
15644fi
15645
15646
15647
15648
9bccfdf5
AP
15649if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15650 if test -n "$with_build_time_tools"; then
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15652$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15653 if test -x $with_build_time_tools/objcopy; then
15654 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15655 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15657$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15658 else
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15660$as_echo "no" >&6; }
15661 fi
15662 elif test $build != $host && test $have_gcc_for_target = yes; then
15663 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15664 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15665 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15666 fi
15667fi
15668if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15669 # Extract the first word of "objcopy", so it can be a program name with args.
15670set dummy objcopy; ac_word=$2
15671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15672$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15673if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15674 $as_echo_n "(cached) " >&6
15675else
15676 case $OBJCOPY_FOR_TARGET in
15677 [\\/]* | ?:[\\/]*)
15678 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15679 ;;
15680 *)
15681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15682for as_dir in $gcc_cv_tool_dirs
15683do
15684 IFS=$as_save_IFS
15685 test -z "$as_dir" && as_dir=.
15686 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15688 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15690 break 2
15691 fi
15692done
15693 done
15694IFS=$as_save_IFS
15695
15696 ;;
15697esac
15698fi
15699OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15700if test -n "$OBJCOPY_FOR_TARGET"; then
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15702$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15703else
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15705$as_echo "no" >&6; }
15706fi
15707
15708
15709fi
15710if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15711
15712
15713if test -n "$OBJCOPY_FOR_TARGET"; then
15714 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15715elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15716 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15717fi
15718
15719if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15720 for ncn_progname in objcopy; do
15721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15722set dummy ${ncn_progname}; ac_word=$2
15723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15724$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15725if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15726 $as_echo_n "(cached) " >&6
15727else
15728 if test -n "$OBJCOPY_FOR_TARGET"; then
15729 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15730else
15731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15732for as_dir in $PATH
15733do
15734 IFS=$as_save_IFS
15735 test -z "$as_dir" && as_dir=.
15736 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15738 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15740 break 2
15741 fi
15742done
15743 done
15744IFS=$as_save_IFS
15745
15746fi
15747fi
15748OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15749if test -n "$OBJCOPY_FOR_TARGET"; then
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15751$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15752else
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15754$as_echo "no" >&6; }
15755fi
15756
15757
15758 done
15759fi
15760
15761if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15762 for ncn_progname in objcopy; do
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15764$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15765 if test -x $with_build_time_tools/${ncn_progname}; then
15766 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15768$as_echo "yes" >&6; }
15769 break
15770 else
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15772$as_echo "no" >&6; }
15773 fi
15774 done
15775fi
15776
15777if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15778 for ncn_progname in objcopy; do
15779 if test -n "$ncn_target_tool_prefix"; then
15780 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15781set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15783$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15784if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15785 $as_echo_n "(cached) " >&6
15786else
15787 if test -n "$OBJCOPY_FOR_TARGET"; then
15788 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15789else
15790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15791for as_dir in $PATH
15792do
15793 IFS=$as_save_IFS
15794 test -z "$as_dir" && as_dir=.
15795 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15797 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15799 break 2
15800 fi
15801done
15802 done
15803IFS=$as_save_IFS
15804
15805fi
15806fi
15807OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15808if test -n "$OBJCOPY_FOR_TARGET"; then
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15810$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15811else
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15813$as_echo "no" >&6; }
15814fi
15815
15816
15817 fi
15818 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15819 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15820set dummy ${ncn_progname}; ac_word=$2
15821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15822$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15823if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15824 $as_echo_n "(cached) " >&6
15825else
15826 if test -n "$OBJCOPY_FOR_TARGET"; then
15827 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15828else
15829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15830for as_dir in $PATH
15831do
15832 IFS=$as_save_IFS
15833 test -z "$as_dir" && as_dir=.
15834 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15836 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15838 break 2
15839 fi
15840done
15841 done
15842IFS=$as_save_IFS
15843
15844fi
15845fi
15846OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15847if test -n "$OBJCOPY_FOR_TARGET"; then
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15849$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15850else
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15852$as_echo "no" >&6; }
15853fi
15854
15855
15856 fi
15857 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15858 done
15859fi
15860
15861if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15862 set dummy objcopy
15863 if test $build = $target ; then
15864 OBJCOPY_FOR_TARGET="$2"
15865 else
15866 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15867 fi
15868else
15869 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15870fi
15871
15872else
15873 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15874fi
15875
15876
15877
15878
e8b05380
PB
15879if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15880 if test -n "$with_build_time_tools"; then
5213506e
RW
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15882$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15883 if test -x $with_build_time_tools/objdump; then
15884 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15885 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15887$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 15888 else
5213506e
RW
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15890$as_echo "no" >&6; }
d1f8db0c 15891 fi
e8b05380
PB
15892 elif test $build != $host && test $have_gcc_for_target = yes; then
15893 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
15894 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15895 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
15896 fi
15897fi
3e19841a 15898if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15899 # Extract the first word of "objdump", so it can be a program name with args.
15900set dummy objdump; ac_word=$2
5213506e
RW
15901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15902$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15903if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15904 $as_echo_n "(cached) " >&6
e8b05380 15905else
1c710c3c
DJ
15906 case $OBJDUMP_FOR_TARGET in
15907 [\\/]* | ?:[\\/]*)
e8b05380
PB
15908 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15909 ;;
e8b05380 15910 *)
1c710c3c
DJ
15911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15912for as_dir in $gcc_cv_tool_dirs
15913do
15914 IFS=$as_save_IFS
15915 test -z "$as_dir" && as_dir=.
5213506e 15916 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15918 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15920 break 2
15921 fi
15922done
5213506e
RW
15923 done
15924IFS=$as_save_IFS
1c710c3c 15925
e8b05380
PB
15926 ;;
15927esac
15928fi
1c710c3c 15929OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 15930if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15932$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 15933else
5213506e
RW
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15935$as_echo "no" >&6; }
e8b05380
PB
15936fi
15937
5213506e 15938
e8b05380
PB
15939fi
15940if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
15941
15942
15943if test -n "$OBJDUMP_FOR_TARGET"; then
15944 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15945elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15946 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15947fi
15948
15949if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15950 for ncn_progname in objdump; do
15951 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15952set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15954$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15955if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15956 $as_echo_n "(cached) " >&6
278a7a38
AO
15957else
15958 if test -n "$OBJDUMP_FOR_TARGET"; then
15959 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15960else
15961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15962for as_dir in $PATH
15963do
15964 IFS=$as_save_IFS
15965 test -z "$as_dir" && as_dir=.
5213506e 15966 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15968 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 15969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15970 break 2
15971 fi
15972done
5213506e
RW
15973 done
15974IFS=$as_save_IFS
278a7a38
AO
15975
15976fi
15977fi
15978OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15979if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15981$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 15982else
5213506e
RW
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15984$as_echo "no" >&6; }
278a7a38
AO
15985fi
15986
5213506e 15987
278a7a38
AO
15988 done
15989fi
15990
15991if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15992 for ncn_progname in objdump; do
5213506e
RW
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15994$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15995 if test -x $with_build_time_tools/${ncn_progname}; then
15996 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15998$as_echo "yes" >&6; }
e8b05380
PB
15999 break
16000 else
5213506e
RW
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16002$as_echo "no" >&6; }
e8b05380
PB
16003 fi
16004 done
16005fi
16006
16007if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16008 for ncn_progname in objdump; do
16009 if test -n "$ncn_target_tool_prefix"; then
16010 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 16011set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16013$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16014if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 16015 $as_echo_n "(cached) " >&6
d739199a
DJ
16016else
16017 if test -n "$OBJDUMP_FOR_TARGET"; then
16018 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16019else
1c710c3c
DJ
16020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16021for as_dir in $PATH
16022do
16023 IFS=$as_save_IFS
16024 test -z "$as_dir" && as_dir=.
5213506e 16025 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16027 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16029 break 2
16030 fi
16031done
5213506e
RW
16032 done
16033IFS=$as_save_IFS
1c710c3c 16034
d739199a
DJ
16035fi
16036fi
1c710c3c 16037OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 16038if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16040$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 16041else
5213506e
RW
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16043$as_echo "no" >&6; }
d739199a
DJ
16044fi
16045
5213506e 16046
e8b05380
PB
16047 fi
16048 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16049 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 16050set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16052$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16053if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 16054 $as_echo_n "(cached) " >&6
d739199a
DJ
16055else
16056 if test -n "$OBJDUMP_FOR_TARGET"; then
16057 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16058else
1c710c3c
DJ
16059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16060for as_dir in $PATH
16061do
16062 IFS=$as_save_IFS
16063 test -z "$as_dir" && as_dir=.
5213506e 16064 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16066 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 16067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16068 break 2
16069 fi
16070done
5213506e
RW
16071 done
16072IFS=$as_save_IFS
1c710c3c 16073
d739199a
DJ
16074fi
16075fi
1c710c3c 16076OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 16077if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16079$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 16080else
5213506e
RW
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16082$as_echo "no" >&6; }
d739199a 16083fi
1c710c3c 16084
5213506e 16085
e8b05380
PB
16086 fi
16087 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16088 done
16089fi
1c710c3c 16090
d739199a
DJ
16091if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16092 set dummy objdump
16093 if test $build = $target ; then
16094 OBJDUMP_FOR_TARGET="$2"
16095 else
16096 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16097 fi
1c00b503
PB
16098else
16099 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
16100fi
16101
d1f8db0c
PB
16102else
16103 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
16104fi
16105
16106
16107
16108
e4a9a572
IS
16109if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16110 if test -n "$with_build_time_tools"; then
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16112$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16113 if test -x $with_build_time_tools/otool; then
16114 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16115 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16117$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16118 else
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16120$as_echo "no" >&6; }
16121 fi
16122 elif test $build != $host && test $have_gcc_for_target = yes; then
16123 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16124 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16125 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16126 fi
16127fi
16128if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16129 # Extract the first word of "otool", so it can be a program name with args.
16130set dummy otool; ac_word=$2
16131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16132$as_echo_n "checking for $ac_word... " >&6; }
16133if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16134 $as_echo_n "(cached) " >&6
16135else
16136 case $OTOOL_FOR_TARGET in
16137 [\\/]* | ?:[\\/]*)
16138 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16139 ;;
16140 *)
16141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16142for as_dir in $gcc_cv_tool_dirs
16143do
16144 IFS=$as_save_IFS
16145 test -z "$as_dir" && as_dir=.
16146 for ac_exec_ext in '' $ac_executable_extensions; do
16147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16148 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16150 break 2
16151 fi
16152done
16153 done
16154IFS=$as_save_IFS
16155
16156 ;;
16157esac
16158fi
16159OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16160if test -n "$OTOOL_FOR_TARGET"; then
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16162$as_echo "$OTOOL_FOR_TARGET" >&6; }
16163else
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16165$as_echo "no" >&6; }
16166fi
16167
16168
16169fi
16170if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16171
16172
16173if test -n "$OTOOL_FOR_TARGET"; then
16174 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16175elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16176 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16177fi
16178
16179if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16180 for ncn_progname in otool; do
16181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16182set dummy ${ncn_progname}; ac_word=$2
16183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16184$as_echo_n "checking for $ac_word... " >&6; }
16185if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16186 $as_echo_n "(cached) " >&6
16187else
16188 if test -n "$OTOOL_FOR_TARGET"; then
16189 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16190else
16191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16192for as_dir in $PATH
16193do
16194 IFS=$as_save_IFS
16195 test -z "$as_dir" && as_dir=.
16196 for ac_exec_ext in '' $ac_executable_extensions; do
16197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16198 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16200 break 2
16201 fi
16202done
16203 done
16204IFS=$as_save_IFS
16205
16206fi
16207fi
16208OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16209if test -n "$OTOOL_FOR_TARGET"; then
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16211$as_echo "$OTOOL_FOR_TARGET" >&6; }
16212else
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16214$as_echo "no" >&6; }
16215fi
16216
16217
16218 done
16219fi
16220
16221if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16222 for ncn_progname in otool; do
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16224$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16225 if test -x $with_build_time_tools/${ncn_progname}; then
16226 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16228$as_echo "yes" >&6; }
16229 break
16230 else
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16232$as_echo "no" >&6; }
16233 fi
16234 done
16235fi
16236
16237if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16238 for ncn_progname in otool; do
16239 if test -n "$ncn_target_tool_prefix"; then
16240 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16241set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16243$as_echo_n "checking for $ac_word... " >&6; }
16244if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16245 $as_echo_n "(cached) " >&6
16246else
16247 if test -n "$OTOOL_FOR_TARGET"; then
16248 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16249else
16250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16251for as_dir in $PATH
16252do
16253 IFS=$as_save_IFS
16254 test -z "$as_dir" && as_dir=.
16255 for ac_exec_ext in '' $ac_executable_extensions; do
16256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16257 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16259 break 2
16260 fi
16261done
16262 done
16263IFS=$as_save_IFS
16264
16265fi
16266fi
16267OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16268if test -n "$OTOOL_FOR_TARGET"; then
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16270$as_echo "$OTOOL_FOR_TARGET" >&6; }
16271else
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16273$as_echo "no" >&6; }
16274fi
16275
16276
16277 fi
16278 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16280set dummy ${ncn_progname}; ac_word=$2
16281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16282$as_echo_n "checking for $ac_word... " >&6; }
16283if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16284 $as_echo_n "(cached) " >&6
16285else
16286 if test -n "$OTOOL_FOR_TARGET"; then
16287 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16288else
16289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16290for as_dir in $PATH
16291do
16292 IFS=$as_save_IFS
16293 test -z "$as_dir" && as_dir=.
16294 for ac_exec_ext in '' $ac_executable_extensions; do
16295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16296 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16298 break 2
16299 fi
16300done
16301 done
16302IFS=$as_save_IFS
16303
16304fi
16305fi
16306OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16307if test -n "$OTOOL_FOR_TARGET"; then
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16309$as_echo "$OTOOL_FOR_TARGET" >&6; }
16310else
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16312$as_echo "no" >&6; }
16313fi
16314
16315
16316 fi
16317 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16318 done
16319fi
16320
16321if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16322 set dummy otool
16323 if test $build = $target ; then
16324 OTOOL_FOR_TARGET="$2"
16325 else
16326 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16327 fi
16328else
16329 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16330fi
16331
16332else
16333 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16334fi
16335
16336
16337
16338
e8b05380
PB
16339if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16340 if test -n "$with_build_time_tools"; then
5213506e
RW
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16342$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16343 if test -x $with_build_time_tools/ranlib; then
16344 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16345 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16347$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 16348 else
5213506e
RW
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16350$as_echo "no" >&6; }
d1f8db0c 16351 fi
e8b05380
PB
16352 elif test $build != $host && test $have_gcc_for_target = yes; then
16353 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
16354 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16355 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
16356 fi
16357fi
3e19841a 16358if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16359 # Extract the first word of "ranlib", so it can be a program name with args.
16360set dummy ranlib; ac_word=$2
5213506e
RW
16361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16362$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16363if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
5213506e 16364 $as_echo_n "(cached) " >&6
e8b05380 16365else
1c710c3c
DJ
16366 case $RANLIB_FOR_TARGET in
16367 [\\/]* | ?:[\\/]*)
e8b05380
PB
16368 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16369 ;;
e8b05380 16370 *)
1c710c3c
DJ
16371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16372for as_dir in $gcc_cv_tool_dirs
16373do
16374 IFS=$as_save_IFS
16375 test -z "$as_dir" && as_dir=.
5213506e 16376 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16378 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16380 break 2
16381 fi
16382done
5213506e
RW
16383 done
16384IFS=$as_save_IFS
1c710c3c 16385
e8b05380
PB
16386 ;;
16387esac
16388fi
1c710c3c 16389RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 16390if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16392$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 16393else
5213506e
RW
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16395$as_echo "no" >&6; }
e8b05380
PB
16396fi
16397
5213506e 16398
e8b05380
PB
16399fi
16400if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
16401
16402
16403if test -n "$RANLIB_FOR_TARGET"; then
16404 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16405elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16406 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16407fi
16408
16409if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16410 for ncn_progname in ranlib; do
16411 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16412set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16414$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16415if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16416 $as_echo_n "(cached) " >&6
278a7a38
AO
16417else
16418 if test -n "$RANLIB_FOR_TARGET"; then
16419 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16420else
16421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16422for as_dir in $PATH
16423do
16424 IFS=$as_save_IFS
16425 test -z "$as_dir" && as_dir=.
5213506e 16426 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16428 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 16429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16430 break 2
16431 fi
16432done
5213506e
RW
16433 done
16434IFS=$as_save_IFS
278a7a38
AO
16435
16436fi
16437fi
16438RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16439if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16441$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 16442else
5213506e
RW
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16444$as_echo "no" >&6; }
278a7a38
AO
16445fi
16446
5213506e 16447
278a7a38
AO
16448 done
16449fi
16450
16451if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16452 for ncn_progname in ranlib; do
5213506e
RW
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16454$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16455 if test -x $with_build_time_tools/${ncn_progname}; then
16456 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16458$as_echo "yes" >&6; }
e8b05380
PB
16459 break
16460 else
5213506e
RW
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16462$as_echo "no" >&6; }
e8b05380
PB
16463 fi
16464 done
16465fi
16466
16467if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16468 for ncn_progname in ranlib; do
16469 if test -n "$ncn_target_tool_prefix"; then
16470 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 16471set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16473$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16474if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16475 $as_echo_n "(cached) " >&6
ca9f4b81 16476else
4de997d1
PB
16477 if test -n "$RANLIB_FOR_TARGET"; then
16478 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16479else
1c710c3c
DJ
16480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16481for as_dir in $PATH
16482do
16483 IFS=$as_save_IFS
16484 test -z "$as_dir" && as_dir=.
5213506e 16485 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16487 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16489 break 2
16490 fi
16491done
5213506e
RW
16492 done
16493IFS=$as_save_IFS
1c710c3c 16494
ca9f4b81
AO
16495fi
16496fi
1c710c3c 16497RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 16498if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16500$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16501else
5213506e
RW
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16503$as_echo "no" >&6; }
ca9f4b81
AO
16504fi
16505
5213506e 16506
e8b05380
PB
16507 fi
16508 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16509 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 16510set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16512$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16513if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16514 $as_echo_n "(cached) " >&6
ca9f4b81 16515else
2693c0b0
PB
16516 if test -n "$RANLIB_FOR_TARGET"; then
16517 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16518else
1c710c3c
DJ
16519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16520for as_dir in $PATH
16521do
16522 IFS=$as_save_IFS
16523 test -z "$as_dir" && as_dir=.
5213506e 16524 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16526 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 16527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16528 break 2
16529 fi
16530done
5213506e
RW
16531 done
16532IFS=$as_save_IFS
1c710c3c 16533
ca9f4b81
AO
16534fi
16535fi
1c710c3c 16536RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 16537if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16539$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16540else
5213506e
RW
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16542$as_echo "no" >&6; }
ca9f4b81 16543fi
1c710c3c 16544
5213506e 16545
e8b05380
PB
16546 fi
16547 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16548 done
16549fi
1c710c3c 16550
e8b05380
PB
16551if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16552 set dummy ranlib
16553 if test $build = $target ; then
16554 RANLIB_FOR_TARGET="$2"
16555 else
16556 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 16557 fi
1c00b503
PB
16558else
16559 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 16560fi
2693c0b0 16561
d1f8db0c
PB
16562else
16563 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
16564fi
16565
e8b05380
PB
16566
16567
16568
e7a82751
RM
16569if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16570 if test -n "$with_build_time_tools"; then
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16572$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16573 if test -x $with_build_time_tools/readelf; then
16574 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16575 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16577$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16578 else
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16580$as_echo "no" >&6; }
16581 fi
16582 elif test $build != $host && test $have_gcc_for_target = yes; then
16583 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16584 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16585 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16586 fi
16587fi
16588if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16589 # Extract the first word of "readelf", so it can be a program name with args.
16590set dummy readelf; ac_word=$2
16591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16592$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16593if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16594 $as_echo_n "(cached) " >&6
16595else
16596 case $READELF_FOR_TARGET in
16597 [\\/]* | ?:[\\/]*)
16598 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16599 ;;
16600 *)
16601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16602for as_dir in $gcc_cv_tool_dirs
16603do
16604 IFS=$as_save_IFS
16605 test -z "$as_dir" && as_dir=.
16606 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16608 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16610 break 2
16611 fi
16612done
16613 done
16614IFS=$as_save_IFS
16615
16616 ;;
16617esac
16618fi
16619READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16620if test -n "$READELF_FOR_TARGET"; then
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16622$as_echo "$READELF_FOR_TARGET" >&6; }
16623else
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16625$as_echo "no" >&6; }
16626fi
16627
16628
16629fi
16630if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16631
16632
16633if test -n "$READELF_FOR_TARGET"; then
16634 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16635elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16636 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16637fi
16638
16639if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16640 for ncn_progname in readelf; do
16641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16642set dummy ${ncn_progname}; ac_word=$2
16643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16644$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16645if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16646 $as_echo_n "(cached) " >&6
16647else
16648 if test -n "$READELF_FOR_TARGET"; then
16649 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16650else
16651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16652for as_dir in $PATH
16653do
16654 IFS=$as_save_IFS
16655 test -z "$as_dir" && as_dir=.
16656 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16658 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16660 break 2
16661 fi
16662done
16663 done
16664IFS=$as_save_IFS
16665
16666fi
16667fi
16668READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16669if test -n "$READELF_FOR_TARGET"; then
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16671$as_echo "$READELF_FOR_TARGET" >&6; }
16672else
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16674$as_echo "no" >&6; }
16675fi
16676
16677
16678 done
16679fi
16680
16681if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16682 for ncn_progname in readelf; do
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16684$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16685 if test -x $with_build_time_tools/${ncn_progname}; then
16686 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16688$as_echo "yes" >&6; }
16689 break
16690 else
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16692$as_echo "no" >&6; }
16693 fi
16694 done
16695fi
16696
16697if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16698 for ncn_progname in readelf; do
16699 if test -n "$ncn_target_tool_prefix"; then
16700 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16701set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16703$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16704if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16705 $as_echo_n "(cached) " >&6
16706else
16707 if test -n "$READELF_FOR_TARGET"; then
16708 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16709else
16710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16711for as_dir in $PATH
16712do
16713 IFS=$as_save_IFS
16714 test -z "$as_dir" && as_dir=.
16715 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16717 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16719 break 2
16720 fi
16721done
16722 done
16723IFS=$as_save_IFS
16724
16725fi
16726fi
16727READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16728if test -n "$READELF_FOR_TARGET"; then
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16730$as_echo "$READELF_FOR_TARGET" >&6; }
16731else
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16733$as_echo "no" >&6; }
16734fi
16735
16736
16737 fi
16738 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16739 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16740set dummy ${ncn_progname}; ac_word=$2
16741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16742$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16743if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16744 $as_echo_n "(cached) " >&6
16745else
16746 if test -n "$READELF_FOR_TARGET"; then
16747 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16748else
16749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16750for as_dir in $PATH
16751do
16752 IFS=$as_save_IFS
16753 test -z "$as_dir" && as_dir=.
16754 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16756 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16758 break 2
16759 fi
16760done
16761 done
16762IFS=$as_save_IFS
16763
16764fi
16765fi
16766READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16767if test -n "$READELF_FOR_TARGET"; then
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16769$as_echo "$READELF_FOR_TARGET" >&6; }
16770else
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16772$as_echo "no" >&6; }
16773fi
16774
16775
16776 fi
16777 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16778 done
16779fi
16780
16781if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16782 set dummy readelf
16783 if test $build = $target ; then
16784 READELF_FOR_TARGET="$2"
16785 else
16786 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16787 fi
16788else
16789 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16790fi
16791
16792else
16793 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16794fi
16795
16796
16797
16798
e8b05380
PB
16799if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16800 if test -n "$with_build_time_tools"; then
5213506e
RW
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16802$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16803 if test -x $with_build_time_tools/strip; then
16804 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16805 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16807$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 16808 else
5213506e
RW
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16810$as_echo "no" >&6; }
d1f8db0c 16811 fi
e8b05380
PB
16812 elif test $build != $host && test $have_gcc_for_target = yes; then
16813 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
16814 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16815 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
16816 fi
16817fi
3e19841a 16818if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16819 # Extract the first word of "strip", so it can be a program name with args.
16820set dummy strip; ac_word=$2
5213506e
RW
16821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16822$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16823if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
5213506e 16824 $as_echo_n "(cached) " >&6
e8b05380 16825else
1c710c3c
DJ
16826 case $STRIP_FOR_TARGET in
16827 [\\/]* | ?:[\\/]*)
e8b05380
PB
16828 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16829 ;;
e8b05380 16830 *)
1c710c3c
DJ
16831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16832for as_dir in $gcc_cv_tool_dirs
16833do
16834 IFS=$as_save_IFS
16835 test -z "$as_dir" && as_dir=.
5213506e 16836 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16838 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16840 break 2
16841 fi
16842done
5213506e
RW
16843 done
16844IFS=$as_save_IFS
1c710c3c 16845
e8b05380
PB
16846 ;;
16847esac
16848fi
1c710c3c 16849STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 16850if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16852$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 16853else
5213506e
RW
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16855$as_echo "no" >&6; }
e8b05380
PB
16856fi
16857
5213506e 16858
e8b05380
PB
16859fi
16860if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
16861
16862
16863if test -n "$STRIP_FOR_TARGET"; then
16864 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16865elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16866 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16867fi
16868
16869if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16870 for ncn_progname in strip; do
16871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16872set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16874$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16875if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16876 $as_echo_n "(cached) " >&6
278a7a38
AO
16877else
16878 if test -n "$STRIP_FOR_TARGET"; then
16879 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16880else
16881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16882for as_dir in $PATH
16883do
16884 IFS=$as_save_IFS
16885 test -z "$as_dir" && as_dir=.
5213506e 16886 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16888 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 16889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16890 break 2
16891 fi
16892done
5213506e
RW
16893 done
16894IFS=$as_save_IFS
278a7a38
AO
16895
16896fi
16897fi
16898STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16899if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16901$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 16902else
5213506e
RW
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16904$as_echo "no" >&6; }
278a7a38
AO
16905fi
16906
5213506e 16907
278a7a38
AO
16908 done
16909fi
16910
16911if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16912 for ncn_progname in strip; do
5213506e
RW
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16914$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16915 if test -x $with_build_time_tools/${ncn_progname}; then
16916 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16918$as_echo "yes" >&6; }
e8b05380
PB
16919 break
16920 else
5213506e
RW
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16922$as_echo "no" >&6; }
e8b05380
PB
16923 fi
16924 done
16925fi
16926
16927if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16928 for ncn_progname in strip; do
16929 if test -n "$ncn_target_tool_prefix"; then
16930 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 16931set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16933$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16934if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16935 $as_echo_n "(cached) " >&6
af71363e
AS
16936else
16937 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
16938 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16939else
16940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16941for as_dir in $PATH
16942do
16943 IFS=$as_save_IFS
16944 test -z "$as_dir" && as_dir=.
5213506e 16945 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16947 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16949 break 2
16950 fi
16951done
5213506e
RW
16952 done
16953IFS=$as_save_IFS
1c710c3c 16954
040b1c5a
GK
16955fi
16956fi
1c710c3c 16957STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 16958if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16960$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 16961else
5213506e
RW
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16963$as_echo "no" >&6; }
040b1c5a
GK
16964fi
16965
5213506e 16966
e8b05380
PB
16967 fi
16968 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 16970set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16972$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16973if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16974 $as_echo_n "(cached) " >&6
040b1c5a
GK
16975else
16976 if test -n "$STRIP_FOR_TARGET"; then
16977 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16978else
1c710c3c
DJ
16979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16980for as_dir in $PATH
16981do
16982 IFS=$as_save_IFS
16983 test -z "$as_dir" && as_dir=.
5213506e 16984 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16986 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 16987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16988 break 2
16989 fi
16990done
5213506e
RW
16991 done
16992IFS=$as_save_IFS
1c710c3c 16993
040b1c5a
GK
16994fi
16995fi
1c710c3c 16996STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 16997if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16999$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 17000else
5213506e
RW
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17002$as_echo "no" >&6; }
040b1c5a 17003fi
1c710c3c 17004
5213506e 17005
e8b05380
PB
17006 fi
17007 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17008 done
17009fi
1c710c3c 17010
040b1c5a
GK
17011if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17012 set dummy strip
17013 if test $build = $target ; then
17014 STRIP_FOR_TARGET="$2"
17015 else
17016 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17017 fi
1c00b503
PB
17018else
17019 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
17020fi
17021
d1f8db0c
PB
17022else
17023 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
17024fi
17025
17026
17027
17028
17029if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17030 if test -n "$with_build_time_tools"; then
5213506e
RW
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17032$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
17033 if test -x $with_build_time_tools/windres; then
17034 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17035 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17037$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 17038 else
5213506e
RW
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17040$as_echo "no" >&6; }
d1f8db0c 17041 fi
e8b05380
PB
17042 elif test $build != $host && test $have_gcc_for_target = yes; then
17043 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
17044 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17045 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
17046 fi
17047fi
3e19841a 17048if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
17049 # Extract the first word of "windres", so it can be a program name with args.
17050set dummy windres; ac_word=$2
5213506e
RW
17051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17052$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17053if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
5213506e 17054 $as_echo_n "(cached) " >&6
e8b05380 17055else
1c710c3c
DJ
17056 case $WINDRES_FOR_TARGET in
17057 [\\/]* | ?:[\\/]*)
e8b05380
PB
17058 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17059 ;;
e8b05380 17060 *)
1c710c3c
DJ
17061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17062for as_dir in $gcc_cv_tool_dirs
17063do
17064 IFS=$as_save_IFS
17065 test -z "$as_dir" && as_dir=.
5213506e 17066 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17068 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 17069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17070 break 2
17071 fi
17072done
5213506e
RW
17073 done
17074IFS=$as_save_IFS
1c710c3c 17075
e8b05380
PB
17076 ;;
17077esac
17078fi
1c710c3c 17079WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 17080if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17082$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 17083else
5213506e
RW
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17085$as_echo "no" >&6; }
e8b05380
PB
17086fi
17087
5213506e 17088
e8b05380
PB
17089fi
17090if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
17091
17092
17093if test -n "$WINDRES_FOR_TARGET"; then
17094 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17095elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17096 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17097fi
17098
17099if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17100 for ncn_progname in windres; do
17101 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17102set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17104$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17105if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 17106 $as_echo_n "(cached) " >&6
278a7a38
AO
17107else
17108 if test -n "$WINDRES_FOR_TARGET"; then
17109 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17110else
17111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17112for as_dir in $PATH
17113do
17114 IFS=$as_save_IFS
17115 test -z "$as_dir" && as_dir=.
5213506e 17116 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 17118 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 17119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
17120 break 2
17121 fi
17122done
5213506e
RW
17123 done
17124IFS=$as_save_IFS
278a7a38
AO
17125
17126fi
17127fi
17128WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17129if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17131$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 17132else
5213506e
RW
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17134$as_echo "no" >&6; }
278a7a38
AO
17135fi
17136
5213506e 17137
278a7a38
AO
17138 done
17139fi
17140
17141if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 17142 for ncn_progname in windres; do
5213506e
RW
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17144$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
17145 if test -x $with_build_time_tools/${ncn_progname}; then
17146 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17148$as_echo "yes" >&6; }
e8b05380
PB
17149 break
17150 else
5213506e
RW
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17152$as_echo "no" >&6; }
e8b05380
PB
17153 fi
17154 done
17155fi
17156
17157if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17158 for ncn_progname in windres; do
17159 if test -n "$ncn_target_tool_prefix"; then
17160 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 17161set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
17162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17163$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17164if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 17165 $as_echo_n "(cached) " >&6
ca9f4b81 17166else
4de997d1
PB
17167 if test -n "$WINDRES_FOR_TARGET"; then
17168 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 17169else
1c710c3c
DJ
17170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17171for as_dir in $PATH
17172do
17173 IFS=$as_save_IFS
17174 test -z "$as_dir" && as_dir=.
5213506e 17175 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17177 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 17178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17179 break 2
17180 fi
17181done
5213506e
RW
17182 done
17183IFS=$as_save_IFS
1c710c3c 17184
ca9f4b81
AO
17185fi
17186fi
1c710c3c 17187WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 17188if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17190$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 17191else
5213506e
RW
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17193$as_echo "no" >&6; }
ca9f4b81
AO
17194fi
17195
5213506e 17196
e8b05380
PB
17197 fi
17198 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 17200set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17202$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17203if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 17204 $as_echo_n "(cached) " >&6
ca9f4b81 17205else
2693c0b0
PB
17206 if test -n "$WINDRES_FOR_TARGET"; then
17207 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 17208else
1c710c3c
DJ
17209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17210for as_dir in $PATH
17211do
17212 IFS=$as_save_IFS
17213 test -z "$as_dir" && as_dir=.
5213506e 17214 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17216 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 17217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17218 break 2
17219 fi
17220done
5213506e
RW
17221 done
17222IFS=$as_save_IFS
1c710c3c 17223
ca9f4b81
AO
17224fi
17225fi
1c710c3c 17226WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 17227if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17229$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 17230else
5213506e
RW
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17232$as_echo "no" >&6; }
ca9f4b81 17233fi
1c710c3c 17234
5213506e 17235
e8b05380
PB
17236 fi
17237 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17238 done
17239fi
1c710c3c 17240
2693c0b0
PB
17241if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17242 set dummy windres
17243 if test $build = $target ; then
17244 WINDRES_FOR_TARGET="$2"
ca9f4b81 17245 else
2693c0b0 17246 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 17247 fi
1c00b503
PB
17248else
17249 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
17250fi
17251
d1f8db0c
PB
17252else
17253 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
17254fi
17255
4977bab6 17256
901119ae
KT
17257
17258
17259if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17260 if test -n "$with_build_time_tools"; then
5213506e
RW
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17262$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
17263 if test -x $with_build_time_tools/windmc; then
17264 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17265 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17267$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 17268 else
5213506e
RW
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17270$as_echo "no" >&6; }
901119ae
KT
17271 fi
17272 elif test $build != $host && test $have_gcc_for_target = yes; then
17273 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
17274 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17275 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
17276 fi
17277fi
17278if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17279 # Extract the first word of "windmc", so it can be a program name with args.
17280set dummy windmc; ac_word=$2
5213506e
RW
17281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17282$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17283if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
5213506e 17284 $as_echo_n "(cached) " >&6
901119ae
KT
17285else
17286 case $WINDMC_FOR_TARGET in
17287 [\\/]* | ?:[\\/]*)
17288 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17289 ;;
17290 *)
17291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17292for as_dir in $gcc_cv_tool_dirs
17293do
17294 IFS=$as_save_IFS
17295 test -z "$as_dir" && as_dir=.
5213506e 17296 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17298 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 17299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17300 break 2
17301 fi
17302done
5213506e
RW
17303 done
17304IFS=$as_save_IFS
901119ae
KT
17305
17306 ;;
17307esac
17308fi
17309WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 17310if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17312$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17313else
5213506e
RW
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17315$as_echo "no" >&6; }
901119ae
KT
17316fi
17317
5213506e 17318
901119ae
KT
17319fi
17320if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17321
17322
17323if test -n "$WINDMC_FOR_TARGET"; then
17324 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17325elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17326 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17327fi
17328
17329if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17330 for ncn_progname in windmc; do
17331 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17332set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17334$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17335if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17336 $as_echo_n "(cached) " >&6
901119ae
KT
17337else
17338 if test -n "$WINDMC_FOR_TARGET"; then
17339 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17340else
17341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17342for as_dir in $PATH
17343do
17344 IFS=$as_save_IFS
17345 test -z "$as_dir" && as_dir=.
5213506e 17346 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17348 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 17349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17350 break 2
17351 fi
17352done
5213506e
RW
17353 done
17354IFS=$as_save_IFS
901119ae
KT
17355
17356fi
17357fi
17358WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17359if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17361$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17362else
5213506e
RW
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17364$as_echo "no" >&6; }
901119ae
KT
17365fi
17366
5213506e 17367
901119ae
KT
17368 done
17369fi
17370
17371if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17372 for ncn_progname in windmc; do
5213506e
RW
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17374$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
17375 if test -x $with_build_time_tools/${ncn_progname}; then
17376 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17378$as_echo "yes" >&6; }
901119ae
KT
17379 break
17380 else
5213506e
RW
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17382$as_echo "no" >&6; }
901119ae
KT
17383 fi
17384 done
17385fi
17386
17387if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17388 for ncn_progname in windmc; do
17389 if test -n "$ncn_target_tool_prefix"; then
17390 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17391set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
17392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17393$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17394if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17395 $as_echo_n "(cached) " >&6
901119ae
KT
17396else
17397 if test -n "$WINDMC_FOR_TARGET"; then
17398 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17399else
17400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17401for as_dir in $PATH
17402do
17403 IFS=$as_save_IFS
17404 test -z "$as_dir" && as_dir=.
5213506e 17405 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17407 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 17408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17409 break 2
17410 fi
17411done
5213506e
RW
17412 done
17413IFS=$as_save_IFS
901119ae
KT
17414
17415fi
17416fi
17417WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17418if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17420$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17421else
5213506e
RW
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17423$as_echo "no" >&6; }
901119ae
KT
17424fi
17425
5213506e 17426
901119ae
KT
17427 fi
17428 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17429 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17430set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17432$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17433if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17434 $as_echo_n "(cached) " >&6
901119ae
KT
17435else
17436 if test -n "$WINDMC_FOR_TARGET"; then
17437 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17438else
17439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17440for as_dir in $PATH
17441do
17442 IFS=$as_save_IFS
17443 test -z "$as_dir" && as_dir=.
5213506e 17444 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17446 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 17447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17448 break 2
17449 fi
17450done
5213506e
RW
17451 done
17452IFS=$as_save_IFS
901119ae
KT
17453
17454fi
17455fi
17456WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17457if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17459$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17460else
5213506e
RW
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17462$as_echo "no" >&6; }
901119ae
KT
17463fi
17464
5213506e 17465
901119ae
KT
17466 fi
17467 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17468 done
17469fi
17470
17471if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17472 set dummy windmc
17473 if test $build = $target ; then
17474 WINDMC_FOR_TARGET="$2"
17475 else
17476 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17477 fi
1c00b503
PB
17478else
17479 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
17480fi
17481
17482else
17483 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17484fi
17485
17486
2abefe3d
PB
17487RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17488
5213506e
RW
17489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17490$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 17491if test "x${build}" != "x${host}" ; then
e8b05380
PB
17492 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17493 # We already found the complete path
172e41aa 17494 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17496$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17497 else
17498 # Canadian cross, just use what we found
5213506e
RW
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17500$as_echo "pre-installed" >&6; }
e8b05380 17501 fi
2abefe3d
PB
17502else
17503 ok=yes
17504 case " ${configdirs} " in
17505 *" binutils "*) ;;
17506 *) ok=no ;;
17507 esac
1c710c3c 17508
2abefe3d
PB
17509 if test $ok = yes; then
17510 # An in-tree tool is available and we can use it
17511 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17513$as_echo "just compiled" >&6; }
e8b05380
PB
17514 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17515 # We already found the complete path
172e41aa 17516 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17518$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17519 elif test "x$target" = "x$host"; then
17520 # We can use an host tool
17521 AR_FOR_TARGET='$(AR)'
5213506e
RW
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17523$as_echo "host tool" >&6; }
2abefe3d
PB
17524 else
17525 # We need a cross tool
5213506e
RW
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17527$as_echo "pre-installed" >&6; }
2abefe3d
PB
17528 fi
17529fi
0b0dc272 17530
5213506e
RW
17531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17532$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 17533if test "x${build}" != "x${host}" ; then
e8b05380
PB
17534 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17535 # We already found the complete path
172e41aa 17536 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17538$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17539 else
17540 # Canadian cross, just use what we found
5213506e
RW
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17542$as_echo "pre-installed" >&6; }
e8b05380 17543 fi
2abefe3d
PB
17544else
17545 ok=yes
17546 case " ${configdirs} " in
17547 *" gas "*) ;;
17548 *) ok=no ;;
17549 esac
1c710c3c 17550
2abefe3d
PB
17551 if test $ok = yes; then
17552 # An in-tree tool is available and we can use it
17553 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17555$as_echo "just compiled" >&6; }
e8b05380
PB
17556 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17557 # We already found the complete path
172e41aa 17558 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17560$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17561 elif test "x$target" = "x$host"; then
17562 # We can use an host tool
17563 AS_FOR_TARGET='$(AS)'
5213506e
RW
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17565$as_echo "host tool" >&6; }
2abefe3d
PB
17566 else
17567 # We need a cross tool
5213506e
RW
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17569$as_echo "pre-installed" >&6; }
2abefe3d
PB
17570 fi
17571fi
0b0dc272 17572
5213506e
RW
17573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17574$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 17575if test "x${build}" != "x${host}" ; then
e8b05380
PB
17576 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17577 # We already found the complete path
172e41aa 17578 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17580$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17581 else
17582 # Canadian cross, just use what we found
5213506e
RW
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17584$as_echo "pre-installed" >&6; }
e8b05380 17585 fi
2abefe3d
PB
17586else
17587 ok=yes
17588 case " ${configdirs} " in
17589 *" gcc "*) ;;
17590 *) ok=no ;;
17591 esac
1c710c3c 17592
2abefe3d
PB
17593 if test $ok = yes; then
17594 # An in-tree tool is available and we can use it
17595 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17597$as_echo "just compiled" >&6; }
e8b05380
PB
17598 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17599 # We already found the complete path
172e41aa 17600 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17602$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17603 elif test "x$target" = "x$host"; then
17604 # We can use an host tool
17605 CC_FOR_TARGET='$(CC)'
5213506e
RW
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17607$as_echo "host tool" >&6; }
2abefe3d
PB
17608 else
17609 # We need a cross tool
5213506e
RW
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17611$as_echo "pre-installed" >&6; }
2abefe3d
PB
17612 fi
17613fi
0b0dc272 17614
5213506e
RW
17615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17616$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 17617if test "x${build}" != "x${host}" ; then
e8b05380
PB
17618 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17619 # We already found the complete path
172e41aa 17620 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17622$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17623 else
17624 # Canadian cross, just use what we found
5213506e
RW
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17626$as_echo "pre-installed" >&6; }
e8b05380 17627 fi
2abefe3d
PB
17628else
17629 ok=yes
17630 case " ${configdirs} " in
17631 *" gcc "*) ;;
17632 *) ok=no ;;
17633 esac
17634 case ,${enable_languages}, in
17635 *,c++,*) ;;
17636 *) ok=no ;;
17637 esac
17638 if test $ok = yes; then
17639 # An in-tree tool is available and we can use it
2077db1b 17640 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
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17642$as_echo "just compiled" >&6; }
e8b05380
PB
17643 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17644 # We already found the complete path
172e41aa 17645 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17647$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17648 elif test "x$target" = "x$host"; then
17649 # We can use an host tool
17650 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17652$as_echo "host tool" >&6; }
2abefe3d
PB
17653 else
17654 # We need a cross tool
5213506e
RW
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17656$as_echo "pre-installed" >&6; }
2abefe3d
PB
17657 fi
17658fi
0b0dc272 17659
5213506e
RW
17660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17661$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 17662if test "x${build}" != "x${host}" ; then
e8b05380
PB
17663 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17664 # We already found the complete path
172e41aa 17665 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17667$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17668 else
17669 # Canadian cross, just use what we found
5213506e
RW
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17671$as_echo "pre-installed" >&6; }
e8b05380 17672 fi
2abefe3d
PB
17673else
17674 ok=yes
17675 case " ${configdirs} " in
17676 *" gcc "*) ;;
17677 *) ok=no ;;
17678 esac
17679 case ,${enable_languages}, in
17680 *,c++,*) ;;
17681 *) ok=no ;;
17682 esac
17683 if test $ok = yes; then
17684 # An in-tree tool is available and we can use it
2077db1b 17685 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
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17687$as_echo "just compiled" >&6; }
e8b05380
PB
17688 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17689 # We already found the complete path
172e41aa 17690 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17692$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17693 elif test "x$target" = "x$host"; then
17694 # We can use an host tool
17695 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17697$as_echo "host tool" >&6; }
2abefe3d
PB
17698 else
17699 # We need a cross tool
5213506e
RW
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17701$as_echo "pre-installed" >&6; }
2abefe3d
PB
17702 fi
17703fi
0b0dc272 17704
5213506e
RW
17705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17706$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 17707if test "x${build}" != "x${host}" ; then
e8b05380
PB
17708 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17709 # We already found the complete path
172e41aa 17710 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17712$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17713 else
17714 # Canadian cross, just use what we found
5213506e
RW
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17716$as_echo "pre-installed" >&6; }
e8b05380 17717 fi
2abefe3d
PB
17718else
17719 ok=yes
17720 case " ${configdirs} " in
17721 *" binutils "*) ;;
17722 *) ok=no ;;
17723 esac
1c710c3c 17724
2abefe3d
PB
17725 if test $ok = yes; then
17726 # An in-tree tool is available and we can use it
17727 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17729$as_echo "just compiled" >&6; }
e8b05380
PB
17730 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17731 # We already found the complete path
172e41aa 17732 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17734$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17735 elif test "x$target" = "x$host"; then
17736 # We can use an host tool
17737 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17739$as_echo "host tool" >&6; }
2abefe3d
PB
17740 else
17741 # We need a cross tool
5213506e
RW
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17743$as_echo "pre-installed" >&6; }
2abefe3d
PB
17744 fi
17745fi
0b0dc272 17746
3b5e8ee4
IS
17747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17748$as_echo_n "checking where to find the target dsymutil... " >&6; }
17749if test "x${build}" != "x${host}" ; then
17750 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17751 # We already found the complete path
17752 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17754$as_echo "pre-installed in $ac_dir" >&6; }
17755 else
17756 # Canadian cross, just use what we found
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17758$as_echo "pre-installed" >&6; }
17759 fi
17760else
17761 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17762 # We already found the complete path
17763 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17765$as_echo "pre-installed in $ac_dir" >&6; }
17766 elif test "x$target" = "x$host"; then
17767 # We can use an host tool
17768 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17770$as_echo "host tool" >&6; }
17771 else
17772 # We need a cross tool
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17774$as_echo "pre-installed" >&6; }
17775 fi
17776fi
17777
5213506e
RW
17778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17779$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 17780if test "x${build}" != "x${host}" ; then
e8b05380
PB
17781 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17782 # We already found the complete path
172e41aa 17783 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17785$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17786 else
17787 # Canadian cross, just use what we found
5213506e
RW
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17789$as_echo "pre-installed" >&6; }
e8b05380 17790 fi
2abefe3d
PB
17791else
17792 ok=yes
17793 case " ${configdirs} " in
17794 *" gcc "*) ;;
17795 *) ok=no ;;
17796 esac
1c710c3c 17797
2abefe3d
PB
17798 if test $ok = yes; then
17799 # An in-tree tool is available and we can use it
17800 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17802$as_echo "just compiled" >&6; }
e8b05380
PB
17803 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17804 # We already found the complete path
172e41aa 17805 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17807$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17808 elif test "x$target" = "x$host"; then
17809 # We can use an host tool
17810 GCC_FOR_TARGET='$()'
5213506e
RW
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17812$as_echo "host tool" >&6; }
2abefe3d
PB
17813 else
17814 # We need a cross tool
5213506e
RW
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17816$as_echo "pre-installed" >&6; }
2abefe3d
PB
17817 fi
17818fi
0b0dc272 17819
5213506e
RW
17820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17821$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 17822if test "x${build}" != "x${host}" ; then
e8b05380
PB
17823 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17824 # We already found the complete path
172e41aa 17825 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17827$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17828 else
17829 # Canadian cross, just use what we found
5213506e
RW
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17831$as_echo "pre-installed" >&6; }
e8b05380 17832 fi
2abefe3d
PB
17833else
17834 ok=yes
17835 case " ${configdirs} " in
17836 *" gcc "*) ;;
17837 *) ok=no ;;
17838 esac
17839 case ,${enable_languages}, in
17840 *,fortran,*) ;;
17841 *) ok=no ;;
17842 esac
17843 if test $ok = yes; then
17844 # An in-tree tool is available and we can use it
17845 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17847$as_echo "just compiled" >&6; }
e8b05380
PB
17848 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17849 # We already found the complete path
172e41aa 17850 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17852$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17853 elif test "x$target" = "x$host"; then
17854 # We can use an host tool
17855 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17857$as_echo "host tool" >&6; }
2abefe3d
PB
17858 else
17859 # We need a cross tool
5213506e
RW
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17861$as_echo "pre-installed" >&6; }
2abefe3d
PB
17862 fi
17863fi
0b0dc272 17864
632e2a07
ILT
17865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17866$as_echo_n "checking where to find the target gccgo... " >&6; }
17867if test "x${build}" != "x${host}" ; then
17868 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17869 # We already found the complete path
17870 ac_dir=`dirname $GOC_FOR_TARGET`
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17872$as_echo "pre-installed in $ac_dir" >&6; }
17873 else
17874 # Canadian cross, just use what we found
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17876$as_echo "pre-installed" >&6; }
17877 fi
17878else
17879 ok=yes
17880 case " ${configdirs} " in
17881 *" gcc "*) ;;
17882 *) ok=no ;;
17883 esac
17884 case ,${enable_languages}, in
17885 *,go,*) ;;
17886 *) ok=no ;;
17887 esac
17888 if test $ok = yes; then
17889 # An in-tree tool is available and we can use it
17890 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17892$as_echo "just compiled" >&6; }
17893 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17894 # We already found the complete path
17895 ac_dir=`dirname $GOC_FOR_TARGET`
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17897$as_echo "pre-installed in $ac_dir" >&6; }
17898 elif test "x$target" = "x$host"; then
17899 # We can use an host tool
17900 GOC_FOR_TARGET='$(GOC)'
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17902$as_echo "host tool" >&6; }
17903 else
17904 # We need a cross tool
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17906$as_echo "pre-installed" >&6; }
17907 fi
17908fi
17909
b4c522fa
IB
17910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17911$as_echo_n "checking where to find the target gdc... " >&6; }
17912if test "x${build}" != "x${host}" ; then
17913 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17914 # We already found the complete path
17915 ac_dir=`dirname $GDC_FOR_TARGET`
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17917$as_echo "pre-installed in $ac_dir" >&6; }
17918 else
17919 # Canadian cross, just use what we found
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17921$as_echo "pre-installed" >&6; }
17922 fi
17923else
17924 ok=yes
17925 case " ${configdirs} " in
17926 *" gcc "*) ;;
17927 *) ok=no ;;
17928 esac
17929 case ,${enable_languages}, in
17930 *,d,*) ;;
17931 *) ok=no ;;
17932 esac
17933 if test $ok = yes; then
17934 # An in-tree tool is available and we can use it
17935 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17937$as_echo "just compiled" >&6; }
17938 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17939 # We already found the complete path
17940 ac_dir=`dirname $GDC_FOR_TARGET`
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17942$as_echo "pre-installed in $ac_dir" >&6; }
17943 elif test "x$target" = "x$host"; then
17944 # We can use an host tool
17945 GDC_FOR_TARGET='$(GDC)'
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17947$as_echo "host tool" >&6; }
17948 else
17949 # We need a cross tool
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17951$as_echo "pre-installed" >&6; }
17952 fi
17953fi
17954
1eee94d3
GM
17955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
17956$as_echo_n "checking where to find the target gm2... " >&6; }
17957if test "x${build}" != "x${host}" ; then
17958 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
17959 # We already found the complete path
17960 ac_dir=`dirname $GM2_FOR_TARGET`
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17962$as_echo "pre-installed in $ac_dir" >&6; }
17963 else
17964 # Canadian cross, just use what we found
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17966$as_echo "pre-installed" >&6; }
17967 fi
17968else
17969 ok=yes
17970 case " ${configdirs} " in
17971 *" gcc "*) ;;
17972 *) ok=no ;;
17973 esac
17974 case ,${enable_languages}, in
17975 *,m2,*) ;;
17976 *) ok=no ;;
17977 esac
17978 if test $ok = yes; then
17979 # An in-tree tool is available and we can use it
17980 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17982$as_echo "just compiled" >&6; }
17983 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
17984 # We already found the complete path
17985 ac_dir=`dirname $GM2_FOR_TARGET`
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17987$as_echo "pre-installed in $ac_dir" >&6; }
17988 elif test "x$target" = "x$host"; then
17989 # We can use an host tool
17990 GM2_FOR_TARGET='$(GM2)'
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17992$as_echo "host tool" >&6; }
17993 else
17994 # We need a cross tool
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17996$as_echo "pre-installed" >&6; }
17997 fi
17998fi
17999
5213506e
RW
18000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
18001$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 18002if test "x${build}" != "x${host}" ; then
e8b05380
PB
18003 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18004 # We already found the complete path
172e41aa 18005 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18007$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18008 else
18009 # Canadian cross, just use what we found
5213506e
RW
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18011$as_echo "pre-installed" >&6; }
e8b05380 18012 fi
2abefe3d
PB
18013else
18014 ok=yes
18015 case " ${configdirs} " in
18016 *" ld "*) ;;
18017 *) ok=no ;;
18018 esac
1c710c3c 18019
2abefe3d
PB
18020 if test $ok = yes; then
18021 # An in-tree tool is available and we can use it
18022 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18024$as_echo "just compiled" >&6; }
e8b05380
PB
18025 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18026 # We already found the complete path
172e41aa 18027 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18029$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18030 elif test "x$target" = "x$host"; then
18031 # We can use an host tool
18032 LD_FOR_TARGET='$(LD)'
5213506e
RW
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18034$as_echo "host tool" >&6; }
2abefe3d
PB
18035 else
18036 # We need a cross tool
5213506e
RW
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18038$as_echo "pre-installed" >&6; }
2abefe3d
PB
18039 fi
18040fi
0b0dc272 18041
5213506e
RW
18042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18043$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 18044if test "x${build}" != "x${host}" ; then
e8b05380
PB
18045 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18046 # We already found the complete path
172e41aa 18047 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18049$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18050 else
18051 # Canadian cross, just use what we found
5213506e
RW
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18053$as_echo "pre-installed" >&6; }
e8b05380 18054 fi
2abefe3d 18055else
e8b05380
PB
18056 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18057 # We already found the complete path
172e41aa 18058 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18060$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 18061 elif test "x$target" = "x$host"; then
2abefe3d
PB
18062 # We can use an host tool
18063 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18065$as_echo "host tool" >&6; }
2abefe3d
PB
18066 else
18067 # We need a cross tool
5213506e
RW
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18069$as_echo "pre-installed" >&6; }
2abefe3d
PB
18070 fi
18071fi
0b0dc272 18072
5213506e
RW
18073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18074$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 18075if test "x${build}" != "x${host}" ; then
e8b05380
PB
18076 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18077 # We already found the complete path
172e41aa 18078 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18080$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18081 else
18082 # Canadian cross, just use what we found
5213506e
RW
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18084$as_echo "pre-installed" >&6; }
e8b05380 18085 fi
2abefe3d
PB
18086else
18087 ok=yes
18088 case " ${configdirs} " in
18089 *" binutils "*) ;;
18090 *) ok=no ;;
18091 esac
1c710c3c 18092
2abefe3d
PB
18093 if test $ok = yes; then
18094 # An in-tree tool is available and we can use it
18095 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18097$as_echo "just compiled" >&6; }
e8b05380
PB
18098 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18099 # We already found the complete path
172e41aa 18100 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18102$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18103 elif test "x$target" = "x$host"; then
18104 # We can use an host tool
18105 NM_FOR_TARGET='$(NM)'
5213506e
RW
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18107$as_echo "host tool" >&6; }
2abefe3d
PB
18108 else
18109 # We need a cross tool
5213506e
RW
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18111$as_echo "pre-installed" >&6; }
2abefe3d
PB
18112 fi
18113fi
0b0dc272 18114
9bccfdf5
AP
18115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18116$as_echo_n "checking where to find the target objcopy... " >&6; }
18117if test "x${build}" != "x${host}" ; then
18118 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18119 # We already found the complete path
18120 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18122$as_echo "pre-installed in $ac_dir" >&6; }
18123 else
18124 # Canadian cross, just use what we found
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18126$as_echo "pre-installed" >&6; }
18127 fi
18128else
18129 ok=yes
18130 case " ${configdirs} " in
18131 *" binutils "*) ;;
18132 *) ok=no ;;
18133 esac
18134
18135 if test $ok = yes; then
18136 # An in-tree tool is available and we can use it
18137 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18139$as_echo "just compiled" >&6; }
18140 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18141 # We already found the complete path
18142 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18144$as_echo "pre-installed in $ac_dir" >&6; }
18145 elif test "x$target" = "x$host"; then
18146 # We can use an host tool
ec8fd1c0 18147 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18149$as_echo "host tool" >&6; }
18150 else
18151 # We need a cross tool
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18153$as_echo "pre-installed" >&6; }
18154 fi
18155fi
18156
5213506e
RW
18157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18158$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 18159if test "x${build}" != "x${host}" ; then
e8b05380
PB
18160 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18161 # We already found the complete path
172e41aa 18162 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18164$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18165 else
18166 # Canadian cross, just use what we found
5213506e
RW
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18168$as_echo "pre-installed" >&6; }
e8b05380 18169 fi
2abefe3d
PB
18170else
18171 ok=yes
18172 case " ${configdirs} " in
18173 *" binutils "*) ;;
18174 *) ok=no ;;
18175 esac
1c710c3c 18176
2abefe3d
PB
18177 if test $ok = yes; then
18178 # An in-tree tool is available and we can use it
18179 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18181$as_echo "just compiled" >&6; }
e8b05380
PB
18182 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18183 # We already found the complete path
172e41aa 18184 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18186$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18187 elif test "x$target" = "x$host"; then
18188 # We can use an host tool
18189 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18191$as_echo "host tool" >&6; }
2abefe3d
PB
18192 else
18193 # We need a cross tool
5213506e
RW
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18195$as_echo "pre-installed" >&6; }
2abefe3d
PB
18196 fi
18197fi
0b0dc272 18198
e4a9a572
IS
18199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18200$as_echo_n "checking where to find the target otool... " >&6; }
18201if test "x${build}" != "x${host}" ; then
18202 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18203 # We already found the complete path
18204 ac_dir=`dirname $OTOOL_FOR_TARGET`
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18206$as_echo "pre-installed in $ac_dir" >&6; }
18207 else
18208 # Canadian cross, just use what we found
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18210$as_echo "pre-installed" >&6; }
18211 fi
18212else
18213 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18214 # We already found the complete path
18215 ac_dir=`dirname $OTOOL_FOR_TARGET`
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18217$as_echo "pre-installed in $ac_dir" >&6; }
18218 elif test "x$target" = "x$host"; then
18219 # We can use an host tool
18220 OTOOL_FOR_TARGET='$(OTOOL)'
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18222$as_echo "host tool" >&6; }
18223 else
18224 # We need a cross tool
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18226$as_echo "pre-installed" >&6; }
18227 fi
18228fi
18229
5213506e
RW
18230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18231$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 18232if test "x${build}" != "x${host}" ; then
e8b05380
PB
18233 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18234 # We already found the complete path
172e41aa 18235 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18237$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18238 else
18239 # Canadian cross, just use what we found
5213506e
RW
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18241$as_echo "pre-installed" >&6; }
e8b05380 18242 fi
2abefe3d
PB
18243else
18244 ok=yes
18245 case " ${configdirs} " in
18246 *" binutils "*) ;;
18247 *) ok=no ;;
18248 esac
1c710c3c 18249
2abefe3d
PB
18250 if test $ok = yes; then
18251 # An in-tree tool is available and we can use it
18252 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18254$as_echo "just compiled" >&6; }
e8b05380
PB
18255 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18256 # We already found the complete path
172e41aa 18257 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18259$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18260 elif test "x$target" = "x$host"; then
18261 # We can use an host tool
18262 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18264$as_echo "host tool" >&6; }
2abefe3d
PB
18265 else
18266 # We need a cross tool
5213506e
RW
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18268$as_echo "pre-installed" >&6; }
2abefe3d
PB
18269 fi
18270fi
0b0dc272 18271
e7a82751
RM
18272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18273$as_echo_n "checking where to find the target readelf... " >&6; }
18274if test "x${build}" != "x${host}" ; then
18275 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18276 # We already found the complete path
18277 ac_dir=`dirname $READELF_FOR_TARGET`
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18279$as_echo "pre-installed in $ac_dir" >&6; }
18280 else
18281 # Canadian cross, just use what we found
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18283$as_echo "pre-installed" >&6; }
18284 fi
18285else
18286 ok=yes
18287 case " ${configdirs} " in
18288 *" binutils "*) ;;
18289 *) ok=no ;;
18290 esac
18291
18292 if test $ok = yes; then
18293 # An in-tree tool is available and we can use it
18294 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18296$as_echo "just compiled" >&6; }
18297 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18298 # We already found the complete path
18299 ac_dir=`dirname $READELF_FOR_TARGET`
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18301$as_echo "pre-installed in $ac_dir" >&6; }
18302 elif test "x$target" = "x$host"; then
18303 # We can use an host tool
18304 READELF_FOR_TARGET='$(READELF)'
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18306$as_echo "host tool" >&6; }
18307 else
18308 # We need a cross tool
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18310$as_echo "pre-installed" >&6; }
18311 fi
18312fi
18313
5213506e
RW
18314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18315$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 18316if test "x${build}" != "x${host}" ; then
e8b05380
PB
18317 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18318 # We already found the complete path
172e41aa 18319 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18321$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18322 else
18323 # Canadian cross, just use what we found
5213506e
RW
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18325$as_echo "pre-installed" >&6; }
e8b05380 18326 fi
2abefe3d
PB
18327else
18328 ok=yes
18329 case " ${configdirs} " in
18330 *" binutils "*) ;;
18331 *) ok=no ;;
18332 esac
1c710c3c 18333
2abefe3d
PB
18334 if test $ok = yes; then
18335 # An in-tree tool is available and we can use it
455c8f48 18336 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18338$as_echo "just compiled" >&6; }
e8b05380
PB
18339 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18340 # We already found the complete path
172e41aa 18341 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18343$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18344 elif test "x$target" = "x$host"; then
18345 # We can use an host tool
18346 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18348$as_echo "host tool" >&6; }
2abefe3d
PB
18349 else
18350 # We need a cross tool
5213506e
RW
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18352$as_echo "pre-installed" >&6; }
2abefe3d
PB
18353 fi
18354fi
0b0dc272 18355
5213506e
RW
18356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18357$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 18358if test "x${build}" != "x${host}" ; then
e8b05380
PB
18359 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18360 # We already found the complete path
172e41aa 18361 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18363$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18364 else
18365 # Canadian cross, just use what we found
5213506e
RW
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18367$as_echo "pre-installed" >&6; }
e8b05380 18368 fi
2abefe3d
PB
18369else
18370 ok=yes
18371 case " ${configdirs} " in
18372 *" binutils "*) ;;
18373 *) ok=no ;;
18374 esac
1c710c3c 18375
2abefe3d
PB
18376 if test $ok = yes; then
18377 # An in-tree tool is available and we can use it
18378 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18380$as_echo "just compiled" >&6; }
e8b05380
PB
18381 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18382 # We already found the complete path
172e41aa 18383 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18385$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18386 elif test "x$target" = "x$host"; then
18387 # We can use an host tool
18388 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18390$as_echo "host tool" >&6; }
2abefe3d
PB
18391 else
18392 # We need a cross tool
5213506e
RW
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18394$as_echo "pre-installed" >&6; }
2abefe3d 18395 fi
671aa708 18396fi
be912515 18397
5213506e
RW
18398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18399$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
18400if test "x${build}" != "x${host}" ; then
18401 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18402 # We already found the complete path
18403 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18405$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
18406 else
18407 # Canadian cross, just use what we found
5213506e
RW
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18409$as_echo "pre-installed" >&6; }
901119ae
KT
18410 fi
18411else
18412 ok=yes
18413 case " ${configdirs} " in
18414 *" binutils "*) ;;
18415 *) ok=no ;;
18416 esac
18417
18418 if test $ok = yes; then
18419 # An in-tree tool is available and we can use it
18420 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18422$as_echo "just compiled" >&6; }
901119ae
KT
18423 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18424 # We already found the complete path
18425 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18427$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
18428 elif test "x$target" = "x$host"; then
18429 # We can use an host tool
18430 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18432$as_echo "host tool" >&6; }
901119ae
KT
18433 else
18434 # We need a cross tool
5213506e
RW
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18436$as_echo "pre-installed" >&6; }
901119ae
KT
18437 fi
18438fi
18439
be912515
NN
18440
18441
2abefe3d 18442
0b0dc272 18443
671aa708
NN
18444# Certain tools may need extra flags.
18445AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18446RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18447NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18448
2abefe3d
PB
18449# When building target libraries, except in a Canadian cross, we use
18450# the same toolchain as the compiler we just built.
18451COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18452COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18453COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18454if test $host = $build; then
18455 case " $configdirs " in
18456 *" gcc "*)
18457 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18458 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18459 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18460 ;;
18461 esac
18462fi
18463
18464
18465
18466
18467
5213506e
RW
18468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18469$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18470# Check whether --enable-maintainer-mode was given.
18471if test "${enable_maintainer_mode+set}" = set; then :
18472 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
18473else
18474 USE_MAINTAINER_MODE=no
5213506e
RW
18475fi
18476
18477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18478$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
18479
18480
18481if test "$USE_MAINTAINER_MODE" = yes; then
18482 MAINTAINER_MODE_TRUE=
18483 MAINTAINER_MODE_FALSE='#'
18484else
18485 MAINTAINER_MODE_TRUE='#'
18486 MAINTAINER_MODE_FALSE=
1c710c3c 18487fi
ee03dc5e
AO
18488MAINT=$MAINTAINER_MODE_TRUE
18489
2805b53a
NN
18490# ---------------------
18491# GCC bootstrap support
18492# ---------------------
18493
18494# Stage specific cflags for build.
18495stage1_cflags="-g"
18496case $build in
18497 vax-*-*)
18498 case ${GCC} in
18499 yes) stage1_cflags="-g -Wa,-J" ;;
18500 *) stage1_cflags="-g -J" ;;
18501 esac ;;
2805b53a
NN
18502esac
18503
0b50988a 18504
2805b53a 18505
8efea775 18506# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
18507# Check whether --enable-stage1-checking was given.
18508if test "${enable_stage1_checking+set}" = set; then :
18509 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 18510else
e643dc23 18511 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
18512 # For --disable-checking or implicit --enable-checking=release, avoid
18513 # setting --enable-checking=gc in the default stage1 checking for LTO
18514 # bootstraps. See PR62077.
c10b5ea0
JJ
18515 case $BUILD_CONFIG in
18516 *lto*)
7db11a5a
JJ
18517 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18518 *)
18519 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 18520 esac
7db11a5a
JJ
18521 if test "x$enable_checking" = x && \
18522 test -d ${srcdir}/gcc && \
18523 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 18524 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 18525 fi
8efea775 18526else
e643dc23 18527 stage1_checking=--enable-checking=$enable_checking,types
8efea775 18528fi
5213506e 18529fi
8efea775
PB
18530
18531
2aeb72e9 18532
5213506e
RW
18533# Enable -Werror in bootstrap stage2 and later.
18534# Check whether --enable-werror was given.
18535if test "${enable_werror+set}" = set; then :
18536 enableval=$enable_werror;
09a9c095
NN
18537case ${enable_werror} in
18538 yes) stage2_werror_flag="--enable-werror-always" ;;
18539 *) stage2_werror_flag="" ;;
2805b53a
NN
18540esac
18541
afd88efc
ML
18542else
18543
01c712cb
ML
18544if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18545 case $BUILD_CONFIG in
18546 bootstrap-debug)
18547 stage2_werror_flag="--enable-werror-always" ;;
18548 "")
18549 stage2_werror_flag="--enable-werror-always" ;;
18550 esac
18551fi
18552
afd88efc
ML
18553fi
18554
18555
01c712cb 18556
2805b53a 18557
f2689b09
SE
18558# Specify what files to not compare during bootstrap.
18559
18560compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
1eee94d3
GM
18561compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18562compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18563compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
f2689b09
SE
18564case "$target" in
18565 hppa*64*-*-hpux*) ;;
4f943869 18566 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
f2689b09
SE
18567esac
18568
18569
5213506e
RW
18570ac_config_files="$ac_config_files Makefile"
18571
1c710c3c 18572cat >confcache <<\_ACEOF
671aa708
NN
18573# This file is a shell script that caches the results of configure
18574# tests run on this system so they can be shared between configure
1c710c3c
DJ
18575# scripts and configure runs, see configure's option --config-cache.
18576# It is not useful on other systems. If it contains results you don't
18577# want to keep, you may remove or edit it.
671aa708 18578#
1c710c3c
DJ
18579# config.status only pays attention to the cache file if you give it
18580# the --recheck option to rerun configure.
671aa708 18581#
1c710c3c
DJ
18582# `ac_cv_env_foo' variables (set or unset) will be overridden when
18583# loading this file, other *unset* `ac_cv_foo' will be assigned the
18584# following values.
18585
18586_ACEOF
18587
671aa708
NN
18588# The following way of writing the cache mishandles newlines in values,
18589# but we know of no workaround that is simple, portable, and efficient.
5213506e 18590# So, we kill variables containing newlines.
671aa708
NN
18591# Ultrix sh set writes to stderr and can't be redirected directly,
18592# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
18593(
18594 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18595 eval ac_val=\$$ac_var
18596 case $ac_val in #(
18597 *${as_nl}*)
18598 case $ac_var in #(
18599 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18600$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18601 esac
18602 case $ac_var in #(
18603 _ | IFS | as_nl) ;; #(
18604 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18605 *) { eval $ac_var=; unset $ac_var;} ;;
18606 esac ;;
18607 esac
18608 done
18609
1c710c3c 18610 (set) 2>&1 |
5213506e
RW
18611 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18612 *${as_nl}ac_space=\ *)
18613 # `set' does not quote correctly, so add quotes: double-quote
18614 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
18615 sed -n \
18616 "s/'/'\\\\''/g;
18617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 18618 ;; #(
1c710c3c
DJ
18619 *)
18620 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 18621 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 18622 ;;
5213506e
RW
18623 esac |
18624 sort
18625) |
1c710c3c 18626 sed '
5213506e 18627 /^ac_cv_env_/b end
1c710c3c 18628 t clear
5213506e 18629 :clear
1c710c3c
DJ
18630 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18631 t end
5213506e
RW
18632 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18633 :end' >>confcache
18634if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18635 if test -w "$cache_file"; then
22e05272 18636 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18638$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
18639 if test ! -f "$cache_file" || test -h "$cache_file"; then
18640 cat confcache >"$cache_file"
18641 else
18642 case $cache_file in #(
18643 */* | ?:*)
18644 mv -f confcache "$cache_file"$$ &&
18645 mv -f "$cache_file"$$ "$cache_file" ;; #(
18646 *)
18647 mv -f confcache "$cache_file" ;;
18648 esac
18649 fi
18650 fi
671aa708 18651 else
5213506e
RW
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18653$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 18654 fi
4977bab6 18655fi
671aa708 18656rm -f confcache
79c06341 18657
671aa708
NN
18658test "x$prefix" = xNONE && prefix=$ac_default_prefix
18659# Let make expand exec_prefix.
18660test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 18661
671aa708
NN
18662# Transform confdefs.h into DEFS.
18663# Protect against shell expansion while executing Makefile rules.
18664# Protect against Makefile macro expansion.
1c710c3c
DJ
18665#
18666# If the first sed substitution is executed (which looks for macros that
5213506e 18667# take arguments), then branch to the quote section. Otherwise,
1c710c3c 18668# look for a macro that doesn't take arguments.
5213506e
RW
18669ac_script='
18670:mline
18671/\\$/{
18672 N
18673 s,\\\n,,
18674 b mline
18675}
1c710c3c 18676t clear
5213506e
RW
18677:clear
18678s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18679t quote
5213506e 18680s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18681t quote
5213506e
RW
18682b any
18683:quote
18684s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18685s/\[/\\&/g
18686s/\]/\\&/g
18687s/\$/$$/g
18688H
18689:any
18690${
18691 g
18692 s/^\n//
18693 s/\n/ /g
18694 p
18695}
18696'
18697DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
18698
18699
18700ac_libobjs=
18701ac_ltlibobjs=
22e05272 18702U=
1c710c3c
DJ
18703for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18704 # 1. Remove the extension, and $U if already installed.
5213506e
RW
18705 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18706 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18707 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18708 # will be set to the directory where LIBOBJS objects are built.
18709 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18710 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
18711done
18712LIBOBJS=$ac_libobjs
fb0103e5 18713
1c710c3c 18714LTLIBOBJS=$ac_ltlibobjs
0b0dc272 18715
af71363e 18716
1c710c3c 18717
22e05272 18718: "${CONFIG_STATUS=./config.status}"
5213506e 18719ac_write_fail=0
1c710c3c
DJ
18720ac_clean_files_save=$ac_clean_files
18721ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
18722{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18723$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18724as_write_fail=0
18725cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
18726#! $SHELL
18727# Generated by $as_me.
671aa708 18728# Run this file to recreate the current configuration.
671aa708 18729# Compiler output produced by configure, useful for debugging
1c710c3c 18730# configure, is in config.log if it exists.
0b0dc272 18731
1c710c3c
DJ
18732debug=false
18733ac_cs_recheck=false
18734ac_cs_silent=false
1c710c3c 18735
5213506e
RW
18736SHELL=\${CONFIG_SHELL-$SHELL}
18737export SHELL
18738_ASEOF
18739cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18740## -------------------- ##
18741## M4sh Initialization. ##
18742## -------------------- ##
18743
18744# Be more Bourne compatible
18745DUALCASE=1; export DUALCASE # for MKS sh
18746if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18747 emulate sh
18748 NULLCMD=:
5213506e 18749 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
18750 # is contrary to our usage. Disable this feature.
18751 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
18752 setopt NO_GLOB_SUBST
18753else
18754 case `(set -o) 2>/dev/null` in #(
18755 *posix*) :
18756 set -o posix ;; #(
18757 *) :
18758 ;;
18759esac
1c710c3c 18760fi
1c710c3c 18761
5213506e
RW
18762
18763as_nl='
18764'
18765export as_nl
18766# Printing a long string crashes Solaris 7 /usr/bin/printf.
18767as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18768as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18769as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18770# Prefer a ksh shell builtin over an external printf program on Solaris,
18771# but without wasting forks for bash or zsh.
18772if test -z "$BASH_VERSION$ZSH_VERSION" \
18773 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18774 as_echo='print -r --'
18775 as_echo_n='print -rn --'
18776elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18777 as_echo='printf %s\n'
18778 as_echo_n='printf %s'
18779else
18780 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18781 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18782 as_echo_n='/usr/ucb/echo -n'
18783 else
18784 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18785 as_echo_n_body='eval
18786 arg=$1;
18787 case $arg in #(
18788 *"$as_nl"*)
18789 expr "X$arg" : "X\\(.*\\)$as_nl";
18790 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18791 esac;
18792 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18793 '
18794 export as_echo_n_body
18795 as_echo_n='sh -c $as_echo_n_body as_echo'
18796 fi
18797 export as_echo_body
18798 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
18799fi
18800
5213506e
RW
18801# The user is always right.
18802if test "${PATH_SEPARATOR+set}" != set; then
18803 PATH_SEPARATOR=:
18804 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18805 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18806 PATH_SEPARATOR=';'
18807 }
18808fi
18809
18810
18811# IFS
18812# We need space, tab and new line, in precisely that order. Quoting is
18813# there to prevent editors from complaining about space-tab.
18814# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18815# splitting by setting IFS to empty value.)
18816IFS=" "" $as_nl"
18817
18818# Find who we are. Look in the path if we contain no directory separator.
22e05272 18819as_myself=
5213506e
RW
18820case $0 in #((
18821 *[\\/]* ) as_myself=$0 ;;
18822 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18823for as_dir in $PATH
18824do
18825 IFS=$as_save_IFS
18826 test -z "$as_dir" && as_dir=.
18827 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18828 done
18829IFS=$as_save_IFS
18830
18831 ;;
18832esac
18833# We did not find ourselves, most probably we were run as `sh COMMAND'
18834# in which case we are not to be found in the path.
18835if test "x$as_myself" = x; then
18836 as_myself=$0
18837fi
18838if test ! -f "$as_myself"; then
18839 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18840 exit 1
18841fi
1c710c3c 18842
5213506e
RW
18843# Unset variables that we do not need and which cause bugs (e.g. in
18844# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18845# suppresses any "Segmentation fault" message there. '((' could
18846# trigger a bug in pdksh 5.2.14.
18847for as_var in BASH_ENV ENV MAIL MAILPATH
18848do eval test x\${$as_var+set} = xset \
18849 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18850done
1c710c3c
DJ
18851PS1='$ '
18852PS2='> '
18853PS4='+ '
18854
18855# NLS nuisances.
5213506e
RW
18856LC_ALL=C
18857export LC_ALL
18858LANGUAGE=C
18859export LANGUAGE
18860
18861# CDPATH.
18862(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18863
18864
22e05272
JM
18865# as_fn_error STATUS ERROR [LINENO LOG_FD]
18866# ----------------------------------------
5213506e
RW
18867# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18868# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 18869# script with STATUS, using 1 if that was 0.
5213506e
RW
18870as_fn_error ()
18871{
22e05272
JM
18872 as_status=$1; test $as_status -eq 0 && as_status=1
18873 if test "$4"; then
18874 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18875 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1c710c3c 18876 fi
22e05272 18877 $as_echo "$as_me: error: $2" >&2
5213506e
RW
18878 as_fn_exit $as_status
18879} # as_fn_error
18880
18881
18882# as_fn_set_status STATUS
18883# -----------------------
18884# Set $? to STATUS, without forking.
18885as_fn_set_status ()
18886{
18887 return $1
18888} # as_fn_set_status
18889
18890# as_fn_exit STATUS
18891# -----------------
18892# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18893as_fn_exit ()
18894{
18895 set +e
18896 as_fn_set_status $1
18897 exit $1
18898} # as_fn_exit
18899
18900# as_fn_unset VAR
18901# ---------------
18902# Portably unset VAR.
18903as_fn_unset ()
18904{
18905 { eval $1=; unset $1;}
18906}
18907as_unset=as_fn_unset
18908# as_fn_append VAR VALUE
18909# ----------------------
18910# Append the text in VALUE to the end of the definition contained in VAR. Take
18911# advantage of any shell optimizations that allow amortized linear growth over
18912# repeated appends, instead of the typical quadratic growth present in naive
18913# implementations.
18914if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18915 eval 'as_fn_append ()
18916 {
18917 eval $1+=\$2
18918 }'
18919else
18920 as_fn_append ()
18921 {
18922 eval $1=\$$1\$2
18923 }
18924fi # as_fn_append
18925
18926# as_fn_arith ARG...
18927# ------------------
18928# Perform arithmetic evaluation on the ARGs, and store the result in the
18929# global $as_val. Take advantage of shells that can avoid forks. The arguments
18930# must be portable across $(()) and expr.
18931if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18932 eval 'as_fn_arith ()
18933 {
18934 as_val=$(( $* ))
18935 }'
18936else
18937 as_fn_arith ()
18938 {
18939 as_val=`expr "$@" || test $? -eq 1`
18940 }
18941fi # as_fn_arith
18942
1c710c3c 18943
5213506e
RW
18944if expr a : '\(a\)' >/dev/null 2>&1 &&
18945 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
18946 as_expr=expr
18947else
18948 as_expr=false
18949fi
18950
5213506e 18951if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
18952 as_basename=basename
18953else
18954 as_basename=false
18955fi
18956
5213506e
RW
18957if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18958 as_dirname=dirname
18959else
18960 as_dirname=false
18961fi
1c710c3c 18962
5213506e 18963as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
18964$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18965 X"$0" : 'X\(//\)$' \| \
5213506e
RW
18966 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18967$as_echo X/"$0" |
18968 sed '/^.*\/\([^/][^/]*\)\/*$/{
18969 s//\1/
18970 q
18971 }
18972 /^X\/\(\/\/\)$/{
18973 s//\1/
18974 q
18975 }
18976 /^X\/\(\/\).*/{
18977 s//\1/
18978 q
18979 }
18980 s/.*/./; q'`
2aeb72e9 18981
2aeb72e9
DD
18982# Avoid depending upon Character Ranges.
18983as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18984as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18985as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18986as_cr_digits='0123456789'
18987as_cr_alnum=$as_cr_Letters$as_cr_digits
18988
5213506e
RW
18989ECHO_C= ECHO_N= ECHO_T=
18990case `echo -n x` in #(((((
18991-n*)
18992 case `echo 'xy\c'` in
18993 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18994 xy) ECHO_C='\c';;
18995 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18996 ECHO_T=' ';;
18997 esac;;
18998*)
18999 ECHO_N='-n';;
1c710c3c
DJ
19000esac
19001
5213506e
RW
19002rm -f conf$$ conf$$.exe conf$$.file
19003if test -d conf$$.dir; then
19004 rm -f conf$$.dir/conf$$.file
1c710c3c 19005else
5213506e
RW
19006 rm -f conf$$.dir
19007 mkdir conf$$.dir 2>/dev/null
1c710c3c 19008fi
5213506e
RW
19009if (echo >conf$$.file) 2>/dev/null; then
19010 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 19011 as_ln_s='ln -s'
5213506e
RW
19012 # ... but there are two gotchas:
19013 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19014 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 19015 # In both cases, we have to default to `cp -pR'.
5213506e 19016 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 19017 as_ln_s='cp -pR'
5213506e
RW
19018 elif ln conf$$.file conf$$ 2>/dev/null; then
19019 as_ln_s=ln
19020 else
22e05272 19021 as_ln_s='cp -pR'
2aeb72e9 19022 fi
1c710c3c 19023else
22e05272 19024 as_ln_s='cp -pR'
1c710c3c 19025fi
5213506e
RW
19026rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19027rmdir conf$$.dir 2>/dev/null
19028
19029
19030# as_fn_mkdir_p
19031# -------------
19032# Create "$as_dir" as a directory, including parents if necessary.
19033as_fn_mkdir_p ()
19034{
19035
19036 case $as_dir in #(
19037 -*) as_dir=./$as_dir;;
19038 esac
19039 test -d "$as_dir" || eval $as_mkdir_p || {
19040 as_dirs=
19041 while :; do
19042 case $as_dir in #(
19043 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19044 *) as_qdir=$as_dir;;
19045 esac
19046 as_dirs="'$as_qdir' $as_dirs"
19047 as_dir=`$as_dirname -- "$as_dir" ||
19048$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19049 X"$as_dir" : 'X\(//\)[^/]' \| \
19050 X"$as_dir" : 'X\(//\)$' \| \
19051 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19052$as_echo X"$as_dir" |
19053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19054 s//\1/
19055 q
19056 }
19057 /^X\(\/\/\)[^/].*/{
19058 s//\1/
19059 q
19060 }
19061 /^X\(\/\/\)$/{
19062 s//\1/
19063 q
19064 }
19065 /^X\(\/\).*/{
19066 s//\1/
19067 q
19068 }
19069 s/.*/./; q'`
19070 test -d "$as_dir" && break
19071 done
19072 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 19073 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 19074
1c710c3c 19075
5213506e 19076} # as_fn_mkdir_p
1c710c3c 19077if mkdir -p . 2>/dev/null; then
5213506e 19078 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
19079else
19080 test -d ./-p && rmdir ./-p
19081 as_mkdir_p=false
19082fi
19083
22e05272
JM
19084
19085# as_fn_executable_p FILE
19086# -----------------------
19087# Test if FILE is an executable regular file.
19088as_fn_executable_p ()
19089{
19090 test -f "$1" && test -x "$1"
19091} # as_fn_executable_p
19092as_test_x='test -x'
19093as_executable_p=as_fn_executable_p
1c710c3c
DJ
19094
19095# Sed expression to map a string onto a valid CPP name.
19096as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19097
19098# Sed expression to map a string onto a valid variable name.
19099as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19100
19101
1c710c3c 19102exec 6>&1
5213506e
RW
19103## ----------------------------------- ##
19104## Main body of $CONFIG_STATUS script. ##
19105## ----------------------------------- ##
19106_ASEOF
19107test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19108
19109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19110# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 19111# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
19112# values after options handling.
19113ac_log="
1c710c3c 19114This file was extended by $as_me, which was
22e05272 19115generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
19116
19117 CONFIG_FILES = $CONFIG_FILES
19118 CONFIG_HEADERS = $CONFIG_HEADERS
19119 CONFIG_LINKS = $CONFIG_LINKS
19120 CONFIG_COMMANDS = $CONFIG_COMMANDS
19121 $ $0 $@
19122
5213506e
RW
19123on `(hostname || uname -n) 2>/dev/null | sed 1q`
19124"
19125
1c710c3c
DJ
19126_ACEOF
19127
5213506e
RW
19128case $ac_config_files in *"
19129"*) set x $ac_config_files; shift; ac_config_files=$*;;
19130esac
1c710c3c 19131
2aeb72e9 19132
2aeb72e9 19133
5213506e
RW
19134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19135# Files that config.status was made for.
19136config_files="$ac_config_files"
1c710c3c 19137
5213506e 19138_ACEOF
2aeb72e9 19139
5213506e 19140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 19141ac_cs_usage="\
5213506e
RW
19142\`$as_me' instantiates files and other configuration actions
19143from templates according to the current configuration. Unless the files
19144and actions are specified as TAGs, all are instantiated by default.
1c710c3c 19145
5213506e 19146Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
19147
19148 -h, --help print this help, then exit
5213506e 19149 -V, --version print version number and configuration settings, then exit
22e05272 19150 --config print configuration, then exit
5213506e
RW
19151 -q, --quiet, --silent
19152 do not print progress messages
1c710c3c
DJ
19153 -d, --debug don't remove temporary files
19154 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
19155 --file=FILE[:TEMPLATE]
19156 instantiate the configuration file FILE
1c710c3c
DJ
19157
19158Configuration files:
19159$config_files
19160
5213506e 19161Report bugs to the package provider."
2aeb72e9 19162
5213506e
RW
19163_ACEOF
19164cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 19165ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1c710c3c
DJ
19166ac_cs_version="\\
19167config.status
22e05272
JM
19168configured by $0, generated by GNU Autoconf 2.69,
19169 with options \\"\$ac_cs_config\\"
1c710c3c 19170
22e05272 19171Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
19172This config.status script is free software; the Free Software Foundation
19173gives unlimited permission to copy, distribute and modify it."
5213506e
RW
19174
19175ac_pwd='$ac_pwd'
19176srcdir='$srcdir'
19177INSTALL='$INSTALL'
87264276 19178AWK='$AWK'
5213506e 19179test -n "\$AWK" || AWK=awk
1c710c3c
DJ
19180_ACEOF
19181
5213506e
RW
19182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19183# The default lists apply if the user does not specify any file.
1c710c3c
DJ
19184ac_need_defaults=:
19185while test $# != 0
a4b9e93e 19186do
1c710c3c 19187 case $1 in
22e05272 19188 --*=?*)
5213506e
RW
19189 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19190 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
19191 ac_shift=:
19192 ;;
22e05272
JM
19193 --*=)
19194 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19195 ac_optarg=
19196 ac_shift=:
19197 ;;
5213506e 19198 *)
1c710c3c
DJ
19199 ac_option=$1
19200 ac_optarg=$2
19201 ac_shift=shift
19202 ;;
1c710c3c
DJ
19203 esac
19204
19205 case $ac_option in
19206 # Handling of the options.
671aa708 19207 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 19208 ac_cs_recheck=: ;;
5213506e
RW
19209 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19210 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
19211 --config | --confi | --conf | --con | --co | --c )
19212 $as_echo "$ac_cs_config"; exit ;;
5213506e 19213 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
19214 debug=: ;;
19215 --file | --fil | --fi | --f )
19216 $ac_shift
5213506e
RW
19217 case $ac_optarg in
19218 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 19219 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
19220 esac
19221 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 19222 ac_need_defaults=false;;
5213506e
RW
19223 --he | --h | --help | --hel | -h )
19224 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
19225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19226 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19227 ac_cs_silent=: ;;
19228
19229 # This is an error.
22e05272 19230 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 19231Try \`$0 --help' for more information." ;;
1c710c3c 19232
5213506e
RW
19233 *) as_fn_append ac_config_targets " $1"
19234 ac_need_defaults=false ;;
1c710c3c 19235
0b0dc272 19236 esac
1c710c3c 19237 shift
0b0dc272
AM
19238done
19239
1c710c3c 19240ac_configure_extra_args=
0b0dc272 19241
1c710c3c
DJ
19242if $ac_cs_silent; then
19243 exec 6>/dev/null
19244 ac_configure_extra_args="$ac_configure_extra_args --silent"
19245fi
0b0dc272 19246
1c710c3c 19247_ACEOF
5213506e 19248cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 19249if \$ac_cs_recheck; then
22e05272 19250 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
19251 shift
19252 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19253 CONFIG_SHELL='$SHELL'
19254 export CONFIG_SHELL
19255 exec "\$@"
1c710c3c
DJ
19256fi
19257
19258_ACEOF
5213506e
RW
19259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19260exec 5>>config.log
19261{
19262 echo
19263 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19264## Running $as_me. ##
19265_ASBOX
19266 $as_echo "$ac_log"
19267} >&5
1c710c3c 19268
5213506e
RW
19269_ACEOF
19270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
19271#
19272# INIT-COMMANDS
19273#
19274extrasub_build="$extrasub_build"
19275 extrasub_host="$extrasub_host"
19276 extrasub_target="$extrasub_target"
19277
5213506e 19278_ACEOF
1c710c3c 19279
5213506e 19280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 19281
5213506e 19282# Handling of arguments.
1c710c3c
DJ
19283for ac_config_target in $ac_config_targets
19284do
5213506e
RW
19285 case $ac_config_target in
19286 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19287
22e05272 19288 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
19289 esac
19290done
19291
5213506e 19292
1c710c3c
DJ
19293# If the user did not use the arguments to specify the items to instantiate,
19294# then the envvar interface is used. Set only those that are not.
19295# We use the long form for the default assignment because of an extremely
19296# bizarre bug on SunOS 4.1.3.
19297if $ac_need_defaults; then
19298 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19299fi
19300
19301# Have a temporary directory for convenience. Make it in the build tree
5213506e 19302# simply because there is no reason against having it here, and in addition,
1c710c3c 19303# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
19304# Hook for its removal unless debugging.
19305# Note that there is a small window in which the directory will not be cleaned:
19306# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
19307$debug ||
19308{
22e05272 19309 tmp= ac_tmp=
5213506e 19310 trap 'exit_status=$?
22e05272
JM
19311 : "${ac_tmp:=$tmp}"
19312 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
19313' 0
19314 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 19315}
1c710c3c
DJ
19316# Create a (secure) tmp directory for tmp files.
19317
19318{
5213506e 19319 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 19320 test -d "$tmp"
1c710c3c
DJ
19321} ||
19322{
5213506e
RW
19323 tmp=./conf$$-$RANDOM
19324 (umask 077 && mkdir "$tmp")
22e05272
JM
19325} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19326ac_tmp=$tmp
5213506e
RW
19327
19328# Set up the scripts for CONFIG_FILES section.
19329# No need to generate them if there are no CONFIG_FILES.
19330# This happens for instance with `./config.status config.h'.
19331if test -n "$CONFIG_FILES"; then
19332
19333if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19334 ac_cs_awk_getline=:
19335 ac_cs_awk_pipe_init=
19336 ac_cs_awk_read_file='
19337 while ((getline aline < (F[key])) > 0)
19338 print(aline)
19339 close(F[key])'
19340 ac_cs_awk_pipe_fini=
19341else
19342 ac_cs_awk_getline=false
19343 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19344 ac_cs_awk_read_file='
19345 print "|#_!!_#|"
19346 print "cat " F[key] " &&"
19347 '$ac_cs_awk_pipe_init
19348 # The final `:' finishes the AND list.
19349 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19350fi
19351ac_cr=`echo X | tr X '\015'`
19352# On cygwin, bash can eat \r inside `` if the user requested igncr.
19353# But we know of no other shell where ac_cr would be empty at this
19354# point, so we can use a bashism as a fallback.
19355if test "x$ac_cr" = x; then
19356 eval ac_cr=\$\'\\r\'
19357fi
19358ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19359if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 19360 ac_cs_awk_cr='\\r'
5213506e
RW
19361else
19362 ac_cs_awk_cr=$ac_cr
19363fi
19364
22e05272 19365echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
19366_ACEOF
19367
19368# Create commands to substitute file output variables.
1c710c3c 19369{
5213506e 19370 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22e05272 19371 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
5213506e
RW
19372 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19373 echo "_ACAWK" &&
19374 echo "_ACEOF"
19375} >conf$$files.sh &&
19376. ./conf$$files.sh ||
22e05272 19377 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e 19378rm -f conf$$files.sh
1c710c3c 19379
5213506e
RW
19380{
19381 echo "cat >conf$$subs.awk <<_ACEOF" &&
19382 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19383 echo "_ACEOF"
19384} >conf$$subs.sh ||
22e05272
JM
19385 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19386ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
19387ac_delim='%!_!# '
19388for ac_last_try in false false false false false :; do
19389 . ./conf$$subs.sh ||
22e05272 19390 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
19391
19392 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19393 if test $ac_delim_n = $ac_delim_num; then
19394 break
19395 elif $ac_last_try; then
22e05272 19396 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
19397 else
19398 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19399 fi
19400done
19401rm -f conf$$subs.sh
19402
19403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 19404cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 19405_ACEOF
5213506e
RW
19406sed -n '
19407h
19408s/^/S["/; s/!.*/"]=/
19409p
19410g
19411s/^[^!]*!//
19412:repl
19413t repl
19414s/'"$ac_delim"'$//
19415t delim
19416:nl
19417h
22e05272 19418s/\(.\{148\}\)..*/\1/
5213506e
RW
19419t more1
19420s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19421p
19422n
19423b repl
19424:more1
19425s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19426p
19427g
19428s/.\{148\}//
19429t nl
19430:delim
19431h
22e05272 19432s/\(.\{148\}\)..*/\1/
5213506e
RW
19433t more2
19434s/["\\]/\\&/g; s/^/"/; s/$/"/
19435p
19436b
19437:more2
19438s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19439p
19440g
19441s/.\{148\}//
19442t delim
19443' <conf$$subs.awk | sed '
19444/^[^""]/{
19445 N
19446 s/\n//
19447}
19448' >>$CONFIG_STATUS || ac_write_fail=1
19449rm -f conf$$subs.awk
19450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19451_ACAWK
22e05272 19452cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
19453 for (key in S) S_is_set[key] = 1
19454 FS = "\a"
19455 \$ac_cs_awk_pipe_init
19456}
19457{
19458 line = $ 0
19459 nfields = split(line, field, "@")
19460 substed = 0
19461 len = length(field[1])
19462 for (i = 2; i < nfields; i++) {
19463 key = field[i]
19464 keylen = length(key)
19465 if (S_is_set[key]) {
19466 value = S[key]
19467 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19468 len += length(value) + length(field[++i])
19469 substed = 1
19470 } else
19471 len += 1 + keylen
19472 }
19473 if (nfields == 3 && !substed) {
19474 key = field[2]
19475 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19476 \$ac_cs_awk_read_file
19477 next
19478 }
19479 }
19480 print line
19481}
19482\$ac_cs_awk_pipe_fini
19483_ACAWK
19484_ACEOF
19485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19486if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19487 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19488else
19489 cat
22e05272
JM
19490fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19491 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
19492_ACEOF
19493
22e05272
JM
19494# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19495# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
19496# trailing colons and then remove the whole line if VPATH becomes empty
19497# (actually we leave an empty line to preserve line numbers).
19498if test "x$srcdir" = x.; then
22e05272
JM
19499 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19500h
19501s///
19502s/^/:/
19503s/[ ]*$/:/
19504s/:\$(srcdir):/:/g
19505s/:\${srcdir}:/:/g
19506s/:@srcdir@:/:/g
19507s/^:*//
5213506e 19508s/:*$//
22e05272
JM
19509x
19510s/\(=[ ]*\).*/\1/
19511G
19512s/\n//
5213506e
RW
19513s/^[^=]*=[ ]*$//
19514}'
19515fi
2aeb72e9 19516
5213506e
RW
19517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19518fi # test -n "$CONFIG_FILES"
2aeb72e9 19519
1c710c3c 19520
5213506e
RW
19521eval set X " :F $CONFIG_FILES "
19522shift
19523for ac_tag
19524do
19525 case $ac_tag in
19526 :[FHLC]) ac_mode=$ac_tag; continue;;
19527 esac
19528 case $ac_mode$ac_tag in
19529 :[FHL]*:*);;
22e05272 19530 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
19531 :[FH]-) ac_tag=-:-;;
19532 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19533 esac
19534 ac_save_IFS=$IFS
19535 IFS=:
19536 set x $ac_tag
19537 IFS=$ac_save_IFS
19538 shift
19539 ac_file=$1
19540 shift
79c06341 19541
5213506e
RW
19542 case $ac_mode in
19543 :L) ac_source=$1;;
19544 :[FH])
19545 ac_file_inputs=
19546 for ac_f
19547 do
19548 case $ac_f in
22e05272 19549 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
19550 *) # Look for the file first in the build tree, then in the source tree
19551 # (if the path is not absolute). The absolute path cannot be DOS-style,
19552 # because $ac_f cannot contain `:'.
19553 test -f "$ac_f" ||
19554 case $ac_f in
19555 [\\/$]*) false;;
19556 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19557 esac ||
22e05272 19558 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
19559 esac
19560 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19561 as_fn_append ac_file_inputs " '$ac_f'"
19562 done
1c710c3c 19563
5213506e
RW
19564 # Let's still pretend it is `configure' which instantiates (i.e., don't
19565 # use $as_me), people would be surprised to read:
19566 # /* config.h. Generated by config.status. */
19567 configure_input='Generated from '`
19568 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19569 `' by configure.'
19570 if test x"$ac_file" != x-; then
19571 configure_input="$ac_file. $configure_input"
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19573$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 19574 fi
5213506e
RW
19575 # Neutralize special characters interpreted by sed in replacement strings.
19576 case $configure_input in #(
19577 *\&* | *\|* | *\\* )
19578 ac_sed_conf_input=`$as_echo "$configure_input" |
19579 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19580 *) ac_sed_conf_input=$configure_input;;
19581 esac
11a67599 19582
5213506e 19583 case $ac_tag in
22e05272
JM
19584 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19585 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
19586 esac
19587 ;;
11a67599
ZW
19588 esac
19589
5213506e 19590 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
19591$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19592 X"$ac_file" : 'X\(//\)[^/]' \| \
19593 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
19594 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19595$as_echo X"$ac_file" |
19596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19597 s//\1/
19598 q
19599 }
19600 /^X\(\/\/\)[^/].*/{
19601 s//\1/
19602 q
19603 }
19604 /^X\(\/\/\)$/{
19605 s//\1/
19606 q
19607 }
19608 /^X\(\/\).*/{
19609 s//\1/
19610 q
19611 }
19612 s/.*/./; q'`
19613 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 19614 ac_builddir=.
0b0dc272 19615
5213506e
RW
19616case "$ac_dir" in
19617.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19618*)
19619 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19620 # A ".." for each directory in $ac_dir_suffix.
19621 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19622 case $ac_top_builddir_sub in
19623 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19624 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19625 esac ;;
19626esac
19627ac_abs_top_builddir=$ac_pwd
19628ac_abs_builddir=$ac_pwd$ac_dir_suffix
19629# for backward compatibility:
19630ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
19631
19632case $srcdir in
5213506e 19633 .) # We are building in place.
1c710c3c 19634 ac_srcdir=.
5213506e
RW
19635 ac_top_srcdir=$ac_top_builddir_sub
19636 ac_abs_top_srcdir=$ac_pwd ;;
19637 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 19638 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
19639 ac_top_srcdir=$srcdir
19640 ac_abs_top_srcdir=$srcdir ;;
19641 *) # Relative name.
19642 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19643 ac_top_srcdir=$ac_top_build_prefix$srcdir
19644 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 19645esac
5213506e 19646ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 19647
0b0dc272 19648
5213506e
RW
19649 case $ac_mode in
19650 :F)
19651 #
19652 # CONFIG_FILE
19653 #
1c710c3c
DJ
19654
19655 case $INSTALL in
19656 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 19657 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 19658 esac
5213506e 19659_ACEOF
11a67599 19660
5213506e
RW
19661cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19662# If the template does not know about datarootdir, expand it.
19663# FIXME: This hack should be removed a few years after 2.60.
19664ac_datarootdir_hack=; ac_datarootdir_seen=
19665ac_sed_dataroot='
19666/datarootdir/ {
19667 p
19668 q
19669}
19670/@datadir@/p
19671/@docdir@/p
19672/@infodir@/p
19673/@localedir@/p
19674/@mandir@/p'
19675case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19676*datarootdir*) ac_datarootdir_seen=yes;;
19677*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19679$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 19680_ACEOF
5213506e
RW
19681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19682 ac_datarootdir_hack='
19683 s&@datadir@&$datadir&g
19684 s&@docdir@&$docdir&g
19685 s&@infodir@&$infodir&g
19686 s&@localedir@&$localedir&g
19687 s&@mandir@&$mandir&g
19688 s&\\\${datarootdir}&$datarootdir&g' ;;
19689esac
19690_ACEOF
19691
19692# Neutralize VPATH when `$srcdir' = `.'.
19693# Shell code in configure.ac might set extrasub.
19694# FIXME: do we really want to maintain this feature?
19695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19696ac_sed_extra="$ac_vpsub
1c710c3c
DJ
19697$extrasub
19698_ACEOF
5213506e 19699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
19700:t
19701/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
19702s|@configure_input@|$ac_sed_conf_input|;t t
19703s&@top_builddir@&$ac_top_builddir_sub&;t t
19704s&@top_build_prefix@&$ac_top_build_prefix&;t t
19705s&@srcdir@&$ac_srcdir&;t t
19706s&@abs_srcdir@&$ac_abs_srcdir&;t t
19707s&@top_srcdir@&$ac_top_srcdir&;t t
19708s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19709s&@builddir@&$ac_builddir&;t t
19710s&@abs_builddir@&$ac_abs_builddir&;t t
19711s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19712s&@INSTALL@&$ac_INSTALL&;t t
19713$ac_datarootdir_hack
19714"
19715eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19716if $ac_cs_awk_getline; then
22e05272 19717 $AWK -f "$ac_tmp/subs.awk"
5213506e 19718else
22e05272
JM
19719 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19720fi \
19721 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
19722
19723test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
19724 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19725 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19726 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 19727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19728which seems to be undefined. Please make sure it is defined" >&5
5213506e 19729$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19730which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 19731
22e05272 19732 rm -f "$ac_tmp/stdin"
5213506e 19733 case $ac_file in
22e05272
JM
19734 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19735 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 19736 esac \
22e05272 19737 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 19738 ;;
11a67599 19739
11a67599 19740
79c06341 19741
5213506e
RW
19742 esac
19743
3e54529c
RW
19744
19745 case $ac_file$ac_mode in
19746 "Makefile":F) sed "$extrasub_build" Makefile |
19747 sed "$extrasub_host" |
19748 sed "$extrasub_target" > mf$$
19749 mv -f mf$$ Makefile ;;
19750
19751 esac
5213506e
RW
19752done # for ac_tag
19753
19754
19755as_fn_exit 0
1c710c3c 19756_ACEOF
1c710c3c
DJ
19757ac_clean_files=$ac_clean_files_save
19758
5213506e 19759test $ac_write_fail = 0 ||
22e05272 19760 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 19761
1c710c3c
DJ
19762
19763# configure is writing to config.log, and then calls config.status.
19764# config.status does its own redirection, appending to config.log.
19765# Unfortunately, on DOS this fails, as config.log is still kept open
19766# by configure, so config.status won't be able to write to it; its
19767# output is simply discarded. So we exec the FD to /dev/null,
19768# effectively closing config.log, so it can be properly (re)opened and
19769# appended to by config.status. When coming back to configure, we
19770# need to make the FD available again.
19771if test "$no_create" != yes; then
19772 ac_cs_success=:
19773 ac_config_status_args=
19774 test "$silent" = yes &&
19775 ac_config_status_args="$ac_config_status_args --quiet"
19776 exec 5>/dev/null
19777 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19778 exec 5>>config.log
19779 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19780 # would make configure fail if this is the last instruction.
22e05272 19781 $ac_cs_success || as_fn_exit 1
5213506e
RW
19782fi
19783if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19785$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 19786fi
79c06341 19787
This page took 5.722262 seconds and 5 git commands to generate.