]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
gprofng: a new GNU profiler
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5213506e 7#
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
1c710c3c
DJ
79fi
80
81
5213506e
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
22e05272 90as_myself=
5213506e
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
1c710c3c
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
5213506e
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
5213506e
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
5213506e
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
87264276
PB
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
5213506e
RW
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1c710c3c 211do
5213506e
RW
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
5213506e
RW
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1c710c3c 266 else
5213506e
RW
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
1c710c3c 271 fi
5213506e
RW
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
1c710c3c 301
5213506e
RW
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e
RW
356
357
358} # as_fn_mkdir_p
22e05272
JM
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
5213506e
RW
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
22e05272
JM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
5213506e
RW
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 407# script with STATUS, using 1 if that was 0.
5213506e
RW
408as_fn_error ()
409{
22e05272
JM
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5213506e 414 fi
22e05272 415 $as_echo "$as_me: error: $2" >&2
5213506e
RW
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
421 as_expr=expr
422else
423 as_expr=false
424fi
425
5213506e 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
427 as_basename=basename
428else
429 as_basename=false
430fi
431
5213506e
RW
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
1c710c3c 437
5213506e 438as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
5213506e
RW
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
1c710c3c 456
2aeb72e9
DD
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 463
1c710c3c 464
5213506e
RW
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
1c710c3c 474 sed '
5213506e
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
1c710c3c 479 N
5213506e
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 482 t loop
5213506e 483 s/-\n.*//
1c710c3c 484 ' >$as_me.lineno &&
5213506e
RW
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1c710c3c 487
22e05272
JM
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
1c710c3c
DJ
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
1c710c3c
DJ
496 # Exit status is that of the last command.
497 exit
498}
499
5213506e
RW
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
1c710c3c
DJ
511esac
512
5213506e
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
1c710c3c 516else
5213506e
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
1c710c3c 519fi
5213506e
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 522 as_ln_s='ln -s'
5213506e
RW
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 526 # In both cases, we have to default to `cp -pR'.
5213506e 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 528 as_ln_s='cp -pR'
5213506e
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
22e05272 532 as_ln_s='cp -pR'
2aeb72e9 533 fi
1c710c3c 534else
22e05272 535 as_ln_s='cp -pR'
1c710c3c 536fi
5213506e
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
539
540if mkdir -p . 2>/dev/null; then
5213506e 541 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
22e05272
JM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
0b0dc272 549
1c710c3c
DJ
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
22e05272
JM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
1c710c3c
DJ
559
560# Name of the host.
22e05272 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1c710c3c
DJ
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
1c710c3c
DJ
565#
566# Initializations.
567#
671aa708 568ac_default_prefix=/usr/local
5213506e 569ac_clean_files=
1c710c3c 570ac_config_libobj_dir=.
5213506e 571LIBOBJS=
1c710c3c
DJ
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
2aeb72e9 576
1c710c3c
DJ
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
5213506e 583PACKAGE_URL=
1c710c3c
DJ
584
585ac_unique_file="move-if-change"
5213506e
RW
586enable_option_checking=no
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589compare_exclusions
590stage2_werror_flag
591stage1_checking
592stage1_cflags
593MAINT
594MAINTAINER_MODE_FALSE
595MAINTAINER_MODE_TRUE
596COMPILER_NM_FOR_TARGET
597COMPILER_LD_FOR_TARGET
598COMPILER_AS_FOR_TARGET
599FLAGS_FOR_TARGET
600RAW_CXX_FOR_TARGET
601WINDMC_FOR_TARGET
602WINDRES_FOR_TARGET
603STRIP_FOR_TARGET
e7a82751 604READELF_FOR_TARGET
5213506e 605RANLIB_FOR_TARGET
e4a9a572 606OTOOL_FOR_TARGET
5213506e 607OBJDUMP_FOR_TARGET
9bccfdf5 608OBJCOPY_FOR_TARGET
5213506e
RW
609NM_FOR_TARGET
610LIPO_FOR_TARGET
611LD_FOR_TARGET
3b5e8ee4 612DSYMUTIL_FOR_TARGET
5213506e
RW
613DLLTOOL_FOR_TARGET
614AS_FOR_TARGET
615AR_FOR_TARGET
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
126f707e
L
623RANLIB_PLUGIN_OPTION
624AR_PLUGIN_OPTION
5fee5ec3 625GDCFLAGS
e7a82751 626READELF
e4a9a572 627OTOOL
5213506e
RW
628OBJDUMP
629OBJCOPY
630WINDMC
631WINDRES
632STRIP
633RANLIB
634NM
635LIPO
636LD
3b5e8ee4 637DSYMUTIL
5213506e
RW
638DLLTOOL
639AS
640AR
641RUNTEST
642EXPECT
643MAKEINFO
644FLEX
645LEX
646M4
647BISON
648YACC
5213506e
RW
649WINDRES_FOR_BUILD
650WINDMC_FOR_BUILD
651RANLIB_FOR_BUILD
652NM_FOR_BUILD
653LD_FOR_BUILD
654LDFLAGS_FOR_BUILD
b4c522fa 655GDC_FOR_BUILD
632e2a07 656GOC_FOR_BUILD
5213506e 657GFORTRAN_FOR_BUILD
3b5e8ee4 658DSYMUTIL_FOR_BUILD
5213506e
RW
659DLLTOOL_FOR_BUILD
660CXX_FOR_BUILD
661CXXFLAGS_FOR_BUILD
84401ce5
RP
662CPPFLAGS_FOR_BUILD
663CPP_FOR_BUILD
5213506e
RW
664CFLAGS_FOR_BUILD
665CC_FOR_BUILD
666AS_FOR_BUILD
667AR_FOR_BUILD
aae29963 668target_configdirs
5213506e 669configdirs
5213506e 670build_configdirs
5213506e
RW
671INSTALL_GDB_TK
672GDB_TK
673CONFIGURE_GDB_TK
674build_tooldir
675tooldir
676GCC_SHLIB_SUBDIR
677RPATH_ENVVAR
ffedf511
RW
678target_configargs
679host_configargs
680build_configargs
e12c4094 681BUILD_CONFIG
6f57bdf6 682LDFLAGS_FOR_TARGET
5213506e
RW
683CXXFLAGS_FOR_TARGET
684CFLAGS_FOR_TARGET
685DEBUG_PREFIX_CFLAGS_FOR_TARGET
686SYSROOT_CFLAGS_FOR_TARGET
3c36aa6b 687get_gcc_base_ver
1c01ebf6 688extra_host_zlib_configure_flags
d7f09764 689extra_host_libiberty_configure_flags
fca38047 690stage1_languages
05048fc2 691host_libs_picflag
b6cb10af 692PICFLAG
cdfee50a 693host_shared
c1fecabe 694gcc_host_pie
b6cb10af 695host_pie
45b3824d
TS
696extra_linker_plugin_flags
697extra_linker_plugin_configure_flags
33ad93b9 698islinc
eae1a5d4 699isllibs
5213506e 700poststage1_ldflags
ed2eaa9f 701poststage1_libs
5213506e 702stage1_ldflags
0b21f5d3 703stage1_libs
0ff2d841 704extra_isl_gmp_configure_flags
5213506e
RW
705extra_mpc_mpfr_configure_flags
706extra_mpc_gmp_configure_flags
707extra_mpfr_configure_flags
708gmpinc
709gmplibs
4a5e71f2
L
710PGO_BUILD_LTO_CFLAGS
711PGO_BUILD_USE_CFLAGS
712PGO_BUILD_GEN_CFLAGS
7ffcf5d6 713HAVE_CXX11_FOR_BUILD
ffac9597 714HAVE_CXX11
5213506e 715do_compare
5fee5ec3 716GDC
5213506e
RW
717GNATMAKE
718GNATBIND
719ac_ct_CXX
720CXXFLAGS
721CXX
722OBJEXT
723EXEEXT
724ac_ct_CC
725CPPFLAGS
726LDFLAGS
727CFLAGS
728CC
729target_subdir
730host_subdir
731build_subdir
732build_libsubdir
87264276
PB
733AWK
734SED
5213506e
RW
735LN_S
736LN
737INSTALL_DATA
738INSTALL_SCRIPT
739INSTALL_PROGRAM
740target_os
741target_vendor
742target_cpu
743target
744host_os
745host_vendor
746host_cpu
747host
748target_noncanonical
749host_noncanonical
750build_noncanonical
751build_os
752build_vendor
753build_cpu
754build
755TOPLEVEL_CONFIGURE_ARGUMENTS
756target_alias
757host_alias
758build_alias
759LIBS
760ECHO_T
761ECHO_N
762ECHO_C
763DEFS
764mandir
765localedir
766libdir
767psdir
768pdfdir
769dvidir
770htmldir
771infodir
772docdir
773oldincludedir
774includedir
775localstatedir
776sharedstatedir
777sysconfdir
778datadir
779datarootdir
780libexecdir
781sbindir
782bindir
783program_transform_name
784prefix
785exec_prefix
786PACKAGE_URL
787PACKAGE_BUGREPORT
788PACKAGE_STRING
789PACKAGE_VERSION
790PACKAGE_TARNAME
791PACKAGE_NAME
792PATH_SEPARATOR
793SHELL'
794ac_subst_files='serialization_dependencies
795host_makefile_frag
796target_makefile_frag
797alphaieee_frag
798ospace_frag'
799ac_user_opts='
800enable_option_checking
801with_build_libsubdir
a05c2c75 802with_system_zlib
407a2c9a 803with_zstd
85c64bbe
BS
804enable_as_accelerator_for
805enable_offload_targets
fe5bfa67 806enable_offload_defaulted
5213506e 807enable_gold
21539e2e 808enable_ld
24552056 809enable_gprofng
78edb32f 810enable_compressed_debug_sections
c9884636 811enable_default_compressed_debug_sections_algorithm
87e6d9dc
TB
812enable_libquadmath
813enable_libquadmath_support
5213506e 814enable_libada
1eee94d3 815enable_libgm2
5213506e 816enable_libssp
1873ec0c 817enable_libstdcxx
ff3ac0f4 818enable_bootstrap
4a5e71f2 819enable_pgo_build
5213506e
RW
820with_mpc
821with_mpc_include
822with_mpc_lib
5213506e
RW
823with_mpfr
824with_mpfr_include
825with_mpfr_lib
5213506e
RW
826with_gmp
827with_gmp_include
828with_gmp_lib
5213506e 829with_stage1_libs
aac9103b 830with_static_standard_libraries
0b21f5d3 831with_stage1_ldflags
5213506e 832with_boot_libs
ed2eaa9f 833with_boot_ldflags
33ad93b9
RG
834with_isl
835with_isl_include
836with_isl_lib
837enable_isl_version_check
d7f09764 838enable_lto
45b3824d
TS
839enable_linker_plugin_configure_flags
840enable_linker_plugin_flags
b6cb10af 841enable_host_pie
cdfee50a 842enable_host_shared
5213506e 843enable_stage1_languages
43c40f3e 844enable_objc_gc
114bf3f1
MK
845with_target_bdw_gc
846with_target_bdw_gc_include
847with_target_bdw_gc_lib
3c36aa6b 848with_gcc_major_version_only
5213506e
RW
849with_build_sysroot
850with_debug_prefix_map
5646b7b9 851with_build_config
beeda1d9 852enable_vtable_verify
5213506e
RW
853enable_serial_configure
854with_build_time_tools
855enable_maintainer_mode
856enable_stage1_checking
857enable_werror
5213506e
RW
858'
859 ac_precious_vars='build_alias
860host_alias
861target_alias
862CC
863CFLAGS
864LDFLAGS
865LIBS
866CPPFLAGS
867CXX
868CXXFLAGS
869CCC
ffedf511
RW
870build_configargs
871host_configargs
872target_configargs
5213506e
RW
873AR
874AS
875DLLTOOL
3b5e8ee4 876DSYMUTIL
5213506e
RW
877LD
878LIPO
879NM
880RANLIB
881STRIP
882WINDRES
883WINDMC
884OBJCOPY
885OBJDUMP
e4a9a572 886OTOOL
e7a82751 887READELF
5213506e
RW
888CC_FOR_TARGET
889CXX_FOR_TARGET
890GCC_FOR_TARGET
5213506e 891GFORTRAN_FOR_TARGET
632e2a07 892GOC_FOR_TARGET
b4c522fa 893GDC_FOR_TARGET
1eee94d3 894GM2_FOR_TARGET
5213506e
RW
895AR_FOR_TARGET
896AS_FOR_TARGET
897DLLTOOL_FOR_TARGET
3b5e8ee4 898DSYMUTIL_FOR_TARGET
5213506e
RW
899LD_FOR_TARGET
900LIPO_FOR_TARGET
901NM_FOR_TARGET
9bccfdf5 902OBJCOPY_FOR_TARGET
5213506e 903OBJDUMP_FOR_TARGET
e4a9a572 904OTOOL_FOR_TARGET
5213506e 905RANLIB_FOR_TARGET
e7a82751 906READELF_FOR_TARGET
5213506e
RW
907STRIP_FOR_TARGET
908WINDRES_FOR_TARGET
909WINDMC_FOR_TARGET'
910
671aa708
NN
911
912# Initialize some variables set by options.
1c710c3c
DJ
913ac_init_help=
914ac_init_version=false
5213506e
RW
915ac_unrecognized_opts=
916ac_unrecognized_sep=
671aa708
NN
917# The variables have the same names as the options, with
918# dashes changed to underlines.
1c710c3c 919cache_file=/dev/null
671aa708 920exec_prefix=NONE
671aa708 921no_create=
671aa708
NN
922no_recursion=
923prefix=NONE
924program_prefix=NONE
925program_suffix=NONE
926program_transform_name=s,x,x,
927silent=
928site=
929srcdir=
671aa708
NN
930verbose=
931x_includes=NONE
932x_libraries=NONE
1c710c3c
DJ
933
934# Installation directory options.
935# These are left unexpanded so users can "make install exec_prefix=/foo"
936# and all the variables that are supposed to be based on exec_prefix
937# by default will actually change.
938# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 939# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
940bindir='${exec_prefix}/bin'
941sbindir='${exec_prefix}/sbin'
942libexecdir='${exec_prefix}/libexec'
5213506e
RW
943datarootdir='${prefix}/share'
944datadir='${datarootdir}'
671aa708
NN
945sysconfdir='${prefix}/etc'
946sharedstatedir='${prefix}/com'
947localstatedir='${prefix}/var'
671aa708
NN
948includedir='${prefix}/include'
949oldincludedir='/usr/include'
5213506e
RW
950docdir='${datarootdir}/doc/${PACKAGE}'
951infodir='${datarootdir}/info'
952htmldir='${docdir}'
953dvidir='${docdir}'
954pdfdir='${docdir}'
955psdir='${docdir}'
956libdir='${exec_prefix}/lib'
957localedir='${datarootdir}/locale'
958mandir='${datarootdir}/man'
79c06341 959
671aa708 960ac_prev=
5213506e 961ac_dashdash=
671aa708
NN
962for ac_option
963do
671aa708
NN
964 # If the previous option needs an argument, assign it.
965 if test -n "$ac_prev"; then
5213506e 966 eval $ac_prev=\$ac_option
671aa708
NN
967 ac_prev=
968 continue
969 fi
79c06341 970
5213506e 971 case $ac_option in
22e05272
JM
972 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 *=) ac_optarg= ;;
974 *) ac_optarg=yes ;;
5213506e 975 esac
671aa708
NN
976
977 # Accept the important Cygnus configure options, so we can diagnose typos.
978
5213506e
RW
979 case $ac_dashdash$ac_option in
980 --)
981 ac_dashdash=yes ;;
671aa708
NN
982
983 -bindir | --bindir | --bindi | --bind | --bin | --bi)
984 ac_prev=bindir ;;
985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 986 bindir=$ac_optarg ;;
671aa708
NN
987
988 -build | --build | --buil | --bui | --bu)
1c710c3c 989 ac_prev=build_alias ;;
671aa708 990 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 991 build_alias=$ac_optarg ;;
671aa708
NN
992
993 -cache-file | --cache-file | --cache-fil | --cache-fi \
994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995 ac_prev=cache_file ;;
996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
998 cache_file=$ac_optarg ;;
999
1000 --config-cache | -C)
1001 cache_file=config.cache ;;
671aa708 1002
5213506e 1003 -datadir | --datadir | --datadi | --datad)
671aa708 1004 ac_prev=datadir ;;
5213506e 1005 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 1006 datadir=$ac_optarg ;;
671aa708 1007
5213506e
RW
1008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009 | --dataroo | --dataro | --datar)
1010 ac_prev=datarootdir ;;
1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013 datarootdir=$ac_optarg ;;
1014
671aa708 1015 -disable-* | --disable-*)
5213506e 1016 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 1017 # Reject names that are not valid shell variable names.
5213506e 1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1019 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024"enable_$ac_useropt"
1025"*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval enable_$ac_useropt=no ;;
1030
1031 -docdir | --docdir | --docdi | --doc | --do)
1032 ac_prev=docdir ;;
1033 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034 docdir=$ac_optarg ;;
1035
1036 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037 ac_prev=dvidir ;;
1038 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039 dvidir=$ac_optarg ;;
671aa708
NN
1040
1041 -enable-* | --enable-*)
5213506e 1042 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 1043 # Reject names that are not valid shell variable names.
5213506e 1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1045 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1049 *"
1050"enable_$ac_useropt"
1051"*) ;;
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
2aeb72e9 1054 esac
5213506e 1055 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1056
1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059 | --exec | --exe | --ex)
1060 ac_prev=exec_prefix ;;
1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063 | --exec=* | --exe=* | --ex=*)
1c710c3c 1064 exec_prefix=$ac_optarg ;;
671aa708
NN
1065
1066 -gas | --gas | --ga | --g)
1067 # Obsolete; use --with-gas.
1068 with_gas=yes ;;
1069
1c710c3c
DJ
1070 -help | --help | --hel | --he | -h)
1071 ac_init_help=long ;;
1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073 ac_init_help=recursive ;;
1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075 ac_init_help=short ;;
671aa708
NN
1076
1077 -host | --host | --hos | --ho)
1c710c3c 1078 ac_prev=host_alias ;;
671aa708 1079 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1080 host_alias=$ac_optarg ;;
671aa708 1081
5213506e
RW
1082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083 ac_prev=htmldir ;;
1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085 | --ht=*)
1086 htmldir=$ac_optarg ;;
1087
671aa708
NN
1088 -includedir | --includedir | --includedi | --included | --include \
1089 | --includ | --inclu | --incl | --inc)
1090 ac_prev=includedir ;;
1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1093 includedir=$ac_optarg ;;
671aa708
NN
1094
1095 -infodir | --infodir | --infodi | --infod | --info | --inf)
1096 ac_prev=infodir ;;
1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1098 infodir=$ac_optarg ;;
671aa708
NN
1099
1100 -libdir | --libdir | --libdi | --libd)
1101 ac_prev=libdir ;;
1102 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1103 libdir=$ac_optarg ;;
671aa708
NN
1104
1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106 | --libexe | --libex | --libe)
1107 ac_prev=libexecdir ;;
1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1110 libexecdir=$ac_optarg ;;
671aa708 1111
5213506e
RW
1112 -localedir | --localedir | --localedi | --localed | --locale)
1113 ac_prev=localedir ;;
1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115 localedir=$ac_optarg ;;
1116
671aa708 1117 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1118 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1119 ac_prev=localstatedir ;;
1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1122 localstatedir=$ac_optarg ;;
671aa708
NN
1123
1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125 ac_prev=mandir ;;
1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1127 mandir=$ac_optarg ;;
671aa708
NN
1128
1129 -nfp | --nfp | --nf)
1130 # Obsolete; use --without-fp.
1131 with_fp=no ;;
1132
1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1134 | --no-cr | --no-c | -n)
671aa708
NN
1135 no_create=yes ;;
1136
1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139 no_recursion=yes ;;
1140
1141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143 | --oldin | --oldi | --old | --ol | --o)
1144 ac_prev=oldincludedir ;;
1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1148 oldincludedir=$ac_optarg ;;
671aa708
NN
1149
1150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151 ac_prev=prefix ;;
1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1153 prefix=$ac_optarg ;;
671aa708
NN
1154
1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156 | --program-pre | --program-pr | --program-p)
1157 ac_prev=program_prefix ;;
1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1160 program_prefix=$ac_optarg ;;
671aa708
NN
1161
1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163 | --program-suf | --program-su | --program-s)
1164 ac_prev=program_suffix ;;
1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1167 program_suffix=$ac_optarg ;;
671aa708
NN
1168
1169 -program-transform-name | --program-transform-name \
1170 | --program-transform-nam | --program-transform-na \
1171 | --program-transform-n | --program-transform- \
1172 | --program-transform | --program-transfor \
1173 | --program-transfo | --program-transf \
1174 | --program-trans | --program-tran \
1175 | --progr-tra | --program-tr | --program-t)
1176 ac_prev=program_transform_name ;;
1177 -program-transform-name=* | --program-transform-name=* \
1178 | --program-transform-nam=* | --program-transform-na=* \
1179 | --program-transform-n=* | --program-transform-=* \
1180 | --program-transform=* | --program-transfor=* \
1181 | --program-transfo=* | --program-transf=* \
1182 | --program-trans=* | --program-tran=* \
1183 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1184 program_transform_name=$ac_optarg ;;
671aa708 1185
5213506e
RW
1186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187 ac_prev=pdfdir ;;
1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189 pdfdir=$ac_optarg ;;
1190
1191 -psdir | --psdir | --psdi | --psd | --ps)
1192 ac_prev=psdir ;;
1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194 psdir=$ac_optarg ;;
1195
671aa708
NN
1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197 | -silent | --silent | --silen | --sile | --sil)
1198 silent=yes ;;
1199
1200 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1201 ac_prev=sbindir ;;
1202 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1203 | --sbi=* | --sb=*)
1c710c3c 1204 sbindir=$ac_optarg ;;
671aa708
NN
1205
1206 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1207 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1208 | --sharedst | --shareds | --shared | --share | --shar \
1209 | --sha | --sh)
1210 ac_prev=sharedstatedir ;;
1211 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1212 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1213 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1214 | --sha=* | --sh=*)
1c710c3c 1215 sharedstatedir=$ac_optarg ;;
671aa708
NN
1216
1217 -site | --site | --sit)
1218 ac_prev=site ;;
1219 -site=* | --site=* | --sit=*)
1c710c3c 1220 site=$ac_optarg ;;
671aa708
NN
1221
1222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1223 ac_prev=srcdir ;;
1224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1225 srcdir=$ac_optarg ;;
671aa708
NN
1226
1227 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1228 | --syscon | --sysco | --sysc | --sys | --sy)
1229 ac_prev=sysconfdir ;;
1230 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1231 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1232 sysconfdir=$ac_optarg ;;
671aa708
NN
1233
1234 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1235 ac_prev=target_alias ;;
671aa708 1236 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1237 target_alias=$ac_optarg ;;
671aa708
NN
1238
1239 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1240 verbose=yes ;;
1241
1c710c3c
DJ
1242 -version | --version | --versio | --versi | --vers | -V)
1243 ac_init_version=: ;;
671aa708
NN
1244
1245 -with-* | --with-*)
5213506e 1246 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1247 # Reject names that are not valid shell variable names.
5213506e 1248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1249 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1250 ac_useropt_orig=$ac_useropt
1251 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252 case $ac_user_opts in
1253 *"
1254"with_$ac_useropt"
1255"*) ;;
1256 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1257 ac_unrecognized_sep=', ';;
2aeb72e9 1258 esac
5213506e 1259 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1260
1261 -without-* | --without-*)
5213506e 1262 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1263 # Reject names that are not valid shell variable names.
5213506e 1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1265 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1266 ac_useropt_orig=$ac_useropt
1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1269 *"
1270"with_$ac_useropt"
1271"*) ;;
1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1273 ac_unrecognized_sep=', ';;
1274 esac
1275 eval with_$ac_useropt=no ;;
671aa708
NN
1276
1277 --x)
1278 # Obsolete; use --with-x.
1279 with_x=yes ;;
1280
1281 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1282 | --x-incl | --x-inc | --x-in | --x-i)
1283 ac_prev=x_includes ;;
1284 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1285 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1286 x_includes=$ac_optarg ;;
671aa708
NN
1287
1288 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1289 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1290 ac_prev=x_libraries ;;
1291 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1292 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1293 x_libraries=$ac_optarg ;;
671aa708 1294
22e05272
JM
1295 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1296Try \`$0 --help' for more information"
671aa708
NN
1297 ;;
1298
1c710c3c
DJ
1299 *=*)
1300 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1301 # Reject names that are not valid shell variable names.
5213506e
RW
1302 case $ac_envvar in #(
1303 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1304 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1305 esac
1306 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1307 export $ac_envvar ;;
1308
671aa708 1309 *)
1c710c3c 1310 # FIXME: should be removed in autoconf 3.0.
5213506e 1311 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1312 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1313 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1314 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
671aa708
NN
1315 ;;
1316
1317 esac
1318done
1319
1320if test -n "$ac_prev"; then
1c710c3c 1321 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1322 as_fn_error $? "missing argument to $ac_option"
af71363e 1323fi
af71363e 1324
5213506e
RW
1325if test -n "$ac_unrecognized_opts"; then
1326 case $enable_option_checking in
1327 no) ;;
22e05272 1328 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1329 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1330 esac
5213506e 1331fi
2aeb72e9 1332
5213506e
RW
1333# Check all directory arguments for consistency.
1334for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335 datadir sysconfdir sharedstatedir localstatedir includedir \
1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337 libdir localedir mandir
2aeb72e9 1338do
5213506e
RW
1339 eval ac_val=\$$ac_var
1340 # Remove trailing slashes.
1341 case $ac_val in
1342 */ )
1343 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1344 eval $ac_var=\$ac_val;;
1345 esac
1346 # Be sure to have absolute directory names.
2aeb72e9 1347 case $ac_val in
5213506e
RW
1348 [\\/$]* | ?:[\\/]* ) continue;;
1349 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1350 esac
22e05272 1351 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1352done
1353
1c710c3c
DJ
1354# There might be people who depend on the old broken behavior: `$host'
1355# used to hold the argument of --host etc.
1356# FIXME: To remove some day.
1357build=$build_alias
1358host=$host_alias
1359target=$target_alias
0b0dc272 1360
1c710c3c
DJ
1361# FIXME: To remove some day.
1362if test "x$host_alias" != x; then
1363 if test "x$build_alias" = x; then
1364 cross_compiling=maybe
1c710c3c
DJ
1365 elif test "x$build_alias" != "x$host_alias"; then
1366 cross_compiling=yes
1367 fi
1368fi
1369
1370ac_tool_prefix=
1371test -n "$host_alias" && ac_tool_prefix=$host_alias-
1372
1373test "$silent" = yes && exec 6>/dev/null
671aa708 1374
671aa708 1375
5213506e
RW
1376ac_pwd=`pwd` && test -n "$ac_pwd" &&
1377ac_ls_di=`ls -di .` &&
1378ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1379 as_fn_error $? "working directory cannot be determined"
5213506e 1380test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1381 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1382
1383
671aa708
NN
1384# Find the source files, if location was not specified.
1385if test -z "$srcdir"; then
1386 ac_srcdir_defaulted=yes
5213506e
RW
1387 # Try the directory containing this script, then the parent directory.
1388 ac_confdir=`$as_dirname -- "$as_myself" ||
1389$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390 X"$as_myself" : 'X\(//\)[^/]' \| \
1391 X"$as_myself" : 'X\(//\)$' \| \
1392 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1393$as_echo X"$as_myself" |
1394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\/\)[^/].*/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\/\)$/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\).*/{
1407 s//\1/
1408 q
1409 }
1410 s/.*/./; q'`
671aa708 1411 srcdir=$ac_confdir
5213506e 1412 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1413 srcdir=..
1414 fi
1415else
1416 ac_srcdir_defaulted=no
1417fi
5213506e
RW
1418if test ! -r "$srcdir/$ac_unique_file"; then
1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1420 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1421fi
1422ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1423ac_abs_confdir=`(
22e05272 1424 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1425 pwd)`
1426# When building in place, set srcdir=.
1427if test "$ac_abs_confdir" = "$ac_pwd"; then
1428 srcdir=.
1429fi
1430# Remove unnecessary trailing slashes from srcdir.
1431# Double slashes in file names in object file debugging info
1432# mess up M-x gdb in Emacs.
1433case $srcdir in
1434*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435esac
87841584
AM
1436case $srcdir in
1437 *" "*)
22e05272 1438 as_fn_error $? "path to source, $srcdir, contains spaces"
87841584
AM
1439 ;;
1440esac
ac9e6043
RW
1441ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1442
5213506e
RW
1443for ac_var in $ac_precious_vars; do
1444 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_env_${ac_var}_value=\$${ac_var}
1446 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1448done
1c710c3c
DJ
1449
1450#
1451# Report the --help message.
1452#
1453if test "$ac_init_help" = "long"; then
1454 # Omit some internal or obsolete options to make the list less imposing.
1455 # This message is too long to be a string in the A/UX 3.1 sh.
1456 cat <<_ACEOF
1457\`configure' configures this package to adapt to many kinds of systems.
1458
1459Usage: $0 [OPTION]... [VAR=VALUE]...
1460
1461To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462VAR=VALUE. See below for descriptions of some of the useful variables.
1463
1464Defaults for the options are specified in brackets.
1465
1466Configuration:
1467 -h, --help display this help and exit
1468 --help=short display options specific to this package
1469 --help=recursive display the short help of all the included packages
1470 -V, --version display version information and exit
22e05272 1471 -q, --quiet, --silent do not print \`checking ...' messages
1c710c3c
DJ
1472 --cache-file=FILE cache test results in FILE [disabled]
1473 -C, --config-cache alias for \`--cache-file=config.cache'
1474 -n, --no-create do not create output files
1475 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1476
1c710c3c
DJ
1477Installation directories:
1478 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1479 [$ac_default_prefix]
1c710c3c 1480 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1481 [PREFIX]
1c710c3c
DJ
1482
1483By default, \`make install' will install all the files in
1484\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1485an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1486for instance \`--prefix=\$HOME'.
1487
1488For better control, use the options below.
1489
1490Fine tuning of the installation directories:
5213506e
RW
1491 --bindir=DIR user executables [EPREFIX/bin]
1492 --sbindir=DIR system admin executables [EPREFIX/sbin]
1493 --libexecdir=DIR program executables [EPREFIX/libexec]
1494 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1495 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1496 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1497 --libdir=DIR object code libraries [EPREFIX/lib]
1498 --includedir=DIR C header files [PREFIX/include]
1499 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1500 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1501 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1502 --infodir=DIR info documentation [DATAROOTDIR/info]
1503 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1504 --mandir=DIR man documentation [DATAROOTDIR/man]
1505 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1506 --htmldir=DIR html documentation [DOCDIR]
1507 --dvidir=DIR dvi documentation [DOCDIR]
1508 --pdfdir=DIR pdf documentation [DOCDIR]
1509 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1510_ACEOF
1511
1512 cat <<\_ACEOF
1513
1514Program names:
1515 --program-prefix=PREFIX prepend PREFIX to installed program names
1516 --program-suffix=SUFFIX append SUFFIX to installed program names
1517 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1518
1519System types:
1520 --build=BUILD configure for building on BUILD [guessed]
1521 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1522 --target=TARGET configure for building compilers for TARGET [HOST]
1523_ACEOF
1524fi
1525
1526if test -n "$ac_init_help"; then
1527
1528 cat <<\_ACEOF
1529
1530Optional Features:
5213506e 1531 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1534 --enable-as-accelerator-for=ARG
1535 build as offload target compiler. Specify offload
1536 host triple by ARG
1537 --enable-offload-targets=LIST
1538 enable offloading to devices from comma-separated
1539 LIST of TARGET[=DIR]. Use optional path to find
1540 offload target compiler during the build
fe5bfa67
TB
1541 --enable-offload-defaulted
1542 If enabled, configured but not installed offload compilers and
1543 libgomp plugins are silently ignored. Useful for distribution
1544 compilers where those are in separate optional packages.
1545
21539e2e 1546 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1547 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
24552056 1548 --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
324402a0 1549 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1550 Enable compressed debug sections for gas, gold or ld
1551 by default
c9884636
ML
1552 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1553 Default compression algorithm for
1554 --enable-compressed-debug-sections.
87e6d9dc
TB
1555 --disable-libquadmath do not build libquadmath directory
1556 --disable-libquadmath-support
1557 disable libquadmath support for Fortran
30b74385 1558 --enable-libada build libada directory
1eee94d3 1559 --enable-libgm2 build libgm2 directory
30b74385 1560 --enable-libssp build libssp directory
1873ec0c 1561 --disable-libstdcxx do not build libstdc++-v3 directory
ff3ac0f4 1562 --enable-bootstrap enable bootstrapping [yes if native build]
4a5e71f2
L
1563 --enable-pgo-build[=lto]
1564 enable the PGO build
33ad93b9 1565 --disable-isl-version-check
560d18d3 1566 disable check for isl version
d7f09764 1567 --enable-lto enable link time optimization support
45b3824d
TS
1568 --enable-linker-plugin-configure-flags=FLAGS
1569 additional flags for configuring linker plugins
1570 [none]
1571 --enable-linker-plugin-flags=FLAGS
1572 additional flags for configuring and building linker
1573 plugins [none]
b6cb10af 1574 --enable-host-pie build position independent host executables
cdfee50a 1575 --enable-host-shared build host code as shared libraries
33e39b66
AS
1576 --enable-stage1-languages[=all]
1577 choose additional languages to build during stage1.
1578 Mostly useful for compiler development
43c40f3e
RO
1579 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1580 Objective-C runtime
318a4e6d 1581 --enable-vtable-verify Enable vtable verification feature
30b74385 1582 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1583 force sequential configuration of sub-packages for
1584 the host, target or build machine, or all
1585 sub-packages
1586 --enable-maintainer-mode
1587 enable make rules and dependencies not useful (and
1588 sometimes confusing) to the casual installer
1589 --enable-stage1-checking[=all]
1590 choose additional checking for stage1 of the
1591 compiler
1c710c3c
DJ
1592 --enable-werror enable -Werror in bootstrap stage2 and later
1593
1594Optional Packages:
1595 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1596 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1597 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1598 --with-system-zlib use installed libz
407a2c9a
FS
1599 --with-zstd Support zstd compressed debug sections
1600 (default=auto)
33e39b66
AS
1601 --with-mpc=PATH specify prefix directory for installed MPC package.
1602 Equivalent to --with-mpc-include=PATH/include plus
1603 --with-mpc-lib=PATH/lib
1604 --with-mpc-include=PATH specify directory for installed MPC include files
1605 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385 1606 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1607 Equivalent to --with-mpfr-include=PATH/include plus
1608 --with-mpfr-lib=PATH/lib
1c710c3c 1609 --with-mpfr-include=PATH
30b74385
RW
1610 specify directory for installed MPFR include files
1611 --with-mpfr-lib=PATH specify directory for the installed MPFR library
33e39b66
AS
1612 --with-gmp=PATH specify prefix directory for the installed GMP
1613 package. Equivalent to
1614 --with-gmp-include=PATH/include plus
1615 --with-gmp-lib=PATH/lib
30b74385
RW
1616 --with-gmp-include=PATH specify directory for installed GMP include files
1617 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1618 --with-stage1-libs=LIBS libraries for stage1
aac9103b
TT
1619 --with-static-standard-libraries
1620 use -static-libstdc++ and -static-libgcc
1621 (default=auto)
33e39b66
AS
1622 --with-stage1-ldflags=FLAGS
1623 linker flags for stage1
33e39b66
AS
1624 --with-boot-libs=LIBS libraries for stage2 and later
1625 --with-boot-ldflags=FLAGS
1626 linker flags for stage2 and later
e357a5e0 1627 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1628 package. Equivalent to
33ad93b9
RG
1629 --with-isl-include=PATH/include plus
1630 --with-isl-lib=PATH/lib
560d18d3
AK
1631 --with-isl-include=PATH Specify directory for installed isl include files
1632 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1633 --with-target-bdw-gc=PATHLIST
1634 specify prefix directory for installed bdw-gc
1635 package. Equivalent to
1636 --with-target-bdw-gc-include=PATH/include plus
1637 --with-target-bdw-gc-lib=PATH/lib
1638 --with-target-bdw-gc-include=PATHLIST
1639 specify directories for installed bdw-gc include
1640 files
1641 --with-target-bdw-gc-lib=PATHLIST
1642 specify directories for installed bdw-gc library
3c36aa6b
JJ
1643 --with-gcc-major-version-only
1644 use only GCC major number in filesystem paths
30b74385 1645 --with-build-sysroot=SYSROOT
1c710c3c 1646 use sysroot as the system root during the build
c8aea42c 1647 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1648 map A to B, C to D ... in debug information
1649 --with-build-config='NAME NAME2...'
1650 use config/NAME.mk build configuration
30b74385 1651 --with-build-time-tools=PATH
1c710c3c 1652 use given path to find target tools during the build
1c710c3c
DJ
1653
1654Some influential environment variables:
1655 CC C compiler command
1656 CFLAGS C compiler flags
1657 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1658 nonstandard directory <lib dir>
5213506e 1659 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1660 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1661 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1662 CXX C++ compiler command
1663 CXXFLAGS C++ compiler flags
ffedf511
RW
1664 build_configargs
1665 additional configure arguments for build directories
1666 host_configargs
1667 additional configure arguments for host directories
1668 target_configargs
1669 additional configure arguments for target directories
278a7a38
AO
1670 AR AR for the host
1671 AS AS for the host
1672 DLLTOOL DLLTOOL for the host
3b5e8ee4 1673 DSYMUTIL DSYMUTIL for the host
278a7a38
AO
1674 LD LD for the host
1675 LIPO LIPO for the host
1676 NM NM for the host
1677 RANLIB RANLIB for the host
1678 STRIP STRIP for the host
1679 WINDRES WINDRES for the host
901119ae 1680 WINDMC WINDMC for the host
278a7a38
AO
1681 OBJCOPY OBJCOPY for the host
1682 OBJDUMP OBJDUMP for the host
e4a9a572 1683 OTOOL OTOOL for the host
e7a82751 1684 READELF READELF for the host
278a7a38
AO
1685 CC_FOR_TARGET
1686 CC for the target
1687 CXX_FOR_TARGET
1688 CXX for the target
1689 GCC_FOR_TARGET
1690 GCC for the target
278a7a38
AO
1691 GFORTRAN_FOR_TARGET
1692 GFORTRAN for the target
632e2a07
ILT
1693 GOC_FOR_TARGET
1694 GOC for the target
b4c522fa
IB
1695 GDC_FOR_TARGET
1696 GDC for the target
1eee94d3
GM
1697 GM2_FOR_TARGET
1698 GM2 for the target
278a7a38
AO
1699 AR_FOR_TARGET
1700 AR for the target
1701 AS_FOR_TARGET
1702 AS for the target
1703 DLLTOOL_FOR_TARGET
1704 DLLTOOL for the target
3b5e8ee4
IS
1705 DSYMUTIL_FOR_TARGET
1706 DSYMUTIL for the target
278a7a38
AO
1707 LD_FOR_TARGET
1708 LD for the target
1709 LIPO_FOR_TARGET
1710 LIPO for the target
1711 NM_FOR_TARGET
1712 NM for the target
9bccfdf5
AP
1713 OBJCOPY_FOR_TARGET
1714 OBJCOPY for the target
278a7a38
AO
1715 OBJDUMP_FOR_TARGET
1716 OBJDUMP for the target
e4a9a572
IS
1717 OTOOL_FOR_TARGET
1718 OTOOL for the target
278a7a38
AO
1719 RANLIB_FOR_TARGET
1720 RANLIB for the target
e7a82751
RM
1721 READELF_FOR_TARGET
1722 READELF for the target
278a7a38
AO
1723 STRIP_FOR_TARGET
1724 STRIP for the target
1725 WINDRES_FOR_TARGET
1726 WINDRES for the target
901119ae
KT
1727 WINDMC_FOR_TARGET
1728 WINDMC for the target
1c710c3c
DJ
1729
1730Use these variables to override the choices made by `configure' or to help
1731it to find libraries and programs with nonstandard names/locations.
1732
5213506e 1733Report bugs to the package provider.
1c710c3c 1734_ACEOF
5213506e 1735ac_status=$?
1c710c3c
DJ
1736fi
1737
1738if test "$ac_init_help" = "recursive"; then
1739 # If there are subdirs, report their specific --help.
1c710c3c 1740 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1741 test -d "$ac_dir" ||
1742 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1743 continue
1c710c3c
DJ
1744 ac_builddir=.
1745
5213506e
RW
1746case "$ac_dir" in
1747.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1748*)
1749 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1750 # A ".." for each directory in $ac_dir_suffix.
1751 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1752 case $ac_top_builddir_sub in
1753 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1754 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1755 esac ;;
1756esac
1757ac_abs_top_builddir=$ac_pwd
1758ac_abs_builddir=$ac_pwd$ac_dir_suffix
1759# for backward compatibility:
1760ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1761
1762case $srcdir in
5213506e 1763 .) # We are building in place.
1c710c3c 1764 ac_srcdir=.
5213506e
RW
1765 ac_top_srcdir=$ac_top_builddir_sub
1766 ac_abs_top_srcdir=$ac_pwd ;;
1767 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1768 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1769 ac_top_srcdir=$srcdir
1770 ac_abs_top_srcdir=$srcdir ;;
1771 *) # Relative name.
1772 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1773 ac_top_srcdir=$ac_top_build_prefix$srcdir
1774 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1775esac
5213506e
RW
1776ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1777
1778 cd "$ac_dir" || { ac_status=$?; continue; }
1779 # Check for guested configure.
1780 if test -f "$ac_srcdir/configure.gnu"; then
1781 echo &&
1782 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1783 elif test -f "$ac_srcdir/configure"; then
1784 echo &&
1785 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1786 else
5213506e
RW
1787 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1788 fi || ac_status=$?
1789 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1790 done
1791fi
1792
5213506e 1793test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1794if $ac_init_version; then
1795 cat <<\_ACEOF
5213506e 1796configure
22e05272 1797generated by GNU Autoconf 2.69
1c710c3c 1798
22e05272 1799Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
1800This configure script is free software; the Free Software Foundation
1801gives unlimited permission to copy, distribute and modify it.
1802_ACEOF
5213506e 1803 exit
0b0dc272 1804fi
5213506e
RW
1805
1806## ------------------------ ##
1807## Autoconf initialization. ##
1808## ------------------------ ##
1809
1810# ac_fn_c_try_compile LINENO
1811# --------------------------
1812# Try to compile conftest.$ac_ext, and return whether this succeeded.
1813ac_fn_c_try_compile ()
1814{
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 rm -f conftest.$ac_objext
1817 if { { ac_try="$ac_compile"
1818case "(($ac_try" in
1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1821esac
1822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823$as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_compile") 2>conftest.err
1825 ac_status=$?
1826 if test -s conftest.err; then
1827 grep -v '^ *+' conftest.err >conftest.er1
1828 cat conftest.er1 >&5
1829 mv -f conftest.er1 conftest.err
1830 fi
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && {
1833 test -z "$ac_c_werror_flag" ||
1834 test ! -s conftest.err
1835 } && test -s conftest.$ac_objext; then :
1836 ac_retval=0
1837else
1838 $as_echo "$as_me: failed program was:" >&5
1839sed 's/^/| /' conftest.$ac_ext >&5
1840
1841 ac_retval=1
1842fi
22e05272
JM
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 as_fn_set_status $ac_retval
5213506e
RW
1845
1846} # ac_fn_c_try_compile
1847
1848# ac_fn_cxx_try_compile LINENO
1849# ----------------------------
1850# Try to compile conftest.$ac_ext, and return whether this succeeded.
1851ac_fn_cxx_try_compile ()
1852{
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 rm -f conftest.$ac_objext
1855 if { { ac_try="$ac_compile"
1856case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859esac
1860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861$as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_compile") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1868 fi
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } && {
1871 test -z "$ac_cxx_werror_flag" ||
1872 test ! -s conftest.err
1873 } && test -s conftest.$ac_objext; then :
1874 ac_retval=0
1875else
1876 $as_echo "$as_me: failed program was:" >&5
1877sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=1
1880fi
22e05272
JM
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status $ac_retval
5213506e
RW
1883
1884} # ac_fn_cxx_try_compile
1885
0b21f5d3
EB
1886# ac_fn_cxx_try_link LINENO
1887# -------------------------
1888# Try to link conftest.$ac_ext, and return whether this succeeded.
1889ac_fn_cxx_try_link ()
1890{
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 rm -f conftest.$ac_objext conftest$ac_exeext
1893 if { { ac_try="$ac_link"
1894case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897esac
1898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899$as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_link") 2>conftest.err
1901 ac_status=$?
1902 if test -s conftest.err; then
1903 grep -v '^ *+' conftest.err >conftest.er1
1904 cat conftest.er1 >&5
1905 mv -f conftest.er1 conftest.err
1906 fi
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } && {
1909 test -z "$ac_cxx_werror_flag" ||
1910 test ! -s conftest.err
1911 } && test -s conftest$ac_exeext && {
1912 test "$cross_compiling" = yes ||
22e05272 1913 test -x conftest$ac_exeext
0b21f5d3
EB
1914 }; then :
1915 ac_retval=0
1916else
1917 $as_echo "$as_me: failed program was:" >&5
1918sed 's/^/| /' conftest.$ac_ext >&5
1919
1920 ac_retval=1
1921fi
1922 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1923 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1924 # interfere with the next link command; also delete a directory that is
1925 # left behind by Apple's compiler. We do this before executing the actions.
1926 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928 as_fn_set_status $ac_retval
0b21f5d3
EB
1929
1930} # ac_fn_cxx_try_link
1931
5213506e
RW
1932# ac_fn_c_try_link LINENO
1933# -----------------------
1934# Try to link conftest.$ac_ext, and return whether this succeeded.
1935ac_fn_c_try_link ()
1936{
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 rm -f conftest.$ac_objext conftest$ac_exeext
1939 if { { ac_try="$ac_link"
1940case "(($ac_try" in
1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1943esac
1944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945$as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_link") 2>conftest.err
1947 ac_status=$?
1948 if test -s conftest.err; then
1949 grep -v '^ *+' conftest.err >conftest.er1
1950 cat conftest.er1 >&5
1951 mv -f conftest.er1 conftest.err
1952 fi
1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; } && {
1955 test -z "$ac_c_werror_flag" ||
1956 test ! -s conftest.err
1957 } && test -s conftest$ac_exeext && {
1958 test "$cross_compiling" = yes ||
22e05272 1959 test -x conftest$ac_exeext
5213506e
RW
1960 }; then :
1961 ac_retval=0
1962else
1963 $as_echo "$as_me: failed program was:" >&5
1964sed 's/^/| /' conftest.$ac_ext >&5
1965
1966 ac_retval=1
1967fi
1968 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1969 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1970 # interfere with the next link command; also delete a directory that is
1971 # left behind by Apple's compiler. We do this before executing the actions.
1972 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974 as_fn_set_status $ac_retval
5213506e
RW
1975
1976} # ac_fn_c_try_link
1977cat >config.log <<_ACEOF
1c710c3c
DJ
1978This file contains any messages produced by compilers while
1979running configure, to aid debugging if configure makes a mistake.
1980
1981It was created by $as_me, which was
22e05272 1982generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
1983
1984 $ $0 $@
1985
1986_ACEOF
5213506e 1987exec 5>>config.log
1c710c3c
DJ
1988{
1989cat <<_ASUNAME
1990## --------- ##
1991## Platform. ##
1992## --------- ##
1993
1994hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1995uname -m = `(uname -m) 2>/dev/null || echo unknown`
1996uname -r = `(uname -r) 2>/dev/null || echo unknown`
1997uname -s = `(uname -s) 2>/dev/null || echo unknown`
1998uname -v = `(uname -v) 2>/dev/null || echo unknown`
1999
2000/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2001/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2002
2003/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2004/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2005/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 2006/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
2007/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2008/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2009/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2010
2011_ASUNAME
2012
2013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014for as_dir in $PATH
2015do
2016 IFS=$as_save_IFS
2017 test -z "$as_dir" && as_dir=.
5213506e
RW
2018 $as_echo "PATH: $as_dir"
2019 done
2020IFS=$as_save_IFS
1c710c3c
DJ
2021
2022} >&5
2023
2024cat >&5 <<_ACEOF
2025
2026
2027## ----------- ##
2028## Core tests. ##
2029## ----------- ##
2030
2031_ACEOF
2032
2033
2034# Keep a trace of the command line.
2035# Strip out --no-create and --no-recursion so they do not pile up.
2036# Strip out --silent because we don't want to record it for future runs.
2037# Also quote any args containing shell meta-characters.
2038# Make two passes to allow for proper duplicate-argument suppression.
2039ac_configure_args=
2040ac_configure_args0=
2041ac_configure_args1=
1c710c3c
DJ
2042ac_must_keep_next=false
2043for ac_pass in 1 2
2044do
2045 for ac_arg
2046 do
2047 case $ac_arg in
2048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2050 | -silent | --silent | --silen | --sile | --sil)
2051 continue ;;
5213506e
RW
2052 *\'*)
2053 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2054 esac
2055 case $ac_pass in
5213506e 2056 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2057 2)
5213506e 2058 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2059 if test $ac_must_keep_next = true; then
2060 ac_must_keep_next=false # Got value, back to normal.
2061 else
2062 case $ac_arg in
2063 *=* | --config-cache | -C | -disable-* | --disable-* \
2064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2066 | -with-* | --with-* | -without-* | --without-* | --x)
2067 case "$ac_configure_args0 " in
2068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2069 esac
2070 ;;
2071 -* ) ac_must_keep_next=true ;;
2072 esac
2073 fi
5213506e 2074 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2075 ;;
2076 esac
2077 done
2078done
5213506e
RW
2079{ ac_configure_args0=; unset ac_configure_args0;}
2080{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2081
2082# When interrupted or exit'd, cleanup temporary files, and complete
2083# config.log. We remove comments because anyway the quotes in there
2084# would cause problems or look ugly.
5213506e
RW
2085# WARNING: Use '\'' to represent an apostrophe within the trap.
2086# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2087trap 'exit_status=$?
2088 # Save into config.log some information that might help in debugging.
2089 {
2090 echo
2091
22e05272 2092 $as_echo "## ---------------- ##
1c710c3c 2093## Cache variables. ##
22e05272 2094## ---------------- ##"
1c710c3c
DJ
2095 echo
2096 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2097(
2098 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2099 eval ac_val=\$$ac_var
2100 case $ac_val in #(
2101 *${as_nl}*)
2102 case $ac_var in #(
2103 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2104$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2105 esac
2106 case $ac_var in #(
2107 _ | IFS | as_nl) ;; #(
2108 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2109 *) { eval $ac_var=; unset $ac_var;} ;;
2110 esac ;;
2111 esac
2112 done
1c710c3c 2113 (set) 2>&1 |
5213506e
RW
2114 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2115 *${as_nl}ac_space=\ *)
1c710c3c 2116 sed -n \
5213506e
RW
2117 "s/'\''/'\''\\\\'\'''\''/g;
2118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2119 ;; #(
1c710c3c 2120 *)
5213506e 2121 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2122 ;;
5213506e
RW
2123 esac |
2124 sort
2125)
1c710c3c
DJ
2126 echo
2127
22e05272 2128 $as_echo "## ----------------- ##
1c710c3c 2129## Output variables. ##
22e05272 2130## ----------------- ##"
1c710c3c
DJ
2131 echo
2132 for ac_var in $ac_subst_vars
2133 do
5213506e
RW
2134 eval ac_val=\$$ac_var
2135 case $ac_val in
2136 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2137 esac
2138 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2139 done | sort
2140 echo
2141
2142 if test -n "$ac_subst_files"; then
22e05272 2143 $as_echo "## ------------------- ##
5213506e 2144## File substitutions. ##
22e05272 2145## ------------------- ##"
1c710c3c
DJ
2146 echo
2147 for ac_var in $ac_subst_files
2148 do
5213506e
RW
2149 eval ac_val=\$$ac_var
2150 case $ac_val in
2151 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2152 esac
2153 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2154 done | sort
2155 echo
2156 fi
2157
2158 if test -s confdefs.h; then
22e05272 2159 $as_echo "## ----------- ##
1c710c3c 2160## confdefs.h. ##
22e05272 2161## ----------- ##"
1c710c3c 2162 echo
5213506e 2163 cat confdefs.h
1c710c3c
DJ
2164 echo
2165 fi
2166 test "$ac_signal" != 0 &&
5213506e
RW
2167 $as_echo "$as_me: caught signal $ac_signal"
2168 $as_echo "$as_me: exit $exit_status"
1c710c3c 2169 } >&5
5213506e
RW
2170 rm -f core *.core core.conftest.* &&
2171 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2172 exit $exit_status
5213506e 2173' 0
1c710c3c 2174for ac_signal in 1 2 13 15; do
5213506e 2175 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2176done
2177ac_signal=0
2178
2179# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2180rm -f -r conftest* confdefs.h
2181
2182$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2183
2184# Predefined preprocessor variables.
2185
2186cat >>confdefs.h <<_ACEOF
2187#define PACKAGE_NAME "$PACKAGE_NAME"
2188_ACEOF
2189
1c710c3c
DJ
2190cat >>confdefs.h <<_ACEOF
2191#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2192_ACEOF
2193
1c710c3c
DJ
2194cat >>confdefs.h <<_ACEOF
2195#define PACKAGE_VERSION "$PACKAGE_VERSION"
2196_ACEOF
0b0dc272 2197
1c710c3c
DJ
2198cat >>confdefs.h <<_ACEOF
2199#define PACKAGE_STRING "$PACKAGE_STRING"
2200_ACEOF
2201
1c710c3c
DJ
2202cat >>confdefs.h <<_ACEOF
2203#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2204_ACEOF
2205
5213506e
RW
2206cat >>confdefs.h <<_ACEOF
2207#define PACKAGE_URL "$PACKAGE_URL"
2208_ACEOF
2209
1c710c3c
DJ
2210
2211# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2212# Prefer an explicitly selected file to automatically selected ones.
2213ac_site_file1=NONE
2214ac_site_file2=NONE
2215if test -n "$CONFIG_SITE"; then
22e05272
JM
2216 # We do not want a PATH search for config.site.
2217 case $CONFIG_SITE in #((
2218 -*) ac_site_file1=./$CONFIG_SITE;;
2219 */*) ac_site_file1=$CONFIG_SITE;;
2220 *) ac_site_file1=./$CONFIG_SITE;;
2221 esac
5213506e
RW
2222elif test "x$prefix" != xNONE; then
2223 ac_site_file1=$prefix/share/config.site
2224 ac_site_file2=$prefix/etc/config.site
2225else
2226 ac_site_file1=$ac_default_prefix/share/config.site
2227 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2228fi
5213506e
RW
2229for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2230do
2231 test "x$ac_site_file" = xNONE && continue
22e05272 2232 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2234$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2235 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2236 . "$ac_site_file" \
2237 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2239as_fn_error $? "failed to load site script $ac_site_file
2240See \`config.log' for more details" "$LINENO" 5; }
671aa708
NN
2241 fi
2242done
2243
2244if test -r "$cache_file"; then
22e05272
JM
2245 # Some versions of bash will fail to source /dev/null (special files
2246 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2247 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2249$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2250 case $cache_file in
5213506e
RW
2251 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2252 *) . "./$cache_file";;
1c710c3c
DJ
2253 esac
2254 fi
671aa708 2255else
5213506e
RW
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2257$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2258 >$cache_file
2259fi
2260
2261# Check that the precious variables saved in the cache have kept the same
2262# value.
2263ac_cache_corrupted=false
5213506e 2264for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2265 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2266 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2267 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2268 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2269 case $ac_old_set,$ac_new_set in
2270 set,)
5213506e
RW
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2272$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2273 ac_cache_corrupted=: ;;
2274 ,set)
5213506e
RW
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2276$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2277 ac_cache_corrupted=: ;;
2278 ,);;
2279 *)
2280 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2281 # differences in whitespace do not lead to failure.
2282 ac_old_val_w=`echo x $ac_old_val`
2283 ac_new_val_w=`echo x $ac_new_val`
2284 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2286$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2287 ac_cache_corrupted=:
2288 else
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2290$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2291 eval $ac_var=\$ac_old_val
2292 fi
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2294$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2296$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2297 fi;;
2298 esac
2299 # Pass precious variables to config.status.
2300 if test "$ac_new_set" = set; then
2301 case $ac_new_val in
5213506e 2302 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2303 *) ac_arg=$ac_var=$ac_new_val ;;
2304 esac
2305 case " $ac_configure_args " in
2306 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2307 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2308 esac
2309 fi
2310done
2311if $ac_cache_corrupted; then
5213506e
RW
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2315$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2316 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2317fi
5213506e
RW
2318## -------------------- ##
2319## Main body of script. ##
2320## -------------------- ##
671aa708 2321
2aeb72e9
DD
2322ac_ext=c
2323ac_cpp='$CPP $CPPFLAGS'
2324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2326ac_compiler_gnu=$ac_cv_c_compiler_gnu
2327
1c710c3c
DJ
2328
2329
2330
1c710c3c
DJ
2331
2332
0115d4a3 2333
1c710c3c 2334
ad33ff57
RW
2335progname=$0
2336# if PWD already has a value, it is probably wrong.
2337if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2338
2339# Export original configure arguments for use by sub-configures.
2340# Quote arguments with shell meta charatcers.
2341TOPLEVEL_CONFIGURE_ARGUMENTS=
2342set -- "$progname" "$@"
2343for ac_arg
2344do
2345 case "$ac_arg" in
2346 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2347 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2348 # if the argument is of the form -foo=baz, quote the baz part only
2349 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2350 *) ;;
2351 esac
2352 # Add the quoted argument to the list.
2353 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2354done
2355if test "$silent" = yes; then
2356 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2357fi
2358# Remove the initial space we just introduced and, as these will be
2359# expanded by make, quote '$'.
2360TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2361
1c710c3c
DJ
2362
2363# Find the build, host, and target systems.
671aa708 2364ac_aux_dir=
5213506e 2365for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2366 if test -f "$ac_dir/install-sh"; then
2367 ac_aux_dir=$ac_dir
2368 ac_install_sh="$ac_aux_dir/install-sh -c"
2369 break
2370 elif test -f "$ac_dir/install.sh"; then
2371 ac_aux_dir=$ac_dir
2372 ac_install_sh="$ac_aux_dir/install.sh -c"
2373 break
2374 elif test -f "$ac_dir/shtool"; then
2375 ac_aux_dir=$ac_dir
2376 ac_install_sh="$ac_aux_dir/shtool install -c"
2377 break
2378 fi
671aa708
NN
2379done
2380if test -z "$ac_aux_dir"; then
22e05272 2381 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2382fi
5213506e
RW
2383
2384# These three variables are undocumented and unsupported,
2385# and are intended to be withdrawn in a future Autoconf release.
2386# They can cause serious problems if a builder's source tree is in a directory
2387# whose full name contains unusual characters.
2388ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2389ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2390ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2391
671aa708 2392
1c710c3c 2393# Make sure we can run config.sub.
5213506e 2394$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2395 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2396
2397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2398$as_echo_n "checking build system type... " >&6; }
22e05272 2399if ${ac_cv_build+:} false; then :
5213506e
RW
2400 $as_echo_n "(cached) " >&6
2401else
2402 ac_build_alias=$build_alias
2403test "x$ac_build_alias" = x &&
2404 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2405test "x$ac_build_alias" = x &&
22e05272 2406 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2407ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2408 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2409
2410fi
2411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2412$as_echo "$ac_cv_build" >&6; }
2413case $ac_cv_build in
2414*-*-*) ;;
22e05272 2415*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2416esac
1c710c3c 2417build=$ac_cv_build
5213506e
RW
2418ac_save_IFS=$IFS; IFS='-'
2419set x $ac_cv_build
2420shift
2421build_cpu=$1
2422build_vendor=$2
2423shift; shift
2424# Remember, the first character of IFS is used to create $*,
2425# except with old shells:
2426build_os=$*
2427IFS=$ac_save_IFS
2428case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2429
671aa708 2430
1c710c3c
DJ
2431 case ${build_alias} in
2432 "") build_noncanonical=${build} ;;
2433 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2434esac
2435
2436
af71363e 2437
1c710c3c
DJ
2438 case ${host_alias} in
2439 "") host_noncanonical=${build_noncanonical} ;;
2440 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2441esac
2442
af71363e 2443
1c710c3c
DJ
2444
2445 case ${target_alias} in
2446 "") target_noncanonical=${host_noncanonical} ;;
2447 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2448esac
2449
af71363e 2450
1c710c3c
DJ
2451
2452
2453test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2454 test "$program_prefix$program_suffix$program_transform_name" = \
2455 NONENONEs,x,x, &&
1c710c3c 2456 program_transform_name=s,y,y,
af71363e 2457
5213506e
RW
2458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2459$as_echo_n "checking host system type... " >&6; }
22e05272 2460if ${ac_cv_host+:} false; then :
5213506e 2461 $as_echo_n "(cached) " >&6
af71363e 2462else
5213506e
RW
2463 if test "x$host_alias" = x; then
2464 ac_cv_host=$ac_cv_build
2465else
2466 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2467 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2468fi
1c710c3c 2469
af71363e 2470fi
5213506e
RW
2471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2472$as_echo "$ac_cv_host" >&6; }
2473case $ac_cv_host in
2474*-*-*) ;;
22e05272 2475*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2476esac
1c710c3c 2477host=$ac_cv_host
5213506e
RW
2478ac_save_IFS=$IFS; IFS='-'
2479set x $ac_cv_host
2480shift
2481host_cpu=$1
2482host_vendor=$2
2483shift; shift
2484# Remember, the first character of IFS is used to create $*,
2485# except with old shells:
2486host_os=$*
2487IFS=$ac_save_IFS
2488case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2489
2490
5213506e
RW
2491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2492$as_echo_n "checking target system type... " >&6; }
22e05272 2493if ${ac_cv_target+:} false; then :
5213506e 2494 $as_echo_n "(cached) " >&6
1c710c3c 2495else
5213506e
RW
2496 if test "x$target_alias" = x; then
2497 ac_cv_target=$ac_cv_host
2498else
2499 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2500 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2501fi
1c710c3c
DJ
2502
2503fi
5213506e
RW
2504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2505$as_echo "$ac_cv_target" >&6; }
2506case $ac_cv_target in
2507*-*-*) ;;
22e05272 2508*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2509esac
1c710c3c 2510target=$ac_cv_target
5213506e
RW
2511ac_save_IFS=$IFS; IFS='-'
2512set x $ac_cv_target
2513shift
2514target_cpu=$1
2515target_vendor=$2
2516shift; shift
2517# Remember, the first character of IFS is used to create $*,
2518# except with old shells:
2519target_os=$*
2520IFS=$ac_save_IFS
2521case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2522
2523
2524# The aliases save the names the user supplied, while $host etc.
2525# will get canonicalized.
2526test -n "$target_alias" &&
2527 test "$program_prefix$program_suffix$program_transform_name" = \
2528 NONENONEs,x,x, &&
2529 program_prefix=${target_alias}-
5213506e 2530
671aa708 2531test "$program_prefix" != NONE &&
5213506e 2532 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2533# Use a double $ so make ignores it.
2534test "$program_suffix" != NONE &&
5213506e
RW
2535 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2536# Double any \ or $.
1c710c3c 2537# By default was `s,x,x', remove it if useless.
5213506e
RW
2538ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2539program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2540
671aa708
NN
2541
2542
775956d0
NN
2543# Get 'install' or 'install-sh' and its variants.
2544# Find a good install program. We prefer a C program (faster),
2545# so one script is as good as another. But avoid the broken or
2546# incompatible versions:
2547# SysV /etc/install, /usr/sbin/install
2548# SunOS /usr/etc/install
2549# IRIX /sbin/install
2550# AIX /bin/install
1c710c3c 2551# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2552# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2553# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2554# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2555# OS/2's system install, which has a completely different semantic
775956d0 2556# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2557# Reject install programs that cannot install multiple files.
5213506e
RW
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2559$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2560if test -z "$INSTALL"; then
22e05272 2561if ${ac_cv_path_install+:} false; then :
5213506e 2562 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2563else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH
2566do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
5213506e
RW
2569 # Account for people who put trailing slashes in PATH elements.
2570case $as_dir/ in #((
2571 ./ | .// | /[cC]/* | \
1c710c3c 2572 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2573 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2574 /usr/ucb/* ) ;;
2575 *)
2576 # OSF1 and SCO ODT 3.0 have their own names for install.
2577 # Don't use installbsd from OSF since it installs stuff as root
2578 # by default.
2579 for ac_prog in ginstall scoinst install; do
2580 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2581 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 2582 if test $ac_prog = install &&
1c710c3c 2583 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2584 # AIX install. It has an incompatible calling convention.
2585 :
1c710c3c
DJ
2586 elif test $ac_prog = install &&
2587 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2588 # program-specific install script used by HP pwplus--don't use.
2589 :
775956d0 2590 else
38d24731
RW
2591 rm -rf conftest.one conftest.two conftest.dir
2592 echo one > conftest.one
2593 echo two > conftest.two
2594 mkdir conftest.dir
2595 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2596 test -s conftest.one && test -s conftest.two &&
2597 test -s conftest.dir/conftest.one &&
2598 test -s conftest.dir/conftest.two
2599 then
2600 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2601 break 3
2602 fi
775956d0
NN
2603 fi
2604 fi
2605 done
1c710c3c
DJ
2606 done
2607 ;;
2608esac
5213506e
RW
2609
2610 done
2611IFS=$as_save_IFS
1c710c3c 2612
38d24731 2613rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2614
2615fi
2616 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2617 INSTALL=$ac_cv_path_install
775956d0 2618 else
38d24731
RW
2619 # As a last resort, use the slow shell script. Don't cache a
2620 # value for INSTALL within a source directory, because that will
775956d0 2621 # break other packages using the cache if that directory is
38d24731 2622 # removed, or if the value is a relative name.
1c710c3c 2623 INSTALL=$ac_install_sh
775956d0
NN
2624 fi
2625fi
5213506e
RW
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2627$as_echo "$INSTALL" >&6; }
775956d0
NN
2628
2629# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2630# It thinks the first close brace ends the variable substitution.
2631test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2632
1c710c3c 2633test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2634
2635test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2636
5213506e
RW
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2638$as_echo_n "checking whether ln works... " >&6; }
22e05272 2639if ${acx_cv_prog_LN+:} false; then :
5213506e 2640 $as_echo_n "(cached) " >&6
ad6717df
PB
2641else
2642 rm -f conftestdata_t
2643echo >conftestdata_f
2644if ln conftestdata_f conftestdata_t 2>/dev/null
2645then
2646 acx_cv_prog_LN=ln
2647else
2648 acx_cv_prog_LN=no
2649fi
2650rm -f conftestdata_f conftestdata_t
2651
2652fi
2653if test $acx_cv_prog_LN = no; then
2654 LN="cp"
5213506e
RW
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2656$as_echo "no, using $LN" >&6; }
ad6717df
PB
2657else
2658 LN="$acx_cv_prog_LN"
5213506e
RW
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2660$as_echo "yes" >&6; }
ad6717df
PB
2661fi
2662
5213506e
RW
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2664$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2665LN_S=$as_ln_s
2666if test "$LN_S" = "ln -s"; then
5213506e
RW
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2668$as_echo "yes" >&6; }
fb0103e5 2669else
5213506e
RW
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2671$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2672fi
2673
87264276
PB
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2675$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 2676if ${ac_cv_path_SED+:} false; then :
87264276
PB
2677 $as_echo_n "(cached) " >&6
2678else
2679 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2680 for ac_i in 1 2 3 4 5 6 7; do
2681 ac_script="$ac_script$as_nl$ac_script"
2682 done
2683 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2684 { ac_script=; unset ac_script;}
2685 if test -z "$SED"; then
2686 ac_path_SED_found=false
2687 # Loop through the user's path and test for each of PROGNAME-LIST
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689for as_dir in $PATH
2690do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_prog in sed gsed; do
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 2696 as_fn_executable_p "$ac_path_SED" || continue
87264276
PB
2697# Check for GNU ac_path_SED and select it if it is found.
2698 # Check for GNU $ac_path_SED
2699case `"$ac_path_SED" --version 2>&1` in
2700*GNU*)
2701 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2702*)
2703 ac_count=0
2704 $as_echo_n 0123456789 >"conftest.in"
2705 while :
2706 do
2707 cat "conftest.in" "conftest.in" >"conftest.tmp"
2708 mv "conftest.tmp" "conftest.in"
2709 cp "conftest.in" "conftest.nl"
2710 $as_echo '' >> "conftest.nl"
2711 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2712 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2713 as_fn_arith $ac_count + 1 && ac_count=$as_val
2714 if test $ac_count -gt ${ac_path_SED_max-0}; then
2715 # Best one so far, save it but keep looking for a better one
2716 ac_cv_path_SED="$ac_path_SED"
2717 ac_path_SED_max=$ac_count
2718 fi
2719 # 10*(2^10) chars as input seems more than enough
2720 test $ac_count -gt 10 && break
2721 done
2722 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2723esac
2724
2725 $ac_path_SED_found && break 3
2726 done
2727 done
2728 done
2729IFS=$as_save_IFS
2730 if test -z "$ac_cv_path_SED"; then
22e05272 2731 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
87264276
PB
2732 fi
2733else
2734 ac_cv_path_SED=$SED
2735fi
2736
2737fi
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2739$as_echo "$ac_cv_path_SED" >&6; }
2740 SED="$ac_cv_path_SED"
2741 rm -f conftest.sed
2742
2743for ac_prog in gawk mawk nawk awk
2744do
2745 # Extract the first word of "$ac_prog", so it can be a program name with args.
2746set dummy $ac_prog; ac_word=$2
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2749if ${ac_cv_prog_AWK+:} false; then :
87264276
PB
2750 $as_echo_n "(cached) " >&6
2751else
2752 if test -n "$AWK"; then
2753 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2754else
2755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756for as_dir in $PATH
2757do
2758 IFS=$as_save_IFS
2759 test -z "$as_dir" && as_dir=.
2760 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87264276
PB
2762 ac_cv_prog_AWK="$ac_prog"
2763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 break 2
2765 fi
2766done
2767 done
2768IFS=$as_save_IFS
2769
2770fi
2771fi
2772AWK=$ac_cv_prog_AWK
2773if test -n "$AWK"; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2775$as_echo "$AWK" >&6; }
2776else
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778$as_echo "no" >&6; }
2779fi
2780
2781
2782 test -n "$AWK" && break
2783done
2784
775956d0 2785
ee6a22df
L
2786srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2787
2788# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2789# a relative path.
2790if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2791 INSTALL="${srcpwd}/install-sh -c"
2792fi
2793
671aa708
NN
2794# Set srcdir to "." if that's what it is.
2795# This is important for multilib support.
2796pwd=`${PWDCMD-pwd}`
671aa708
NN
2797if test "${pwd}" = "${srcpwd}" ; then
2798 srcdir=.
79c06341
JL
2799fi
2800
671aa708 2801topsrcdir=$srcpwd
5d4a5ee6 2802
671aa708 2803extra_host_args=
afabd8e6 2804
671aa708
NN
2805### To add a new directory to the tree, first choose whether it is a target
2806### or a host dependent tool. Then put it into the appropriate list
2807### (library or tools, host or target), doing a dependency sort.
79c06341 2808
1c710c3c 2809# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2810# configdirs, or target_configdirs; see the serialization section below.
79c06341 2811
1c710c3c
DJ
2812# Dependency sorting is only needed when *configuration* must be done in
2813# a particular order. In all cases a dependency should be specified in
671aa708 2814# the Makefile, whether or not it's implicitly specified here.
79c06341 2815
671aa708
NN
2816# Double entries in build_configdirs, configdirs, or target_configdirs may
2817# cause circular dependencies and break everything horribly.
79c06341 2818
23f6b2f9
PB
2819# these library is used by various programs built for the build
2820# environment
2821#
929315a9 2822build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2823
2824# these tools are built for the build environment
85bfb75e 2825build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2826
671aa708 2827# these libraries are used by various programs built for the host environment
eae1a5d4 2828#f
3de627ff 2829host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
671aa708 2830
671aa708
NN
2831# these tools are built for the host environment
2832# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2833# know that we are building the simulator.
2834# binutils, gas and ld appear in that order because it makes sense to run
2835# "make check" in that particular order.
38e3d868 2836# If --enable-gold is used, "gold" may replace "ld".
1eee94d3 2837host_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 2838
671aa708
NN
2839# these libraries are built for the target environment, and are built after
2840# the host libraries and the host tools (which may be a cross compiler)
8499116a 2841# Note that libiberty is not a target library.
291f172e 2842target_libraries="target-libgcc \
eff02e4f 2843 target-libbacktrace \
671aa708
NN
2844 target-libgloss \
2845 target-newlib \
6d3b5aea 2846 target-libgomp \
48310492 2847 target-libatomic \
0a35513e 2848 target-libitm \
cb543528 2849 target-libstdc++-v3 \
f35db108 2850 target-libsanitizer \
2077db1b 2851 target-libvtv \
77008252 2852 target-libssp \
1ec601bf 2853 target-libquadmath \
6de9cd9a 2854 target-libgfortran \
012447ea 2855 target-libffi \
d9cdb878 2856 target-libobjc \
632e2a07 2857 target-libada \
1eee94d3 2858 target-libgm2 \
b4c522fa 2859 target-libgo \
bb50312e
IB
2860 target-libphobos \
2861 target-zlib"
671aa708 2862
4dbda6f0
NN
2863# these tools are built using the target libraries, and are intended to
2864# run only in the target environment
671aa708 2865#
4dbda6f0 2866# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2867# list belongs in this list.
671aa708 2868#
85bfb75e 2869target_tools="target-rda"
79c06341 2870
671aa708 2871################################################################################
79c06341 2872
671aa708
NN
2873## All tools belong in one of the four categories, and are assigned above
2874## We assign ${configdirs} this way to remove all embedded newlines. This
2875## is important because configure will choke if they ever get through.
2876## ${configdirs} is directories we build using the host tools.
2877## ${target_configdirs} is directories we build using the target tools.
671aa708 2878configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2879target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2880build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2881
ac9e6043
RW
2882
2883
671aa708 2884################################################################################
79c06341 2885
671aa708 2886srcname="gnu development package"
79c06341 2887
671aa708
NN
2888# This gets set non-empty for some net releases of packages.
2889appdirs=""
79c06341 2890
671aa708
NN
2891# Define is_cross_compiler to save on calls to 'test'.
2892is_cross_compiler=
2893if test x"${host}" = x"${target}" ; then
2894 is_cross_compiler=no
79c06341 2895else
671aa708 2896 is_cross_compiler=yes
1c710c3c 2897fi
79c06341 2898
b4acb5ef 2899# Find the build and target subdir names.
8b87bb96 2900
2e9e6f68
DJ
2901# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2902# have matching libraries, they should use host libraries: Makefile.tpl
2903# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2904# However, they still use the build modules, because the corresponding
2905# host modules (e.g. bison) are only built for the host when bootstrap
2906# finishes. So:
2907# - build_subdir is where we find build modules, and never changes.
2908# - build_libsubdir is where we find build libraries, and can be overridden.
2909
2910# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2911build_subdir="build-${build_noncanonical}"
1c710c3c 2912
5213506e
RW
2913# Check whether --with-build-libsubdir was given.
2914if test "${with_build_libsubdir+set}" = set; then :
2915 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2916else
2917 build_libsubdir="$build_subdir"
5213506e
RW
2918fi
2919
215c351a
PB
2920# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2921if ( test $srcdir = . && test -d gcc ) \
2922 || test -d $srcdir/../host-${host_noncanonical}; then
2923 host_subdir="host-${host_noncanonical}"
2924else
2925 host_subdir=.
2926fi
8b87bb96
NN
2927# No prefix.
2928target_subdir=${target_noncanonical}
1c710c3c 2929
0db770bd
RW
2930# Be sure to cover against remnants of an in-tree build.
2931if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
22e05272 2932 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
0db770bd
RW
2933Use a pristine source tree when building in a separate tree" "$LINENO" 5
2934fi
79c06341 2935
671aa708
NN
2936# Skipdirs are removed silently.
2937skipdirs=
2938# Noconfigdirs are removed loudly.
2939noconfigdirs=""
79c06341 2940
671aa708
NN
2941use_gnu_ld=
2942# Make sure we don't let GNU ld be added if we didn't want it.
2943if test x$with_gnu_ld = xno ; then
2944 use_gnu_ld=no
5afab7ad 2945 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2946fi
2947
671aa708
NN
2948use_gnu_as=
2949# Make sure we don't let GNU as be added if we didn't want it.
2950if test x$with_gnu_as = xno ; then
2951 use_gnu_as=no
2952 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2953fi
2954
d7f09764 2955use_included_zlib=
a05c2c75
L
2956
2957# Check whether --with-system-zlib was given.
2958if test "${with_system_zlib+set}" = set; then :
2959 withval=$with_system_zlib;
2960fi
2961
d7f09764
DN
2962# Make sure we don't let ZLIB be added if we didn't want it.
2963if test x$with_system_zlib = xyes ; then
2964 use_included_zlib=no
2965 noconfigdirs="$noconfigdirs zlib"
2966fi
2967
36ba9851
ДП
2968# Don't compile the bundled readline/libreadline.a if --with-system-readline
2969# is provided.
2970if test x$with_system_readline = xyes ; then
2971 noconfigdirs="$noconfigdirs readline"
2972fi
2973
407a2c9a
FS
2974
2975# Check whether --with-zstd was given.
2976if test "${with_zstd+set}" = set; then :
2977 withval=$with_zstd;
2978fi
2979
2980
1c710c3c 2981# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2982# it's not even worth trying to configure, much less build, that tool.
79c06341 2983
671aa708
NN
2984case ${with_x} in
2985 yes | "") ;; # the default value for this tree is that X11 is available
2986 no)
b4f96efe 2987 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2988 # We won't be able to build gdbtk without X.
1c710c3c 2989 enable_gdbtk=no
671aa708
NN
2990 ;;
2991 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2992esac
79c06341 2993
1bcce263 2994# Some are only suitable for cross toolchains.
671aa708
NN
2995# Remove these if host=target.
2996cross_only="target-libgloss target-newlib target-opcodes"
2997
2998case $is_cross_compiler in
2999 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 3000esac
79c06341 3001
671aa708
NN
3002# If both --with-headers and --with-libs are specified, default to
3003# --without-newlib.
ee6a22df
L
3004if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3005 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
3006 if test x"${with_newlib}" = x ; then
3007 with_newlib=no
3008 fi
79c06341
JL
3009fi
3010
671aa708
NN
3011# Recognize --with-newlib/--without-newlib.
3012case ${with_newlib} in
3013 no) skipdirs="${skipdirs} target-newlib" ;;
3014 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3015esac
79c06341 3016
85c64bbe
BS
3017# Check whether --enable-as-accelerator-for was given.
3018if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 3019 enableval=$enable_as_accelerator_for;
85c64bbe
BS
3020fi
3021
3022
3023# Check whether --enable-offload-targets was given.
3024if test "${enable_offload_targets+set}" = set; then :
3025 enableval=$enable_offload_targets;
3026 if test x"$enable_offload_targets" = x; then
22e05272 3027 as_fn_error $? "no offload targets specified" "$LINENO" 5
85c64bbe
BS
3028 fi
3029
3030else
3031 enable_offload_targets=
3032fi
3033
3034
fe5bfa67
TB
3035# Check whether --enable-offload-defaulted was given.
3036if test "${enable_offload_defaulted+set}" = set; then :
3037 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3038else
3039 enable_offload_defaulted=
3040fi
3041
3042
21539e2e
MK
3043# Handle --enable-gold, --enable-ld.
3044# --disable-gold [--enable-ld]
3045# Build only ld. Default option.
9580395f
L
3046# --enable-gold [--enable-ld]
3047# Build both gold and ld. Install gold as "ld.gold", install ld
3048# as "ld.bfd" and "ld".
3049# --enable-gold=default [--enable-ld]
21539e2e
MK
3050# Build both gold and ld. Install gold as "ld.gold" and "ld",
3051# install ld as "ld.bfd".
3052# --enable-gold[=default] --disable-ld
3053# Build only gold, which is then installed as both "ld.gold" and "ld".
3054# --enable-gold --enable-ld=default
9580395f
L
3055# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3056# and ld.bfd).
21539e2e
MK
3057# In other words, ld is default
3058# --enable-gold=default --enable-ld=default
3059# Error.
3060
3061default_ld=
5213506e
RW
3062# Check whether --enable-gold was given.
3063if test "${enable_gold+set}" = set; then :
3064 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
3065else
3066 ENABLE_GOLD=no
5213506e
RW
3067fi
3068
21539e2e
MK
3069case "${ENABLE_GOLD}" in
3070 yes|default)
38e3d868
RM
3071 # Check for ELF target.
3072 is_elf=no
3073 case "${target}" in
3074 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 3075 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 3076 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 3077 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
3078 case "${target}" in
3079 *-*-linux*aout* | *-*-linux*oldld*)
3080 ;;
3081 *)
3082 is_elf=yes
3083 ;;
3084 esac
3085 esac
3086
3087 if test "$is_elf" = "yes"; then
3088 # Check for target supported by gold.
5afab7ad 3089 case "${target}" in
7705dfd1 3090 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
a885ec24 3091 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
21539e2e
MK
3092 configdirs="$configdirs gold"
3093 if test x${ENABLE_GOLD} = xdefault; then
3094 default_ld=gold
3095 fi
38e3d868 3096 ENABLE_GOLD=yes
5afab7ad
ILT
3097 ;;
3098 esac
38e3d868
RM
3099 fi
3100 ;;
3101 no)
3102 ;;
3103 *)
22e05272 3104 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
38e3d868 3105 ;;
21539e2e
MK
3106esac
3107
3108# Check whether --enable-ld was given.
3109if test "${enable_ld+set}" = set; then :
3110 enableval=$enable_ld; ENABLE_LD=$enableval
3111else
3112 ENABLE_LD=yes
3113fi
3114
3115
3116case "${ENABLE_LD}" in
3117 default)
9580395f 3118 if test x${default_ld} != x; then
22e05272 3119 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
21539e2e
MK
3120 fi
3121 ;;
3122 yes)
3123 ;;
3124 no)
3125 if test x${ENABLE_GOLD} != xyes; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3127$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3128 fi
3129 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3130 ;;
3131 *)
22e05272 3132 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
21539e2e
MK
3133 ;;
3134esac
5afab7ad 3135
24552056
VM
3136# Check whether --enable-gprofng was given.
3137if test "${enable_gprofng+set}" = set; then :
3138 enableval=$enable_gprofng; enable_gprofng=$enableval
3139else
3140 enable_gprofng=yes
3141fi
3142
3143if test "$enable_gprofng" = "yes"; then
3144 case "${target}" in
3145 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3146 configdirs="$configdirs gprofng"
3147 ;;
3148 esac
3149fi
3150
3151
78edb32f
L
3152# PR gas/19109
3153# Decide the default method for compressing debug sections.
3154# Provide a configure time option to override our default.
3155# Check whether --enable-compressed_debug_sections was given.
3156if test "${enable_compressed_debug_sections+set}" = set; then :
3157 enableval=$enable_compressed_debug_sections;
3158 if test x"$enable_compressed_debug_sections" = xyes; then
22e05272 3159 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
78edb32f
L
3160 fi
3161
3162else
3163 enable_compressed_debug_sections=
3164fi
3165
3166
c9884636
ML
3167# Select default compression algorithm.
3168# Check whether --enable-default_compressed_debug_sections_algorithm was given.
3169if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3170 enableval=$enable_default_compressed_debug_sections_algorithm;
3171else
3172 default_compressed_debug_sections_algorithm=
3173fi
3174
3175
671aa708 3176# Configure extra directories which are host specific
79c06341 3177
671aa708
NN
3178case "${host}" in
3179 *-cygwin*)
3180 configdirs="$configdirs libtermcap" ;;
3181esac
79c06341 3182
4fab7234
HPN
3183# A target can indicate whether a language isn't supported for some reason.
3184# Only spaces may be used in this macro; not newlines or tabs.
3185unsupported_languages=
3186
1c710c3c 3187# Remove more programs from consideration, based on the host or
671aa708
NN
3188# target this usually means that a port of the program doesn't
3189# exist yet.
ec8d6ddc 3190
671aa708 3191case "${host}" in
111eeb6e 3192 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3193 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3194 ;;
671aa708 3195esac
ec8d6ddc 3196
6de9cd9a 3197
87e6d9dc
TB
3198# Check whether --enable-libquadmath was given.
3199if test "${enable_libquadmath+set}" = set; then :
3200 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3201else
3202 ENABLE_LIBQUADMATH=yes
3203fi
3204
3205if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3206 noconfigdirs="$noconfigdirs target-libquadmath"
3207fi
3208
3209
3210# Check whether --enable-libquadmath-support was given.
3211if test "${enable_libquadmath_support+set}" = set; then :
3212 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3213else
3214 ENABLE_LIBQUADMATH_SUPPORT=yes
3215fi
3216
3217enable_libquadmath_support=
3218if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3219 enable_libquadmath_support=no
3220fi
3221
3222
5213506e
RW
3223# Check whether --enable-libada was given.
3224if test "${enable_libada+set}" = set; then :
3225 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3226else
3227 ENABLE_LIBADA=yes
5213506e
RW
3228fi
3229
d9cdb878 3230if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3231 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3232fi
3233
1eee94d3
GM
3234# Check whether --enable-libgm2 was given.
3235if test "${enable_libgm2+set}" = set; then :
3236 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3237else
3238 ENABLE_LIBGM2=no
3239fi
3240
3241if test "${ENABLE_LIBGM2}" != "yes" ; then
3242 noconfigdirs="$noconfigdirs gm2tools"
3243fi
3244
5213506e
RW
3245# Check whether --enable-libssp was given.
3246if test "${enable_libssp+set}" = set; then :
3247 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3248else
3249 ENABLE_LIBSSP=yes
5213506e
RW
3250fi
3251
ef0087a7 3252
1873ec0c
L
3253# Check whether --enable-libstdcxx was given.
3254if test "${enable_libstdcxx+set}" = set; then :
3255 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3256else
3257 ENABLE_LIBSTDCXX=default
3258fi
3259
3260if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3261 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3262fi
3263
44a7d18d 3264# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3265if test x$enable_libgomp = x ; then
953ff289 3266 case "${target}" in
416ac4d4 3267 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3268 ;;
8c6d158a 3269 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3270 ;;
b24513a1 3271 *-*-solaris2* | *-*-hpux11*)
953ff289 3272 ;;
cac90078 3273 *-*-darwin* | *-*-aix*)
953ff289 3274 ;;
29b1533a 3275 nvptx*-*-* | amdgcn*-*-*)
44a7d18d 3276 ;;
953ff289
DN
3277 *)
3278 noconfigdirs="$noconfigdirs target-libgomp"
3279 ;;
3280 esac
27079765 3281fi
953ff289 3282
48310492
RH
3283# Disable libatomic on unsupported systems.
3284if test -d ${srcdir}/libatomic; then
3285 if test x$enable_libatomic = x; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3287$as_echo_n "checking for libatomic support... " >&6; }
3288 if (srcdir=${srcdir}/libatomic; \
3289 . ${srcdir}/configure.tgt; \
3290 test -n "$UNSUPPORTED")
3291 then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293$as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libatomic"
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297$as_echo "yes" >&6; }
3298 fi
3299 fi
3300fi
3301
e948157d
RH
3302# Disable libitm on unsupported systems.
3303if test -d ${srcdir}/libitm; then
3304 if test x$enable_libitm = x; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3306$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3307 if (srcdir=${srcdir}/libitm; \
3308 . ${srcdir}/configure.tgt; \
3309 test -n "$UNSUPPORTED")
3310 then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3312$as_echo "no" >&6; }
e948157d
RH
3313 noconfigdirs="$noconfigdirs target-libitm"
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3316$as_echo "yes" >&6; }
e948157d
RH
3317 fi
3318 fi
0a35513e
AH
3319fi
3320
93bf5390
RH
3321# Disable libsanitizer on unsupported systems.
3322if test -d ${srcdir}/libsanitizer; then
3323 if test x$enable_libsanitizer = x; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3325$as_echo_n "checking for libsanitizer support... " >&6; }
3326 if (srcdir=${srcdir}/libsanitizer; \
3327 . ${srcdir}/configure.tgt; \
3328 test -n "$UNSUPPORTED")
3329 then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331$as_echo "no" >&6; }
3332 noconfigdirs="$noconfigdirs target-libsanitizer"
3333 else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3335$as_echo "yes" >&6; }
3336 fi
3337 fi
3338fi
3339
2077db1b
CT
3340# Disable libvtv on unsupported systems.
3341if test -d ${srcdir}/libvtv; then
3342 if test x$enable_libvtv = x; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3344$as_echo_n "checking for libvtv support... " >&6; }
3345 if (srcdir=${srcdir}/libvtv; \
3346 . ${srcdir}/configure.tgt; \
1e74b850 3347 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3348 then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350$as_echo "no" >&6; }
3351 noconfigdirs="$noconfigdirs target-libvtv"
3352 else
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3354$as_echo "yes" >&6; }
3355 fi
3356 fi
3357fi
3358
d91491e5
SE
3359# Disable libquadmath for some systems.
3360case "${target}" in
e7fae550
DE
3361 avr-*-*)
3362 noconfigdirs="$noconfigdirs target-libquadmath"
3363 ;;
d91491e5
SE
3364 # libquadmath is unused on AIX and libquadmath build process use of
3365 # LD_LIBRARY_PATH can break AIX bootstrap.
3366 powerpc-*-aix* | rs6000-*-aix*)
3367 noconfigdirs="$noconfigdirs target-libquadmath"
3368 ;;
3369esac
3370
1e9e0e23
JM
3371# Disable libssp for some systems.
3372case "${target}" in
3373 avr-*-*)
b318fb4b 3374 # No hosted I/O support.
1e9e0e23
JM
3375 noconfigdirs="$noconfigdirs target-libssp"
3376 ;;
91dfef96
JM
3377 bpf-*-*)
3378 noconfigdirs="$noconfigdirs target-libssp"
3379 ;;
1e9e0e23
JM
3380 powerpc-*-aix* | rs6000-*-aix*)
3381 noconfigdirs="$noconfigdirs target-libssp"
85b8555e 3382 ;;
8d2af3a2
DD
3383 pru-*-*)
3384 # No hosted I/O support.
3385 noconfigdirs="$noconfigdirs target-libssp"
3386 ;;
85b8555e 3387 rl78-*-*)
7cb62ef1
EB
3388 # libssp uses a misaligned load to trigger a fault, but the RL78
3389 # doesn't fault for those - instead, it gives a build-time error
3390 # for explicit misaligned loads.
85b8555e 3391 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3392 ;;
0969ec7d
EB
3393 visium-*-*)
3394 # No hosted I/O support.
3395 noconfigdirs="$noconfigdirs target-libssp"
3396 ;;
1e9e0e23
JM
3397esac
3398
1e9e0e23 3399# Disable libstdc++-v3 for some systems.
67a1cb2a 3400# Allow user to override this if they pass --enable-libstdcxx
1873ec0c
L
3401if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3402 case "${target}" in
3403 *-*-vxworks*)
3404 # VxWorks uses the Dinkumware C++ library.
3405 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3406 ;;
afa3d80e
TS
3407 amdgcn*-*-*)
3408 # Not ported/fails to build when using newlib.
3409 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3410 ;;
1873ec0c
L
3411 arm*-wince-pe*)
3412 # the C++ libraries don't build on top of CE's C libraries
3413 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3414 ;;
3415 avr-*-*)
3416 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3417 ;;
91dfef96
JM
3418 bpf-*-*)
3419 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3420 ;;
fef939d6
JB
3421 ft32-*-*)
3422 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3423 ;;
1873ec0c
L
3424 esac
3425fi
1e9e0e23 3426
91dfef96
JM
3427# Disable C++ on systems where it is known to not work.
3428# For testing, you can override this with --enable-languages=c++.
3429case ,${enable_languages}, in
3430 *,c++,*)
3431 ;;
3432 *)
3433 case "${target}" in
3434 bpf-*-*)
3435 unsupported_languages="$unsupported_languages c++"
3436 ;;
3437 esac
3438 ;;
3439esac
3440
3441# Disable Objc on systems where it is known to not work.
3442# For testing, you can override this with --enable-languages=objc.
3443case ,${enable_languages}, in
3444 *,objc,*)
3445 ;;
3446 *)
3447 case "${target}" in
3448 bpf-*-*)
3449 unsupported_languages="$unsupported_languages objc"
3450 ;;
3451 esac
3452 ;;
3453esac
3454
260eedb9
IB
3455# Disable D on systems where it is known to not work.
3456# For testing, you can override this with --enable-languages=d.
3457case ,${enable_languages}, in
3458 *,d,*)
3459 ;;
3460 *)
3461 case "${target}" in
91dfef96 3462 bpf-*-*)
260eedb9
IB
3463 unsupported_languages="$unsupported_languages d"
3464 ;;
3465 esac
3466 ;;
3467esac
3468
3469# Disable libphobos on unsupported systems.
3470# For testing, you can override this with --enable-libphobos.
3471if test -d ${srcdir}/libphobos; then
3472 if test x$enable_libphobos = x; then
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3474$as_echo_n "checking for libphobos support... " >&6; }
3475 if (srcdir=${srcdir}/libphobos; \
3476 . ${srcdir}/configure.tgt; \
7d31d331 3477 test "$LIBPHOBOS_SUPPORTED" != "yes")
260eedb9
IB
3478 then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480$as_echo "no" >&6; }
3481 noconfigdirs="$noconfigdirs target-libphobos"
3482 else
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3484$as_echo "yes" >&6; }
3485 fi
3486 fi
3487fi
3488
1e9e0e23
JM
3489# Disable Fortran for some systems.
3490case "${target}" in
3491 mmix-*-*)
3492 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3493 unsupported_languages="$unsupported_languages fortran"
3494 ;;
91dfef96
JM
3495 bpf-*-*)
3496 unsupported_languages="$unsupported_languages fortran"
3497 ;;
1e9e0e23
JM
3498esac
3499
012447ea
JJ
3500# Disable libffi for some systems.
3501case "${target}" in
3502 powerpc-*-darwin*)
3503 ;;
3504 i[3456789]86-*-darwin*)
3505 ;;
3506 x86_64-*-darwin[912]*)
3507 ;;
3508 *-*-darwin*)
3509 noconfigdirs="$noconfigdirs target-libffi"
3510 ;;
3511 *-*-netware*)
3512 noconfigdirs="$noconfigdirs target-libffi"
3513 ;;
3514 *-*-phoenix*)
3515 noconfigdirs="$noconfigdirs target-libffi"
3516 ;;
3517 *-*-rtems*)
3518 noconfigdirs="$noconfigdirs target-libffi"
3519 ;;
3520 *-*-tpf*)
3521 noconfigdirs="$noconfigdirs target-libffi"
3522 ;;
3523 *-*-uclinux*)
3524 noconfigdirs="$noconfigdirs target-libffi"
3525 ;;
3526 *-*-vxworks*)
3527 noconfigdirs="$noconfigdirs target-libffi"
3528 ;;
b20e7532
AT
3529 aarch64*-*-freebsd*)
3530 noconfigdirs="$noconfigdirs target-libffi"
3531 ;;
012447ea
JJ
3532 alpha*-*-*vms*)
3533 noconfigdirs="$noconfigdirs target-libffi"
3534 ;;
3535 arm*-*-freebsd*)
3536 noconfigdirs="$noconfigdirs target-libffi"
3537 ;;
3538 arm-wince-pe)
3539 noconfigdirs="$noconfigdirs target-libffi"
3540 ;;
3541 arm*-*-symbianelf*)
3542 noconfigdirs="$noconfigdirs target-libffi"
3543 ;;
91dfef96
JM
3544 bpf-*-*)
3545 noconfigdirs="$noconfigdirs target-libffi"
3546 ;;
012447ea
JJ
3547 cris-*-* | crisv32-*-*)
3548 case "${target}" in
3549 *-*-linux*)
3550 ;;
3551 *) # See PR46792 regarding target-libffi.
3552 noconfigdirs="$noconfigdirs target-libffi";;
3553 esac
3554 ;;
3555 hppa*64*-*-hpux*)
3556 noconfigdirs="$noconfigdirs target-libffi"
3557 ;;
012447ea
JJ
3558 ia64*-*-*vms*)
3559 noconfigdirs="$noconfigdirs target-libffi"
3560 ;;
3561 i[3456789]86-w64-mingw*)
3562 noconfigdirs="$noconfigdirs target-libffi"
3563 ;;
3564 i[3456789]86-*-mingw*)
3565 noconfigdirs="$noconfigdirs target-libffi"
3566 ;;
3567 x86_64-*-mingw*)
3568 noconfigdirs="$noconfigdirs target-libffi"
3569 ;;
3570 mmix-*-*)
3571 noconfigdirs="$noconfigdirs target-libffi"
3572 ;;
3573 powerpc-*-aix*)
012447ea
JJ
3574 ;;
3575 rs6000-*-aix*)
012447ea
JJ
3576 ;;
3577 ft32-*-*)
3578 noconfigdirs="$noconfigdirs target-libffi"
3579 ;;
3580 *-*-lynxos*)
3581 noconfigdirs="$noconfigdirs target-libffi"
3582 ;;
3583esac
3584
3585# Disable the go frontend on systems where it is known to not work. Please keep
3586# this in sync with contrib/config-list.mk.
3587case "${target}" in
91dfef96 3588*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
012447ea
JJ
3589 unsupported_languages="$unsupported_languages go"
3590 ;;
3591esac
3592
f9d09df0
TT
3593# Only allow gdbserver on some systems.
3594if test -d ${srcdir}/gdbserver; then
3595 if test x$enable_gdbserver = x; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3597$as_echo_n "checking for gdbserver support... " >&6; }
3598 if (srcdir=${srcdir}/gdbserver; \
3599 . ${srcdir}/configure.srv; \
3600 test -n "$UNSUPPORTED")
3601 then
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603$as_echo "no" >&6; }
3604 noconfigdirs="$noconfigdirs gdbserver"
3605 else
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3607$as_echo "yes" >&6; }
3608 fi
3609 fi
3610fi
3611
cdbc9e92
ILT
3612# Disable libgo for some systems where it is known to not work.
3613# For testing, you can easily override this with --enable-libgo.
3614if test x$enable_libgo = x; then
3615 case "${target}" in
3616 *-*-darwin*)
3617 # PR 46986
3618 noconfigdirs="$noconfigdirs target-libgo"
3619 ;;
3620 *-*-cygwin* | *-*-mingw*)
3621 noconfigdirs="$noconfigdirs target-libgo"
3622 ;;
91dfef96
JM
3623 bpf-*-*)
3624 noconfigdirs="$noconfigdirs target-libgo"
3625 ;;
cdbc9e92
ILT
3626 esac
3627fi
3628
c03353e2
RIL
3629# Default libgloss CPU subdirectory.
3630libgloss_dir="$target_cpu"
6de9cd9a 3631
fbcf0dca
JM
3632case "${target}" in
3633 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3634 libgloss_dir=wince
3635 ;;
4dddfc74
YZ
3636 aarch64*-*-* )
3637 libgloss_dir=aarch64
3638 ;;
fbcf0dca
JM
3639 arm*-*-*)
3640 libgloss_dir=arm
3641 ;;
3642 cris-*-* | crisv32-*-*)
3643 libgloss_dir=cris
3644 ;;
3645 hppa*-*-*)
3646 libgloss_dir=pa
3647 ;;
3648 i[3456789]86-*-*)
3649 libgloss_dir=i386
3650 ;;
c6c0594e 3651 loongarch*-*-*)
3652 libgloss_dir=loongarch
3653 ;;
fbcf0dca
JM
3654 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3655 libgloss_dir=m68hc11
3656 ;;
3657 m68*-*-* | fido-*-*)
3658 libgloss_dir=m68k
3659 ;;
3660 mips*-*-*)
3661 libgloss_dir=mips
3662 ;;
3663 powerpc*-*-*)
3664 libgloss_dir=rs6000
3665 ;;
8d2af3a2
DD
3666 pru-*-*)
3667 libgloss_dir=pru
3668 ;;
fbcf0dca
JM
3669 sparc*-*-*)
3670 libgloss_dir=sparc
3671 ;;
3672esac
3673
6a789d5e 3674# Disable newlib and libgloss for various target OSes.
671aa708 3675case "${target}" in
6a789d5e
JM
3676 alpha*-dec-osf*)
3677 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3678 ;;
3679 i[3456789]86-*-linux*)
3680 # This section makes it possible to build newlib natively on linux.
3681 # If we are using a cross compiler then don't configure newlib.
3682 if test x${is_cross_compiler} != xno ; then
3683 noconfigdirs="$noconfigdirs target-newlib"
3684 fi
3685 noconfigdirs="$noconfigdirs target-libgloss"
3686 # If we are not using a cross compiler, do configure newlib.
3687 # Note however, that newlib will only be configured in this situation
3688 # if the --with-newlib option has been given, because otherwise
3689 # 'target-newlib' will appear in skipdirs.
3690 ;;
3691 i[3456789]86-*-rdos*)
3692 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3693 ;;
3694 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3695 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3696 ;;
3697 sparc-*-sunos4*)
3698 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3699 ;;
91dfef96
JM
3700 bpf-*-*)
3701 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3702 ;;
6a789d5e
JM
3703 *-*-aix*)
3704 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3705 ;;
3706 *-*-beos*)
3707 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3708 ;;
671aa708 3709 *-*-chorusos)
0036370f 3710 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3711 ;;
6a789d5e
JM
3712 *-*-dragonfly*)
3713 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3714 ;;
3715 *-*-freebsd*)
3716 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3717 ;;
3718 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3719 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3720 ;;
3721 *-*-lynxos*)
3722 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3723 ;;
3724 *-*-mingw*)
3725 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3726 ;;
3727 *-*-netbsd*)
3728 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3729 ;;
3730 *-*-netware*)
3731 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3732 ;;
3733 *-*-tpf*)
3734 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3735 ;;
3736 *-*-uclinux*)
3737 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3738 ;;
3739 *-*-vxworks*)
3740 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3741 ;;
3742esac
3743
3744case "${target}" in
3745 *-*-chorusos)
3746 ;;
3be96231
TG
3747 aarch64-*-darwin*)
3748 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3749 noconfigdirs="$noconfigdirs sim target-rda"
3750 ;;
7431c1a1
AS
3751 amdgcn*-*-*)
3752 ;;
3be96231
TG
3753 arm-*-darwin*)
3754 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3755 noconfigdirs="$noconfigdirs sim target-rda"
3756 ;;
75eeae1a 3757 powerpc-*-darwin*)
e1514c3f 3758 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3759 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3760 ;;
354ebf88
RW
3761 i[3456789]86-*-darwin*)
3762 noconfigdirs="$noconfigdirs ld gprof"
3763 noconfigdirs="$noconfigdirs sim target-rda"
3764 ;;
3765 x86_64-*-darwin[912]*)
0db3a858
TG
3766 noconfigdirs="$noconfigdirs ld gas gprof"
3767 noconfigdirs="$noconfigdirs sim target-rda"
3768 ;;
42c1cd8a
AT
3769 *-*-darwin*)
3770 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3771 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3772 ;;
8c6d158a 3773 *-*-dragonfly*)
8c6d158a 3774 ;;
c3f84f61 3775 *-*-freebsd*)
88252529 3776 if test "x$with_gmp" = x \
c0d0a722 3777 && ! test -d ${srcdir}/gmp \
6de9cd9a
DN
3778 && test -f /usr/local/include/gmp.h; then
3779 with_gmp=/usr/local
3780 fi
6de9cd9a 3781 ;;
ef4e7569
US
3782 *-*-kaos*)
3783 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3784 noconfigdirs="$noconfigdirs target-libgloss"
3785 ;;
671aa708 3786 *-*-netbsd*)
671aa708 3787 ;;
61fec9ff 3788 *-*-netware*)
671aa708 3789 ;;
fd6487af
JS
3790 *-*-phoenix*)
3791 noconfigdirs="$noconfigdirs target-libgloss"
3792 ;;
671aa708 3793 *-*-rtems*)
2909494b 3794 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3795 ;;
a8ba31f2
EC
3796 # The tpf target doesn't support gdb yet.
3797 *-*-tpf*)
6a789d5e 3798 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3799 ;;
5785c0ed 3800 *-*-uclinux*)
6a789d5e 3801 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3802 ;;
671aa708 3803 *-*-vxworks*)
671aa708
NN
3804 ;;
3805 alpha*-dec-osf*)
3806 # ld works, but does not support shared libraries.
671aa708 3807 # gas doesn't generate exception information.
6a789d5e 3808 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3809 ;;
3810 alpha*-*-*vms*)
2909494b 3811 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3812 ;;
671aa708
NN
3813 alpha*-*-*)
3814 # newlib is not 64 bit ready
2909494b 3815 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3816 ;;
91dfef96
JM
3817 bpf-*-*)
3818 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3819 ;;
671aa708 3820 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3821 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3822 ;;
2fd88f4f
AK
3823 arc*-*-*)
3824 noconfigdirs="$noconfigdirs sim"
3825 ;;
671aa708 3826 arm-*-pe*)
2909494b 3827 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3828 ;;
671aa708 3829 arm-*-riscix*)
0036370f 3830 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3831 ;;
b588ae30
GJL
3832 avr-*-*)
3833 if test x${with_avrlibc} != xno; then
3834 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3835 fi
3836 ;;
671aa708 3837 c4x-*-* | tic4x-*-*)
0036370f 3838 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3839 ;;
0036370f
JM
3840 tic54x-*-*)
3841 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3842 ;;
671aa708 3843 d10v-*-*)
0036370f 3844 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3845 ;;
3846 d30v-*-*)
0036370f 3847 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3848 ;;
3849 fr30-*-elf*)
2909494b 3850 noconfigdirs="$noconfigdirs gdb"
671aa708 3851 ;;
a05c2c75
L
3852 ft32-*-*)
3853 noconfigdirs="$noconfigdirs target-rda gprof"
3854 ;;
55f2d967 3855 moxie-*-*)
a05c2c75 3856 noconfigdirs="$noconfigdirs"
55f2d967 3857 ;;
671aa708 3858 h8300*-*-*)
2909494b 3859 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3860 ;;
3861 h8500-*-*)
0036370f 3862 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3863 ;;
a05c2c75
L
3864 hppa*64*-*-hpux*)
3865 noconfigdirs="$noconfigdirs gdb"
3866 ;;
4569f85e 3867 hppa*64*-*-linux*)
671aa708 3868 ;;
56f8587a 3869 hppa*-*-linux*)
3e732ba0 3870 ;;
671aa708 3871 hppa*-*-*elf* | \
671aa708
NN
3872 hppa*-*-lites* | \
3873 hppa*-*-openbsd* | \
3874 hppa*64*-*-*)
671aa708 3875 ;;
c03353e2 3876 hppa*-*-pro*)
c03353e2 3877 ;;
671aa708 3878 hppa*-*-*)
2909494b 3879 noconfigdirs="$noconfigdirs ld"
671aa708 3880 ;;
fb87ad5d 3881 i960-*-*)
0036370f 3882 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3883 ;;
671aa708
NN
3884 ia64*-*-elf*)
3885 # No gdb support yet.
1bcce263 3886 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3887 ;;
3888 ia64*-**-hpux*)
5a2931d1 3889 # No ld support yet.
a05c2c75 3890 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3891 ;;
52535a64 3892 ia64*-*-*vms*)
091fe9ca
TG
3893 # No ld support yet.
3894 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3895 ;;
ef4c4300 3896 i[3456789]86-w64-mingw*)
ef4c4300
KT
3897 ;;
3898 i[3456789]86-*-mingw*)
b91f0a41 3899 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3900 ;;
671aa708
NN
3901 *-*-cygwin*)
3902 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3903 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3904 # always build newlib if winsup directory is present.
b91f0a41 3905 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3906 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3907 elif test -d "$srcdir/newlib"; then
b91f0a41 3908 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3909 fi
1c710c3c 3910 ;;
f2a0e225 3911 i[3456789]86-*-pe)
ebb9f8b0 3912 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3913 ;;
f2a0e225 3914 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3915 # The linker does not yet know about weak symbols in COFF,
3916 # and is not configured to handle mixed ELF and COFF.
0036370f 3917 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3918 ;;
f2a0e225 3919 i[3456789]86-*-sco*)
0036370f 3920 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3921 ;;
fbdd5d87 3922 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3923 noconfigdirs="$noconfigdirs target-libgloss"
3924 ;;
f2a0e225 3925 i[3456789]86-*-sysv4*)
0036370f 3926 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3927 ;;
f2a0e225 3928 i[3456789]86-*-beos*)
6a789d5e 3929 noconfigdirs="$noconfigdirs gdb"
3aa83176 3930 ;;
d1f8db0c 3931 i[3456789]86-*-rdos*)
6a789d5e 3932 noconfigdirs="$noconfigdirs gdb"
c03353e2 3933 ;;
671aa708 3934 mmix-*-*)
2909494b 3935 noconfigdirs="$noconfigdirs gdb"
671aa708 3936 ;;
ab34901f 3937 mt-*-*)
79dd769c
AH
3938 noconfigdirs="$noconfigdirs sim"
3939 ;;
58b40a67
FT
3940 nfp-*-*)
3941 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3942 noconfigdirs="$noconfigdirs $target_libraries"
3943 ;;
e6cbe965
SC
3944 pdp11-*-*)
3945 noconfigdirs="$noconfigdirs gdb gprof"
3946 ;;
671aa708
NN
3947 powerpc-*-aix*)
3948 # copied from rs6000-*-* entry
6a789d5e 3949 noconfigdirs="$noconfigdirs gprof"
671aa708 3950 ;;
4569f85e 3951 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3952 target_configdirs="$target_configdirs target-winsup"
0036370f 3953 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3954 # always build newlib.
3955 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3956 ;;
3957 # This is temporary until we can link against shared libraries
3958 powerpcle-*-solaris*)
0036370f 3959 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3960 ;;
3961 powerpc-*-beos*)
6a789d5e 3962 noconfigdirs="$noconfigdirs gdb"
671aa708 3963 ;;
671aa708 3964 rs6000-*-lynxos*)
6a789d5e 3965 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3966 ;;
3967 rs6000-*-aix*)
6a789d5e 3968 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3969 ;;
3970 rs6000-*-*)
2909494b 3971 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3972 ;;
3973 m68k-apollo-*)
0036370f 3974 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3975 ;;
ca9fe997 3976 microblaze*)
2909494b 3977 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3978 ;;
d896cc4d 3979 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3980 if test x$with_newlib = xyes; then
3981 noconfigdirs="$noconfigdirs gprof"
3982 fi
d9dced13 3983 ;;
671aa708 3984 mips*-*-irix5*)
0036370f 3985 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3986 ;;
3987 mips*-*-irix6*)
2909494b 3988 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3989 ;;
671aa708 3990 mips*-*-bsd*)
bc98bcc4 3991 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3992 ;;
671aa708 3993 mips*-*-linux*)
671aa708 3994 ;;
bc98bcc4
JBG
3995 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3996 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3997 noconfigdirs="$noconfigdirs ld gas gprof"
3998 ;;
671aa708 3999 mips*-*-*)
2909494b 4000 noconfigdirs="$noconfigdirs gprof"
671aa708 4001 ;;
738f2522 4002 nvptx*-*-*)
738f2522
BS
4003 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4004 ;;
bc6d9014 4005 sh-*-*)
ea2002ba
CB
4006 case "${target}" in
4007 sh*-*-elf)
2909494b 4008 ;;
ea2002ba 4009 *)
2909494b 4010 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 4011 esac
671aa708 4012 ;;
671aa708 4013 sparc-*-sunos4*)
6a789d5e 4014 if test x${is_cross_compiler} = xno ; then
671aa708
NN
4015 use_gnu_ld=no
4016 fi
4017 ;;
b42f0d7e 4018 tic6x-*-*)
0d557ff8 4019 noconfigdirs="$noconfigdirs sim"
b42f0d7e 4020 ;;
a885ec24
AA
4021 tilepro*-*-* | tilegx*-*-*)
4022 noconfigdirs="$noconfigdirs sim"
4023 ;;
671aa708 4024 v810-*-*)
0036370f 4025 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
4026 ;;
4027 vax-*-*)
2909494b 4028 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 4029 ;;
1fc1d82e
MR
4030 wasm32-*-*)
4031 noconfigdirs="$noconfigdirs ld"
4032 ;;
c6c0594e 4033 loongarch*-*-linux*)
4034 ;;
4035 loongarch*-*-*)
4036 noconfigdirs="$noconfigdirs gprof"
4037 ;;
671aa708 4038esac
79c06341 4039
671aa708
NN
4040# If we aren't building newlib, then don't build libgloss, since libgloss
4041# depends upon some newlib header files.
4042case "${noconfigdirs}" in
4043 *target-libgloss*) ;;
4044 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4045esac
4046
671aa708 4047# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
4048host_makefile_frag=/dev/null
4049if test -d ${srcdir}/config ; then
4050case "${host}" in
f2a0e225 4051 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
4052 host_makefile_frag="config/mh-djgpp"
4053 ;;
4054 *-cygwin*)
2a79c47f 4055
5213506e
RW
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4057$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 4058echo a >cygwin-cat-check
e25a8c82 4059if test `cat cygwin-cat-check` = a ; then
2a79c47f 4060 rm cygwin-cat-check
5213506e
RW
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4062$as_echo "yes" >&6; }
2a79c47f
NC
4063else
4064 rm cygwin-cat-check
5213506e
RW
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066$as_echo "no" >&6; }
22e05272 4067 as_fn_error $? "The cat command does not ignore carriage return characters.
2a79c47f
NC
4068 Please either mount the build directory in binary mode or run the following
4069 commands before running any configure script:
4070set -o igncr
4071export SHELLOPTS
5213506e 4072 " "$LINENO" 5
2a79c47f
NC
4073fi
4074
671aa708
NN
4075 host_makefile_frag="config/mh-cygwin"
4076 ;;
c53a18d3 4077 *-mingw*)
1f5a6b84 4078 host_makefile_frag="config/mh-mingw"
95af8923 4079 ;;
cabb9d59 4080 alpha*-linux*)
13be44ed
UB
4081 host_makefile_frag="config/mh-alpha-linux"
4082 ;;
111eeb6e 4083 hppa*-hp-hpux*)
efd41714
PB
4084 host_makefile_frag="config/mh-pa"
4085 ;;
4086 hppa*-*)
4087 host_makefile_frag="config/mh-pa"
4088 ;;
54258e22 4089 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
d8ed14ce 4090 host_makefile_frag="config/mh-darwin"
be8fff81 4091 ;;
d19bca38
PB
4092 powerpc-*-aix*)
4093 host_makefile_frag="config/mh-ppc-aix"
4094 ;;
4095 rs6000-*-aix*)
4096 host_makefile_frag="config/mh-ppc-aix"
4097 ;;
671aa708
NN
4098esac
4099fi
4100
55ffb5ed 4101if test "${build}" != "${host}" ; then
0999159b
PB
4102 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4103 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4104 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
c841dc0a 4105 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
0999159b 4106 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3b5e8ee4 4107 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
0999159b 4108 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4109 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
b4c522fa 4110 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
0999159b
PB
4111 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4112 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4113 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4114 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4115 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4116 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4117else
4118 AR_FOR_BUILD="\$(AR)"
4119 AS_FOR_BUILD="\$(AS)"
fb0103e5 4120 CC_FOR_BUILD="\$(CC)"
0999159b 4121 CXX_FOR_BUILD="\$(CXX)"
3b5e8ee4 4122 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
0999159b 4123 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4124 GOC_FOR_BUILD="\$(GOC)"
b4c522fa 4125 GDC_FOR_BUILD="\$(GDC)"
0999159b
PB
4126 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4127 LD_FOR_BUILD="\$(LD)"
4128 NM_FOR_BUILD="\$(NM)"
4129 RANLIB_FOR_BUILD="\$(RANLIB)"
4130 WINDRES_FOR_BUILD="\$(WINDRES)"
4131 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4132fi
4133
4134ac_ext=c
1c710c3c
DJ
4135ac_cpp='$CPP $CPPFLAGS'
4136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139if test -n "$ac_tool_prefix"; then
4140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4141set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4144if ${ac_cv_prog_CC+:} false; then :
5213506e 4145 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4146else
4147 if test -n "$CC"; then
4148 ac_cv_prog_CC="$CC" # Let the user override the test.
4149else
4150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151for as_dir in $PATH
4152do
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
5213506e 4155 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4159 break 2
4160 fi
4161done
5213506e
RW
4162 done
4163IFS=$as_save_IFS
1c710c3c
DJ
4164
4165fi
4166fi
4167CC=$ac_cv_prog_CC
4168if test -n "$CC"; then
5213506e
RW
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4170$as_echo "$CC" >&6; }
1c710c3c 4171else
5213506e
RW
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173$as_echo "no" >&6; }
1c710c3c
DJ
4174fi
4175
5213506e 4176
1c710c3c
DJ
4177fi
4178if test -z "$ac_cv_prog_CC"; then
4179 ac_ct_CC=$CC
fb0103e5
RG
4180 # Extract the first word of "gcc", so it can be a program name with args.
4181set dummy gcc; ac_word=$2
5213506e
RW
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4184if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4185 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4186else
4187 if test -n "$ac_ct_CC"; then
4188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4189else
4190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191for as_dir in $PATH
4192do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
5213506e 4195 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4197 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4199 break 2
4200 fi
4201done
5213506e
RW
4202 done
4203IFS=$as_save_IFS
1c710c3c
DJ
4204
4205fi
4206fi
4207ac_ct_CC=$ac_cv_prog_ac_ct_CC
4208if test -n "$ac_ct_CC"; then
5213506e
RW
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4210$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4211else
5213506e
RW
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213$as_echo "no" >&6; }
1c710c3c
DJ
4214fi
4215
5213506e
RW
4216 if test "x$ac_ct_CC" = x; then
4217 CC=""
4218 else
4219 case $cross_compiling:$ac_tool_warned in
4220yes:)
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4223ac_tool_warned=yes ;;
4224esac
4225 CC=$ac_ct_CC
4226 fi
1c710c3c
DJ
4227else
4228 CC="$ac_cv_prog_CC"
4229fi
4230
4231if test -z "$CC"; then
5213506e
RW
4232 if test -n "$ac_tool_prefix"; then
4233 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4234set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4237if ${ac_cv_prog_CC+:} false; then :
5213506e 4238 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4239else
4240 if test -n "$CC"; then
4241 ac_cv_prog_CC="$CC" # Let the user override the test.
4242else
1c710c3c
DJ
4243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244for as_dir in $PATH
4245do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
5213506e 4248 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4250 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4252 break 2
4253 fi
4254done
5213506e
RW
4255 done
4256IFS=$as_save_IFS
1c710c3c 4257
0b0dc272 4258fi
0b0dc272 4259fi
1c710c3c 4260CC=$ac_cv_prog_CC
af71363e 4261if test -n "$CC"; then
5213506e
RW
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4263$as_echo "$CC" >&6; }
2aeb72e9 4264else
5213506e
RW
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266$as_echo "no" >&6; }
2aeb72e9
DD
4267fi
4268
2aeb72e9 4269
5213506e 4270 fi
1c710c3c 4271fi
55ffb5ed
NN
4272if test -z "$CC"; then
4273 # Extract the first word of "cc", so it can be a program name with args.
4274set dummy cc; ac_word=$2
5213506e
RW
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4277if ${ac_cv_prog_CC+:} false; then :
5213506e 4278 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4279else
4280 if test -n "$CC"; then
4281 ac_cv_prog_CC="$CC" # Let the user override the test.
4282else
0b0dc272 4283 ac_prog_rejected=no
1c710c3c
DJ
4284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285for as_dir in $PATH
4286do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
5213506e 4289 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4291 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4292 ac_prog_rejected=yes
4293 continue
4294 fi
4295 ac_cv_prog_CC="cc"
5213506e 4296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4297 break 2
4298 fi
4299done
5213506e
RW
4300 done
4301IFS=$as_save_IFS
1c710c3c 4302
55ffb5ed
NN
4303if test $ac_prog_rejected = yes; then
4304 # We found a bogon in the path, so make sure we never use it.
4305 set dummy $ac_cv_prog_CC
4306 shift
1c710c3c 4307 if test $# != 0; then
55ffb5ed
NN
4308 # We chose a different compiler from the bogus one.
4309 # However, it has the same basename, so the bogon will be chosen
4310 # first if we set CC to just the basename; use the full file name.
4311 shift
1c710c3c 4312 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4313 fi
4314fi
4315fi
4316fi
1c710c3c 4317CC=$ac_cv_prog_CC
55ffb5ed 4318if test -n "$CC"; then
5213506e
RW
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4320$as_echo "$CC" >&6; }
55ffb5ed 4321else
5213506e
RW
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4323$as_echo "no" >&6; }
55ffb5ed
NN
4324fi
4325
5213506e 4326
1c710c3c
DJ
4327fi
4328if test -z "$CC"; then
4329 if test -n "$ac_tool_prefix"; then
5213506e 4330 for ac_prog in cl.exe
1c710c3c
DJ
4331 do
4332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4333set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4336if ${ac_cv_prog_CC+:} false; then :
5213506e 4337 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4338else
4339 if test -n "$CC"; then
4340 ac_cv_prog_CC="$CC" # Let the user override the test.
4341else
1c710c3c
DJ
4342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343for as_dir in $PATH
4344do
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
5213506e 4347 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4349 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4351 break 2
4352 fi
4353done
5213506e
RW
4354 done
4355IFS=$as_save_IFS
1c710c3c 4356
55ffb5ed
NN
4357fi
4358fi
1c710c3c 4359CC=$ac_cv_prog_CC
55ffb5ed 4360if test -n "$CC"; then
5213506e
RW
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4362$as_echo "$CC" >&6; }
a4b9e93e 4363else
5213506e
RW
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365$as_echo "no" >&6; }
fb0103e5 4366fi
af71363e 4367
5213506e 4368
1c710c3c
DJ
4369 test -n "$CC" && break
4370 done
af71363e 4371fi
1c710c3c
DJ
4372if test -z "$CC"; then
4373 ac_ct_CC=$CC
5213506e 4374 for ac_prog in cl.exe
1c710c3c
DJ
4375do
4376 # Extract the first word of "$ac_prog", so it can be a program name with args.
4377set dummy $ac_prog; ac_word=$2
5213506e
RW
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4379$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4380if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4381 $as_echo_n "(cached) " >&6
0b0dc272 4382else
1c710c3c
DJ
4383 if test -n "$ac_ct_CC"; then
4384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4385else
1c710c3c
DJ
4386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387for as_dir in $PATH
4388do
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
5213506e 4391 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4393 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4395 break 2
4396 fi
4397done
5213506e
RW
4398 done
4399IFS=$as_save_IFS
1c710c3c 4400
af71363e
AS
4401fi
4402fi
1c710c3c
DJ
4403ac_ct_CC=$ac_cv_prog_ac_ct_CC
4404if test -n "$ac_ct_CC"; then
5213506e
RW
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4406$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4407else
5213506e
RW
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409$as_echo "no" >&6; }
af71363e 4410fi
0b0dc272 4411
5213506e 4412
1c710c3c
DJ
4413 test -n "$ac_ct_CC" && break
4414done
4415
5213506e
RW
4416 if test "x$ac_ct_CC" = x; then
4417 CC=""
4418 else
4419 case $cross_compiling:$ac_tool_warned in
4420yes:)
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4423ac_tool_warned=yes ;;
4424esac
4425 CC=$ac_ct_CC
4426 fi
1c710c3c
DJ
4427fi
4428
4429fi
4430
4431
5213506e
RW
4432test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4434as_fn_error $? "no acceptable C compiler found in \$PATH
4435See \`config.log' for more details" "$LINENO" 5; }
1c710c3c
DJ
4436
4437# Provide some information about the compiler.
5213506e
RW
4438$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4439set X $ac_compile
4440ac_compiler=$2
4441for ac_option in --version -v -V -qversion; do
4442 { { ac_try="$ac_compiler $ac_option >&5"
4443case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446esac
4447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4448$as_echo "$ac_try_echo"; } >&5
4449 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4450 ac_status=$?
5213506e
RW
4451 if test -s conftest.err; then
4452 sed '10a\
4453... rest of stderr output deleted ...
4454 10q' conftest.err >conftest.er1
4455 cat conftest.er1 >&5
5213506e 4456 fi
22e05272 4457 rm -f conftest.er1 conftest.err
5213506e
RW
4458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459 test $ac_status = 0; }
4460done
1c710c3c 4461
5213506e 4462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4463/* end confdefs.h. */
4464
4465int
4466main ()
4467{
4468
4469 ;
4470 return 0;
4471}
4472_ACEOF
4473ac_clean_files_save=$ac_clean_files
22e05272 4474ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1c710c3c
DJ
4475# Try to create an executable without -o first, disregard a.out.
4476# It will help us diagnose broken compilers, and finding out an intuition
4477# of exeext.
22e05272
JM
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4479$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4480ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4481
4482# The possible output files:
4483ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4484
4485ac_rmfiles=
4486for ac_file in $ac_files
4487do
4488 case $ac_file in
4489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4490 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4491 esac
4492done
4493rm -f $ac_rmfiles
4494
4495if { { ac_try="$ac_link_default"
4496case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4499esac
4500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4501$as_echo "$ac_try_echo"; } >&5
4502 (eval "$ac_link_default") 2>&5
1c710c3c 4503 ac_status=$?
5213506e
RW
4504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4505 test $ac_status = 0; }; then :
4506 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4507# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4508# in a Makefile. We should not override ac_cv_exeext if it was cached,
4509# so that the user can short-circuit this test for compilers unknown to
4510# Autoconf.
4511for ac_file in $ac_files ''
1c710c3c
DJ
4512do
4513 test -f "$ac_file" || continue
4514 case $ac_file in
5213506e 4515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4516 ;;
4517 [ab].out )
4518 # We found the default executable, but exeext='' is most
4519 # certainly right.
4520 break;;
4521 *.* )
5213506e
RW
4522 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4523 then :; else
4524 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4525 fi
4526 # We set ac_cv_exeext here because the later test for it is not
4527 # safe: cross compilers may not add the suffix if given an `-o'
4528 # argument, so we may need to know it at that point already.
4529 # Even if this section looks crufty: it has the advantage of
4530 # actually working.
1c710c3c
DJ
4531 break;;
4532 * )
4533 break;;
4534 esac
4535done
5213506e
RW
4536test "$ac_cv_exeext" = no && ac_cv_exeext=
4537
1c710c3c 4538else
5213506e
RW
4539 ac_file=''
4540fi
5213506e 4541if test -z "$ac_file"; then :
22e05272
JM
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543$as_echo "no" >&6; }
4544$as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4545sed 's/^/| /' conftest.$ac_ext >&5
4546
5213506e
RW
4547{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4549as_fn_error 77 "C compiler cannot create executables
4550See \`config.log' for more details" "$LINENO" 5; }
4551else
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553$as_echo "yes" >&6; }
1c710c3c 4554fi
22e05272
JM
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4556$as_echo_n "checking for C compiler default output file name... " >&6; }
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4558$as_echo "$ac_file" >&6; }
1c710c3c 4559ac_exeext=$ac_cv_exeext
1c710c3c 4560
22e05272 4561rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1c710c3c 4562ac_clean_files=$ac_clean_files_save
5213506e
RW
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4564$as_echo_n "checking for suffix of executables... " >&6; }
4565if { { ac_try="$ac_link"
4566case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4569esac
4570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4571$as_echo "$ac_try_echo"; } >&5
4572 (eval "$ac_link") 2>&5
1c710c3c 4573 ac_status=$?
5213506e
RW
4574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4575 test $ac_status = 0; }; then :
1c710c3c
DJ
4576 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4577# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4578# work properly (i.e., refer to `conftest.exe'), while it won't with
4579# `rm'.
4580for ac_file in conftest.exe conftest conftest.*; do
4581 test -f "$ac_file" || continue
4582 case $ac_file in
5213506e 4583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4584 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4585 break;;
4586 * ) break;;
4587 esac
4588done
af71363e 4589else
5213506e
RW
4590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4592as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4593See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4594fi
22e05272 4595rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4597$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4598
4599rm -f conftest.$ac_ext
4600EXEEXT=$ac_cv_exeext
4601ac_exeext=$EXEEXT
22e05272
JM
4602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603/* end confdefs.h. */
4604#include <stdio.h>
4605int
4606main ()
4607{
4608FILE *f = fopen ("conftest.out", "w");
4609 return ferror (f) || fclose (f) != 0;
4610
4611 ;
4612 return 0;
4613}
4614_ACEOF
4615ac_clean_files="$ac_clean_files conftest.out"
4616# Check that the compiler produces executables we can run. If not, either
4617# the compiler is broken, or we cross compile.
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4619$as_echo_n "checking whether we are cross compiling... " >&6; }
4620if test "$cross_compiling" != yes; then
4621 { { ac_try="$ac_link"
4622case "(($ac_try" in
4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4625esac
4626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4627$as_echo "$ac_try_echo"; } >&5
4628 (eval "$ac_link") 2>&5
4629 ac_status=$?
4630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4631 test $ac_status = 0; }
4632 if { ac_try='./conftest$ac_cv_exeext'
4633 { { case "(($ac_try" in
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4636esac
4637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4638$as_echo "$ac_try_echo"; } >&5
4639 (eval "$ac_try") 2>&5
4640 ac_status=$?
4641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4642 test $ac_status = 0; }; }; then
4643 cross_compiling=no
4644 else
4645 if test "$cross_compiling" = maybe; then
4646 cross_compiling=yes
4647 else
4648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4650as_fn_error $? "cannot run C compiled programs.
4651If you meant to cross compile, use \`--host'.
4652See \`config.log' for more details" "$LINENO" 5; }
4653 fi
4654 fi
4655fi
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4657$as_echo "$cross_compiling" >&6; }
4658
4659rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4660ac_clean_files=$ac_clean_files_save
5213506e
RW
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4662$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4663if ${ac_cv_objext+:} 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
4673 ;
4674 return 0;
4675}
4676_ACEOF
4677rm -f conftest.o conftest.obj
5213506e
RW
4678if { { ac_try="$ac_compile"
4679case "(($ac_try" in
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4682esac
4683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4684$as_echo "$ac_try_echo"; } >&5
4685 (eval "$ac_compile") 2>&5
1c710c3c 4686 ac_status=$?
5213506e
RW
4687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4688 test $ac_status = 0; }; then :
4689 for ac_file in conftest.o conftest.obj conftest.*; do
4690 test -f "$ac_file" || continue;
1c710c3c 4691 case $ac_file in
5213506e 4692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4693 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4694 break;;
4695 esac
4696done
4697else
5213506e 4698 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4699sed 's/^/| /' conftest.$ac_ext >&5
4700
5213506e
RW
4701{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4703as_fn_error $? "cannot compute suffix of object files: cannot compile
4704See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4705fi
1c710c3c
DJ
4706rm -f conftest.$ac_cv_objext conftest.$ac_ext
4707fi
5213506e
RW
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4709$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4710OBJEXT=$ac_cv_objext
4711ac_objext=$OBJEXT
5213506e
RW
4712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4713$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4714if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4715 $as_echo_n "(cached) " >&6
1c710c3c 4716else
5213506e 4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4718/* end confdefs.h. */
4719
4720int
4721main ()
4722{
4723#ifndef __GNUC__
4724 choke me
4725#endif
4726
4727 ;
4728 return 0;
4729}
4730_ACEOF
5213506e 4731if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4732 ac_compiler_gnu=yes
4733else
5213506e 4734 ac_compiler_gnu=no
1c710c3c 4735fi
5213506e 4736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4737ac_cv_c_compiler_gnu=$ac_compiler_gnu
4738
4739fi
5213506e
RW
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4741$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4742if test $ac_compiler_gnu = yes; then
4743 GCC=yes
4744else
4745 GCC=
4746fi
1c710c3c
DJ
4747ac_test_CFLAGS=${CFLAGS+set}
4748ac_save_CFLAGS=$CFLAGS
5213506e
RW
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4750$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4751if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4752 $as_echo_n "(cached) " >&6
4753else
4754 ac_save_c_werror_flag=$ac_c_werror_flag
4755 ac_c_werror_flag=yes
4756 ac_cv_prog_cc_g=no
4757 CFLAGS="-g"
4758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4759/* end confdefs.h. */
4760
4761int
4762main ()
4763{
4764
4765 ;
4766 return 0;
4767}
4768_ACEOF
5213506e 4769if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4770 ac_cv_prog_cc_g=yes
4771else
5213506e
RW
4772 CFLAGS=""
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774/* end confdefs.h. */
4775
4776int
4777main ()
4778{
4779
4780 ;
4781 return 0;
4782}
4783_ACEOF
4784if ac_fn_c_try_compile "$LINENO"; then :
4785
4786else
4787 ac_c_werror_flag=$ac_save_c_werror_flag
4788 CFLAGS="-g"
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790/* end confdefs.h. */
af71363e 4791
5213506e
RW
4792int
4793main ()
4794{
4795
4796 ;
4797 return 0;
4798}
4799_ACEOF
4800if ac_fn_c_try_compile "$LINENO"; then :
4801 ac_cv_prog_cc_g=yes
4802fi
4803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4804fi
5213506e 4805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4806fi
5213506e
RW
4807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 ac_c_werror_flag=$ac_save_c_werror_flag
4809fi
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4811$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4812if test "$ac_test_CFLAGS" = set; then
1c710c3c 4813 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4814elif test $ac_cv_prog_cc_g = yes; then
4815 if test "$GCC" = yes; then
4816 CFLAGS="-g -O2"
4817 else
4818 CFLAGS="-g"
4819 fi
4820else
4821 if test "$GCC" = yes; then
4822 CFLAGS="-O2"
4823 else
4824 CFLAGS=
4825 fi
4826fi
5213506e
RW
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4828$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4829if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4830 $as_echo_n "(cached) " >&6
1c710c3c 4831else
5213506e 4832 ac_cv_prog_cc_c89=no
1c710c3c 4833ac_save_CC=$CC
5213506e 4834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4835/* end confdefs.h. */
4836#include <stdarg.h>
4837#include <stdio.h>
22e05272 4838struct stat;
1c710c3c
DJ
4839/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4840struct buf { int x; };
4841FILE * (*rcsopen) (struct buf *, struct stat *, int);
4842static char *e (p, i)
4843 char **p;
4844 int i;
4845{
4846 return p[i];
4847}
4848static char *f (char * (*g) (char **, int), char **p, ...)
4849{
4850 char *s;
4851 va_list v;
4852 va_start (v,p);
4853 s = g (p, va_arg (v,int));
4854 va_end (v);
4855 return s;
4856}
4857
4858/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4859 function prototypes and stuff, but not '\xHH' hex character constants.
4860 These don't provoke an error unfortunately, instead are silently treated
5213506e 4861 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4863 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4864 that's true only with -std. */
1c710c3c
DJ
4865int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4866
5213506e
RW
4867/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4868 inside strings and character constants. */
4869#define FOO(x) 'x'
4870int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4871
1c710c3c
DJ
4872int test (int i, double x);
4873struct s1 {int (*f) (int a);};
4874struct s2 {int (*f) (double a);};
4875int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4876int argc;
4877char **argv;
4878int
4879main ()
4880{
4881return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4882 ;
4883 return 0;
4884}
4885_ACEOF
5213506e
RW
4886for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4888do
4889 CC="$ac_save_CC $ac_arg"
5213506e
RW
4890 if ac_fn_c_try_compile "$LINENO"; then :
4891 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4892fi
5213506e
RW
4893rm -f core conftest.err conftest.$ac_objext
4894 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4895done
5213506e 4896rm -f conftest.$ac_ext
1c710c3c
DJ
4897CC=$ac_save_CC
4898
4899fi
5213506e
RW
4900# AC_CACHE_VAL
4901case "x$ac_cv_prog_cc_c89" in
4902 x)
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4904$as_echo "none needed" >&6; } ;;
4905 xno)
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4907$as_echo "unsupported" >&6; } ;;
1c710c3c 4908 *)
5213506e
RW
4909 CC="$CC $ac_cv_prog_cc_c89"
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4911$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4912esac
5213506e 4913if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4914
2aeb72e9
DD
4915fi
4916
2aeb72e9
DD
4917ac_ext=c
4918ac_cpp='$CPP $CPPFLAGS'
4919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921ac_compiler_gnu=$ac_cv_c_compiler_gnu
4922
91743432
NC
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4924$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4925if ${ac_cv_prog_cc_c99+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927else
4928 ac_cv_prog_cc_c99=no
4929ac_save_CC=$CC
4930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931/* end confdefs.h. */
4932#include <stdarg.h>
4933#include <stdbool.h>
4934#include <stdlib.h>
4935#include <wchar.h>
4936#include <stdio.h>
4937
4938// Check varargs macros. These examples are taken from C99 6.10.3.5.
4939#define debug(...) fprintf (stderr, __VA_ARGS__)
4940#define showlist(...) puts (#__VA_ARGS__)
4941#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4942static void
4943test_varargs_macros (void)
4944{
4945 int x = 1234;
4946 int y = 5678;
4947 debug ("Flag");
4948 debug ("X = %d\n", x);
4949 showlist (The first, second, and third items.);
4950 report (x>y, "x is %d but y is %d", x, y);
4951}
4952
4953// Check long long types.
4954#define BIG64 18446744073709551615ull
4955#define BIG32 4294967295ul
4956#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4957#if !BIG_OK
4958 your preprocessor is broken;
4959#endif
4960#if BIG_OK
4961#else
4962 your preprocessor is broken;
4963#endif
4964static long long int bignum = -9223372036854775807LL;
4965static unsigned long long int ubignum = BIG64;
4966
4967struct incomplete_array
4968{
4969 int datasize;
4970 double data[];
4971};
4972
4973struct named_init {
4974 int number;
4975 const wchar_t *name;
4976 double average;
4977};
4978
4979typedef const char *ccp;
4980
4981static inline int
4982test_restrict (ccp restrict text)
4983{
4984 // See if C++-style comments work.
4985 // Iterate through items via the restricted pointer.
4986 // Also check for declarations in for loops.
4987 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4988 continue;
4989 return 0;
4990}
4991
4992// Check varargs and va_copy.
4993static void
4994test_varargs (const char *format, ...)
4995{
4996 va_list args;
4997 va_start (args, format);
4998 va_list args_copy;
4999 va_copy (args_copy, args);
5000
5001 const char *str;
5002 int number;
5003 float fnumber;
5004
5005 while (*format)
5006 {
5007 switch (*format++)
5008 {
5009 case 's': // string
5010 str = va_arg (args_copy, const char *);
5011 break;
5012 case 'd': // int
5013 number = va_arg (args_copy, int);
5014 break;
5015 case 'f': // float
5016 fnumber = va_arg (args_copy, double);
5017 break;
5018 default:
5019 break;
5020 }
5021 }
5022 va_end (args_copy);
5023 va_end (args);
5024}
5025
5026int
5027main ()
5028{
5029
5030 // Check bool.
5031 _Bool success = false;
5032
5033 // Check restrict.
5034 if (test_restrict ("String literal") == 0)
5035 success = true;
5036 char *restrict newvar = "Another string";
5037
5038 // Check varargs.
5039 test_varargs ("s, d' f .", "string", 65, 34.234);
5040 test_varargs_macros ();
5041
5042 // Check flexible array members.
5043 struct incomplete_array *ia =
5044 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5045 ia->datasize = 10;
5046 for (int i = 0; i < ia->datasize; ++i)
5047 ia->data[i] = i * 1.234;
5048
5049 // Check named initializers.
5050 struct named_init ni = {
5051 .number = 34,
5052 .name = L"Test wide string",
5053 .average = 543.34343,
5054 };
5055
5056 ni.number = 58;
5057
5058 int dynamic_array[ni.number];
5059 dynamic_array[ni.number - 1] = 543;
5060
5061 // work around unused variable warnings
5062 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5063 || dynamic_array[ni.number - 1] != 543);
5064
5065 ;
5066 return 0;
5067}
5068_ACEOF
5069for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5070do
5071 CC="$ac_save_CC $ac_arg"
5072 if ac_fn_c_try_compile "$LINENO"; then :
5073 ac_cv_prog_cc_c99=$ac_arg
5074fi
5075rm -f core conftest.err conftest.$ac_objext
5076 test "x$ac_cv_prog_cc_c99" != "xno" && break
5077done
5078rm -f conftest.$ac_ext
5079CC=$ac_save_CC
5080
5081fi
5082# AC_CACHE_VAL
5083case "x$ac_cv_prog_cc_c99" in
5084 x)
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5086$as_echo "none needed" >&6; } ;;
5087 xno)
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5089$as_echo "unsupported" >&6; } ;;
5090 *)
5091 CC="$CC $ac_cv_prog_cc_c99"
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5093$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5094esac
5095if test "x$ac_cv_prog_cc_c99" != xno; then :
5096
5097fi
5098
5099
5213506e 5100ac_ext=cpp
2aeb72e9
DD
5101ac_cpp='$CXXCPP $CPPFLAGS'
5102ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
5105if test -z "$CXX"; then
5106 if test -n "$CCC"; then
5107 CXX=$CCC
5108 else
5109 if test -n "$ac_tool_prefix"; then
5110 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
5111 do
5112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5113set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5116if ${ac_cv_prog_CXX+:} false; then :
5213506e 5117 $as_echo_n "(cached) " >&6
2aeb72e9
DD
5118else
5119 if test -n "$CXX"; then
5120 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5121else
5122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123for as_dir in $PATH
5124do
5125 IFS=$as_save_IFS
5126 test -z "$as_dir" && as_dir=.
5213506e 5127 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2aeb72e9 5129 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
5131 break 2
5132 fi
5133done
5213506e
RW
5134 done
5135IFS=$as_save_IFS
55ffb5ed 5136
c3a86da9
DJ
5137fi
5138fi
5139CXX=$ac_cv_prog_CXX
5140if test -n "$CXX"; then
5213506e
RW
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5142$as_echo "$CXX" >&6; }
c3a86da9 5143else
5213506e
RW
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145$as_echo "no" >&6; }
c3a86da9
DJ
5146fi
5147
5213506e 5148
c3a86da9
DJ
5149 test -n "$CXX" && break
5150 done
5151fi
5152if test -z "$CXX"; then
5153 ac_ct_CXX=$CXX
5213506e 5154 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
5155do
5156 # Extract the first word of "$ac_prog", so it can be a program name with args.
5157set dummy $ac_prog; ac_word=$2
5213506e
RW
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5160if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5213506e 5161 $as_echo_n "(cached) " >&6
c3a86da9
DJ
5162else
5163 if test -n "$ac_ct_CXX"; then
5164 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5165else
5166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167for as_dir in $PATH
5168do
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5213506e 5171 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9 5173 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
5175 break 2
5176 fi
5177done
5213506e
RW
5178 done
5179IFS=$as_save_IFS
c3a86da9
DJ
5180
5181fi
5182fi
5183ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5184if test -n "$ac_ct_CXX"; then
5213506e
RW
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5186$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 5187else
5213506e
RW
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189$as_echo "no" >&6; }
c3a86da9
DJ
5190fi
5191
5213506e 5192
c3a86da9
DJ
5193 test -n "$ac_ct_CXX" && break
5194done
c3a86da9 5195
5213506e
RW
5196 if test "x$ac_ct_CXX" = x; then
5197 CXX="g++"
5198 else
5199 case $cross_compiling:$ac_tool_warned in
5200yes:)
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5203ac_tool_warned=yes ;;
5204esac
5205 CXX=$ac_ct_CXX
5206 fi
c3a86da9
DJ
5207fi
5208
5213506e
RW
5209 fi
5210fi
c3a86da9 5211# Provide some information about the compiler.
5213506e
RW
5212$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5213set X $ac_compile
5214ac_compiler=$2
5215for ac_option in --version -v -V -qversion; do
5216 { { ac_try="$ac_compiler $ac_option >&5"
5217case "(($ac_try" in
5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219 *) ac_try_echo=$ac_try;;
5220esac
5221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5222$as_echo "$ac_try_echo"; } >&5
5223 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 5224 ac_status=$?
5213506e
RW
5225 if test -s conftest.err; then
5226 sed '10a\
5227... rest of stderr output deleted ...
5228 10q' conftest.err >conftest.er1
5229 cat conftest.er1 >&5
5213506e 5230 fi
22e05272 5231 rm -f conftest.er1 conftest.err
5213506e
RW
5232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5233 test $ac_status = 0; }
5234done
c3a86da9 5235
5213506e
RW
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5237$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5238if ${ac_cv_cxx_compiler_gnu+:} false; then :
5213506e 5239 $as_echo_n "(cached) " >&6
c3a86da9 5240else
5213506e 5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5242/* end confdefs.h. */
5243
5244int
5245main ()
5246{
5247#ifndef __GNUC__
5248 choke me
5249#endif
5250
5251 ;
5252 return 0;
5253}
5254_ACEOF
5213506e 5255if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5256 ac_compiler_gnu=yes
5257else
5213506e 5258 ac_compiler_gnu=no
c3a86da9 5259fi
5213506e 5260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
5261ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5262
5263fi
5213506e
RW
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5265$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5266if test $ac_compiler_gnu = yes; then
5267 GXX=yes
5268else
5269 GXX=
5270fi
c3a86da9
DJ
5271ac_test_CXXFLAGS=${CXXFLAGS+set}
5272ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5274$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5275if ${ac_cv_prog_cxx_g+:} false; then :
5213506e
RW
5276 $as_echo_n "(cached) " >&6
5277else
5278 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5279 ac_cxx_werror_flag=yes
5280 ac_cv_prog_cxx_g=no
5281 CXXFLAGS="-g"
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5283/* end confdefs.h. */
5284
5285int
5286main ()
5287{
5288
5289 ;
5290 return 0;
5291}
5292_ACEOF
5213506e 5293if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5294 ac_cv_prog_cxx_g=yes
5295else
5213506e
RW
5296 CXXFLAGS=""
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5298/* end confdefs.h. */
5213506e 5299
c3a86da9
DJ
5300int
5301main ()
5302{
5213506e 5303
c3a86da9
DJ
5304 ;
5305 return 0;
5306}
5307_ACEOF
5213506e 5308if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5309
5213506e
RW
5310else
5311 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5312 CXXFLAGS="-g"
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5314/* end confdefs.h. */
5213506e 5315
c3a86da9
DJ
5316int
5317main ()
5318{
5213506e 5319
c3a86da9
DJ
5320 ;
5321 return 0;
5322}
5323_ACEOF
5213506e
RW
5324if ac_fn_cxx_try_compile "$LINENO"; then :
5325 ac_cv_prog_cxx_g=yes
11a67599 5326fi
5213506e
RW
5327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328fi
5329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330fi
5331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5332 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5333fi
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5335$as_echo "$ac_cv_prog_cxx_g" >&6; }
5336if test "$ac_test_CXXFLAGS" = set; then
5337 CXXFLAGS=$ac_save_CXXFLAGS
5338elif test $ac_cv_prog_cxx_g = yes; then
5339 if test "$GXX" = yes; then
5340 CXXFLAGS="-g -O2"
5341 else
5342 CXXFLAGS="-g"
5343 fi
5344else
5345 if test "$GXX" = yes; then
5346 CXXFLAGS="-O2"
5347 else
5348 CXXFLAGS=
5349 fi
c3a86da9 5350fi
c3a86da9
DJ
5351ac_ext=c
5352ac_cpp='$CPP $CPPFLAGS'
5353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5355ac_compiler_gnu=$ac_cv_c_compiler_gnu
5356
5357
5358# We must set the default linker to the linker used by gcc for the correct
5359# operation of libtool. If LD is not defined and we are using gcc, try to
5360# set the LD default to the ld used by gcc.
5361if test -z "$LD"; then
5362 if test "$GCC" = yes; then
5363 case $build in
5364 *-*-mingw*)
5365 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5366 *)
5367 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5368 esac
5369 case $gcc_prog_ld in
5370 # Accept absolute paths.
5371 [\\/]* | [A-Za-z]:[\\/]*)
5372 LD="$gcc_prog_ld" ;;
5373 esac
5374 fi
23f6b2f9
PB
5375fi
5376
0b21f5d3
EB
5377# Check whether -static-libstdc++ -static-libgcc is supported.
5378have_static_libs=no
5379if test "$GCC" = yes; then
5380 saved_LDFLAGS="$LDFLAGS"
5381
5382 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5384$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5385 ac_ext=cpp
5386ac_cpp='$CXXCPP $CPPFLAGS'
5387ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5388ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5389ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5390
5391
5392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393/* end confdefs.h. */
0d6414b2
EB
5394
5395#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5396#error -static-libstdc++ not implemented
5397#endif
0b21f5d3
EB
5398int main() {}
5399_ACEOF
5400if ac_fn_cxx_try_link "$LINENO"; then :
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5402$as_echo "yes" >&6; }; have_static_libs=yes
5403else
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405$as_echo "no" >&6; }
5406fi
5407rm -f core conftest.err conftest.$ac_objext \
5408 conftest$ac_exeext conftest.$ac_ext
5409 ac_ext=c
5410ac_cpp='$CPP $CPPFLAGS'
5411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5413ac_compiler_gnu=$ac_cv_c_compiler_gnu
5414
5415
5416 LDFLAGS="$saved_LDFLAGS"
5417fi
5418
23f6b2f9
PB
5419
5420
55ffb5ed 5421
1c710c3c
DJ
5422if test -n "$ac_tool_prefix"; then
5423 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5424set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5427if ${ac_cv_prog_GNATBIND+:} false; then :
5213506e 5428 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5429else
5430 if test -n "$GNATBIND"; then
5431 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5432else
1c710c3c
DJ
5433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434for as_dir in $PATH
5435do
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5213506e 5438 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5440 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5442 break 2
5443 fi
5444done
5213506e
RW
5445 done
5446IFS=$as_save_IFS
1c710c3c 5447
55ffb5ed
NN
5448fi
5449fi
1c710c3c 5450GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5451if test -n "$GNATBIND"; then
5213506e
RW
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5453$as_echo "$GNATBIND" >&6; }
55ffb5ed 5454else
5213506e
RW
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456$as_echo "no" >&6; }
55ffb5ed
NN
5457fi
5458
5213506e 5459
1c710c3c 5460fi
55ffb5ed 5461if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5462 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5463 # Extract the first word of "gnatbind", so it can be a program name with args.
5464set dummy gnatbind; ac_word=$2
5213506e
RW
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5467if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5213506e 5468 $as_echo_n "(cached) " >&6
55ffb5ed 5469else
1c710c3c
DJ
5470 if test -n "$ac_ct_GNATBIND"; then
5471 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5472else
1c710c3c
DJ
5473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474for as_dir in $PATH
5475do
5476 IFS=$as_save_IFS
5477 test -z "$as_dir" && as_dir=.
5213506e 5478 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5480 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5482 break 2
5483 fi
5484done
5213506e
RW
5485 done
5486IFS=$as_save_IFS
1c710c3c 5487
55ffb5ed
NN
5488fi
5489fi
1c710c3c
DJ
5490ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5491if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5493$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5494else
5213506e
RW
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496$as_echo "no" >&6; }
55ffb5ed
NN
5497fi
5498
5213506e
RW
5499 if test "x$ac_ct_GNATBIND" = x; then
5500 GNATBIND="no"
5501 else
5502 case $cross_compiling:$ac_tool_warned in
5503yes:)
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5506ac_tool_warned=yes ;;
5507esac
5508 GNATBIND=$ac_ct_GNATBIND
5509 fi
55ffb5ed 5510else
1c710c3c 5511 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5512fi
5513
1c710c3c
DJ
5514if test -n "$ac_tool_prefix"; then
5515 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5516set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5519if ${ac_cv_prog_GNATMAKE+:} false; then :
5213506e 5520 $as_echo_n "(cached) " >&6
5305be7e
RG
5521else
5522 if test -n "$GNATMAKE"; then
5523 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5524else
1c710c3c
DJ
5525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526for as_dir in $PATH
5527do
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5213506e 5530 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5532 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5534 break 2
5535 fi
5536done
5213506e
RW
5537 done
5538IFS=$as_save_IFS
1c710c3c 5539
5305be7e
RG
5540fi
5541fi
1c710c3c 5542GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5543if test -n "$GNATMAKE"; then
5213506e
RW
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5545$as_echo "$GNATMAKE" >&6; }
5305be7e 5546else
5213506e
RW
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548$as_echo "no" >&6; }
5305be7e
RG
5549fi
5550
5213506e 5551
1c710c3c 5552fi
5305be7e 5553if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5554 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5555 # Extract the first word of "gnatmake", so it can be a program name with args.
5556set dummy gnatmake; ac_word=$2
5213506e
RW
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5559if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5213506e 5560 $as_echo_n "(cached) " >&6
5305be7e 5561else
1c710c3c
DJ
5562 if test -n "$ac_ct_GNATMAKE"; then
5563 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5564else
1c710c3c
DJ
5565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566for as_dir in $PATH
5567do
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
5213506e 5570 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5572 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5574 break 2
5575 fi
5576done
5213506e
RW
5577 done
5578IFS=$as_save_IFS
1c710c3c 5579
5305be7e
RG
5580fi
5581fi
1c710c3c
DJ
5582ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5583if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5585$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5586else
5213506e
RW
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588$as_echo "no" >&6; }
5305be7e
RG
5589fi
5590
5213506e
RW
5591 if test "x$ac_ct_GNATMAKE" = x; then
5592 GNATMAKE="no"
5593 else
5594 case $cross_compiling:$ac_tool_warned in
5595yes:)
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5598ac_tool_warned=yes ;;
5599esac
5600 GNATMAKE=$ac_ct_GNATMAKE
5601 fi
5305be7e 5602else
1c710c3c 5603 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5604fi
5605
71f068a9
RS
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5607$as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
22e05272 5608if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5213506e 5609 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5610else
5611 cat >conftest.adb <<EOF
71f068a9
RS
5612pragma Warnings (Off);
5613with System.CRTL;
5614pragma Warnings (On);
5615use type System.CRTL.int64;
55ffb5ed
NN
5616procedure conftest is begin null; end conftest;
5617EOF
5618acx_cv_cc_gcc_supports_ada=no
5619# There is a bug in old released versions of GCC which causes the
5620# driver to exit successfully when the appropriate language module
5621# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5622# Therefore we must check for the error message as well as an
5623# unsuccessful exit.
1db673ca
RO
5624# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5625# given a .adb file, but produce no object file. So we must check
5626# if an object file was really produced to guard against this.
55ffb5ed 5627errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5628if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5629 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5630fi
5631rm -f conftest.*
5632fi
5213506e
RW
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5634$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5635
7cb62ef1 5636if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5637 have_gnat=yes
5638else
5639 have_gnat=no
5640fi
5641
5fee5ec3
IB
5642
5643
5644if test -n "$ac_tool_prefix"; then
5645 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5646set dummy ${ac_tool_prefix}gdc; ac_word=$2
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648$as_echo_n "checking for $ac_word... " >&6; }
5649if ${ac_cv_prog_GDC+:} false; then :
5650 $as_echo_n "(cached) " >&6
5651else
5652 if test -n "$GDC"; then
5653 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5654else
5655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656for as_dir in $PATH
5657do
5658 IFS=$as_save_IFS
5659 test -z "$as_dir" && as_dir=.
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664 break 2
5665 fi
5666done
5667 done
5668IFS=$as_save_IFS
5669
5670fi
5671fi
5672GDC=$ac_cv_prog_GDC
5673if test -n "$GDC"; then
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5675$as_echo "$GDC" >&6; }
5676else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678$as_echo "no" >&6; }
5679fi
5680
5681
5682fi
5683if test -z "$ac_cv_prog_GDC"; then
5684 ac_ct_GDC=$GDC
5685 # Extract the first word of "gdc", so it can be a program name with args.
5686set dummy gdc; ac_word=$2
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688$as_echo_n "checking for $ac_word... " >&6; }
5689if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5690 $as_echo_n "(cached) " >&6
5691else
5692 if test -n "$ac_ct_GDC"; then
5693 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_ac_ct_GDC="gdc"
5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5705 fi
5706done
5707 done
5708IFS=$as_save_IFS
5709
5710fi
5711fi
5712ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5713if test -n "$ac_ct_GDC"; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5715$as_echo "$ac_ct_GDC" >&6; }
5716else
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718$as_echo "no" >&6; }
5719fi
5720
5721 if test "x$ac_ct_GDC" = x; then
5722 GDC="no"
5723 else
5724 case $cross_compiling:$ac_tool_warned in
5725yes:)
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5728ac_tool_warned=yes ;;
5729esac
5730 GDC=$ac_ct_GDC
5731 fi
5732else
5733 GDC="$ac_cv_prog_GDC"
5734fi
5735
7c6ae994
IB
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5737$as_echo_n "checking whether the D compiler works... " >&6; }
5738if ${acx_cv_d_compiler_works+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740else
5741 cat >conftest.d <<EOF
5742module conftest; int main() { return 0; }
5743EOF
5744acx_cv_d_compiler_works=no
5fee5ec3 5745if test "x$GDC" != xno; then
7c6ae994
IB
5746 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5747 if test x"$errors" = x && test -f conftest.$ac_objext; then
5748 acx_cv_d_compiler_works=yes
5749 fi
5750 rm -f conftest.*
5751fi
5752fi
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5754$as_echo "$acx_cv_d_compiler_works" >&6; }
5755if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5fee5ec3
IB
5756 have_gdc=yes
5757else
5758 have_gdc=no
5759fi
5760
5213506e
RW
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5762$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
22e05272 5763if ${gcc_cv_prog_cmp_skip+:} false; then :
5213506e 5764 $as_echo_n "(cached) " >&6
a76494aa
PB
5765else
5766 echo abfoo >t1
5767 echo cdfoo >t2
b55e6680 5768 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5769 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5770 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5771 :
5772 else
5773 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5774 fi
5775 fi
a76494aa
PB
5776 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5777 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5778 :
a76494aa
PB
5779 else
5780 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5781 fi
5782 fi
5783 rm t1 t2
5784
5785fi
5213506e
RW
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5787$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5788do_compare="$gcc_cv_prog_cmp_skip"
5789
5790
55ffb5ed 5791
ff3ac0f4
ILT
5792# Check whether --enable-bootstrap was given.
5793if test "${enable_bootstrap+set}" = set; then :
5794 enableval=$enable_bootstrap;
5795else
5796 enable_bootstrap=default
5797fi
5798
5799
5800# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5801if test -r $srcdir/gcc/configure; then
5802 have_compiler=yes
5803else
5804 have_compiler=no
5805fi
ff3ac0f4
ILT
5806
5807case "$have_compiler:$host:$target:$enable_bootstrap" in
5808 *:*:*:no) ;;
5809
5810 # Default behavior. Enable bootstrap if we have a compiler
5811 # and we are in a native configuration.
5812 yes:$build:$build:default)
5813 enable_bootstrap=yes ;;
5814
5815 *:*:*:default)
5816 enable_bootstrap=no ;;
5817
5818 # We have a compiler and we are in a native configuration, bootstrap is ok
5819 yes:$build:$build:yes)
5820 ;;
5821
5822 # Other configurations, but we have a compiler. Assume the user knows
5823 # what he's doing.
5824 yes:*:*:yes)
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5826$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5827 ;;
5828
5829 # No compiler: if they passed --enable-bootstrap explicitly, fail
5830 no:*:*:yes)
22e05272 5831 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ff3ac0f4
ILT
5832
5833 # Fail if wrong command line
5834 *)
22e05272 5835 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ff3ac0f4
ILT
5836 ;;
5837esac
5838
5329b59a 5839# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
ffac9597
JM
5840# C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5841# require C++11 (or higher).
46070488 5842if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5329b59a 5843 CXX="$CXX -std=c++11"
ffac9597
JM
5844elif test "$have_compiler" = yes; then
5845 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5846 ac_ext=cpp
5847ac_cpp='$CXXCPP $CPPFLAGS'
5848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5851 ac_success=no
5852
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5854$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5855if ${ax_cv_cxx_compile_cxx11+:} false; then :
5856 $as_echo_n "(cached) " >&6
5857else
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859/* end confdefs.h. */
5860
5861
5862// If the compiler admits that it is not ready for C++11, why torture it?
5863// Hopefully, this will speed up the test.
5864
5865#ifndef __cplusplus
5866
5867#error "This is not a C++ compiler"
5868
5869#elif __cplusplus < 201103L
5870
5871#error "This is not a C++11 compiler"
5872
5873#else
5874
5875namespace cxx11
5876{
5877
5878 namespace test_static_assert
5879 {
5880
5881 template <typename T>
5882 struct check
5883 {
5884 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5885 };
5886
5887 }
5888
5889 namespace test_final_override
5890 {
5891
5892 struct Base
5893 {
5894 virtual ~Base() {}
5895 virtual void f() {}
5896 };
5897
5898 struct Derived : public Base
5899 {
5900 virtual ~Derived() override {}
5901 virtual void f() override {}
5902 };
5903
5904 }
5905
5906 namespace test_double_right_angle_brackets
5907 {
5908
5909 template < typename T >
5910 struct check {};
5911
5912 typedef check<void> single_type;
5913 typedef check<check<void>> double_type;
5914 typedef check<check<check<void>>> triple_type;
5915 typedef check<check<check<check<void>>>> quadruple_type;
5916
5917 }
5918
5919 namespace test_decltype
5920 {
5921
5922 int
5923 f()
5924 {
5925 int a = 1;
5926 decltype(a) b = 2;
5927 return a + b;
5928 }
5929
5930 }
5931
5932 namespace test_type_deduction
5933 {
5934
5935 template < typename T1, typename T2 >
5936 struct is_same
5937 {
5938 static const bool value = false;
5939 };
5940
5941 template < typename T >
5942 struct is_same<T, T>
5943 {
5944 static const bool value = true;
5945 };
5946
5947 template < typename T1, typename T2 >
5948 auto
5949 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5950 {
5951 return a1 + a2;
5952 }
5953
5954 int
5955 test(const int c, volatile int v)
5956 {
5957 static_assert(is_same<int, decltype(0)>::value == true, "");
5958 static_assert(is_same<int, decltype(c)>::value == false, "");
5959 static_assert(is_same<int, decltype(v)>::value == false, "");
5960 auto ac = c;
5961 auto av = v;
5962 auto sumi = ac + av + 'x';
5963 auto sumf = ac + av + 1.0;
5964 static_assert(is_same<int, decltype(ac)>::value == true, "");
5965 static_assert(is_same<int, decltype(av)>::value == true, "");
5966 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5967 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5968 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5969 return (sumf > 0.0) ? sumi : add(c, v);
5970 }
5971
5972 }
5973
5974 namespace test_noexcept
5975 {
5976
5977 int f() { return 0; }
5978 int g() noexcept { return 0; }
5979
5980 static_assert(noexcept(f()) == false, "");
5981 static_assert(noexcept(g()) == true, "");
5982
5983 }
5984
5985 namespace test_constexpr
5986 {
5987
5988 template < typename CharT >
5989 unsigned long constexpr
5990 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5991 {
5992 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5993 }
5994
5995 template < typename CharT >
5996 unsigned long constexpr
5997 strlen_c(const CharT *const s) noexcept
5998 {
5999 return strlen_c_r(s, 0UL);
6000 }
6001
6002 static_assert(strlen_c("") == 0UL, "");
6003 static_assert(strlen_c("1") == 1UL, "");
6004 static_assert(strlen_c("example") == 7UL, "");
6005 static_assert(strlen_c("another\0example") == 7UL, "");
6006
6007 }
6008
6009 namespace test_rvalue_references
6010 {
6011
6012 template < int N >
6013 struct answer
6014 {
6015 static constexpr int value = N;
6016 };
6017
6018 answer<1> f(int&) { return answer<1>(); }
6019 answer<2> f(const int&) { return answer<2>(); }
6020 answer<3> f(int&&) { return answer<3>(); }
6021
6022 void
6023 test()
6024 {
6025 int i = 0;
6026 const int c = 0;
6027 static_assert(decltype(f(i))::value == 1, "");
6028 static_assert(decltype(f(c))::value == 2, "");
6029 static_assert(decltype(f(0))::value == 3, "");
6030 }
6031
6032 }
6033
6034 namespace test_uniform_initialization
6035 {
6036
6037 struct test
6038 {
6039 static const int zero {};
6040 static const int one {1};
6041 };
6042
6043 static_assert(test::zero == 0, "");
6044 static_assert(test::one == 1, "");
6045
6046 }
6047
6048 namespace test_lambdas
6049 {
6050
6051 void
6052 test1()
6053 {
6054 auto lambda1 = [](){};
6055 auto lambda2 = lambda1;
6056 lambda1();
6057 lambda2();
6058 }
6059
6060 int
6061 test2()
6062 {
6063 auto a = [](int i, int j){ return i + j; }(1, 2);
6064 auto b = []() -> int { return '0'; }();
6065 auto c = [=](){ return a + b; }();
6066 auto d = [&](){ return c; }();
6067 auto e = [a, &b](int x) mutable {
6068 const auto identity = [](int y){ return y; };
6069 for (auto i = 0; i < a; ++i)
6070 a += b--;
6071 return x + identity(a + b);
6072 }(0);
6073 return a + b + c + d + e;
6074 }
6075
6076 int
6077 test3()
6078 {
6079 const auto nullary = [](){ return 0; };
6080 const auto unary = [](int x){ return x; };
6081 using nullary_t = decltype(nullary);
6082 using unary_t = decltype(unary);
6083 const auto higher1st = [](nullary_t f){ return f(); };
6084 const auto higher2nd = [unary](nullary_t f1){
6085 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6086 };
6087 return higher1st(nullary) + higher2nd(nullary)(unary);
6088 }
6089
6090 }
6091
6092 namespace test_variadic_templates
6093 {
6094
6095 template <int...>
6096 struct sum;
6097
6098 template <int N0, int... N1toN>
6099 struct sum<N0, N1toN...>
6100 {
6101 static constexpr auto value = N0 + sum<N1toN...>::value;
6102 };
6103
6104 template <>
6105 struct sum<>
6106 {
6107 static constexpr auto value = 0;
6108 };
6109
6110 static_assert(sum<>::value == 0, "");
6111 static_assert(sum<1>::value == 1, "");
6112 static_assert(sum<23>::value == 23, "");
6113 static_assert(sum<1, 2>::value == 3, "");
6114 static_assert(sum<5, 5, 11>::value == 21, "");
6115 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6116
6117 }
6118
6119 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6120 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6121 // because of this.
6122 namespace test_template_alias_sfinae
6123 {
6124
6125 struct foo {};
6126
6127 template<typename T>
6128 using member = typename T::member_type;
6129
6130 template<typename T>
6131 void func(...) {}
6132
6133 template<typename T>
6134 void func(member<T>*) {}
6135
6136 void test();
6137
6138 void test() { func<foo>(0); }
6139
6140 }
6141
6142} // namespace cxx11
6143
6144#endif // __cplusplus >= 201103L
6145
6146
6147
6148_ACEOF
6149if ac_fn_cxx_try_compile "$LINENO"; then :
6150 ax_cv_cxx_compile_cxx11=yes
6151else
6152 ax_cv_cxx_compile_cxx11=no
6153fi
6154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155fi
6156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6157$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6158 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6159 ac_success=yes
6160 fi
6161
6162 if test x$ac_success = xno; then
6163 for alternative in ${ax_cxx_compile_alternatives}; do
6164 switch="-std=gnu++${alternative}"
6165 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6167$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6168if eval \${$cachevar+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170else
6171 ac_save_CXX="$CXX"
6172 CXX="$CXX $switch"
6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174/* end confdefs.h. */
6175
6176
6177// If the compiler admits that it is not ready for C++11, why torture it?
6178// Hopefully, this will speed up the test.
6179
6180#ifndef __cplusplus
6181
6182#error "This is not a C++ compiler"
6183
6184#elif __cplusplus < 201103L
6185
6186#error "This is not a C++11 compiler"
6187
6188#else
6189
6190namespace cxx11
6191{
6192
6193 namespace test_static_assert
6194 {
6195
6196 template <typename T>
6197 struct check
6198 {
6199 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6200 };
6201
6202 }
6203
6204 namespace test_final_override
6205 {
6206
6207 struct Base
6208 {
6209 virtual ~Base() {}
6210 virtual void f() {}
6211 };
6212
6213 struct Derived : public Base
6214 {
6215 virtual ~Derived() override {}
6216 virtual void f() override {}
6217 };
6218
6219 }
6220
6221 namespace test_double_right_angle_brackets
6222 {
6223
6224 template < typename T >
6225 struct check {};
6226
6227 typedef check<void> single_type;
6228 typedef check<check<void>> double_type;
6229 typedef check<check<check<void>>> triple_type;
6230 typedef check<check<check<check<void>>>> quadruple_type;
6231
6232 }
6233
6234 namespace test_decltype
6235 {
6236
6237 int
6238 f()
6239 {
6240 int a = 1;
6241 decltype(a) b = 2;
6242 return a + b;
6243 }
6244
6245 }
6246
6247 namespace test_type_deduction
6248 {
6249
6250 template < typename T1, typename T2 >
6251 struct is_same
6252 {
6253 static const bool value = false;
6254 };
6255
6256 template < typename T >
6257 struct is_same<T, T>
6258 {
6259 static const bool value = true;
6260 };
6261
6262 template < typename T1, typename T2 >
6263 auto
6264 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6265 {
6266 return a1 + a2;
6267 }
6268
6269 int
6270 test(const int c, volatile int v)
6271 {
6272 static_assert(is_same<int, decltype(0)>::value == true, "");
6273 static_assert(is_same<int, decltype(c)>::value == false, "");
6274 static_assert(is_same<int, decltype(v)>::value == false, "");
6275 auto ac = c;
6276 auto av = v;
6277 auto sumi = ac + av + 'x';
6278 auto sumf = ac + av + 1.0;
6279 static_assert(is_same<int, decltype(ac)>::value == true, "");
6280 static_assert(is_same<int, decltype(av)>::value == true, "");
6281 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6282 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6283 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6284 return (sumf > 0.0) ? sumi : add(c, v);
6285 }
6286
6287 }
6288
6289 namespace test_noexcept
6290 {
6291
6292 int f() { return 0; }
6293 int g() noexcept { return 0; }
6294
6295 static_assert(noexcept(f()) == false, "");
6296 static_assert(noexcept(g()) == true, "");
6297
6298 }
6299
6300 namespace test_constexpr
6301 {
6302
6303 template < typename CharT >
6304 unsigned long constexpr
6305 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6306 {
6307 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6308 }
6309
6310 template < typename CharT >
6311 unsigned long constexpr
6312 strlen_c(const CharT *const s) noexcept
6313 {
6314 return strlen_c_r(s, 0UL);
6315 }
6316
6317 static_assert(strlen_c("") == 0UL, "");
6318 static_assert(strlen_c("1") == 1UL, "");
6319 static_assert(strlen_c("example") == 7UL, "");
6320 static_assert(strlen_c("another\0example") == 7UL, "");
6321
6322 }
6323
6324 namespace test_rvalue_references
6325 {
6326
6327 template < int N >
6328 struct answer
6329 {
6330 static constexpr int value = N;
6331 };
6332
6333 answer<1> f(int&) { return answer<1>(); }
6334 answer<2> f(const int&) { return answer<2>(); }
6335 answer<3> f(int&&) { return answer<3>(); }
6336
6337 void
6338 test()
6339 {
6340 int i = 0;
6341 const int c = 0;
6342 static_assert(decltype(f(i))::value == 1, "");
6343 static_assert(decltype(f(c))::value == 2, "");
6344 static_assert(decltype(f(0))::value == 3, "");
6345 }
6346
6347 }
6348
6349 namespace test_uniform_initialization
6350 {
6351
6352 struct test
6353 {
6354 static const int zero {};
6355 static const int one {1};
6356 };
6357
6358 static_assert(test::zero == 0, "");
6359 static_assert(test::one == 1, "");
6360
6361 }
6362
6363 namespace test_lambdas
6364 {
6365
6366 void
6367 test1()
6368 {
6369 auto lambda1 = [](){};
6370 auto lambda2 = lambda1;
6371 lambda1();
6372 lambda2();
6373 }
6374
6375 int
6376 test2()
6377 {
6378 auto a = [](int i, int j){ return i + j; }(1, 2);
6379 auto b = []() -> int { return '0'; }();
6380 auto c = [=](){ return a + b; }();
6381 auto d = [&](){ return c; }();
6382 auto e = [a, &b](int x) mutable {
6383 const auto identity = [](int y){ return y; };
6384 for (auto i = 0; i < a; ++i)
6385 a += b--;
6386 return x + identity(a + b);
6387 }(0);
6388 return a + b + c + d + e;
6389 }
6390
6391 int
6392 test3()
6393 {
6394 const auto nullary = [](){ return 0; };
6395 const auto unary = [](int x){ return x; };
6396 using nullary_t = decltype(nullary);
6397 using unary_t = decltype(unary);
6398 const auto higher1st = [](nullary_t f){ return f(); };
6399 const auto higher2nd = [unary](nullary_t f1){
6400 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6401 };
6402 return higher1st(nullary) + higher2nd(nullary)(unary);
6403 }
6404
6405 }
6406
6407 namespace test_variadic_templates
6408 {
6409
6410 template <int...>
6411 struct sum;
6412
6413 template <int N0, int... N1toN>
6414 struct sum<N0, N1toN...>
6415 {
6416 static constexpr auto value = N0 + sum<N1toN...>::value;
6417 };
6418
6419 template <>
6420 struct sum<>
6421 {
6422 static constexpr auto value = 0;
6423 };
6424
6425 static_assert(sum<>::value == 0, "");
6426 static_assert(sum<1>::value == 1, "");
6427 static_assert(sum<23>::value == 23, "");
6428 static_assert(sum<1, 2>::value == 3, "");
6429 static_assert(sum<5, 5, 11>::value == 21, "");
6430 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6431
6432 }
6433
6434 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6435 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6436 // because of this.
6437 namespace test_template_alias_sfinae
6438 {
6439
6440 struct foo {};
6441
6442 template<typename T>
6443 using member = typename T::member_type;
6444
6445 template<typename T>
6446 void func(...) {}
6447
6448 template<typename T>
6449 void func(member<T>*) {}
6450
6451 void test();
6452
6453 void test() { func<foo>(0); }
6454
6455 }
6456
6457} // namespace cxx11
6458
6459#endif // __cplusplus >= 201103L
6460
6461
6462
6463_ACEOF
6464if ac_fn_cxx_try_compile "$LINENO"; then :
6465 eval $cachevar=yes
6466else
6467 eval $cachevar=no
6468fi
6469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6470 CXX="$ac_save_CXX"
6471fi
6472eval ac_res=\$$cachevar
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6474$as_echo "$ac_res" >&6; }
6475 if eval test x\$$cachevar = xyes; then
6476 CXX="$CXX $switch"
6477 if test -n "$CXXCPP" ; then
6478 CXXCPP="$CXXCPP $switch"
6479 fi
6480 ac_success=yes
6481 break
6482 fi
6483 done
6484 fi
6485
6486 if test x$ac_success = xno; then
6487 for alternative in ${ax_cxx_compile_alternatives}; do
6488 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6489 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6491$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6492if eval \${$cachevar+:} false; then :
6493 $as_echo_n "(cached) " >&6
6494else
6495 ac_save_CXX="$CXX"
6496 CXX="$CXX $switch"
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498/* end confdefs.h. */
6499
6500
6501// If the compiler admits that it is not ready for C++11, why torture it?
6502// Hopefully, this will speed up the test.
6503
6504#ifndef __cplusplus
6505
6506#error "This is not a C++ compiler"
6507
6508#elif __cplusplus < 201103L
6509
6510#error "This is not a C++11 compiler"
6511
6512#else
6513
6514namespace cxx11
6515{
6516
6517 namespace test_static_assert
6518 {
6519
6520 template <typename T>
6521 struct check
6522 {
6523 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6524 };
6525
6526 }
6527
6528 namespace test_final_override
6529 {
6530
6531 struct Base
6532 {
6533 virtual ~Base() {}
6534 virtual void f() {}
6535 };
6536
6537 struct Derived : public Base
6538 {
6539 virtual ~Derived() override {}
6540 virtual void f() override {}
6541 };
6542
6543 }
6544
6545 namespace test_double_right_angle_brackets
6546 {
6547
6548 template < typename T >
6549 struct check {};
6550
6551 typedef check<void> single_type;
6552 typedef check<check<void>> double_type;
6553 typedef check<check<check<void>>> triple_type;
6554 typedef check<check<check<check<void>>>> quadruple_type;
6555
6556 }
6557
6558 namespace test_decltype
6559 {
6560
6561 int
6562 f()
6563 {
6564 int a = 1;
6565 decltype(a) b = 2;
6566 return a + b;
6567 }
6568
6569 }
6570
6571 namespace test_type_deduction
6572 {
6573
6574 template < typename T1, typename T2 >
6575 struct is_same
6576 {
6577 static const bool value = false;
6578 };
6579
6580 template < typename T >
6581 struct is_same<T, T>
6582 {
6583 static const bool value = true;
6584 };
6585
6586 template < typename T1, typename T2 >
6587 auto
6588 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6589 {
6590 return a1 + a2;
6591 }
6592
6593 int
6594 test(const int c, volatile int v)
6595 {
6596 static_assert(is_same<int, decltype(0)>::value == true, "");
6597 static_assert(is_same<int, decltype(c)>::value == false, "");
6598 static_assert(is_same<int, decltype(v)>::value == false, "");
6599 auto ac = c;
6600 auto av = v;
6601 auto sumi = ac + av + 'x';
6602 auto sumf = ac + av + 1.0;
6603 static_assert(is_same<int, decltype(ac)>::value == true, "");
6604 static_assert(is_same<int, decltype(av)>::value == true, "");
6605 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6606 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6607 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6608 return (sumf > 0.0) ? sumi : add(c, v);
6609 }
6610
6611 }
6612
6613 namespace test_noexcept
6614 {
6615
6616 int f() { return 0; }
6617 int g() noexcept { return 0; }
6618
6619 static_assert(noexcept(f()) == false, "");
6620 static_assert(noexcept(g()) == true, "");
6621
6622 }
6623
6624 namespace test_constexpr
6625 {
6626
6627 template < typename CharT >
6628 unsigned long constexpr
6629 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6630 {
6631 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6632 }
6633
6634 template < typename CharT >
6635 unsigned long constexpr
6636 strlen_c(const CharT *const s) noexcept
6637 {
6638 return strlen_c_r(s, 0UL);
6639 }
6640
6641 static_assert(strlen_c("") == 0UL, "");
6642 static_assert(strlen_c("1") == 1UL, "");
6643 static_assert(strlen_c("example") == 7UL, "");
6644 static_assert(strlen_c("another\0example") == 7UL, "");
6645
6646 }
6647
6648 namespace test_rvalue_references
6649 {
6650
6651 template < int N >
6652 struct answer
6653 {
6654 static constexpr int value = N;
6655 };
6656
6657 answer<1> f(int&) { return answer<1>(); }
6658 answer<2> f(const int&) { return answer<2>(); }
6659 answer<3> f(int&&) { return answer<3>(); }
6660
6661 void
6662 test()
6663 {
6664 int i = 0;
6665 const int c = 0;
6666 static_assert(decltype(f(i))::value == 1, "");
6667 static_assert(decltype(f(c))::value == 2, "");
6668 static_assert(decltype(f(0))::value == 3, "");
6669 }
6670
6671 }
6672
6673 namespace test_uniform_initialization
6674 {
6675
6676 struct test
6677 {
6678 static const int zero {};
6679 static const int one {1};
6680 };
6681
6682 static_assert(test::zero == 0, "");
6683 static_assert(test::one == 1, "");
6684
6685 }
6686
6687 namespace test_lambdas
6688 {
6689
6690 void
6691 test1()
6692 {
6693 auto lambda1 = [](){};
6694 auto lambda2 = lambda1;
6695 lambda1();
6696 lambda2();
6697 }
6698
6699 int
6700 test2()
6701 {
6702 auto a = [](int i, int j){ return i + j; }(1, 2);
6703 auto b = []() -> int { return '0'; }();
6704 auto c = [=](){ return a + b; }();
6705 auto d = [&](){ return c; }();
6706 auto e = [a, &b](int x) mutable {
6707 const auto identity = [](int y){ return y; };
6708 for (auto i = 0; i < a; ++i)
6709 a += b--;
6710 return x + identity(a + b);
6711 }(0);
6712 return a + b + c + d + e;
6713 }
6714
6715 int
6716 test3()
6717 {
6718 const auto nullary = [](){ return 0; };
6719 const auto unary = [](int x){ return x; };
6720 using nullary_t = decltype(nullary);
6721 using unary_t = decltype(unary);
6722 const auto higher1st = [](nullary_t f){ return f(); };
6723 const auto higher2nd = [unary](nullary_t f1){
6724 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6725 };
6726 return higher1st(nullary) + higher2nd(nullary)(unary);
6727 }
6728
6729 }
6730
6731 namespace test_variadic_templates
6732 {
6733
6734 template <int...>
6735 struct sum;
6736
6737 template <int N0, int... N1toN>
6738 struct sum<N0, N1toN...>
6739 {
6740 static constexpr auto value = N0 + sum<N1toN...>::value;
6741 };
6742
6743 template <>
6744 struct sum<>
6745 {
6746 static constexpr auto value = 0;
6747 };
6748
6749 static_assert(sum<>::value == 0, "");
6750 static_assert(sum<1>::value == 1, "");
6751 static_assert(sum<23>::value == 23, "");
6752 static_assert(sum<1, 2>::value == 3, "");
6753 static_assert(sum<5, 5, 11>::value == 21, "");
6754 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6755
6756 }
6757
6758 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6759 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6760 // because of this.
6761 namespace test_template_alias_sfinae
6762 {
6763
6764 struct foo {};
6765
6766 template<typename T>
6767 using member = typename T::member_type;
6768
6769 template<typename T>
6770 void func(...) {}
6771
6772 template<typename T>
6773 void func(member<T>*) {}
6774
6775 void test();
6776
6777 void test() { func<foo>(0); }
6778
6779 }
6780
6781} // namespace cxx11
6782
6783#endif // __cplusplus >= 201103L
6784
6785
6786
6787_ACEOF
6788if ac_fn_cxx_try_compile "$LINENO"; then :
6789 eval $cachevar=yes
6790else
6791 eval $cachevar=no
6792fi
6793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6794 CXX="$ac_save_CXX"
6795fi
6796eval ac_res=\$$cachevar
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6798$as_echo "$ac_res" >&6; }
6799 if eval test x\$$cachevar = xyes; then
6800 CXX="$CXX $switch"
6801 if test -n "$CXXCPP" ; then
6802 CXXCPP="$CXXCPP $switch"
6803 fi
6804 ac_success=yes
6805 break
6806 fi
6807 done
6808 if test x$ac_success = xyes; then
6809 break
6810 fi
6811 done
6812 fi
7ffcf5d6 6813
ffac9597
JM
6814 ac_ext=c
6815ac_cpp='$CPP $CPPFLAGS'
6816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6818ac_compiler_gnu=$ac_cv_c_compiler_gnu
6819
6820 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6821 if test x$ac_success = xno; then
6822 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6823 fi
6824 fi
6825 if test x$ac_success = xno; then
6826 HAVE_CXX11=0
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6828$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6829 else
6830 HAVE_CXX11=1
6831
6832$as_echo "#define HAVE_CXX11 1" >>confdefs.h
6833
6834 fi
6835
6836
7ffcf5d6
TB
6837
6838 if test "${build}" != "${host}"; then
6839 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6840 ac_ext=cpp
6841ac_cpp='$CXXCPP $CPPFLAGS'
6842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6845 ac_success=no
6846 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6847 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6848 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6849 CXX="$CXX_FOR_BUILD"
6850 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6851 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6853$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6854if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6855 $as_echo_n "(cached) " >&6
6856else
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858/* end confdefs.h. */
6859
6860
6861// If the compiler admits that it is not ready for C++11, why torture it?
6862// Hopefully, this will speed up the test.
6863
6864#ifndef __cplusplus
6865
6866#error "This is not a C++ compiler"
6867
6868#elif __cplusplus < 201103L
6869
6870#error "This is not a C++11 compiler"
6871
6872#else
6873
6874namespace cxx11
6875{
6876
6877 namespace test_static_assert
6878 {
6879
6880 template <typename T>
6881 struct check
6882 {
6883 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6884 };
6885
6886 }
6887
6888 namespace test_final_override
6889 {
6890
6891 struct Base
6892 {
6893 virtual ~Base() {}
6894 virtual void f() {}
6895 };
6896
6897 struct Derived : public Base
6898 {
6899 virtual ~Derived() override {}
6900 virtual void f() override {}
6901 };
6902
6903 }
6904
6905 namespace test_double_right_angle_brackets
6906 {
6907
6908 template < typename T >
6909 struct check {};
6910
6911 typedef check<void> single_type;
6912 typedef check<check<void>> double_type;
6913 typedef check<check<check<void>>> triple_type;
6914 typedef check<check<check<check<void>>>> quadruple_type;
6915
6916 }
6917
6918 namespace test_decltype
6919 {
6920
6921 int
6922 f()
6923 {
6924 int a = 1;
6925 decltype(a) b = 2;
6926 return a + b;
6927 }
6928
6929 }
6930
6931 namespace test_type_deduction
6932 {
6933
6934 template < typename T1, typename T2 >
6935 struct is_same
6936 {
6937 static const bool value = false;
6938 };
6939
6940 template < typename T >
6941 struct is_same<T, T>
6942 {
6943 static const bool value = true;
6944 };
6945
6946 template < typename T1, typename T2 >
6947 auto
6948 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6949 {
6950 return a1 + a2;
6951 }
6952
6953 int
6954 test(const int c, volatile int v)
6955 {
6956 static_assert(is_same<int, decltype(0)>::value == true, "");
6957 static_assert(is_same<int, decltype(c)>::value == false, "");
6958 static_assert(is_same<int, decltype(v)>::value == false, "");
6959 auto ac = c;
6960 auto av = v;
6961 auto sumi = ac + av + 'x';
6962 auto sumf = ac + av + 1.0;
6963 static_assert(is_same<int, decltype(ac)>::value == true, "");
6964 static_assert(is_same<int, decltype(av)>::value == true, "");
6965 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6966 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6967 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6968 return (sumf > 0.0) ? sumi : add(c, v);
6969 }
6970
6971 }
6972
6973 namespace test_noexcept
6974 {
6975
6976 int f() { return 0; }
6977 int g() noexcept { return 0; }
6978
6979 static_assert(noexcept(f()) == false, "");
6980 static_assert(noexcept(g()) == true, "");
6981
6982 }
6983
6984 namespace test_constexpr
6985 {
6986
6987 template < typename CharT >
6988 unsigned long constexpr
6989 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6990 {
6991 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6992 }
6993
6994 template < typename CharT >
6995 unsigned long constexpr
6996 strlen_c(const CharT *const s) noexcept
6997 {
6998 return strlen_c_r(s, 0UL);
6999 }
7000
7001 static_assert(strlen_c("") == 0UL, "");
7002 static_assert(strlen_c("1") == 1UL, "");
7003 static_assert(strlen_c("example") == 7UL, "");
7004 static_assert(strlen_c("another\0example") == 7UL, "");
7005
7006 }
7007
7008 namespace test_rvalue_references
7009 {
7010
7011 template < int N >
7012 struct answer
7013 {
7014 static constexpr int value = N;
7015 };
7016
7017 answer<1> f(int&) { return answer<1>(); }
7018 answer<2> f(const int&) { return answer<2>(); }
7019 answer<3> f(int&&) { return answer<3>(); }
7020
7021 void
7022 test()
7023 {
7024 int i = 0;
7025 const int c = 0;
7026 static_assert(decltype(f(i))::value == 1, "");
7027 static_assert(decltype(f(c))::value == 2, "");
7028 static_assert(decltype(f(0))::value == 3, "");
7029 }
7030
7031 }
7032
7033 namespace test_uniform_initialization
7034 {
7035
7036 struct test
7037 {
7038 static const int zero {};
7039 static const int one {1};
7040 };
7041
7042 static_assert(test::zero == 0, "");
7043 static_assert(test::one == 1, "");
7044
7045 }
7046
7047 namespace test_lambdas
7048 {
7049
7050 void
7051 test1()
7052 {
7053 auto lambda1 = [](){};
7054 auto lambda2 = lambda1;
7055 lambda1();
7056 lambda2();
7057 }
7058
7059 int
7060 test2()
7061 {
7062 auto a = [](int i, int j){ return i + j; }(1, 2);
7063 auto b = []() -> int { return '0'; }();
7064 auto c = [=](){ return a + b; }();
7065 auto d = [&](){ return c; }();
7066 auto e = [a, &b](int x) mutable {
7067 const auto identity = [](int y){ return y; };
7068 for (auto i = 0; i < a; ++i)
7069 a += b--;
7070 return x + identity(a + b);
7071 }(0);
7072 return a + b + c + d + e;
7073 }
7074
7075 int
7076 test3()
7077 {
7078 const auto nullary = [](){ return 0; };
7079 const auto unary = [](int x){ return x; };
7080 using nullary_t = decltype(nullary);
7081 using unary_t = decltype(unary);
7082 const auto higher1st = [](nullary_t f){ return f(); };
7083 const auto higher2nd = [unary](nullary_t f1){
7084 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7085 };
7086 return higher1st(nullary) + higher2nd(nullary)(unary);
7087 }
7088
7089 }
7090
7091 namespace test_variadic_templates
7092 {
7093
7094 template <int...>
7095 struct sum;
7096
7097 template <int N0, int... N1toN>
7098 struct sum<N0, N1toN...>
7099 {
7100 static constexpr auto value = N0 + sum<N1toN...>::value;
7101 };
7102
7103 template <>
7104 struct sum<>
7105 {
7106 static constexpr auto value = 0;
7107 };
7108
7109 static_assert(sum<>::value == 0, "");
7110 static_assert(sum<1>::value == 1, "");
7111 static_assert(sum<23>::value == 23, "");
7112 static_assert(sum<1, 2>::value == 3, "");
7113 static_assert(sum<5, 5, 11>::value == 21, "");
7114 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7115
7116 }
7117
7118 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7119 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7120 // because of this.
7121 namespace test_template_alias_sfinae
7122 {
7123
7124 struct foo {};
7125
7126 template<typename T>
7127 using member = typename T::member_type;
7128
7129 template<typename T>
7130 void func(...) {}
7131
7132 template<typename T>
7133 void func(member<T>*) {}
7134
7135 void test();
7136
7137 void test() { func<foo>(0); }
7138
7139 }
7140
7141} // namespace cxx11
7142
7143#endif // __cplusplus >= 201103L
7144
7145
7146
7147_ACEOF
7148if ac_fn_cxx_try_compile "$LINENO"; then :
7149 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7150else
7151 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7152fi
7153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7154fi
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7156$as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7157 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7158 ac_success=yes
7159 fi
7160
7161 if test x$ac_success = xno; then
7162 for alternative in ${ax_cxx_compile_alternatives}; do
7163 switch="-std=gnu++${alternative}"
7164 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7166$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7167if eval \${$cachevar+:} false; then :
7168 $as_echo_n "(cached) " >&6
7169else
7170 ac_save_CXX="$CXX"
7171 CXX="$CXX $switch"
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173/* end confdefs.h. */
7174
7175
7176// If the compiler admits that it is not ready for C++11, why torture it?
7177// Hopefully, this will speed up the test.
7178
7179#ifndef __cplusplus
7180
7181#error "This is not a C++ compiler"
7182
7183#elif __cplusplus < 201103L
7184
7185#error "This is not a C++11 compiler"
7186
7187#else
7188
7189namespace cxx11
7190{
7191
7192 namespace test_static_assert
7193 {
7194
7195 template <typename T>
7196 struct check
7197 {
7198 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7199 };
7200
7201 }
7202
7203 namespace test_final_override
7204 {
7205
7206 struct Base
7207 {
7208 virtual ~Base() {}
7209 virtual void f() {}
7210 };
7211
7212 struct Derived : public Base
7213 {
7214 virtual ~Derived() override {}
7215 virtual void f() override {}
7216 };
7217
7218 }
7219
7220 namespace test_double_right_angle_brackets
7221 {
7222
7223 template < typename T >
7224 struct check {};
7225
7226 typedef check<void> single_type;
7227 typedef check<check<void>> double_type;
7228 typedef check<check<check<void>>> triple_type;
7229 typedef check<check<check<check<void>>>> quadruple_type;
7230
7231 }
7232
7233 namespace test_decltype
7234 {
7235
7236 int
7237 f()
7238 {
7239 int a = 1;
7240 decltype(a) b = 2;
7241 return a + b;
7242 }
7243
7244 }
7245
7246 namespace test_type_deduction
7247 {
7248
7249 template < typename T1, typename T2 >
7250 struct is_same
7251 {
7252 static const bool value = false;
7253 };
7254
7255 template < typename T >
7256 struct is_same<T, T>
7257 {
7258 static const bool value = true;
7259 };
7260
7261 template < typename T1, typename T2 >
7262 auto
7263 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7264 {
7265 return a1 + a2;
7266 }
7267
7268 int
7269 test(const int c, volatile int v)
7270 {
7271 static_assert(is_same<int, decltype(0)>::value == true, "");
7272 static_assert(is_same<int, decltype(c)>::value == false, "");
7273 static_assert(is_same<int, decltype(v)>::value == false, "");
7274 auto ac = c;
7275 auto av = v;
7276 auto sumi = ac + av + 'x';
7277 auto sumf = ac + av + 1.0;
7278 static_assert(is_same<int, decltype(ac)>::value == true, "");
7279 static_assert(is_same<int, decltype(av)>::value == true, "");
7280 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7281 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7282 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7283 return (sumf > 0.0) ? sumi : add(c, v);
7284 }
7285
7286 }
7287
7288 namespace test_noexcept
7289 {
7290
7291 int f() { return 0; }
7292 int g() noexcept { return 0; }
7293
7294 static_assert(noexcept(f()) == false, "");
7295 static_assert(noexcept(g()) == true, "");
7296
7297 }
7298
7299 namespace test_constexpr
7300 {
7301
7302 template < typename CharT >
7303 unsigned long constexpr
7304 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7305 {
7306 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7307 }
7308
7309 template < typename CharT >
7310 unsigned long constexpr
7311 strlen_c(const CharT *const s) noexcept
7312 {
7313 return strlen_c_r(s, 0UL);
7314 }
7315
7316 static_assert(strlen_c("") == 0UL, "");
7317 static_assert(strlen_c("1") == 1UL, "");
7318 static_assert(strlen_c("example") == 7UL, "");
7319 static_assert(strlen_c("another\0example") == 7UL, "");
7320
7321 }
7322
7323 namespace test_rvalue_references
7324 {
7325
7326 template < int N >
7327 struct answer
7328 {
7329 static constexpr int value = N;
7330 };
7331
7332 answer<1> f(int&) { return answer<1>(); }
7333 answer<2> f(const int&) { return answer<2>(); }
7334 answer<3> f(int&&) { return answer<3>(); }
7335
7336 void
7337 test()
7338 {
7339 int i = 0;
7340 const int c = 0;
7341 static_assert(decltype(f(i))::value == 1, "");
7342 static_assert(decltype(f(c))::value == 2, "");
7343 static_assert(decltype(f(0))::value == 3, "");
7344 }
7345
7346 }
7347
7348 namespace test_uniform_initialization
7349 {
7350
7351 struct test
7352 {
7353 static const int zero {};
7354 static const int one {1};
7355 };
7356
7357 static_assert(test::zero == 0, "");
7358 static_assert(test::one == 1, "");
7359
7360 }
7361
7362 namespace test_lambdas
7363 {
7364
7365 void
7366 test1()
7367 {
7368 auto lambda1 = [](){};
7369 auto lambda2 = lambda1;
7370 lambda1();
7371 lambda2();
7372 }
7373
7374 int
7375 test2()
7376 {
7377 auto a = [](int i, int j){ return i + j; }(1, 2);
7378 auto b = []() -> int { return '0'; }();
7379 auto c = [=](){ return a + b; }();
7380 auto d = [&](){ return c; }();
7381 auto e = [a, &b](int x) mutable {
7382 const auto identity = [](int y){ return y; };
7383 for (auto i = 0; i < a; ++i)
7384 a += b--;
7385 return x + identity(a + b);
7386 }(0);
7387 return a + b + c + d + e;
7388 }
7389
7390 int
7391 test3()
7392 {
7393 const auto nullary = [](){ return 0; };
7394 const auto unary = [](int x){ return x; };
7395 using nullary_t = decltype(nullary);
7396 using unary_t = decltype(unary);
7397 const auto higher1st = [](nullary_t f){ return f(); };
7398 const auto higher2nd = [unary](nullary_t f1){
7399 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7400 };
7401 return higher1st(nullary) + higher2nd(nullary)(unary);
7402 }
7403
7404 }
7405
7406 namespace test_variadic_templates
7407 {
7408
7409 template <int...>
7410 struct sum;
7411
7412 template <int N0, int... N1toN>
7413 struct sum<N0, N1toN...>
7414 {
7415 static constexpr auto value = N0 + sum<N1toN...>::value;
7416 };
7417
7418 template <>
7419 struct sum<>
7420 {
7421 static constexpr auto value = 0;
7422 };
7423
7424 static_assert(sum<>::value == 0, "");
7425 static_assert(sum<1>::value == 1, "");
7426 static_assert(sum<23>::value == 23, "");
7427 static_assert(sum<1, 2>::value == 3, "");
7428 static_assert(sum<5, 5, 11>::value == 21, "");
7429 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7430
7431 }
7432
7433 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7434 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7435 // because of this.
7436 namespace test_template_alias_sfinae
7437 {
7438
7439 struct foo {};
7440
7441 template<typename T>
7442 using member = typename T::member_type;
7443
7444 template<typename T>
7445 void func(...) {}
7446
7447 template<typename T>
7448 void func(member<T>*) {}
7449
7450 void test();
7451
7452 void test() { func<foo>(0); }
7453
7454 }
7455
7456} // namespace cxx11
7457
7458#endif // __cplusplus >= 201103L
7459
7460
7461
7462_ACEOF
7463if ac_fn_cxx_try_compile "$LINENO"; then :
7464 eval $cachevar=yes
7465else
7466 eval $cachevar=no
7467fi
7468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469 CXX="$ac_save_CXX"
7470fi
7471eval ac_res=\$$cachevar
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7473$as_echo "$ac_res" >&6; }
7474 if eval test x\$$cachevar = xyes; then
7475 CXX="$CXX $switch"
7476 if test -n "$CXXCPP" ; then
7477 CXXCPP="$CXXCPP $switch"
7478 fi
7479 ac_success=yes
7480 break
7481 fi
7482 done
7483 fi
7484
7485 if test x$ac_success = xno; then
7486 for alternative in ${ax_cxx_compile_alternatives}; do
7487 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7488 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7490$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7491if eval \${$cachevar+:} false; then :
7492 $as_echo_n "(cached) " >&6
7493else
7494 ac_save_CXX="$CXX"
7495 CXX="$CXX $switch"
7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497/* end confdefs.h. */
7498
7499
7500// If the compiler admits that it is not ready for C++11, why torture it?
7501// Hopefully, this will speed up the test.
7502
7503#ifndef __cplusplus
7504
7505#error "This is not a C++ compiler"
7506
7507#elif __cplusplus < 201103L
7508
7509#error "This is not a C++11 compiler"
7510
7511#else
7512
7513namespace cxx11
7514{
7515
7516 namespace test_static_assert
7517 {
7518
7519 template <typename T>
7520 struct check
7521 {
7522 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7523 };
7524
7525 }
7526
7527 namespace test_final_override
7528 {
7529
7530 struct Base
7531 {
7532 virtual ~Base() {}
7533 virtual void f() {}
7534 };
7535
7536 struct Derived : public Base
7537 {
7538 virtual ~Derived() override {}
7539 virtual void f() override {}
7540 };
7541
7542 }
7543
7544 namespace test_double_right_angle_brackets
7545 {
7546
7547 template < typename T >
7548 struct check {};
7549
7550 typedef check<void> single_type;
7551 typedef check<check<void>> double_type;
7552 typedef check<check<check<void>>> triple_type;
7553 typedef check<check<check<check<void>>>> quadruple_type;
7554
7555 }
7556
7557 namespace test_decltype
7558 {
7559
7560 int
7561 f()
7562 {
7563 int a = 1;
7564 decltype(a) b = 2;
7565 return a + b;
7566 }
7567
7568 }
7569
7570 namespace test_type_deduction
7571 {
7572
7573 template < typename T1, typename T2 >
7574 struct is_same
7575 {
7576 static const bool value = false;
7577 };
7578
7579 template < typename T >
7580 struct is_same<T, T>
7581 {
7582 static const bool value = true;
7583 };
7584
7585 template < typename T1, typename T2 >
7586 auto
7587 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7588 {
7589 return a1 + a2;
7590 }
7591
7592 int
7593 test(const int c, volatile int v)
7594 {
7595 static_assert(is_same<int, decltype(0)>::value == true, "");
7596 static_assert(is_same<int, decltype(c)>::value == false, "");
7597 static_assert(is_same<int, decltype(v)>::value == false, "");
7598 auto ac = c;
7599 auto av = v;
7600 auto sumi = ac + av + 'x';
7601 auto sumf = ac + av + 1.0;
7602 static_assert(is_same<int, decltype(ac)>::value == true, "");
7603 static_assert(is_same<int, decltype(av)>::value == true, "");
7604 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7605 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7606 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7607 return (sumf > 0.0) ? sumi : add(c, v);
7608 }
7609
7610 }
7611
7612 namespace test_noexcept
7613 {
7614
7615 int f() { return 0; }
7616 int g() noexcept { return 0; }
7617
7618 static_assert(noexcept(f()) == false, "");
7619 static_assert(noexcept(g()) == true, "");
7620
7621 }
7622
7623 namespace test_constexpr
7624 {
7625
7626 template < typename CharT >
7627 unsigned long constexpr
7628 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7629 {
7630 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7631 }
7632
7633 template < typename CharT >
7634 unsigned long constexpr
7635 strlen_c(const CharT *const s) noexcept
7636 {
7637 return strlen_c_r(s, 0UL);
7638 }
7639
7640 static_assert(strlen_c("") == 0UL, "");
7641 static_assert(strlen_c("1") == 1UL, "");
7642 static_assert(strlen_c("example") == 7UL, "");
7643 static_assert(strlen_c("another\0example") == 7UL, "");
7644
7645 }
7646
7647 namespace test_rvalue_references
7648 {
7649
7650 template < int N >
7651 struct answer
7652 {
7653 static constexpr int value = N;
7654 };
7655
7656 answer<1> f(int&) { return answer<1>(); }
7657 answer<2> f(const int&) { return answer<2>(); }
7658 answer<3> f(int&&) { return answer<3>(); }
7659
7660 void
7661 test()
7662 {
7663 int i = 0;
7664 const int c = 0;
7665 static_assert(decltype(f(i))::value == 1, "");
7666 static_assert(decltype(f(c))::value == 2, "");
7667 static_assert(decltype(f(0))::value == 3, "");
7668 }
7669
7670 }
7671
7672 namespace test_uniform_initialization
7673 {
7674
7675 struct test
7676 {
7677 static const int zero {};
7678 static const int one {1};
7679 };
7680
7681 static_assert(test::zero == 0, "");
7682 static_assert(test::one == 1, "");
7683
7684 }
7685
7686 namespace test_lambdas
7687 {
7688
7689 void
7690 test1()
7691 {
7692 auto lambda1 = [](){};
7693 auto lambda2 = lambda1;
7694 lambda1();
7695 lambda2();
7696 }
7697
7698 int
7699 test2()
7700 {
7701 auto a = [](int i, int j){ return i + j; }(1, 2);
7702 auto b = []() -> int { return '0'; }();
7703 auto c = [=](){ return a + b; }();
7704 auto d = [&](){ return c; }();
7705 auto e = [a, &b](int x) mutable {
7706 const auto identity = [](int y){ return y; };
7707 for (auto i = 0; i < a; ++i)
7708 a += b--;
7709 return x + identity(a + b);
7710 }(0);
7711 return a + b + c + d + e;
7712 }
7713
7714 int
7715 test3()
7716 {
7717 const auto nullary = [](){ return 0; };
7718 const auto unary = [](int x){ return x; };
7719 using nullary_t = decltype(nullary);
7720 using unary_t = decltype(unary);
7721 const auto higher1st = [](nullary_t f){ return f(); };
7722 const auto higher2nd = [unary](nullary_t f1){
7723 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7724 };
7725 return higher1st(nullary) + higher2nd(nullary)(unary);
7726 }
7727
7728 }
7729
7730 namespace test_variadic_templates
7731 {
7732
7733 template <int...>
7734 struct sum;
7735
7736 template <int N0, int... N1toN>
7737 struct sum<N0, N1toN...>
7738 {
7739 static constexpr auto value = N0 + sum<N1toN...>::value;
7740 };
7741
7742 template <>
7743 struct sum<>
7744 {
7745 static constexpr auto value = 0;
7746 };
7747
7748 static_assert(sum<>::value == 0, "");
7749 static_assert(sum<1>::value == 1, "");
7750 static_assert(sum<23>::value == 23, "");
7751 static_assert(sum<1, 2>::value == 3, "");
7752 static_assert(sum<5, 5, 11>::value == 21, "");
7753 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7754
7755 }
7756
7757 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7758 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7759 // because of this.
7760 namespace test_template_alias_sfinae
7761 {
7762
7763 struct foo {};
7764
7765 template<typename T>
7766 using member = typename T::member_type;
7767
7768 template<typename T>
7769 void func(...) {}
7770
7771 template<typename T>
7772 void func(member<T>*) {}
7773
7774 void test();
7775
7776 void test() { func<foo>(0); }
7777
7778 }
7779
7780} // namespace cxx11
7781
7782#endif // __cplusplus >= 201103L
7783
7784
7785
7786_ACEOF
7787if ac_fn_cxx_try_compile "$LINENO"; then :
7788 eval $cachevar=yes
7789else
7790 eval $cachevar=no
7791fi
7792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7793 CXX="$ac_save_CXX"
7794fi
7795eval ac_res=\$$cachevar
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7797$as_echo "$ac_res" >&6; }
7798 if eval test x\$$cachevar = xyes; then
7799 CXX="$CXX $switch"
7800 if test -n "$CXXCPP" ; then
7801 CXXCPP="$CXXCPP $switch"
7802 fi
7803 ac_success=yes
7804 break
7805 fi
7806 done
7807 if test x$ac_success = xyes; then
7808 break
7809 fi
7810 done
7811 fi
7812 CXX_FOR_BUILD="$CXX"
7813 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7814 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7815 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7816 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7817 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7818 ac_ext=c
7819ac_cpp='$CPP $CPPFLAGS'
7820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822ac_compiler_gnu=$ac_cv_c_compiler_gnu
7823
7824 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7825 if test x$ac_success = xno; then
7826 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7827 fi
7828 fi
7829 if test x$ac_success = xno; then
7830 HAVE_CXX11_FOR_BUILD=0
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7832$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7833 else
7834 HAVE_CXX11_FOR_BUILD=1
7835
7836$as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7837
7838 fi
7839
7840
7841 fi
46070488
JM
7842fi
7843
4a5e71f2
L
7844# Check whether --enable-pgo-build was given.
7845if test "${enable_pgo_build+set}" = set; then :
7846 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7847else
7848 enable_pgo_build=no
7849fi
7850
7851
7852# Issue errors and warnings for invalid/strange PGO build combinations.
7853case "$have_compiler:$host:$target:$enable_pgo_build" in
7854 *:*:*:no) ;;
7855
7856 # Allow the PGO build only if we aren't building a compiler and
7857 # we are in a native configuration.
7858 no:$build:$build:yes | no:$build:$build:lto) ;;
7859
7860 # Disallow the PGO bootstrap if we are building a compiler.
7861 yes:*:*:yes | yes:*:*:lto)
7862 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7863
7864 *)
7865 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7866 ;;
7867esac
7868
7869if test "$enable_pgo_build" != "no"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7871$as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7872 old_CFLAGS="$CFLAGS"
7873 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7874 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7875
7876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877/* end confdefs.h. */
7878int foo;
7879_ACEOF
7880if ac_fn_c_try_compile "$LINENO"; then :
7881
7882else
7883 PGO_BUILD_GEN_CFLAGS=
7884fi
7885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7886 CFLAGS="$old_CFLAGS"
7887 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7889$as_echo "yes" >&6; }
7890 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7891 else
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893$as_echo "no" >&6; }
7894 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7895 fi
7896
7897 if test "$enable_pgo_build" = "lto"; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7899$as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7900 old_CFLAGS="$CFLAGS"
7901 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7902 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904/* end confdefs.h. */
7905int foo;
7906_ACEOF
7907if ac_fn_c_try_compile "$LINENO"; then :
7908
7909else
7910 PGO_BUILD_LTO_CFLAGS=
7911fi
7912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7913 CFLAGS="$old_CFLAGS"
7914 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7916$as_echo "yes" >&6; }
7917 else
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919$as_echo "no" >&6; }
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7921$as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7922 fi
7923 fi
7924fi
7925
7926
7927
7928
592c90ff
KG
7929# Used for setting $lt_cv_objdir
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7931$as_echo_n "checking for objdir... " >&6; }
22e05272 7932if ${lt_cv_objdir+:} false; then :
592c90ff
KG
7933 $as_echo_n "(cached) " >&6
7934else
7935 rm -f .libs 2>/dev/null
7936mkdir .libs 2>/dev/null
7937if test -d .libs; then
7938 lt_cv_objdir=.libs
7939else
7940 # MS-DOS does not allow filenames that begin with a dot.
7941 lt_cv_objdir=_libs
7942fi
7943rmdir .libs 2>/dev/null
7944fi
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7946$as_echo "$lt_cv_objdir" >&6; }
7947objdir=$lt_cv_objdir
7948
7949
7950
7951
7952
7953cat >>confdefs.h <<_ACEOF
7954#define LT_OBJDIR "$lt_cv_objdir/"
7955_ACEOF
7956
7957
7958
acd26225 7959# Check for GMP, MPFR and MPC
91e0d220
AP
7960require_gmp=no
7961require_mpc=no
7962if test -d ${srcdir}/gcc ; then
7963 require_gmp=yes
7964 require_mpc=yes
7965fi
7966if test -d ${srcdir}/gdb ; then
5977d14a
CC
7967 if test "x$enable_gdb" != xno; then
7968 require_gmp=yes
7969 fi
91e0d220
AP
7970fi
7971
7972gmplibs="-lmpfr -lgmp"
7973if test x"$require_mpc" = "xyes" ; then
7974 gmplibs="-lmpc $gmplibs"
7975fi
6de9cd9a 7976gmpinc=
e69bf64b 7977have_gmp=no
acd26225
KG
7978
7979# Specify a location for mpc
7980# check for this first so it ends up on the link line before mpfr.
7981
5213506e
RW
7982# Check whether --with-mpc was given.
7983if test "${with_mpc+set}" = set; then :
7984 withval=$with_mpc;
7985fi
acd26225 7986
acd26225 7987
9965e3cd 7988# Check whether --with-mpc-include was given.
5213506e
RW
7989if test "${with_mpc_include+set}" = set; then :
7990 withval=$with_mpc_include;
7991fi
acd26225 7992
acd26225 7993
9965e3cd 7994# Check whether --with-mpc-lib was given.
5213506e
RW
7995if test "${with_mpc_lib+set}" = set; then :
7996 withval=$with_mpc_lib;
7997fi
acd26225 7998
acd26225
KG
7999
8000if test "x$with_mpc" != x; then
3a5729ea
KG
8001 gmplibs="-L$with_mpc/lib $gmplibs"
8002 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
8003fi
8004if test "x$with_mpc_include" != x; then
3a5729ea 8005 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
8006fi
8007if test "x$with_mpc_lib" != x; then
3a5729ea 8008 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
8009fi
8010if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 8011 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 8012 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
8013 # Do not test the mpc version. Assume that it is sufficient, since
8014 # it is in the source tree, and the library has not been built yet
8015 # but it would be included on the link line in the version check below
8016 # hence making the test fail.
3a5729ea 8017 have_gmp=yes
acd26225 8018fi
e69bf64b 8019
bebf829d
PB
8020# Specify a location for mpfr
8021# check for this first so it ends up on the link line before gmp.
1c710c3c 8022
5213506e
RW
8023# Check whether --with-mpfr was given.
8024if test "${with_mpfr+set}" = set; then :
8025 withval=$with_mpfr;
8026fi
1c710c3c 8027
bebf829d 8028
9965e3cd 8029# Check whether --with-mpfr-include was given.
5213506e
RW
8030if test "${with_mpfr_include+set}" = set; then :
8031 withval=$with_mpfr_include;
8032fi
1c710c3c 8033
8a877c9c 8034
9965e3cd 8035# Check whether --with-mpfr-lib was given.
5213506e
RW
8036if test "${with_mpfr_lib+set}" = set; then :
8037 withval=$with_mpfr_lib;
8038fi
8a877c9c 8039
bebf829d
PB
8040
8041if test "x$with_mpfr" != x; then
8042 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 8043 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 8044fi
8a877c9c 8045if test "x$with_mpfr_include" != x; then
3a5729ea 8046 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
8047fi
8048if test "x$with_mpfr_lib" != x; then
8049 gmplibs="-L$with_mpfr_lib $gmplibs"
8050fi
e69bf64b 8051if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
8052 # MPFR v3.1.0 moved the sources into a src sub-directory.
8053 if ! test -d ${srcdir}/mpfr/src; then
22e05272 8054 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8f3675f8 8055 fi
00f35794
BE
8056 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8057 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8058 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
8059 # Do not test the mpfr version. Assume that it is sufficient, since
8060 # it is in the source tree, and the library has not been built yet
8061 # but it would be included on the link line in the version check below
8062 # hence making the test fail.
8063 have_gmp=yes
8064fi
bebf829d 8065
6de9cd9a 8066# Specify a location for gmp
1c710c3c 8067
5213506e
RW
8068# Check whether --with-gmp was given.
8069if test "${with_gmp+set}" = set; then :
8070 withval=$with_gmp;
8071fi
1c710c3c 8072
6de9cd9a 8073
9965e3cd 8074# Check whether --with-gmp-include was given.
5213506e
RW
8075if test "${with_gmp_include+set}" = set; then :
8076 withval=$with_gmp_include;
8077fi
1c710c3c 8078
8a877c9c 8079
9965e3cd 8080# Check whether --with-gmp-lib was given.
5213506e
RW
8081if test "${with_gmp_lib+set}" = set; then :
8082 withval=$with_gmp_lib;
8083fi
8a877c9c
KG
8084
8085
6de9cd9a 8086
bebf829d
PB
8087if test "x$with_gmp" != x; then
8088 gmplibs="-L$with_gmp/lib $gmplibs"
8089 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 8090fi
8a877c9c
KG
8091if test "x$with_gmp_include" != x; then
8092 gmpinc="-I$with_gmp_include $gmpinc"
8093fi
8094if test "x$with_gmp_lib" != x; then
8095 gmplibs="-L$with_gmp_lib $gmplibs"
8096fi
e69bf64b 8097if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 8098 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 8099 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 8100 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 8101 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 8102 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
8103 # Do not test the gmp version. Assume that it is sufficient, since
8104 # it is in the source tree, and the library has not been built yet
8105 # but it would be included on the link line in the version check below
8106 # hence making the test fail.
8107 have_gmp=yes
8108fi
6de9cd9a 8109
91e0d220 8110if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
e69bf64b
PB
8111 have_gmp=yes
8112 saved_CFLAGS="$CFLAGS"
8113 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
8114 # Check for the recommended and required versions of GMP.
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8116$as_echo_n "checking for the correct version of gmp.h... " >&6; }
4a5e71f2 8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
8118/* end confdefs.h. */
8119#include "gmp.h"
8120int
8121main ()
8122{
8123
8124 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8125 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 8126 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
8127 choke me
8128 #endif
8129
8130 ;
8131 return 0;
8132}
8133_ACEOF
8134if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8136/* end confdefs.h. */
362c6d2f 8137#include <gmp.h>
1c710c3c
DJ
8138int
8139main ()
8140{
6de9cd9a 8141
362c6d2f
KG
8142 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8143 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8144 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
8145 choke me
8146 #endif
1c710c3c
DJ
8147
8148 ;
8149 return 0;
8150}
8151_ACEOF
5213506e
RW
8152if ac_fn_c_try_compile "$LINENO"; then :
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8154$as_echo "yes" >&6; }
362c6d2f
KG
8155else
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8157$as_echo "buggy but acceptable" >&6; }
8158fi
8159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 8160else
5213506e
RW
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162$as_echo "no" >&6; }; have_gmp=no
1c710c3c 8163fi
5213506e 8164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 8165
acd26225 8166 # If we have GMP, check the MPFR version.
e69bf64b 8167 if test x"$have_gmp" = xyes; then
362c6d2f
KG
8168 # Check for the recommended and required versions of MPFR.
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8170$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8172/* end confdefs.h. */
70ec446f 8173#include <gmp.h>
e69bf64b 8174 #include <mpfr.h>
1c710c3c
DJ
8175int
8176main ()
8177{
e48d66a9 8178
8be34204 8179 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
e69bf64b
PB
8180 choke me
8181 #endif
1c710c3c
DJ
8182
8183 ;
8184 return 0;
8185}
8186_ACEOF
5213506e
RW
8187if ac_fn_c_try_compile "$LINENO"; then :
8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8189/* end confdefs.h. */
a3993f33 8190#include <gmp.h>
e69bf64b 8191 #include <mpfr.h>
1c710c3c
DJ
8192int
8193main ()
8194{
a3993f33 8195
8be34204 8196 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
e69bf64b
PB
8197 choke me
8198 #endif
acd26225
KG
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
8206$as_echo "yes" >&6; }
acd26225 8207else
5213506e
RW
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8209$as_echo "buggy but acceptable" >&6; }
acd26225 8210fi
5213506e 8211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 8212else
5213506e
RW
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
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 # Check for the MPC header version.
91e0d220 8220 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
362c6d2f 8221 # Check for the recommended and required versions of MPC.
5213506e
RW
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8223$as_echo_n "checking for the correct version of mpc.h... " >&6; }
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
8225/* end confdefs.h. */
8226#include <mpc.h>
8227int
8228main ()
8229{
8230
362c6d2f
KG
8231 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8232 choke me
8233 #endif
8234
8235 ;
8236 return 0;
8237}
8238_ACEOF
8239if ac_fn_c_try_compile "$LINENO"; then :
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241/* end confdefs.h. */
8242#include <mpc.h>
8243int
8244main ()
8245{
8246
8247 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
8248 choke me
8249 #endif
8250
8251 ;
8252 return 0;
8253}
8254_ACEOF
5213506e
RW
8255if ac_fn_c_try_compile "$LINENO"; then :
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 8257$as_echo "yes" >&6; }
362c6d2f
KG
8258else
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8260$as_echo "buggy but acceptable" >&6; }
8261fi
8262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 8263else
5213506e 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 8265$as_echo "no" >&6; }; have_gmp=no
acd26225 8266fi
5213506e 8267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
8268 fi
8269
8270 # Now check the MPFR library.
8271 if test x"$have_gmp" = xyes; then
8272 saved_LIBS="$LIBS"
8273 LIBS="$LIBS $gmplibs"
91e0d220
AP
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8275$as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
5213506e 8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 8277/* end confdefs.h. */
91e0d220 8278#include <mpfr.h>
acd26225
KG
8279int
8280main ()
8281{
8282
8283 mpfr_t n;
8284 mpfr_t x;
8285 int t;
8286 mpfr_init (n);
8287 mpfr_init (x);
90ca6847
TB
8288 mpfr_atan2 (n, n, x, MPFR_RNDN);
8289 mpfr_erfc (n, x, MPFR_RNDN);
8290 mpfr_subnormalize (x, t, MPFR_RNDN);
3a5729ea
KG
8291 mpfr_clear(n);
8292 mpfr_clear(x);
91e0d220
AP
8293
8294 ;
8295 return 0;
8296}
8297_ACEOF
8298if ac_fn_c_try_link "$LINENO"; then :
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8300$as_echo "yes" >&6; }
8301else
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303$as_echo "no" >&6; }; have_gmp=no
8304fi
8305rm -f core conftest.err conftest.$ac_objext \
8306 conftest$ac_exeext conftest.$ac_ext
8307 LIBS="$saved_LIBS"
8308 fi
8309
8310 # Now check the MPC library
8311 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
8312 saved_LIBS="$LIBS"
8313 LIBS="$LIBS $gmplibs"
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8315$as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317/* end confdefs.h. */
8318#include <mpc.h>
8319int
8320main ()
8321{
8322
8323 mpc_t c;
3a5729ea
KG
8324 mpc_init2 (c, 53);
8325 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8326 mpc_cosh (c, c, MPC_RNDNN);
8327 mpc_pow (c, c, c, MPC_RNDNN);
8328 mpc_acosh (c, c, MPC_RNDNN);
8329 mpc_clear (c);
1c710c3c
DJ
8330
8331 ;
8332 return 0;
8333}
8334_ACEOF
5213506e
RW
8335if ac_fn_c_try_link "$LINENO"; then :
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8337$as_echo "yes" >&6; }
1c710c3c 8338else
5213506e
RW
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340$as_echo "no" >&6; }; have_gmp=no
1c710c3c 8341fi
5213506e
RW
8342rm -f core conftest.err conftest.$ac_objext \
8343 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
8344 LIBS="$saved_LIBS"
8345 fi
8346
e69bf64b 8347 CFLAGS="$saved_CFLAGS"
6de9cd9a 8348
362c6d2f
KG
8349# The library versions listed in the error message below should match
8350# the HARD-minimums enforced above.
e69bf64b 8351 if test x$have_gmp != xyes; then
91e0d220
AP
8352 if test -d ${srcdir}/gcc ; then
8353 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
3a5729ea
KG
8354Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8355their locations. Source code for these libraries can be found at
8356their respective hosting sites as well as at
aeebd94c 8357https://gcc.gnu.org/pub/gcc/infrastructure/. See also
45ab87d4 8358http://gcc.gnu.org/install/prerequisites.html for additional info. If
3a5729ea
KG
8359you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8360make sure that you have installed both the libraries and the header
8361files. They may be located in separate packages." "$LINENO" 5
91e0d220
AP
8362 else
8363 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8364Try the --with-gmp and/or --with-mpfr options to specify
8365their locations. If you obtained GMP and/or MPFR from a vendor
8366distribution package, make sure that you have installed both the libraries
8367and the header files. They may be located in separate packages." "$LINENO" 5
8368 fi
e69bf64b 8369 fi
70ec446f
KG
8370fi
8371
acd26225
KG
8372# Flags needed for both GMP, MPFR and/or MPC.
8373
8374
6de9cd9a
DN
8375
8376
8377
9e3eba15 8378
0ff2d841 8379
0b21f5d3 8380# Libraries to use for stage1 or when not bootstrapping.
00020c16 8381
0b21f5d3
EB
8382# Check whether --with-stage1-libs was given.
8383if test "${with_stage1_libs+set}" = set; then :
8384 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8385 stage1_libs=
00020c16 8386 else
0b21f5d3 8387 stage1_libs=$withval
00020c16
ILT
8388 fi
8389else
5dc85f7e 8390 stage1_libs=
5213506e
RW
8391fi
8392
00020c16
ILT
8393
8394
aac9103b
TT
8395# Whether or not to use -static-libstdc++ and -static-libgcc. The
8396# default is yes if gcc is being built; no otherwise. The reason for
8397# this default is that gdb is sometimes linked against GNU Source
8398# Highlight, which is a shared library that uses C++ exceptions. In
8399# this case, -static-libstdc++ will cause crashes.
8400
8401# Check whether --with-static-standard-libraries was given.
8402if test "${with_static_standard_libraries+set}" = set; then :
8403 withval=$with_static_standard_libraries;
8404else
8405 with_static_standard_libraries=auto
8406fi
8407
8408if test "$with_static_standard_libraries" = auto; then
8409 with_static_standard_libraries=$have_compiler
8410fi
8411
0b21f5d3 8412# Linker flags to use for stage1 or when not bootstrapping.
00020c16 8413
0b21f5d3
EB
8414# Check whether --with-stage1-ldflags was given.
8415if test "${with_stage1_ldflags+set}" = set; then :
8416 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8417 stage1_ldflags=
00020c16 8418 else
0b21f5d3 8419 stage1_ldflags=$withval
00020c16
ILT
8420 fi
8421else
0b21f5d3
EB
8422 stage1_ldflags=
8423 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8424 # if supported. But if the user explicitly specified the libraries to use,
8425 # trust that they are doing what they want.
aac9103b
TT
8426 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8427 -a "$have_static_libs" = yes; then
0b21f5d3
EB
8428 stage1_ldflags="-static-libstdc++ -static-libgcc"
8429 fi
5213506e
RW
8430fi
8431
00020c16
ILT
8432
8433
5dc85f7e 8434# Libraries to use for stage2 and later builds.
00020c16 8435
5213506e
RW
8436# Check whether --with-boot-libs was given.
8437if test "${with_boot_libs+set}" = set; then :
8438 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
8439 poststage1_libs=
8440 else
8441 poststage1_libs=$withval
8442 fi
8443else
5dc85f7e 8444 poststage1_libs=
5213506e
RW
8445fi
8446
00020c16
ILT
8447
8448
ed2eaa9f
ILT
8449# Linker flags to use for stage2 and later builds.
8450
8451# Check whether --with-boot-ldflags was given.
8452if test "${with_boot_ldflags+set}" = set; then :
8453 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8454 poststage1_ldflags=
8455 else
8456 poststage1_ldflags=$withval
8457 fi
8458else
8459 poststage1_ldflags=
bec93d73
ILT
8460 # In stages 2 and 3, default to linking libstdc++ and libgcc
8461 # statically. But if the user explicitly specified the libraries to
8462 # use, trust that they are doing what they want.
8463 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
8464 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8465 fi
8466fi
8467
8468
8469
e357a5e0 8470# GCC GRAPHITE dependency isl.
4a9bb2aa 8471# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
8472
8473
33ad93b9
RG
8474# Check whether --with-isl was given.
8475if test "${with_isl+set}" = set; then :
8476 withval=$with_isl;
5213506e 8477fi
f8bf9252 8478
f8bf9252 8479
eae1a5d4 8480# Treat --without-isl as a request to disable
625afa23 8481# GRAPHITE support and skip all following checks.
eae1a5d4 8482if test "x$with_isl" != "xno"; then
e357a5e0 8483 # Check for isl
625afa23
RG
8484
8485
33ad93b9
RG
8486# Check whether --with-isl-include was given.
8487if test "${with_isl_include+set}" = set; then :
8488 withval=$with_isl_include;
5213506e
RW
8489fi
8490
f8bf9252 8491
33ad93b9
RG
8492# Check whether --with-isl-lib was given.
8493if test "${with_isl_lib+set}" = set; then :
8494 withval=$with_isl_lib;
5213506e 8495fi
f8bf9252 8496
f8bf9252 8497
33ad93b9
RG
8498 # Check whether --enable-isl-version-check was given.
8499if test "${enable_isl_version_check+set}" = set; then :
8500 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8501else
8502 ENABLE_ISL_CHECK=yes
7d32a440
SP
8503fi
8504
8505
33ad93b9
RG
8506 # Initialize isllibs and islinc.
8507 case $with_isl in
8508 no)
8509 isllibs=
8510 islinc=
8511 ;;
8512 "" | yes)
8513 ;;
8514 *)
8515 isllibs="-L$with_isl/lib"
8516 islinc="-I$with_isl/include"
8517 ;;
8518 esac
8519 if test "x${with_isl_include}" != x ; then
8520 islinc="-I$with_isl_include"
8521 fi
8522 if test "x${with_isl_lib}" != x; then
8523 isllibs="-L$with_isl_lib"
8524 fi
8525 if test "x${islinc}" = x && test "x${isllibs}" = x \
8526 && test -d ${srcdir}/isl; then
8527 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8528 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8529 ENABLE_ISL_CHECK=no
560d18d3
AK
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8531$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 8532 fi
7d32a440 8533
eae1a5d4
RG
8534 isllibs="${isllibs} -lisl"
8535
7d32a440 8536
7d32a440 8537
9847828b
RB
8538 if test "${ENABLE_ISL_CHECK}" = yes ; then
8539 _isl_saved_CFLAGS=$CFLAGS
8540 _isl_saved_LDFLAGS=$LDFLAGS
8541 _isl_saved_LIBS=$LIBS
8542
8543 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
8544 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8545 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 8546
f877b3ad
RB
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8548$as_echo_n "checking for isl 0.15 or later... " >&6; }
e0c0c325 8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 8550/* end confdefs.h. */
f877b3ad 8551#include <isl/schedule.h>
622dbadf
BC
8552int
8553main ()
8554{
f877b3ad 8555isl_options_set_schedule_serialize_sccs (NULL, 0);
622dbadf
BC
8556 ;
8557 return 0;
8558}
8559_ACEOF
8560if ac_fn_c_try_link "$LINENO"; then :
9847828b 8561 gcc_cv_isl=yes
622dbadf
BC
8562else
8563 gcc_cv_isl=no
8564fi
8565rm -f core conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8568$as_echo "$gcc_cv_isl" >&6; }
8569
560d18d3 8570 if test "${gcc_cv_isl}" = no ; then
f877b3ad
RB
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8572$as_echo "required isl version is 0.15 or later" >&6; }
1e050c90
AK
8573 fi
8574
9847828b
RB
8575 CFLAGS=$_isl_saved_CFLAGS
8576 LDFLAGS=$_isl_saved_LDFLAGS
8577 LIBS=$_isl_saved_LIBS
8578 fi
8579
8580
f8bf9252 8581
f8bf9252 8582
33ad93b9
RG
8583
8584
33ad93b9
RG
8585 if test "x${with_isl}" = xno; then
8586 graphite_requested=no
8587 elif test "x${with_isl}" != x \
8588 || test "x${with_isl_include}" != x \
8589 || test "x${with_isl_lib}" != x ; then
8590 graphite_requested=yes
8591 else
8592 graphite_requested=no
7d32a440 8593 fi
d789184e 8594
d789184e
SP
8595
8596
33ad93b9
RG
8597 if test "${gcc_cv_isl}" = no ; then
8598 isllibs=
8599 islinc=
8600 fi
8601
8602 if test "${graphite_requested}" = yes \
8603 && test "x${isllibs}" = x \
8604 && test "x${islinc}" = x ; then
f8bf9252 8605
22e05272 8606 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 8607 fi
f8bf9252 8608
d32ef397 8609
d32ef397
AS
8610fi
8611
e357a5e0 8612# If the isl check failed, disable builds of in-tree variant of isl
625afa23 8613if test "x$with_isl" = xno ||
625afa23 8614 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 8615 noconfigdirs="$noconfigdirs isl"
625afa23 8616 islinc=
32d024bf
RG
8617fi
8618
625afa23
RG
8619
8620
8621
d7f09764
DN
8622# Check for LTO support.
8623# Check whether --enable-lto was given.
8624if test "${enable_lto+set}" = set; then :
8625 enableval=$enable_lto; enable_lto=$enableval
8626else
8627 enable_lto=yes; default_enable_lto=yes
8628fi
8629
8630
7413962d 8631
9a02962b
DK
8632
8633
8634target_elf=no
8635case $target in
8636 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 8637 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 8638 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 8639 nvptx-*-none)
9a02962b
DK
8640 target_elf=no
8641 ;;
8642 *)
8643 target_elf=yes
8644 ;;
8645esac
8646
8647if test $target_elf = yes; then :
48215350
DK
8648 # ELF platforms build the lto-plugin always.
8649 build_lto_plugin=yes
9a02962b 8650
9a02962b
DK
8651else
8652 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 8653 case $target in
deeba76a 8654 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 8655 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
8656 *) enable_lto=no ;;
8657 esac
9a02962b 8658 else
db50fe7d
IS
8659 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8660 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
8661 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8662 # warn during gcc/ subconfigure; unless you're bootstrapping with
8663 # -flto it won't be needed until after installation anyway.
8664 case $target in
9e530bcd 8665 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b 8666 *) if test x"$enable_lto" = x"yes"; then
22e05272 8667 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9a02962b
DK
8668 fi
8669 ;;
8670 esac
8671 fi
1cd0b716 8672 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 8673 # Build it unless LTO was explicitly disabled.
1cd0b716 8674 case $target in
48215350 8675 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
8676 *) ;;
8677 esac
48215350 8678
9a02962b
DK
8679fi
8680
d7f09764 8681
45b3824d
TS
8682# Check whether --enable-linker-plugin-configure-flags was given.
8683if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8684 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8685else
8686 extra_linker_plugin_configure_flags=
8687fi
8688
8689
8690# Check whether --enable-linker-plugin-flags was given.
8691if test "${enable_linker_plugin_flags+set}" = set; then :
8692 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8693else
8694 extra_linker_plugin_flags=
8695fi
8696
8697
8698
c1fecabe
IS
8699# Handle --enable-host-pie
8700# If host PIE executables are the default (or must be forced on) for some host,
8701# we must pass that configuration to the gcc directory.
8702gcc_host_pie=
b6cb10af
MP
8703# Check whether --enable-host-pie was given.
8704if test "${enable_host_pie+set}" = set; then :
8705 enableval=$enable_host_pie; host_pie=$enableval
8706 case $host in
c1fecabe 8707 *-*-darwin2*)
b6cb10af 8708 if test x$host_pie != xyes ; then
c1fecabe
IS
8709 # for Darwin20+ this is required.
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
8711$as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
b6cb10af 8712 host_pie=yes
c1fecabe 8713 gcc_host_pie=--enable-host-pie
b6cb10af
MP
8714 fi ;;
8715 *) ;;
8716 esac
8717else
8718 case $host in
c1fecabe
IS
8719 *-*-darwin2*)
8720 # Default to PIE (mandatory for aarch64).
8721 host_pie=yes
8722 gcc_host_pie=--enable-host-pie
8723 ;;
b6cb10af
MP
8724 *) host_pie=no ;;
8725 esac
8726fi
8727
8728
8729
8730
c1fecabe 8731
cdfee50a
NS
8732# Enable --enable-host-shared.
8733# Checked early to determine whether jit is an 'all' language
8734# Check whether --enable-host-shared was given.
8735if test "${enable_host_shared+set}" = set; then :
8736 enableval=$enable_host_shared; host_shared=$enableval
1edfc8f2 8737 case $host in
a1d2b162
IS
8738 x86_64-*-darwin* | aarch64-*-darwin*)
8739 if test x$host_shared != xyes ; then
8740 # PIC is the default, and actually cannot be switched off.
c1fecabe
IS
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
8742$as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
a1d2b162
IS
8743 host_shared=yes
8744 fi ;;
b6cb10af 8745 *-*-darwin*)
c1fecabe
IS
8746 if test x$host_pie = xyes -a x$host_shared != xyes ; then
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
8748$as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
b6cb10af
MP
8749 host_shared=yes
8750 fi ;;
a1d2b162
IS
8751 *) ;;
8752 esac
cdfee50a 8753else
1edfc8f2 8754 case $host in
c1fecabe 8755 # 64B x86_64 and Aarch64 Darwin default to PIC.
a1d2b162 8756 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
c1fecabe
IS
8757 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
8758 *-*-darwin*) host_shared=$host_pie ;;
b6cb10af 8759 *) host_shared=no;;
a1d2b162 8760 esac
cdfee50a
NS
8761fi
8762
8763
f8bf9252 8764
05048fc2 8765
b6cb10af 8766if test x$host_shared = xyes; then
c1fecabe
IS
8767 case $host in
8768 *-*-darwin*)
8769 # Since host shared is the default for 64b Darwin, and also enabled for
8770 # host_pie, ensure that we present the PIE flag when host_pie is active.
8771 if test x$host_pie = xyes; then
8772 PICFLAG=-fPIE
8773 fi
8774 ;;
8775 *)
8776 PICFLAG=-fPIC
8777 ;;
8778 esac
b6cb10af
MP
8779elif test x$host_pie = xyes; then
8780 PICFLAG=-fPIE
8781else
8782 PICFLAG=
8783fi
8784
8785
8786
05048fc2
IS
8787# If we are building PIC/PIE host executables, and we are building dependent
8788# libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8789# code.
8790host_libs_picflag=
b6cb10af 8791if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
05048fc2
IS
8792host_libs_picflag='--with-pic'
8793fi
8794
8795
0823efed 8796# By default, C and C++ are the only stage 1 languages.
e1888513 8797stage1_languages=,c,
2805b53a 8798
00020c16 8799# Target libraries that we bootstrap.
ad1e5170 8800bootstrap_target_libs=,target-libgcc,
00020c16 8801
55ffb5ed
NN
8802# Figure out what language subdirectories are present.
8803# Look if the user specified --enable-languages="..."; if not, use
8804# the environment variable $LANGUAGES if defined. $LANGUAGES might
8805# go away some day.
8806# NB: embedded tabs in this IF block -- do not untabify
8807if test -d ${srcdir}/gcc; then
8808 if test x"${enable_languages+set}" != xset; then
8809 if test x"${LANGUAGES+set}" = xset; then
8810 enable_languages="${LANGUAGES}"
6b1786aa 8811 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed 8812 else
cdfee50a 8813 enable_languages=default
55ffb5ed
NN
8814 fi
8815 else
8816 if test x"${enable_languages}" = x ||
8817 test x"${enable_languages}" = xyes;
8818 then
6b1786aa 8819 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
8820 exit 1
8821 fi
8822 fi
8823 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8824
7f26dfa3
FXC
8825 # 'f95' is the old name for the 'fortran' language. We issue a warning
8826 # and make the substitution.
8827 case ,${enable_languages}, in
8828 *,f95,*)
6b1786aa 8829 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
8830 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8831 ;;
8832 esac
8833
0823efed
DN
8834 # If bootstrapping, C++ must be enabled.
8835 case ",$enable_languages,:$enable_bootstrap" in
8836 *,c++,*:*) ;;
8837 *:yes)
ff3ac0f4
ILT
8838 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8839 enable_languages="${enable_languages},c++"
8840 else
22e05272 8841 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
8842 fi
8843 ;;
8844 esac
8845
55ffb5ed
NN
8846 # First scan to see if an enabled language requires some other language.
8847 # We assume that a given config-lang.in will list all the language
8848 # front ends it requires, even if some are required indirectly.
8849 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8850 case ${lang_frag} in
8851 ..) ;;
8852 # The odd quoting in the next line works around
8853 # an apparent bug in bash 1.12 on linux.
8854 ${srcdir}/gcc/[*]/config-lang.in) ;;
8855 *)
69ecd18f
ILT
8856 # From the config-lang.in, get $language, $lang_requires, and
8857 # $lang_requires_boot_languages.
55ffb5ed
NN
8858 language=
8859 lang_requires=
69ecd18f 8860 lang_requires_boot_languages=
d4360477
NS
8861 # set srcdir during sourcing lang_frag to the gcc dir.
8862 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8863 # polutes this shell
8864 saved_srcdir=${srcdir}
8865 srcdir=${srcdir}/gcc . ${lang_frag}
8866 srcdir=${saved_srcdir}
69ecd18f 8867 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
8868 case ,${enable_languages}, in
8869 *,$other,*) ;;
cdfee50a 8870 *,default,*) ;;
55ffb5ed
NN
8871 *,all,*) ;;
8872 *,$language,*)
8873 echo " \`$other' language required by \`$language'; enabling" 1>&2
8874 enable_languages="${enable_languages},${other}"
8875 ;;
8876 esac
8877 done
69ecd18f
ILT
8878 for other in ${lang_requires_boot_languages} ; do
8879 if test "$other" != "c"; then
8880 case ,${enable_stage1_languages}, in
8881 *,$other,*) ;;
cdfee50a 8882 *,default,*) ;;
69ecd18f
ILT
8883 *,all,*) ;;
8884 *)
8885 case ,${enable_languages}, in
8886 *,$language,*)
8887 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8888 enable_stage1_languages="$enable_stage1_languages,${other}"
8889 ;;
8890 esac
8891 ;;
8892 esac
8893 fi
8894 done
55ffb5ed
NN
8895 ;;
8896 esac
8897 done
8898
e1888513 8899 new_enable_languages=,c,
d7f09764
DN
8900
8901 # If LTO is enabled, add the LTO front end.
d7f09764 8902 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
8903 case ,${enable_languages}, in
8904 *,lto,*) ;;
8905 *) enable_languages="${enable_languages},lto" ;;
8906 esac
1cd0b716 8907 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 8908 configdirs="$configdirs lto-plugin"
d7f09764
DN
8909 fi
8910 fi
8911
426c1eb0
TS
8912 # If we're building an offloading compiler, add the LTO front end.
8913 if test x"$enable_as_accelerator_for" != x ; then
8914 case ,${enable_languages}, in
8915 *,lto,*) ;;
8916 *) enable_languages="${enable_languages},lto" ;;
8917 esac
8918 fi
8919
cdfee50a 8920 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
e1888513 8921 potential_languages=,c,
55ffb5ed 8922
4da3b0f8
ILT
8923 enabled_target_libs=
8924 disabled_target_libs=
8925
55ffb5ed
NN
8926 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8927 case ${lang_frag} in
8928 ..) ;;
8929 # The odd quoting in the next line works around
8930 # an apparent bug in bash 1.12 on linux.
8931 ${srcdir}/gcc/[*]/config-lang.in) ;;
8932 *)
1c710c3c 8933 # From the config-lang.in, get $language, $target_libs,
2805b53a 8934 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
8935 language=
8936 target_libs=
8937 lang_dirs=
1546bb64 8938 subdir_requires=
e1888513
PB
8939 boot_language=no
8940 build_by_default=yes
d4360477
NS
8941 # set srcdir during sourcing. See above about save & restore
8942 saved_srcdir=${srcdir}
8943 srcdir=${srcdir}/gcc . ${lang_frag}
8944 srcdir=${saved_srcdir}
e1888513
PB
8945 if test x${language} = x; then
8946 echo "${lang_frag} doesn't set \$language." 1>&2
8947 exit 1
8948 fi
8949
78767fd9 8950 if test "$language" = "c++"; then
0823efed 8951 boot_language=yes
00020c16
ILT
8952 fi
8953
178f875a 8954 add_this_lang=no
cdfee50a
NS
8955 # C is always enabled, so no need to add it again
8956 if test "$language" != "c"; then
8957 case ,${enable_languages}, in
8958 *,${language},*)
8959 # Language was explicitly selected; include it
d4a10d0a 8960 add_this_lang=yes
cdfee50a
NS
8961 ;;
8962 *,all,*)
8963 # All languages are enabled
8964 add_this_lang=all
8965 ;;
8966 *,default,*)
8967 # 'default' was selected, select it if it is a default language
178f875a 8968 add_this_lang=${build_by_default}
cdfee50a
NS
8969 ;;
8970 esac
8971 fi
6de9cd9a 8972
1546bb64 8973 # Disable languages that need other directories if these aren't available.
95695ad3 8974 for i in $subdir_requires; do
b6348cb3 8975 test -f "$srcdir/gcc/$i/config-lang.in" && continue
cdfee50a
NS
8976 case ${add_this_lang} in
8977 yes)
1546bb64 8978 # Specifically requested language; tell them.
22e05272 8979 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64 8980 ;;
cdfee50a
NS
8981 all)
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8983$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8984 add_this_lang=unsupported
8985 ;;
1546bb64
PB
8986 *)
8987 # Silently disable.
e1888513 8988 add_this_lang=unsupported
1546bb64
PB
8989 ;;
8990 esac
8991 done
8992
e1888513 8993 # Disable Ada if no preexisting GNAT is available.
cdfee50a
NS
8994 case ${add_this_lang}:${language}:${have_gnat} in
8995 yes:ada:no)
e1888513 8996 # Specifically requested language; tell them.
22e05272 8997 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
e1888513 8998 ;;
cdfee50a
NS
8999 all:ada:no)
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
9001$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
9002 add_this_lang=unsupported
9003 ;;
e1888513
PB
9004 *:ada:no)
9005 # Silently disable.
9006 add_this_lang=unsupported
9007 ;;
9008 esac
9009
5fee5ec3
IB
9010 # Disable D if no preexisting GDC is available.
9011 case ${add_this_lang}:${language}:${have_gdc} in
9012 yes:d:no)
9013 # Specifically requested language; tell them.
9014 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
9015 ;;
9016 all:d:no)
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
9018$as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
9019 add_this_lang=unsupported
9020 ;;
9021 *:d:no)
9022 # Silently disable.
9023 add_this_lang=unsupported
9024 ;;
9025 esac
9026
cdfee50a 9027 # Disable jit if -enable-host-shared not specified
ffac9597
JM
9028 # but not if building for Mingw. All code in Windows
9029 # is position independent code (PIC).
c83027f3
NB
9030 case $target in
9031 *mingw*) ;;
9032 *)
9033 case ${add_this_lang}:${language}:${host_shared} in
9034 yes:jit:no)
9035 # PR jit/64780: explicitly specify --enable-host-shared
22e05272 9036 as_fn_error $? "
cdfee50a
NS
9037Enabling language \"jit\" requires --enable-host-shared.
9038
9039--enable-host-shared typically slows the rest of the compiler down by
9040a few %, so you must explicitly enable it.
9041
9042If you want to build both the jit and the regular compiler, it is often
9043best to do this via two separate configure/builds, in separate
9044directories, to avoid imposing the performance cost of
9045--enable-host-shared on the regular compiler." "$LINENO" 5
c83027f3
NB
9046 ;;
9047 all:jit:no)
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
cdfee50a 9049$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
c83027f3
NB
9050 add_this_lang=unsupported
9051 ;;
9052 *:jit:no)
9053 # Silently disable.
9054 add_this_lang=unsupported
9055 ;;
9056 esac
9057 ;;
9058 esac
cdfee50a
NS
9059
9060 # Disable a language that is unsupported by the target.
9061 case "${add_this_lang}: $unsupported_languages " in
9062 no:*) ;;
9063 unsupported:*) ;;
9064 *:*" $language "*)
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9066$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
e1888513 9067 add_this_lang=unsupported
4fab7234
HPN
9068 ;;
9069 esac
9070
6de9cd9a 9071 case $add_this_lang in
e1888513 9072 unsupported)
55ffb5ed 9073 # Remove language-dependent dirs.
4da3b0f8
ILT
9074 disabled_target_libs="$disabled_target_libs $target_libs"
9075 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 9076 ;;
e1888513
PB
9077 no)
9078 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
9079 disabled_target_libs="$disabled_target_libs $target_libs"
9080 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
9081 potential_languages="${potential_languages}${language},"
9082 ;;
cdfee50a 9083 all|yes)
e1888513
PB
9084 new_enable_languages="${new_enable_languages}${language},"
9085 potential_languages="${potential_languages}${language},"
2805b53a 9086 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 9087 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
9088 case "${boot_language}:,$enable_stage1_languages," in
9089 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 9090 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
9091 case ",$stage1_languages," in
9092 *,$language,* | ,yes, | ,all,) ;;
9093 *) stage1_languages="${stage1_languages}${language}," ;;
9094 esac
00020c16 9095 # We need to bootstrap any supporting libraries.
5fee5ec3 9096 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
2805b53a
NN
9097 ;;
9098 esac
9099 ;;
55ffb5ed
NN
9100 esac
9101 ;;
9102 esac
9103 done
9104
4da3b0f8
ILT
9105 # Add target libraries which are only needed for disabled languages
9106 # to noconfigdirs.
9107 if test -n "$disabled_target_libs"; then
9108 for dir in $disabled_target_libs; do
9109 case " $enabled_target_libs " in
9110 *" ${dir} "*) ;;
9111 *) noconfigdirs="$noconfigdirs $dir" ;;
9112 esac
9113 done
9114 fi
9115
5213506e
RW
9116 # Check whether --enable-stage1-languages was given.
9117if test "${enable_stage1_languages+set}" = set; then :
9118 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
9119 ,no,|,,)
9120 # Set it to something that will have no effect in the loop below
9121 enable_stage1_languages=c ;;
9122 ,yes,)
9123 enable_stage1_languages=`echo $new_enable_languages | \
9124 sed -e "s/^,//" -e "s/,$//" ` ;;
9125 *,all,*)
9126 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9127 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9128 esac
9129
9130 # Add "good" languages from enable_stage1_languages to stage1_languages,
9131 # while "bad" languages go in missing_languages. Leave no duplicates.
9132 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9133 case $potential_languages in
9134 *,$i,*)
9135 case $stage1_languages in
9136 *,$i,*) ;;
9137 *) stage1_languages="$stage1_languages$i," ;;
9138 esac ;;
9139 *)
9140 case $missing_languages in
9141 *,$i,*) ;;
9142 *) missing_languages="$missing_languages$i," ;;
9143 esac ;;
9144 esac
9145 done
5213506e
RW
9146fi
9147
e1888513
PB
9148
9149 # Remove leading/trailing commas that were added for simplicity
9150 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 9151 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
9152 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9153 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9154
55ffb5ed 9155 if test "x$missing_languages" != x; then
22e05272 9156 as_fn_error $? "
0cf085e4 9157The following requested languages could not be built: ${missing_languages}
5213506e 9158Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 9159 fi
55ffb5ed
NN
9160 if test "x$new_enable_languages" != "x$enable_languages"; then
9161 echo The following languages will be built: ${new_enable_languages}
e1888513 9162 enable_languages="$new_enable_languages"
55ffb5ed 9163 fi
e1888513 9164
1c710c3c 9165
b2eaac4a 9166 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
9167fi
9168
27079765
AH
9169# Handle --disable-<component> generically.
9170for dir in $configdirs $build_configdirs $target_configdirs ; do
9171 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
9172 varname=`echo $dirname | sed -e s/+/_/g`
9173 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
9174 noconfigdirs="$noconfigdirs $dir"
9175 fi
9176done
9177
43c40f3e
RO
9178# Check for Boehm's garbage collector
9179# Check whether --enable-objc-gc was given.
9180if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
9181 enableval=$enable_objc_gc;
9182fi
9183
9184
9185# Check whether --with-target-bdw-gc was given.
9186if test "${with_target_bdw_gc+set}" = set; then :
9187 withval=$with_target_bdw_gc;
9188fi
9189
9190
9191# Check whether --with-target-bdw-gc-include was given.
9192if test "${with_target_bdw_gc_include+set}" = set; then :
9193 withval=$with_target_bdw_gc_include;
9194fi
9195
9196
9197# Check whether --with-target-bdw-gc-lib was given.
9198if test "${with_target_bdw_gc_lib+set}" = set; then :
9199 withval=$with_target_bdw_gc_lib;
9200fi
9201
9202
9203case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9205$as_echo_n "checking for bdw garbage collector... " >&6; }
9206 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9208$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
9209 else
9210 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
22e05272 9211 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
114bf3f1 9212 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
22e05272 9213 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
114bf3f1
MK
9214 else
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9216$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9217 fi
9218 fi
43c40f3e
RO
9219esac
9220
e4cba494 9221# Disable libitm, libsanitizer, libvtv if we're not building C++
99776ebd 9222case ,${enable_languages}, in
1007a55c 9223 *,c++,*)
5e9d6aa4 9224 # Disable libitm, libsanitizer if we're not building libstdc++
1007a55c
JW
9225 case "${noconfigdirs}" in
9226 *target-libstdc++-v3*)
5e9d6aa4 9227 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1007a55c
JW
9228 ;;
9229 *) ;;
9230 esac
9231 ;;
99776ebd 9232 *)
e4cba494 9233 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
9234 ;;
9235esac
9236
dc614a83
AB
9237# If gcc/ is not in the source tree then we'll not be building a
9238# target compiler, assume in that case we don't want to build any
9239# target libraries or tools.
9240#
9241# This was added primarily for the benefit for binutils-gdb who reuse
9242# this configure script, but don't always have target tools available.
9243if test ! -d ${srcdir}/gcc; then
9244 skipdirs="${skipdirs} ${target_configdirs}"
9245fi
9246
ee6a22df
L
9247# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9248# $build_configdirs and $target_configdirs.
55ffb5ed
NN
9249# If we have the source for $noconfigdirs entries, add them to $notsupp.
9250
9251notsupp=""
9252for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 9253 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
9254 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9255 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9256 if test -r $srcdir/$dirname/configure ; then
9257 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9258 true
9259 else
9260 notsupp="$notsupp $dir"
9261 fi
9262 fi
9263 fi
ee6a22df
L
9264 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9265 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9266 if test -r $srcdir/$dirname/configure ; then
9267 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9268 true
9269 else
9270 notsupp="$notsupp $dir"
9271 fi
9272 fi
9273 fi
55ffb5ed
NN
9274 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9275 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9276 if test -r $srcdir/$dirname/configure ; then
9277 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9278 true
9279 else
9280 notsupp="$notsupp $dir"
9281 fi
9282 fi
9283 fi
9284done
9285
55ffb5ed
NN
9286# Quietly strip out all directories which aren't configurable in this tree.
9287# This relies on all configurable subdirectories being autoconfiscated, which
9288# is now the case.
23f6b2f9
PB
9289build_configdirs_all="$build_configdirs"
9290build_configdirs=
9291for i in ${build_configdirs_all} ; do
1c710c3c 9292 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
9293 if test -f ${srcdir}/$j/configure ; then
9294 build_configdirs="${build_configdirs} $i"
9295 fi
9296done
9297
55ffb5ed
NN
9298configdirs_all="$configdirs"
9299configdirs=
9300for i in ${configdirs_all} ; do
9301 if test -f ${srcdir}/$i/configure ; then
9302 configdirs="${configdirs} $i"
9303 fi
9304done
23f6b2f9 9305
55ffb5ed
NN
9306target_configdirs_all="$target_configdirs"
9307target_configdirs=
9308for i in ${target_configdirs_all} ; do
1c710c3c 9309 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
9310 if test -f ${srcdir}/$j/configure ; then
9311 target_configdirs="${target_configdirs} $i"
9312 fi
9313done
9314
45b3824d
TS
9315# libiberty-linker-plugin is special: it doesn't have its own source directory,
9316# so we have to add it after the preceding checks.
9317if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9318then
9319 case " $configdirs " in
9320 *" libiberty "*)
9321 # If we can build libiberty, we can also build libiberty-linker-plugin.
9322 configdirs="$configdirs libiberty-linker-plugin"
9323 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9324 --with-libiberty=../libiberty-linker-plugin";;
9325 *)
22e05272 9326 as_fn_error $? "libiberty missing" "$LINENO" 5;;
45b3824d
TS
9327 esac
9328fi
9329
fca38047
TS
9330# Sometimes we have special requirements for the host libiberty.
9331extra_host_libiberty_configure_flags=
9332case " $configdirs " in
15368960 9333 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
fca38047
TS
9334 # When these are to be built as shared libraries, the same applies to
9335 # libiberty.
9336 extra_host_libiberty_configure_flags=--enable-shared
9337 ;;
04bb15e4
TV
9338esac
9339
9340
9341# Sometimes we have special requirements for the host zlib.
9342extra_host_zlib_configure_flags=
9343case " $configdirs " in
1c01ebf6
L
9344 *" bfd "*)
9345 # When bfd is to be built as a shared library, the same applies to
9346 # zlib.
9347 if test "$enable_shared" = "yes"; then
9348 extra_host_zlib_configure_flags=--enable-host-shared
9349 fi
9350 ;;
fca38047
TS
9351esac
9352
9353
55ffb5ed
NN
9354# Produce a warning message for the subdirs we can't configure.
9355# This isn't especially interesting in the Cygnus tree, but in the individual
9356# FSF releases, it's important to let people know when their machine isn't
9357# supported by the one or two programs in a package.
9358
9359if test -n "${notsupp}" && test -z "${norecursion}" ; then
9360 # If $appdirs is non-empty, at least one of those directories must still
9361 # be configured, or we error out. (E.g., if the gas release supports a
9362 # specified target in some subdirs but not the gas subdir, we shouldn't
9363 # pretend that all is well.)
9364 if test -n "$appdirs" ; then
9365 for dir in $appdirs ; do
9366 if test -r $dir/Makefile.in ; then
9367 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9368 appdirs=""
9369 break
9370 fi
23f6b2f9 9371 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
9372 appdirs=""
9373 break
9374 fi
9375 fi
9376 done
9377 if test -n "$appdirs" ; then
9378 echo "*** This configuration is not supported by this package." 1>&2
9379 exit 1
9380 fi
9381 fi
9382 # Okay, some application will build, or we don't care to check. Still
9383 # notify of subdirs not getting built.
9384 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9385 echo " ${notsupp}" 1>&2
9386 echo " (Any other directories should still work fine.)" 1>&2
9387fi
9388
9389case "$host" in
9390 *msdosdjgpp*)
9391 enable_gdbtk=no ;;
9392esac
9393
c3a86da9
DJ
9394# To find our prefix, in gcc_cv_tool_prefix.
9395
9396# The user is always right.
9397if test "${PATH_SEPARATOR+set}" != set; then
9398 echo "#! /bin/sh" >conf$$.sh
9399 echo "exit 0" >>conf$$.sh
9400 chmod +x conf$$.sh
9401 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9402 PATH_SEPARATOR=';'
9403 else
9404 PATH_SEPARATOR=:
9405 fi
9406 rm -f conf$$.sh
9407fi
9408
9409
3c36aa6b
JJ
9410 get_gcc_base_ver="cat"
9411
9412# Check whether --with-gcc-major-version-only was given.
9413if test "${with_gcc_major_version_only+set}" = set; then :
9414 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
31db0fe0 9415 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
9416 fi
9417
9418fi
9419
9420
9421
9422
9423
c3a86da9
DJ
9424
9425if test "x$exec_prefix" = xNONE; then
9426 if test "x$prefix" = xNONE; then
9427 gcc_cv_tool_prefix=$ac_default_prefix
9428 else
9429 gcc_cv_tool_prefix=$prefix
9430 fi
9431else
9432 gcc_cv_tool_prefix=$exec_prefix
9433fi
9434
9435# If there is no compiler in the tree, use the PATH only. In any
9436# case, if there is no compiler in the tree nobody should use
9437# AS_FOR_TARGET and LD_FOR_TARGET.
9438if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
9439 if test x$with_gcc_major_version_only = xyes ; then
9440 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9441 else
9442 gcc_version=`cat $srcdir/gcc/BASE-VER`
9443 fi
c3a86da9
DJ
9444 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9445 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9446 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9447 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9448 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9449 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9450else
9451 gcc_cv_tool_dirs=
9452fi
9453
9454if test x$build = x$target && test -n "$md_exec_prefix"; then
9455 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9456fi
9457
9458
9459
55ffb5ed
NN
9460copy_dirs=
9461
1c710c3c 9462
5213506e
RW
9463# Check whether --with-build-sysroot was given.
9464if test "${with_build_sysroot+set}" = set; then :
9465 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
9466 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9467 fi
9468else
9469 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 9470fi
526635cb
MM
9471
9472
c8aea42c 9473
5213506e
RW
9474
9475# Check whether --with-debug-prefix-map was given.
9476if test "${with_debug_prefix_map+set}" = set; then :
9477 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
9478 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9479 for debug_map in $withval; do
9480 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9481 done
9482 fi
9483else
9484 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
9485fi
9486
c8aea42c
PB
9487
9488
1c8bd6a3
PB
9489# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9490# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9491# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9492# We want to ensure that TARGET libraries (which we know are built with
9493# gcc) are built with "-O2 -g", so include those options when setting
9494# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9495if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9496 if test "x${is_cross_compiler}" = xyes; then
9497 CFLAGS_FOR_TARGET="-g -O2"
9498 else
9499 CFLAGS_FOR_TARGET=$CFLAGS
9500 case " $CFLAGS " in
9501 *" -O2 "*) ;;
9502 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9503 esac
9504 case " $CFLAGS " in
9505 *" -g "* | *" -g3 "*) ;;
9506 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9507 esac
9508 fi
1c8bd6a3
PB
9509fi
9510
9511
9512if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9513 if test "x${is_cross_compiler}" = xyes; then
9514 CXXFLAGS_FOR_TARGET="-g -O2"
9515 else
9516 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9517 case " $CXXFLAGS " in
9518 *" -O2 "*) ;;
9519 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9520 esac
9521 case " $CXXFLAGS " in
9522 *" -g "* | *" -g3 "*) ;;
9523 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9524 esac
9525 fi
1c8bd6a3
PB
9526fi
9527
9528
6f57bdf6
DK
9529
9530
55ffb5ed
NN
9531# Handle --with-headers=XXX. If the value is not "yes", the contents of
9532# the named directory are copied to $(tooldir)/sys-include.
9533if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9534 if test x${is_cross_compiler} = xno ; then
9535 echo 1>&2 '***' --with-headers is only supported when cross compiling
9536 exit 1
9537 fi
9538 if test x"${with_headers}" != xyes ; then
c3a86da9 9539 x=${gcc_cv_tool_prefix}
1c710c3c 9540 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
9541 fi
9542fi
9543
9544# Handle --with-libs=XXX. If the value is not "yes", the contents of
9545# the name directories are copied to $(tooldir)/lib. Multiple directories
9546# are permitted.
9547if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9548 if test x${is_cross_compiler} = xno ; then
9549 echo 1>&2 '***' --with-libs is only supported when cross compiling
9550 exit 1
9551 fi
9552 if test x"${with_libs}" != xyes ; then
9553 # Copy the libraries in reverse order, so that files in the first named
9554 # library override files in subsequent libraries.
c3a86da9 9555 x=${gcc_cv_tool_prefix}
55ffb5ed 9556 for l in ${with_libs}; do
1c710c3c 9557 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
9558 done
9559 fi
9560fi
9561
d7f09764 9562# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
9563#
9564# This is done by determining whether or not the appropriate directory
9565# is available, and by checking whether or not specific configurations
9566# have requested that this magic not happen.
1c710c3c
DJ
9567#
9568# The command line options always override the explicit settings in
6b1786aa 9569# configure.ac, and the settings in configure.ac override this magic.
e8b05380 9570#
1c710c3c 9571# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 9572# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
9573# --without-gnu-ld options for the configure script. Similarly, if
9574# the default is to use the included zlib and you don't want to do that,
9575# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
9576
9577if test x${use_gnu_as} = x &&
9578 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9579 with_gnu_as=yes
9580 extra_host_args="$extra_host_args --with-gnu-as"
9581fi
9582
9583if test x${use_gnu_ld} = x &&
5afab7ad 9584 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
9585 with_gnu_ld=yes
9586 extra_host_args="$extra_host_args --with-gnu-ld"
9587fi
9588
d7f09764
DN
9589if test x${use_included_zlib} = x &&
9590 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9591 :
9592else
9593 with_system_zlib=yes
9594 extra_host_args="$extra_host_args --with-system-zlib"
9595fi
9596
e8b05380
PB
9597# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9598# can detect this case.
9599
9600if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9601 with_newlib=yes
9602 extra_host_args="$extra_host_args --with-newlib"
9603fi
9604
55ffb5ed
NN
9605# Handle ${copy_dirs}
9606set fnord ${copy_dirs}
9607shift
9608while test $# != 0 ; do
9609 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9610 :
9611 else
9612 echo Copying $1 to $2
9613
9614 # Use the install script to create the directory and all required
9615 # parent directories.
9616 if test -d $2 ; then
9617 :
9618 else
9619 echo >config.temp
9620 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9621 fi
9622
9623 # Copy the directory, assuming we have tar.
9624 # FIXME: Should we use B in the second tar? Not all systems support it.
9625 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9626
9627 # It is the responsibility of the user to correctly adjust all
9628 # symlinks. If somebody can figure out how to handle them correctly
9629 # here, feel free to add the code.
9630
9631 echo $1 > $2/COPIED
9632 fi
9633 shift; shift
9634done
9635
e8b05380
PB
9636# Determine a target-dependent exec_prefix that the installed
9637# gcc will search in. Keep this list sorted by triplet, with
9638# the *-*-osname triplets last.
9639md_exec_prefix=
9640case "${target}" in
30b74385 9641 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
9642 md_exec_prefix=/dev/env/DJDIR/bin
9643 ;;
e8b05380 9644 *-*-hpux* | \
e8b05380 9645 *-*-nto-qnx* | \
6de66370 9646 *-*-solaris2*)
e8b05380
PB
9647 md_exec_prefix=/usr/ccs/bin
9648 ;;
9649esac
9650
671aa708
NN
9651extra_arflags_for_target=
9652extra_nmflags_for_target=
9653extra_ranlibflags_for_target=
9654target_makefile_frag=/dev/null
9655case "${target}" in
58e24147
AM
9656 spu-*-*)
9657 target_makefile_frag="config/mt-spu"
9658 ;;
d896cc4d 9659 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
9660 target_makefile_frag="config/mt-sde"
9661 ;;
1ec3b87b
RS
9662 mipsisa*-*-elfoabi*)
9663 target_makefile_frag="config/mt-mips-elfoabi"
9664 ;;
08d0963a
RS
9665 mips*-*-*linux* | mips*-*-gnu*)
9666 target_makefile_frag="config/mt-mips-gnu"
9667 ;;
707f1839
SL
9668 nios2-*-elf*)
9669 target_makefile_frag="config/mt-nios2-elf"
9670 ;;
76052545
EB
9671 *-*-linux-android*)
9672 target_makefile_frag="config/mt-android"
9673 ;;
416ac4d4 9674 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 9675 target_makefile_frag="config/mt-gnu"
671aa708
NN
9676 ;;
9677 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 9678 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
9679 # commands to handle both 32-bit and 64-bit objects. These flags are
9680 # harmless if we're using GNU nm or ar.
9681 extra_arflags_for_target=" -X32_64"
9682 extra_nmflags_for_target=" -B -X32_64"
9683 ;;
671aa708
NN
9684esac
9685
9686alphaieee_frag=/dev/null
9687case $target in
9688 alpha*-*-*)
9689 # This just makes sure to use the -mieee option to build target libs.
9690 # This should probably be set individually by each library.
9691 alphaieee_frag="config/mt-alphaieee"
9692 ;;
9693esac
9694
9695# If --enable-target-optspace always use -Os instead of -O2 to build
9696# the target libraries, similarly if it is not specified, use -Os
9697# on selected platforms.
9698ospace_frag=/dev/null
9699case "${enable_target_optspace}:${target}" in
9700 yes:*)
9701 ospace_frag="config/mt-ospace"
9702 ;;
9703 :d30v-*)
9704 ospace_frag="config/mt-d30v"
9705 ;;
d9063947 9706 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
9707 ospace_frag="config/mt-ospace"
9708 ;;
9709 no:* | :*)
9710 ;;
9711 *)
9712 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9713 ;;
9714esac
9715
671aa708
NN
9716# Some systems (e.g., one of the i386-aix systems the gas testers are
9717# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 9718tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
9719build_tooldir=${tooldir}
9720
671aa708
NN
9721# Create a .gdbinit file which runs the one in srcdir
9722# and tells GDB to look there for source files.
9723
9724if test -r ${srcdir}/.gdbinit ; then
9725 case ${srcdir} in
9726 .) ;;
9727 *) cat > ./.gdbinit <<EOF
9728# ${NO_EDIT}
9729dir ${srcdir}
9730dir .
9731source ${srcdir}/.gdbinit
9732EOF
9733 ;;
9734 esac
9735fi
9736
671aa708
NN
9737# Make sure that the compiler is able to generate an executable. If it
9738# can't, we are probably in trouble. We don't care whether we can run the
9739# executable--we might be using a cross compiler--we only care whether it
9740# can be created. At this point the main configure script has set CC.
9741we_are_ok=no
9742echo "int main () { return 0; }" > conftest.c
9743${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9744if test $? = 0 ; then
9745 if test -s conftest || test -s conftest.exe ; then
9746 we_are_ok=yes
9747 fi
1c710c3c 9748fi
671aa708
NN
9749case $we_are_ok in
9750 no)
9751 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9752 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9753 rm -f conftest*
9754 exit 1
9755 ;;
9756esac
9757rm -f conftest*
9758
d89f0ad6 9759# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
9760case "${host}" in
9761 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 9762 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 9763 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
9764 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9765esac
9766
d89f0ad6
AL
9767# On systems where the dynamic library environment variable is PATH,
9768# gcc/ will put dynamic libraries into a subdirectory to avoid adding
9769# built executables to PATH.
9770if test "$RPATH_ENVVAR" = PATH; then
9771 GCC_SHLIB_SUBDIR=/shlib
9772else
9773 GCC_SHLIB_SUBDIR=
9774fi
9775
beeda1d9
JJ
9776# Adjust the toplevel makefile according to whether bootstrap was selected.
9777case $enable_bootstrap in
9778 yes)
9779 bootstrap_suffix=bootstrap
9780 BUILD_CONFIG=bootstrap-debug
9781 ;;
9782 no)
9783 bootstrap_suffix=no-bootstrap
9784 BUILD_CONFIG=
9785 ;;
9786esac
9787
9788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9789$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9790
9791
9792# Check whether --with-build-config was given.
9793if test "${with_build_config+set}" = set; then :
9794 withval=$with_build_config; case $with_build_config in
9795 yes) with_build_config= ;;
9796 no) with_build_config= BUILD_CONFIG= ;;
9797 esac
9798fi
9799
9800
9801if test "x${with_build_config}" != x; then
9802 BUILD_CONFIG=$with_build_config
9803else
9804 case $BUILD_CONFIG in
9805 bootstrap-debug)
9806 if echo "int f (void) { return 0; }" > conftest.c &&
9807 ${CC} -c conftest.c &&
9808 mv conftest.o conftest.o.g0 &&
9809 ${CC} -c -g conftest.c &&
9810 mv conftest.o conftest.o.g &&
9811 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9812 :
9813 else
9814 BUILD_CONFIG=
9815 fi
9816 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9817 ;;
9818 esac
9819fi
9820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9821$as_echo "$BUILD_CONFIG" >&6; }
9822
9823
9824# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9826$as_echo_n "checking for --enable-vtable-verify... " >&6; }
9827# Check whether --enable-vtable-verify was given.
9828if test "${enable_vtable_verify+set}" = set; then :
9829 enableval=$enable_vtable_verify; case "$enableval" in
9830 yes) enable_vtable_verify=yes ;;
9831 no) enable_vtable_verify=no ;;
9832 *) enable_vtable_verify=no;;
9833 esac
9834else
9835 enable_vtable_verify=no
9836fi
9837
9838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9839$as_echo "$enable_vtable_verify" >&6; }
9840
671aa708
NN
9841# Record target_configdirs and the configure arguments for target and
9842# build configuration in Makefile.
9843target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 9844build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 9845bootstrap_fixincludes=no
671aa708 9846
ad1e5170
JR
9847# If we are building libgomp, bootstrap it.
9848if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9849 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9850fi
9851
beeda1d9
JJ
9852# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9853# or bootstrap-ubsan, bootstrap it.
9854if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9855 case "$BUILD_CONFIG" in
170e618e 9856 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
beeda1d9 9857 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 9858 bootstrap_fixincludes=yes
beeda1d9
JJ
9859 ;;
9860 esac
ac8701fe
L
9861fi
9862
beeda1d9
JJ
9863# If we are building libvtv and --enable-vtable-verify, bootstrap it.
9864if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9865 test "$enable_vtable_verify" != no; then
2077db1b
CT
9866 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9867fi
9868
5fee5ec3
IB
9869# If we are building libatomic and the list of enabled languages includes the
9870# D frontend, bootstrap it.
9871if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9872 case ,${enable_languages}, in
9873 *,d,*)
9874 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9875 ;;
9876 esac
9877fi
9878
671aa708
NN
9879# Determine whether gdb needs tk/tcl or not.
9880# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9881# and in that case we want gdb to be built without tk. Ugh!
9882# In fact I believe gdb is the *only* package directly dependent on tk,
9883# so we should be able to put the 'maybe's in unconditionally and
9884# leave out the maybe dependencies when enable_gdbtk is false. I'm not
9885# 100% sure that that's safe though.
e914a571 9886
b4f96efe 9887gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
9888case "$enable_gdbtk" in
9889 no)
9890 GDB_TK="" ;;
e914a571
AC
9891 yes)
9892 GDB_TK="${gdb_tk}" ;;
671aa708 9893 *)
e914a571
AC
9894 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9895 # distro. Eventually someone will fix this and move Insight, nee
9896 # gdbtk to a separate directory.
9897 if test -d ${srcdir}/gdb/gdbtk ; then
9898 GDB_TK="${gdb_tk}"
9899 else
9900 GDB_TK=""
9901 fi
9902 ;;
671aa708 9903esac
ef9db8d5
DJ
9904CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9905INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 9906
f9d09df0
TT
9907# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9908# else does, only include them if one of these is built. The Makefile
9909# provides the ordering, so it's enough here to add to the list.
9910case " ${configdirs} " in
9911 *\ gdb\ *)
9912 configdirs="${configdirs} gnulib gdbsupport"
9913 ;;
9914 *\ gdbserver\ *)
9915 configdirs="${configdirs} gnulib gdbsupport"
9916 ;;
f14c9bd4
MF
9917 *\ sim\ *)
9918 configdirs="${configdirs} gnulib"
9919 ;;
f9d09df0 9920esac
98e5be21 9921
60975492 9922# Strip out unwanted targets.
8b87bb96
NN
9923
9924# While at that, we remove Makefiles if we were started for recursive
9925# configuration, so that the top-level Makefile reconfigures them,
9926# like we used to do when configure itself was recursive.
8b87bb96 9927
3e54529c
RW
9928# Loop over modules. We used to use the "$extrasub" feature from Autoconf
9929# but now we're fixing up the Makefile ourselves with the additional
9930# commands passed to AC_CONFIG_FILES. Use separate variables
9931# extrasub-{build,host,target} not because there is any reason to split
9932# the substitutions up that way, but only to remain below the limit of
9933# 99 commands in a script, for HP-UX sed.
da34ca3f
AO
9934
9935# Do not nest @if/@endif or @unless/@endunless pairs, because
9936# configure will not warn you at all.
8b87bb96 9937
79cd2b23
RW
9938case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9939 yes:yes:*\ gold\ *:*,c++,*) ;;
9940 yes:yes:*\ gold\ *:*)
22e05272 9941 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
79cd2b23
RW
9942 ;;
9943esac
9944
3e54529c 9945extrasub_build=
23f6b2f9 9946for module in ${build_configdirs} ; do
5607edfd
PB
9947 if test -z "${no_recursion}" \
9948 && test -f ${build_subdir}/${module}/Makefile; then
9949 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9950 rm -f ${build_subdir}/${module}/Makefile
9951 fi
3e54529c 9952 extrasub_build="$extrasub_build
5607edfd
PB
9953/^@if build-$module\$/d
9954/^@endif build-$module\$/d
da34ca3f 9955/^@unless build-$module\$/,/^@endunless build-$module\$/d
5607edfd 9956/^@if build-$module-$bootstrap_suffix\$/d
da34ca3f
AO
9957/^@endif build-$module-$bootstrap_suffix\$/d
9958/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
5607edfd 9959done
3e54529c 9960extrasub_host=
5607edfd 9961for module in ${configdirs} ; do
a6fbc1e2 9962 if test -z "${no_recursion}"; then
f063a9ed 9963 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
9964 if test -f ${file}; then
9965 echo 1>&2 "*** removing ${file} to force reconfigure"
9966 rm -f ${file}
9967 fi
9968 done
5607edfd 9969 fi
9e1c8fc1
JJ
9970 case ${module},${bootstrap_fixincludes} in
9971 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9972 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9973 esac
3e54529c 9974 extrasub_host="$extrasub_host
5607edfd
PB
9975/^@if $module\$/d
9976/^@endif $module\$/d
da34ca3f 9977/^@unless $module\$/,/^@endunless $module\$/d
9e1c8fc1 9978/^@if $module-$host_bootstrap_suffix\$/d
da34ca3f
AO
9979/^@endif $module-$host_bootstrap_suffix\$/d
9980/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
5607edfd 9981done
3e54529c 9982extrasub_target=
5607edfd
PB
9983for module in ${target_configdirs} ; do
9984 if test -z "${no_recursion}" \
9985 && test -f ${target_subdir}/${module}/Makefile; then
9986 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9987 rm -f ${target_subdir}/${module}/Makefile
9988 fi
00020c16
ILT
9989
9990 # We only bootstrap target libraries listed in bootstrap_target_libs.
9991 case $bootstrap_target_libs in
9992 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9993 *) target_bootstrap_suffix=no-bootstrap ;;
9994 esac
9995
3e54529c 9996 extrasub_target="$extrasub_target
5607edfd
PB
9997/^@if target-$module\$/d
9998/^@endif target-$module\$/d
da34ca3f 9999/^@unless target-$module\$/,/^@endunless target-$module\$/d
00020c16 10000/^@if target-$module-$target_bootstrap_suffix\$/d
da34ca3f
AO
10001/^@endif target-$module-$target_bootstrap_suffix\$/d
10002/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
10003done
10004
3e54529c
RW
10005# Do the final fixup along with target modules.
10006extrasub_target="$extrasub_target
da34ca3f
AO
10007/^@if /,/^@endif /d
10008/^@unless /d
10009/^@endunless /d"
671aa708 10010
4a5e71f2
L
10011if test "$enable_pgo_build" != "no"; then
10012 extrasub_build="$extrasub_build
10013/^@if pgo-build\$/d
10014/^@endif pgo-build\$/d"
10015fi
10016
671aa708
NN
10017# Create the serialization dependencies. This uses a temporary file.
10018
5213506e
RW
10019# Check whether --enable-serial-configure was given.
10020if test "${enable_serial_configure+set}" = set; then :
10021 enableval=$enable_serial_configure;
10022fi
ade82b16
AO
10023
10024
bf1d3e81
NN
10025case ${enable_serial_configure} in
10026 yes)
10027 enable_serial_build_configure=yes
10028 enable_serial_host_configure=yes
10029 enable_serial_target_configure=yes
10030 ;;
10031esac
10032
671aa708
NN
10033# These force 'configure's to be done one at a time, to avoid problems
10034# with contention over a shared config.cache.
10035rm -f serdep.tmp
7d115e01 10036if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
ade82b16 10037echo '# serdep.tmp' > serdep.tmp
7d115e01 10038fi
671aa708 10039olditem=
bf1d3e81 10040test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
10041for item in ${build_configdirs} ; do
10042 case ${olditem} in
10043 "") ;;
ade82b16 10044 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
10045 esac
10046 olditem=${item}
10047done
10048olditem=
bf1d3e81 10049test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
10050for item in ${configdirs} ; do
10051 case ${olditem} in
10052 "") ;;
ade82b16 10053 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
10054 esac
10055 olditem=${item}
10056done
10057olditem=
bf1d3e81 10058test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
10059for item in ${target_configdirs} ; do
10060 case ${olditem} in
10061 "") ;;
ade82b16 10062 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
10063 esac
10064 olditem=${item}
10065done
10066serialization_dependencies=serdep.tmp
10067
10068
ade82b16 10069# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 10070# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
10071# might not want to pass down to subconfigures. The exception being
10072# --cache-file=/dev/null, which is used to turn off the use of cache
10073# files altogether, and which should be passed on to subconfigures.
10074# Also strip program-prefix, program-suffix, and program-transform-name,
10075# so that we can pass down a consistent program-transform-name.
1c710c3c 10076baseargs=
29a63921 10077tbaseargs=
1c710c3c
DJ
10078keep_next=no
10079skip_next=no
10080eval "set -- $ac_configure_args"
44bfc3ac
DJ
10081for ac_arg
10082do
1c710c3c
DJ
10083 if test X"$skip_next" = X"yes"; then
10084 skip_next=no
10085 continue
10086 fi
10087 if test X"$keep_next" = X"yes"; then
10088 case $ac_arg in
10089 *\'*)
10090 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10091 esac
10092 baseargs="$baseargs '$ac_arg'"
29a63921 10093 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
10094 keep_next=no
10095 continue
10096 fi
10097
10098 # Handle separated arguments. Based on the logic generated by
10099 # autoconf 2.59.
10100 case $ac_arg in
10101 *=* | --config-cache | -C | -disable-* | --disable-* \
10102 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10103 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10104 | -with-* | --with-* | -without-* | --without-* | --x)
10105 separate_arg=no
10106 ;;
10107 -*)
10108 separate_arg=yes
10109 ;;
10110 *)
10111 separate_arg=no
10112 ;;
10113 esac
10114
29a63921
AO
10115 skip_targ=no
10116 case $ac_arg in
10117
10118 --with-* | --without-*)
10119 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10120
10121 case $libopt in
10122 *[-_]include)
10123 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10124 ;;
10125 *[-_]lib)
10126 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10127 ;;
10128 *)
10129 lib=$libopt
10130 ;;
10131 esac
10132
10133
10134 case $lib in
4a9bb2aa 10135 mpc | mpfr | gmp | isl)
29a63921
AO
10136 # If we're processing --with-$lib, --with-$lib-include or
10137 # --with-$lib-lib, for one of the libs above, and target is
10138 # different from host, don't pass the current argument to any
10139 # target library's configure.
10140 if test x$is_cross_compiler = xyes; then
10141 skip_targ=yes
10142 fi
10143 ;;
10144 esac
10145 ;;
10146 esac
10147
1c710c3c 10148 case "$ac_arg" in
f1a036e4
NC
10149 --cache-file=/dev/null | \
10150 -cache-file=/dev/null )
10151 # Handled here to avoid the test to skip args below.
10152 baseargs="$baseargs '$ac_arg'"
29a63921 10153 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
10154 # Assert: $separate_arg should always be no.
10155 keep_next=$separate_arg
10156 ;;
1c710c3c
DJ
10157 --no*)
10158 continue
10159 ;;
10160 --c* | \
10161 --sr* | \
10162 --ho* | \
10163 --bu* | \
10164 --t* | \
10165 --program-* | \
10166 -cache_file* | \
10167 -srcdir* | \
10168 -host* | \
10169 -build* | \
10170 -target* | \
10171 -program-prefix* | \
10172 -program-suffix* | \
10173 -program-transform-name* )
10174 skip_next=$separate_arg
10175 continue
10176 ;;
10177 -*)
10178 # An option. Add it.
10179 case $ac_arg in
10180 *\'*)
10181 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10182 esac
10183 baseargs="$baseargs '$ac_arg'"
29a63921
AO
10184 if test X"$skip_targ" = Xno; then
10185 tbaseargs="$tbaseargs '$ac_arg'"
10186 fi
1c710c3c
DJ
10187 keep_next=$separate_arg
10188 ;;
10189 *)
10190 # Either a variable assignment, or a nonopt (triplet). Don't
10191 # pass it down; let the Makefile handle this.
10192 continue
10193 ;;
10194 esac
10195done
10196# Remove the initial space we just introduced and, as these will be
10197# expanded by make, quote '$'.
10198baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 10199
43bb47c2
DJ
10200# Add in --program-transform-name, after --program-prefix and
10201# --program-suffix have been applied to it. Autoconf has already
10202# doubled dollar signs and backslashes in program_transform_name; we want
10203# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 10204# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
10205# Also, because we want to override the logic in subdir configure scripts to
10206# choose program_transform_name, replace any s,x,x, with s,y,y,.
10207sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10208${program_transform_name}
10209EOF_SED
10210gcc_transform_name=`cat conftestsed.out`
10211rm -f conftestsed.out
10212baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 10213tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
10214if test "$silent" = yes; then
10215 baseargs="$baseargs --silent"
29a63921 10216 tbaseargs="$tbaseargs --silent"
d9acb717 10217fi
0115d4a3 10218baseargs="$baseargs --disable-option-checking"
29a63921 10219tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 10220
ffedf511
RW
10221# Record and document user additions to sub configure arguments.
10222
10223
10224
10225
671aa708
NN
10226# For the build-side libraries, we just need to pretend we're native,
10227# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
10228# desired. We can't even use the same cache file for all build-side
10229# libraries, as they're compiled differently; some with C, some with
10230# C++ or with different feature-enabling options.
10231build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
10232
10233# For host modules, accept cache file option, or specification as blank.
10234case "${cache_file}" in
10235"") # empty
10236 cache_file_option="" ;;
10237/* | [A-Za-z]:[\\/]* ) # absolute path
10238 cache_file_option="--cache-file=${cache_file}" ;;
10239*) # relative path
10240 cache_file_option="--cache-file=../${cache_file}" ;;
10241esac
10242
09438bde
NN
10243# Host dirs don't like to share a cache file either, horribly enough.
10244# This seems to be due to autoconf 2.5x stupidity.
ffedf511 10245host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 10246
29a63921 10247target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
10248
10249# Passing a --with-cross-host argument lets the target libraries know
10250# whether they are being built with a cross-compiler or being built
10251# native. However, it would be better to use other mechanisms to make the
10252# sorts of decisions they want to make on this basis. Please consider
10253# this option to be deprecated. FIXME.
10254if test x${is_cross_compiler} = xyes ; then
1c710c3c 10255 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
10256fi
10257
79e0604d
FXC
10258# Special user-friendly check for native x86_64-linux build, if
10259# multilib is not explicitly enabled.
10260case "$target:$have_compiler:$host:$target:$enable_multilib" in
10261 x86_64-*linux*:yes:$build:$build:)
e640447c 10262 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
10263 dev64=no
10264 echo "int main () { return 0; }" > conftest.c
10265 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10266 if test $? = 0 ; then
10267 if test -s conftest || test -s conftest.exe ; then
10268 dev64=yes
10269 fi
10270 fi
10271 rm -f conftest*
10272 if test x${dev64} != xyes ; then
22e05272 10273 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
10274 fi
10275 ;;
10276esac
10277
dc683a3f
RW
10278# Default to --enable-multilib.
10279if test x${enable_multilib} = x ; then
671aa708 10280 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 10281fi
671aa708
NN
10282
10283# Pass --with-newlib if appropriate. Note that target_configdirs has
10284# changed from the earlier setting of with_newlib.
10285if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10286 target_configargs="--with-newlib ${target_configargs}"
10287fi
10288
6b9eb62c
NN
10289# Different target subdirs use different values of certain variables
10290# (notably CXX). Worse, multilibs use *lots* of different values.
10291# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10292# it doesn't automatically accept command-line overrides of them.
10293# This means it's not safe for target subdirs to share a cache file,
10294# which is disgusting, but there you have it. Hopefully this can be
10295# fixed in future. It's still worthwhile to use a cache file for each
10296# directory. I think.
10297
bebcd931
MS
10298# Pass the appropriate --build, --host, --target and --cache-file arguments.
10299# We need to pass --target, as newer autoconf's requires consistency
10300# for target_alias and gcc doesn't manage it consistently.
e69bf64b 10301target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 10302
671aa708
NN
10303FLAGS_FOR_TARGET=
10304case " $target_configdirs " in
10305 *" newlib "*)
10306 case " $target_configargs " in
10307 *" --with-newlib "*)
10308 case "$target" in
5d571eaa 10309 *-cygwin*)
443e6238 10310 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 10311 ;;
671aa708
NN
10312 esac
10313
10314 # If we're not building GCC, don't discard standard headers.
10315 if test -d ${srcdir}/gcc; then
10316 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10317
10318 if test "${build}" != "${host}"; then
10319 # On Canadian crosses, CC_FOR_TARGET will have already been set
10320 # by `configure', so we won't have an opportunity to add -Bgcc/
10321 # to it. This is right: we don't want to search that directory
10322 # for binaries, but we want the header files in there, so add
10323 # them explicitly.
0463992b 10324 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
10325
10326 # Someone might think of using the pre-installed headers on
10327 # Canadian crosses, in case the installed compiler is not fully
10328 # compatible with the compiler being built. In this case, it
10329 # would be better to flag an error than risking having
10330 # incompatible object files being constructed. We can't
10331 # guarantee that an error will be flagged, but let's hope the
10332 # compiler will do it, when presented with incompatible header
10333 # files.
10334 fi
10335 fi
10336
10337 case "${target}-${is_cross_compiler}" in
f2a0e225 10338 i[3456789]86-*-linux*-no)
671aa708
NN
10339 # Here host == target, so we don't need to build gcc,
10340 # so we don't want to discard standard headers.
10341 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10342 ;;
10343 *)
10344 # If we're building newlib, use its generic headers last, but search
10345 # for any libc-related directories first (so make it the last -B
10346 # switch).
10347 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
10348
10349 # If we're building libgloss, find the startup file, simulator library
10350 # and linker script.
10351 case " $target_configdirs " in
10352 *" libgloss "*)
10353 # Look for startup file, simulator library and maybe linker script.
10354 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10355 # Look for libnosys.a in case the target needs it.
10356 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10357 # Most targets have the linker script in the source directory.
10358 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10359 ;;
10360 esac
671aa708
NN
10361 ;;
10362 esac
10363 ;;
10364 esac
10365 ;;
10366esac
5d571eaa 10367
b91f0a41 10368case "$target" in
5d571eaa
OS
10369 x86_64-*mingw* | *-w64-mingw*)
10370 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10371 # however, use a symlink named 'mingw' in ${prefix} .
10372 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10373 ;;
10374 *-mingw*)
10375 # MinGW can't be handled as Cygwin above since it does not use newlib.
10376 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'
10377 ;;
b91f0a41 10378esac
671aa708 10379
6691a79e
ME
10380# Allow the user to override the flags for
10381# our build compiler if desired.
f019adc1
MF
10382if test x"${build}" = x"${host}" ; then
10383 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
84401ce5 10384 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
f019adc1
MF
10385 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10386 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10387fi
6691a79e 10388
671aa708
NN
10389# On Canadian crosses, we'll be searching the right directories for
10390# the previously-installed cross compiler, so don't bother to add
10391# flags for directories within the install tree of the compiler
10392# being built; programs in there won't even run.
10393if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10394 # Search for pre-installed headers if nothing else fits.
9124bc53 10395 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
10396fi
10397
10398if test "x${use_gnu_ld}" = x &&
10399 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10400 # Arrange for us to find uninstalled linker scripts.
215c351a 10401 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
10402fi
10403
e88a2c09
DD
10404# Search for other target-specific linker scripts and such.
10405case "${target}" in
3e19841a
PB
10406 mep*)
10407 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10408 ;;
9b8ffbb8
OH
10409 # The VxWorks support for shared libraries is getting in
10410 # incrementally. Make sure it doesn't get activated implicitly:
10411 *vxworks*)
10412 if test "${enable_shared-unset}" = unset ; then
10413 enable_shared=no
10414 # So the build of libraries knows ...
10415 target_configargs="${target_configargs} --disable-shared"
10416 # So gcc knows ...
10417 host_configargs="${host_configargs} --disable-shared"
10418 fi
10419 ;;
e88a2c09
DD
10420esac
10421
671aa708 10422# Makefile fragments.
7b61653a
PE
10423for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10424do
10425 eval fragval=\$$frag
10426 if test $fragval != /dev/null; then
10427 eval $frag=${srcdir}/$fragval
10428 fi
10429done
671aa708
NN
10430
10431
10432
10433
10434
10435# Miscellanea: directories, flags, etc.
10436
10437
10438
10439
10440
10441
10442
d89f0ad6 10443
23f6b2f9 10444# Build module lists & subconfigure args.
671aa708
NN
10445
10446
10447
2abefe3d
PB
10448# Host module lists & subconfigure args.
10449
10450
10451
aae29963 10452
2abefe3d
PB
10453# Target module lists & subconfigure args.
10454
10455
10456
10457# Build tools.
10458
10459
10460
0999159b
PB
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
b4c522fa 10474
3b5e8ee4 10475
a1d2b162
IS
10476
10477
2abefe3d
PB
10478# Generate default definitions for YACC, M4, LEX and other programs that run
10479# on the build machine. These are used if the Makefile can't locate these
10480# programs in objdir.
10481MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10482
10483for ac_prog in 'bison -y' byacc yacc
10484do
1c710c3c 10485 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10486set dummy $ac_prog; ac_word=$2
5213506e
RW
10487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10488$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10489if ${ac_cv_prog_YACC+:} false; then :
5213506e 10490 $as_echo_n "(cached) " >&6
2abefe3d
PB
10491else
10492 if test -n "$YACC"; then
10493 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10494else
1c710c3c
DJ
10495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10496for as_dir in $PATH
10497do
10498 IFS=$as_save_IFS
10499 test -z "$as_dir" && as_dir=.
5213506e 10500 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10502 ac_cv_prog_YACC="$ac_prog"
5213506e 10503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10504 break 2
10505 fi
10506done
5213506e
RW
10507 done
10508IFS=$as_save_IFS
1c710c3c 10509
2abefe3d
PB
10510fi
10511fi
1c710c3c 10512YACC=$ac_cv_prog_YACC
2abefe3d 10513if test -n "$YACC"; then
5213506e
RW
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10515$as_echo "$YACC" >&6; }
2abefe3d 10516else
5213506e
RW
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10518$as_echo "no" >&6; }
2abefe3d
PB
10519fi
10520
5213506e 10521
1c710c3c 10522 test -n "$YACC" && break
2abefe3d
PB
10523done
10524test -n "$YACC" || YACC="$MISSING bison -y"
10525
10526case " $build_configdirs " in
10527 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
10528esac
10529
10530for ac_prog in bison
10531do
1c710c3c 10532 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10533set dummy $ac_prog; ac_word=$2
5213506e
RW
10534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10535$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10536if ${ac_cv_prog_BISON+:} false; then :
5213506e 10537 $as_echo_n "(cached) " >&6
2abefe3d
PB
10538else
10539 if test -n "$BISON"; then
10540 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10541else
1c710c3c
DJ
10542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10543for as_dir in $PATH
10544do
10545 IFS=$as_save_IFS
10546 test -z "$as_dir" && as_dir=.
5213506e 10547 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10549 ac_cv_prog_BISON="$ac_prog"
5213506e 10550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10551 break 2
10552 fi
10553done
5213506e
RW
10554 done
10555IFS=$as_save_IFS
1c710c3c 10556
2abefe3d
PB
10557fi
10558fi
1c710c3c 10559BISON=$ac_cv_prog_BISON
2abefe3d 10560if test -n "$BISON"; then
5213506e
RW
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10562$as_echo "$BISON" >&6; }
2abefe3d 10563else
5213506e
RW
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10565$as_echo "no" >&6; }
2abefe3d
PB
10566fi
10567
5213506e 10568
1c710c3c 10569 test -n "$BISON" && break
2abefe3d
PB
10570done
10571test -n "$BISON" || BISON="$MISSING bison"
10572
10573case " $build_configdirs " in
10574 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10575esac
10576
10577for ac_prog in gm4 gnum4 m4
10578do
1c710c3c 10579 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10580set dummy $ac_prog; ac_word=$2
5213506e
RW
10581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10582$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10583if ${ac_cv_prog_M4+:} false; then :
5213506e 10584 $as_echo_n "(cached) " >&6
2abefe3d
PB
10585else
10586 if test -n "$M4"; then
10587 ac_cv_prog_M4="$M4" # Let the user override the test.
10588else
1c710c3c
DJ
10589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10590for as_dir in $PATH
10591do
10592 IFS=$as_save_IFS
10593 test -z "$as_dir" && as_dir=.
5213506e 10594 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10596 ac_cv_prog_M4="$ac_prog"
5213506e 10597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10598 break 2
10599 fi
10600done
5213506e
RW
10601 done
10602IFS=$as_save_IFS
1c710c3c 10603
2abefe3d
PB
10604fi
10605fi
1c710c3c 10606M4=$ac_cv_prog_M4
2abefe3d 10607if test -n "$M4"; then
5213506e
RW
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10609$as_echo "$M4" >&6; }
2abefe3d 10610else
5213506e
RW
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10612$as_echo "no" >&6; }
2abefe3d
PB
10613fi
10614
5213506e 10615
1c710c3c 10616 test -n "$M4" && break
2abefe3d
PB
10617done
10618test -n "$M4" || M4="$MISSING m4"
10619
10620case " $build_configdirs " in
10621 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10622esac
10623
10624for ac_prog in flex lex
10625do
1c710c3c 10626 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10627set dummy $ac_prog; ac_word=$2
5213506e
RW
10628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10629$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10630if ${ac_cv_prog_LEX+:} false; then :
5213506e 10631 $as_echo_n "(cached) " >&6
2abefe3d
PB
10632else
10633 if test -n "$LEX"; then
10634 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10635else
1c710c3c
DJ
10636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10637for as_dir in $PATH
10638do
10639 IFS=$as_save_IFS
10640 test -z "$as_dir" && as_dir=.
5213506e 10641 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10643 ac_cv_prog_LEX="$ac_prog"
5213506e 10644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10645 break 2
10646 fi
10647done
5213506e
RW
10648 done
10649IFS=$as_save_IFS
1c710c3c 10650
2abefe3d
PB
10651fi
10652fi
1c710c3c 10653LEX=$ac_cv_prog_LEX
2abefe3d 10654if test -n "$LEX"; then
5213506e
RW
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10656$as_echo "$LEX" >&6; }
2abefe3d 10657else
5213506e
RW
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10659$as_echo "no" >&6; }
2abefe3d
PB
10660fi
10661
5213506e 10662
1c710c3c 10663 test -n "$LEX" && break
2abefe3d
PB
10664done
10665test -n "$LEX" || LEX="$MISSING flex"
10666
10667case " $build_configdirs " in
10668 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10669 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10670esac
10671
10672for ac_prog in flex
10673do
1c710c3c 10674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10675set dummy $ac_prog; ac_word=$2
5213506e
RW
10676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10677$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10678if ${ac_cv_prog_FLEX+:} false; then :
5213506e 10679 $as_echo_n "(cached) " >&6
2abefe3d
PB
10680else
10681 if test -n "$FLEX"; then
10682 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10683else
1c710c3c
DJ
10684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10685for as_dir in $PATH
10686do
10687 IFS=$as_save_IFS
10688 test -z "$as_dir" && as_dir=.
5213506e 10689 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10691 ac_cv_prog_FLEX="$ac_prog"
5213506e 10692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10693 break 2
10694 fi
10695done
5213506e
RW
10696 done
10697IFS=$as_save_IFS
1c710c3c 10698
2abefe3d
PB
10699fi
10700fi
1c710c3c 10701FLEX=$ac_cv_prog_FLEX
2abefe3d 10702if test -n "$FLEX"; then
5213506e
RW
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10704$as_echo "$FLEX" >&6; }
2abefe3d 10705else
5213506e
RW
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10707$as_echo "no" >&6; }
2abefe3d
PB
10708fi
10709
5213506e 10710
1c710c3c 10711 test -n "$FLEX" && break
2abefe3d
PB
10712done
10713test -n "$FLEX" || FLEX="$MISSING flex"
10714
10715case " $build_configdirs " in
10716 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10717esac
10718
10719for ac_prog in makeinfo
10720do
1c710c3c 10721 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10722set dummy $ac_prog; ac_word=$2
5213506e
RW
10723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10724$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10725if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 10726 $as_echo_n "(cached) " >&6
2abefe3d
PB
10727else
10728 if test -n "$MAKEINFO"; then
10729 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10730else
1c710c3c
DJ
10731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10732for as_dir in $PATH
10733do
10734 IFS=$as_save_IFS
10735 test -z "$as_dir" && as_dir=.
5213506e 10736 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10738 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 10739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10740 break 2
10741 fi
10742done
5213506e
RW
10743 done
10744IFS=$as_save_IFS
1c710c3c 10745
2abefe3d
PB
10746fi
10747fi
1c710c3c 10748MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 10749if test -n "$MAKEINFO"; then
5213506e
RW
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10751$as_echo "$MAKEINFO" >&6; }
2abefe3d 10752else
5213506e
RW
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10754$as_echo "no" >&6; }
2abefe3d
PB
10755fi
10756
5213506e 10757
1c710c3c 10758 test -n "$MAKEINFO" && break
2abefe3d
PB
10759done
10760test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10761
10762case " $build_configdirs " in
10763 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10764 *)
10765
d18ff35a 10766 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
10767 # higher, else we use the "missing" dummy.
10768 if ${MAKEINFO} --version \
d18ff35a 10769 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
10770 :
10771 else
10772 MAKEINFO="$MISSING makeinfo"
10773 fi
10774 ;;
10775
10776esac
671aa708 10777
2abefe3d 10778# FIXME: expect and dejagnu may become build tools?
671aa708 10779
2abefe3d
PB
10780for ac_prog in expect
10781do
1c710c3c 10782 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10783set dummy $ac_prog; ac_word=$2
5213506e
RW
10784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10785$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10786if ${ac_cv_prog_EXPECT+:} false; then :
5213506e 10787 $as_echo_n "(cached) " >&6
2abefe3d
PB
10788else
10789 if test -n "$EXPECT"; then
10790 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10791else
1c710c3c
DJ
10792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10793for as_dir in $PATH
10794do
10795 IFS=$as_save_IFS
10796 test -z "$as_dir" && as_dir=.
5213506e 10797 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10799 ac_cv_prog_EXPECT="$ac_prog"
5213506e 10800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10801 break 2
10802 fi
10803done
5213506e
RW
10804 done
10805IFS=$as_save_IFS
1c710c3c 10806
2abefe3d
PB
10807fi
10808fi
1c710c3c 10809EXPECT=$ac_cv_prog_EXPECT
2abefe3d 10810if test -n "$EXPECT"; then
5213506e
RW
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10812$as_echo "$EXPECT" >&6; }
2abefe3d 10813else
5213506e
RW
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10815$as_echo "no" >&6; }
2abefe3d 10816fi
671aa708 10817
5213506e 10818
1c710c3c 10819 test -n "$EXPECT" && break
2abefe3d
PB
10820done
10821test -n "$EXPECT" || EXPECT="expect"
671aa708 10822
2abefe3d
PB
10823case " $configdirs " in
10824 *" expect "*)
10825 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10826 ;;
10827esac
671aa708 10828
2abefe3d
PB
10829for ac_prog in runtest
10830do
1c710c3c 10831 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10832set dummy $ac_prog; ac_word=$2
5213506e
RW
10833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10834$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10835if ${ac_cv_prog_RUNTEST+:} false; then :
5213506e 10836 $as_echo_n "(cached) " >&6
2abefe3d
PB
10837else
10838 if test -n "$RUNTEST"; then
10839 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 10840else
1c710c3c
DJ
10841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10842for as_dir in $PATH
10843do
10844 IFS=$as_save_IFS
10845 test -z "$as_dir" && as_dir=.
5213506e 10846 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10848 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 10849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10850 break 2
10851 fi
10852done
5213506e
RW
10853 done
10854IFS=$as_save_IFS
1c710c3c 10855
2abefe3d
PB
10856fi
10857fi
1c710c3c 10858RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 10859if test -n "$RUNTEST"; then
5213506e
RW
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10861$as_echo "$RUNTEST" >&6; }
2abefe3d 10862else
5213506e
RW
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10864$as_echo "no" >&6; }
2abefe3d 10865fi
671aa708 10866
5213506e 10867
1c710c3c 10868 test -n "$RUNTEST" && break
2abefe3d
PB
10869done
10870test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 10871
2abefe3d
PB
10872case " $configdirs " in
10873 *" dejagnu "*)
c394e891 10874 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
10875 ;;
10876esac
671aa708 10877
4e3dcf20 10878
671aa708 10879# Host tools.
ca9f4b81
AO
10880ncn_tool_prefix=
10881test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10882ncn_target_tool_prefix=
10883test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10884
278a7a38
AO
10885
10886
10887if test -n "$AR"; then
10888 ac_cv_prog_AR=$AR
10889elif test -n "$ac_cv_prog_AR"; then
10890 AR=$ac_cv_prog_AR
10891fi
10892
10893if test -n "$ac_cv_prog_AR"; then
10894 for ncn_progname in ar; do
10895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10896set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10898$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10899if ${ac_cv_prog_AR+:} false; then :
5213506e 10900 $as_echo_n "(cached) " >&6
278a7a38
AO
10901else
10902 if test -n "$AR"; then
10903 ac_cv_prog_AR="$AR" # Let the user override the test.
10904else
10905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10906for as_dir in $PATH
10907do
10908 IFS=$as_save_IFS
10909 test -z "$as_dir" && as_dir=.
5213506e 10910 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10912 ac_cv_prog_AR="${ncn_progname}"
5213506e 10913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10914 break 2
10915 fi
10916done
5213506e
RW
10917 done
10918IFS=$as_save_IFS
278a7a38
AO
10919
10920fi
10921fi
10922AR=$ac_cv_prog_AR
10923if test -n "$AR"; then
5213506e
RW
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10925$as_echo "$AR" >&6; }
278a7a38 10926else
5213506e
RW
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10928$as_echo "no" >&6; }
278a7a38
AO
10929fi
10930
5213506e 10931
278a7a38
AO
10932 done
10933fi
10934
10935for ncn_progname in ar; do
2693c0b0
PB
10936 if test -n "$ncn_tool_prefix"; then
10937 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10938set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10940$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10941if ${ac_cv_prog_AR+:} false; then :
5213506e 10942 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10943else
10944 if test -n "$AR"; then
10945 ac_cv_prog_AR="$AR" # Let the user override the test.
10946else
1c710c3c
DJ
10947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948for as_dir in $PATH
10949do
10950 IFS=$as_save_IFS
10951 test -z "$as_dir" && as_dir=.
5213506e 10952 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10954 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 10955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10956 break 2
10957 fi
10958done
5213506e
RW
10959 done
10960IFS=$as_save_IFS
1c710c3c 10961
ca9f4b81
AO
10962fi
10963fi
1c710c3c 10964AR=$ac_cv_prog_AR
ca9f4b81 10965if test -n "$AR"; then
5213506e
RW
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10967$as_echo "$AR" >&6; }
ca9f4b81 10968else
5213506e
RW
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970$as_echo "no" >&6; }
ca9f4b81
AO
10971fi
10972
5213506e 10973
2693c0b0
PB
10974 fi
10975 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10977set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10979$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10980if ${ac_cv_prog_AR+:} false; then :
5213506e 10981 $as_echo_n "(cached) " >&6
ca9f4b81 10982else
2693c0b0 10983 if test -n "$AR"; then
af71363e
AS
10984 ac_cv_prog_AR="$AR" # Let the user override the test.
10985else
1c710c3c
DJ
10986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10987for as_dir in $PATH
10988do
10989 IFS=$as_save_IFS
10990 test -z "$as_dir" && as_dir=.
5213506e 10991 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10993 ac_cv_prog_AR="${ncn_progname}"
5213506e 10994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10995 break 2
10996 fi
10997done
5213506e
RW
10998 done
10999IFS=$as_save_IFS
1c710c3c 11000
ca9f4b81
AO
11001fi
11002fi
1c710c3c 11003AR=$ac_cv_prog_AR
2693c0b0 11004if test -n "$AR"; then
5213506e
RW
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11006$as_echo "$AR" >&6; }
ca9f4b81 11007else
5213506e
RW
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11009$as_echo "no" >&6; }
ca9f4b81 11010fi
1c710c3c 11011
5213506e 11012
2693c0b0
PB
11013 fi
11014 test -n "$ac_cv_prog_AR" && break
11015done
11016
11017if test -z "$ac_cv_prog_AR" ; then
11018 set dummy ar
11019 if test $build = $host ; then
11020 AR="$2"
ca9f4b81 11021 else
2693c0b0 11022 AR="${ncn_tool_prefix}$2"
ca9f4b81 11023 fi
ca9f4b81
AO
11024fi
11025
278a7a38
AO
11026
11027
11028if test -n "$AS"; then
11029 ac_cv_prog_AS=$AS
11030elif test -n "$ac_cv_prog_AS"; then
11031 AS=$ac_cv_prog_AS
11032fi
11033
11034if test -n "$ac_cv_prog_AS"; then
11035 for ncn_progname in as; do
11036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11037set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11039$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11040if ${ac_cv_prog_AS+:} false; then :
5213506e 11041 $as_echo_n "(cached) " >&6
278a7a38
AO
11042else
11043 if test -n "$AS"; then
11044 ac_cv_prog_AS="$AS" # Let the user override the test.
11045else
11046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047for as_dir in $PATH
11048do
11049 IFS=$as_save_IFS
11050 test -z "$as_dir" && as_dir=.
5213506e 11051 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11053 ac_cv_prog_AS="${ncn_progname}"
5213506e 11054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11055 break 2
11056 fi
11057done
5213506e
RW
11058 done
11059IFS=$as_save_IFS
278a7a38
AO
11060
11061fi
11062fi
11063AS=$ac_cv_prog_AS
11064if test -n "$AS"; then
5213506e
RW
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11066$as_echo "$AS" >&6; }
278a7a38 11067else
5213506e
RW
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11069$as_echo "no" >&6; }
278a7a38
AO
11070fi
11071
5213506e 11072
278a7a38
AO
11073 done
11074fi
11075
11076for ncn_progname in as; do
2693c0b0
PB
11077 if test -n "$ncn_tool_prefix"; then
11078 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11079set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11081$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11082if ${ac_cv_prog_AS+:} false; then :
5213506e 11083 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11084else
11085 if test -n "$AS"; then
11086 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 11087else
1c710c3c
DJ
11088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089for as_dir in $PATH
11090do
11091 IFS=$as_save_IFS
11092 test -z "$as_dir" && as_dir=.
5213506e 11093 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11095 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 11096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11097 break 2
11098 fi
11099done
5213506e
RW
11100 done
11101IFS=$as_save_IFS
1c710c3c 11102
ca9f4b81
AO
11103fi
11104fi
1c710c3c 11105AS=$ac_cv_prog_AS
ca9f4b81 11106if test -n "$AS"; then
5213506e
RW
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11108$as_echo "$AS" >&6; }
ca9f4b81 11109else
5213506e
RW
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11111$as_echo "no" >&6; }
ca9f4b81
AO
11112fi
11113
5213506e 11114
2693c0b0
PB
11115 fi
11116 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11118set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11120$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11121if ${ac_cv_prog_AS+:} false; then :
5213506e 11122 $as_echo_n "(cached) " >&6
ca9f4b81 11123else
2693c0b0
PB
11124 if test -n "$AS"; then
11125 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 11126else
1c710c3c
DJ
11127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128for as_dir in $PATH
11129do
11130 IFS=$as_save_IFS
11131 test -z "$as_dir" && as_dir=.
5213506e 11132 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11134 ac_cv_prog_AS="${ncn_progname}"
5213506e 11135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11136 break 2
11137 fi
11138done
5213506e
RW
11139 done
11140IFS=$as_save_IFS
1c710c3c 11141
ca9f4b81
AO
11142fi
11143fi
1c710c3c 11144AS=$ac_cv_prog_AS
2693c0b0 11145if test -n "$AS"; then
5213506e
RW
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11147$as_echo "$AS" >&6; }
ca9f4b81 11148else
5213506e
RW
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11150$as_echo "no" >&6; }
ca9f4b81 11151fi
1c710c3c 11152
5213506e 11153
2693c0b0
PB
11154 fi
11155 test -n "$ac_cv_prog_AS" && break
11156done
11157
11158if test -z "$ac_cv_prog_AS" ; then
11159 set dummy as
11160 if test $build = $host ; then
11161 AS="$2"
ca9f4b81 11162 else
2693c0b0 11163 AS="${ncn_tool_prefix}$2"
ca9f4b81 11164 fi
ca9f4b81
AO
11165fi
11166
278a7a38
AO
11167
11168
11169if test -n "$DLLTOOL"; then
11170 ac_cv_prog_DLLTOOL=$DLLTOOL
11171elif test -n "$ac_cv_prog_DLLTOOL"; then
11172 DLLTOOL=$ac_cv_prog_DLLTOOL
11173fi
11174
11175if test -n "$ac_cv_prog_DLLTOOL"; then
11176 for ncn_progname in dlltool; do
11177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11178set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11180$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11181if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11182 $as_echo_n "(cached) " >&6
278a7a38
AO
11183else
11184 if test -n "$DLLTOOL"; then
11185 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11186else
11187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188for as_dir in $PATH
11189do
11190 IFS=$as_save_IFS
11191 test -z "$as_dir" && as_dir=.
5213506e 11192 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11194 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 11195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11196 break 2
11197 fi
11198done
5213506e
RW
11199 done
11200IFS=$as_save_IFS
278a7a38
AO
11201
11202fi
11203fi
11204DLLTOOL=$ac_cv_prog_DLLTOOL
11205if test -n "$DLLTOOL"; then
5213506e
RW
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11207$as_echo "$DLLTOOL" >&6; }
278a7a38 11208else
5213506e
RW
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210$as_echo "no" >&6; }
278a7a38
AO
11211fi
11212
5213506e 11213
278a7a38
AO
11214 done
11215fi
11216
11217for ncn_progname in dlltool; do
2693c0b0
PB
11218 if test -n "$ncn_tool_prefix"; then
11219 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11220set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11222$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11223if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11224 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11225else
11226 if test -n "$DLLTOOL"; then
11227 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11228else
1c710c3c
DJ
11229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230for as_dir in $PATH
11231do
11232 IFS=$as_save_IFS
11233 test -z "$as_dir" && as_dir=.
5213506e 11234 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11236 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 11237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11238 break 2
11239 fi
11240done
5213506e
RW
11241 done
11242IFS=$as_save_IFS
1c710c3c 11243
ca9f4b81
AO
11244fi
11245fi
1c710c3c 11246DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 11247if test -n "$DLLTOOL"; then
5213506e
RW
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11249$as_echo "$DLLTOOL" >&6; }
ca9f4b81 11250else
5213506e
RW
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252$as_echo "no" >&6; }
ca9f4b81
AO
11253fi
11254
5213506e 11255
2693c0b0
PB
11256 fi
11257 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11258 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11259set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11261$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11262if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11263 $as_echo_n "(cached) " >&6
ca9f4b81 11264else
2693c0b0
PB
11265 if test -n "$DLLTOOL"; then
11266 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 11267else
1c710c3c
DJ
11268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11269for as_dir in $PATH
11270do
11271 IFS=$as_save_IFS
11272 test -z "$as_dir" && as_dir=.
5213506e 11273 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11275 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 11276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11277 break 2
11278 fi
11279done
5213506e
RW
11280 done
11281IFS=$as_save_IFS
1c710c3c 11282
ca9f4b81
AO
11283fi
11284fi
1c710c3c 11285DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 11286if test -n "$DLLTOOL"; then
5213506e
RW
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11288$as_echo "$DLLTOOL" >&6; }
ca9f4b81 11289else
5213506e
RW
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291$as_echo "no" >&6; }
ca9f4b81 11292fi
1c710c3c 11293
5213506e 11294
2693c0b0
PB
11295 fi
11296 test -n "$ac_cv_prog_DLLTOOL" && break
11297done
11298
11299if test -z "$ac_cv_prog_DLLTOOL" ; then
11300 set dummy dlltool
11301 if test $build = $host ; then
11302 DLLTOOL="$2"
ca9f4b81 11303 else
2693c0b0 11304 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 11305 fi
ca9f4b81
AO
11306fi
11307
278a7a38
AO
11308
11309
3b5e8ee4
IS
11310if test -n "$DSYMUTIL"; then
11311 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11312elif test -n "$ac_cv_prog_DSYMUTIL"; then
11313 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11314fi
11315
11316if test -n "$ac_cv_prog_DSYMUTIL"; then
11317 for ncn_progname in dsymutil; do
11318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11319set dummy ${ncn_progname}; ac_word=$2
11320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11321$as_echo_n "checking for $ac_word... " >&6; }
11322if ${ac_cv_prog_DSYMUTIL+:} false; then :
11323 $as_echo_n "(cached) " >&6
11324else
11325 if test -n "$DSYMUTIL"; then
11326 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11327else
11328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329for as_dir in $PATH
11330do
11331 IFS=$as_save_IFS
11332 test -z "$as_dir" && as_dir=.
11333 for ac_exec_ext in '' $ac_executable_extensions; do
11334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11335 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11337 break 2
11338 fi
11339done
11340 done
11341IFS=$as_save_IFS
11342
11343fi
11344fi
11345DSYMUTIL=$ac_cv_prog_DSYMUTIL
11346if test -n "$DSYMUTIL"; then
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11348$as_echo "$DSYMUTIL" >&6; }
11349else
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351$as_echo "no" >&6; }
11352fi
11353
11354
11355 done
11356fi
11357
11358for ncn_progname in dsymutil; do
11359 if test -n "$ncn_tool_prefix"; then
11360 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11361set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11363$as_echo_n "checking for $ac_word... " >&6; }
11364if ${ac_cv_prog_DSYMUTIL+:} false; then :
11365 $as_echo_n "(cached) " >&6
11366else
11367 if test -n "$DSYMUTIL"; then
11368 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11369else
11370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371for as_dir in $PATH
11372do
11373 IFS=$as_save_IFS
11374 test -z "$as_dir" && as_dir=.
11375 for ac_exec_ext in '' $ac_executable_extensions; do
11376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11377 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11379 break 2
11380 fi
11381done
11382 done
11383IFS=$as_save_IFS
11384
11385fi
11386fi
11387DSYMUTIL=$ac_cv_prog_DSYMUTIL
11388if test -n "$DSYMUTIL"; then
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11390$as_echo "$DSYMUTIL" >&6; }
11391else
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393$as_echo "no" >&6; }
11394fi
11395
11396
11397 fi
11398 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11399 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11400set dummy ${ncn_progname}; ac_word=$2
11401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11402$as_echo_n "checking for $ac_word... " >&6; }
11403if ${ac_cv_prog_DSYMUTIL+:} false; then :
11404 $as_echo_n "(cached) " >&6
11405else
11406 if test -n "$DSYMUTIL"; then
11407 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11408else
11409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410for as_dir in $PATH
11411do
11412 IFS=$as_save_IFS
11413 test -z "$as_dir" && as_dir=.
11414 for ac_exec_ext in '' $ac_executable_extensions; do
11415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11416 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11418 break 2
11419 fi
11420done
11421 done
11422IFS=$as_save_IFS
11423
11424fi
11425fi
11426DSYMUTIL=$ac_cv_prog_DSYMUTIL
11427if test -n "$DSYMUTIL"; then
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11429$as_echo "$DSYMUTIL" >&6; }
11430else
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432$as_echo "no" >&6; }
11433fi
11434
11435
11436 fi
11437 test -n "$ac_cv_prog_DSYMUTIL" && break
11438done
11439
11440if test -z "$ac_cv_prog_DSYMUTIL" ; then
11441 set dummy dsymutil
11442 if test $build = $host ; then
11443 DSYMUTIL="$2"
11444 else
11445 DSYMUTIL="${ncn_tool_prefix}$2"
11446 fi
11447fi
11448
11449
11450
278a7a38
AO
11451if test -n "$LD"; then
11452 ac_cv_prog_LD=$LD
11453elif test -n "$ac_cv_prog_LD"; then
11454 LD=$ac_cv_prog_LD
11455fi
11456
11457if test -n "$ac_cv_prog_LD"; then
11458 for ncn_progname in ld; do
11459 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11460set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11462$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11463if ${ac_cv_prog_LD+:} false; then :
5213506e 11464 $as_echo_n "(cached) " >&6
278a7a38
AO
11465else
11466 if test -n "$LD"; then
11467 ac_cv_prog_LD="$LD" # Let the user override the test.
11468else
11469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11470for as_dir in $PATH
11471do
11472 IFS=$as_save_IFS
11473 test -z "$as_dir" && as_dir=.
5213506e 11474 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11476 ac_cv_prog_LD="${ncn_progname}"
5213506e 11477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11478 break 2
11479 fi
11480done
5213506e
RW
11481 done
11482IFS=$as_save_IFS
278a7a38
AO
11483
11484fi
11485fi
11486LD=$ac_cv_prog_LD
11487if test -n "$LD"; then
5213506e
RW
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11489$as_echo "$LD" >&6; }
278a7a38 11490else
5213506e
RW
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492$as_echo "no" >&6; }
278a7a38
AO
11493fi
11494
5213506e 11495
278a7a38
AO
11496 done
11497fi
11498
11499for ncn_progname in ld; do
2693c0b0
PB
11500 if test -n "$ncn_tool_prefix"; then
11501 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11502set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11504$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11505if ${ac_cv_prog_LD+:} false; then :
5213506e 11506 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11507else
11508 if test -n "$LD"; then
11509 ac_cv_prog_LD="$LD" # Let the user override the test.
11510else
1c710c3c
DJ
11511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512for as_dir in $PATH
11513do
11514 IFS=$as_save_IFS
11515 test -z "$as_dir" && as_dir=.
5213506e 11516 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11518 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 11519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11520 break 2
11521 fi
11522done
5213506e
RW
11523 done
11524IFS=$as_save_IFS
1c710c3c 11525
ca9f4b81
AO
11526fi
11527fi
1c710c3c 11528LD=$ac_cv_prog_LD
ca9f4b81 11529if test -n "$LD"; then
5213506e
RW
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11531$as_echo "$LD" >&6; }
ca9f4b81 11532else
5213506e
RW
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534$as_echo "no" >&6; }
ca9f4b81
AO
11535fi
11536
5213506e 11537
2693c0b0
PB
11538 fi
11539 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11540 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11541set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11543$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11544if ${ac_cv_prog_LD+:} false; then :
5213506e 11545 $as_echo_n "(cached) " >&6
ca9f4b81 11546else
2693c0b0
PB
11547 if test -n "$LD"; then
11548 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 11549else
1c710c3c
DJ
11550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11551for as_dir in $PATH
11552do
11553 IFS=$as_save_IFS
11554 test -z "$as_dir" && as_dir=.
5213506e 11555 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11557 ac_cv_prog_LD="${ncn_progname}"
5213506e 11558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11559 break 2
11560 fi
11561done
5213506e
RW
11562 done
11563IFS=$as_save_IFS
1c710c3c 11564
ca9f4b81
AO
11565fi
11566fi
1c710c3c 11567LD=$ac_cv_prog_LD
2693c0b0 11568if test -n "$LD"; then
5213506e
RW
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11570$as_echo "$LD" >&6; }
ca9f4b81 11571else
5213506e
RW
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573$as_echo "no" >&6; }
ca9f4b81 11574fi
1c710c3c 11575
5213506e 11576
2693c0b0
PB
11577 fi
11578 test -n "$ac_cv_prog_LD" && break
11579done
11580
11581if test -z "$ac_cv_prog_LD" ; then
11582 set dummy ld
11583 if test $build = $host ; then
11584 LD="$2"
ca9f4b81 11585 else
2693c0b0 11586 LD="${ncn_tool_prefix}$2"
ca9f4b81 11587 fi
ca9f4b81
AO
11588fi
11589
278a7a38
AO
11590
11591
11592if test -n "$LIPO"; then
11593 ac_cv_prog_LIPO=$LIPO
11594elif test -n "$ac_cv_prog_LIPO"; then
11595 LIPO=$ac_cv_prog_LIPO
11596fi
11597
11598if test -n "$ac_cv_prog_LIPO"; then
11599 for ncn_progname in lipo; do
11600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11601set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11603$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11604if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11605 $as_echo_n "(cached) " >&6
278a7a38
AO
11606else
11607 if test -n "$LIPO"; then
11608 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11609else
11610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611for as_dir in $PATH
11612do
11613 IFS=$as_save_IFS
11614 test -z "$as_dir" && as_dir=.
5213506e 11615 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11617 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11619 break 2
11620 fi
11621done
5213506e
RW
11622 done
11623IFS=$as_save_IFS
278a7a38
AO
11624
11625fi
11626fi
11627LIPO=$ac_cv_prog_LIPO
11628if test -n "$LIPO"; then
5213506e
RW
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11630$as_echo "$LIPO" >&6; }
278a7a38 11631else
5213506e
RW
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11633$as_echo "no" >&6; }
278a7a38
AO
11634fi
11635
5213506e 11636
278a7a38
AO
11637 done
11638fi
11639
11640for ncn_progname in lipo; do
2abefe3d
PB
11641 if test -n "$ncn_tool_prefix"; then
11642 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11643set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11645$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11646if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11647 $as_echo_n "(cached) " >&6
2abefe3d
PB
11648else
11649 if test -n "$LIPO"; then
11650 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11651else
1c710c3c
DJ
11652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11653for as_dir in $PATH
11654do
11655 IFS=$as_save_IFS
11656 test -z "$as_dir" && as_dir=.
5213506e 11657 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11659 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 11660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11661 break 2
11662 fi
11663done
5213506e
RW
11664 done
11665IFS=$as_save_IFS
1c710c3c 11666
2abefe3d
PB
11667fi
11668fi
1c710c3c 11669LIPO=$ac_cv_prog_LIPO
2abefe3d 11670if test -n "$LIPO"; then
5213506e
RW
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11672$as_echo "$LIPO" >&6; }
2abefe3d 11673else
5213506e
RW
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675$as_echo "no" >&6; }
2abefe3d
PB
11676fi
11677
5213506e 11678
2abefe3d
PB
11679 fi
11680 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11681 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11682set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11685if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11686 $as_echo_n "(cached) " >&6
2abefe3d
PB
11687else
11688 if test -n "$LIPO"; then
11689 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11690else
1c710c3c
DJ
11691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692for as_dir in $PATH
11693do
11694 IFS=$as_save_IFS
11695 test -z "$as_dir" && as_dir=.
5213506e 11696 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11698 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11700 break 2
11701 fi
11702done
5213506e
RW
11703 done
11704IFS=$as_save_IFS
1c710c3c 11705
2abefe3d
PB
11706fi
11707fi
1c710c3c 11708LIPO=$ac_cv_prog_LIPO
2abefe3d 11709if test -n "$LIPO"; then
5213506e
RW
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11711$as_echo "$LIPO" >&6; }
2abefe3d 11712else
5213506e
RW
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714$as_echo "no" >&6; }
2abefe3d 11715fi
1c710c3c 11716
5213506e 11717
2abefe3d
PB
11718 fi
11719 test -n "$ac_cv_prog_LIPO" && break
11720done
11721
11722if test -z "$ac_cv_prog_LIPO" ; then
11723 set dummy lipo
11724 if test $build = $host ; then
11725 LIPO="$2"
11726 else
11727 LIPO="${ncn_tool_prefix}$2"
11728 fi
11729fi
11730
278a7a38
AO
11731
11732
11733if test -n "$NM"; then
11734 ac_cv_prog_NM=$NM
11735elif test -n "$ac_cv_prog_NM"; then
11736 NM=$ac_cv_prog_NM
11737fi
11738
11739if test -n "$ac_cv_prog_NM"; then
11740 for ncn_progname in nm; do
11741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11742set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11745if ${ac_cv_prog_NM+:} false; then :
5213506e 11746 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11747else
11748 if test -n "$NM"; then
11749 ac_cv_prog_NM="$NM" # Let the user override the test.
11750else
1c710c3c
DJ
11751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752for as_dir in $PATH
11753do
11754 IFS=$as_save_IFS
11755 test -z "$as_dir" && as_dir=.
5213506e 11756 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11758 ac_cv_prog_NM="${ncn_progname}"
5213506e 11759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11760 break 2
11761 fi
11762done
5213506e
RW
11763 done
11764IFS=$as_save_IFS
1c710c3c 11765
ca9f4b81
AO
11766fi
11767fi
1c710c3c 11768NM=$ac_cv_prog_NM
ca9f4b81 11769if test -n "$NM"; then
5213506e
RW
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11771$as_echo "$NM" >&6; }
ca9f4b81 11772else
5213506e
RW
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774$as_echo "no" >&6; }
ca9f4b81
AO
11775fi
11776
5213506e 11777
278a7a38
AO
11778 done
11779fi
11780
11781for ncn_progname in nm; do
11782 if test -n "$ncn_tool_prefix"; then
11783 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11784set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11786$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11787if ${ac_cv_prog_NM+:} false; then :
5213506e 11788 $as_echo_n "(cached) " >&6
ca9f4b81 11789else
2693c0b0
PB
11790 if test -n "$NM"; then
11791 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 11792else
1c710c3c
DJ
11793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11794for as_dir in $PATH
11795do
11796 IFS=$as_save_IFS
11797 test -z "$as_dir" && as_dir=.
5213506e 11798 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11800 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 11801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11802 break 2
11803 fi
11804done
5213506e
RW
11805 done
11806IFS=$as_save_IFS
1c710c3c 11807
ca9f4b81
AO
11808fi
11809fi
1c710c3c 11810NM=$ac_cv_prog_NM
2693c0b0 11811if test -n "$NM"; then
5213506e
RW
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11813$as_echo "$NM" >&6; }
ca9f4b81 11814else
5213506e
RW
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816$as_echo "no" >&6; }
ca9f4b81 11817fi
1c710c3c 11818
5213506e 11819
2693c0b0 11820 fi
278a7a38
AO
11821 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11822 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11823set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11825$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11826if ${ac_cv_prog_NM+:} false; then :
5213506e 11827 $as_echo_n "(cached) " >&6
278a7a38
AO
11828else
11829 if test -n "$NM"; then
11830 ac_cv_prog_NM="$NM" # Let the user override the test.
11831else
11832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833for as_dir in $PATH
11834do
11835 IFS=$as_save_IFS
11836 test -z "$as_dir" && as_dir=.
5213506e 11837 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11839 ac_cv_prog_NM="${ncn_progname}"
5213506e 11840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11841 break 2
11842 fi
11843done
5213506e
RW
11844 done
11845IFS=$as_save_IFS
278a7a38
AO
11846
11847fi
11848fi
11849NM=$ac_cv_prog_NM
11850if test -n "$NM"; then
5213506e
RW
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11852$as_echo "$NM" >&6; }
278a7a38 11853else
5213506e
RW
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855$as_echo "no" >&6; }
278a7a38
AO
11856fi
11857
5213506e 11858
278a7a38
AO
11859 fi
11860 test -n "$ac_cv_prog_NM" && break
11861done
11862
11863if test -z "$ac_cv_prog_NM" ; then
11864 set dummy nm
11865 if test $build = $host ; then
11866 NM="$2"
11867 else
11868 NM="${ncn_tool_prefix}$2"
11869 fi
11870fi
11871
11872
11873
11874if test -n "$RANLIB"; then
11875 ac_cv_prog_RANLIB=$RANLIB
11876elif test -n "$ac_cv_prog_RANLIB"; then
11877 RANLIB=$ac_cv_prog_RANLIB
11878fi
11879
11880if test -n "$ac_cv_prog_RANLIB"; then
11881 for ncn_progname in ranlib; do
11882 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11883set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11886if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11887 $as_echo_n "(cached) " >&6
278a7a38
AO
11888else
11889 if test -n "$RANLIB"; then
11890 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11891else
11892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893for as_dir in $PATH
11894do
11895 IFS=$as_save_IFS
11896 test -z "$as_dir" && as_dir=.
5213506e 11897 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11899 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11901 break 2
11902 fi
11903done
5213506e
RW
11904 done
11905IFS=$as_save_IFS
278a7a38
AO
11906
11907fi
11908fi
11909RANLIB=$ac_cv_prog_RANLIB
11910if test -n "$RANLIB"; then
5213506e
RW
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11912$as_echo "$RANLIB" >&6; }
278a7a38 11913else
5213506e
RW
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915$as_echo "no" >&6; }
278a7a38
AO
11916fi
11917
5213506e 11918
278a7a38
AO
11919 done
11920fi
ca9f4b81 11921
278a7a38 11922for ncn_progname in ranlib; do
2693c0b0
PB
11923 if test -n "$ncn_tool_prefix"; then
11924 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11925set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11927$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11928if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11929 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11930else
11931 if test -n "$RANLIB"; then
11932 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11933else
1c710c3c
DJ
11934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11935for as_dir in $PATH
11936do
11937 IFS=$as_save_IFS
11938 test -z "$as_dir" && as_dir=.
5213506e 11939 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11941 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 11942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11943 break 2
11944 fi
11945done
5213506e
RW
11946 done
11947IFS=$as_save_IFS
1c710c3c 11948
ca9f4b81
AO
11949fi
11950fi
1c710c3c 11951RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 11952if test -n "$RANLIB"; then
5213506e
RW
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11954$as_echo "$RANLIB" >&6; }
ca9f4b81 11955else
5213506e
RW
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11957$as_echo "no" >&6; }
ca9f4b81
AO
11958fi
11959
5213506e 11960
2693c0b0
PB
11961 fi
11962 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11964set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11966$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11967if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11968 $as_echo_n "(cached) " >&6
ca9f4b81 11969else
2693c0b0
PB
11970 if test -n "$RANLIB"; then
11971 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 11972else
1c710c3c
DJ
11973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11974for as_dir in $PATH
11975do
11976 IFS=$as_save_IFS
11977 test -z "$as_dir" && as_dir=.
5213506e 11978 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11980 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11982 break 2
11983 fi
11984done
5213506e
RW
11985 done
11986IFS=$as_save_IFS
1c710c3c 11987
ca9f4b81
AO
11988fi
11989fi
1c710c3c 11990RANLIB=$ac_cv_prog_RANLIB
2693c0b0 11991if test -n "$RANLIB"; then
5213506e
RW
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11993$as_echo "$RANLIB" >&6; }
ca9f4b81 11994else
5213506e
RW
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11996$as_echo "no" >&6; }
ca9f4b81 11997fi
1c710c3c 11998
5213506e 11999
ca9f4b81 12000 fi
2693c0b0
PB
12001 test -n "$ac_cv_prog_RANLIB" && break
12002done
12003
12004if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 12005 RANLIB="true"
ca9f4b81
AO
12006fi
12007
278a7a38
AO
12008
12009
12010if test -n "$STRIP"; then
12011 ac_cv_prog_STRIP=$STRIP
12012elif test -n "$ac_cv_prog_STRIP"; then
12013 STRIP=$ac_cv_prog_STRIP
12014fi
12015
12016if test -n "$ac_cv_prog_STRIP"; then
12017 for ncn_progname in strip; do
12018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12019set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12021$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12022if ${ac_cv_prog_STRIP+:} false; then :
5213506e 12023 $as_echo_n "(cached) " >&6
278a7a38
AO
12024else
12025 if test -n "$STRIP"; then
12026 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12027else
12028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12029for as_dir in $PATH
12030do
12031 IFS=$as_save_IFS
12032 test -z "$as_dir" && as_dir=.
5213506e 12033 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12035 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 12036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12037 break 2
12038 fi
12039done
5213506e
RW
12040 done
12041IFS=$as_save_IFS
278a7a38
AO
12042
12043fi
12044fi
12045STRIP=$ac_cv_prog_STRIP
12046if test -n "$STRIP"; then
5213506e
RW
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12048$as_echo "$STRIP" >&6; }
278a7a38 12049else
5213506e
RW
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12051$as_echo "no" >&6; }
278a7a38
AO
12052fi
12053
5213506e 12054
278a7a38
AO
12055 done
12056fi
12057
12058for ncn_progname in strip; do
2abefe3d
PB
12059 if test -n "$ncn_tool_prefix"; then
12060 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12061set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12063$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12064if ${ac_cv_prog_STRIP+:} false; then :
5213506e 12065 $as_echo_n "(cached) " >&6
2abefe3d
PB
12066else
12067 if test -n "$STRIP"; then
12068 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12069else
1c710c3c
DJ
12070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071for as_dir in $PATH
12072do
12073 IFS=$as_save_IFS
12074 test -z "$as_dir" && as_dir=.
5213506e 12075 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12077 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 12078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12079 break 2
12080 fi
12081done
5213506e
RW
12082 done
12083IFS=$as_save_IFS
1c710c3c 12084
2abefe3d
PB
12085fi
12086fi
1c710c3c 12087STRIP=$ac_cv_prog_STRIP
2abefe3d 12088if test -n "$STRIP"; then
5213506e
RW
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12090$as_echo "$STRIP" >&6; }
2abefe3d 12091else
5213506e
RW
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12093$as_echo "no" >&6; }
2abefe3d
PB
12094fi
12095
5213506e 12096
2abefe3d
PB
12097 fi
12098 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12100set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12102$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12103if ${ac_cv_prog_STRIP+:} false; then :
5213506e 12104 $as_echo_n "(cached) " >&6
2abefe3d
PB
12105else
12106 if test -n "$STRIP"; then
12107 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12108else
1c710c3c
DJ
12109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110for as_dir in $PATH
12111do
12112 IFS=$as_save_IFS
12113 test -z "$as_dir" && as_dir=.
5213506e 12114 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12116 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 12117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12118 break 2
12119 fi
12120done
5213506e
RW
12121 done
12122IFS=$as_save_IFS
1c710c3c 12123
2abefe3d
PB
12124fi
12125fi
1c710c3c 12126STRIP=$ac_cv_prog_STRIP
2abefe3d 12127if test -n "$STRIP"; then
5213506e
RW
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12129$as_echo "$STRIP" >&6; }
2abefe3d 12130else
5213506e
RW
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132$as_echo "no" >&6; }
2abefe3d 12133fi
1c710c3c 12134
5213506e 12135
2abefe3d
PB
12136 fi
12137 test -n "$ac_cv_prog_STRIP" && break
12138done
12139
12140if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 12141 STRIP="true"
2abefe3d
PB
12142fi
12143
278a7a38
AO
12144
12145
12146if test -n "$WINDRES"; then
12147 ac_cv_prog_WINDRES=$WINDRES
12148elif test -n "$ac_cv_prog_WINDRES"; then
12149 WINDRES=$ac_cv_prog_WINDRES
12150fi
12151
12152if test -n "$ac_cv_prog_WINDRES"; then
12153 for ncn_progname in windres; do
12154 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12155set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12157$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12158if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12159 $as_echo_n "(cached) " >&6
278a7a38
AO
12160else
12161 if test -n "$WINDRES"; then
12162 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12163else
12164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12165for as_dir in $PATH
12166do
12167 IFS=$as_save_IFS
12168 test -z "$as_dir" && as_dir=.
5213506e 12169 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12171 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 12172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12173 break 2
12174 fi
12175done
5213506e
RW
12176 done
12177IFS=$as_save_IFS
278a7a38
AO
12178
12179fi
12180fi
12181WINDRES=$ac_cv_prog_WINDRES
12182if test -n "$WINDRES"; then
5213506e
RW
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12184$as_echo "$WINDRES" >&6; }
278a7a38 12185else
5213506e
RW
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12187$as_echo "no" >&6; }
278a7a38
AO
12188fi
12189
5213506e 12190
278a7a38
AO
12191 done
12192fi
12193
12194for ncn_progname in windres; do
2693c0b0
PB
12195 if test -n "$ncn_tool_prefix"; then
12196 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12197set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12200if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12201 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12202else
12203 if test -n "$WINDRES"; then
12204 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12205else
1c710c3c
DJ
12206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207for as_dir in $PATH
12208do
12209 IFS=$as_save_IFS
12210 test -z "$as_dir" && as_dir=.
5213506e 12211 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12213 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 12214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12215 break 2
12216 fi
12217done
5213506e
RW
12218 done
12219IFS=$as_save_IFS
1c710c3c 12220
ca9f4b81
AO
12221fi
12222fi
1c710c3c 12223WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 12224if test -n "$WINDRES"; then
5213506e
RW
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12226$as_echo "$WINDRES" >&6; }
ca9f4b81 12227else
5213506e
RW
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229$as_echo "no" >&6; }
ca9f4b81
AO
12230fi
12231
5213506e 12232
2693c0b0
PB
12233 fi
12234 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12236set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12239if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12240 $as_echo_n "(cached) " >&6
ca9f4b81 12241else
2693c0b0
PB
12242 if test -n "$WINDRES"; then
12243 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 12244else
1c710c3c
DJ
12245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246for as_dir in $PATH
12247do
12248 IFS=$as_save_IFS
12249 test -z "$as_dir" && as_dir=.
5213506e 12250 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12252 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12254 break 2
12255 fi
12256done
5213506e
RW
12257 done
12258IFS=$as_save_IFS
1c710c3c 12259
ca9f4b81
AO
12260fi
12261fi
1c710c3c 12262WINDRES=$ac_cv_prog_WINDRES
2693c0b0 12263if test -n "$WINDRES"; then
5213506e
RW
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12265$as_echo "$WINDRES" >&6; }
ca9f4b81 12266else
5213506e
RW
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268$as_echo "no" >&6; }
ca9f4b81 12269fi
1c710c3c 12270
5213506e 12271
2693c0b0
PB
12272 fi
12273 test -n "$ac_cv_prog_WINDRES" && break
12274done
12275
12276if test -z "$ac_cv_prog_WINDRES" ; then
12277 set dummy windres
12278 if test $build = $host ; then
12279 WINDRES="$2"
ca9f4b81 12280 else
2693c0b0 12281 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 12282 fi
ca9f4b81
AO
12283fi
12284
278a7a38
AO
12285
12286
901119ae
KT
12287if test -n "$WINDMC"; then
12288 ac_cv_prog_WINDMC=$WINDMC
12289elif test -n "$ac_cv_prog_WINDMC"; then
12290 WINDMC=$ac_cv_prog_WINDMC
12291fi
12292
12293if test -n "$ac_cv_prog_WINDMC"; then
12294 for ncn_progname in windmc; do
12295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12296set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12298$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12299if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12300 $as_echo_n "(cached) " >&6
901119ae
KT
12301else
12302 if test -n "$WINDMC"; then
12303 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12304else
12305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306for as_dir in $PATH
12307do
12308 IFS=$as_save_IFS
12309 test -z "$as_dir" && as_dir=.
5213506e 12310 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12312 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 12313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12314 break 2
12315 fi
12316done
5213506e
RW
12317 done
12318IFS=$as_save_IFS
901119ae
KT
12319
12320fi
12321fi
12322WINDMC=$ac_cv_prog_WINDMC
12323if test -n "$WINDMC"; then
5213506e
RW
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12325$as_echo "$WINDMC" >&6; }
901119ae 12326else
5213506e
RW
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328$as_echo "no" >&6; }
901119ae
KT
12329fi
12330
5213506e 12331
901119ae
KT
12332 done
12333fi
12334
12335for ncn_progname in windmc; do
12336 if test -n "$ncn_tool_prefix"; then
12337 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12338set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12340$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12341if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12342 $as_echo_n "(cached) " >&6
901119ae
KT
12343else
12344 if test -n "$WINDMC"; then
12345 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12346else
12347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348for as_dir in $PATH
12349do
12350 IFS=$as_save_IFS
12351 test -z "$as_dir" && as_dir=.
5213506e 12352 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12354 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 12355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12356 break 2
12357 fi
12358done
5213506e
RW
12359 done
12360IFS=$as_save_IFS
901119ae
KT
12361
12362fi
12363fi
12364WINDMC=$ac_cv_prog_WINDMC
12365if test -n "$WINDMC"; then
5213506e
RW
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12367$as_echo "$WINDMC" >&6; }
901119ae 12368else
5213506e
RW
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370$as_echo "no" >&6; }
901119ae
KT
12371fi
12372
5213506e 12373
901119ae
KT
12374 fi
12375 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12376 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12377set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12379$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12380if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12381 $as_echo_n "(cached) " >&6
901119ae
KT
12382else
12383 if test -n "$WINDMC"; then
12384 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12385else
12386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12387for as_dir in $PATH
12388do
12389 IFS=$as_save_IFS
12390 test -z "$as_dir" && as_dir=.
5213506e 12391 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12393 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 12394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12395 break 2
12396 fi
12397done
5213506e
RW
12398 done
12399IFS=$as_save_IFS
901119ae
KT
12400
12401fi
12402fi
12403WINDMC=$ac_cv_prog_WINDMC
12404if test -n "$WINDMC"; then
5213506e
RW
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12406$as_echo "$WINDMC" >&6; }
901119ae 12407else
5213506e
RW
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409$as_echo "no" >&6; }
901119ae
KT
12410fi
12411
5213506e 12412
901119ae
KT
12413 fi
12414 test -n "$ac_cv_prog_WINDMC" && break
12415done
12416
12417if test -z "$ac_cv_prog_WINDMC" ; then
12418 set dummy windmc
12419 if test $build = $host ; then
12420 WINDMC="$2"
12421 else
12422 WINDMC="${ncn_tool_prefix}$2"
12423 fi
12424fi
12425
12426
12427
278a7a38
AO
12428if test -n "$OBJCOPY"; then
12429 ac_cv_prog_OBJCOPY=$OBJCOPY
12430elif test -n "$ac_cv_prog_OBJCOPY"; then
12431 OBJCOPY=$ac_cv_prog_OBJCOPY
12432fi
12433
12434if test -n "$ac_cv_prog_OBJCOPY"; then
12435 for ncn_progname in objcopy; do
12436 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12437set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12439$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12440if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12441 $as_echo_n "(cached) " >&6
278a7a38
AO
12442else
12443 if test -n "$OBJCOPY"; then
12444 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12445else
12446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12447for as_dir in $PATH
12448do
12449 IFS=$as_save_IFS
12450 test -z "$as_dir" && as_dir=.
5213506e 12451 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12453 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12455 break 2
12456 fi
12457done
5213506e
RW
12458 done
12459IFS=$as_save_IFS
278a7a38
AO
12460
12461fi
12462fi
12463OBJCOPY=$ac_cv_prog_OBJCOPY
12464if test -n "$OBJCOPY"; then
5213506e
RW
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12466$as_echo "$OBJCOPY" >&6; }
278a7a38 12467else
5213506e
RW
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469$as_echo "no" >&6; }
278a7a38
AO
12470fi
12471
5213506e 12472
278a7a38
AO
12473 done
12474fi
12475
12476for ncn_progname in objcopy; do
2693c0b0
PB
12477 if test -n "$ncn_tool_prefix"; then
12478 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12479set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12481$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12482if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12483 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12484else
12485 if test -n "$OBJCOPY"; then
12486 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12487else
1c710c3c
DJ
12488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12489for as_dir in $PATH
12490do
12491 IFS=$as_save_IFS
12492 test -z "$as_dir" && as_dir=.
5213506e 12493 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12495 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 12496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12497 break 2
12498 fi
12499done
5213506e
RW
12500 done
12501IFS=$as_save_IFS
1c710c3c 12502
ca9f4b81
AO
12503fi
12504fi
1c710c3c 12505OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 12506if test -n "$OBJCOPY"; then
5213506e
RW
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12508$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12509else
5213506e
RW
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12511$as_echo "no" >&6; }
ca9f4b81
AO
12512fi
12513
5213506e 12514
2693c0b0
PB
12515 fi
12516 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12518set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12520$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12521if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12522 $as_echo_n "(cached) " >&6
ca9f4b81 12523else
2693c0b0
PB
12524 if test -n "$OBJCOPY"; then
12525 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 12526else
1c710c3c
DJ
12527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12528for as_dir in $PATH
12529do
12530 IFS=$as_save_IFS
12531 test -z "$as_dir" && as_dir=.
5213506e 12532 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12534 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12536 break 2
12537 fi
12538done
5213506e
RW
12539 done
12540IFS=$as_save_IFS
1c710c3c 12541
ca9f4b81
AO
12542fi
12543fi
1c710c3c 12544OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 12545if test -n "$OBJCOPY"; then
5213506e
RW
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12547$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12548else
5213506e
RW
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550$as_echo "no" >&6; }
ca9f4b81 12551fi
1c710c3c 12552
5213506e 12553
2693c0b0
PB
12554 fi
12555 test -n "$ac_cv_prog_OBJCOPY" && break
12556done
12557
12558if test -z "$ac_cv_prog_OBJCOPY" ; then
12559 set dummy objcopy
12560 if test $build = $host ; then
12561 OBJCOPY="$2"
ca9f4b81 12562 else
2693c0b0 12563 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 12564 fi
ca9f4b81
AO
12565fi
12566
278a7a38
AO
12567
12568
12569if test -n "$OBJDUMP"; then
12570 ac_cv_prog_OBJDUMP=$OBJDUMP
12571elif test -n "$ac_cv_prog_OBJDUMP"; then
12572 OBJDUMP=$ac_cv_prog_OBJDUMP
12573fi
12574
12575if test -n "$ac_cv_prog_OBJDUMP"; then
12576 for ncn_progname in objdump; do
12577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12578set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12580$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12581if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12582 $as_echo_n "(cached) " >&6
278a7a38
AO
12583else
12584 if test -n "$OBJDUMP"; then
12585 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12586else
12587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588for as_dir in $PATH
12589do
12590 IFS=$as_save_IFS
12591 test -z "$as_dir" && as_dir=.
5213506e 12592 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12594 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12596 break 2
12597 fi
12598done
5213506e
RW
12599 done
12600IFS=$as_save_IFS
278a7a38
AO
12601
12602fi
12603fi
12604OBJDUMP=$ac_cv_prog_OBJDUMP
12605if test -n "$OBJDUMP"; then
5213506e
RW
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12607$as_echo "$OBJDUMP" >&6; }
278a7a38 12608else
5213506e
RW
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610$as_echo "no" >&6; }
278a7a38
AO
12611fi
12612
5213506e 12613
278a7a38
AO
12614 done
12615fi
12616
12617for ncn_progname in objdump; do
2693c0b0
PB
12618 if test -n "$ncn_tool_prefix"; then
12619 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12620set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12622$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12623if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12624 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12625else
12626 if test -n "$OBJDUMP"; then
12627 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12628else
1c710c3c
DJ
12629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630for as_dir in $PATH
12631do
12632 IFS=$as_save_IFS
12633 test -z "$as_dir" && as_dir=.
5213506e 12634 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12636 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 12637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12638 break 2
12639 fi
12640done
5213506e
RW
12641 done
12642IFS=$as_save_IFS
1c710c3c 12643
ca9f4b81
AO
12644fi
12645fi
1c710c3c 12646OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 12647if test -n "$OBJDUMP"; then
5213506e
RW
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12649$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12650else
5213506e
RW
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652$as_echo "no" >&6; }
ca9f4b81
AO
12653fi
12654
5213506e 12655
2693c0b0
PB
12656 fi
12657 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12658 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12659set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12661$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12662if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12663 $as_echo_n "(cached) " >&6
ca9f4b81 12664else
2693c0b0
PB
12665 if test -n "$OBJDUMP"; then
12666 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 12667else
1c710c3c
DJ
12668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12669for as_dir in $PATH
12670do
12671 IFS=$as_save_IFS
12672 test -z "$as_dir" && as_dir=.
5213506e 12673 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12675 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12677 break 2
12678 fi
12679done
5213506e
RW
12680 done
12681IFS=$as_save_IFS
1c710c3c 12682
ca9f4b81
AO
12683fi
12684fi
1c710c3c 12685OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 12686if test -n "$OBJDUMP"; then
5213506e
RW
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12688$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12689else
5213506e
RW
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691$as_echo "no" >&6; }
ca9f4b81 12692fi
1c710c3c 12693
5213506e 12694
2693c0b0
PB
12695 fi
12696 test -n "$ac_cv_prog_OBJDUMP" && break
12697done
12698
12699if test -z "$ac_cv_prog_OBJDUMP" ; then
12700 set dummy objdump
12701 if test $build = $host ; then
12702 OBJDUMP="$2"
ca9f4b81 12703 else
2693c0b0 12704 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 12705 fi
ca9f4b81
AO
12706fi
12707
671aa708
NN
12708
12709
e4a9a572
IS
12710if test -n "$OTOOL"; then
12711 ac_cv_prog_OTOOL=$OTOOL
12712elif test -n "$ac_cv_prog_OTOOL"; then
12713 OTOOL=$ac_cv_prog_OTOOL
12714fi
12715
12716if test -n "$ac_cv_prog_OTOOL"; then
12717 for ncn_progname in otool; do
12718 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12719set dummy ${ncn_progname}; ac_word=$2
12720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12721$as_echo_n "checking for $ac_word... " >&6; }
12722if ${ac_cv_prog_OTOOL+:} false; then :
12723 $as_echo_n "(cached) " >&6
12724else
12725 if test -n "$OTOOL"; then
12726 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12727else
12728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12729for as_dir in $PATH
12730do
12731 IFS=$as_save_IFS
12732 test -z "$as_dir" && as_dir=.
12733 for ac_exec_ext in '' $ac_executable_extensions; do
12734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12735 ac_cv_prog_OTOOL="${ncn_progname}"
12736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12737 break 2
12738 fi
12739done
12740 done
12741IFS=$as_save_IFS
12742
12743fi
12744fi
12745OTOOL=$ac_cv_prog_OTOOL
12746if test -n "$OTOOL"; then
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12748$as_echo "$OTOOL" >&6; }
12749else
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751$as_echo "no" >&6; }
12752fi
12753
12754
12755 done
12756fi
12757
12758for ncn_progname in otool; do
12759 if test -n "$ncn_tool_prefix"; then
12760 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12761set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12763$as_echo_n "checking for $ac_word... " >&6; }
12764if ${ac_cv_prog_OTOOL+:} false; then :
12765 $as_echo_n "(cached) " >&6
12766else
12767 if test -n "$OTOOL"; then
12768 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12769else
12770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12771for as_dir in $PATH
12772do
12773 IFS=$as_save_IFS
12774 test -z "$as_dir" && as_dir=.
12775 for ac_exec_ext in '' $ac_executable_extensions; do
12776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12777 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12779 break 2
12780 fi
12781done
12782 done
12783IFS=$as_save_IFS
12784
12785fi
12786fi
12787OTOOL=$ac_cv_prog_OTOOL
12788if test -n "$OTOOL"; then
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12790$as_echo "$OTOOL" >&6; }
12791else
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793$as_echo "no" >&6; }
12794fi
12795
12796
12797 fi
12798 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12800set dummy ${ncn_progname}; ac_word=$2
12801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12802$as_echo_n "checking for $ac_word... " >&6; }
12803if ${ac_cv_prog_OTOOL+:} false; then :
12804 $as_echo_n "(cached) " >&6
12805else
12806 if test -n "$OTOOL"; then
12807 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12808else
12809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12810for as_dir in $PATH
12811do
12812 IFS=$as_save_IFS
12813 test -z "$as_dir" && as_dir=.
12814 for ac_exec_ext in '' $ac_executable_extensions; do
12815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12816 ac_cv_prog_OTOOL="${ncn_progname}"
12817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12818 break 2
12819 fi
12820done
12821 done
12822IFS=$as_save_IFS
12823
12824fi
12825fi
12826OTOOL=$ac_cv_prog_OTOOL
12827if test -n "$OTOOL"; then
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12829$as_echo "$OTOOL" >&6; }
12830else
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12832$as_echo "no" >&6; }
12833fi
12834
12835
12836 fi
12837 test -n "$ac_cv_prog_OTOOL" && break
12838done
12839
12840if test -z "$ac_cv_prog_OTOOL" ; then
12841 set dummy otool
12842 if test $build = $host ; then
12843 OTOOL="$2"
12844 else
12845 OTOOL="${ncn_tool_prefix}$2"
12846 fi
12847fi
12848
12849
12850
e7a82751
RM
12851if test -n "$READELF"; then
12852 ac_cv_prog_READELF=$READELF
12853elif test -n "$ac_cv_prog_READELF"; then
12854 READELF=$ac_cv_prog_READELF
12855fi
12856
12857if test -n "$ac_cv_prog_READELF"; then
12858 for ncn_progname in readelf; do
12859 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12860set dummy ${ncn_progname}; ac_word=$2
12861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12862$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12863if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12864 $as_echo_n "(cached) " >&6
12865else
12866 if test -n "$READELF"; then
12867 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12868else
12869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870for as_dir in $PATH
12871do
12872 IFS=$as_save_IFS
12873 test -z "$as_dir" && as_dir=.
12874 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12876 ac_cv_prog_READELF="${ncn_progname}"
12877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12878 break 2
12879 fi
12880done
12881 done
12882IFS=$as_save_IFS
12883
12884fi
12885fi
12886READELF=$ac_cv_prog_READELF
12887if test -n "$READELF"; then
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12889$as_echo "$READELF" >&6; }
12890else
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892$as_echo "no" >&6; }
12893fi
12894
12895
12896 done
12897fi
12898
12899for ncn_progname in readelf; do
12900 if test -n "$ncn_tool_prefix"; then
12901 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12902set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12904$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12905if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12906 $as_echo_n "(cached) " >&6
12907else
12908 if test -n "$READELF"; then
12909 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12910else
12911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12912for as_dir in $PATH
12913do
12914 IFS=$as_save_IFS
12915 test -z "$as_dir" && as_dir=.
12916 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12918 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12920 break 2
12921 fi
12922done
12923 done
12924IFS=$as_save_IFS
12925
12926fi
12927fi
12928READELF=$ac_cv_prog_READELF
12929if test -n "$READELF"; then
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12931$as_echo "$READELF" >&6; }
12932else
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12934$as_echo "no" >&6; }
12935fi
12936
12937
12938 fi
12939 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12941set dummy ${ncn_progname}; ac_word=$2
12942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12943$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12944if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12945 $as_echo_n "(cached) " >&6
12946else
12947 if test -n "$READELF"; then
12948 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12949else
12950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951for as_dir in $PATH
12952do
12953 IFS=$as_save_IFS
12954 test -z "$as_dir" && as_dir=.
12955 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12957 ac_cv_prog_READELF="${ncn_progname}"
12958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12959 break 2
12960 fi
12961done
12962 done
12963IFS=$as_save_IFS
12964
12965fi
12966fi
12967READELF=$ac_cv_prog_READELF
12968if test -n "$READELF"; then
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12970$as_echo "$READELF" >&6; }
12971else
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12973$as_echo "no" >&6; }
12974fi
12975
12976
12977 fi
12978 test -n "$ac_cv_prog_READELF" && break
12979done
12980
12981if test -z "$ac_cv_prog_READELF" ; then
12982 set dummy readelf
12983 if test $build = $host ; then
12984 READELF="$2"
12985 else
12986 READELF="${ncn_tool_prefix}$2"
12987 fi
12988fi
12989
12990
12991
671aa708
NN
12992
12993
12994
5fee5ec3 12995
1ed21e23 12996GDCFLAGS=${GDCFLAGS-${CFLAGS}}
5fee5ec3 12997
126f707e
L
12998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
12999$as_echo_n "checking for -plugin option... " >&6; }
13000
13001plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
13002plugin_option=
13003for plugin in $plugin_names; do
13004 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
13005 if test x$plugin_so = x$plugin; then
13006 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
13007 fi
13008 if test x$plugin_so != x$plugin; then
13009 plugin_option="--plugin $plugin_so"
13010 break
13011 fi
13012done
9c7797a8
L
13013if test -n "$ac_tool_prefix"; then
13014 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13015set dummy ${ac_tool_prefix}ar; ac_word=$2
13016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13017$as_echo_n "checking for $ac_word... " >&6; }
13018if ${ac_cv_prog_AR+:} false; then :
13019 $as_echo_n "(cached) " >&6
13020else
13021 if test -n "$AR"; then
13022 ac_cv_prog_AR="$AR" # Let the user override the test.
13023else
13024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13025for as_dir in $PATH
13026do
13027 IFS=$as_save_IFS
13028 test -z "$as_dir" && as_dir=.
13029 for ac_exec_ext in '' $ac_executable_extensions; do
13030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13031 ac_cv_prog_AR="${ac_tool_prefix}ar"
13032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13033 break 2
13034 fi
13035done
13036 done
13037IFS=$as_save_IFS
13038
13039fi
13040fi
13041AR=$ac_cv_prog_AR
13042if test -n "$AR"; then
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13044$as_echo "$AR" >&6; }
13045else
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13047$as_echo "no" >&6; }
13048fi
13049
13050
13051fi
13052if test -z "$ac_cv_prog_AR"; then
13053 ac_ct_AR=$AR
13054 # Extract the first word of "ar", so it can be a program name with args.
13055set dummy ar; ac_word=$2
13056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13057$as_echo_n "checking for $ac_word... " >&6; }
13058if ${ac_cv_prog_ac_ct_AR+:} false; then :
13059 $as_echo_n "(cached) " >&6
13060else
13061 if test -n "$ac_ct_AR"; then
13062 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13063else
13064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13065for as_dir in $PATH
13066do
13067 IFS=$as_save_IFS
13068 test -z "$as_dir" && as_dir=.
13069 for ac_exec_ext in '' $ac_executable_extensions; do
13070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13071 ac_cv_prog_ac_ct_AR="ar"
13072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13073 break 2
13074 fi
13075done
13076 done
13077IFS=$as_save_IFS
13078
13079fi
13080fi
13081ac_ct_AR=$ac_cv_prog_ac_ct_AR
13082if test -n "$ac_ct_AR"; then
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13084$as_echo "$ac_ct_AR" >&6; }
13085else
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13087$as_echo "no" >&6; }
13088fi
13089
13090 if test "x$ac_ct_AR" = x; then
13091 AR=""
13092 else
13093 case $cross_compiling:$ac_tool_warned in
13094yes:)
13095{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13097ac_tool_warned=yes ;;
13098esac
13099 AR=$ac_ct_AR
13100 fi
13101else
13102 AR="$ac_cv_prog_AR"
13103fi
13104
13105if test "${AR}" = "" ; then
13106 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
13107fi
13108touch conftest.c
13109${AR} $plugin_option rc conftest.a conftest.c
13110if test "$?" != 0; then
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
13112$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
13113 plugin_option=
13114fi
13115rm -f conftest.*
126f707e
L
13116if test -n "$plugin_option"; then
13117 PLUGIN_OPTION="$plugin_option"
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
13119$as_echo "$plugin_option" >&6; }
13120else
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13122$as_echo "no" >&6; }
13123fi
13124
13125AR_PLUGIN_OPTION=
13126RANLIB_PLUGIN_OPTION=
13127if test -n "$PLUGIN_OPTION"; then
13128 if $AR --help 2>&1 | grep -q "\--plugin"; then
13129 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13130 fi
13131 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
13132 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13133 fi
13134fi
13135
13136
13137
2abefe3d 13138# Target tools.
1c710c3c 13139
5213506e
RW
13140# Check whether --with-build-time-tools was given.
13141if test "${with_build_time_tools+set}" = set; then :
13142 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
13143 x/*) ;;
13144 *)
13145 with_build_time_tools=
5213506e
RW
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
13147$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
13148 ;;
13149 esac
ca9f4b81 13150else
e8b05380 13151 with_build_time_tools=
5213506e
RW
13152fi
13153
ca9f4b81 13154
278a7a38
AO
13155
13156
13157if test -n "$CC_FOR_TARGET"; then
13158 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13159elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13160 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13161fi
13162
13163if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13164 for ncn_progname in cc gcc; do
13165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13166set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13168$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13169if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 13170 $as_echo_n "(cached) " >&6
278a7a38
AO
13171else
13172 if test -n "$CC_FOR_TARGET"; then
13173 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13174else
13175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13176for as_dir in $PATH
13177do
13178 IFS=$as_save_IFS
13179 test -z "$as_dir" && as_dir=.
5213506e 13180 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13182 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 13183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13184 break 2
13185 fi
13186done
5213506e
RW
13187 done
13188IFS=$as_save_IFS
278a7a38
AO
13189
13190fi
13191fi
13192CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13193if test -n "$CC_FOR_TARGET"; then
5213506e
RW
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13195$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 13196else
5213506e
RW
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13198$as_echo "no" >&6; }
278a7a38
AO
13199fi
13200
5213506e 13201
278a7a38
AO
13202 done
13203fi
13204
13205if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13206 for ncn_progname in cc gcc; do
5213506e
RW
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13208$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13209 if test -x $with_build_time_tools/${ncn_progname}; then
13210 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13212$as_echo "yes" >&6; }
72a7ab82 13213 break
e8b05380 13214 else
5213506e
RW
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216$as_echo "no" >&6; }
72a7ab82
AP
13217 fi
13218 done
4de997d1
PB
13219fi
13220
e8b05380
PB
13221if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13222 for ncn_progname in cc gcc; do
13223 if test -n "$ncn_target_tool_prefix"; then
13224 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13225set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13227$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13228if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 13229 $as_echo_n "(cached) " >&6
4de997d1
PB
13230else
13231 if test -n "$CC_FOR_TARGET"; then
13232 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13233else
1c710c3c
DJ
13234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235for as_dir in $PATH
13236do
13237 IFS=$as_save_IFS
13238 test -z "$as_dir" && as_dir=.
5213506e 13239 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13241 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13243 break 2
13244 fi
13245done
5213506e
RW
13246 done
13247IFS=$as_save_IFS
1c710c3c 13248
4de997d1
PB
13249fi
13250fi
1c710c3c 13251CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 13252if test -n "$CC_FOR_TARGET"; then
5213506e
RW
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13254$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 13255else
5213506e
RW
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13257$as_echo "no" >&6; }
4de997d1
PB
13258fi
13259
5213506e 13260
e8b05380
PB
13261 fi
13262 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13264set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13266$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13267if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 13268 $as_echo_n "(cached) " >&6
4de997d1 13269else
2693c0b0
PB
13270 if test -n "$CC_FOR_TARGET"; then
13271 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 13272else
1c710c3c
DJ
13273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274for as_dir in $PATH
13275do
13276 IFS=$as_save_IFS
13277 test -z "$as_dir" && as_dir=.
5213506e 13278 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13280 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 13281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13282 break 2
13283 fi
13284done
5213506e
RW
13285 done
13286IFS=$as_save_IFS
1c710c3c 13287
4de997d1
PB
13288fi
13289fi
1c710c3c 13290CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 13291if test -n "$CC_FOR_TARGET"; then
5213506e
RW
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13293$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 13294else
5213506e
RW
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296$as_echo "no" >&6; }
4de997d1 13297fi
1c710c3c 13298
5213506e 13299
e8b05380
PB
13300 fi
13301 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13302 done
13303fi
1c710c3c 13304
2693c0b0
PB
13305if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13306 set dummy cc gcc
13307 if test $build = $target ; then
13308 CC_FOR_TARGET="$2"
4de997d1 13309 else
2693c0b0 13310 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 13311 fi
1c00b503
PB
13312else
13313 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
13314fi
13315
278a7a38
AO
13316
13317
13318if test -n "$CXX_FOR_TARGET"; then
13319 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13320elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13321 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13322fi
13323
13324if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13325 for ncn_progname in c++ g++ cxx gxx; do
13326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13327set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13329$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13330if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13331 $as_echo_n "(cached) " >&6
278a7a38
AO
13332else
13333 if test -n "$CXX_FOR_TARGET"; then
13334 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13335else
13336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337for as_dir in $PATH
13338do
13339 IFS=$as_save_IFS
13340 test -z "$as_dir" && as_dir=.
5213506e 13341 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13343 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 13344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13345 break 2
13346 fi
13347done
5213506e
RW
13348 done
13349IFS=$as_save_IFS
278a7a38
AO
13350
13351fi
13352fi
13353CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13354if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13356$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 13357else
5213506e
RW
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13359$as_echo "no" >&6; }
278a7a38
AO
13360fi
13361
5213506e 13362
278a7a38
AO
13363 done
13364fi
13365
13366if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13367 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13369$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13370 if test -x $with_build_time_tools/${ncn_progname}; then
13371 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13373$as_echo "yes" >&6; }
e8b05380
PB
13374 break
13375 else
5213506e
RW
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377$as_echo "no" >&6; }
e8b05380
PB
13378 fi
13379 done
13380fi
13381
13382if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13383 for ncn_progname in c++ g++ cxx gxx; do
13384 if test -n "$ncn_target_tool_prefix"; then
13385 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13386set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13388$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13389if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13390 $as_echo_n "(cached) " >&6
4de997d1
PB
13391else
13392 if test -n "$CXX_FOR_TARGET"; then
13393 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13394else
1c710c3c
DJ
13395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13396for as_dir in $PATH
13397do
13398 IFS=$as_save_IFS
13399 test -z "$as_dir" && as_dir=.
5213506e 13400 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13402 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13404 break 2
13405 fi
13406done
5213506e
RW
13407 done
13408IFS=$as_save_IFS
1c710c3c 13409
4de997d1
PB
13410fi
13411fi
1c710c3c 13412CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 13413if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13415$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 13416else
5213506e
RW
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13418$as_echo "no" >&6; }
4de997d1
PB
13419fi
13420
5213506e 13421
e8b05380
PB
13422 fi
13423 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13424 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13425set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13427$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13428if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13429 $as_echo_n "(cached) " >&6
4de997d1 13430else
2693c0b0
PB
13431 if test -n "$CXX_FOR_TARGET"; then
13432 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 13433else
1c710c3c
DJ
13434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13435for as_dir in $PATH
13436do
13437 IFS=$as_save_IFS
13438 test -z "$as_dir" && as_dir=.
5213506e 13439 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13441 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 13442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13443 break 2
13444 fi
13445done
5213506e
RW
13446 done
13447IFS=$as_save_IFS
1c710c3c 13448
4de997d1
PB
13449fi
13450fi
1c710c3c 13451CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 13452if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13454$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 13455else
5213506e
RW
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457$as_echo "no" >&6; }
4de997d1 13458fi
1c710c3c 13459
5213506e 13460
e8b05380
PB
13461 fi
13462 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13463 done
13464fi
1c710c3c 13465
2693c0b0
PB
13466if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13467 set dummy c++ g++ cxx gxx
13468 if test $build = $target ; then
13469 CXX_FOR_TARGET="$2"
4de997d1 13470 else
2693c0b0 13471 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 13472 fi
1c00b503
PB
13473else
13474 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
13475fi
13476
278a7a38
AO
13477
13478
13479if test -n "$GCC_FOR_TARGET"; then
13480 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13481elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13482 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13483fi
13484
13485if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13486 for ncn_progname in gcc; do
13487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13488set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13490$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13491if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13492 $as_echo_n "(cached) " >&6
278a7a38
AO
13493else
13494 if test -n "$GCC_FOR_TARGET"; then
13495 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13496else
13497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13498for as_dir in $PATH
13499do
13500 IFS=$as_save_IFS
13501 test -z "$as_dir" && as_dir=.
5213506e 13502 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13504 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 13505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13506 break 2
13507 fi
13508done
5213506e
RW
13509 done
13510IFS=$as_save_IFS
278a7a38
AO
13511
13512fi
13513fi
13514GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13515if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13517$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 13518else
5213506e
RW
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13520$as_echo "no" >&6; }
278a7a38
AO
13521fi
13522
5213506e 13523
278a7a38
AO
13524 done
13525fi
13526
13527if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13528 for ncn_progname in gcc; do
5213506e
RW
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13530$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13531 if test -x $with_build_time_tools/${ncn_progname}; then
13532 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13534$as_echo "yes" >&6; }
e8b05380
PB
13535 break
13536 else
5213506e
RW
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13538$as_echo "no" >&6; }
e8b05380
PB
13539 fi
13540 done
13541fi
13542
13543if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13544 for ncn_progname in gcc; do
13545 if test -n "$ncn_target_tool_prefix"; then
13546 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13547set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13549$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13550if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13551 $as_echo_n "(cached) " >&6
ca9f4b81 13552else
e8b05380
PB
13553 if test -n "$GCC_FOR_TARGET"; then
13554 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13555else
1c710c3c
DJ
13556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13557for as_dir in $PATH
13558do
13559 IFS=$as_save_IFS
13560 test -z "$as_dir" && as_dir=.
5213506e 13561 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13563 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13565 break 2
13566 fi
13567done
5213506e
RW
13568 done
13569IFS=$as_save_IFS
1c710c3c 13570
ca9f4b81
AO
13571fi
13572fi
1c710c3c 13573GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13574if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13576$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13577else
5213506e
RW
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13579$as_echo "no" >&6; }
ca9f4b81
AO
13580fi
13581
5213506e 13582
e8b05380
PB
13583 fi
13584 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13586set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13588$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13589if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13590 $as_echo_n "(cached) " >&6
ca9f4b81 13591else
e8b05380
PB
13592 if test -n "$GCC_FOR_TARGET"; then
13593 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13594else
1c710c3c
DJ
13595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596for as_dir in $PATH
13597do
13598 IFS=$as_save_IFS
13599 test -z "$as_dir" && as_dir=.
5213506e 13600 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13602 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 13603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13604 break 2
13605 fi
13606done
5213506e
RW
13607 done
13608IFS=$as_save_IFS
1c710c3c 13609
ca9f4b81
AO
13610fi
13611fi
1c710c3c 13612GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13613if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13615$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13616else
5213506e
RW
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618$as_echo "no" >&6; }
ca9f4b81 13619fi
1c710c3c 13620
5213506e 13621
e8b05380
PB
13622 fi
13623 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13624 done
13625fi
1c710c3c 13626
e8b05380
PB
13627if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13628 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
13629else
13630 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
13631fi
13632
278a7a38
AO
13633
13634
278a7a38
AO
13635if test -n "$GFORTRAN_FOR_TARGET"; then
13636 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13637elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13638 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
13639fi
13640
278a7a38
AO
13641if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13642 for ncn_progname in gfortran; do
13643 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 13644set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13646$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13647if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13648 $as_echo_n "(cached) " >&6
e8b05380 13649else
278a7a38
AO
13650 if test -n "$GFORTRAN_FOR_TARGET"; then
13651 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 13652else
1c710c3c
DJ
13653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13654for as_dir in $PATH
13655do
13656 IFS=$as_save_IFS
13657 test -z "$as_dir" && as_dir=.
5213506e 13658 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13660 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13662 break 2
13663 fi
13664done
5213506e
RW
13665 done
13666IFS=$as_save_IFS
1c710c3c 13667
e8b05380
PB
13668fi
13669fi
278a7a38
AO
13670GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13671if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13673$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13674else
5213506e
RW
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13676$as_echo "no" >&6; }
e8b05380 13677fi
1c710c3c 13678
5213506e 13679
e8b05380
PB
13680 done
13681fi
1c710c3c 13682
278a7a38 13683if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13684 for ncn_progname in gfortran; do
5213506e
RW
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13686$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13687 if test -x $with_build_time_tools/${ncn_progname}; then
13688 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13690$as_echo "yes" >&6; }
e8b05380
PB
13691 break
13692 else
5213506e
RW
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13694$as_echo "no" >&6; }
e8b05380
PB
13695 fi
13696 done
13697fi
13698
13699if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13700 for ncn_progname in gfortran; do
13701 if test -n "$ncn_target_tool_prefix"; then
13702 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13703set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13705$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13706if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13707 $as_echo_n "(cached) " >&6
e8b05380
PB
13708else
13709 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
13710 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13711else
13712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13713for as_dir in $PATH
13714do
13715 IFS=$as_save_IFS
13716 test -z "$as_dir" && as_dir=.
5213506e 13717 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13719 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13721 break 2
13722 fi
13723done
5213506e
RW
13724 done
13725IFS=$as_save_IFS
1c710c3c 13726
e8b05380
PB
13727fi
13728fi
1c710c3c 13729GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13730if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13732$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13733else
5213506e
RW
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13735$as_echo "no" >&6; }
e8b05380
PB
13736fi
13737
5213506e 13738
e8b05380
PB
13739 fi
13740 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13742set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13744$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13745if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13746 $as_echo_n "(cached) " >&6
e8b05380
PB
13747else
13748 if test -n "$GFORTRAN_FOR_TARGET"; then
13749 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13750else
1c710c3c
DJ
13751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752for as_dir in $PATH
13753do
13754 IFS=$as_save_IFS
13755 test -z "$as_dir" && as_dir=.
5213506e 13756 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13758 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13760 break 2
13761 fi
13762done
5213506e
RW
13763 done
13764IFS=$as_save_IFS
1c710c3c 13765
e8b05380
PB
13766fi
13767fi
1c710c3c 13768GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13769if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13771$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13772else
5213506e
RW
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774$as_echo "no" >&6; }
e8b05380 13775fi
1c710c3c 13776
5213506e 13777
e8b05380
PB
13778 fi
13779 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13780 done
13781fi
1c710c3c 13782
e8b05380
PB
13783if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13784 set dummy gfortran
2693c0b0 13785 if test $build = $target ; then
e8b05380 13786 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 13787 else
e8b05380
PB
13788 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13789 fi
1c00b503
PB
13790else
13791 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
13792fi
13793
13794
13795
632e2a07
ILT
13796if test -n "$GOC_FOR_TARGET"; then
13797 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13798elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13799 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13800fi
13801
13802if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13803 for ncn_progname in gccgo; do
13804 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13805set dummy ${ncn_progname}; ac_word=$2
13806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13807$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13808if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13809 $as_echo_n "(cached) " >&6
13810else
13811 if test -n "$GOC_FOR_TARGET"; then
13812 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13813else
13814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13815for as_dir in $PATH
13816do
13817 IFS=$as_save_IFS
13818 test -z "$as_dir" && as_dir=.
13819 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13821 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13823 break 2
13824 fi
13825done
13826 done
13827IFS=$as_save_IFS
13828
13829fi
13830fi
13831GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13832if test -n "$GOC_FOR_TARGET"; then
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13834$as_echo "$GOC_FOR_TARGET" >&6; }
13835else
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13837$as_echo "no" >&6; }
13838fi
13839
13840
13841 done
13842fi
13843
13844if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13845 for ncn_progname in gccgo; do
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13847$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13848 if test -x $with_build_time_tools/${ncn_progname}; then
13849 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13851$as_echo "yes" >&6; }
13852 break
13853 else
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13855$as_echo "no" >&6; }
13856 fi
13857 done
13858fi
13859
13860if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13861 for ncn_progname in gccgo; do
13862 if test -n "$ncn_target_tool_prefix"; then
13863 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13864set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13866$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13867if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13868 $as_echo_n "(cached) " >&6
13869else
13870 if test -n "$GOC_FOR_TARGET"; then
13871 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13872else
13873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13874for as_dir in $PATH
13875do
13876 IFS=$as_save_IFS
13877 test -z "$as_dir" && as_dir=.
13878 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13880 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13882 break 2
13883 fi
13884done
13885 done
13886IFS=$as_save_IFS
13887
13888fi
13889fi
13890GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13891if test -n "$GOC_FOR_TARGET"; then
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13893$as_echo "$GOC_FOR_TARGET" >&6; }
13894else
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13896$as_echo "no" >&6; }
13897fi
13898
13899
13900 fi
13901 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13903set dummy ${ncn_progname}; ac_word=$2
13904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13905$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13906if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13907 $as_echo_n "(cached) " >&6
13908else
13909 if test -n "$GOC_FOR_TARGET"; then
13910 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13911else
13912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13913for as_dir in $PATH
13914do
13915 IFS=$as_save_IFS
13916 test -z "$as_dir" && as_dir=.
13917 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13919 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13921 break 2
13922 fi
13923done
13924 done
13925IFS=$as_save_IFS
13926
13927fi
13928fi
13929GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13930if test -n "$GOC_FOR_TARGET"; then
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13932$as_echo "$GOC_FOR_TARGET" >&6; }
13933else
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13935$as_echo "no" >&6; }
13936fi
13937
13938
13939 fi
13940 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13941 done
13942fi
13943
13944if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13945 set dummy gccgo
13946 if test $build = $target ; then
13947 GOC_FOR_TARGET="$2"
13948 else
13949 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13950 fi
13951else
13952 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13953fi
13954
13955
13956
b4c522fa
IB
13957if test -n "$GDC_FOR_TARGET"; then
13958 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13959elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13960 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13961fi
13962
13963if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13964 for ncn_progname in gdc; do
13965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13966set dummy ${ncn_progname}; ac_word=$2
13967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13968$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13969if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13970 $as_echo_n "(cached) " >&6
13971else
13972 if test -n "$GDC_FOR_TARGET"; then
13973 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13974else
13975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976for as_dir in $PATH
13977do
13978 IFS=$as_save_IFS
13979 test -z "$as_dir" && as_dir=.
13980 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13982 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13984 break 2
13985 fi
13986done
13987 done
13988IFS=$as_save_IFS
13989
13990fi
13991fi
13992GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13993if test -n "$GDC_FOR_TARGET"; then
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13995$as_echo "$GDC_FOR_TARGET" >&6; }
13996else
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13998$as_echo "no" >&6; }
13999fi
14000
14001
14002 done
14003fi
14004
14005if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14006 for ncn_progname in gdc; do
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14008$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14009 if test -x $with_build_time_tools/${ncn_progname}; then
14010 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14012$as_echo "yes" >&6; }
14013 break
14014 else
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14016$as_echo "no" >&6; }
14017 fi
14018 done
14019fi
14020
14021if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
14022 for ncn_progname in gdc; do
14023 if test -n "$ncn_target_tool_prefix"; then
14024 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14025set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14027$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14028if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
14029 $as_echo_n "(cached) " >&6
14030else
14031 if test -n "$GDC_FOR_TARGET"; then
14032 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14033else
14034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14035for as_dir in $PATH
14036do
14037 IFS=$as_save_IFS
14038 test -z "$as_dir" && as_dir=.
14039 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
14041 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14043 break 2
14044 fi
14045done
14046 done
14047IFS=$as_save_IFS
14048
14049fi
14050fi
14051GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14052if test -n "$GDC_FOR_TARGET"; then
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14054$as_echo "$GDC_FOR_TARGET" >&6; }
14055else
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14057$as_echo "no" >&6; }
14058fi
14059
14060
14061 fi
14062 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14064set dummy ${ncn_progname}; ac_word=$2
14065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14066$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14067if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
14068 $as_echo_n "(cached) " >&6
14069else
14070 if test -n "$GDC_FOR_TARGET"; then
14071 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14072else
14073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14074for as_dir in $PATH
14075do
14076 IFS=$as_save_IFS
14077 test -z "$as_dir" && as_dir=.
14078 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
14080 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14082 break 2
14083 fi
14084done
14085 done
14086IFS=$as_save_IFS
14087
14088fi
14089fi
14090GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14091if test -n "$GDC_FOR_TARGET"; then
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14093$as_echo "$GDC_FOR_TARGET" >&6; }
14094else
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14096$as_echo "no" >&6; }
14097fi
14098
14099
14100 fi
14101 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14102 done
14103fi
14104
14105if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14106 set dummy gdc
14107 if test $build = $target ; then
14108 GDC_FOR_TARGET="$2"
14109 else
14110 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14111 fi
14112else
14113 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14114fi
14115
14116
14117
1eee94d3
GM
14118if test -n "$GM2_FOR_TARGET"; then
14119 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
14120elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14121 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14122fi
14123
14124if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14125 for ncn_progname in gm2; do
14126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14127set dummy ${ncn_progname}; ac_word=$2
14128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14129$as_echo_n "checking for $ac_word... " >&6; }
14130if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14131 $as_echo_n "(cached) " >&6
14132else
14133 if test -n "$GM2_FOR_TARGET"; then
14134 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14135else
14136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14137for as_dir in $PATH
14138do
14139 IFS=$as_save_IFS
14140 test -z "$as_dir" && as_dir=.
14141 for ac_exec_ext in '' $ac_executable_extensions; do
14142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14143 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14145 break 2
14146 fi
14147done
14148 done
14149IFS=$as_save_IFS
14150
14151fi
14152fi
14153GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14154if test -n "$GM2_FOR_TARGET"; then
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14156$as_echo "$GM2_FOR_TARGET" >&6; }
14157else
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14159$as_echo "no" >&6; }
14160fi
14161
14162
14163 done
14164fi
14165
14166if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
14167 for ncn_progname in gm2; do
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14169$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14170 if test -x $with_build_time_tools/${ncn_progname}; then
14171 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14173$as_echo "yes" >&6; }
14174 break
14175 else
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14177$as_echo "no" >&6; }
14178 fi
14179 done
14180fi
14181
14182if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
14183 for ncn_progname in gm2; do
14184 if test -n "$ncn_target_tool_prefix"; then
14185 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14186set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14188$as_echo_n "checking for $ac_word... " >&6; }
14189if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14190 $as_echo_n "(cached) " >&6
14191else
14192 if test -n "$GM2_FOR_TARGET"; then
14193 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14194else
14195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14196for as_dir in $PATH
14197do
14198 IFS=$as_save_IFS
14199 test -z "$as_dir" && as_dir=.
14200 for ac_exec_ext in '' $ac_executable_extensions; do
14201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14202 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14204 break 2
14205 fi
14206done
14207 done
14208IFS=$as_save_IFS
14209
14210fi
14211fi
14212GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14213if test -n "$GM2_FOR_TARGET"; then
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14215$as_echo "$GM2_FOR_TARGET" >&6; }
14216else
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14218$as_echo "no" >&6; }
14219fi
14220
14221
14222 fi
14223 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14225set dummy ${ncn_progname}; ac_word=$2
14226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14227$as_echo_n "checking for $ac_word... " >&6; }
14228if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14229 $as_echo_n "(cached) " >&6
14230else
14231 if test -n "$GM2_FOR_TARGET"; then
14232 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14233else
14234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235for as_dir in $PATH
14236do
14237 IFS=$as_save_IFS
14238 test -z "$as_dir" && as_dir=.
14239 for ac_exec_ext in '' $ac_executable_extensions; do
14240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14241 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14243 break 2
14244 fi
14245done
14246 done
14247IFS=$as_save_IFS
14248
14249fi
14250fi
14251GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14252if test -n "$GM2_FOR_TARGET"; then
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14254$as_echo "$GM2_FOR_TARGET" >&6; }
14255else
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257$as_echo "no" >&6; }
14258fi
14259
14260
14261 fi
14262 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14263 done
14264fi
14265
14266if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14267 set dummy gm2
14268 if test $build = $target ; then
14269 GM2_FOR_TARGET="$2"
14270 else
14271 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14272 fi
14273else
14274 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14275fi
14276
14277
14278
e8b05380
PB
14279cat > conftest.c << \EOF
14280#ifdef __GNUC__
14281 gcc_yay;
14282#endif
14283EOF
14284if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14285 have_gcc_for_target=yes
14286else
14287 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14288 have_gcc_for_target=no
14289fi
14290rm conftest.c
14291
14292
14293
14294
14295if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14296 if test -n "$with_build_time_tools"; then
5213506e
RW
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14298$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14299 if test -x $with_build_time_tools/ar; then
14300 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14301 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14303$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 14304 else
5213506e
RW
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14306$as_echo "no" >&6; }
d1f8db0c 14307 fi
e8b05380
PB
14308 elif test $build != $host && test $have_gcc_for_target = yes; then
14309 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
14310 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14311 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
14312 fi
14313fi
3e19841a 14314if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14315 # Extract the first word of "ar", so it can be a program name with args.
14316set dummy ar; ac_word=$2
5213506e
RW
14317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14318$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14319if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
5213506e 14320 $as_echo_n "(cached) " >&6
e8b05380 14321else
1c710c3c
DJ
14322 case $AR_FOR_TARGET in
14323 [\\/]* | ?:[\\/]*)
e8b05380
PB
14324 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14325 ;;
e8b05380 14326 *)
1c710c3c
DJ
14327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14328for as_dir in $gcc_cv_tool_dirs
14329do
14330 IFS=$as_save_IFS
14331 test -z "$as_dir" && as_dir=.
5213506e 14332 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14334 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14336 break 2
14337 fi
14338done
5213506e
RW
14339 done
14340IFS=$as_save_IFS
1c710c3c 14341
e8b05380
PB
14342 ;;
14343esac
14344fi
1c710c3c 14345AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 14346if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14348$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 14349else
5213506e
RW
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351$as_echo "no" >&6; }
4de997d1
PB
14352fi
14353
5213506e 14354
e8b05380
PB
14355fi
14356if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
14357
14358
14359if test -n "$AR_FOR_TARGET"; then
14360 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14361elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14362 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14363fi
14364
14365if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14366 for ncn_progname in ar; do
14367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14368set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14370$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14371if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 14372 $as_echo_n "(cached) " >&6
278a7a38
AO
14373else
14374 if test -n "$AR_FOR_TARGET"; then
14375 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14376else
14377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14378for as_dir in $PATH
14379do
14380 IFS=$as_save_IFS
14381 test -z "$as_dir" && as_dir=.
5213506e 14382 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14384 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 14385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14386 break 2
14387 fi
14388done
5213506e
RW
14389 done
14390IFS=$as_save_IFS
278a7a38
AO
14391
14392fi
14393fi
14394AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14395if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14397$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 14398else
5213506e
RW
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14400$as_echo "no" >&6; }
278a7a38
AO
14401fi
14402
5213506e 14403
278a7a38
AO
14404 done
14405fi
14406
14407if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14408 for ncn_progname in ar; do
5213506e
RW
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14410$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14411 if test -x $with_build_time_tools/${ncn_progname}; then
14412 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14414$as_echo "yes" >&6; }
e8b05380
PB
14415 break
14416 else
5213506e
RW
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14418$as_echo "no" >&6; }
e8b05380
PB
14419 fi
14420 done
14421fi
14422
14423if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14424 for ncn_progname in ar; do
14425 if test -n "$ncn_target_tool_prefix"; then
14426 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14427set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14429$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14430if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 14431 $as_echo_n "(cached) " >&6
4de997d1 14432else
e8b05380
PB
14433 if test -n "$AR_FOR_TARGET"; then
14434 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 14435else
1c710c3c
DJ
14436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14437for as_dir in $PATH
14438do
14439 IFS=$as_save_IFS
14440 test -z "$as_dir" && as_dir=.
5213506e 14441 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14443 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14445 break 2
14446 fi
14447done
5213506e
RW
14448 done
14449IFS=$as_save_IFS
1c710c3c 14450
4de997d1
PB
14451fi
14452fi
1c710c3c 14453AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 14454if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14456$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 14457else
5213506e
RW
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14459$as_echo "no" >&6; }
4de997d1
PB
14460fi
14461
5213506e 14462
e8b05380
PB
14463 fi
14464 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14466set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14468$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14469if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 14470 $as_echo_n "(cached) " >&6
e8b05380
PB
14471else
14472 if test -n "$AR_FOR_TARGET"; then
14473 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14474else
1c710c3c
DJ
14475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14476for as_dir in $PATH
14477do
14478 IFS=$as_save_IFS
14479 test -z "$as_dir" && as_dir=.
5213506e 14480 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14482 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 14483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14484 break 2
14485 fi
14486done
5213506e
RW
14487 done
14488IFS=$as_save_IFS
1c710c3c 14489
e8b05380
PB
14490fi
14491fi
1c710c3c 14492AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 14493if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14495$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 14496else
5213506e
RW
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14498$as_echo "no" >&6; }
e8b05380 14499fi
1c710c3c 14500
5213506e 14501
e8b05380
PB
14502 fi
14503 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14504 done
14505fi
1c710c3c 14506
e8b05380
PB
14507if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14508 set dummy ar
14509 if test $build = $target ; then
14510 AR_FOR_TARGET="$2"
14511 else
14512 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 14513 fi
1c00b503
PB
14514else
14515 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
14516fi
14517
d1f8db0c
PB
14518else
14519 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
14520fi
14521
14522
14523
14524
14525if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14526 if test -n "$with_build_time_tools"; then
5213506e
RW
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14528$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14529 if test -x $with_build_time_tools/as; then
14530 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14531 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14533$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 14534 else
5213506e
RW
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14536$as_echo "no" >&6; }
d1f8db0c 14537 fi
e8b05380
PB
14538 elif test $build != $host && test $have_gcc_for_target = yes; then
14539 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
14540 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14541 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
14542 fi
14543fi
3e19841a 14544if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14545 # Extract the first word of "as", so it can be a program name with args.
14546set dummy as; ac_word=$2
5213506e
RW
14547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14548$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14549if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
5213506e 14550 $as_echo_n "(cached) " >&6
e8b05380 14551else
1c710c3c
DJ
14552 case $AS_FOR_TARGET in
14553 [\\/]* | ?:[\\/]*)
e8b05380
PB
14554 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14555 ;;
e8b05380 14556 *)
1c710c3c
DJ
14557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14558for as_dir in $gcc_cv_tool_dirs
14559do
14560 IFS=$as_save_IFS
14561 test -z "$as_dir" && as_dir=.
5213506e 14562 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14564 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14566 break 2
14567 fi
14568done
5213506e
RW
14569 done
14570IFS=$as_save_IFS
1c710c3c 14571
e8b05380
PB
14572 ;;
14573esac
14574fi
1c710c3c 14575AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 14576if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14578$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 14579else
5213506e
RW
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14581$as_echo "no" >&6; }
e8b05380
PB
14582fi
14583
5213506e 14584
e8b05380
PB
14585fi
14586if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
14587
14588
14589if test -n "$AS_FOR_TARGET"; then
14590 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14591elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14592 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14593fi
14594
14595if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14596 for ncn_progname in as; do
14597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14598set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14600$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14601if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14602 $as_echo_n "(cached) " >&6
278a7a38
AO
14603else
14604 if test -n "$AS_FOR_TARGET"; then
14605 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14606else
14607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14608for as_dir in $PATH
14609do
14610 IFS=$as_save_IFS
14611 test -z "$as_dir" && as_dir=.
5213506e 14612 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14614 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 14615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14616 break 2
14617 fi
14618done
5213506e
RW
14619 done
14620IFS=$as_save_IFS
278a7a38
AO
14621
14622fi
14623fi
14624AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14625if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14627$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 14628else
5213506e
RW
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14630$as_echo "no" >&6; }
278a7a38
AO
14631fi
14632
5213506e 14633
278a7a38
AO
14634 done
14635fi
14636
14637if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14638 for ncn_progname in as; do
5213506e
RW
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14640$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14641 if test -x $with_build_time_tools/${ncn_progname}; then
14642 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14644$as_echo "yes" >&6; }
e8b05380
PB
14645 break
14646 else
5213506e
RW
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14648$as_echo "no" >&6; }
e8b05380
PB
14649 fi
14650 done
14651fi
14652
14653if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14654 for ncn_progname in as; do
14655 if test -n "$ncn_target_tool_prefix"; then
14656 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14657set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14659$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14660if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14661 $as_echo_n "(cached) " >&6
e8b05380
PB
14662else
14663 if test -n "$AS_FOR_TARGET"; then
14664 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14665else
1c710c3c
DJ
14666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14667for as_dir in $PATH
14668do
14669 IFS=$as_save_IFS
14670 test -z "$as_dir" && as_dir=.
5213506e 14671 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14673 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14675 break 2
14676 fi
14677done
5213506e
RW
14678 done
14679IFS=$as_save_IFS
1c710c3c 14680
e8b05380
PB
14681fi
14682fi
1c710c3c 14683AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 14684if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14686$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 14687else
5213506e
RW
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14689$as_echo "no" >&6; }
e8b05380
PB
14690fi
14691
5213506e 14692
e8b05380
PB
14693 fi
14694 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14696set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14698$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14699if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14700 $as_echo_n "(cached) " >&6
4de997d1 14701else
e8b05380
PB
14702 if test -n "$AS_FOR_TARGET"; then
14703 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 14704else
1c710c3c
DJ
14705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14706for as_dir in $PATH
14707do
14708 IFS=$as_save_IFS
14709 test -z "$as_dir" && as_dir=.
5213506e 14710 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14712 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 14713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14714 break 2
14715 fi
14716done
5213506e
RW
14717 done
14718IFS=$as_save_IFS
1c710c3c 14719
4de997d1
PB
14720fi
14721fi
1c710c3c 14722AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 14723if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14725$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 14726else
5213506e
RW
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14728$as_echo "no" >&6; }
4de997d1 14729fi
1c710c3c 14730
5213506e 14731
e8b05380
PB
14732 fi
14733 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14734 done
14735fi
1c710c3c 14736
e8b05380
PB
14737if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14738 set dummy as
14739 if test $build = $target ; then
14740 AS_FOR_TARGET="$2"
14741 else
14742 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 14743 fi
1c00b503
PB
14744else
14745 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 14746fi
2693c0b0 14747
d1f8db0c
PB
14748else
14749 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
14750fi
14751
e8b05380
PB
14752
14753
14754
14755if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14756 if test -n "$with_build_time_tools"; then
5213506e
RW
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14758$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14759 if test -x $with_build_time_tools/dlltool; then
14760 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14761 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14763$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 14764 else
5213506e
RW
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14766$as_echo "no" >&6; }
d1f8db0c 14767 fi
e8b05380
PB
14768 elif test $build != $host && test $have_gcc_for_target = yes; then
14769 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
14770 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14771 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
14772 fi
14773fi
3e19841a 14774if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14775 # Extract the first word of "dlltool", so it can be a program name with args.
14776set dummy dlltool; ac_word=$2
5213506e
RW
14777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14778$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14779if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14780 $as_echo_n "(cached) " >&6
4de997d1 14781else
1c710c3c
DJ
14782 case $DLLTOOL_FOR_TARGET in
14783 [\\/]* | ?:[\\/]*)
e8b05380
PB
14784 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14785 ;;
e8b05380 14786 *)
1c710c3c
DJ
14787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14788for as_dir in $gcc_cv_tool_dirs
14789do
14790 IFS=$as_save_IFS
14791 test -z "$as_dir" && as_dir=.
5213506e 14792 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14794 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14796 break 2
14797 fi
14798done
5213506e
RW
14799 done
14800IFS=$as_save_IFS
1c710c3c 14801
e8b05380
PB
14802 ;;
14803esac
4de997d1 14804fi
1c710c3c 14805DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 14806if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14808$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14809else
5213506e
RW
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14811$as_echo "no" >&6; }
4de997d1
PB
14812fi
14813
5213506e 14814
e8b05380
PB
14815fi
14816if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
14817
14818
14819if test -n "$DLLTOOL_FOR_TARGET"; then
14820 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14821elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14822 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14823fi
14824
14825if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14826 for ncn_progname in dlltool; do
14827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14828set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14830$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14831if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14832 $as_echo_n "(cached) " >&6
278a7a38
AO
14833else
14834 if test -n "$DLLTOOL_FOR_TARGET"; then
14835 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14836else
14837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14838for as_dir in $PATH
14839do
14840 IFS=$as_save_IFS
14841 test -z "$as_dir" && as_dir=.
5213506e 14842 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14844 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14846 break 2
14847 fi
14848done
5213506e
RW
14849 done
14850IFS=$as_save_IFS
278a7a38
AO
14851
14852fi
14853fi
14854DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14855if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14857$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 14858else
5213506e
RW
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14860$as_echo "no" >&6; }
278a7a38
AO
14861fi
14862
5213506e 14863
278a7a38
AO
14864 done
14865fi
14866
14867if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14868 for ncn_progname in dlltool; do
5213506e
RW
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14870$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14871 if test -x $with_build_time_tools/${ncn_progname}; then
14872 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14874$as_echo "yes" >&6; }
e8b05380
PB
14875 break
14876 else
5213506e
RW
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14878$as_echo "no" >&6; }
e8b05380
PB
14879 fi
14880 done
14881fi
14882
14883if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14884 for ncn_progname in dlltool; do
14885 if test -n "$ncn_target_tool_prefix"; then
14886 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14887set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14889$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14890if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14891 $as_echo_n "(cached) " >&6
4de997d1 14892else
e8b05380
PB
14893 if test -n "$DLLTOOL_FOR_TARGET"; then
14894 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14895else
1c710c3c
DJ
14896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14897for as_dir in $PATH
14898do
14899 IFS=$as_save_IFS
14900 test -z "$as_dir" && as_dir=.
5213506e 14901 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14903 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14905 break 2
14906 fi
14907done
5213506e
RW
14908 done
14909IFS=$as_save_IFS
1c710c3c 14910
4de997d1
PB
14911fi
14912fi
1c710c3c 14913DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14914if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14916$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14917else
5213506e
RW
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14919$as_echo "no" >&6; }
4de997d1 14920fi
4de997d1 14921
5213506e 14922
e8b05380
PB
14923 fi
14924 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14926set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14928$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14929if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14930 $as_echo_n "(cached) " >&6
4de997d1 14931else
e8b05380
PB
14932 if test -n "$DLLTOOL_FOR_TARGET"; then
14933 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14934else
1c710c3c
DJ
14935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14936for as_dir in $PATH
14937do
14938 IFS=$as_save_IFS
14939 test -z "$as_dir" && as_dir=.
5213506e 14940 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14942 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14944 break 2
14945 fi
14946done
5213506e
RW
14947 done
14948IFS=$as_save_IFS
1c710c3c 14949
4de997d1
PB
14950fi
14951fi
1c710c3c 14952DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14953if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14955$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14956else
5213506e
RW
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14958$as_echo "no" >&6; }
4de997d1 14959fi
1c710c3c 14960
5213506e 14961
e8b05380
PB
14962 fi
14963 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14964 done
14965fi
1c710c3c 14966
e8b05380
PB
14967if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14968 set dummy dlltool
14969 if test $build = $target ; then
14970 DLLTOOL_FOR_TARGET="$2"
14971 else
14972 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14973 fi
1c00b503
PB
14974else
14975 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
14976fi
14977
d1f8db0c
PB
14978else
14979 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
14980fi
14981
4de997d1 14982
e8b05380
PB
14983
14984
3b5e8ee4
IS
14985if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14986 if test -n "$with_build_time_tools"; then
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14988$as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14989 if test -x $with_build_time_tools/dsymutil; then
14990 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14991 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14993$as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14994 else
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14996$as_echo "no" >&6; }
14997 fi
14998 elif test $build != $host && test $have_gcc_for_target = yes; then
14999 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
15000 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
15001 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15002 fi
15003fi
15004if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15005 # Extract the first word of "dsymutil", so it can be a program name with args.
15006set dummy dsymutil; ac_word=$2
15007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15008$as_echo_n "checking for $ac_word... " >&6; }
15009if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
15010 $as_echo_n "(cached) " >&6
15011else
15012 case $DSYMUTIL_FOR_TARGET in
15013 [\\/]* | ?:[\\/]*)
15014 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
15015 ;;
15016 *)
15017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15018for as_dir in $gcc_cv_tool_dirs
15019do
15020 IFS=$as_save_IFS
15021 test -z "$as_dir" && as_dir=.
15022 for ac_exec_ext in '' $ac_executable_extensions; do
15023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15024 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15026 break 2
15027 fi
15028done
15029 done
15030IFS=$as_save_IFS
15031
15032 ;;
15033esac
15034fi
15035DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15036if test -n "$DSYMUTIL_FOR_TARGET"; then
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15038$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15039else
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15041$as_echo "no" >&6; }
15042fi
15043
15044
15045fi
15046if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15047
15048
15049if test -n "$DSYMUTIL_FOR_TARGET"; then
15050 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15051elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15052 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15053fi
15054
15055if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15056 for ncn_progname in dsymutil; do
15057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15058set dummy ${ncn_progname}; ac_word=$2
15059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15060$as_echo_n "checking for $ac_word... " >&6; }
15061if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15062 $as_echo_n "(cached) " >&6
15063else
15064 if test -n "$DSYMUTIL_FOR_TARGET"; then
15065 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15066else
15067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15068for as_dir in $PATH
15069do
15070 IFS=$as_save_IFS
15071 test -z "$as_dir" && as_dir=.
15072 for ac_exec_ext in '' $ac_executable_extensions; do
15073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15074 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15076 break 2
15077 fi
15078done
15079 done
15080IFS=$as_save_IFS
15081
15082fi
15083fi
15084DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15085if test -n "$DSYMUTIL_FOR_TARGET"; then
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15087$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15088else
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15090$as_echo "no" >&6; }
15091fi
15092
15093
15094 done
15095fi
15096
15097if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15098 for ncn_progname in dsymutil; do
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15100$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15101 if test -x $with_build_time_tools/${ncn_progname}; then
15102 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15104$as_echo "yes" >&6; }
15105 break
15106 else
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15108$as_echo "no" >&6; }
15109 fi
15110 done
15111fi
15112
15113if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15114 for ncn_progname in dsymutil; do
15115 if test -n "$ncn_target_tool_prefix"; then
15116 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15117set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15119$as_echo_n "checking for $ac_word... " >&6; }
15120if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15121 $as_echo_n "(cached) " >&6
15122else
15123 if test -n "$DSYMUTIL_FOR_TARGET"; then
15124 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15125else
15126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15127for as_dir in $PATH
15128do
15129 IFS=$as_save_IFS
15130 test -z "$as_dir" && as_dir=.
15131 for ac_exec_ext in '' $ac_executable_extensions; do
15132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15133 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15135 break 2
15136 fi
15137done
15138 done
15139IFS=$as_save_IFS
15140
15141fi
15142fi
15143DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15144if test -n "$DSYMUTIL_FOR_TARGET"; then
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15146$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15147else
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15149$as_echo "no" >&6; }
15150fi
15151
15152
15153 fi
15154 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
15155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15156set dummy ${ncn_progname}; ac_word=$2
15157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15158$as_echo_n "checking for $ac_word... " >&6; }
15159if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15160 $as_echo_n "(cached) " >&6
15161else
15162 if test -n "$DSYMUTIL_FOR_TARGET"; then
15163 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15164else
15165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15166for as_dir in $PATH
15167do
15168 IFS=$as_save_IFS
15169 test -z "$as_dir" && as_dir=.
15170 for ac_exec_ext in '' $ac_executable_extensions; do
15171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15172 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15174 break 2
15175 fi
15176done
15177 done
15178IFS=$as_save_IFS
15179
15180fi
15181fi
15182DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15183if test -n "$DSYMUTIL_FOR_TARGET"; then
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15185$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15186else
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15188$as_echo "no" >&6; }
15189fi
15190
15191
15192 fi
15193 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15194 done
15195fi
15196
15197if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15198 set dummy dsymutil
15199 if test $build = $target ; then
15200 DSYMUTIL_FOR_TARGET="$2"
15201 else
15202 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15203 fi
15204else
15205 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15206fi
15207
15208else
15209 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15210fi
15211
15212
15213
15214
e8b05380
PB
15215if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15216 if test -n "$with_build_time_tools"; then
5213506e
RW
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
15218$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15219 if test -x $with_build_time_tools/ld; then
15220 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15221 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
15223$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 15224 else
5213506e
RW
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15226$as_echo "no" >&6; }
d1f8db0c 15227 fi
e8b05380
PB
15228 elif test $build != $host && test $have_gcc_for_target = yes; then
15229 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
15230 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15231 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 15232 fi
e8b05380 15233fi
3e19841a 15234if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15235 # Extract the first word of "ld", so it can be a program name with args.
15236set dummy ld; ac_word=$2
5213506e
RW
15237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15238$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15239if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
5213506e 15240 $as_echo_n "(cached) " >&6
4de997d1 15241else
1c710c3c
DJ
15242 case $LD_FOR_TARGET in
15243 [\\/]* | ?:[\\/]*)
e8b05380
PB
15244 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15245 ;;
e8b05380 15246 *)
1c710c3c
DJ
15247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15248for as_dir in $gcc_cv_tool_dirs
15249do
15250 IFS=$as_save_IFS
15251 test -z "$as_dir" && as_dir=.
5213506e 15252 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15254 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15256 break 2
15257 fi
15258done
5213506e
RW
15259 done
15260IFS=$as_save_IFS
1c710c3c 15261
e8b05380
PB
15262 ;;
15263esac
4de997d1 15264fi
1c710c3c 15265LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 15266if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15268$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 15269else
5213506e
RW
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15271$as_echo "no" >&6; }
4de997d1 15272fi
2693c0b0 15273
5213506e 15274
e8b05380
PB
15275fi
15276if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
15277
15278
15279if test -n "$LD_FOR_TARGET"; then
15280 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15281elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15282 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15283fi
15284
15285if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15286 for ncn_progname in ld; do
15287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15288set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15290$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15291if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 15292 $as_echo_n "(cached) " >&6
278a7a38
AO
15293else
15294 if test -n "$LD_FOR_TARGET"; then
15295 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15296else
15297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15298for as_dir in $PATH
15299do
15300 IFS=$as_save_IFS
15301 test -z "$as_dir" && as_dir=.
5213506e 15302 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15304 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 15305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15306 break 2
15307 fi
15308done
5213506e
RW
15309 done
15310IFS=$as_save_IFS
278a7a38
AO
15311
15312fi
15313fi
15314LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15315if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15317$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 15318else
5213506e
RW
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15320$as_echo "no" >&6; }
278a7a38
AO
15321fi
15322
5213506e 15323
278a7a38
AO
15324 done
15325fi
15326
15327if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15328 for ncn_progname in ld; do
5213506e
RW
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15330$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15331 if test -x $with_build_time_tools/${ncn_progname}; then
15332 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15334$as_echo "yes" >&6; }
e8b05380
PB
15335 break
15336 else
5213506e
RW
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15338$as_echo "no" >&6; }
e8b05380
PB
15339 fi
15340 done
ca9f4b81
AO
15341fi
15342
e8b05380
PB
15343if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15344 for ncn_progname in ld; do
15345 if test -n "$ncn_target_tool_prefix"; then
15346 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15347set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15349$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15350if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 15351 $as_echo_n "(cached) " >&6
ca9f4b81 15352else
4de997d1
PB
15353 if test -n "$LD_FOR_TARGET"; then
15354 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 15355else
1c710c3c
DJ
15356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15357for as_dir in $PATH
15358do
15359 IFS=$as_save_IFS
15360 test -z "$as_dir" && as_dir=.
5213506e 15361 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15363 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15365 break 2
15366 fi
15367done
5213506e
RW
15368 done
15369IFS=$as_save_IFS
1c710c3c 15370
ca9f4b81
AO
15371fi
15372fi
1c710c3c 15373LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 15374if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15376$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 15377else
5213506e
RW
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15379$as_echo "no" >&6; }
ca9f4b81
AO
15380fi
15381
5213506e 15382
e8b05380
PB
15383 fi
15384 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 15386set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15388$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15389if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 15390 $as_echo_n "(cached) " >&6
ca9f4b81 15391else
2693c0b0
PB
15392 if test -n "$LD_FOR_TARGET"; then
15393 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 15394else
1c710c3c
DJ
15395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15396for as_dir in $PATH
15397do
15398 IFS=$as_save_IFS
15399 test -z "$as_dir" && as_dir=.
5213506e 15400 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15402 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 15403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15404 break 2
15405 fi
15406done
5213506e
RW
15407 done
15408IFS=$as_save_IFS
1c710c3c 15409
ca9f4b81
AO
15410fi
15411fi
1c710c3c 15412LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 15413if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15415$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 15416else
5213506e
RW
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15418$as_echo "no" >&6; }
ca9f4b81 15419fi
1c710c3c 15420
5213506e 15421
e8b05380
PB
15422 fi
15423 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15424 done
15425fi
1c710c3c 15426
2693c0b0
PB
15427if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15428 set dummy ld
15429 if test $build = $target ; then
15430 LD_FOR_TARGET="$2"
ca9f4b81 15431 else
2693c0b0 15432 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 15433 fi
1c00b503
PB
15434else
15435 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
15436fi
15437
d1f8db0c
PB
15438else
15439 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
15440fi
15441
15442
15443
15444
15445if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15446 if test -n "$with_build_time_tools"; then
5213506e
RW
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15448$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15449 if test -x $with_build_time_tools/lipo; then
15450 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15451 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15453$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 15454 else
5213506e
RW
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15456$as_echo "no" >&6; }
d1f8db0c 15457 fi
e8b05380
PB
15458 elif test $build != $host && test $have_gcc_for_target = yes; then
15459 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
15460 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15461 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
15462 fi
15463fi
278a7a38
AO
15464if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15465 # Extract the first word of "lipo", so it can be a program name with args.
15466set dummy lipo; ac_word=$2
5213506e
RW
15467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15468$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15469if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
5213506e 15470 $as_echo_n "(cached) " >&6
278a7a38
AO
15471else
15472 case $LIPO_FOR_TARGET in
15473 [\\/]* | ?:[\\/]*)
15474 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15475 ;;
15476 *)
15477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15478for as_dir in $gcc_cv_tool_dirs
15479do
15480 IFS=$as_save_IFS
15481 test -z "$as_dir" && as_dir=.
5213506e 15482 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15484 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15486 break 2
15487 fi
15488done
5213506e
RW
15489 done
15490IFS=$as_save_IFS
278a7a38
AO
15491
15492 ;;
15493esac
15494fi
15495LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 15496if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15498$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 15499else
5213506e
RW
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15501$as_echo "no" >&6; }
278a7a38
AO
15502fi
15503
5213506e 15504
278a7a38
AO
15505fi
15506if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15507
15508
15509if test -n "$LIPO_FOR_TARGET"; then
15510 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15511elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15512 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15513fi
15514
15515if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15516 for ncn_progname in lipo; do
15517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15518set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15520$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15521if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15522 $as_echo_n "(cached) " >&6
e8b05380 15523else
278a7a38
AO
15524 if test -n "$LIPO_FOR_TARGET"; then
15525 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15526else
15527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15528for as_dir in $PATH
1c710c3c
DJ
15529do
15530 IFS=$as_save_IFS
15531 test -z "$as_dir" && as_dir=.
5213506e 15532 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15534 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 15535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15536 break 2
15537 fi
15538done
5213506e
RW
15539 done
15540IFS=$as_save_IFS
1c710c3c 15541
e8b05380 15542fi
278a7a38
AO
15543fi
15544LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 15545if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15547$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 15548else
5213506e
RW
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15550$as_echo "no" >&6; }
e8b05380
PB
15551fi
15552
5213506e 15553
278a7a38 15554 done
e8b05380 15555fi
278a7a38
AO
15556
15557if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15558 for ncn_progname in lipo; do
5213506e
RW
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15560$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15561 if test -x $with_build_time_tools/${ncn_progname}; then
15562 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15564$as_echo "yes" >&6; }
e8b05380
PB
15565 break
15566 else
5213506e
RW
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15568$as_echo "no" >&6; }
e8b05380
PB
15569 fi
15570 done
15571fi
15572
15573if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15574 for ncn_progname in lipo; do
15575 if test -n "$ncn_target_tool_prefix"; then
15576 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15577set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15579$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15580if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15581 $as_echo_n "(cached) " >&6
040b1c5a
GK
15582else
15583 if test -n "$LIPO_FOR_TARGET"; then
15584 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15585else
1c710c3c
DJ
15586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15587for as_dir in $PATH
15588do
15589 IFS=$as_save_IFS
15590 test -z "$as_dir" && as_dir=.
5213506e 15591 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15593 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15595 break 2
15596 fi
15597done
5213506e
RW
15598 done
15599IFS=$as_save_IFS
1c710c3c 15600
040b1c5a
GK
15601fi
15602fi
1c710c3c 15603LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 15604if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15606$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 15607else
5213506e
RW
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15609$as_echo "no" >&6; }
040b1c5a
GK
15610fi
15611
5213506e 15612
e8b05380
PB
15613 fi
15614 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 15616set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15618$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15619if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15620 $as_echo_n "(cached) " >&6
040b1c5a
GK
15621else
15622 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
15623 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15624else
1c710c3c
DJ
15625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15626for as_dir in $PATH
15627do
15628 IFS=$as_save_IFS
15629 test -z "$as_dir" && as_dir=.
5213506e 15630 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15632 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 15633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15634 break 2
15635 fi
15636done
5213506e
RW
15637 done
15638IFS=$as_save_IFS
1c710c3c 15639
040b1c5a
GK
15640fi
15641fi
1c710c3c 15642LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 15643if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15645$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 15646else
5213506e
RW
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15648$as_echo "no" >&6; }
040b1c5a 15649fi
1c710c3c 15650
5213506e 15651
e8b05380
PB
15652 fi
15653 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15654 done
15655fi
1c710c3c 15656
040b1c5a
GK
15657if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15658 set dummy lipo
15659 if test $build = $target ; then
15660 LIPO_FOR_TARGET="$2"
15661 else
15662 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15663 fi
1c00b503
PB
15664else
15665 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
15666fi
15667
d1f8db0c
PB
15668else
15669 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
15670fi
15671
15672
15673
15674
15675if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15676 if test -n "$with_build_time_tools"; then
5213506e
RW
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15678$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15679 if test -x $with_build_time_tools/nm; then
15680 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15681 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15683$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 15684 else
5213506e
RW
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15686$as_echo "no" >&6; }
d1f8db0c 15687 fi
e8b05380
PB
15688 elif test $build != $host && test $have_gcc_for_target = yes; then
15689 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
15690 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15691 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
15692 fi
15693fi
3e19841a 15694if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15695 # Extract the first word of "nm", so it can be a program name with args.
15696set dummy nm; ac_word=$2
5213506e
RW
15697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15698$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15699if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
5213506e 15700 $as_echo_n "(cached) " >&6
e8b05380 15701else
1c710c3c
DJ
15702 case $NM_FOR_TARGET in
15703 [\\/]* | ?:[\\/]*)
e8b05380
PB
15704 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15705 ;;
e8b05380 15706 *)
1c710c3c
DJ
15707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15708for as_dir in $gcc_cv_tool_dirs
15709do
15710 IFS=$as_save_IFS
15711 test -z "$as_dir" && as_dir=.
5213506e 15712 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15714 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15716 break 2
15717 fi
15718done
5213506e
RW
15719 done
15720IFS=$as_save_IFS
1c710c3c 15721
e8b05380
PB
15722 ;;
15723esac
15724fi
1c710c3c 15725NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 15726if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15728$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 15729else
5213506e
RW
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15731$as_echo "no" >&6; }
e8b05380
PB
15732fi
15733
5213506e 15734
e8b05380
PB
15735fi
15736if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
15737
15738
15739if test -n "$NM_FOR_TARGET"; then
15740 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15741elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15742 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15743fi
15744
15745if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15746 for ncn_progname in nm; do
15747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15748set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15750$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15751if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15752 $as_echo_n "(cached) " >&6
278a7a38
AO
15753else
15754 if test -n "$NM_FOR_TARGET"; then
15755 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15756else
15757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15758for as_dir in $PATH
15759do
15760 IFS=$as_save_IFS
15761 test -z "$as_dir" && as_dir=.
5213506e 15762 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15764 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15766 break 2
15767 fi
15768done
5213506e
RW
15769 done
15770IFS=$as_save_IFS
278a7a38
AO
15771
15772fi
15773fi
15774NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15775if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15777$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 15778else
5213506e
RW
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15780$as_echo "no" >&6; }
278a7a38
AO
15781fi
15782
5213506e 15783
278a7a38
AO
15784 done
15785fi
15786
15787if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15788 for ncn_progname in nm; do
5213506e
RW
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15790$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15791 if test -x $with_build_time_tools/${ncn_progname}; then
15792 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15794$as_echo "yes" >&6; }
e8b05380
PB
15795 break
15796 else
5213506e
RW
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15798$as_echo "no" >&6; }
e8b05380
PB
15799 fi
15800 done
15801fi
15802
15803if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15804 for ncn_progname in nm; do
15805 if test -n "$ncn_target_tool_prefix"; then
15806 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 15807set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15809$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15810if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15811 $as_echo_n "(cached) " >&6
ca9f4b81 15812else
4de997d1
PB
15813 if test -n "$NM_FOR_TARGET"; then
15814 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15815else
1c710c3c
DJ
15816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15817for as_dir in $PATH
15818do
15819 IFS=$as_save_IFS
15820 test -z "$as_dir" && as_dir=.
5213506e 15821 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15823 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15825 break 2
15826 fi
15827done
5213506e
RW
15828 done
15829IFS=$as_save_IFS
1c710c3c 15830
ca9f4b81
AO
15831fi
15832fi
1c710c3c 15833NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 15834if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15836$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15837else
5213506e
RW
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15839$as_echo "no" >&6; }
ca9f4b81
AO
15840fi
15841
5213506e 15842
e8b05380
PB
15843 fi
15844 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 15846set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15848$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15849if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15850 $as_echo_n "(cached) " >&6
ca9f4b81 15851else
2693c0b0
PB
15852 if test -n "$NM_FOR_TARGET"; then
15853 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15854else
1c710c3c
DJ
15855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15856for as_dir in $PATH
15857do
15858 IFS=$as_save_IFS
15859 test -z "$as_dir" && as_dir=.
5213506e 15860 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15862 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15864 break 2
15865 fi
15866done
5213506e
RW
15867 done
15868IFS=$as_save_IFS
1c710c3c 15869
ca9f4b81
AO
15870fi
15871fi
1c710c3c 15872NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 15873if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15875$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15876else
5213506e
RW
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15878$as_echo "no" >&6; }
ca9f4b81 15879fi
1c710c3c 15880
5213506e 15881
e8b05380
PB
15882 fi
15883 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15884 done
15885fi
1c710c3c 15886
2693c0b0
PB
15887if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15888 set dummy nm
15889 if test $build = $target ; then
15890 NM_FOR_TARGET="$2"
ca9f4b81 15891 else
2693c0b0 15892 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 15893 fi
1c00b503
PB
15894else
15895 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
15896fi
15897
d1f8db0c
PB
15898else
15899 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
15900fi
15901
15902
15903
15904
9bccfdf5
AP
15905if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15906 if test -n "$with_build_time_tools"; then
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15908$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15909 if test -x $with_build_time_tools/objcopy; then
15910 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15911 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15913$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15914 else
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15916$as_echo "no" >&6; }
15917 fi
15918 elif test $build != $host && test $have_gcc_for_target = yes; then
15919 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15920 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15921 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15922 fi
15923fi
15924if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15925 # Extract the first word of "objcopy", so it can be a program name with args.
15926set dummy objcopy; ac_word=$2
15927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15928$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15929if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15930 $as_echo_n "(cached) " >&6
15931else
15932 case $OBJCOPY_FOR_TARGET in
15933 [\\/]* | ?:[\\/]*)
15934 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15935 ;;
15936 *)
15937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15938for as_dir in $gcc_cv_tool_dirs
15939do
15940 IFS=$as_save_IFS
15941 test -z "$as_dir" && as_dir=.
15942 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15944 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15946 break 2
15947 fi
15948done
15949 done
15950IFS=$as_save_IFS
15951
15952 ;;
15953esac
15954fi
15955OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15956if test -n "$OBJCOPY_FOR_TARGET"; then
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15958$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15959else
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15961$as_echo "no" >&6; }
15962fi
15963
15964
15965fi
15966if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15967
15968
15969if test -n "$OBJCOPY_FOR_TARGET"; then
15970 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15971elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15972 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15973fi
15974
15975if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15976 for ncn_progname in objcopy; do
15977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15978set dummy ${ncn_progname}; ac_word=$2
15979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15980$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15981if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15982 $as_echo_n "(cached) " >&6
15983else
15984 if test -n "$OBJCOPY_FOR_TARGET"; then
15985 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15986else
15987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15988for as_dir in $PATH
15989do
15990 IFS=$as_save_IFS
15991 test -z "$as_dir" && as_dir=.
15992 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15994 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15996 break 2
15997 fi
15998done
15999 done
16000IFS=$as_save_IFS
16001
16002fi
16003fi
16004OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16005if test -n "$OBJCOPY_FOR_TARGET"; then
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16007$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16008else
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16010$as_echo "no" >&6; }
16011fi
16012
16013
16014 done
16015fi
16016
16017if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
16018 for ncn_progname in objcopy; do
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16020$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16021 if test -x $with_build_time_tools/${ncn_progname}; then
16022 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16024$as_echo "yes" >&6; }
16025 break
16026 else
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16028$as_echo "no" >&6; }
16029 fi
16030 done
16031fi
16032
16033if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16034 for ncn_progname in objcopy; do
16035 if test -n "$ncn_target_tool_prefix"; then
16036 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16037set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16039$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16040if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
16041 $as_echo_n "(cached) " >&6
16042else
16043 if test -n "$OBJCOPY_FOR_TARGET"; then
16044 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16045else
16046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16047for as_dir in $PATH
16048do
16049 IFS=$as_save_IFS
16050 test -z "$as_dir" && as_dir=.
16051 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
16053 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16055 break 2
16056 fi
16057done
16058 done
16059IFS=$as_save_IFS
16060
16061fi
16062fi
16063OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16064if test -n "$OBJCOPY_FOR_TARGET"; then
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16066$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16067else
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16069$as_echo "no" >&6; }
16070fi
16071
16072
16073 fi
16074 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
16075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16076set dummy ${ncn_progname}; ac_word=$2
16077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16078$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16079if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
16080 $as_echo_n "(cached) " >&6
16081else
16082 if test -n "$OBJCOPY_FOR_TARGET"; then
16083 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16084else
16085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16086for as_dir in $PATH
16087do
16088 IFS=$as_save_IFS
16089 test -z "$as_dir" && as_dir=.
16090 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
16092 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16094 break 2
16095 fi
16096done
16097 done
16098IFS=$as_save_IFS
16099
16100fi
16101fi
16102OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16103if test -n "$OBJCOPY_FOR_TARGET"; then
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16105$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16106else
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16108$as_echo "no" >&6; }
16109fi
16110
16111
16112 fi
16113 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
16114 done
16115fi
16116
16117if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
16118 set dummy objcopy
16119 if test $build = $target ; then
16120 OBJCOPY_FOR_TARGET="$2"
16121 else
16122 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
16123 fi
16124else
16125 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
16126fi
16127
16128else
16129 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16130fi
16131
16132
16133
16134
e8b05380
PB
16135if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16136 if test -n "$with_build_time_tools"; then
5213506e
RW
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
16138$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16139 if test -x $with_build_time_tools/objdump; then
16140 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
16141 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
16143$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 16144 else
5213506e
RW
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16146$as_echo "no" >&6; }
d1f8db0c 16147 fi
e8b05380
PB
16148 elif test $build != $host && test $have_gcc_for_target = yes; then
16149 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
16150 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
16151 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
16152 fi
16153fi
3e19841a 16154if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16155 # Extract the first word of "objdump", so it can be a program name with args.
16156set dummy objdump; ac_word=$2
5213506e
RW
16157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16158$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16159if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 16160 $as_echo_n "(cached) " >&6
e8b05380 16161else
1c710c3c
DJ
16162 case $OBJDUMP_FOR_TARGET in
16163 [\\/]* | ?:[\\/]*)
e8b05380
PB
16164 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16165 ;;
e8b05380 16166 *)
1c710c3c
DJ
16167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16168for as_dir in $gcc_cv_tool_dirs
16169do
16170 IFS=$as_save_IFS
16171 test -z "$as_dir" && as_dir=.
5213506e 16172 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16174 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16176 break 2
16177 fi
16178done
5213506e
RW
16179 done
16180IFS=$as_save_IFS
1c710c3c 16181
e8b05380
PB
16182 ;;
16183esac
16184fi
1c710c3c 16185OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 16186if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16188$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 16189else
5213506e
RW
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16191$as_echo "no" >&6; }
e8b05380
PB
16192fi
16193
5213506e 16194
e8b05380
PB
16195fi
16196if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
16197
16198
16199if test -n "$OBJDUMP_FOR_TARGET"; then
16200 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16201elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16202 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16203fi
16204
16205if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16206 for ncn_progname in objdump; do
16207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16208set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16210$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16211if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 16212 $as_echo_n "(cached) " >&6
278a7a38
AO
16213else
16214 if test -n "$OBJDUMP_FOR_TARGET"; then
16215 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16216else
16217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16218for as_dir in $PATH
16219do
16220 IFS=$as_save_IFS
16221 test -z "$as_dir" && as_dir=.
5213506e 16222 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16224 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 16225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16226 break 2
16227 fi
16228done
5213506e
RW
16229 done
16230IFS=$as_save_IFS
278a7a38
AO
16231
16232fi
16233fi
16234OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16235if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16237$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 16238else
5213506e
RW
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16240$as_echo "no" >&6; }
278a7a38
AO
16241fi
16242
5213506e 16243
278a7a38
AO
16244 done
16245fi
16246
16247if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16248 for ncn_progname in objdump; do
5213506e
RW
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16250$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16251 if test -x $with_build_time_tools/${ncn_progname}; then
16252 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16254$as_echo "yes" >&6; }
e8b05380
PB
16255 break
16256 else
5213506e
RW
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16258$as_echo "no" >&6; }
e8b05380
PB
16259 fi
16260 done
16261fi
16262
16263if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16264 for ncn_progname in objdump; do
16265 if test -n "$ncn_target_tool_prefix"; then
16266 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 16267set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16269$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16270if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 16271 $as_echo_n "(cached) " >&6
d739199a
DJ
16272else
16273 if test -n "$OBJDUMP_FOR_TARGET"; then
16274 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16275else
1c710c3c
DJ
16276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16277for as_dir in $PATH
16278do
16279 IFS=$as_save_IFS
16280 test -z "$as_dir" && as_dir=.
5213506e 16281 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16283 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16285 break 2
16286 fi
16287done
5213506e
RW
16288 done
16289IFS=$as_save_IFS
1c710c3c 16290
d739199a
DJ
16291fi
16292fi
1c710c3c 16293OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 16294if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16296$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 16297else
5213506e
RW
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16299$as_echo "no" >&6; }
d739199a
DJ
16300fi
16301
5213506e 16302
e8b05380
PB
16303 fi
16304 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16305 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 16306set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16308$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16309if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 16310 $as_echo_n "(cached) " >&6
d739199a
DJ
16311else
16312 if test -n "$OBJDUMP_FOR_TARGET"; then
16313 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16314else
1c710c3c
DJ
16315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16316for as_dir in $PATH
16317do
16318 IFS=$as_save_IFS
16319 test -z "$as_dir" && as_dir=.
5213506e 16320 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16322 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 16323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16324 break 2
16325 fi
16326done
5213506e
RW
16327 done
16328IFS=$as_save_IFS
1c710c3c 16329
d739199a
DJ
16330fi
16331fi
1c710c3c 16332OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 16333if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16335$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 16336else
5213506e
RW
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16338$as_echo "no" >&6; }
d739199a 16339fi
1c710c3c 16340
5213506e 16341
e8b05380
PB
16342 fi
16343 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16344 done
16345fi
1c710c3c 16346
d739199a
DJ
16347if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16348 set dummy objdump
16349 if test $build = $target ; then
16350 OBJDUMP_FOR_TARGET="$2"
16351 else
16352 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16353 fi
1c00b503
PB
16354else
16355 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
16356fi
16357
d1f8db0c
PB
16358else
16359 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
16360fi
16361
16362
16363
16364
e4a9a572
IS
16365if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16366 if test -n "$with_build_time_tools"; then
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16368$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16369 if test -x $with_build_time_tools/otool; then
16370 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16371 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16373$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16374 else
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16376$as_echo "no" >&6; }
16377 fi
16378 elif test $build != $host && test $have_gcc_for_target = yes; then
16379 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16380 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16381 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16382 fi
16383fi
16384if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16385 # Extract the first word of "otool", so it can be a program name with args.
16386set dummy otool; ac_word=$2
16387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16388$as_echo_n "checking for $ac_word... " >&6; }
16389if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16390 $as_echo_n "(cached) " >&6
16391else
16392 case $OTOOL_FOR_TARGET in
16393 [\\/]* | ?:[\\/]*)
16394 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16395 ;;
16396 *)
16397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16398for as_dir in $gcc_cv_tool_dirs
16399do
16400 IFS=$as_save_IFS
16401 test -z "$as_dir" && as_dir=.
16402 for ac_exec_ext in '' $ac_executable_extensions; do
16403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16404 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16406 break 2
16407 fi
16408done
16409 done
16410IFS=$as_save_IFS
16411
16412 ;;
16413esac
16414fi
16415OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16416if test -n "$OTOOL_FOR_TARGET"; then
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16418$as_echo "$OTOOL_FOR_TARGET" >&6; }
16419else
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16421$as_echo "no" >&6; }
16422fi
16423
16424
16425fi
16426if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16427
16428
16429if test -n "$OTOOL_FOR_TARGET"; then
16430 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16431elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16432 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16433fi
16434
16435if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16436 for ncn_progname in otool; do
16437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16438set dummy ${ncn_progname}; ac_word=$2
16439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16440$as_echo_n "checking for $ac_word... " >&6; }
16441if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16442 $as_echo_n "(cached) " >&6
16443else
16444 if test -n "$OTOOL_FOR_TARGET"; then
16445 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16446else
16447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16448for as_dir in $PATH
16449do
16450 IFS=$as_save_IFS
16451 test -z "$as_dir" && as_dir=.
16452 for ac_exec_ext in '' $ac_executable_extensions; do
16453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16454 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16456 break 2
16457 fi
16458done
16459 done
16460IFS=$as_save_IFS
16461
16462fi
16463fi
16464OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16465if test -n "$OTOOL_FOR_TARGET"; then
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16467$as_echo "$OTOOL_FOR_TARGET" >&6; }
16468else
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16470$as_echo "no" >&6; }
16471fi
16472
16473
16474 done
16475fi
16476
16477if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16478 for ncn_progname in otool; do
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16480$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16481 if test -x $with_build_time_tools/${ncn_progname}; then
16482 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16484$as_echo "yes" >&6; }
16485 break
16486 else
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16488$as_echo "no" >&6; }
16489 fi
16490 done
16491fi
16492
16493if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16494 for ncn_progname in otool; do
16495 if test -n "$ncn_target_tool_prefix"; then
16496 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16497set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16499$as_echo_n "checking for $ac_word... " >&6; }
16500if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16501 $as_echo_n "(cached) " >&6
16502else
16503 if test -n "$OTOOL_FOR_TARGET"; then
16504 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16505else
16506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16507for as_dir in $PATH
16508do
16509 IFS=$as_save_IFS
16510 test -z "$as_dir" && as_dir=.
16511 for ac_exec_ext in '' $ac_executable_extensions; do
16512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16513 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16515 break 2
16516 fi
16517done
16518 done
16519IFS=$as_save_IFS
16520
16521fi
16522fi
16523OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16524if test -n "$OTOOL_FOR_TARGET"; then
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16526$as_echo "$OTOOL_FOR_TARGET" >&6; }
16527else
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16529$as_echo "no" >&6; }
16530fi
16531
16532
16533 fi
16534 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16536set dummy ${ncn_progname}; ac_word=$2
16537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16538$as_echo_n "checking for $ac_word... " >&6; }
16539if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16540 $as_echo_n "(cached) " >&6
16541else
16542 if test -n "$OTOOL_FOR_TARGET"; then
16543 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16544else
16545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16546for as_dir in $PATH
16547do
16548 IFS=$as_save_IFS
16549 test -z "$as_dir" && as_dir=.
16550 for ac_exec_ext in '' $ac_executable_extensions; do
16551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16552 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16554 break 2
16555 fi
16556done
16557 done
16558IFS=$as_save_IFS
16559
16560fi
16561fi
16562OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16563if test -n "$OTOOL_FOR_TARGET"; then
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16565$as_echo "$OTOOL_FOR_TARGET" >&6; }
16566else
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16568$as_echo "no" >&6; }
16569fi
16570
16571
16572 fi
16573 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16574 done
16575fi
16576
16577if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16578 set dummy otool
16579 if test $build = $target ; then
16580 OTOOL_FOR_TARGET="$2"
16581 else
16582 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16583 fi
16584else
16585 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16586fi
16587
16588else
16589 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16590fi
16591
16592
16593
16594
e8b05380
PB
16595if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16596 if test -n "$with_build_time_tools"; then
5213506e
RW
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16598$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16599 if test -x $with_build_time_tools/ranlib; then
16600 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16601 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16603$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 16604 else
5213506e
RW
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16606$as_echo "no" >&6; }
d1f8db0c 16607 fi
e8b05380
PB
16608 elif test $build != $host && test $have_gcc_for_target = yes; then
16609 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
16610 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16611 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
16612 fi
16613fi
3e19841a 16614if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16615 # Extract the first word of "ranlib", so it can be a program name with args.
16616set dummy ranlib; ac_word=$2
5213506e
RW
16617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16618$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16619if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
5213506e 16620 $as_echo_n "(cached) " >&6
e8b05380 16621else
1c710c3c
DJ
16622 case $RANLIB_FOR_TARGET in
16623 [\\/]* | ?:[\\/]*)
e8b05380
PB
16624 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16625 ;;
e8b05380 16626 *)
1c710c3c
DJ
16627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16628for as_dir in $gcc_cv_tool_dirs
16629do
16630 IFS=$as_save_IFS
16631 test -z "$as_dir" && as_dir=.
5213506e 16632 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16634 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16636 break 2
16637 fi
16638done
5213506e
RW
16639 done
16640IFS=$as_save_IFS
1c710c3c 16641
e8b05380
PB
16642 ;;
16643esac
16644fi
1c710c3c 16645RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 16646if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16648$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 16649else
5213506e
RW
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16651$as_echo "no" >&6; }
e8b05380
PB
16652fi
16653
5213506e 16654
e8b05380
PB
16655fi
16656if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
16657
16658
16659if test -n "$RANLIB_FOR_TARGET"; then
16660 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16661elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16662 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16663fi
16664
16665if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16666 for ncn_progname in ranlib; do
16667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16668set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16670$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16671if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16672 $as_echo_n "(cached) " >&6
278a7a38
AO
16673else
16674 if test -n "$RANLIB_FOR_TARGET"; then
16675 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16676else
16677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16678for as_dir in $PATH
16679do
16680 IFS=$as_save_IFS
16681 test -z "$as_dir" && as_dir=.
5213506e 16682 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16684 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 16685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16686 break 2
16687 fi
16688done
5213506e
RW
16689 done
16690IFS=$as_save_IFS
278a7a38
AO
16691
16692fi
16693fi
16694RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16695if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16697$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 16698else
5213506e
RW
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16700$as_echo "no" >&6; }
278a7a38
AO
16701fi
16702
5213506e 16703
278a7a38
AO
16704 done
16705fi
16706
16707if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16708 for ncn_progname in ranlib; do
5213506e
RW
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16710$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16711 if test -x $with_build_time_tools/${ncn_progname}; then
16712 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16714$as_echo "yes" >&6; }
e8b05380
PB
16715 break
16716 else
5213506e
RW
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16718$as_echo "no" >&6; }
e8b05380
PB
16719 fi
16720 done
16721fi
16722
16723if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16724 for ncn_progname in ranlib; do
16725 if test -n "$ncn_target_tool_prefix"; then
16726 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 16727set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16729$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16730if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16731 $as_echo_n "(cached) " >&6
ca9f4b81 16732else
4de997d1
PB
16733 if test -n "$RANLIB_FOR_TARGET"; then
16734 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16735else
1c710c3c
DJ
16736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16737for as_dir in $PATH
16738do
16739 IFS=$as_save_IFS
16740 test -z "$as_dir" && as_dir=.
5213506e 16741 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16743 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16745 break 2
16746 fi
16747done
5213506e
RW
16748 done
16749IFS=$as_save_IFS
1c710c3c 16750
ca9f4b81
AO
16751fi
16752fi
1c710c3c 16753RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 16754if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16756$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16757else
5213506e
RW
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16759$as_echo "no" >&6; }
ca9f4b81
AO
16760fi
16761
5213506e 16762
e8b05380
PB
16763 fi
16764 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 16766set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16768$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16769if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16770 $as_echo_n "(cached) " >&6
ca9f4b81 16771else
2693c0b0
PB
16772 if test -n "$RANLIB_FOR_TARGET"; then
16773 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16774else
1c710c3c
DJ
16775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16776for as_dir in $PATH
16777do
16778 IFS=$as_save_IFS
16779 test -z "$as_dir" && as_dir=.
5213506e 16780 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16782 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 16783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16784 break 2
16785 fi
16786done
5213506e
RW
16787 done
16788IFS=$as_save_IFS
1c710c3c 16789
ca9f4b81
AO
16790fi
16791fi
1c710c3c 16792RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 16793if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16795$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16796else
5213506e
RW
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16798$as_echo "no" >&6; }
ca9f4b81 16799fi
1c710c3c 16800
5213506e 16801
e8b05380
PB
16802 fi
16803 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16804 done
16805fi
1c710c3c 16806
e8b05380
PB
16807if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16808 set dummy ranlib
16809 if test $build = $target ; then
16810 RANLIB_FOR_TARGET="$2"
16811 else
16812 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 16813 fi
1c00b503
PB
16814else
16815 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 16816fi
2693c0b0 16817
d1f8db0c
PB
16818else
16819 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
16820fi
16821
e8b05380
PB
16822
16823
16824
e7a82751
RM
16825if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16826 if test -n "$with_build_time_tools"; then
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16828$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16829 if test -x $with_build_time_tools/readelf; then
16830 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16831 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16833$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16834 else
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16836$as_echo "no" >&6; }
16837 fi
16838 elif test $build != $host && test $have_gcc_for_target = yes; then
16839 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16840 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16841 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16842 fi
16843fi
16844if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16845 # Extract the first word of "readelf", so it can be a program name with args.
16846set dummy readelf; ac_word=$2
16847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16848$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16849if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16850 $as_echo_n "(cached) " >&6
16851else
16852 case $READELF_FOR_TARGET in
16853 [\\/]* | ?:[\\/]*)
16854 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16855 ;;
16856 *)
16857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16858for as_dir in $gcc_cv_tool_dirs
16859do
16860 IFS=$as_save_IFS
16861 test -z "$as_dir" && as_dir=.
16862 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16864 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16866 break 2
16867 fi
16868done
16869 done
16870IFS=$as_save_IFS
16871
16872 ;;
16873esac
16874fi
16875READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16876if test -n "$READELF_FOR_TARGET"; then
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16878$as_echo "$READELF_FOR_TARGET" >&6; }
16879else
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16881$as_echo "no" >&6; }
16882fi
16883
16884
16885fi
16886if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16887
16888
16889if test -n "$READELF_FOR_TARGET"; then
16890 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16891elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16892 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16893fi
16894
16895if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16896 for ncn_progname in readelf; do
16897 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16898set dummy ${ncn_progname}; ac_word=$2
16899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16900$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16901if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16902 $as_echo_n "(cached) " >&6
16903else
16904 if test -n "$READELF_FOR_TARGET"; then
16905 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16906else
16907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16908for as_dir in $PATH
16909do
16910 IFS=$as_save_IFS
16911 test -z "$as_dir" && as_dir=.
16912 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16914 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16916 break 2
16917 fi
16918done
16919 done
16920IFS=$as_save_IFS
16921
16922fi
16923fi
16924READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16925if test -n "$READELF_FOR_TARGET"; then
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16927$as_echo "$READELF_FOR_TARGET" >&6; }
16928else
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16930$as_echo "no" >&6; }
16931fi
16932
16933
16934 done
16935fi
16936
16937if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16938 for ncn_progname in readelf; do
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16940$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16941 if test -x $with_build_time_tools/${ncn_progname}; then
16942 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16944$as_echo "yes" >&6; }
16945 break
16946 else
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16948$as_echo "no" >&6; }
16949 fi
16950 done
16951fi
16952
16953if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16954 for ncn_progname in readelf; do
16955 if test -n "$ncn_target_tool_prefix"; then
16956 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16957set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16959$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16960if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16961 $as_echo_n "(cached) " >&6
16962else
16963 if test -n "$READELF_FOR_TARGET"; then
16964 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16965else
16966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16967for as_dir in $PATH
16968do
16969 IFS=$as_save_IFS
16970 test -z "$as_dir" && as_dir=.
16971 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16973 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16975 break 2
16976 fi
16977done
16978 done
16979IFS=$as_save_IFS
16980
16981fi
16982fi
16983READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16984if test -n "$READELF_FOR_TARGET"; then
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16986$as_echo "$READELF_FOR_TARGET" >&6; }
16987else
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16989$as_echo "no" >&6; }
16990fi
16991
16992
16993 fi
16994 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16996set dummy ${ncn_progname}; ac_word=$2
16997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16998$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16999if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
17000 $as_echo_n "(cached) " >&6
17001else
17002 if test -n "$READELF_FOR_TARGET"; then
17003 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17004else
17005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17006for as_dir in $PATH
17007do
17008 IFS=$as_save_IFS
17009 test -z "$as_dir" && as_dir=.
17010 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
17012 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17014 break 2
17015 fi
17016done
17017 done
17018IFS=$as_save_IFS
17019
17020fi
17021fi
17022READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17023if test -n "$READELF_FOR_TARGET"; then
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17025$as_echo "$READELF_FOR_TARGET" >&6; }
17026else
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17028$as_echo "no" >&6; }
17029fi
17030
17031
17032 fi
17033 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
17034 done
17035fi
17036
17037if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
17038 set dummy readelf
17039 if test $build = $target ; then
17040 READELF_FOR_TARGET="$2"
17041 else
17042 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
17043 fi
17044else
17045 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
17046fi
17047
17048else
17049 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17050fi
17051
17052
17053
17054
e8b05380
PB
17055if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17056 if test -n "$with_build_time_tools"; then
5213506e
RW
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
17058$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
17059 if test -x $with_build_time_tools/strip; then
17060 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
17061 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
17063$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 17064 else
5213506e
RW
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17066$as_echo "no" >&6; }
d1f8db0c 17067 fi
e8b05380
PB
17068 elif test $build != $host && test $have_gcc_for_target = yes; then
17069 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
17070 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
17071 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
17072 fi
17073fi
3e19841a 17074if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
17075 # Extract the first word of "strip", so it can be a program name with args.
17076set dummy strip; ac_word=$2
5213506e
RW
17077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17078$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17079if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
5213506e 17080 $as_echo_n "(cached) " >&6
e8b05380 17081else
1c710c3c
DJ
17082 case $STRIP_FOR_TARGET in
17083 [\\/]* | ?:[\\/]*)
e8b05380
PB
17084 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
17085 ;;
e8b05380 17086 *)
1c710c3c
DJ
17087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17088for as_dir in $gcc_cv_tool_dirs
17089do
17090 IFS=$as_save_IFS
17091 test -z "$as_dir" && as_dir=.
5213506e 17092 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17094 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 17095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17096 break 2
17097 fi
17098done
5213506e
RW
17099 done
17100IFS=$as_save_IFS
1c710c3c 17101
e8b05380
PB
17102 ;;
17103esac
17104fi
1c710c3c 17105STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 17106if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17108$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 17109else
5213506e
RW
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17111$as_echo "no" >&6; }
e8b05380
PB
17112fi
17113
5213506e 17114
e8b05380
PB
17115fi
17116if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
17117
17118
17119if test -n "$STRIP_FOR_TARGET"; then
17120 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17121elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17122 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17123fi
17124
17125if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17126 for ncn_progname in strip; do
17127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17128set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17130$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17131if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 17132 $as_echo_n "(cached) " >&6
278a7a38
AO
17133else
17134 if test -n "$STRIP_FOR_TARGET"; then
17135 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17136else
17137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17138for as_dir in $PATH
17139do
17140 IFS=$as_save_IFS
17141 test -z "$as_dir" && as_dir=.
5213506e 17142 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 17144 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 17145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
17146 break 2
17147 fi
17148done
5213506e
RW
17149 done
17150IFS=$as_save_IFS
278a7a38
AO
17151
17152fi
17153fi
17154STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17155if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17157$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 17158else
5213506e
RW
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17160$as_echo "no" >&6; }
278a7a38
AO
17161fi
17162
5213506e 17163
278a7a38
AO
17164 done
17165fi
17166
17167if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 17168 for ncn_progname in strip; do
5213506e
RW
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17170$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
17171 if test -x $with_build_time_tools/${ncn_progname}; then
17172 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17174$as_echo "yes" >&6; }
e8b05380
PB
17175 break
17176 else
5213506e
RW
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17178$as_echo "no" >&6; }
e8b05380
PB
17179 fi
17180 done
17181fi
17182
17183if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17184 for ncn_progname in strip; do
17185 if test -n "$ncn_target_tool_prefix"; then
17186 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 17187set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
17188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17189$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17190if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 17191 $as_echo_n "(cached) " >&6
af71363e
AS
17192else
17193 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
17194 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17195else
17196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17197for as_dir in $PATH
17198do
17199 IFS=$as_save_IFS
17200 test -z "$as_dir" && as_dir=.
5213506e 17201 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17203 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 17204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17205 break 2
17206 fi
17207done
5213506e
RW
17208 done
17209IFS=$as_save_IFS
1c710c3c 17210
040b1c5a
GK
17211fi
17212fi
1c710c3c 17213STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 17214if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17216$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 17217else
5213506e
RW
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17219$as_echo "no" >&6; }
040b1c5a
GK
17220fi
17221
5213506e 17222
e8b05380
PB
17223 fi
17224 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17225 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 17226set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17228$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17229if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 17230 $as_echo_n "(cached) " >&6
040b1c5a
GK
17231else
17232 if test -n "$STRIP_FOR_TARGET"; then
17233 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17234else
1c710c3c
DJ
17235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17236for as_dir in $PATH
17237do
17238 IFS=$as_save_IFS
17239 test -z "$as_dir" && as_dir=.
5213506e 17240 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17242 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 17243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17244 break 2
17245 fi
17246done
5213506e
RW
17247 done
17248IFS=$as_save_IFS
1c710c3c 17249
040b1c5a
GK
17250fi
17251fi
1c710c3c 17252STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 17253if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17255$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 17256else
5213506e
RW
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17258$as_echo "no" >&6; }
040b1c5a 17259fi
1c710c3c 17260
5213506e 17261
e8b05380
PB
17262 fi
17263 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17264 done
17265fi
1c710c3c 17266
040b1c5a
GK
17267if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17268 set dummy strip
17269 if test $build = $target ; then
17270 STRIP_FOR_TARGET="$2"
17271 else
17272 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17273 fi
1c00b503
PB
17274else
17275 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
17276fi
17277
d1f8db0c
PB
17278else
17279 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
17280fi
17281
17282
17283
17284
17285if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17286 if test -n "$with_build_time_tools"; then
5213506e
RW
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17288$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
17289 if test -x $with_build_time_tools/windres; then
17290 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17291 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17293$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 17294 else
5213506e
RW
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17296$as_echo "no" >&6; }
d1f8db0c 17297 fi
e8b05380
PB
17298 elif test $build != $host && test $have_gcc_for_target = yes; then
17299 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
17300 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17301 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
17302 fi
17303fi
3e19841a 17304if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
17305 # Extract the first word of "windres", so it can be a program name with args.
17306set dummy windres; ac_word=$2
5213506e
RW
17307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17308$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17309if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
5213506e 17310 $as_echo_n "(cached) " >&6
e8b05380 17311else
1c710c3c
DJ
17312 case $WINDRES_FOR_TARGET in
17313 [\\/]* | ?:[\\/]*)
e8b05380
PB
17314 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17315 ;;
e8b05380 17316 *)
1c710c3c
DJ
17317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17318for as_dir in $gcc_cv_tool_dirs
17319do
17320 IFS=$as_save_IFS
17321 test -z "$as_dir" && as_dir=.
5213506e 17322 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17324 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 17325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17326 break 2
17327 fi
17328done
5213506e
RW
17329 done
17330IFS=$as_save_IFS
1c710c3c 17331
e8b05380
PB
17332 ;;
17333esac
17334fi
1c710c3c 17335WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 17336if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17338$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 17339else
5213506e
RW
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17341$as_echo "no" >&6; }
e8b05380
PB
17342fi
17343
5213506e 17344
e8b05380
PB
17345fi
17346if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
17347
17348
17349if test -n "$WINDRES_FOR_TARGET"; then
17350 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17351elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17352 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17353fi
17354
17355if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17356 for ncn_progname in windres; do
17357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17358set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17360$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17361if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 17362 $as_echo_n "(cached) " >&6
278a7a38
AO
17363else
17364 if test -n "$WINDRES_FOR_TARGET"; then
17365 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17366else
17367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17368for as_dir in $PATH
17369do
17370 IFS=$as_save_IFS
17371 test -z "$as_dir" && as_dir=.
5213506e 17372 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 17374 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 17375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
17376 break 2
17377 fi
17378done
5213506e
RW
17379 done
17380IFS=$as_save_IFS
278a7a38
AO
17381
17382fi
17383fi
17384WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17385if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17387$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 17388else
5213506e
RW
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17390$as_echo "no" >&6; }
278a7a38
AO
17391fi
17392
5213506e 17393
278a7a38
AO
17394 done
17395fi
17396
17397if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 17398 for ncn_progname in windres; do
5213506e
RW
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17400$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
17401 if test -x $with_build_time_tools/${ncn_progname}; then
17402 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17404$as_echo "yes" >&6; }
e8b05380
PB
17405 break
17406 else
5213506e
RW
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17408$as_echo "no" >&6; }
e8b05380
PB
17409 fi
17410 done
17411fi
17412
17413if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17414 for ncn_progname in windres; do
17415 if test -n "$ncn_target_tool_prefix"; then
17416 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 17417set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
17418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17419$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17420if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 17421 $as_echo_n "(cached) " >&6
ca9f4b81 17422else
4de997d1
PB
17423 if test -n "$WINDRES_FOR_TARGET"; then
17424 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 17425else
1c710c3c
DJ
17426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17427for as_dir in $PATH
17428do
17429 IFS=$as_save_IFS
17430 test -z "$as_dir" && as_dir=.
5213506e 17431 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17433 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 17434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17435 break 2
17436 fi
17437done
5213506e
RW
17438 done
17439IFS=$as_save_IFS
1c710c3c 17440
ca9f4b81
AO
17441fi
17442fi
1c710c3c 17443WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 17444if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17446$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 17447else
5213506e
RW
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17449$as_echo "no" >&6; }
ca9f4b81
AO
17450fi
17451
5213506e 17452
e8b05380
PB
17453 fi
17454 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 17456set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17458$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17459if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 17460 $as_echo_n "(cached) " >&6
ca9f4b81 17461else
2693c0b0
PB
17462 if test -n "$WINDRES_FOR_TARGET"; then
17463 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 17464else
1c710c3c
DJ
17465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17466for as_dir in $PATH
17467do
17468 IFS=$as_save_IFS
17469 test -z "$as_dir" && as_dir=.
5213506e 17470 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17472 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 17473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17474 break 2
17475 fi
17476done
5213506e
RW
17477 done
17478IFS=$as_save_IFS
1c710c3c 17479
ca9f4b81
AO
17480fi
17481fi
1c710c3c 17482WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 17483if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17485$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 17486else
5213506e
RW
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17488$as_echo "no" >&6; }
ca9f4b81 17489fi
1c710c3c 17490
5213506e 17491
e8b05380
PB
17492 fi
17493 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17494 done
17495fi
1c710c3c 17496
2693c0b0
PB
17497if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17498 set dummy windres
17499 if test $build = $target ; then
17500 WINDRES_FOR_TARGET="$2"
ca9f4b81 17501 else
2693c0b0 17502 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 17503 fi
1c00b503
PB
17504else
17505 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
17506fi
17507
d1f8db0c
PB
17508else
17509 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
17510fi
17511
4977bab6 17512
901119ae
KT
17513
17514
17515if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17516 if test -n "$with_build_time_tools"; then
5213506e
RW
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17518$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
17519 if test -x $with_build_time_tools/windmc; then
17520 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17521 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17523$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 17524 else
5213506e
RW
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17526$as_echo "no" >&6; }
901119ae
KT
17527 fi
17528 elif test $build != $host && test $have_gcc_for_target = yes; then
17529 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
17530 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17531 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
17532 fi
17533fi
17534if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17535 # Extract the first word of "windmc", so it can be a program name with args.
17536set dummy windmc; ac_word=$2
5213506e
RW
17537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17538$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17539if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
5213506e 17540 $as_echo_n "(cached) " >&6
901119ae
KT
17541else
17542 case $WINDMC_FOR_TARGET in
17543 [\\/]* | ?:[\\/]*)
17544 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17545 ;;
17546 *)
17547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17548for as_dir in $gcc_cv_tool_dirs
17549do
17550 IFS=$as_save_IFS
17551 test -z "$as_dir" && as_dir=.
5213506e 17552 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17554 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 17555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17556 break 2
17557 fi
17558done
5213506e
RW
17559 done
17560IFS=$as_save_IFS
901119ae
KT
17561
17562 ;;
17563esac
17564fi
17565WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 17566if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17568$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17569else
5213506e
RW
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17571$as_echo "no" >&6; }
901119ae
KT
17572fi
17573
5213506e 17574
901119ae
KT
17575fi
17576if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17577
17578
17579if test -n "$WINDMC_FOR_TARGET"; then
17580 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17581elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17582 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17583fi
17584
17585if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17586 for ncn_progname in windmc; do
17587 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17588set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17590$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17591if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17592 $as_echo_n "(cached) " >&6
901119ae
KT
17593else
17594 if test -n "$WINDMC_FOR_TARGET"; then
17595 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17596else
17597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17598for as_dir in $PATH
17599do
17600 IFS=$as_save_IFS
17601 test -z "$as_dir" && as_dir=.
5213506e 17602 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17604 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 17605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17606 break 2
17607 fi
17608done
5213506e
RW
17609 done
17610IFS=$as_save_IFS
901119ae
KT
17611
17612fi
17613fi
17614WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17615if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17617$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17618else
5213506e
RW
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17620$as_echo "no" >&6; }
901119ae
KT
17621fi
17622
5213506e 17623
901119ae
KT
17624 done
17625fi
17626
17627if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17628 for ncn_progname in windmc; do
5213506e
RW
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17630$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
17631 if test -x $with_build_time_tools/${ncn_progname}; then
17632 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17634$as_echo "yes" >&6; }
901119ae
KT
17635 break
17636 else
5213506e
RW
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17638$as_echo "no" >&6; }
901119ae
KT
17639 fi
17640 done
17641fi
17642
17643if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17644 for ncn_progname in windmc; do
17645 if test -n "$ncn_target_tool_prefix"; then
17646 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17647set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
17648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17649$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17650if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17651 $as_echo_n "(cached) " >&6
901119ae
KT
17652else
17653 if test -n "$WINDMC_FOR_TARGET"; then
17654 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17655else
17656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17657for as_dir in $PATH
17658do
17659 IFS=$as_save_IFS
17660 test -z "$as_dir" && as_dir=.
5213506e 17661 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17663 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 17664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17665 break 2
17666 fi
17667done
5213506e
RW
17668 done
17669IFS=$as_save_IFS
901119ae
KT
17670
17671fi
17672fi
17673WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17674if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17676$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17677else
5213506e
RW
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17679$as_echo "no" >&6; }
901119ae
KT
17680fi
17681
5213506e 17682
901119ae
KT
17683 fi
17684 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17686set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17688$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17689if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17690 $as_echo_n "(cached) " >&6
901119ae
KT
17691else
17692 if test -n "$WINDMC_FOR_TARGET"; then
17693 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17694else
17695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17696for as_dir in $PATH
17697do
17698 IFS=$as_save_IFS
17699 test -z "$as_dir" && as_dir=.
5213506e 17700 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17702 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 17703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17704 break 2
17705 fi
17706done
5213506e
RW
17707 done
17708IFS=$as_save_IFS
901119ae
KT
17709
17710fi
17711fi
17712WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17713if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17715$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17716else
5213506e
RW
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17718$as_echo "no" >&6; }
901119ae
KT
17719fi
17720
5213506e 17721
901119ae
KT
17722 fi
17723 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17724 done
17725fi
17726
17727if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17728 set dummy windmc
17729 if test $build = $target ; then
17730 WINDMC_FOR_TARGET="$2"
17731 else
17732 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17733 fi
1c00b503
PB
17734else
17735 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
17736fi
17737
17738else
17739 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17740fi
17741
17742
2abefe3d
PB
17743RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17744
5213506e
RW
17745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17746$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 17747if test "x${build}" != "x${host}" ; then
e8b05380
PB
17748 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17749 # We already found the complete path
172e41aa 17750 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17752$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17753 else
17754 # Canadian cross, just use what we found
5213506e
RW
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17756$as_echo "pre-installed" >&6; }
e8b05380 17757 fi
2abefe3d
PB
17758else
17759 ok=yes
17760 case " ${configdirs} " in
17761 *" binutils "*) ;;
17762 *) ok=no ;;
17763 esac
1c710c3c 17764
2abefe3d
PB
17765 if test $ok = yes; then
17766 # An in-tree tool is available and we can use it
17767 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17769$as_echo "just compiled" >&6; }
e8b05380
PB
17770 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17771 # We already found the complete path
172e41aa 17772 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17774$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17775 elif test "x$target" = "x$host"; then
17776 # We can use an host tool
17777 AR_FOR_TARGET='$(AR)'
5213506e
RW
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17779$as_echo "host tool" >&6; }
2abefe3d
PB
17780 else
17781 # We need a cross tool
5213506e
RW
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17783$as_echo "pre-installed" >&6; }
2abefe3d
PB
17784 fi
17785fi
0b0dc272 17786
5213506e
RW
17787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17788$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 17789if test "x${build}" != "x${host}" ; then
e8b05380
PB
17790 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17791 # We already found the complete path
172e41aa 17792 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17794$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17795 else
17796 # Canadian cross, just use what we found
5213506e
RW
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17798$as_echo "pre-installed" >&6; }
e8b05380 17799 fi
2abefe3d
PB
17800else
17801 ok=yes
17802 case " ${configdirs} " in
17803 *" gas "*) ;;
17804 *) ok=no ;;
17805 esac
1c710c3c 17806
2abefe3d
PB
17807 if test $ok = yes; then
17808 # An in-tree tool is available and we can use it
17809 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17811$as_echo "just compiled" >&6; }
e8b05380
PB
17812 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17813 # We already found the complete path
172e41aa 17814 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17816$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17817 elif test "x$target" = "x$host"; then
17818 # We can use an host tool
17819 AS_FOR_TARGET='$(AS)'
5213506e
RW
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17821$as_echo "host tool" >&6; }
2abefe3d
PB
17822 else
17823 # We need a cross tool
5213506e
RW
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17825$as_echo "pre-installed" >&6; }
2abefe3d
PB
17826 fi
17827fi
0b0dc272 17828
5213506e
RW
17829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17830$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 17831if test "x${build}" != "x${host}" ; then
e8b05380
PB
17832 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17833 # We already found the complete path
172e41aa 17834 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17836$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17837 else
17838 # Canadian cross, just use what we found
5213506e
RW
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17840$as_echo "pre-installed" >&6; }
e8b05380 17841 fi
2abefe3d
PB
17842else
17843 ok=yes
17844 case " ${configdirs} " in
17845 *" gcc "*) ;;
17846 *) ok=no ;;
17847 esac
1c710c3c 17848
2abefe3d
PB
17849 if test $ok = yes; then
17850 # An in-tree tool is available and we can use it
17851 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17853$as_echo "just compiled" >&6; }
e8b05380
PB
17854 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17855 # We already found the complete path
172e41aa 17856 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17858$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17859 elif test "x$target" = "x$host"; then
17860 # We can use an host tool
17861 CC_FOR_TARGET='$(CC)'
5213506e
RW
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17863$as_echo "host tool" >&6; }
2abefe3d
PB
17864 else
17865 # We need a cross tool
5213506e
RW
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17867$as_echo "pre-installed" >&6; }
2abefe3d
PB
17868 fi
17869fi
0b0dc272 17870
5213506e
RW
17871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17872$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 17873if test "x${build}" != "x${host}" ; then
e8b05380
PB
17874 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17875 # We already found the complete path
172e41aa 17876 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17878$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17879 else
17880 # Canadian cross, just use what we found
5213506e
RW
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17882$as_echo "pre-installed" >&6; }
e8b05380 17883 fi
2abefe3d
PB
17884else
17885 ok=yes
17886 case " ${configdirs} " in
17887 *" gcc "*) ;;
17888 *) ok=no ;;
17889 esac
17890 case ,${enable_languages}, in
17891 *,c++,*) ;;
17892 *) ok=no ;;
17893 esac
17894 if test $ok = yes; then
17895 # An in-tree tool is available and we can use it
2077db1b 17896 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
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17898$as_echo "just compiled" >&6; }
e8b05380
PB
17899 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17900 # We already found the complete path
172e41aa 17901 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17903$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17904 elif test "x$target" = "x$host"; then
17905 # We can use an host tool
17906 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17908$as_echo "host tool" >&6; }
2abefe3d
PB
17909 else
17910 # We need a cross tool
5213506e
RW
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17912$as_echo "pre-installed" >&6; }
2abefe3d
PB
17913 fi
17914fi
0b0dc272 17915
5213506e
RW
17916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17917$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 17918if test "x${build}" != "x${host}" ; then
e8b05380
PB
17919 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17920 # We already found the complete path
172e41aa 17921 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17923$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17924 else
17925 # Canadian cross, just use what we found
5213506e
RW
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17927$as_echo "pre-installed" >&6; }
e8b05380 17928 fi
2abefe3d
PB
17929else
17930 ok=yes
17931 case " ${configdirs} " in
17932 *" gcc "*) ;;
17933 *) ok=no ;;
17934 esac
17935 case ,${enable_languages}, in
17936 *,c++,*) ;;
17937 *) ok=no ;;
17938 esac
17939 if test $ok = yes; then
17940 # An in-tree tool is available and we can use it
2077db1b 17941 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
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17943$as_echo "just compiled" >&6; }
e8b05380
PB
17944 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17945 # We already found the complete path
172e41aa 17946 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17948$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17949 elif test "x$target" = "x$host"; then
17950 # We can use an host tool
17951 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17953$as_echo "host tool" >&6; }
2abefe3d
PB
17954 else
17955 # We need a cross tool
5213506e
RW
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17957$as_echo "pre-installed" >&6; }
2abefe3d
PB
17958 fi
17959fi
0b0dc272 17960
5213506e
RW
17961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17962$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 17963if test "x${build}" != "x${host}" ; then
e8b05380
PB
17964 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17965 # We already found the complete path
172e41aa 17966 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17968$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17969 else
17970 # Canadian cross, just use what we found
5213506e
RW
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17972$as_echo "pre-installed" >&6; }
e8b05380 17973 fi
2abefe3d
PB
17974else
17975 ok=yes
17976 case " ${configdirs} " in
17977 *" binutils "*) ;;
17978 *) ok=no ;;
17979 esac
1c710c3c 17980
2abefe3d
PB
17981 if test $ok = yes; then
17982 # An in-tree tool is available and we can use it
17983 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17985$as_echo "just compiled" >&6; }
e8b05380
PB
17986 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17987 # We already found the complete path
172e41aa 17988 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17990$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17991 elif test "x$target" = "x$host"; then
17992 # We can use an host tool
17993 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17995$as_echo "host tool" >&6; }
2abefe3d
PB
17996 else
17997 # We need a cross tool
5213506e
RW
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17999$as_echo "pre-installed" >&6; }
2abefe3d
PB
18000 fi
18001fi
0b0dc272 18002
3b5e8ee4
IS
18003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
18004$as_echo_n "checking where to find the target dsymutil... " >&6; }
18005if test "x${build}" != "x${host}" ; then
18006 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18007 # We already found the complete path
18008 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18010$as_echo "pre-installed in $ac_dir" >&6; }
18011 else
18012 # Canadian cross, just use what we found
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18014$as_echo "pre-installed" >&6; }
18015 fi
18016else
18017 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18018 # We already found the complete path
18019 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18021$as_echo "pre-installed in $ac_dir" >&6; }
18022 elif test "x$target" = "x$host"; then
18023 # We can use an host tool
18024 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18026$as_echo "host tool" >&6; }
18027 else
18028 # We need a cross tool
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18030$as_echo "pre-installed" >&6; }
18031 fi
18032fi
18033
5213506e
RW
18034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
18035$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 18036if test "x${build}" != "x${host}" ; then
e8b05380
PB
18037 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18038 # We already found the complete path
172e41aa 18039 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18041$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18042 else
18043 # Canadian cross, just use what we found
5213506e
RW
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18045$as_echo "pre-installed" >&6; }
e8b05380 18046 fi
2abefe3d
PB
18047else
18048 ok=yes
18049 case " ${configdirs} " in
18050 *" gcc "*) ;;
18051 *) ok=no ;;
18052 esac
1c710c3c 18053
2abefe3d
PB
18054 if test $ok = yes; then
18055 # An in-tree tool is available and we can use it
18056 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18058$as_echo "just compiled" >&6; }
e8b05380
PB
18059 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18060 # We already found the complete path
172e41aa 18061 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18063$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18064 elif test "x$target" = "x$host"; then
18065 # We can use an host tool
18066 GCC_FOR_TARGET='$()'
5213506e
RW
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18068$as_echo "host tool" >&6; }
2abefe3d
PB
18069 else
18070 # We need a cross tool
5213506e
RW
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18072$as_echo "pre-installed" >&6; }
2abefe3d
PB
18073 fi
18074fi
0b0dc272 18075
5213506e
RW
18076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
18077$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 18078if test "x${build}" != "x${host}" ; then
e8b05380
PB
18079 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18080 # We already found the complete path
172e41aa 18081 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18083$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18084 else
18085 # Canadian cross, just use what we found
5213506e
RW
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18087$as_echo "pre-installed" >&6; }
e8b05380 18088 fi
2abefe3d
PB
18089else
18090 ok=yes
18091 case " ${configdirs} " in
18092 *" gcc "*) ;;
18093 *) ok=no ;;
18094 esac
18095 case ,${enable_languages}, in
18096 *,fortran,*) ;;
18097 *) ok=no ;;
18098 esac
18099 if test $ok = yes; then
18100 # An in-tree tool is available and we can use it
18101 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18103$as_echo "just compiled" >&6; }
e8b05380
PB
18104 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18105 # We already found the complete path
172e41aa 18106 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18108$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18109 elif test "x$target" = "x$host"; then
18110 # We can use an host tool
18111 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18113$as_echo "host tool" >&6; }
2abefe3d
PB
18114 else
18115 # We need a cross tool
5213506e
RW
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18117$as_echo "pre-installed" >&6; }
2abefe3d
PB
18118 fi
18119fi
0b0dc272 18120
632e2a07
ILT
18121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
18122$as_echo_n "checking where to find the target gccgo... " >&6; }
18123if test "x${build}" != "x${host}" ; then
18124 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18125 # We already found the complete path
18126 ac_dir=`dirname $GOC_FOR_TARGET`
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18128$as_echo "pre-installed in $ac_dir" >&6; }
18129 else
18130 # Canadian cross, just use what we found
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18132$as_echo "pre-installed" >&6; }
18133 fi
18134else
18135 ok=yes
18136 case " ${configdirs} " in
18137 *" gcc "*) ;;
18138 *) ok=no ;;
18139 esac
18140 case ,${enable_languages}, in
18141 *,go,*) ;;
18142 *) ok=no ;;
18143 esac
18144 if test $ok = yes; then
18145 # An in-tree tool is available and we can use it
18146 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18148$as_echo "just compiled" >&6; }
18149 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18150 # We already found the complete path
18151 ac_dir=`dirname $GOC_FOR_TARGET`
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18153$as_echo "pre-installed in $ac_dir" >&6; }
18154 elif test "x$target" = "x$host"; then
18155 # We can use an host tool
18156 GOC_FOR_TARGET='$(GOC)'
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18158$as_echo "host tool" >&6; }
18159 else
18160 # We need a cross tool
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18162$as_echo "pre-installed" >&6; }
18163 fi
18164fi
18165
b4c522fa
IB
18166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
18167$as_echo_n "checking where to find the target gdc... " >&6; }
18168if test "x${build}" != "x${host}" ; then
18169 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18170 # We already found the complete path
18171 ac_dir=`dirname $GDC_FOR_TARGET`
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18173$as_echo "pre-installed in $ac_dir" >&6; }
18174 else
18175 # Canadian cross, just use what we found
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18177$as_echo "pre-installed" >&6; }
18178 fi
18179else
18180 ok=yes
18181 case " ${configdirs} " in
18182 *" gcc "*) ;;
18183 *) ok=no ;;
18184 esac
18185 case ,${enable_languages}, in
18186 *,d,*) ;;
18187 *) ok=no ;;
18188 esac
18189 if test $ok = yes; then
18190 # An in-tree tool is available and we can use it
18191 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18193$as_echo "just compiled" >&6; }
18194 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18195 # We already found the complete path
18196 ac_dir=`dirname $GDC_FOR_TARGET`
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18198$as_echo "pre-installed in $ac_dir" >&6; }
18199 elif test "x$target" = "x$host"; then
18200 # We can use an host tool
18201 GDC_FOR_TARGET='$(GDC)'
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18203$as_echo "host tool" >&6; }
18204 else
18205 # We need a cross tool
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18207$as_echo "pre-installed" >&6; }
18208 fi
18209fi
18210
1eee94d3
GM
18211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
18212$as_echo_n "checking where to find the target gm2... " >&6; }
18213if test "x${build}" != "x${host}" ; then
18214 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18215 # We already found the complete path
18216 ac_dir=`dirname $GM2_FOR_TARGET`
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18218$as_echo "pre-installed in $ac_dir" >&6; }
18219 else
18220 # Canadian cross, just use what we found
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18222$as_echo "pre-installed" >&6; }
18223 fi
18224else
18225 ok=yes
18226 case " ${configdirs} " in
18227 *" gcc "*) ;;
18228 *) ok=no ;;
18229 esac
18230 case ,${enable_languages}, in
18231 *,m2,*) ;;
18232 *) ok=no ;;
18233 esac
18234 if test $ok = yes; then
18235 # An in-tree tool is available and we can use it
18236 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18238$as_echo "just compiled" >&6; }
18239 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18240 # We already found the complete path
18241 ac_dir=`dirname $GM2_FOR_TARGET`
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18243$as_echo "pre-installed in $ac_dir" >&6; }
18244 elif test "x$target" = "x$host"; then
18245 # We can use an host tool
18246 GM2_FOR_TARGET='$(GM2)'
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18248$as_echo "host tool" >&6; }
18249 else
18250 # We need a cross tool
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18252$as_echo "pre-installed" >&6; }
18253 fi
18254fi
18255
5213506e
RW
18256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
18257$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 18258if test "x${build}" != "x${host}" ; then
e8b05380
PB
18259 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18260 # We already found the complete path
172e41aa 18261 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18263$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18264 else
18265 # Canadian cross, just use what we found
5213506e
RW
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18267$as_echo "pre-installed" >&6; }
e8b05380 18268 fi
2abefe3d
PB
18269else
18270 ok=yes
18271 case " ${configdirs} " in
18272 *" ld "*) ;;
18273 *) ok=no ;;
18274 esac
1c710c3c 18275
2abefe3d
PB
18276 if test $ok = yes; then
18277 # An in-tree tool is available and we can use it
18278 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18280$as_echo "just compiled" >&6; }
e8b05380
PB
18281 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18282 # We already found the complete path
172e41aa 18283 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18285$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18286 elif test "x$target" = "x$host"; then
18287 # We can use an host tool
18288 LD_FOR_TARGET='$(LD)'
5213506e
RW
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18290$as_echo "host tool" >&6; }
2abefe3d
PB
18291 else
18292 # We need a cross tool
5213506e
RW
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18294$as_echo "pre-installed" >&6; }
2abefe3d
PB
18295 fi
18296fi
0b0dc272 18297
5213506e
RW
18298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18299$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 18300if test "x${build}" != "x${host}" ; then
e8b05380
PB
18301 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18302 # We already found the complete path
172e41aa 18303 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18305$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18306 else
18307 # Canadian cross, just use what we found
5213506e
RW
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18309$as_echo "pre-installed" >&6; }
e8b05380 18310 fi
2abefe3d 18311else
e8b05380
PB
18312 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18313 # We already found the complete path
172e41aa 18314 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18316$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 18317 elif test "x$target" = "x$host"; then
2abefe3d
PB
18318 # We can use an host tool
18319 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18321$as_echo "host tool" >&6; }
2abefe3d
PB
18322 else
18323 # We need a cross tool
5213506e
RW
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18325$as_echo "pre-installed" >&6; }
2abefe3d
PB
18326 fi
18327fi
0b0dc272 18328
5213506e
RW
18329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18330$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 18331if test "x${build}" != "x${host}" ; then
e8b05380
PB
18332 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18333 # We already found the complete path
172e41aa 18334 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18336$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18337 else
18338 # Canadian cross, just use what we found
5213506e
RW
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18340$as_echo "pre-installed" >&6; }
e8b05380 18341 fi
2abefe3d
PB
18342else
18343 ok=yes
18344 case " ${configdirs} " in
18345 *" binutils "*) ;;
18346 *) ok=no ;;
18347 esac
1c710c3c 18348
2abefe3d
PB
18349 if test $ok = yes; then
18350 # An in-tree tool is available and we can use it
18351 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18353$as_echo "just compiled" >&6; }
e8b05380
PB
18354 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18355 # We already found the complete path
172e41aa 18356 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18358$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18359 elif test "x$target" = "x$host"; then
18360 # We can use an host tool
18361 NM_FOR_TARGET='$(NM)'
5213506e
RW
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18363$as_echo "host tool" >&6; }
2abefe3d
PB
18364 else
18365 # We need a cross tool
5213506e
RW
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18367$as_echo "pre-installed" >&6; }
2abefe3d
PB
18368 fi
18369fi
0b0dc272 18370
9bccfdf5
AP
18371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18372$as_echo_n "checking where to find the target objcopy... " >&6; }
18373if test "x${build}" != "x${host}" ; then
18374 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18375 # We already found the complete path
18376 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18378$as_echo "pre-installed in $ac_dir" >&6; }
18379 else
18380 # Canadian cross, just use what we found
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18382$as_echo "pre-installed" >&6; }
18383 fi
18384else
18385 ok=yes
18386 case " ${configdirs} " in
18387 *" binutils "*) ;;
18388 *) ok=no ;;
18389 esac
18390
18391 if test $ok = yes; then
18392 # An in-tree tool is available and we can use it
18393 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18395$as_echo "just compiled" >&6; }
18396 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18397 # We already found the complete path
18398 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18400$as_echo "pre-installed in $ac_dir" >&6; }
18401 elif test "x$target" = "x$host"; then
18402 # We can use an host tool
ec8fd1c0 18403 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18405$as_echo "host tool" >&6; }
18406 else
18407 # We need a cross tool
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18409$as_echo "pre-installed" >&6; }
18410 fi
18411fi
18412
5213506e
RW
18413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18414$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 18415if test "x${build}" != "x${host}" ; then
e8b05380
PB
18416 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18417 # We already found the complete path
172e41aa 18418 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18420$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18421 else
18422 # Canadian cross, just use what we found
5213506e
RW
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18424$as_echo "pre-installed" >&6; }
e8b05380 18425 fi
2abefe3d
PB
18426else
18427 ok=yes
18428 case " ${configdirs} " in
18429 *" binutils "*) ;;
18430 *) ok=no ;;
18431 esac
1c710c3c 18432
2abefe3d
PB
18433 if test $ok = yes; then
18434 # An in-tree tool is available and we can use it
18435 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18437$as_echo "just compiled" >&6; }
e8b05380
PB
18438 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18439 # We already found the complete path
172e41aa 18440 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18442$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18443 elif test "x$target" = "x$host"; then
18444 # We can use an host tool
18445 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18447$as_echo "host tool" >&6; }
2abefe3d
PB
18448 else
18449 # We need a cross tool
5213506e
RW
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18451$as_echo "pre-installed" >&6; }
2abefe3d
PB
18452 fi
18453fi
0b0dc272 18454
e4a9a572
IS
18455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18456$as_echo_n "checking where to find the target otool... " >&6; }
18457if test "x${build}" != "x${host}" ; then
18458 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18459 # We already found the complete path
18460 ac_dir=`dirname $OTOOL_FOR_TARGET`
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18462$as_echo "pre-installed in $ac_dir" >&6; }
18463 else
18464 # Canadian cross, just use what we found
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18466$as_echo "pre-installed" >&6; }
18467 fi
18468else
18469 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18470 # We already found the complete path
18471 ac_dir=`dirname $OTOOL_FOR_TARGET`
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18473$as_echo "pre-installed in $ac_dir" >&6; }
18474 elif test "x$target" = "x$host"; then
18475 # We can use an host tool
18476 OTOOL_FOR_TARGET='$(OTOOL)'
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18478$as_echo "host tool" >&6; }
18479 else
18480 # We need a cross tool
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18482$as_echo "pre-installed" >&6; }
18483 fi
18484fi
18485
5213506e
RW
18486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18487$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 18488if test "x${build}" != "x${host}" ; then
e8b05380
PB
18489 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18490 # We already found the complete path
172e41aa 18491 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18493$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18494 else
18495 # Canadian cross, just use what we found
5213506e
RW
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18497$as_echo "pre-installed" >&6; }
e8b05380 18498 fi
2abefe3d
PB
18499else
18500 ok=yes
18501 case " ${configdirs} " in
18502 *" binutils "*) ;;
18503 *) ok=no ;;
18504 esac
1c710c3c 18505
2abefe3d
PB
18506 if test $ok = yes; then
18507 # An in-tree tool is available and we can use it
18508 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18510$as_echo "just compiled" >&6; }
e8b05380
PB
18511 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18512 # We already found the complete path
172e41aa 18513 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18515$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18516 elif test "x$target" = "x$host"; then
18517 # We can use an host tool
18518 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18520$as_echo "host tool" >&6; }
2abefe3d
PB
18521 else
18522 # We need a cross tool
5213506e
RW
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18524$as_echo "pre-installed" >&6; }
2abefe3d
PB
18525 fi
18526fi
0b0dc272 18527
e7a82751
RM
18528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18529$as_echo_n "checking where to find the target readelf... " >&6; }
18530if test "x${build}" != "x${host}" ; then
18531 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18532 # We already found the complete path
18533 ac_dir=`dirname $READELF_FOR_TARGET`
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18535$as_echo "pre-installed in $ac_dir" >&6; }
18536 else
18537 # Canadian cross, just use what we found
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18539$as_echo "pre-installed" >&6; }
18540 fi
18541else
18542 ok=yes
18543 case " ${configdirs} " in
18544 *" binutils "*) ;;
18545 *) ok=no ;;
18546 esac
18547
18548 if test $ok = yes; then
18549 # An in-tree tool is available and we can use it
18550 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18552$as_echo "just compiled" >&6; }
18553 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18554 # We already found the complete path
18555 ac_dir=`dirname $READELF_FOR_TARGET`
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18557$as_echo "pre-installed in $ac_dir" >&6; }
18558 elif test "x$target" = "x$host"; then
18559 # We can use an host tool
18560 READELF_FOR_TARGET='$(READELF)'
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18562$as_echo "host tool" >&6; }
18563 else
18564 # We need a cross tool
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18566$as_echo "pre-installed" >&6; }
18567 fi
18568fi
18569
5213506e
RW
18570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18571$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 18572if test "x${build}" != "x${host}" ; then
e8b05380
PB
18573 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18574 # We already found the complete path
172e41aa 18575 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18577$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18578 else
18579 # Canadian cross, just use what we found
5213506e
RW
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18581$as_echo "pre-installed" >&6; }
e8b05380 18582 fi
2abefe3d
PB
18583else
18584 ok=yes
18585 case " ${configdirs} " in
18586 *" binutils "*) ;;
18587 *) ok=no ;;
18588 esac
1c710c3c 18589
2abefe3d
PB
18590 if test $ok = yes; then
18591 # An in-tree tool is available and we can use it
455c8f48 18592 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18594$as_echo "just compiled" >&6; }
e8b05380
PB
18595 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18596 # We already found the complete path
172e41aa 18597 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18599$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18600 elif test "x$target" = "x$host"; then
18601 # We can use an host tool
18602 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18604$as_echo "host tool" >&6; }
2abefe3d
PB
18605 else
18606 # We need a cross tool
5213506e
RW
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18608$as_echo "pre-installed" >&6; }
2abefe3d
PB
18609 fi
18610fi
0b0dc272 18611
5213506e
RW
18612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18613$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 18614if test "x${build}" != "x${host}" ; then
e8b05380
PB
18615 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18616 # We already found the complete path
172e41aa 18617 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18619$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18620 else
18621 # Canadian cross, just use what we found
5213506e
RW
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18623$as_echo "pre-installed" >&6; }
e8b05380 18624 fi
2abefe3d
PB
18625else
18626 ok=yes
18627 case " ${configdirs} " in
18628 *" binutils "*) ;;
18629 *) ok=no ;;
18630 esac
1c710c3c 18631
2abefe3d
PB
18632 if test $ok = yes; then
18633 # An in-tree tool is available and we can use it
18634 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18636$as_echo "just compiled" >&6; }
e8b05380
PB
18637 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18638 # We already found the complete path
172e41aa 18639 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18641$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18642 elif test "x$target" = "x$host"; then
18643 # We can use an host tool
18644 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18646$as_echo "host tool" >&6; }
2abefe3d
PB
18647 else
18648 # We need a cross tool
5213506e
RW
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18650$as_echo "pre-installed" >&6; }
2abefe3d 18651 fi
671aa708 18652fi
be912515 18653
5213506e
RW
18654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18655$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
18656if test "x${build}" != "x${host}" ; then
18657 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18658 # We already found the complete path
18659 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18661$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
18662 else
18663 # Canadian cross, just use what we found
5213506e
RW
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18665$as_echo "pre-installed" >&6; }
901119ae
KT
18666 fi
18667else
18668 ok=yes
18669 case " ${configdirs} " in
18670 *" binutils "*) ;;
18671 *) ok=no ;;
18672 esac
18673
18674 if test $ok = yes; then
18675 # An in-tree tool is available and we can use it
18676 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18678$as_echo "just compiled" >&6; }
901119ae
KT
18679 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18680 # We already found the complete path
18681 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18683$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
18684 elif test "x$target" = "x$host"; then
18685 # We can use an host tool
18686 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18688$as_echo "host tool" >&6; }
901119ae
KT
18689 else
18690 # We need a cross tool
5213506e
RW
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18692$as_echo "pre-installed" >&6; }
901119ae
KT
18693 fi
18694fi
18695
be912515
NN
18696
18697
2abefe3d 18698
0b0dc272 18699
671aa708
NN
18700# Certain tools may need extra flags.
18701AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18702RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18703NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18704
2abefe3d
PB
18705# When building target libraries, except in a Canadian cross, we use
18706# the same toolchain as the compiler we just built.
18707COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18708COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18709COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18710if test $host = $build; then
18711 case " $configdirs " in
18712 *" gcc "*)
18713 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18714 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18715 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18716 ;;
18717 esac
18718fi
18719
18720
18721
18722
18723
5213506e
RW
18724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18725$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18726# Check whether --enable-maintainer-mode was given.
18727if test "${enable_maintainer_mode+set}" = set; then :
18728 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
18729else
18730 USE_MAINTAINER_MODE=no
5213506e
RW
18731fi
18732
18733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18734$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
18735
18736
18737if test "$USE_MAINTAINER_MODE" = yes; then
18738 MAINTAINER_MODE_TRUE=
18739 MAINTAINER_MODE_FALSE='#'
18740else
18741 MAINTAINER_MODE_TRUE='#'
18742 MAINTAINER_MODE_FALSE=
1c710c3c 18743fi
ee03dc5e
AO
18744MAINT=$MAINTAINER_MODE_TRUE
18745
2805b53a
NN
18746# ---------------------
18747# GCC bootstrap support
18748# ---------------------
18749
18750# Stage specific cflags for build.
18751stage1_cflags="-g"
18752case $build in
18753 vax-*-*)
18754 case ${GCC} in
18755 yes) stage1_cflags="-g -Wa,-J" ;;
18756 *) stage1_cflags="-g -J" ;;
18757 esac ;;
2805b53a
NN
18758esac
18759
0b50988a 18760
2805b53a 18761
8efea775 18762# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
18763# Check whether --enable-stage1-checking was given.
18764if test "${enable_stage1_checking+set}" = set; then :
18765 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 18766else
e643dc23 18767 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
18768 # For --disable-checking or implicit --enable-checking=release, avoid
18769 # setting --enable-checking=gc in the default stage1 checking for LTO
18770 # bootstraps. See PR62077.
c10b5ea0
JJ
18771 case $BUILD_CONFIG in
18772 *lto*)
7db11a5a
JJ
18773 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18774 *)
18775 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 18776 esac
7db11a5a
JJ
18777 if test "x$enable_checking" = x && \
18778 test -d ${srcdir}/gcc && \
18779 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 18780 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 18781 fi
8efea775 18782else
e643dc23 18783 stage1_checking=--enable-checking=$enable_checking,types
8efea775 18784fi
5213506e 18785fi
8efea775
PB
18786
18787
2aeb72e9 18788
5213506e
RW
18789# Enable -Werror in bootstrap stage2 and later.
18790# Check whether --enable-werror was given.
18791if test "${enable_werror+set}" = set; then :
18792 enableval=$enable_werror;
09a9c095
NN
18793case ${enable_werror} in
18794 yes) stage2_werror_flag="--enable-werror-always" ;;
18795 *) stage2_werror_flag="" ;;
2805b53a
NN
18796esac
18797
afd88efc
ML
18798else
18799
01c712cb
ML
18800if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18801 case $BUILD_CONFIG in
18802 bootstrap-debug)
18803 stage2_werror_flag="--enable-werror-always" ;;
18804 "")
18805 stage2_werror_flag="--enable-werror-always" ;;
18806 esac
18807fi
18808
afd88efc
ML
18809fi
18810
18811
01c712cb 18812
2805b53a 18813
f2689b09
SE
18814# Specify what files to not compare during bootstrap.
18815
18816compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
1eee94d3
GM
18817compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18818compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18819compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
f2689b09
SE
18820case "$target" in
18821 hppa*64*-*-hpux*) ;;
4f943869 18822 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
f2689b09
SE
18823esac
18824
18825
5213506e
RW
18826ac_config_files="$ac_config_files Makefile"
18827
1c710c3c 18828cat >confcache <<\_ACEOF
671aa708
NN
18829# This file is a shell script that caches the results of configure
18830# tests run on this system so they can be shared between configure
1c710c3c
DJ
18831# scripts and configure runs, see configure's option --config-cache.
18832# It is not useful on other systems. If it contains results you don't
18833# want to keep, you may remove or edit it.
671aa708 18834#
1c710c3c
DJ
18835# config.status only pays attention to the cache file if you give it
18836# the --recheck option to rerun configure.
671aa708 18837#
1c710c3c
DJ
18838# `ac_cv_env_foo' variables (set or unset) will be overridden when
18839# loading this file, other *unset* `ac_cv_foo' will be assigned the
18840# following values.
18841
18842_ACEOF
18843
671aa708
NN
18844# The following way of writing the cache mishandles newlines in values,
18845# but we know of no workaround that is simple, portable, and efficient.
5213506e 18846# So, we kill variables containing newlines.
671aa708
NN
18847# Ultrix sh set writes to stderr and can't be redirected directly,
18848# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
18849(
18850 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18851 eval ac_val=\$$ac_var
18852 case $ac_val in #(
18853 *${as_nl}*)
18854 case $ac_var in #(
18855 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18856$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18857 esac
18858 case $ac_var in #(
18859 _ | IFS | as_nl) ;; #(
18860 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18861 *) { eval $ac_var=; unset $ac_var;} ;;
18862 esac ;;
18863 esac
18864 done
18865
1c710c3c 18866 (set) 2>&1 |
5213506e
RW
18867 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18868 *${as_nl}ac_space=\ *)
18869 # `set' does not quote correctly, so add quotes: double-quote
18870 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
18871 sed -n \
18872 "s/'/'\\\\''/g;
18873 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 18874 ;; #(
1c710c3c
DJ
18875 *)
18876 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 18877 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 18878 ;;
5213506e
RW
18879 esac |
18880 sort
18881) |
1c710c3c 18882 sed '
5213506e 18883 /^ac_cv_env_/b end
1c710c3c 18884 t clear
5213506e 18885 :clear
1c710c3c
DJ
18886 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18887 t end
5213506e
RW
18888 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18889 :end' >>confcache
18890if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18891 if test -w "$cache_file"; then
22e05272 18892 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18894$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
18895 if test ! -f "$cache_file" || test -h "$cache_file"; then
18896 cat confcache >"$cache_file"
18897 else
18898 case $cache_file in #(
18899 */* | ?:*)
18900 mv -f confcache "$cache_file"$$ &&
18901 mv -f "$cache_file"$$ "$cache_file" ;; #(
18902 *)
18903 mv -f confcache "$cache_file" ;;
18904 esac
18905 fi
18906 fi
671aa708 18907 else
5213506e
RW
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18909$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 18910 fi
4977bab6 18911fi
671aa708 18912rm -f confcache
79c06341 18913
671aa708
NN
18914test "x$prefix" = xNONE && prefix=$ac_default_prefix
18915# Let make expand exec_prefix.
18916test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 18917
671aa708
NN
18918# Transform confdefs.h into DEFS.
18919# Protect against shell expansion while executing Makefile rules.
18920# Protect against Makefile macro expansion.
1c710c3c
DJ
18921#
18922# If the first sed substitution is executed (which looks for macros that
5213506e 18923# take arguments), then branch to the quote section. Otherwise,
1c710c3c 18924# look for a macro that doesn't take arguments.
5213506e
RW
18925ac_script='
18926:mline
18927/\\$/{
18928 N
18929 s,\\\n,,
18930 b mline
18931}
1c710c3c 18932t clear
5213506e
RW
18933:clear
18934s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18935t quote
5213506e 18936s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18937t quote
5213506e
RW
18938b any
18939:quote
18940s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18941s/\[/\\&/g
18942s/\]/\\&/g
18943s/\$/$$/g
18944H
18945:any
18946${
18947 g
18948 s/^\n//
18949 s/\n/ /g
18950 p
18951}
18952'
18953DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
18954
18955
18956ac_libobjs=
18957ac_ltlibobjs=
22e05272 18958U=
1c710c3c
DJ
18959for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18960 # 1. Remove the extension, and $U if already installed.
5213506e
RW
18961 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18962 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18963 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18964 # will be set to the directory where LIBOBJS objects are built.
18965 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18966 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
18967done
18968LIBOBJS=$ac_libobjs
fb0103e5 18969
1c710c3c 18970LTLIBOBJS=$ac_ltlibobjs
0b0dc272 18971
af71363e 18972
1c710c3c 18973
22e05272 18974: "${CONFIG_STATUS=./config.status}"
5213506e 18975ac_write_fail=0
1c710c3c
DJ
18976ac_clean_files_save=$ac_clean_files
18977ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
18978{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18979$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18980as_write_fail=0
18981cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
18982#! $SHELL
18983# Generated by $as_me.
671aa708 18984# Run this file to recreate the current configuration.
671aa708 18985# Compiler output produced by configure, useful for debugging
1c710c3c 18986# configure, is in config.log if it exists.
0b0dc272 18987
1c710c3c
DJ
18988debug=false
18989ac_cs_recheck=false
18990ac_cs_silent=false
1c710c3c 18991
5213506e
RW
18992SHELL=\${CONFIG_SHELL-$SHELL}
18993export SHELL
18994_ASEOF
18995cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18996## -------------------- ##
18997## M4sh Initialization. ##
18998## -------------------- ##
18999
19000# Be more Bourne compatible
19001DUALCASE=1; export DUALCASE # for MKS sh
19002if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
19003 emulate sh
19004 NULLCMD=:
5213506e 19005 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
19006 # is contrary to our usage. Disable this feature.
19007 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
19008 setopt NO_GLOB_SUBST
19009else
19010 case `(set -o) 2>/dev/null` in #(
19011 *posix*) :
19012 set -o posix ;; #(
19013 *) :
19014 ;;
19015esac
1c710c3c 19016fi
1c710c3c 19017
5213506e
RW
19018
19019as_nl='
19020'
19021export as_nl
19022# Printing a long string crashes Solaris 7 /usr/bin/printf.
19023as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19024as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19025as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19026# Prefer a ksh shell builtin over an external printf program on Solaris,
19027# but without wasting forks for bash or zsh.
19028if test -z "$BASH_VERSION$ZSH_VERSION" \
19029 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19030 as_echo='print -r --'
19031 as_echo_n='print -rn --'
19032elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19033 as_echo='printf %s\n'
19034 as_echo_n='printf %s'
19035else
19036 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19037 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19038 as_echo_n='/usr/ucb/echo -n'
19039 else
19040 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19041 as_echo_n_body='eval
19042 arg=$1;
19043 case $arg in #(
19044 *"$as_nl"*)
19045 expr "X$arg" : "X\\(.*\\)$as_nl";
19046 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19047 esac;
19048 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19049 '
19050 export as_echo_n_body
19051 as_echo_n='sh -c $as_echo_n_body as_echo'
19052 fi
19053 export as_echo_body
19054 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
19055fi
19056
5213506e
RW
19057# The user is always right.
19058if test "${PATH_SEPARATOR+set}" != set; then
19059 PATH_SEPARATOR=:
19060 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19061 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19062 PATH_SEPARATOR=';'
19063 }
19064fi
19065
19066
19067# IFS
19068# We need space, tab and new line, in precisely that order. Quoting is
19069# there to prevent editors from complaining about space-tab.
19070# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19071# splitting by setting IFS to empty value.)
19072IFS=" "" $as_nl"
19073
19074# Find who we are. Look in the path if we contain no directory separator.
22e05272 19075as_myself=
5213506e
RW
19076case $0 in #((
19077 *[\\/]* ) as_myself=$0 ;;
19078 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19079for as_dir in $PATH
19080do
19081 IFS=$as_save_IFS
19082 test -z "$as_dir" && as_dir=.
19083 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19084 done
19085IFS=$as_save_IFS
19086
19087 ;;
19088esac
19089# We did not find ourselves, most probably we were run as `sh COMMAND'
19090# in which case we are not to be found in the path.
19091if test "x$as_myself" = x; then
19092 as_myself=$0
19093fi
19094if test ! -f "$as_myself"; then
19095 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19096 exit 1
19097fi
1c710c3c 19098
5213506e
RW
19099# Unset variables that we do not need and which cause bugs (e.g. in
19100# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19101# suppresses any "Segmentation fault" message there. '((' could
19102# trigger a bug in pdksh 5.2.14.
19103for as_var in BASH_ENV ENV MAIL MAILPATH
19104do eval test x\${$as_var+set} = xset \
19105 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19106done
1c710c3c
DJ
19107PS1='$ '
19108PS2='> '
19109PS4='+ '
19110
19111# NLS nuisances.
5213506e
RW
19112LC_ALL=C
19113export LC_ALL
19114LANGUAGE=C
19115export LANGUAGE
19116
19117# CDPATH.
19118(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19119
19120
22e05272
JM
19121# as_fn_error STATUS ERROR [LINENO LOG_FD]
19122# ----------------------------------------
5213506e
RW
19123# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19124# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 19125# script with STATUS, using 1 if that was 0.
5213506e
RW
19126as_fn_error ()
19127{
22e05272
JM
19128 as_status=$1; test $as_status -eq 0 && as_status=1
19129 if test "$4"; then
19130 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19131 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1c710c3c 19132 fi
22e05272 19133 $as_echo "$as_me: error: $2" >&2
5213506e
RW
19134 as_fn_exit $as_status
19135} # as_fn_error
19136
19137
19138# as_fn_set_status STATUS
19139# -----------------------
19140# Set $? to STATUS, without forking.
19141as_fn_set_status ()
19142{
19143 return $1
19144} # as_fn_set_status
19145
19146# as_fn_exit STATUS
19147# -----------------
19148# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19149as_fn_exit ()
19150{
19151 set +e
19152 as_fn_set_status $1
19153 exit $1
19154} # as_fn_exit
19155
19156# as_fn_unset VAR
19157# ---------------
19158# Portably unset VAR.
19159as_fn_unset ()
19160{
19161 { eval $1=; unset $1;}
19162}
19163as_unset=as_fn_unset
19164# as_fn_append VAR VALUE
19165# ----------------------
19166# Append the text in VALUE to the end of the definition contained in VAR. Take
19167# advantage of any shell optimizations that allow amortized linear growth over
19168# repeated appends, instead of the typical quadratic growth present in naive
19169# implementations.
19170if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19171 eval 'as_fn_append ()
19172 {
19173 eval $1+=\$2
19174 }'
19175else
19176 as_fn_append ()
19177 {
19178 eval $1=\$$1\$2
19179 }
19180fi # as_fn_append
19181
19182# as_fn_arith ARG...
19183# ------------------
19184# Perform arithmetic evaluation on the ARGs, and store the result in the
19185# global $as_val. Take advantage of shells that can avoid forks. The arguments
19186# must be portable across $(()) and expr.
19187if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19188 eval 'as_fn_arith ()
19189 {
19190 as_val=$(( $* ))
19191 }'
19192else
19193 as_fn_arith ()
19194 {
19195 as_val=`expr "$@" || test $? -eq 1`
19196 }
19197fi # as_fn_arith
19198
1c710c3c 19199
5213506e
RW
19200if expr a : '\(a\)' >/dev/null 2>&1 &&
19201 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
19202 as_expr=expr
19203else
19204 as_expr=false
19205fi
19206
5213506e 19207if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
19208 as_basename=basename
19209else
19210 as_basename=false
19211fi
19212
5213506e
RW
19213if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19214 as_dirname=dirname
19215else
19216 as_dirname=false
19217fi
1c710c3c 19218
5213506e 19219as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
19220$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19221 X"$0" : 'X\(//\)$' \| \
5213506e
RW
19222 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19223$as_echo X/"$0" |
19224 sed '/^.*\/\([^/][^/]*\)\/*$/{
19225 s//\1/
19226 q
19227 }
19228 /^X\/\(\/\/\)$/{
19229 s//\1/
19230 q
19231 }
19232 /^X\/\(\/\).*/{
19233 s//\1/
19234 q
19235 }
19236 s/.*/./; q'`
2aeb72e9 19237
2aeb72e9
DD
19238# Avoid depending upon Character Ranges.
19239as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19240as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19241as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19242as_cr_digits='0123456789'
19243as_cr_alnum=$as_cr_Letters$as_cr_digits
19244
5213506e
RW
19245ECHO_C= ECHO_N= ECHO_T=
19246case `echo -n x` in #(((((
19247-n*)
19248 case `echo 'xy\c'` in
19249 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19250 xy) ECHO_C='\c';;
19251 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19252 ECHO_T=' ';;
19253 esac;;
19254*)
19255 ECHO_N='-n';;
1c710c3c
DJ
19256esac
19257
5213506e
RW
19258rm -f conf$$ conf$$.exe conf$$.file
19259if test -d conf$$.dir; then
19260 rm -f conf$$.dir/conf$$.file
1c710c3c 19261else
5213506e
RW
19262 rm -f conf$$.dir
19263 mkdir conf$$.dir 2>/dev/null
1c710c3c 19264fi
5213506e
RW
19265if (echo >conf$$.file) 2>/dev/null; then
19266 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 19267 as_ln_s='ln -s'
5213506e
RW
19268 # ... but there are two gotchas:
19269 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19270 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 19271 # In both cases, we have to default to `cp -pR'.
5213506e 19272 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 19273 as_ln_s='cp -pR'
5213506e
RW
19274 elif ln conf$$.file conf$$ 2>/dev/null; then
19275 as_ln_s=ln
19276 else
22e05272 19277 as_ln_s='cp -pR'
2aeb72e9 19278 fi
1c710c3c 19279else
22e05272 19280 as_ln_s='cp -pR'
1c710c3c 19281fi
5213506e
RW
19282rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19283rmdir conf$$.dir 2>/dev/null
19284
19285
19286# as_fn_mkdir_p
19287# -------------
19288# Create "$as_dir" as a directory, including parents if necessary.
19289as_fn_mkdir_p ()
19290{
19291
19292 case $as_dir in #(
19293 -*) as_dir=./$as_dir;;
19294 esac
19295 test -d "$as_dir" || eval $as_mkdir_p || {
19296 as_dirs=
19297 while :; do
19298 case $as_dir in #(
19299 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19300 *) as_qdir=$as_dir;;
19301 esac
19302 as_dirs="'$as_qdir' $as_dirs"
19303 as_dir=`$as_dirname -- "$as_dir" ||
19304$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19305 X"$as_dir" : 'X\(//\)[^/]' \| \
19306 X"$as_dir" : 'X\(//\)$' \| \
19307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19308$as_echo X"$as_dir" |
19309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19310 s//\1/
19311 q
19312 }
19313 /^X\(\/\/\)[^/].*/{
19314 s//\1/
19315 q
19316 }
19317 /^X\(\/\/\)$/{
19318 s//\1/
19319 q
19320 }
19321 /^X\(\/\).*/{
19322 s//\1/
19323 q
19324 }
19325 s/.*/./; q'`
19326 test -d "$as_dir" && break
19327 done
19328 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 19329 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 19330
1c710c3c 19331
5213506e 19332} # as_fn_mkdir_p
1c710c3c 19333if mkdir -p . 2>/dev/null; then
5213506e 19334 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
19335else
19336 test -d ./-p && rmdir ./-p
19337 as_mkdir_p=false
19338fi
19339
22e05272
JM
19340
19341# as_fn_executable_p FILE
19342# -----------------------
19343# Test if FILE is an executable regular file.
19344as_fn_executable_p ()
19345{
19346 test -f "$1" && test -x "$1"
19347} # as_fn_executable_p
19348as_test_x='test -x'
19349as_executable_p=as_fn_executable_p
1c710c3c
DJ
19350
19351# Sed expression to map a string onto a valid CPP name.
19352as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19353
19354# Sed expression to map a string onto a valid variable name.
19355as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19356
19357
1c710c3c 19358exec 6>&1
5213506e
RW
19359## ----------------------------------- ##
19360## Main body of $CONFIG_STATUS script. ##
19361## ----------------------------------- ##
19362_ASEOF
19363test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19364
19365cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19366# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 19367# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
19368# values after options handling.
19369ac_log="
1c710c3c 19370This file was extended by $as_me, which was
22e05272 19371generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
19372
19373 CONFIG_FILES = $CONFIG_FILES
19374 CONFIG_HEADERS = $CONFIG_HEADERS
19375 CONFIG_LINKS = $CONFIG_LINKS
19376 CONFIG_COMMANDS = $CONFIG_COMMANDS
19377 $ $0 $@
19378
5213506e
RW
19379on `(hostname || uname -n) 2>/dev/null | sed 1q`
19380"
19381
1c710c3c
DJ
19382_ACEOF
19383
5213506e
RW
19384case $ac_config_files in *"
19385"*) set x $ac_config_files; shift; ac_config_files=$*;;
19386esac
1c710c3c 19387
2aeb72e9 19388
2aeb72e9 19389
5213506e
RW
19390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19391# Files that config.status was made for.
19392config_files="$ac_config_files"
1c710c3c 19393
5213506e 19394_ACEOF
2aeb72e9 19395
5213506e 19396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 19397ac_cs_usage="\
5213506e
RW
19398\`$as_me' instantiates files and other configuration actions
19399from templates according to the current configuration. Unless the files
19400and actions are specified as TAGs, all are instantiated by default.
1c710c3c 19401
5213506e 19402Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
19403
19404 -h, --help print this help, then exit
5213506e 19405 -V, --version print version number and configuration settings, then exit
22e05272 19406 --config print configuration, then exit
5213506e
RW
19407 -q, --quiet, --silent
19408 do not print progress messages
1c710c3c
DJ
19409 -d, --debug don't remove temporary files
19410 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
19411 --file=FILE[:TEMPLATE]
19412 instantiate the configuration file FILE
1c710c3c
DJ
19413
19414Configuration files:
19415$config_files
19416
5213506e 19417Report bugs to the package provider."
2aeb72e9 19418
5213506e
RW
19419_ACEOF
19420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 19421ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1c710c3c
DJ
19422ac_cs_version="\\
19423config.status
22e05272
JM
19424configured by $0, generated by GNU Autoconf 2.69,
19425 with options \\"\$ac_cs_config\\"
1c710c3c 19426
22e05272 19427Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
19428This config.status script is free software; the Free Software Foundation
19429gives unlimited permission to copy, distribute and modify it."
5213506e
RW
19430
19431ac_pwd='$ac_pwd'
19432srcdir='$srcdir'
19433INSTALL='$INSTALL'
87264276 19434AWK='$AWK'
5213506e 19435test -n "\$AWK" || AWK=awk
1c710c3c
DJ
19436_ACEOF
19437
5213506e
RW
19438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19439# The default lists apply if the user does not specify any file.
1c710c3c
DJ
19440ac_need_defaults=:
19441while test $# != 0
a4b9e93e 19442do
1c710c3c 19443 case $1 in
22e05272 19444 --*=?*)
5213506e
RW
19445 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19446 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
19447 ac_shift=:
19448 ;;
22e05272
JM
19449 --*=)
19450 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19451 ac_optarg=
19452 ac_shift=:
19453 ;;
5213506e 19454 *)
1c710c3c
DJ
19455 ac_option=$1
19456 ac_optarg=$2
19457 ac_shift=shift
19458 ;;
1c710c3c
DJ
19459 esac
19460
19461 case $ac_option in
19462 # Handling of the options.
671aa708 19463 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 19464 ac_cs_recheck=: ;;
5213506e
RW
19465 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19466 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
19467 --config | --confi | --conf | --con | --co | --c )
19468 $as_echo "$ac_cs_config"; exit ;;
5213506e 19469 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
19470 debug=: ;;
19471 --file | --fil | --fi | --f )
19472 $ac_shift
5213506e
RW
19473 case $ac_optarg in
19474 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 19475 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
19476 esac
19477 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 19478 ac_need_defaults=false;;
5213506e
RW
19479 --he | --h | --help | --hel | -h )
19480 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
19481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19482 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19483 ac_cs_silent=: ;;
19484
19485 # This is an error.
22e05272 19486 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 19487Try \`$0 --help' for more information." ;;
1c710c3c 19488
5213506e
RW
19489 *) as_fn_append ac_config_targets " $1"
19490 ac_need_defaults=false ;;
1c710c3c 19491
0b0dc272 19492 esac
1c710c3c 19493 shift
0b0dc272
AM
19494done
19495
1c710c3c 19496ac_configure_extra_args=
0b0dc272 19497
1c710c3c
DJ
19498if $ac_cs_silent; then
19499 exec 6>/dev/null
19500 ac_configure_extra_args="$ac_configure_extra_args --silent"
19501fi
0b0dc272 19502
1c710c3c 19503_ACEOF
5213506e 19504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 19505if \$ac_cs_recheck; then
22e05272 19506 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
19507 shift
19508 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19509 CONFIG_SHELL='$SHELL'
19510 export CONFIG_SHELL
19511 exec "\$@"
1c710c3c
DJ
19512fi
19513
19514_ACEOF
5213506e
RW
19515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19516exec 5>>config.log
19517{
19518 echo
19519 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19520## Running $as_me. ##
19521_ASBOX
19522 $as_echo "$ac_log"
19523} >&5
1c710c3c 19524
5213506e
RW
19525_ACEOF
19526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
19527#
19528# INIT-COMMANDS
19529#
19530extrasub_build="$extrasub_build"
19531 extrasub_host="$extrasub_host"
19532 extrasub_target="$extrasub_target"
19533
5213506e 19534_ACEOF
1c710c3c 19535
5213506e 19536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 19537
5213506e 19538# Handling of arguments.
1c710c3c
DJ
19539for ac_config_target in $ac_config_targets
19540do
5213506e
RW
19541 case $ac_config_target in
19542 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19543
22e05272 19544 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
19545 esac
19546done
19547
5213506e 19548
1c710c3c
DJ
19549# If the user did not use the arguments to specify the items to instantiate,
19550# then the envvar interface is used. Set only those that are not.
19551# We use the long form for the default assignment because of an extremely
19552# bizarre bug on SunOS 4.1.3.
19553if $ac_need_defaults; then
19554 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19555fi
19556
19557# Have a temporary directory for convenience. Make it in the build tree
5213506e 19558# simply because there is no reason against having it here, and in addition,
1c710c3c 19559# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
19560# Hook for its removal unless debugging.
19561# Note that there is a small window in which the directory will not be cleaned:
19562# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
19563$debug ||
19564{
22e05272 19565 tmp= ac_tmp=
5213506e 19566 trap 'exit_status=$?
22e05272
JM
19567 : "${ac_tmp:=$tmp}"
19568 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
19569' 0
19570 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 19571}
1c710c3c
DJ
19572# Create a (secure) tmp directory for tmp files.
19573
19574{
5213506e 19575 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 19576 test -d "$tmp"
1c710c3c
DJ
19577} ||
19578{
5213506e
RW
19579 tmp=./conf$$-$RANDOM
19580 (umask 077 && mkdir "$tmp")
22e05272
JM
19581} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19582ac_tmp=$tmp
5213506e
RW
19583
19584# Set up the scripts for CONFIG_FILES section.
19585# No need to generate them if there are no CONFIG_FILES.
19586# This happens for instance with `./config.status config.h'.
19587if test -n "$CONFIG_FILES"; then
19588
19589if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19590 ac_cs_awk_getline=:
19591 ac_cs_awk_pipe_init=
19592 ac_cs_awk_read_file='
19593 while ((getline aline < (F[key])) > 0)
19594 print(aline)
19595 close(F[key])'
19596 ac_cs_awk_pipe_fini=
19597else
19598 ac_cs_awk_getline=false
19599 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19600 ac_cs_awk_read_file='
19601 print "|#_!!_#|"
19602 print "cat " F[key] " &&"
19603 '$ac_cs_awk_pipe_init
19604 # The final `:' finishes the AND list.
19605 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19606fi
19607ac_cr=`echo X | tr X '\015'`
19608# On cygwin, bash can eat \r inside `` if the user requested igncr.
19609# But we know of no other shell where ac_cr would be empty at this
19610# point, so we can use a bashism as a fallback.
19611if test "x$ac_cr" = x; then
19612 eval ac_cr=\$\'\\r\'
19613fi
19614ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19615if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 19616 ac_cs_awk_cr='\\r'
5213506e
RW
19617else
19618 ac_cs_awk_cr=$ac_cr
19619fi
19620
22e05272 19621echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
19622_ACEOF
19623
19624# Create commands to substitute file output variables.
1c710c3c 19625{
5213506e 19626 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22e05272 19627 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
5213506e
RW
19628 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19629 echo "_ACAWK" &&
19630 echo "_ACEOF"
19631} >conf$$files.sh &&
19632. ./conf$$files.sh ||
22e05272 19633 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e 19634rm -f conf$$files.sh
1c710c3c 19635
5213506e
RW
19636{
19637 echo "cat >conf$$subs.awk <<_ACEOF" &&
19638 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19639 echo "_ACEOF"
19640} >conf$$subs.sh ||
22e05272
JM
19641 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19642ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
19643ac_delim='%!_!# '
19644for ac_last_try in false false false false false :; do
19645 . ./conf$$subs.sh ||
22e05272 19646 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
19647
19648 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19649 if test $ac_delim_n = $ac_delim_num; then
19650 break
19651 elif $ac_last_try; then
22e05272 19652 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
19653 else
19654 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19655 fi
19656done
19657rm -f conf$$subs.sh
19658
19659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 19660cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 19661_ACEOF
5213506e
RW
19662sed -n '
19663h
19664s/^/S["/; s/!.*/"]=/
19665p
19666g
19667s/^[^!]*!//
19668:repl
19669t repl
19670s/'"$ac_delim"'$//
19671t delim
19672:nl
19673h
22e05272 19674s/\(.\{148\}\)..*/\1/
5213506e
RW
19675t more1
19676s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19677p
19678n
19679b repl
19680:more1
19681s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19682p
19683g
19684s/.\{148\}//
19685t nl
19686:delim
19687h
22e05272 19688s/\(.\{148\}\)..*/\1/
5213506e
RW
19689t more2
19690s/["\\]/\\&/g; s/^/"/; s/$/"/
19691p
19692b
19693:more2
19694s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19695p
19696g
19697s/.\{148\}//
19698t delim
19699' <conf$$subs.awk | sed '
19700/^[^""]/{
19701 N
19702 s/\n//
19703}
19704' >>$CONFIG_STATUS || ac_write_fail=1
19705rm -f conf$$subs.awk
19706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19707_ACAWK
22e05272 19708cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
19709 for (key in S) S_is_set[key] = 1
19710 FS = "\a"
19711 \$ac_cs_awk_pipe_init
19712}
19713{
19714 line = $ 0
19715 nfields = split(line, field, "@")
19716 substed = 0
19717 len = length(field[1])
19718 for (i = 2; i < nfields; i++) {
19719 key = field[i]
19720 keylen = length(key)
19721 if (S_is_set[key]) {
19722 value = S[key]
19723 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19724 len += length(value) + length(field[++i])
19725 substed = 1
19726 } else
19727 len += 1 + keylen
19728 }
19729 if (nfields == 3 && !substed) {
19730 key = field[2]
19731 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19732 \$ac_cs_awk_read_file
19733 next
19734 }
19735 }
19736 print line
19737}
19738\$ac_cs_awk_pipe_fini
19739_ACAWK
19740_ACEOF
19741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19742if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19743 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19744else
19745 cat
22e05272
JM
19746fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19747 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
19748_ACEOF
19749
22e05272
JM
19750# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19751# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
19752# trailing colons and then remove the whole line if VPATH becomes empty
19753# (actually we leave an empty line to preserve line numbers).
19754if test "x$srcdir" = x.; then
22e05272
JM
19755 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19756h
19757s///
19758s/^/:/
19759s/[ ]*$/:/
19760s/:\$(srcdir):/:/g
19761s/:\${srcdir}:/:/g
19762s/:@srcdir@:/:/g
19763s/^:*//
5213506e 19764s/:*$//
22e05272
JM
19765x
19766s/\(=[ ]*\).*/\1/
19767G
19768s/\n//
5213506e
RW
19769s/^[^=]*=[ ]*$//
19770}'
19771fi
2aeb72e9 19772
5213506e
RW
19773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19774fi # test -n "$CONFIG_FILES"
2aeb72e9 19775
1c710c3c 19776
5213506e
RW
19777eval set X " :F $CONFIG_FILES "
19778shift
19779for ac_tag
19780do
19781 case $ac_tag in
19782 :[FHLC]) ac_mode=$ac_tag; continue;;
19783 esac
19784 case $ac_mode$ac_tag in
19785 :[FHL]*:*);;
22e05272 19786 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
19787 :[FH]-) ac_tag=-:-;;
19788 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19789 esac
19790 ac_save_IFS=$IFS
19791 IFS=:
19792 set x $ac_tag
19793 IFS=$ac_save_IFS
19794 shift
19795 ac_file=$1
19796 shift
79c06341 19797
5213506e
RW
19798 case $ac_mode in
19799 :L) ac_source=$1;;
19800 :[FH])
19801 ac_file_inputs=
19802 for ac_f
19803 do
19804 case $ac_f in
22e05272 19805 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
19806 *) # Look for the file first in the build tree, then in the source tree
19807 # (if the path is not absolute). The absolute path cannot be DOS-style,
19808 # because $ac_f cannot contain `:'.
19809 test -f "$ac_f" ||
19810 case $ac_f in
19811 [\\/$]*) false;;
19812 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19813 esac ||
22e05272 19814 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
19815 esac
19816 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19817 as_fn_append ac_file_inputs " '$ac_f'"
19818 done
1c710c3c 19819
5213506e
RW
19820 # Let's still pretend it is `configure' which instantiates (i.e., don't
19821 # use $as_me), people would be surprised to read:
19822 # /* config.h. Generated by config.status. */
19823 configure_input='Generated from '`
19824 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19825 `' by configure.'
19826 if test x"$ac_file" != x-; then
19827 configure_input="$ac_file. $configure_input"
19828 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19829$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 19830 fi
5213506e
RW
19831 # Neutralize special characters interpreted by sed in replacement strings.
19832 case $configure_input in #(
19833 *\&* | *\|* | *\\* )
19834 ac_sed_conf_input=`$as_echo "$configure_input" |
19835 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19836 *) ac_sed_conf_input=$configure_input;;
19837 esac
11a67599 19838
5213506e 19839 case $ac_tag in
22e05272
JM
19840 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19841 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
19842 esac
19843 ;;
11a67599
ZW
19844 esac
19845
5213506e 19846 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
19847$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19848 X"$ac_file" : 'X\(//\)[^/]' \| \
19849 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
19850 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19851$as_echo X"$ac_file" |
19852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19853 s//\1/
19854 q
19855 }
19856 /^X\(\/\/\)[^/].*/{
19857 s//\1/
19858 q
19859 }
19860 /^X\(\/\/\)$/{
19861 s//\1/
19862 q
19863 }
19864 /^X\(\/\).*/{
19865 s//\1/
19866 q
19867 }
19868 s/.*/./; q'`
19869 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 19870 ac_builddir=.
0b0dc272 19871
5213506e
RW
19872case "$ac_dir" in
19873.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19874*)
19875 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19876 # A ".." for each directory in $ac_dir_suffix.
19877 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19878 case $ac_top_builddir_sub in
19879 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19880 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19881 esac ;;
19882esac
19883ac_abs_top_builddir=$ac_pwd
19884ac_abs_builddir=$ac_pwd$ac_dir_suffix
19885# for backward compatibility:
19886ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
19887
19888case $srcdir in
5213506e 19889 .) # We are building in place.
1c710c3c 19890 ac_srcdir=.
5213506e
RW
19891 ac_top_srcdir=$ac_top_builddir_sub
19892 ac_abs_top_srcdir=$ac_pwd ;;
19893 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 19894 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
19895 ac_top_srcdir=$srcdir
19896 ac_abs_top_srcdir=$srcdir ;;
19897 *) # Relative name.
19898 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19899 ac_top_srcdir=$ac_top_build_prefix$srcdir
19900 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 19901esac
5213506e 19902ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 19903
0b0dc272 19904
5213506e
RW
19905 case $ac_mode in
19906 :F)
19907 #
19908 # CONFIG_FILE
19909 #
1c710c3c
DJ
19910
19911 case $INSTALL in
19912 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 19913 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 19914 esac
5213506e 19915_ACEOF
11a67599 19916
5213506e
RW
19917cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19918# If the template does not know about datarootdir, expand it.
19919# FIXME: This hack should be removed a few years after 2.60.
19920ac_datarootdir_hack=; ac_datarootdir_seen=
19921ac_sed_dataroot='
19922/datarootdir/ {
19923 p
19924 q
19925}
19926/@datadir@/p
19927/@docdir@/p
19928/@infodir@/p
19929/@localedir@/p
19930/@mandir@/p'
19931case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19932*datarootdir*) ac_datarootdir_seen=yes;;
19933*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19935$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 19936_ACEOF
5213506e
RW
19937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19938 ac_datarootdir_hack='
19939 s&@datadir@&$datadir&g
19940 s&@docdir@&$docdir&g
19941 s&@infodir@&$infodir&g
19942 s&@localedir@&$localedir&g
19943 s&@mandir@&$mandir&g
19944 s&\\\${datarootdir}&$datarootdir&g' ;;
19945esac
19946_ACEOF
19947
19948# Neutralize VPATH when `$srcdir' = `.'.
19949# Shell code in configure.ac might set extrasub.
19950# FIXME: do we really want to maintain this feature?
19951cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19952ac_sed_extra="$ac_vpsub
1c710c3c
DJ
19953$extrasub
19954_ACEOF
5213506e 19955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
19956:t
19957/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
19958s|@configure_input@|$ac_sed_conf_input|;t t
19959s&@top_builddir@&$ac_top_builddir_sub&;t t
19960s&@top_build_prefix@&$ac_top_build_prefix&;t t
19961s&@srcdir@&$ac_srcdir&;t t
19962s&@abs_srcdir@&$ac_abs_srcdir&;t t
19963s&@top_srcdir@&$ac_top_srcdir&;t t
19964s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19965s&@builddir@&$ac_builddir&;t t
19966s&@abs_builddir@&$ac_abs_builddir&;t t
19967s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19968s&@INSTALL@&$ac_INSTALL&;t t
19969$ac_datarootdir_hack
19970"
19971eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19972if $ac_cs_awk_getline; then
22e05272 19973 $AWK -f "$ac_tmp/subs.awk"
5213506e 19974else
22e05272
JM
19975 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19976fi \
19977 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
19978
19979test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
19980 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19981 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19982 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 19983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19984which seems to be undefined. Please make sure it is defined" >&5
5213506e 19985$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19986which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 19987
22e05272 19988 rm -f "$ac_tmp/stdin"
5213506e 19989 case $ac_file in
22e05272
JM
19990 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19991 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 19992 esac \
22e05272 19993 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 19994 ;;
11a67599 19995
11a67599 19996
79c06341 19997
5213506e
RW
19998 esac
19999
3e54529c
RW
20000
20001 case $ac_file$ac_mode in
20002 "Makefile":F) sed "$extrasub_build" Makefile |
20003 sed "$extrasub_host" |
20004 sed "$extrasub_target" > mf$$
20005 mv -f mf$$ Makefile ;;
20006
20007 esac
5213506e
RW
20008done # for ac_tag
20009
20010
20011as_fn_exit 0
1c710c3c 20012_ACEOF
1c710c3c
DJ
20013ac_clean_files=$ac_clean_files_save
20014
5213506e 20015test $ac_write_fail = 0 ||
22e05272 20016 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 20017
1c710c3c
DJ
20018
20019# configure is writing to config.log, and then calls config.status.
20020# config.status does its own redirection, appending to config.log.
20021# Unfortunately, on DOS this fails, as config.log is still kept open
20022# by configure, so config.status won't be able to write to it; its
20023# output is simply discarded. So we exec the FD to /dev/null,
20024# effectively closing config.log, so it can be properly (re)opened and
20025# appended to by config.status. When coming back to configure, we
20026# need to make the FD available again.
20027if test "$no_create" != yes; then
20028 ac_cs_success=:
20029 ac_config_status_args=
20030 test "$silent" = yes &&
20031 ac_config_status_args="$ac_config_status_args --quiet"
20032 exec 5>/dev/null
20033 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20034 exec 5>>config.log
20035 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20036 # would make configure fail if this is the last instruction.
22e05272 20037 $ac_cs_success || as_fn_exit 1
5213506e
RW
20038fi
20039if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20041$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 20042fi
79c06341 20043