]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
inter-procedural value range propagation
[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
1ddd41fd 625PKG_CONFIG_PATH
5fee5ec3 626GDCFLAGS
e7a82751 627READELF
e4a9a572 628OTOOL
5213506e
RW
629OBJDUMP
630OBJCOPY
631WINDMC
632WINDRES
633STRIP
634RANLIB
635NM
636LIPO
637LD
3b5e8ee4 638DSYMUTIL
5213506e
RW
639DLLTOOL
640AS
641AR
642RUNTEST
643EXPECT
644MAKEINFO
645FLEX
646LEX
647M4
648BISON
649YACC
5213506e
RW
650WINDRES_FOR_BUILD
651WINDMC_FOR_BUILD
652RANLIB_FOR_BUILD
653NM_FOR_BUILD
654LD_FOR_BUILD
655LDFLAGS_FOR_BUILD
b4c522fa 656GDC_FOR_BUILD
632e2a07 657GOC_FOR_BUILD
5213506e 658GFORTRAN_FOR_BUILD
3b5e8ee4 659DSYMUTIL_FOR_BUILD
5213506e
RW
660DLLTOOL_FOR_BUILD
661CXX_FOR_BUILD
662CXXFLAGS_FOR_BUILD
84401ce5
RP
663CPPFLAGS_FOR_BUILD
664CPP_FOR_BUILD
5213506e
RW
665CFLAGS_FOR_BUILD
666CC_FOR_BUILD
667AS_FOR_BUILD
668AR_FOR_BUILD
aae29963 669target_configdirs
5213506e 670configdirs
5213506e 671build_configdirs
5213506e
RW
672INSTALL_GDB_TK
673GDB_TK
674CONFIGURE_GDB_TK
675build_tooldir
676tooldir
677GCC_SHLIB_SUBDIR
678RPATH_ENVVAR
ffedf511
RW
679target_configargs
680host_configargs
681build_configargs
e12c4094 682BUILD_CONFIG
6f57bdf6 683LDFLAGS_FOR_TARGET
5213506e
RW
684CXXFLAGS_FOR_TARGET
685CFLAGS_FOR_TARGET
686DEBUG_PREFIX_CFLAGS_FOR_TARGET
687SYSROOT_CFLAGS_FOR_TARGET
3c36aa6b 688get_gcc_base_ver
1c01ebf6 689extra_host_zlib_configure_flags
d7f09764 690extra_host_libiberty_configure_flags
fca38047 691stage1_languages
05048fc2 692host_libs_picflag
b6cb10af 693PICFLAG
cdfee50a 694host_shared
c1fecabe 695gcc_host_pie
b6cb10af 696host_pie
45b3824d
TS
697extra_linker_plugin_flags
698extra_linker_plugin_configure_flags
33ad93b9 699islinc
eae1a5d4 700isllibs
5213506e 701poststage1_ldflags
ed2eaa9f 702poststage1_libs
5213506e 703stage1_ldflags
0b21f5d3 704stage1_libs
0ff2d841 705extra_isl_gmp_configure_flags
5213506e
RW
706extra_mpc_mpfr_configure_flags
707extra_mpc_gmp_configure_flags
708extra_mpfr_configure_flags
709gmpinc
710gmplibs
4a5e71f2
L
711PGO_BUILD_LTO_CFLAGS
712PGO_BUILD_USE_CFLAGS
713PGO_BUILD_GEN_CFLAGS
7ffcf5d6 714HAVE_CXX11_FOR_BUILD
ffac9597 715HAVE_CXX11
5213506e 716do_compare
5fee5ec3 717GDC
5213506e
RW
718GNATMAKE
719GNATBIND
720ac_ct_CXX
721CXXFLAGS
722CXX
723OBJEXT
724EXEEXT
725ac_ct_CC
726CPPFLAGS
727LDFLAGS
728CFLAGS
729CC
730target_subdir
731host_subdir
732build_subdir
733build_libsubdir
87264276
PB
734AWK
735SED
5213506e
RW
736LN_S
737LN
738INSTALL_DATA
739INSTALL_SCRIPT
740INSTALL_PROGRAM
741target_os
742target_vendor
743target_cpu
744target
745host_os
746host_vendor
747host_cpu
748host
749target_noncanonical
750host_noncanonical
751build_noncanonical
752build_os
753build_vendor
754build_cpu
755build
756TOPLEVEL_CONFIGURE_ARGUMENTS
757target_alias
758host_alias
759build_alias
760LIBS
761ECHO_T
762ECHO_N
763ECHO_C
764DEFS
765mandir
766localedir
767libdir
768psdir
769pdfdir
770dvidir
771htmldir
772infodir
773docdir
774oldincludedir
775includedir
776localstatedir
777sharedstatedir
778sysconfdir
779datadir
780datarootdir
781libexecdir
782sbindir
783bindir
784program_transform_name
785prefix
786exec_prefix
787PACKAGE_URL
788PACKAGE_BUGREPORT
789PACKAGE_STRING
790PACKAGE_VERSION
791PACKAGE_TARNAME
792PACKAGE_NAME
793PATH_SEPARATOR
794SHELL'
795ac_subst_files='serialization_dependencies
796host_makefile_frag
797target_makefile_frag
798alphaieee_frag
799ospace_frag'
800ac_user_opts='
801enable_option_checking
802with_build_libsubdir
a05c2c75 803with_system_zlib
407a2c9a 804with_zstd
85c64bbe
BS
805enable_as_accelerator_for
806enable_offload_targets
fe5bfa67 807enable_offload_defaulted
5213506e 808enable_gold
21539e2e 809enable_ld
24552056 810enable_gprofng
78edb32f 811enable_compressed_debug_sections
c9884636 812enable_default_compressed_debug_sections_algorithm
a49d42e8 813enable_year2038
87e6d9dc
TB
814enable_libquadmath
815enable_libquadmath_support
5213506e 816enable_libada
1eee94d3 817enable_libgm2
5213506e 818enable_libssp
1873ec0c 819enable_libstdcxx
ff3ac0f4 820enable_bootstrap
4a5e71f2 821enable_pgo_build
5213506e
RW
822with_mpc
823with_mpc_include
824with_mpc_lib
5213506e
RW
825with_mpfr
826with_mpfr_include
827with_mpfr_lib
5213506e
RW
828with_gmp
829with_gmp_include
830with_gmp_lib
5213506e 831with_stage1_libs
aac9103b 832with_static_standard_libraries
0b21f5d3 833with_stage1_ldflags
5213506e 834with_boot_libs
ed2eaa9f 835with_boot_ldflags
33ad93b9
RG
836with_isl
837with_isl_include
838with_isl_lib
839enable_isl_version_check
d7f09764 840enable_lto
45b3824d
TS
841enable_linker_plugin_configure_flags
842enable_linker_plugin_flags
b6cb10af 843enable_host_pie
cdfee50a 844enable_host_shared
5213506e 845enable_stage1_languages
43c40f3e 846enable_objc_gc
114bf3f1
MK
847with_target_bdw_gc
848with_target_bdw_gc_include
849with_target_bdw_gc_lib
3c36aa6b 850with_gcc_major_version_only
5213506e
RW
851with_build_sysroot
852with_debug_prefix_map
5646b7b9 853with_build_config
beeda1d9 854enable_vtable_verify
5213506e
RW
855enable_serial_configure
856with_build_time_tools
857enable_maintainer_mode
858enable_stage1_checking
859enable_werror
5213506e
RW
860'
861 ac_precious_vars='build_alias
862host_alias
863target_alias
864CC
865CFLAGS
866LDFLAGS
867LIBS
868CPPFLAGS
869CXX
870CXXFLAGS
871CCC
ffedf511
RW
872build_configargs
873host_configargs
874target_configargs
5213506e
RW
875AR
876AS
877DLLTOOL
3b5e8ee4 878DSYMUTIL
5213506e
RW
879LD
880LIPO
881NM
882RANLIB
883STRIP
884WINDRES
885WINDMC
886OBJCOPY
887OBJDUMP
e4a9a572 888OTOOL
e7a82751 889READELF
5213506e
RW
890CC_FOR_TARGET
891CXX_FOR_TARGET
892GCC_FOR_TARGET
5213506e 893GFORTRAN_FOR_TARGET
632e2a07 894GOC_FOR_TARGET
b4c522fa 895GDC_FOR_TARGET
1eee94d3 896GM2_FOR_TARGET
5213506e
RW
897AR_FOR_TARGET
898AS_FOR_TARGET
899DLLTOOL_FOR_TARGET
3b5e8ee4 900DSYMUTIL_FOR_TARGET
5213506e
RW
901LD_FOR_TARGET
902LIPO_FOR_TARGET
903NM_FOR_TARGET
9bccfdf5 904OBJCOPY_FOR_TARGET
5213506e 905OBJDUMP_FOR_TARGET
e4a9a572 906OTOOL_FOR_TARGET
5213506e 907RANLIB_FOR_TARGET
e7a82751 908READELF_FOR_TARGET
5213506e
RW
909STRIP_FOR_TARGET
910WINDRES_FOR_TARGET
911WINDMC_FOR_TARGET'
912
671aa708
NN
913
914# Initialize some variables set by options.
1c710c3c
DJ
915ac_init_help=
916ac_init_version=false
5213506e
RW
917ac_unrecognized_opts=
918ac_unrecognized_sep=
671aa708
NN
919# The variables have the same names as the options, with
920# dashes changed to underlines.
1c710c3c 921cache_file=/dev/null
671aa708 922exec_prefix=NONE
671aa708 923no_create=
671aa708
NN
924no_recursion=
925prefix=NONE
926program_prefix=NONE
927program_suffix=NONE
928program_transform_name=s,x,x,
929silent=
930site=
931srcdir=
671aa708
NN
932verbose=
933x_includes=NONE
934x_libraries=NONE
1c710c3c
DJ
935
936# Installation directory options.
937# These are left unexpanded so users can "make install exec_prefix=/foo"
938# and all the variables that are supposed to be based on exec_prefix
939# by default will actually change.
940# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 941# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
942bindir='${exec_prefix}/bin'
943sbindir='${exec_prefix}/sbin'
944libexecdir='${exec_prefix}/libexec'
5213506e
RW
945datarootdir='${prefix}/share'
946datadir='${datarootdir}'
671aa708
NN
947sysconfdir='${prefix}/etc'
948sharedstatedir='${prefix}/com'
949localstatedir='${prefix}/var'
671aa708
NN
950includedir='${prefix}/include'
951oldincludedir='/usr/include'
5213506e
RW
952docdir='${datarootdir}/doc/${PACKAGE}'
953infodir='${datarootdir}/info'
954htmldir='${docdir}'
955dvidir='${docdir}'
956pdfdir='${docdir}'
957psdir='${docdir}'
958libdir='${exec_prefix}/lib'
959localedir='${datarootdir}/locale'
960mandir='${datarootdir}/man'
79c06341 961
671aa708 962ac_prev=
5213506e 963ac_dashdash=
671aa708
NN
964for ac_option
965do
671aa708
NN
966 # If the previous option needs an argument, assign it.
967 if test -n "$ac_prev"; then
5213506e 968 eval $ac_prev=\$ac_option
671aa708
NN
969 ac_prev=
970 continue
971 fi
79c06341 972
5213506e 973 case $ac_option in
22e05272
JM
974 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 *=) ac_optarg= ;;
976 *) ac_optarg=yes ;;
5213506e 977 esac
671aa708
NN
978
979 # Accept the important Cygnus configure options, so we can diagnose typos.
980
5213506e
RW
981 case $ac_dashdash$ac_option in
982 --)
983 ac_dashdash=yes ;;
671aa708
NN
984
985 -bindir | --bindir | --bindi | --bind | --bin | --bi)
986 ac_prev=bindir ;;
987 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 988 bindir=$ac_optarg ;;
671aa708
NN
989
990 -build | --build | --buil | --bui | --bu)
1c710c3c 991 ac_prev=build_alias ;;
671aa708 992 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 993 build_alias=$ac_optarg ;;
671aa708
NN
994
995 -cache-file | --cache-file | --cache-fil | --cache-fi \
996 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
997 ac_prev=cache_file ;;
998 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
999 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
1000 cache_file=$ac_optarg ;;
1001
1002 --config-cache | -C)
1003 cache_file=config.cache ;;
671aa708 1004
5213506e 1005 -datadir | --datadir | --datadi | --datad)
671aa708 1006 ac_prev=datadir ;;
5213506e 1007 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 1008 datadir=$ac_optarg ;;
671aa708 1009
5213506e
RW
1010 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1011 | --dataroo | --dataro | --datar)
1012 ac_prev=datarootdir ;;
1013 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1014 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1015 datarootdir=$ac_optarg ;;
1016
671aa708 1017 -disable-* | --disable-*)
5213506e 1018 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 1019 # Reject names that are not valid shell variable names.
5213506e 1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1021 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1025 *"
1026"enable_$ac_useropt"
1027"*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=no ;;
1032
1033 -docdir | --docdir | --docdi | --doc | --do)
1034 ac_prev=docdir ;;
1035 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036 docdir=$ac_optarg ;;
1037
1038 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039 ac_prev=dvidir ;;
1040 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041 dvidir=$ac_optarg ;;
671aa708
NN
1042
1043 -enable-* | --enable-*)
5213506e 1044 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 1045 # Reject names that are not valid shell variable names.
5213506e 1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1047 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052"enable_$ac_useropt"
1053"*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
2aeb72e9 1056 esac
5213506e 1057 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1058
1059 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1060 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1061 | --exec | --exe | --ex)
1062 ac_prev=exec_prefix ;;
1063 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1064 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1065 | --exec=* | --exe=* | --ex=*)
1c710c3c 1066 exec_prefix=$ac_optarg ;;
671aa708
NN
1067
1068 -gas | --gas | --ga | --g)
1069 # Obsolete; use --with-gas.
1070 with_gas=yes ;;
1071
1c710c3c
DJ
1072 -help | --help | --hel | --he | -h)
1073 ac_init_help=long ;;
1074 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1075 ac_init_help=recursive ;;
1076 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1077 ac_init_help=short ;;
671aa708
NN
1078
1079 -host | --host | --hos | --ho)
1c710c3c 1080 ac_prev=host_alias ;;
671aa708 1081 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1082 host_alias=$ac_optarg ;;
671aa708 1083
5213506e
RW
1084 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1085 ac_prev=htmldir ;;
1086 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1087 | --ht=*)
1088 htmldir=$ac_optarg ;;
1089
671aa708
NN
1090 -includedir | --includedir | --includedi | --included | --include \
1091 | --includ | --inclu | --incl | --inc)
1092 ac_prev=includedir ;;
1093 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1094 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1095 includedir=$ac_optarg ;;
671aa708
NN
1096
1097 -infodir | --infodir | --infodi | --infod | --info | --inf)
1098 ac_prev=infodir ;;
1099 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1100 infodir=$ac_optarg ;;
671aa708
NN
1101
1102 -libdir | --libdir | --libdi | --libd)
1103 ac_prev=libdir ;;
1104 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1105 libdir=$ac_optarg ;;
671aa708
NN
1106
1107 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1108 | --libexe | --libex | --libe)
1109 ac_prev=libexecdir ;;
1110 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1111 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1112 libexecdir=$ac_optarg ;;
671aa708 1113
5213506e
RW
1114 -localedir | --localedir | --localedi | --localed | --locale)
1115 ac_prev=localedir ;;
1116 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1117 localedir=$ac_optarg ;;
1118
671aa708 1119 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1120 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1121 ac_prev=localstatedir ;;
1122 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1123 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1124 localstatedir=$ac_optarg ;;
671aa708
NN
1125
1126 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1127 ac_prev=mandir ;;
1128 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1129 mandir=$ac_optarg ;;
671aa708
NN
1130
1131 -nfp | --nfp | --nf)
1132 # Obsolete; use --without-fp.
1133 with_fp=no ;;
1134
1135 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1136 | --no-cr | --no-c | -n)
671aa708
NN
1137 no_create=yes ;;
1138
1139 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1140 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1141 no_recursion=yes ;;
1142
1143 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1144 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1145 | --oldin | --oldi | --old | --ol | --o)
1146 ac_prev=oldincludedir ;;
1147 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1148 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1149 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1150 oldincludedir=$ac_optarg ;;
671aa708
NN
1151
1152 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1153 ac_prev=prefix ;;
1154 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1155 prefix=$ac_optarg ;;
671aa708
NN
1156
1157 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1158 | --program-pre | --program-pr | --program-p)
1159 ac_prev=program_prefix ;;
1160 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1161 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1162 program_prefix=$ac_optarg ;;
671aa708
NN
1163
1164 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1165 | --program-suf | --program-su | --program-s)
1166 ac_prev=program_suffix ;;
1167 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1168 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1169 program_suffix=$ac_optarg ;;
671aa708
NN
1170
1171 -program-transform-name | --program-transform-name \
1172 | --program-transform-nam | --program-transform-na \
1173 | --program-transform-n | --program-transform- \
1174 | --program-transform | --program-transfor \
1175 | --program-transfo | --program-transf \
1176 | --program-trans | --program-tran \
1177 | --progr-tra | --program-tr | --program-t)
1178 ac_prev=program_transform_name ;;
1179 -program-transform-name=* | --program-transform-name=* \
1180 | --program-transform-nam=* | --program-transform-na=* \
1181 | --program-transform-n=* | --program-transform-=* \
1182 | --program-transform=* | --program-transfor=* \
1183 | --program-transfo=* | --program-transf=* \
1184 | --program-trans=* | --program-tran=* \
1185 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1186 program_transform_name=$ac_optarg ;;
671aa708 1187
5213506e
RW
1188 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1189 ac_prev=pdfdir ;;
1190 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1191 pdfdir=$ac_optarg ;;
1192
1193 -psdir | --psdir | --psdi | --psd | --ps)
1194 ac_prev=psdir ;;
1195 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1196 psdir=$ac_optarg ;;
1197
671aa708
NN
1198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1199 | -silent | --silent | --silen | --sile | --sil)
1200 silent=yes ;;
1201
1202 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1203 ac_prev=sbindir ;;
1204 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1205 | --sbi=* | --sb=*)
1c710c3c 1206 sbindir=$ac_optarg ;;
671aa708
NN
1207
1208 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1209 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1210 | --sharedst | --shareds | --shared | --share | --shar \
1211 | --sha | --sh)
1212 ac_prev=sharedstatedir ;;
1213 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1214 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1215 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1216 | --sha=* | --sh=*)
1c710c3c 1217 sharedstatedir=$ac_optarg ;;
671aa708
NN
1218
1219 -site | --site | --sit)
1220 ac_prev=site ;;
1221 -site=* | --site=* | --sit=*)
1c710c3c 1222 site=$ac_optarg ;;
671aa708
NN
1223
1224 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1225 ac_prev=srcdir ;;
1226 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1227 srcdir=$ac_optarg ;;
671aa708
NN
1228
1229 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1230 | --syscon | --sysco | --sysc | --sys | --sy)
1231 ac_prev=sysconfdir ;;
1232 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1233 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1234 sysconfdir=$ac_optarg ;;
671aa708
NN
1235
1236 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1237 ac_prev=target_alias ;;
671aa708 1238 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1239 target_alias=$ac_optarg ;;
671aa708
NN
1240
1241 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1242 verbose=yes ;;
1243
1c710c3c
DJ
1244 -version | --version | --versio | --versi | --vers | -V)
1245 ac_init_version=: ;;
671aa708
NN
1246
1247 -with-* | --with-*)
5213506e 1248 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1249 # Reject names that are not valid shell variable names.
5213506e 1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1251 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1255 *"
1256"with_$ac_useropt"
1257"*) ;;
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
2aeb72e9 1260 esac
5213506e 1261 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1262
1263 -without-* | --without-*)
5213506e 1264 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1265 # Reject names that are not valid shell variable names.
5213506e 1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1267 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1271 *"
1272"with_$ac_useropt"
1273"*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=no ;;
671aa708
NN
1278
1279 --x)
1280 # Obsolete; use --with-x.
1281 with_x=yes ;;
1282
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1288 x_includes=$ac_optarg ;;
671aa708
NN
1289
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1295 x_libraries=$ac_optarg ;;
671aa708 1296
22e05272
JM
1297 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1298Try \`$0 --help' for more information"
671aa708
NN
1299 ;;
1300
1c710c3c
DJ
1301 *=*)
1302 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303 # Reject names that are not valid shell variable names.
5213506e
RW
1304 case $ac_envvar in #(
1305 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1306 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1307 esac
1308 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1309 export $ac_envvar ;;
1310
671aa708 1311 *)
1c710c3c 1312 # FIXME: should be removed in autoconf 3.0.
5213506e 1313 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1315 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1316 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
671aa708
NN
1317 ;;
1318
1319 esac
1320done
1321
1322if test -n "$ac_prev"; then
1c710c3c 1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1324 as_fn_error $? "missing argument to $ac_option"
af71363e 1325fi
af71363e 1326
5213506e
RW
1327if test -n "$ac_unrecognized_opts"; then
1328 case $enable_option_checking in
1329 no) ;;
22e05272 1330 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1331 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1332 esac
5213506e 1333fi
2aeb72e9 1334
5213506e
RW
1335# Check all directory arguments for consistency.
1336for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir
2aeb72e9 1340do
5213506e
RW
1341 eval ac_val=\$$ac_var
1342 # Remove trailing slashes.
1343 case $ac_val in
1344 */ )
1345 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346 eval $ac_var=\$ac_val;;
1347 esac
1348 # Be sure to have absolute directory names.
2aeb72e9 1349 case $ac_val in
5213506e
RW
1350 [\\/$]* | ?:[\\/]* ) continue;;
1351 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1352 esac
22e05272 1353 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1354done
1355
1c710c3c
DJ
1356# There might be people who depend on the old broken behavior: `$host'
1357# used to hold the argument of --host etc.
1358# FIXME: To remove some day.
1359build=$build_alias
1360host=$host_alias
1361target=$target_alias
0b0dc272 1362
1c710c3c
DJ
1363# FIXME: To remove some day.
1364if test "x$host_alias" != x; then
1365 if test "x$build_alias" = x; then
1366 cross_compiling=maybe
1c710c3c
DJ
1367 elif test "x$build_alias" != "x$host_alias"; then
1368 cross_compiling=yes
1369 fi
1370fi
1371
1372ac_tool_prefix=
1373test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374
1375test "$silent" = yes && exec 6>/dev/null
671aa708 1376
671aa708 1377
5213506e
RW
1378ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379ac_ls_di=`ls -di .` &&
1380ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1381 as_fn_error $? "working directory cannot be determined"
5213506e 1382test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1383 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1384
1385
671aa708
NN
1386# Find the source files, if location was not specified.
1387if test -z "$srcdir"; then
1388 ac_srcdir_defaulted=yes
5213506e
RW
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir=`$as_dirname -- "$as_myself" ||
1391$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$as_myself" : 'X\(//\)[^/]' \| \
1393 X"$as_myself" : 'X\(//\)$' \| \
1394 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395$as_echo X"$as_myself" |
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\/\)[^/].*/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\/\)$/{
1405 s//\1/
1406 q
1407 }
1408 /^X\(\/\).*/{
1409 s//\1/
1410 q
1411 }
1412 s/.*/./; q'`
671aa708 1413 srcdir=$ac_confdir
5213506e 1414 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1415 srcdir=..
1416 fi
1417else
1418 ac_srcdir_defaulted=no
1419fi
5213506e
RW
1420if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1422 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1423fi
1424ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425ac_abs_confdir=`(
22e05272 1426 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1427 pwd)`
1428# When building in place, set srcdir=.
1429if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 srcdir=.
1431fi
1432# Remove unnecessary trailing slashes from srcdir.
1433# Double slashes in file names in object file debugging info
1434# mess up M-x gdb in Emacs.
1435case $srcdir in
1436*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437esac
87841584
AM
1438case $srcdir in
1439 *" "*)
22e05272 1440 as_fn_error $? "path to source, $srcdir, contains spaces"
87841584
AM
1441 ;;
1442esac
ac9e6043
RW
1443ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1444
5213506e
RW
1445for ac_var in $ac_precious_vars; do
1446 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_${ac_var}_value=\$${ac_var}
1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450done
1c710c3c
DJ
1451
1452#
1453# Report the --help message.
1454#
1455if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1458 cat <<_ACEOF
1459\`configure' configures this package to adapt to many kinds of systems.
1460
1461Usage: $0 [OPTION]... [VAR=VALUE]...
1462
1463To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464VAR=VALUE. See below for descriptions of some of the useful variables.
1465
1466Defaults for the options are specified in brackets.
1467
1468Configuration:
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
22e05272 1473 -q, --quiet, --silent do not print \`checking ...' messages
1c710c3c
DJ
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478
1c710c3c
DJ
1479Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1481 [$ac_default_prefix]
1c710c3c 1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1483 [PREFIX]
1c710c3c
DJ
1484
1485By default, \`make install' will install all the files in
1486\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488for instance \`--prefix=\$HOME'.
1489
1490For better control, use the options below.
1491
1492Fine tuning of the installation directories:
5213506e
RW
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1512_ACEOF
1513
1514 cat <<\_ACEOF
1515
1516Program names:
1517 --program-prefix=PREFIX prepend PREFIX to installed program names
1518 --program-suffix=SUFFIX append SUFFIX to installed program names
1519 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1520
1521System types:
1522 --build=BUILD configure for building on BUILD [guessed]
1523 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1524 --target=TARGET configure for building compilers for TARGET [HOST]
1525_ACEOF
1526fi
1527
1528if test -n "$ac_init_help"; then
1529
1530 cat <<\_ACEOF
1531
1532Optional Features:
5213506e 1533 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1536 --enable-as-accelerator-for=ARG
1537 build as offload target compiler. Specify offload
1538 host triple by ARG
1539 --enable-offload-targets=LIST
1540 enable offloading to devices from comma-separated
1541 LIST of TARGET[=DIR]. Use optional path to find
1542 offload target compiler during the build
fe5bfa67
TB
1543 --enable-offload-defaulted
1544 If enabled, configured but not installed offload compilers and
1545 libgomp plugins are silently ignored. Useful for distribution
1546 compilers where those are in separate optional packages.
1547
21539e2e 1548 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1549 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
24552056 1550 --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
324402a0 1551 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1552 Enable compressed debug sections for gas, gold or ld
1553 by default
c9884636
ML
1554 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1555 Default compression algorithm for
1556 --enable-compressed-debug-sections.
a49d42e8 1557 --enable-year2038 enable support for timestamps past the year 2038
87e6d9dc
TB
1558 --disable-libquadmath do not build libquadmath directory
1559 --disable-libquadmath-support
1560 disable libquadmath support for Fortran
30b74385 1561 --enable-libada build libada directory
1eee94d3 1562 --enable-libgm2 build libgm2 directory
30b74385 1563 --enable-libssp build libssp directory
1873ec0c 1564 --disable-libstdcxx do not build libstdc++-v3 directory
ff3ac0f4 1565 --enable-bootstrap enable bootstrapping [yes if native build]
4a5e71f2
L
1566 --enable-pgo-build[=lto]
1567 enable the PGO build
33ad93b9 1568 --disable-isl-version-check
560d18d3 1569 disable check for isl version
d7f09764 1570 --enable-lto enable link time optimization support
45b3824d
TS
1571 --enable-linker-plugin-configure-flags=FLAGS
1572 additional flags for configuring linker plugins
1573 [none]
1574 --enable-linker-plugin-flags=FLAGS
1575 additional flags for configuring and building linker
1576 plugins [none]
b6cb10af 1577 --enable-host-pie build position independent host executables
cdfee50a 1578 --enable-host-shared build host code as shared libraries
33e39b66
AS
1579 --enable-stage1-languages[=all]
1580 choose additional languages to build during stage1.
1581 Mostly useful for compiler development
43c40f3e
RO
1582 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1583 Objective-C runtime
318a4e6d 1584 --enable-vtable-verify Enable vtable verification feature
30b74385 1585 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1586 force sequential configuration of sub-packages for
1587 the host, target or build machine, or all
1588 sub-packages
1589 --enable-maintainer-mode
1590 enable make rules and dependencies not useful (and
1591 sometimes confusing) to the casual installer
1592 --enable-stage1-checking[=all]
1593 choose additional checking for stage1 of the
1594 compiler
1c710c3c
DJ
1595 --enable-werror enable -Werror in bootstrap stage2 and later
1596
1597Optional Packages:
1598 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1599 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1600 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1601 --with-system-zlib use installed libz
407a2c9a
FS
1602 --with-zstd Support zstd compressed debug sections
1603 (default=auto)
33e39b66
AS
1604 --with-mpc=PATH specify prefix directory for installed MPC package.
1605 Equivalent to --with-mpc-include=PATH/include plus
1606 --with-mpc-lib=PATH/lib
1607 --with-mpc-include=PATH specify directory for installed MPC include files
1608 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385 1609 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1610 Equivalent to --with-mpfr-include=PATH/include plus
1611 --with-mpfr-lib=PATH/lib
1c710c3c 1612 --with-mpfr-include=PATH
30b74385
RW
1613 specify directory for installed MPFR include files
1614 --with-mpfr-lib=PATH specify directory for the installed MPFR library
33e39b66
AS
1615 --with-gmp=PATH specify prefix directory for the installed GMP
1616 package. Equivalent to
1617 --with-gmp-include=PATH/include plus
1618 --with-gmp-lib=PATH/lib
30b74385
RW
1619 --with-gmp-include=PATH specify directory for installed GMP include files
1620 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1621 --with-stage1-libs=LIBS libraries for stage1
aac9103b
TT
1622 --with-static-standard-libraries
1623 use -static-libstdc++ and -static-libgcc
1624 (default=auto)
33e39b66
AS
1625 --with-stage1-ldflags=FLAGS
1626 linker flags for stage1
33e39b66
AS
1627 --with-boot-libs=LIBS libraries for stage2 and later
1628 --with-boot-ldflags=FLAGS
1629 linker flags for stage2 and later
e357a5e0 1630 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1631 package. Equivalent to
33ad93b9
RG
1632 --with-isl-include=PATH/include plus
1633 --with-isl-lib=PATH/lib
560d18d3
AK
1634 --with-isl-include=PATH Specify directory for installed isl include files
1635 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1636 --with-target-bdw-gc=PATHLIST
1637 specify prefix directory for installed bdw-gc
1638 package. Equivalent to
1639 --with-target-bdw-gc-include=PATH/include plus
1640 --with-target-bdw-gc-lib=PATH/lib
1641 --with-target-bdw-gc-include=PATHLIST
1642 specify directories for installed bdw-gc include
1643 files
1644 --with-target-bdw-gc-lib=PATHLIST
1645 specify directories for installed bdw-gc library
3c36aa6b
JJ
1646 --with-gcc-major-version-only
1647 use only GCC major number in filesystem paths
30b74385 1648 --with-build-sysroot=SYSROOT
1c710c3c 1649 use sysroot as the system root during the build
c8aea42c 1650 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1651 map A to B, C to D ... in debug information
1652 --with-build-config='NAME NAME2...'
1653 use config/NAME.mk build configuration
30b74385 1654 --with-build-time-tools=PATH
1c710c3c 1655 use given path to find target tools during the build
1c710c3c
DJ
1656
1657Some influential environment variables:
1658 CC C compiler command
1659 CFLAGS C compiler flags
1660 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1661 nonstandard directory <lib dir>
5213506e 1662 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1663 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1664 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1665 CXX C++ compiler command
1666 CXXFLAGS C++ compiler flags
ffedf511
RW
1667 build_configargs
1668 additional configure arguments for build directories
1669 host_configargs
1670 additional configure arguments for host directories
1671 target_configargs
1672 additional configure arguments for target directories
278a7a38
AO
1673 AR AR for the host
1674 AS AS for the host
1675 DLLTOOL DLLTOOL for the host
3b5e8ee4 1676 DSYMUTIL DSYMUTIL for the host
278a7a38
AO
1677 LD LD for the host
1678 LIPO LIPO for the host
1679 NM NM for the host
1680 RANLIB RANLIB for the host
1681 STRIP STRIP for the host
1682 WINDRES WINDRES for the host
901119ae 1683 WINDMC WINDMC for the host
278a7a38
AO
1684 OBJCOPY OBJCOPY for the host
1685 OBJDUMP OBJDUMP for the host
e4a9a572 1686 OTOOL OTOOL for the host
e7a82751 1687 READELF READELF for the host
278a7a38
AO
1688 CC_FOR_TARGET
1689 CC for the target
1690 CXX_FOR_TARGET
1691 CXX for the target
1692 GCC_FOR_TARGET
1693 GCC for the target
278a7a38
AO
1694 GFORTRAN_FOR_TARGET
1695 GFORTRAN for the target
632e2a07
ILT
1696 GOC_FOR_TARGET
1697 GOC for the target
b4c522fa
IB
1698 GDC_FOR_TARGET
1699 GDC for the target
1eee94d3
GM
1700 GM2_FOR_TARGET
1701 GM2 for the target
278a7a38
AO
1702 AR_FOR_TARGET
1703 AR for the target
1704 AS_FOR_TARGET
1705 AS for the target
1706 DLLTOOL_FOR_TARGET
1707 DLLTOOL for the target
3b5e8ee4
IS
1708 DSYMUTIL_FOR_TARGET
1709 DSYMUTIL for the target
278a7a38
AO
1710 LD_FOR_TARGET
1711 LD for the target
1712 LIPO_FOR_TARGET
1713 LIPO for the target
1714 NM_FOR_TARGET
1715 NM for the target
9bccfdf5
AP
1716 OBJCOPY_FOR_TARGET
1717 OBJCOPY for the target
278a7a38
AO
1718 OBJDUMP_FOR_TARGET
1719 OBJDUMP for the target
e4a9a572
IS
1720 OTOOL_FOR_TARGET
1721 OTOOL for the target
278a7a38
AO
1722 RANLIB_FOR_TARGET
1723 RANLIB for the target
e7a82751
RM
1724 READELF_FOR_TARGET
1725 READELF for the target
278a7a38
AO
1726 STRIP_FOR_TARGET
1727 STRIP for the target
1728 WINDRES_FOR_TARGET
1729 WINDRES for the target
901119ae
KT
1730 WINDMC_FOR_TARGET
1731 WINDMC for the target
1c710c3c
DJ
1732
1733Use these variables to override the choices made by `configure' or to help
1734it to find libraries and programs with nonstandard names/locations.
1735
5213506e 1736Report bugs to the package provider.
1c710c3c 1737_ACEOF
5213506e 1738ac_status=$?
1c710c3c
DJ
1739fi
1740
1741if test "$ac_init_help" = "recursive"; then
1742 # If there are subdirs, report their specific --help.
1c710c3c 1743 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1744 test -d "$ac_dir" ||
1745 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1746 continue
1c710c3c
DJ
1747 ac_builddir=.
1748
5213506e
RW
1749case "$ac_dir" in
1750.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1751*)
1752 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1753 # A ".." for each directory in $ac_dir_suffix.
1754 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1755 case $ac_top_builddir_sub in
1756 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1757 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1758 esac ;;
1759esac
1760ac_abs_top_builddir=$ac_pwd
1761ac_abs_builddir=$ac_pwd$ac_dir_suffix
1762# for backward compatibility:
1763ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1764
1765case $srcdir in
5213506e 1766 .) # We are building in place.
1c710c3c 1767 ac_srcdir=.
5213506e
RW
1768 ac_top_srcdir=$ac_top_builddir_sub
1769 ac_abs_top_srcdir=$ac_pwd ;;
1770 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1771 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1772 ac_top_srcdir=$srcdir
1773 ac_abs_top_srcdir=$srcdir ;;
1774 *) # Relative name.
1775 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1776 ac_top_srcdir=$ac_top_build_prefix$srcdir
1777 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1778esac
5213506e
RW
1779ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1780
1781 cd "$ac_dir" || { ac_status=$?; continue; }
1782 # Check for guested configure.
1783 if test -f "$ac_srcdir/configure.gnu"; then
1784 echo &&
1785 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1786 elif test -f "$ac_srcdir/configure"; then
1787 echo &&
1788 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1789 else
5213506e
RW
1790 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1791 fi || ac_status=$?
1792 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1793 done
1794fi
1795
5213506e 1796test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1797if $ac_init_version; then
1798 cat <<\_ACEOF
5213506e 1799configure
22e05272 1800generated by GNU Autoconf 2.69
1c710c3c 1801
22e05272 1802Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
1803This configure script is free software; the Free Software Foundation
1804gives unlimited permission to copy, distribute and modify it.
1805_ACEOF
5213506e 1806 exit
0b0dc272 1807fi
5213506e
RW
1808
1809## ------------------------ ##
1810## Autoconf initialization. ##
1811## ------------------------ ##
1812
1813# ac_fn_c_try_compile LINENO
1814# --------------------------
1815# Try to compile conftest.$ac_ext, and return whether this succeeded.
1816ac_fn_c_try_compile ()
1817{
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 rm -f conftest.$ac_objext
1820 if { { ac_try="$ac_compile"
1821case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_compile") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1833 fi
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && {
1836 test -z "$ac_c_werror_flag" ||
1837 test ! -s conftest.err
1838 } && test -s conftest.$ac_objext; then :
1839 ac_retval=0
1840else
1841 $as_echo "$as_me: failed program was:" >&5
1842sed 's/^/| /' conftest.$ac_ext >&5
1843
1844 ac_retval=1
1845fi
22e05272
JM
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
5213506e
RW
1848
1849} # ac_fn_c_try_compile
1850
1851# ac_fn_cxx_try_compile LINENO
1852# ----------------------------
1853# Try to compile conftest.$ac_ext, and return whether this succeeded.
1854ac_fn_cxx_try_compile ()
1855{
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 rm -f conftest.$ac_objext
1858 if { { ac_try="$ac_compile"
1859case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862esac
1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864$as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_compile") 2>conftest.err
1866 ac_status=$?
1867 if test -s conftest.err; then
1868 grep -v '^ *+' conftest.err >conftest.er1
1869 cat conftest.er1 >&5
1870 mv -f conftest.er1 conftest.err
1871 fi
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } && {
1874 test -z "$ac_cxx_werror_flag" ||
1875 test ! -s conftest.err
1876 } && test -s conftest.$ac_objext; then :
1877 ac_retval=0
1878else
1879 $as_echo "$as_me: failed program was:" >&5
1880sed 's/^/| /' conftest.$ac_ext >&5
1881
1882 ac_retval=1
1883fi
22e05272
JM
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 as_fn_set_status $ac_retval
5213506e
RW
1886
1887} # ac_fn_cxx_try_compile
1888
0b21f5d3
EB
1889# ac_fn_cxx_try_link LINENO
1890# -------------------------
1891# Try to link conftest.$ac_ext, and return whether this succeeded.
1892ac_fn_cxx_try_link ()
1893{
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 rm -f conftest.$ac_objext conftest$ac_exeext
1896 if { { ac_try="$ac_link"
1897case "(($ac_try" in
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1900esac
1901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902$as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_link") 2>conftest.err
1904 ac_status=$?
1905 if test -s conftest.err; then
1906 grep -v '^ *+' conftest.err >conftest.er1
1907 cat conftest.er1 >&5
1908 mv -f conftest.er1 conftest.err
1909 fi
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; } && {
1912 test -z "$ac_cxx_werror_flag" ||
1913 test ! -s conftest.err
1914 } && test -s conftest$ac_exeext && {
1915 test "$cross_compiling" = yes ||
22e05272 1916 test -x conftest$ac_exeext
0b21f5d3
EB
1917 }; then :
1918 ac_retval=0
1919else
1920 $as_echo "$as_me: failed program was:" >&5
1921sed 's/^/| /' conftest.$ac_ext >&5
1922
1923 ac_retval=1
1924fi
1925 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1926 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1927 # interfere with the next link command; also delete a directory that is
1928 # left behind by Apple's compiler. We do this before executing the actions.
1929 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 as_fn_set_status $ac_retval
0b21f5d3
EB
1932
1933} # ac_fn_cxx_try_link
1934
5213506e
RW
1935# ac_fn_c_try_link LINENO
1936# -----------------------
1937# Try to link conftest.$ac_ext, and return whether this succeeded.
1938ac_fn_c_try_link ()
1939{
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 rm -f conftest.$ac_objext conftest$ac_exeext
1942 if { { ac_try="$ac_link"
1943case "(($ac_try" in
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1946esac
1947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948$as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_link") 2>conftest.err
1950 ac_status=$?
1951 if test -s conftest.err; then
1952 grep -v '^ *+' conftest.err >conftest.er1
1953 cat conftest.er1 >&5
1954 mv -f conftest.er1 conftest.err
1955 fi
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; } && {
1958 test -z "$ac_c_werror_flag" ||
1959 test ! -s conftest.err
1960 } && test -s conftest$ac_exeext && {
1961 test "$cross_compiling" = yes ||
22e05272 1962 test -x conftest$ac_exeext
5213506e
RW
1963 }; then :
1964 ac_retval=0
1965else
1966 $as_echo "$as_me: failed program was:" >&5
1967sed 's/^/| /' conftest.$ac_ext >&5
1968
1969 ac_retval=1
1970fi
1971 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1972 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1973 # interfere with the next link command; also delete a directory that is
1974 # left behind by Apple's compiler. We do this before executing the actions.
1975 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status $ac_retval
5213506e
RW
1978
1979} # ac_fn_c_try_link
1980cat >config.log <<_ACEOF
1c710c3c
DJ
1981This file contains any messages produced by compilers while
1982running configure, to aid debugging if configure makes a mistake.
1983
1984It was created by $as_me, which was
22e05272 1985generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
1986
1987 $ $0 $@
1988
1989_ACEOF
5213506e 1990exec 5>>config.log
1c710c3c
DJ
1991{
1992cat <<_ASUNAME
1993## --------- ##
1994## Platform. ##
1995## --------- ##
1996
1997hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1998uname -m = `(uname -m) 2>/dev/null || echo unknown`
1999uname -r = `(uname -r) 2>/dev/null || echo unknown`
2000uname -s = `(uname -s) 2>/dev/null || echo unknown`
2001uname -v = `(uname -v) 2>/dev/null || echo unknown`
2002
2003/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2004/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2005
2006/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2007/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2008/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 2009/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
2010/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2011/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2012/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2013
2014_ASUNAME
2015
2016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017for as_dir in $PATH
2018do
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
5213506e
RW
2021 $as_echo "PATH: $as_dir"
2022 done
2023IFS=$as_save_IFS
1c710c3c
DJ
2024
2025} >&5
2026
2027cat >&5 <<_ACEOF
2028
2029
2030## ----------- ##
2031## Core tests. ##
2032## ----------- ##
2033
2034_ACEOF
2035
2036
2037# Keep a trace of the command line.
2038# Strip out --no-create and --no-recursion so they do not pile up.
2039# Strip out --silent because we don't want to record it for future runs.
2040# Also quote any args containing shell meta-characters.
2041# Make two passes to allow for proper duplicate-argument suppression.
2042ac_configure_args=
2043ac_configure_args0=
2044ac_configure_args1=
1c710c3c
DJ
2045ac_must_keep_next=false
2046for ac_pass in 1 2
2047do
2048 for ac_arg
2049 do
2050 case $ac_arg in
2051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2053 | -silent | --silent | --silen | --sile | --sil)
2054 continue ;;
5213506e
RW
2055 *\'*)
2056 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2057 esac
2058 case $ac_pass in
5213506e 2059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2060 2)
5213506e 2061 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2062 if test $ac_must_keep_next = true; then
2063 ac_must_keep_next=false # Got value, back to normal.
2064 else
2065 case $ac_arg in
2066 *=* | --config-cache | -C | -disable-* | --disable-* \
2067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2069 | -with-* | --with-* | -without-* | --without-* | --x)
2070 case "$ac_configure_args0 " in
2071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2072 esac
2073 ;;
2074 -* ) ac_must_keep_next=true ;;
2075 esac
2076 fi
5213506e 2077 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2078 ;;
2079 esac
2080 done
2081done
5213506e
RW
2082{ ac_configure_args0=; unset ac_configure_args0;}
2083{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2084
2085# When interrupted or exit'd, cleanup temporary files, and complete
2086# config.log. We remove comments because anyway the quotes in there
2087# would cause problems or look ugly.
5213506e
RW
2088# WARNING: Use '\'' to represent an apostrophe within the trap.
2089# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2090trap 'exit_status=$?
2091 # Save into config.log some information that might help in debugging.
2092 {
2093 echo
2094
22e05272 2095 $as_echo "## ---------------- ##
1c710c3c 2096## Cache variables. ##
22e05272 2097## ---------------- ##"
1c710c3c
DJ
2098 echo
2099 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2100(
2101 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2102 eval ac_val=\$$ac_var
2103 case $ac_val in #(
2104 *${as_nl}*)
2105 case $ac_var in #(
2106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2107$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2108 esac
2109 case $ac_var in #(
2110 _ | IFS | as_nl) ;; #(
2111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2112 *) { eval $ac_var=; unset $ac_var;} ;;
2113 esac ;;
2114 esac
2115 done
1c710c3c 2116 (set) 2>&1 |
5213506e
RW
2117 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2118 *${as_nl}ac_space=\ *)
1c710c3c 2119 sed -n \
5213506e
RW
2120 "s/'\''/'\''\\\\'\'''\''/g;
2121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2122 ;; #(
1c710c3c 2123 *)
5213506e 2124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2125 ;;
5213506e
RW
2126 esac |
2127 sort
2128)
1c710c3c
DJ
2129 echo
2130
22e05272 2131 $as_echo "## ----------------- ##
1c710c3c 2132## Output variables. ##
22e05272 2133## ----------------- ##"
1c710c3c
DJ
2134 echo
2135 for ac_var in $ac_subst_vars
2136 do
5213506e
RW
2137 eval ac_val=\$$ac_var
2138 case $ac_val in
2139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140 esac
2141 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2142 done | sort
2143 echo
2144
2145 if test -n "$ac_subst_files"; then
22e05272 2146 $as_echo "## ------------------- ##
5213506e 2147## File substitutions. ##
22e05272 2148## ------------------- ##"
1c710c3c
DJ
2149 echo
2150 for ac_var in $ac_subst_files
2151 do
5213506e
RW
2152 eval ac_val=\$$ac_var
2153 case $ac_val in
2154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155 esac
2156 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2157 done | sort
2158 echo
2159 fi
2160
2161 if test -s confdefs.h; then
22e05272 2162 $as_echo "## ----------- ##
1c710c3c 2163## confdefs.h. ##
22e05272 2164## ----------- ##"
1c710c3c 2165 echo
5213506e 2166 cat confdefs.h
1c710c3c
DJ
2167 echo
2168 fi
2169 test "$ac_signal" != 0 &&
5213506e
RW
2170 $as_echo "$as_me: caught signal $ac_signal"
2171 $as_echo "$as_me: exit $exit_status"
1c710c3c 2172 } >&5
5213506e
RW
2173 rm -f core *.core core.conftest.* &&
2174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2175 exit $exit_status
5213506e 2176' 0
1c710c3c 2177for ac_signal in 1 2 13 15; do
5213506e 2178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2179done
2180ac_signal=0
2181
2182# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2183rm -f -r conftest* confdefs.h
2184
2185$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2186
2187# Predefined preprocessor variables.
2188
2189cat >>confdefs.h <<_ACEOF
2190#define PACKAGE_NAME "$PACKAGE_NAME"
2191_ACEOF
2192
1c710c3c
DJ
2193cat >>confdefs.h <<_ACEOF
2194#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2195_ACEOF
2196
1c710c3c
DJ
2197cat >>confdefs.h <<_ACEOF
2198#define PACKAGE_VERSION "$PACKAGE_VERSION"
2199_ACEOF
0b0dc272 2200
1c710c3c
DJ
2201cat >>confdefs.h <<_ACEOF
2202#define PACKAGE_STRING "$PACKAGE_STRING"
2203_ACEOF
2204
1c710c3c
DJ
2205cat >>confdefs.h <<_ACEOF
2206#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2207_ACEOF
2208
5213506e
RW
2209cat >>confdefs.h <<_ACEOF
2210#define PACKAGE_URL "$PACKAGE_URL"
2211_ACEOF
2212
1c710c3c
DJ
2213
2214# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2215# Prefer an explicitly selected file to automatically selected ones.
2216ac_site_file1=NONE
2217ac_site_file2=NONE
2218if test -n "$CONFIG_SITE"; then
22e05272
JM
2219 # We do not want a PATH search for config.site.
2220 case $CONFIG_SITE in #((
2221 -*) ac_site_file1=./$CONFIG_SITE;;
2222 */*) ac_site_file1=$CONFIG_SITE;;
2223 *) ac_site_file1=./$CONFIG_SITE;;
2224 esac
5213506e
RW
2225elif test "x$prefix" != xNONE; then
2226 ac_site_file1=$prefix/share/config.site
2227 ac_site_file2=$prefix/etc/config.site
2228else
2229 ac_site_file1=$ac_default_prefix/share/config.site
2230 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2231fi
5213506e
RW
2232for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2233do
2234 test "x$ac_site_file" = xNONE && continue
22e05272 2235 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2237$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2238 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2239 . "$ac_site_file" \
2240 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242as_fn_error $? "failed to load site script $ac_site_file
2243See \`config.log' for more details" "$LINENO" 5; }
671aa708
NN
2244 fi
2245done
2246
2247if test -r "$cache_file"; then
22e05272
JM
2248 # Some versions of bash will fail to source /dev/null (special files
2249 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2250 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2252$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2253 case $cache_file in
5213506e
RW
2254 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2255 *) . "./$cache_file";;
1c710c3c
DJ
2256 esac
2257 fi
671aa708 2258else
5213506e
RW
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2260$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2261 >$cache_file
2262fi
2263
2264# Check that the precious variables saved in the cache have kept the same
2265# value.
2266ac_cache_corrupted=false
5213506e 2267for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2269 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2270 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2271 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2272 case $ac_old_set,$ac_new_set in
2273 set,)
5213506e
RW
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2275$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2276 ac_cache_corrupted=: ;;
2277 ,set)
5213506e
RW
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2279$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2280 ac_cache_corrupted=: ;;
2281 ,);;
2282 *)
2283 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2284 # differences in whitespace do not lead to failure.
2285 ac_old_val_w=`echo x $ac_old_val`
2286 ac_new_val_w=`echo x $ac_new_val`
2287 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2289$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2290 ac_cache_corrupted=:
2291 else
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2293$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2294 eval $ac_var=\$ac_old_val
2295 fi
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2297$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2299$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2300 fi;;
2301 esac
2302 # Pass precious variables to config.status.
2303 if test "$ac_new_set" = set; then
2304 case $ac_new_val in
5213506e 2305 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2306 *) ac_arg=$ac_var=$ac_new_val ;;
2307 esac
2308 case " $ac_configure_args " in
2309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2310 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2311 esac
2312 fi
2313done
2314if $ac_cache_corrupted; then
5213506e
RW
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2318$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2319 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2320fi
5213506e
RW
2321## -------------------- ##
2322## Main body of script. ##
2323## -------------------- ##
671aa708 2324
2aeb72e9
DD
2325ac_ext=c
2326ac_cpp='$CPP $CPPFLAGS'
2327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2329ac_compiler_gnu=$ac_cv_c_compiler_gnu
2330
1c710c3c
DJ
2331
2332
2333
1c710c3c
DJ
2334
2335
0115d4a3 2336
1c710c3c 2337
ad33ff57
RW
2338progname=$0
2339# if PWD already has a value, it is probably wrong.
2340if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2341
2342# Export original configure arguments for use by sub-configures.
2343# Quote arguments with shell meta charatcers.
2344TOPLEVEL_CONFIGURE_ARGUMENTS=
2345set -- "$progname" "$@"
2346for ac_arg
2347do
2348 case "$ac_arg" in
2349 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2350 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2351 # if the argument is of the form -foo=baz, quote the baz part only
2352 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2353 *) ;;
2354 esac
2355 # Add the quoted argument to the list.
2356 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2357done
2358if test "$silent" = yes; then
2359 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2360fi
2361# Remove the initial space we just introduced and, as these will be
2362# expanded by make, quote '$'.
2363TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2364
1c710c3c
DJ
2365
2366# Find the build, host, and target systems.
671aa708 2367ac_aux_dir=
5213506e 2368for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2369 if test -f "$ac_dir/install-sh"; then
2370 ac_aux_dir=$ac_dir
2371 ac_install_sh="$ac_aux_dir/install-sh -c"
2372 break
2373 elif test -f "$ac_dir/install.sh"; then
2374 ac_aux_dir=$ac_dir
2375 ac_install_sh="$ac_aux_dir/install.sh -c"
2376 break
2377 elif test -f "$ac_dir/shtool"; then
2378 ac_aux_dir=$ac_dir
2379 ac_install_sh="$ac_aux_dir/shtool install -c"
2380 break
2381 fi
671aa708
NN
2382done
2383if test -z "$ac_aux_dir"; then
22e05272 2384 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2385fi
5213506e
RW
2386
2387# These three variables are undocumented and unsupported,
2388# and are intended to be withdrawn in a future Autoconf release.
2389# They can cause serious problems if a builder's source tree is in a directory
2390# whose full name contains unusual characters.
2391ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2392ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2393ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2394
671aa708 2395
1c710c3c 2396# Make sure we can run config.sub.
5213506e 2397$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2398 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2399
2400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2401$as_echo_n "checking build system type... " >&6; }
22e05272 2402if ${ac_cv_build+:} false; then :
5213506e
RW
2403 $as_echo_n "(cached) " >&6
2404else
2405 ac_build_alias=$build_alias
2406test "x$ac_build_alias" = x &&
2407 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2408test "x$ac_build_alias" = x &&
22e05272 2409 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2410ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2411 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2412
2413fi
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2415$as_echo "$ac_cv_build" >&6; }
2416case $ac_cv_build in
2417*-*-*) ;;
22e05272 2418*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2419esac
1c710c3c 2420build=$ac_cv_build
5213506e
RW
2421ac_save_IFS=$IFS; IFS='-'
2422set x $ac_cv_build
2423shift
2424build_cpu=$1
2425build_vendor=$2
2426shift; shift
2427# Remember, the first character of IFS is used to create $*,
2428# except with old shells:
2429build_os=$*
2430IFS=$ac_save_IFS
2431case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2432
671aa708 2433
1c710c3c
DJ
2434 case ${build_alias} in
2435 "") build_noncanonical=${build} ;;
2436 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2437esac
2438
2439
af71363e 2440
1c710c3c
DJ
2441 case ${host_alias} in
2442 "") host_noncanonical=${build_noncanonical} ;;
2443 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2444esac
2445
af71363e 2446
1c710c3c
DJ
2447
2448 case ${target_alias} in
2449 "") target_noncanonical=${host_noncanonical} ;;
2450 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2451esac
2452
af71363e 2453
1c710c3c
DJ
2454
2455
2456test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2457 test "$program_prefix$program_suffix$program_transform_name" = \
2458 NONENONEs,x,x, &&
1c710c3c 2459 program_transform_name=s,y,y,
af71363e 2460
5213506e
RW
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2462$as_echo_n "checking host system type... " >&6; }
22e05272 2463if ${ac_cv_host+:} false; then :
5213506e 2464 $as_echo_n "(cached) " >&6
af71363e 2465else
5213506e
RW
2466 if test "x$host_alias" = x; then
2467 ac_cv_host=$ac_cv_build
2468else
2469 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2470 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2471fi
1c710c3c 2472
af71363e 2473fi
5213506e
RW
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2475$as_echo "$ac_cv_host" >&6; }
2476case $ac_cv_host in
2477*-*-*) ;;
22e05272 2478*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2479esac
1c710c3c 2480host=$ac_cv_host
5213506e
RW
2481ac_save_IFS=$IFS; IFS='-'
2482set x $ac_cv_host
2483shift
2484host_cpu=$1
2485host_vendor=$2
2486shift; shift
2487# Remember, the first character of IFS is used to create $*,
2488# except with old shells:
2489host_os=$*
2490IFS=$ac_save_IFS
2491case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2492
2493
5213506e
RW
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2495$as_echo_n "checking target system type... " >&6; }
22e05272 2496if ${ac_cv_target+:} false; then :
5213506e 2497 $as_echo_n "(cached) " >&6
1c710c3c 2498else
5213506e
RW
2499 if test "x$target_alias" = x; then
2500 ac_cv_target=$ac_cv_host
2501else
2502 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2503 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2504fi
1c710c3c
DJ
2505
2506fi
5213506e
RW
2507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2508$as_echo "$ac_cv_target" >&6; }
2509case $ac_cv_target in
2510*-*-*) ;;
22e05272 2511*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2512esac
1c710c3c 2513target=$ac_cv_target
5213506e
RW
2514ac_save_IFS=$IFS; IFS='-'
2515set x $ac_cv_target
2516shift
2517target_cpu=$1
2518target_vendor=$2
2519shift; shift
2520# Remember, the first character of IFS is used to create $*,
2521# except with old shells:
2522target_os=$*
2523IFS=$ac_save_IFS
2524case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2525
2526
2527# The aliases save the names the user supplied, while $host etc.
2528# will get canonicalized.
2529test -n "$target_alias" &&
2530 test "$program_prefix$program_suffix$program_transform_name" = \
2531 NONENONEs,x,x, &&
2532 program_prefix=${target_alias}-
5213506e 2533
671aa708 2534test "$program_prefix" != NONE &&
5213506e 2535 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2536# Use a double $ so make ignores it.
2537test "$program_suffix" != NONE &&
5213506e
RW
2538 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2539# Double any \ or $.
1c710c3c 2540# By default was `s,x,x', remove it if useless.
5213506e
RW
2541ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2542program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2543
671aa708
NN
2544
2545
775956d0
NN
2546# Get 'install' or 'install-sh' and its variants.
2547# Find a good install program. We prefer a C program (faster),
2548# so one script is as good as another. But avoid the broken or
2549# incompatible versions:
2550# SysV /etc/install, /usr/sbin/install
2551# SunOS /usr/etc/install
2552# IRIX /sbin/install
2553# AIX /bin/install
1c710c3c 2554# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2555# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2556# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2557# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2558# OS/2's system install, which has a completely different semantic
775956d0 2559# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2560# Reject install programs that cannot install multiple files.
5213506e
RW
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2562$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2563if test -z "$INSTALL"; then
22e05272 2564if ${ac_cv_path_install+:} false; then :
5213506e 2565 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2566else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568for as_dir in $PATH
2569do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
5213506e
RW
2572 # Account for people who put trailing slashes in PATH elements.
2573case $as_dir/ in #((
2574 ./ | .// | /[cC]/* | \
1c710c3c 2575 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2576 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2577 /usr/ucb/* ) ;;
2578 *)
2579 # OSF1 and SCO ODT 3.0 have their own names for install.
2580 # Don't use installbsd from OSF since it installs stuff as root
2581 # by default.
2582 for ac_prog in ginstall scoinst install; do
2583 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2584 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 2585 if test $ac_prog = install &&
1c710c3c 2586 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2587 # AIX install. It has an incompatible calling convention.
2588 :
1c710c3c
DJ
2589 elif test $ac_prog = install &&
2590 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2591 # program-specific install script used by HP pwplus--don't use.
2592 :
775956d0 2593 else
38d24731
RW
2594 rm -rf conftest.one conftest.two conftest.dir
2595 echo one > conftest.one
2596 echo two > conftest.two
2597 mkdir conftest.dir
2598 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2599 test -s conftest.one && test -s conftest.two &&
2600 test -s conftest.dir/conftest.one &&
2601 test -s conftest.dir/conftest.two
2602 then
2603 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2604 break 3
2605 fi
775956d0
NN
2606 fi
2607 fi
2608 done
1c710c3c
DJ
2609 done
2610 ;;
2611esac
5213506e
RW
2612
2613 done
2614IFS=$as_save_IFS
1c710c3c 2615
38d24731 2616rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2617
2618fi
2619 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2620 INSTALL=$ac_cv_path_install
775956d0 2621 else
38d24731
RW
2622 # As a last resort, use the slow shell script. Don't cache a
2623 # value for INSTALL within a source directory, because that will
775956d0 2624 # break other packages using the cache if that directory is
38d24731 2625 # removed, or if the value is a relative name.
1c710c3c 2626 INSTALL=$ac_install_sh
775956d0
NN
2627 fi
2628fi
5213506e
RW
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2630$as_echo "$INSTALL" >&6; }
775956d0
NN
2631
2632# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2633# It thinks the first close brace ends the variable substitution.
2634test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2635
1c710c3c 2636test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2637
2638test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2639
5213506e
RW
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2641$as_echo_n "checking whether ln works... " >&6; }
22e05272 2642if ${acx_cv_prog_LN+:} false; then :
5213506e 2643 $as_echo_n "(cached) " >&6
ad6717df
PB
2644else
2645 rm -f conftestdata_t
2646echo >conftestdata_f
2647if ln conftestdata_f conftestdata_t 2>/dev/null
2648then
2649 acx_cv_prog_LN=ln
2650else
2651 acx_cv_prog_LN=no
2652fi
2653rm -f conftestdata_f conftestdata_t
2654
2655fi
2656if test $acx_cv_prog_LN = no; then
2657 LN="cp"
5213506e
RW
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2659$as_echo "no, using $LN" >&6; }
ad6717df
PB
2660else
2661 LN="$acx_cv_prog_LN"
5213506e
RW
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663$as_echo "yes" >&6; }
ad6717df
PB
2664fi
2665
5213506e
RW
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2667$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2668LN_S=$as_ln_s
2669if test "$LN_S" = "ln -s"; then
5213506e
RW
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2671$as_echo "yes" >&6; }
fb0103e5 2672else
5213506e
RW
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2674$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2675fi
2676
87264276
PB
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2678$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 2679if ${ac_cv_path_SED+:} false; then :
87264276
PB
2680 $as_echo_n "(cached) " >&6
2681else
2682 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2683 for ac_i in 1 2 3 4 5 6 7; do
2684 ac_script="$ac_script$as_nl$ac_script"
2685 done
2686 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2687 { ac_script=; unset ac_script;}
2688 if test -z "$SED"; then
2689 ac_path_SED_found=false
2690 # Loop through the user's path and test for each of PROGNAME-LIST
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_prog in sed gsed; do
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 2699 as_fn_executable_p "$ac_path_SED" || continue
87264276
PB
2700# Check for GNU ac_path_SED and select it if it is found.
2701 # Check for GNU $ac_path_SED
2702case `"$ac_path_SED" --version 2>&1` in
2703*GNU*)
2704 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2705*)
2706 ac_count=0
2707 $as_echo_n 0123456789 >"conftest.in"
2708 while :
2709 do
2710 cat "conftest.in" "conftest.in" >"conftest.tmp"
2711 mv "conftest.tmp" "conftest.in"
2712 cp "conftest.in" "conftest.nl"
2713 $as_echo '' >> "conftest.nl"
2714 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2715 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2716 as_fn_arith $ac_count + 1 && ac_count=$as_val
2717 if test $ac_count -gt ${ac_path_SED_max-0}; then
2718 # Best one so far, save it but keep looking for a better one
2719 ac_cv_path_SED="$ac_path_SED"
2720 ac_path_SED_max=$ac_count
2721 fi
2722 # 10*(2^10) chars as input seems more than enough
2723 test $ac_count -gt 10 && break
2724 done
2725 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2726esac
2727
2728 $ac_path_SED_found && break 3
2729 done
2730 done
2731 done
2732IFS=$as_save_IFS
2733 if test -z "$ac_cv_path_SED"; then
22e05272 2734 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
87264276
PB
2735 fi
2736else
2737 ac_cv_path_SED=$SED
2738fi
2739
2740fi
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2742$as_echo "$ac_cv_path_SED" >&6; }
2743 SED="$ac_cv_path_SED"
2744 rm -f conftest.sed
2745
2746for ac_prog in gawk mawk nawk awk
2747do
2748 # Extract the first word of "$ac_prog", so it can be a program name with args.
2749set dummy $ac_prog; ac_word=$2
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2752if ${ac_cv_prog_AWK+:} false; then :
87264276
PB
2753 $as_echo_n "(cached) " >&6
2754else
2755 if test -n "$AWK"; then
2756 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2757else
2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759for as_dir in $PATH
2760do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87264276
PB
2765 ac_cv_prog_AWK="$ac_prog"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2768 fi
2769done
2770 done
2771IFS=$as_save_IFS
2772
2773fi
2774fi
2775AWK=$ac_cv_prog_AWK
2776if test -n "$AWK"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2778$as_echo "$AWK" >&6; }
2779else
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781$as_echo "no" >&6; }
2782fi
2783
2784
2785 test -n "$AWK" && break
2786done
2787
775956d0 2788
ee6a22df
L
2789srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2790
2791# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2792# a relative path.
2793if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2794 INSTALL="${srcpwd}/install-sh -c"
2795fi
2796
671aa708
NN
2797# Set srcdir to "." if that's what it is.
2798# This is important for multilib support.
2799pwd=`${PWDCMD-pwd}`
671aa708
NN
2800if test "${pwd}" = "${srcpwd}" ; then
2801 srcdir=.
79c06341
JL
2802fi
2803
671aa708 2804topsrcdir=$srcpwd
5d4a5ee6 2805
671aa708 2806extra_host_args=
afabd8e6 2807
671aa708
NN
2808### To add a new directory to the tree, first choose whether it is a target
2809### or a host dependent tool. Then put it into the appropriate list
2810### (library or tools, host or target), doing a dependency sort.
79c06341 2811
1c710c3c 2812# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2813# configdirs, or target_configdirs; see the serialization section below.
79c06341 2814
1c710c3c
DJ
2815# Dependency sorting is only needed when *configuration* must be done in
2816# a particular order. In all cases a dependency should be specified in
671aa708 2817# the Makefile, whether or not it's implicitly specified here.
79c06341 2818
671aa708
NN
2819# Double entries in build_configdirs, configdirs, or target_configdirs may
2820# cause circular dependencies and break everything horribly.
79c06341 2821
23f6b2f9
PB
2822# these library is used by various programs built for the build
2823# environment
2824#
929315a9 2825build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2826
2827# these tools are built for the build environment
85bfb75e 2828build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2829
671aa708 2830# these libraries are used by various programs built for the host environment
eae1a5d4 2831#f
db50aea6 2832host_libs="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
671aa708 2833
671aa708
NN
2834# these tools are built for the host environment
2835# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2836# know that we are building the simulator.
2837# binutils, gas and ld appear in that order because it makes sense to run
2838# "make check" in that particular order.
38e3d868 2839# If --enable-gold is used, "gold" may replace "ld".
1eee94d3 2840host_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 2841
671aa708
NN
2842# these libraries are built for the target environment, and are built after
2843# the host libraries and the host tools (which may be a cross compiler)
8499116a 2844# Note that libiberty is not a target library.
291f172e 2845target_libraries="target-libgcc \
eff02e4f 2846 target-libbacktrace \
671aa708
NN
2847 target-libgloss \
2848 target-newlib \
6d3b5aea 2849 target-libgomp \
48310492 2850 target-libatomic \
0a35513e 2851 target-libitm \
cb543528 2852 target-libstdc++-v3 \
f35db108 2853 target-libsanitizer \
2077db1b 2854 target-libvtv \
77008252 2855 target-libssp \
1ec601bf 2856 target-libquadmath \
6de9cd9a 2857 target-libgfortran \
012447ea 2858 target-libffi \
d9cdb878 2859 target-libobjc \
632e2a07 2860 target-libada \
1eee94d3 2861 target-libgm2 \
b4c522fa 2862 target-libgo \
bb50312e
IB
2863 target-libphobos \
2864 target-zlib"
671aa708 2865
4dbda6f0
NN
2866# these tools are built using the target libraries, and are intended to
2867# run only in the target environment
671aa708 2868#
4dbda6f0 2869# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2870# list belongs in this list.
671aa708 2871#
85bfb75e 2872target_tools="target-rda"
79c06341 2873
671aa708 2874################################################################################
79c06341 2875
671aa708
NN
2876## All tools belong in one of the four categories, and are assigned above
2877## We assign ${configdirs} this way to remove all embedded newlines. This
2878## is important because configure will choke if they ever get through.
2879## ${configdirs} is directories we build using the host tools.
2880## ${target_configdirs} is directories we build using the target tools.
671aa708 2881configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2882target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2883build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2884
ac9e6043
RW
2885
2886
671aa708 2887################################################################################
79c06341 2888
671aa708 2889srcname="gnu development package"
79c06341 2890
671aa708
NN
2891# This gets set non-empty for some net releases of packages.
2892appdirs=""
79c06341 2893
671aa708
NN
2894# Define is_cross_compiler to save on calls to 'test'.
2895is_cross_compiler=
2896if test x"${host}" = x"${target}" ; then
2897 is_cross_compiler=no
79c06341 2898else
671aa708 2899 is_cross_compiler=yes
1c710c3c 2900fi
79c06341 2901
b4acb5ef 2902# Find the build and target subdir names.
8b87bb96 2903
2e9e6f68
DJ
2904# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2905# have matching libraries, they should use host libraries: Makefile.tpl
2906# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2907# However, they still use the build modules, because the corresponding
2908# host modules (e.g. bison) are only built for the host when bootstrap
2909# finishes. So:
2910# - build_subdir is where we find build modules, and never changes.
2911# - build_libsubdir is where we find build libraries, and can be overridden.
2912
2913# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2914build_subdir="build-${build_noncanonical}"
1c710c3c 2915
5213506e
RW
2916# Check whether --with-build-libsubdir was given.
2917if test "${with_build_libsubdir+set}" = set; then :
2918 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2919else
2920 build_libsubdir="$build_subdir"
5213506e
RW
2921fi
2922
215c351a
PB
2923# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2924if ( test $srcdir = . && test -d gcc ) \
2925 || test -d $srcdir/../host-${host_noncanonical}; then
2926 host_subdir="host-${host_noncanonical}"
2927else
2928 host_subdir=.
2929fi
8b87bb96
NN
2930# No prefix.
2931target_subdir=${target_noncanonical}
1c710c3c 2932
0db770bd
RW
2933# Be sure to cover against remnants of an in-tree build.
2934if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
22e05272 2935 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
0db770bd
RW
2936Use a pristine source tree when building in a separate tree" "$LINENO" 5
2937fi
79c06341 2938
671aa708
NN
2939# Skipdirs are removed silently.
2940skipdirs=
2941# Noconfigdirs are removed loudly.
2942noconfigdirs=""
79c06341 2943
671aa708
NN
2944use_gnu_ld=
2945# Make sure we don't let GNU ld be added if we didn't want it.
2946if test x$with_gnu_ld = xno ; then
2947 use_gnu_ld=no
5afab7ad 2948 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2949fi
2950
671aa708
NN
2951use_gnu_as=
2952# Make sure we don't let GNU as be added if we didn't want it.
2953if test x$with_gnu_as = xno ; then
2954 use_gnu_as=no
2955 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2956fi
2957
d7f09764 2958use_included_zlib=
a05c2c75
L
2959
2960# Check whether --with-system-zlib was given.
2961if test "${with_system_zlib+set}" = set; then :
2962 withval=$with_system_zlib;
2963fi
2964
d7f09764
DN
2965# Make sure we don't let ZLIB be added if we didn't want it.
2966if test x$with_system_zlib = xyes ; then
2967 use_included_zlib=no
2968 noconfigdirs="$noconfigdirs zlib"
2969fi
2970
36ba9851
ДП
2971# Don't compile the bundled readline/libreadline.a if --with-system-readline
2972# is provided.
2973if test x$with_system_readline = xyes ; then
2974 noconfigdirs="$noconfigdirs readline"
2975fi
2976
407a2c9a
FS
2977
2978# Check whether --with-zstd was given.
2979if test "${with_zstd+set}" = set; then :
2980 withval=$with_zstd;
2981fi
2982
2983
1c710c3c 2984# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2985# it's not even worth trying to configure, much less build, that tool.
79c06341 2986
671aa708
NN
2987case ${with_x} in
2988 yes | "") ;; # the default value for this tree is that X11 is available
2989 no)
b4f96efe 2990 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2991 # We won't be able to build gdbtk without X.
1c710c3c 2992 enable_gdbtk=no
671aa708
NN
2993 ;;
2994 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2995esac
79c06341 2996
1bcce263 2997# Some are only suitable for cross toolchains.
671aa708
NN
2998# Remove these if host=target.
2999cross_only="target-libgloss target-newlib target-opcodes"
3000
3001case $is_cross_compiler in
3002 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 3003esac
79c06341 3004
671aa708
NN
3005# If both --with-headers and --with-libs are specified, default to
3006# --without-newlib.
ee6a22df
L
3007if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3008 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
3009 if test x"${with_newlib}" = x ; then
3010 with_newlib=no
3011 fi
79c06341
JL
3012fi
3013
671aa708
NN
3014# Recognize --with-newlib/--without-newlib.
3015case ${with_newlib} in
3016 no) skipdirs="${skipdirs} target-newlib" ;;
3017 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3018esac
79c06341 3019
85c64bbe
BS
3020# Check whether --enable-as-accelerator-for was given.
3021if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 3022 enableval=$enable_as_accelerator_for;
85c64bbe
BS
3023fi
3024
3025
3026# Check whether --enable-offload-targets was given.
3027if test "${enable_offload_targets+set}" = set; then :
3028 enableval=$enable_offload_targets;
3029 if test x"$enable_offload_targets" = x; then
22e05272 3030 as_fn_error $? "no offload targets specified" "$LINENO" 5
85c64bbe
BS
3031 fi
3032
3033else
3034 enable_offload_targets=
3035fi
3036
3037
fe5bfa67
TB
3038# Check whether --enable-offload-defaulted was given.
3039if test "${enable_offload_defaulted+set}" = set; then :
3040 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3041else
3042 enable_offload_defaulted=
3043fi
3044
3045
21539e2e
MK
3046# Handle --enable-gold, --enable-ld.
3047# --disable-gold [--enable-ld]
3048# Build only ld. Default option.
9580395f
L
3049# --enable-gold [--enable-ld]
3050# Build both gold and ld. Install gold as "ld.gold", install ld
3051# as "ld.bfd" and "ld".
3052# --enable-gold=default [--enable-ld]
21539e2e
MK
3053# Build both gold and ld. Install gold as "ld.gold" and "ld",
3054# install ld as "ld.bfd".
3055# --enable-gold[=default] --disable-ld
3056# Build only gold, which is then installed as both "ld.gold" and "ld".
3057# --enable-gold --enable-ld=default
9580395f
L
3058# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3059# and ld.bfd).
21539e2e
MK
3060# In other words, ld is default
3061# --enable-gold=default --enable-ld=default
3062# Error.
3063
3064default_ld=
5213506e
RW
3065# Check whether --enable-gold was given.
3066if test "${enable_gold+set}" = set; then :
3067 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
3068else
3069 ENABLE_GOLD=no
5213506e
RW
3070fi
3071
21539e2e
MK
3072case "${ENABLE_GOLD}" in
3073 yes|default)
38e3d868
RM
3074 # Check for ELF target.
3075 is_elf=no
3076 case "${target}" in
3077 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 3078 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 3079 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ead5103c 3080 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
38e3d868
RM
3081 case "${target}" in
3082 *-*-linux*aout* | *-*-linux*oldld*)
3083 ;;
3084 *)
3085 is_elf=yes
3086 ;;
3087 esac
3088 esac
3089
3090 if test "$is_elf" = "yes"; then
3091 # Check for target supported by gold.
5afab7ad 3092 case "${target}" in
7705dfd1 3093 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
a885ec24 3094 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
21539e2e
MK
3095 configdirs="$configdirs gold"
3096 if test x${ENABLE_GOLD} = xdefault; then
3097 default_ld=gold
3098 fi
38e3d868 3099 ENABLE_GOLD=yes
5afab7ad
ILT
3100 ;;
3101 esac
38e3d868
RM
3102 fi
3103 ;;
3104 no)
3105 ;;
3106 *)
22e05272 3107 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
38e3d868 3108 ;;
21539e2e
MK
3109esac
3110
3111# Check whether --enable-ld was given.
3112if test "${enable_ld+set}" = set; then :
3113 enableval=$enable_ld; ENABLE_LD=$enableval
3114else
3115 ENABLE_LD=yes
3116fi
3117
3118
3119case "${ENABLE_LD}" in
3120 default)
9580395f 3121 if test x${default_ld} != x; then
22e05272 3122 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
21539e2e
MK
3123 fi
3124 ;;
3125 yes)
3126 ;;
3127 no)
3128 if test x${ENABLE_GOLD} != xyes; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3130$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3131 fi
3132 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3133 ;;
3134 *)
22e05272 3135 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
21539e2e
MK
3136 ;;
3137esac
5afab7ad 3138
24552056
VM
3139# Check whether --enable-gprofng was given.
3140if test "${enable_gprofng+set}" = set; then :
3141 enableval=$enable_gprofng; enable_gprofng=$enableval
3142else
3143 enable_gprofng=yes
3144fi
3145
3146if test "$enable_gprofng" = "yes"; then
3147 case "${target}" in
3148 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3149 configdirs="$configdirs gprofng"
3150 ;;
3151 esac
3152fi
3153
3154
78edb32f
L
3155# PR gas/19109
3156# Decide the default method for compressing debug sections.
3157# Provide a configure time option to override our default.
3158# Check whether --enable-compressed_debug_sections was given.
3159if test "${enable_compressed_debug_sections+set}" = set; then :
3160 enableval=$enable_compressed_debug_sections;
3161 if test x"$enable_compressed_debug_sections" = xyes; then
22e05272 3162 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
78edb32f
L
3163 fi
3164
3165else
3166 enable_compressed_debug_sections=
3167fi
3168
3169
c9884636
ML
3170# Select default compression algorithm.
3171# Check whether --enable-default_compressed_debug_sections_algorithm was given.
3172if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3173 enableval=$enable_default_compressed_debug_sections_algorithm;
3174else
3175 default_compressed_debug_sections_algorithm=
3176fi
3177
3178
671aa708 3179# Configure extra directories which are host specific
79c06341 3180
671aa708
NN
3181case "${host}" in
3182 *-cygwin*)
3183 configdirs="$configdirs libtermcap" ;;
3184esac
79c06341 3185
4fab7234
HPN
3186# A target can indicate whether a language isn't supported for some reason.
3187# Only spaces may be used in this macro; not newlines or tabs.
3188unsupported_languages=
3189
1c710c3c 3190# Remove more programs from consideration, based on the host or
671aa708
NN
3191# target this usually means that a port of the program doesn't
3192# exist yet.
ec8d6ddc 3193
671aa708 3194case "${host}" in
111eeb6e 3195 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3196 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3197 ;;
671aa708 3198esac
ec8d6ddc 3199
a49d42e8
LM
3200# Default to --disable-year2038 until we can handle differences between
3201# projects that use gnulib (which understands year 2038) and projects that
3202# do not (like BFD).
3203# Check whether --enable-year2038 was given.
3204if test "${enable_year2038+set}" = set; then :
3205 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3206else
3207 ENABLE_YEAR2038=no
3208fi
3209
3210enable_year2038=
3211if test "${ENABLE_YEAR2038}" = "no" ; then
3212 enable_year2038=no
3213fi
6de9cd9a 3214
87e6d9dc
TB
3215# Check whether --enable-libquadmath was given.
3216if test "${enable_libquadmath+set}" = set; then :
3217 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3218else
3219 ENABLE_LIBQUADMATH=yes
3220fi
3221
3222if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3223 noconfigdirs="$noconfigdirs target-libquadmath"
3224fi
3225
3226
3227# Check whether --enable-libquadmath-support was given.
3228if test "${enable_libquadmath_support+set}" = set; then :
3229 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3230else
3231 ENABLE_LIBQUADMATH_SUPPORT=yes
3232fi
3233
3234enable_libquadmath_support=
3235if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3236 enable_libquadmath_support=no
3237fi
3238
3239
5213506e
RW
3240# Check whether --enable-libada was given.
3241if test "${enable_libada+set}" = set; then :
3242 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3243else
3244 ENABLE_LIBADA=yes
5213506e
RW
3245fi
3246
d9cdb878 3247if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3248 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3249fi
3250
1eee94d3
GM
3251# Check whether --enable-libgm2 was given.
3252if test "${enable_libgm2+set}" = set; then :
3253 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3254else
3255 ENABLE_LIBGM2=no
3256fi
3257
3258if test "${ENABLE_LIBGM2}" != "yes" ; then
3259 noconfigdirs="$noconfigdirs gm2tools"
3260fi
3261
5213506e
RW
3262# Check whether --enable-libssp was given.
3263if test "${enable_libssp+set}" = set; then :
3264 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3265else
3266 ENABLE_LIBSSP=yes
5213506e
RW
3267fi
3268
ef0087a7 3269
1873ec0c
L
3270# Check whether --enable-libstdcxx was given.
3271if test "${enable_libstdcxx+set}" = set; then :
3272 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3273else
3274 ENABLE_LIBSTDCXX=default
3275fi
3276
3277if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3278 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3279fi
3280
44a7d18d 3281# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3282if test x$enable_libgomp = x ; then
953ff289 3283 case "${target}" in
416ac4d4 3284 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3285 ;;
8c6d158a 3286 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3287 ;;
b24513a1 3288 *-*-solaris2* | *-*-hpux11*)
953ff289 3289 ;;
cac90078 3290 *-*-darwin* | *-*-aix*)
953ff289 3291 ;;
29b1533a 3292 nvptx*-*-* | amdgcn*-*-*)
44a7d18d 3293 ;;
953ff289
DN
3294 *)
3295 noconfigdirs="$noconfigdirs target-libgomp"
3296 ;;
3297 esac
27079765 3298fi
953ff289 3299
48310492
RH
3300# Disable libatomic on unsupported systems.
3301if test -d ${srcdir}/libatomic; then
3302 if test x$enable_libatomic = x; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3304$as_echo_n "checking for libatomic support... " >&6; }
3305 if (srcdir=${srcdir}/libatomic; \
3306 . ${srcdir}/configure.tgt; \
3307 test -n "$UNSUPPORTED")
3308 then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310$as_echo "no" >&6; }
3311 noconfigdirs="$noconfigdirs target-libatomic"
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314$as_echo "yes" >&6; }
3315 fi
3316 fi
3317fi
3318
e948157d
RH
3319# Disable libitm on unsupported systems.
3320if test -d ${srcdir}/libitm; then
3321 if test x$enable_libitm = x; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3323$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3324 if (srcdir=${srcdir}/libitm; \
3325 . ${srcdir}/configure.tgt; \
3326 test -n "$UNSUPPORTED")
3327 then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3329$as_echo "no" >&6; }
e948157d
RH
3330 noconfigdirs="$noconfigdirs target-libitm"
3331 else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3333$as_echo "yes" >&6; }
e948157d
RH
3334 fi
3335 fi
0a35513e
AH
3336fi
3337
93bf5390
RH
3338# Disable libsanitizer on unsupported systems.
3339if test -d ${srcdir}/libsanitizer; then
3340 if test x$enable_libsanitizer = x; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3342$as_echo_n "checking for libsanitizer support... " >&6; }
3343 if (srcdir=${srcdir}/libsanitizer; \
3344 . ${srcdir}/configure.tgt; \
3345 test -n "$UNSUPPORTED")
3346 then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348$as_echo "no" >&6; }
3349 noconfigdirs="$noconfigdirs target-libsanitizer"
3350 else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3352$as_echo "yes" >&6; }
3353 fi
3354 fi
3355fi
3356
2077db1b
CT
3357# Disable libvtv on unsupported systems.
3358if test -d ${srcdir}/libvtv; then
3359 if test x$enable_libvtv = x; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3361$as_echo_n "checking for libvtv support... " >&6; }
3362 if (srcdir=${srcdir}/libvtv; \
3363 . ${srcdir}/configure.tgt; \
1e74b850 3364 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3365 then
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367$as_echo "no" >&6; }
3368 noconfigdirs="$noconfigdirs target-libvtv"
3369 else
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3371$as_echo "yes" >&6; }
3372 fi
3373 fi
3374fi
3375
d91491e5
SE
3376# Disable libquadmath for some systems.
3377case "${target}" in
e7fae550
DE
3378 avr-*-*)
3379 noconfigdirs="$noconfigdirs target-libquadmath"
3380 ;;
d91491e5
SE
3381 # libquadmath is unused on AIX and libquadmath build process use of
3382 # LD_LIBRARY_PATH can break AIX bootstrap.
3383 powerpc-*-aix* | rs6000-*-aix*)
3384 noconfigdirs="$noconfigdirs target-libquadmath"
3385 ;;
3386esac
3387
1e9e0e23
JM
3388# Disable libssp for some systems.
3389case "${target}" in
3390 avr-*-*)
b318fb4b 3391 # No hosted I/O support.
1e9e0e23
JM
3392 noconfigdirs="$noconfigdirs target-libssp"
3393 ;;
91dfef96
JM
3394 bpf-*-*)
3395 noconfigdirs="$noconfigdirs target-libssp"
3396 ;;
1e9e0e23
JM
3397 powerpc-*-aix* | rs6000-*-aix*)
3398 noconfigdirs="$noconfigdirs target-libssp"
85b8555e 3399 ;;
8d2af3a2
DD
3400 pru-*-*)
3401 # No hosted I/O support.
3402 noconfigdirs="$noconfigdirs target-libssp"
3403 ;;
85b8555e 3404 rl78-*-*)
7cb62ef1
EB
3405 # libssp uses a misaligned load to trigger a fault, but the RL78
3406 # doesn't fault for those - instead, it gives a build-time error
3407 # for explicit misaligned loads.
85b8555e 3408 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3409 ;;
0969ec7d
EB
3410 visium-*-*)
3411 # No hosted I/O support.
3412 noconfigdirs="$noconfigdirs target-libssp"
3413 ;;
1e9e0e23
JM
3414esac
3415
1e9e0e23 3416# Disable libstdc++-v3 for some systems.
67a1cb2a 3417# Allow user to override this if they pass --enable-libstdcxx
1873ec0c
L
3418if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3419 case "${target}" in
3420 *-*-vxworks*)
3421 # VxWorks uses the Dinkumware C++ library.
3422 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3423 ;;
afa3d80e
TS
3424 amdgcn*-*-*)
3425 # Not ported/fails to build when using newlib.
3426 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3427 ;;
1873ec0c
L
3428 arm*-wince-pe*)
3429 # the C++ libraries don't build on top of CE's C libraries
3430 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3431 ;;
3432 avr-*-*)
3433 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3434 ;;
91dfef96
JM
3435 bpf-*-*)
3436 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3437 ;;
fef939d6
JB
3438 ft32-*-*)
3439 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3440 ;;
1873ec0c
L
3441 esac
3442fi
1e9e0e23 3443
91dfef96
JM
3444# Disable C++ on systems where it is known to not work.
3445# For testing, you can override this with --enable-languages=c++.
3446case ,${enable_languages}, in
3447 *,c++,*)
3448 ;;
3449 *)
3450 case "${target}" in
3451 bpf-*-*)
3452 unsupported_languages="$unsupported_languages c++"
3453 ;;
3454 esac
3455 ;;
3456esac
3457
3458# Disable Objc on systems where it is known to not work.
3459# For testing, you can override this with --enable-languages=objc.
3460case ,${enable_languages}, in
3461 *,objc,*)
3462 ;;
3463 *)
3464 case "${target}" in
3465 bpf-*-*)
3466 unsupported_languages="$unsupported_languages objc"
3467 ;;
3468 esac
3469 ;;
3470esac
3471
260eedb9
IB
3472# Disable D on systems where it is known to not work.
3473# For testing, you can override this with --enable-languages=d.
3474case ,${enable_languages}, in
3475 *,d,*)
3476 ;;
3477 *)
3478 case "${target}" in
91dfef96 3479 bpf-*-*)
260eedb9
IB
3480 unsupported_languages="$unsupported_languages d"
3481 ;;
3482 esac
3483 ;;
3484esac
3485
3486# Disable libphobos on unsupported systems.
3487# For testing, you can override this with --enable-libphobos.
3488if test -d ${srcdir}/libphobos; then
3489 if test x$enable_libphobos = x; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3491$as_echo_n "checking for libphobos support... " >&6; }
3492 if (srcdir=${srcdir}/libphobos; \
3493 . ${srcdir}/configure.tgt; \
7d31d331 3494 test "$LIBPHOBOS_SUPPORTED" != "yes")
260eedb9
IB
3495 then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497$as_echo "no" >&6; }
3498 noconfigdirs="$noconfigdirs target-libphobos"
3499 else
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3501$as_echo "yes" >&6; }
3502 fi
3503 fi
3504fi
3505
1e9e0e23
JM
3506# Disable Fortran for some systems.
3507case "${target}" in
3508 mmix-*-*)
3509 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3510 unsupported_languages="$unsupported_languages fortran"
3511 ;;
91dfef96
JM
3512 bpf-*-*)
3513 unsupported_languages="$unsupported_languages fortran"
3514 ;;
1e9e0e23
JM
3515esac
3516
012447ea
JJ
3517# Disable libffi for some systems.
3518case "${target}" in
3519 powerpc-*-darwin*)
3520 ;;
3521 i[3456789]86-*-darwin*)
3522 ;;
3523 x86_64-*-darwin[912]*)
3524 ;;
3525 *-*-darwin*)
3526 noconfigdirs="$noconfigdirs target-libffi"
3527 ;;
3528 *-*-netware*)
3529 noconfigdirs="$noconfigdirs target-libffi"
3530 ;;
3531 *-*-phoenix*)
3532 noconfigdirs="$noconfigdirs target-libffi"
3533 ;;
3534 *-*-rtems*)
3535 noconfigdirs="$noconfigdirs target-libffi"
3536 ;;
3537 *-*-tpf*)
3538 noconfigdirs="$noconfigdirs target-libffi"
3539 ;;
3540 *-*-uclinux*)
3541 noconfigdirs="$noconfigdirs target-libffi"
3542 ;;
3543 *-*-vxworks*)
3544 noconfigdirs="$noconfigdirs target-libffi"
3545 ;;
b20e7532
AT
3546 aarch64*-*-freebsd*)
3547 noconfigdirs="$noconfigdirs target-libffi"
3548 ;;
012447ea
JJ
3549 alpha*-*-*vms*)
3550 noconfigdirs="$noconfigdirs target-libffi"
3551 ;;
3552 arm*-*-freebsd*)
3553 noconfigdirs="$noconfigdirs target-libffi"
3554 ;;
3555 arm-wince-pe)
3556 noconfigdirs="$noconfigdirs target-libffi"
3557 ;;
3558 arm*-*-symbianelf*)
3559 noconfigdirs="$noconfigdirs target-libffi"
3560 ;;
91dfef96
JM
3561 bpf-*-*)
3562 noconfigdirs="$noconfigdirs target-libffi"
3563 ;;
012447ea
JJ
3564 cris-*-* | crisv32-*-*)
3565 case "${target}" in
3566 *-*-linux*)
3567 ;;
3568 *) # See PR46792 regarding target-libffi.
3569 noconfigdirs="$noconfigdirs target-libffi";;
3570 esac
3571 ;;
3572 hppa*64*-*-hpux*)
3573 noconfigdirs="$noconfigdirs target-libffi"
3574 ;;
b48e9940
AA
3575 hppa*-hp-hpux11*)
3576 ;;
3577 hppa*-*-hpux*)
3578 noconfigdirs="$noconfigdirs target-libffi"
3579 ;;
012447ea
JJ
3580 ia64*-*-*vms*)
3581 noconfigdirs="$noconfigdirs target-libffi"
3582 ;;
3583 i[3456789]86-w64-mingw*)
3584 noconfigdirs="$noconfigdirs target-libffi"
3585 ;;
3586 i[3456789]86-*-mingw*)
3587 noconfigdirs="$noconfigdirs target-libffi"
3588 ;;
3589 x86_64-*-mingw*)
3590 noconfigdirs="$noconfigdirs target-libffi"
3591 ;;
3592 mmix-*-*)
3593 noconfigdirs="$noconfigdirs target-libffi"
3594 ;;
3595 powerpc-*-aix*)
012447ea
JJ
3596 ;;
3597 rs6000-*-aix*)
012447ea
JJ
3598 ;;
3599 ft32-*-*)
3600 noconfigdirs="$noconfigdirs target-libffi"
3601 ;;
3602 *-*-lynxos*)
3603 noconfigdirs="$noconfigdirs target-libffi"
3604 ;;
3605esac
3606
3607# Disable the go frontend on systems where it is known to not work. Please keep
3608# this in sync with contrib/config-list.mk.
3609case "${target}" in
91dfef96 3610*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
012447ea
JJ
3611 unsupported_languages="$unsupported_languages go"
3612 ;;
3613esac
3614
f9d09df0
TT
3615# Only allow gdbserver on some systems.
3616if test -d ${srcdir}/gdbserver; then
3617 if test x$enable_gdbserver = x; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3619$as_echo_n "checking for gdbserver support... " >&6; }
3620 if (srcdir=${srcdir}/gdbserver; \
3621 . ${srcdir}/configure.srv; \
3622 test -n "$UNSUPPORTED")
3623 then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625$as_echo "no" >&6; }
3626 noconfigdirs="$noconfigdirs gdbserver"
3627 else
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3629$as_echo "yes" >&6; }
3630 fi
3631 fi
3632fi
3633
cdbc9e92
ILT
3634# Disable libgo for some systems where it is known to not work.
3635# For testing, you can easily override this with --enable-libgo.
3636if test x$enable_libgo = x; then
3637 case "${target}" in
3638 *-*-darwin*)
3639 # PR 46986
3640 noconfigdirs="$noconfigdirs target-libgo"
3641 ;;
3642 *-*-cygwin* | *-*-mingw*)
3643 noconfigdirs="$noconfigdirs target-libgo"
3644 ;;
91dfef96
JM
3645 bpf-*-*)
3646 noconfigdirs="$noconfigdirs target-libgo"
3647 ;;
cdbc9e92
ILT
3648 esac
3649fi
3650
c03353e2
RIL
3651# Default libgloss CPU subdirectory.
3652libgloss_dir="$target_cpu"
6de9cd9a 3653
fbcf0dca
JM
3654case "${target}" in
3655 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3656 libgloss_dir=wince
3657 ;;
4dddfc74
YZ
3658 aarch64*-*-* )
3659 libgloss_dir=aarch64
3660 ;;
fbcf0dca
JM
3661 arm*-*-*)
3662 libgloss_dir=arm
3663 ;;
3664 cris-*-* | crisv32-*-*)
3665 libgloss_dir=cris
3666 ;;
3667 hppa*-*-*)
3668 libgloss_dir=pa
3669 ;;
3670 i[3456789]86-*-*)
3671 libgloss_dir=i386
3672 ;;
c6c0594e 3673 loongarch*-*-*)
3674 libgloss_dir=loongarch
3675 ;;
fbcf0dca
JM
3676 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3677 libgloss_dir=m68hc11
3678 ;;
3679 m68*-*-* | fido-*-*)
3680 libgloss_dir=m68k
3681 ;;
3682 mips*-*-*)
3683 libgloss_dir=mips
3684 ;;
3685 powerpc*-*-*)
3686 libgloss_dir=rs6000
3687 ;;
8d2af3a2
DD
3688 pru-*-*)
3689 libgloss_dir=pru
3690 ;;
fbcf0dca
JM
3691 sparc*-*-*)
3692 libgloss_dir=sparc
3693 ;;
3694esac
3695
6a789d5e 3696# Disable newlib and libgloss for various target OSes.
671aa708 3697case "${target}" in
6a789d5e
JM
3698 alpha*-dec-osf*)
3699 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3700 ;;
3701 i[3456789]86-*-linux*)
3702 # This section makes it possible to build newlib natively on linux.
3703 # If we are using a cross compiler then don't configure newlib.
3704 if test x${is_cross_compiler} != xno ; then
3705 noconfigdirs="$noconfigdirs target-newlib"
3706 fi
3707 noconfigdirs="$noconfigdirs target-libgloss"
3708 # If we are not using a cross compiler, do configure newlib.
3709 # Note however, that newlib will only be configured in this situation
3710 # if the --with-newlib option has been given, because otherwise
3711 # 'target-newlib' will appear in skipdirs.
3712 ;;
3713 i[3456789]86-*-rdos*)
3714 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3715 ;;
3716 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3717 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3718 ;;
3719 sparc-*-sunos4*)
3720 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3721 ;;
91dfef96
JM
3722 bpf-*-*)
3723 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3724 ;;
6a789d5e
JM
3725 *-*-aix*)
3726 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3727 ;;
3728 *-*-beos*)
3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3730 ;;
671aa708 3731 *-*-chorusos)
0036370f 3732 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3733 ;;
6a789d5e
JM
3734 *-*-dragonfly*)
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3736 ;;
3737 *-*-freebsd*)
3738 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3739 ;;
3740 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3741 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3742 ;;
3743 *-*-lynxos*)
3744 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3745 ;;
3746 *-*-mingw*)
3747 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3748 ;;
3749 *-*-netbsd*)
3750 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3751 ;;
3752 *-*-netware*)
3753 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3754 ;;
3755 *-*-tpf*)
3756 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3757 ;;
3758 *-*-uclinux*)
3759 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3760 ;;
3761 *-*-vxworks*)
3762 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3763 ;;
3764esac
3765
3766case "${target}" in
3767 *-*-chorusos)
3768 ;;
3be96231
TG
3769 aarch64-*-darwin*)
3770 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3771 noconfigdirs="$noconfigdirs sim target-rda"
3772 ;;
7431c1a1
AS
3773 amdgcn*-*-*)
3774 ;;
3be96231
TG
3775 arm-*-darwin*)
3776 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3777 noconfigdirs="$noconfigdirs sim target-rda"
3778 ;;
75eeae1a 3779 powerpc-*-darwin*)
e1514c3f 3780 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3781 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3782 ;;
354ebf88
RW
3783 i[3456789]86-*-darwin*)
3784 noconfigdirs="$noconfigdirs ld gprof"
3785 noconfigdirs="$noconfigdirs sim target-rda"
3786 ;;
3787 x86_64-*-darwin[912]*)
0db3a858
TG
3788 noconfigdirs="$noconfigdirs ld gas gprof"
3789 noconfigdirs="$noconfigdirs sim target-rda"
3790 ;;
42c1cd8a
AT
3791 *-*-darwin*)
3792 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3793 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3794 ;;
8c6d158a 3795 *-*-dragonfly*)
8c6d158a 3796 ;;
c3f84f61 3797 *-*-freebsd*)
88252529 3798 if test "x$with_gmp" = x \
c0d0a722 3799 && ! test -d ${srcdir}/gmp \
6de9cd9a
DN
3800 && test -f /usr/local/include/gmp.h; then
3801 with_gmp=/usr/local
3802 fi
6de9cd9a 3803 ;;
ef4e7569
US
3804 *-*-kaos*)
3805 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3806 noconfigdirs="$noconfigdirs target-libgloss"
3807 ;;
671aa708 3808 *-*-netbsd*)
671aa708 3809 ;;
61fec9ff 3810 *-*-netware*)
671aa708 3811 ;;
fd6487af
JS
3812 *-*-phoenix*)
3813 noconfigdirs="$noconfigdirs target-libgloss"
3814 ;;
671aa708 3815 *-*-rtems*)
2909494b 3816 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3817 ;;
a8ba31f2
EC
3818 # The tpf target doesn't support gdb yet.
3819 *-*-tpf*)
6a789d5e 3820 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3821 ;;
5785c0ed 3822 *-*-uclinux*)
6a789d5e 3823 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3824 ;;
671aa708 3825 *-*-vxworks*)
671aa708
NN
3826 ;;
3827 alpha*-dec-osf*)
3828 # ld works, but does not support shared libraries.
671aa708 3829 # gas doesn't generate exception information.
6a789d5e 3830 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3831 ;;
3832 alpha*-*-*vms*)
2909494b 3833 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3834 ;;
671aa708
NN
3835 alpha*-*-*)
3836 # newlib is not 64 bit ready
2909494b 3837 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3838 ;;
91dfef96
JM
3839 bpf-*-*)
3840 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3841 ;;
671aa708 3842 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3843 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3844 ;;
2fd88f4f
AK
3845 arc*-*-*)
3846 noconfigdirs="$noconfigdirs sim"
3847 ;;
671aa708 3848 arm-*-pe*)
2909494b 3849 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3850 ;;
671aa708 3851 arm-*-riscix*)
0036370f 3852 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3853 ;;
b588ae30
GJL
3854 avr-*-*)
3855 if test x${with_avrlibc} != xno; then
3856 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3857 fi
3858 ;;
671aa708 3859 c4x-*-* | tic4x-*-*)
0036370f 3860 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3861 ;;
0036370f
JM
3862 tic54x-*-*)
3863 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3864 ;;
671aa708 3865 d10v-*-*)
0036370f 3866 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3867 ;;
3868 d30v-*-*)
0036370f 3869 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3870 ;;
3871 fr30-*-elf*)
2909494b 3872 noconfigdirs="$noconfigdirs gdb"
671aa708 3873 ;;
a05c2c75
L
3874 ft32-*-*)
3875 noconfigdirs="$noconfigdirs target-rda gprof"
3876 ;;
55f2d967 3877 moxie-*-*)
a05c2c75 3878 noconfigdirs="$noconfigdirs"
55f2d967 3879 ;;
671aa708 3880 h8300*-*-*)
2909494b 3881 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3882 ;;
3883 h8500-*-*)
0036370f 3884 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3885 ;;
b48e9940
AA
3886 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3887 ;;
a05c2c75
L
3888 hppa*64*-*-hpux*)
3889 noconfigdirs="$noconfigdirs gdb"
3890 ;;
b48e9940
AA
3891 hppa*-*-hpux11*)
3892 noconfigdirs="$noconfigdirs gdb ld"
3893 ;;
4569f85e 3894 hppa*64*-*-linux*)
671aa708 3895 ;;
56f8587a 3896 hppa*-*-linux*)
3e732ba0 3897 ;;
671aa708 3898 hppa*-*-*elf* | \
671aa708
NN
3899 hppa*-*-lites* | \
3900 hppa*-*-openbsd* | \
3901 hppa*64*-*-*)
671aa708 3902 ;;
c03353e2 3903 hppa*-*-pro*)
c03353e2 3904 ;;
671aa708 3905 hppa*-*-*)
2909494b 3906 noconfigdirs="$noconfigdirs ld"
671aa708 3907 ;;
fb87ad5d 3908 i960-*-*)
0036370f 3909 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3910 ;;
671aa708
NN
3911 ia64*-*-elf*)
3912 # No gdb support yet.
1bcce263 3913 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3914 ;;
3915 ia64*-**-hpux*)
5a2931d1 3916 # No ld support yet.
a05c2c75 3917 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3918 ;;
52535a64 3919 ia64*-*-*vms*)
091fe9ca
TG
3920 # No ld support yet.
3921 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3922 ;;
ef4c4300 3923 i[3456789]86-w64-mingw*)
ef4c4300
KT
3924 ;;
3925 i[3456789]86-*-mingw*)
b91f0a41 3926 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3927 ;;
671aa708
NN
3928 *-*-cygwin*)
3929 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3930 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3931 # always build newlib if winsup directory is present.
b91f0a41 3932 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3933 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3934 elif test -d "$srcdir/newlib"; then
b91f0a41 3935 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3936 fi
1c710c3c 3937 ;;
f2a0e225 3938 i[3456789]86-*-pe)
ebb9f8b0 3939 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3940 ;;
f2a0e225 3941 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3942 # The linker does not yet know about weak symbols in COFF,
3943 # and is not configured to handle mixed ELF and COFF.
0036370f 3944 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3945 ;;
f2a0e225 3946 i[3456789]86-*-sco*)
0036370f 3947 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3948 ;;
fbdd5d87 3949 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3950 noconfigdirs="$noconfigdirs target-libgloss"
3951 ;;
f2a0e225 3952 i[3456789]86-*-sysv4*)
0036370f 3953 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3954 ;;
f2a0e225 3955 i[3456789]86-*-beos*)
6a789d5e 3956 noconfigdirs="$noconfigdirs gdb"
3aa83176 3957 ;;
d1f8db0c 3958 i[3456789]86-*-rdos*)
6a789d5e 3959 noconfigdirs="$noconfigdirs gdb"
c03353e2 3960 ;;
671aa708 3961 mmix-*-*)
2909494b 3962 noconfigdirs="$noconfigdirs gdb"
671aa708 3963 ;;
ab34901f 3964 mt-*-*)
79dd769c
AH
3965 noconfigdirs="$noconfigdirs sim"
3966 ;;
58b40a67
FT
3967 nfp-*-*)
3968 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3969 noconfigdirs="$noconfigdirs $target_libraries"
3970 ;;
e6cbe965
SC
3971 pdp11-*-*)
3972 noconfigdirs="$noconfigdirs gdb gprof"
3973 ;;
671aa708
NN
3974 powerpc-*-aix*)
3975 # copied from rs6000-*-* entry
6a789d5e 3976 noconfigdirs="$noconfigdirs gprof"
671aa708 3977 ;;
4569f85e 3978 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3979 target_configdirs="$target_configdirs target-winsup"
0036370f 3980 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3981 # always build newlib.
3982 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3983 ;;
3984 # This is temporary until we can link against shared libraries
3985 powerpcle-*-solaris*)
0036370f 3986 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3987 ;;
3988 powerpc-*-beos*)
6a789d5e 3989 noconfigdirs="$noconfigdirs gdb"
671aa708 3990 ;;
671aa708 3991 rs6000-*-lynxos*)
6a789d5e 3992 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3993 ;;
3994 rs6000-*-aix*)
6a789d5e 3995 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3996 ;;
3997 rs6000-*-*)
2909494b 3998 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3999 ;;
4000 m68k-apollo-*)
0036370f 4001 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 4002 ;;
ca9fe997 4003 microblaze*)
2909494b 4004 noconfigdirs="$noconfigdirs gprof"
ca9fe997 4005 ;;
d896cc4d 4006 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
4007 if test x$with_newlib = xyes; then
4008 noconfigdirs="$noconfigdirs gprof"
4009 fi
d9dced13 4010 ;;
671aa708 4011 mips*-*-irix5*)
0036370f 4012 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
4013 ;;
4014 mips*-*-irix6*)
2909494b 4015 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 4016 ;;
671aa708 4017 mips*-*-bsd*)
bc98bcc4 4018 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 4019 ;;
671aa708 4020 mips*-*-linux*)
671aa708 4021 ;;
bc98bcc4
JBG
4022 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4023 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4024 noconfigdirs="$noconfigdirs ld gas gprof"
4025 ;;
671aa708 4026 mips*-*-*)
2909494b 4027 noconfigdirs="$noconfigdirs gprof"
671aa708 4028 ;;
738f2522 4029 nvptx*-*-*)
738f2522
BS
4030 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4031 ;;
bc6d9014 4032 sh-*-*)
ea2002ba
CB
4033 case "${target}" in
4034 sh*-*-elf)
2909494b 4035 ;;
ea2002ba 4036 *)
2909494b 4037 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 4038 esac
671aa708 4039 ;;
671aa708 4040 sparc-*-sunos4*)
6a789d5e 4041 if test x${is_cross_compiler} = xno ; then
671aa708
NN
4042 use_gnu_ld=no
4043 fi
4044 ;;
b42f0d7e 4045 tic6x-*-*)
0d557ff8 4046 noconfigdirs="$noconfigdirs sim"
b42f0d7e 4047 ;;
a885ec24
AA
4048 tilepro*-*-* | tilegx*-*-*)
4049 noconfigdirs="$noconfigdirs sim"
4050 ;;
671aa708 4051 v810-*-*)
0036370f 4052 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
4053 ;;
4054 vax-*-*)
2909494b 4055 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 4056 ;;
1fc1d82e
MR
4057 wasm32-*-*)
4058 noconfigdirs="$noconfigdirs ld"
4059 ;;
c6c0594e 4060 loongarch*-*-linux*)
4061 ;;
4062 loongarch*-*-*)
4063 noconfigdirs="$noconfigdirs gprof"
4064 ;;
671aa708 4065esac
79c06341 4066
671aa708
NN
4067# If we aren't building newlib, then don't build libgloss, since libgloss
4068# depends upon some newlib header files.
4069case "${noconfigdirs}" in
4070 *target-libgloss*) ;;
4071 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4072esac
4073
671aa708 4074# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
4075host_makefile_frag=/dev/null
4076if test -d ${srcdir}/config ; then
4077case "${host}" in
f2a0e225 4078 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
4079 host_makefile_frag="config/mh-djgpp"
4080 ;;
4081 *-cygwin*)
2a79c47f 4082
5213506e
RW
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4084$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 4085echo a >cygwin-cat-check
e25a8c82 4086if test `cat cygwin-cat-check` = a ; then
2a79c47f 4087 rm cygwin-cat-check
5213506e
RW
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4089$as_echo "yes" >&6; }
2a79c47f
NC
4090else
4091 rm cygwin-cat-check
5213506e
RW
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093$as_echo "no" >&6; }
22e05272 4094 as_fn_error $? "The cat command does not ignore carriage return characters.
2a79c47f
NC
4095 Please either mount the build directory in binary mode or run the following
4096 commands before running any configure script:
4097set -o igncr
4098export SHELLOPTS
5213506e 4099 " "$LINENO" 5
2a79c47f
NC
4100fi
4101
671aa708
NN
4102 host_makefile_frag="config/mh-cygwin"
4103 ;;
c53a18d3 4104 *-mingw*)
1f5a6b84 4105 host_makefile_frag="config/mh-mingw"
95af8923 4106 ;;
cabb9d59 4107 alpha*-linux*)
13be44ed
UB
4108 host_makefile_frag="config/mh-alpha-linux"
4109 ;;
111eeb6e 4110 hppa*-hp-hpux*)
efd41714
PB
4111 host_makefile_frag="config/mh-pa"
4112 ;;
4113 hppa*-*)
4114 host_makefile_frag="config/mh-pa"
4115 ;;
54258e22 4116 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
d8ed14ce 4117 host_makefile_frag="config/mh-darwin"
be8fff81 4118 ;;
d19bca38
PB
4119 powerpc-*-aix*)
4120 host_makefile_frag="config/mh-ppc-aix"
4121 ;;
4122 rs6000-*-aix*)
4123 host_makefile_frag="config/mh-ppc-aix"
4124 ;;
671aa708
NN
4125esac
4126fi
4127
55ffb5ed 4128if test "${build}" != "${host}" ; then
0999159b
PB
4129 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4130 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4131 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
c841dc0a 4132 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
0999159b 4133 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3b5e8ee4 4134 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
0999159b 4135 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4136 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
b4c522fa 4137 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
0999159b
PB
4138 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4139 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4140 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4141 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4142 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4143 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4144else
4145 AR_FOR_BUILD="\$(AR)"
4146 AS_FOR_BUILD="\$(AS)"
fb0103e5 4147 CC_FOR_BUILD="\$(CC)"
0999159b 4148 CXX_FOR_BUILD="\$(CXX)"
3b5e8ee4 4149 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
0999159b 4150 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4151 GOC_FOR_BUILD="\$(GOC)"
b4c522fa 4152 GDC_FOR_BUILD="\$(GDC)"
0999159b
PB
4153 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4154 LD_FOR_BUILD="\$(LD)"
4155 NM_FOR_BUILD="\$(NM)"
4156 RANLIB_FOR_BUILD="\$(RANLIB)"
4157 WINDRES_FOR_BUILD="\$(WINDRES)"
4158 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4159fi
4160
4161ac_ext=c
1c710c3c
DJ
4162ac_cpp='$CPP $CPPFLAGS'
4163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4165ac_compiler_gnu=$ac_cv_c_compiler_gnu
4166if test -n "$ac_tool_prefix"; then
4167 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4168set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4171if ${ac_cv_prog_CC+:} false; then :
5213506e 4172 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4173else
4174 if test -n "$CC"; then
4175 ac_cv_prog_CC="$CC" # Let the user override the test.
4176else
4177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178for as_dir in $PATH
4179do
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
5213506e 4182 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4184 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4186 break 2
4187 fi
4188done
5213506e
RW
4189 done
4190IFS=$as_save_IFS
1c710c3c
DJ
4191
4192fi
4193fi
4194CC=$ac_cv_prog_CC
4195if test -n "$CC"; then
5213506e
RW
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4197$as_echo "$CC" >&6; }
1c710c3c 4198else
5213506e
RW
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200$as_echo "no" >&6; }
1c710c3c
DJ
4201fi
4202
5213506e 4203
1c710c3c
DJ
4204fi
4205if test -z "$ac_cv_prog_CC"; then
4206 ac_ct_CC=$CC
fb0103e5
RG
4207 # Extract the first word of "gcc", so it can be a program name with args.
4208set dummy gcc; ac_word=$2
5213506e
RW
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4211if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4212 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4213else
4214 if test -n "$ac_ct_CC"; then
4215 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4216else
4217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218for as_dir in $PATH
4219do
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
5213506e 4222 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4224 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4226 break 2
4227 fi
4228done
5213506e
RW
4229 done
4230IFS=$as_save_IFS
1c710c3c
DJ
4231
4232fi
4233fi
4234ac_ct_CC=$ac_cv_prog_ac_ct_CC
4235if test -n "$ac_ct_CC"; then
5213506e
RW
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4237$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4238else
5213506e
RW
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240$as_echo "no" >&6; }
1c710c3c
DJ
4241fi
4242
5213506e
RW
4243 if test "x$ac_ct_CC" = x; then
4244 CC=""
4245 else
4246 case $cross_compiling:$ac_tool_warned in
4247yes:)
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4250ac_tool_warned=yes ;;
4251esac
4252 CC=$ac_ct_CC
4253 fi
1c710c3c
DJ
4254else
4255 CC="$ac_cv_prog_CC"
4256fi
4257
4258if test -z "$CC"; then
5213506e
RW
4259 if test -n "$ac_tool_prefix"; then
4260 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4261set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4264if ${ac_cv_prog_CC+:} false; then :
5213506e 4265 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4266else
4267 if test -n "$CC"; then
4268 ac_cv_prog_CC="$CC" # Let the user override the test.
4269else
1c710c3c
DJ
4270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271for as_dir in $PATH
4272do
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
5213506e 4275 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4277 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4279 break 2
4280 fi
4281done
5213506e
RW
4282 done
4283IFS=$as_save_IFS
1c710c3c 4284
0b0dc272 4285fi
0b0dc272 4286fi
1c710c3c 4287CC=$ac_cv_prog_CC
af71363e 4288if test -n "$CC"; then
5213506e
RW
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4290$as_echo "$CC" >&6; }
2aeb72e9 4291else
5213506e
RW
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293$as_echo "no" >&6; }
2aeb72e9
DD
4294fi
4295
2aeb72e9 4296
5213506e 4297 fi
1c710c3c 4298fi
55ffb5ed
NN
4299if test -z "$CC"; then
4300 # Extract the first word of "cc", so it can be a program name with args.
4301set dummy cc; ac_word=$2
5213506e
RW
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4304if ${ac_cv_prog_CC+:} false; then :
5213506e 4305 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4306else
4307 if test -n "$CC"; then
4308 ac_cv_prog_CC="$CC" # Let the user override the test.
4309else
0b0dc272 4310 ac_prog_rejected=no
1c710c3c
DJ
4311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312for as_dir in $PATH
4313do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
5213506e 4316 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4318 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4319 ac_prog_rejected=yes
4320 continue
4321 fi
4322 ac_cv_prog_CC="cc"
5213506e 4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4324 break 2
4325 fi
4326done
5213506e
RW
4327 done
4328IFS=$as_save_IFS
1c710c3c 4329
55ffb5ed
NN
4330if test $ac_prog_rejected = yes; then
4331 # We found a bogon in the path, so make sure we never use it.
4332 set dummy $ac_cv_prog_CC
4333 shift
1c710c3c 4334 if test $# != 0; then
55ffb5ed
NN
4335 # We chose a different compiler from the bogus one.
4336 # However, it has the same basename, so the bogon will be chosen
4337 # first if we set CC to just the basename; use the full file name.
4338 shift
1c710c3c 4339 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4340 fi
4341fi
4342fi
4343fi
1c710c3c 4344CC=$ac_cv_prog_CC
55ffb5ed 4345if test -n "$CC"; then
5213506e
RW
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4347$as_echo "$CC" >&6; }
55ffb5ed 4348else
5213506e
RW
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350$as_echo "no" >&6; }
55ffb5ed
NN
4351fi
4352
5213506e 4353
1c710c3c
DJ
4354fi
4355if test -z "$CC"; then
4356 if test -n "$ac_tool_prefix"; then
5213506e 4357 for ac_prog in cl.exe
1c710c3c
DJ
4358 do
4359 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4360set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4363if ${ac_cv_prog_CC+:} false; then :
5213506e 4364 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4365else
4366 if test -n "$CC"; then
4367 ac_cv_prog_CC="$CC" # Let the user override the test.
4368else
1c710c3c
DJ
4369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH
4371do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
5213506e 4374 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4376 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4378 break 2
4379 fi
4380done
5213506e
RW
4381 done
4382IFS=$as_save_IFS
1c710c3c 4383
55ffb5ed
NN
4384fi
4385fi
1c710c3c 4386CC=$ac_cv_prog_CC
55ffb5ed 4387if test -n "$CC"; then
5213506e
RW
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4389$as_echo "$CC" >&6; }
a4b9e93e 4390else
5213506e
RW
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392$as_echo "no" >&6; }
fb0103e5 4393fi
af71363e 4394
5213506e 4395
1c710c3c
DJ
4396 test -n "$CC" && break
4397 done
af71363e 4398fi
1c710c3c
DJ
4399if test -z "$CC"; then
4400 ac_ct_CC=$CC
5213506e 4401 for ac_prog in cl.exe
1c710c3c
DJ
4402do
4403 # Extract the first word of "$ac_prog", so it can be a program name with args.
4404set dummy $ac_prog; ac_word=$2
5213506e
RW
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4407if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4408 $as_echo_n "(cached) " >&6
0b0dc272 4409else
1c710c3c
DJ
4410 if test -n "$ac_ct_CC"; then
4411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4412else
1c710c3c
DJ
4413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH
4415do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
5213506e 4418 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4420 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4422 break 2
4423 fi
4424done
5213506e
RW
4425 done
4426IFS=$as_save_IFS
1c710c3c 4427
af71363e
AS
4428fi
4429fi
1c710c3c
DJ
4430ac_ct_CC=$ac_cv_prog_ac_ct_CC
4431if test -n "$ac_ct_CC"; then
5213506e
RW
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4433$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4434else
5213506e
RW
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436$as_echo "no" >&6; }
af71363e 4437fi
0b0dc272 4438
5213506e 4439
1c710c3c
DJ
4440 test -n "$ac_ct_CC" && break
4441done
4442
5213506e
RW
4443 if test "x$ac_ct_CC" = x; then
4444 CC=""
4445 else
4446 case $cross_compiling:$ac_tool_warned in
4447yes:)
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4450ac_tool_warned=yes ;;
4451esac
4452 CC=$ac_ct_CC
4453 fi
1c710c3c
DJ
4454fi
4455
4456fi
4457
4458
5213506e
RW
4459test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4461as_fn_error $? "no acceptable C compiler found in \$PATH
4462See \`config.log' for more details" "$LINENO" 5; }
1c710c3c
DJ
4463
4464# Provide some information about the compiler.
5213506e
RW
4465$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4466set X $ac_compile
4467ac_compiler=$2
4468for ac_option in --version -v -V -qversion; do
4469 { { ac_try="$ac_compiler $ac_option >&5"
4470case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4473esac
4474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4475$as_echo "$ac_try_echo"; } >&5
4476 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4477 ac_status=$?
5213506e
RW
4478 if test -s conftest.err; then
4479 sed '10a\
4480... rest of stderr output deleted ...
4481 10q' conftest.err >conftest.er1
4482 cat conftest.er1 >&5
5213506e 4483 fi
22e05272 4484 rm -f conftest.er1 conftest.err
5213506e
RW
4485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4486 test $ac_status = 0; }
4487done
1c710c3c 4488
5213506e 4489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4490/* end confdefs.h. */
4491
4492int
4493main ()
4494{
4495
4496 ;
4497 return 0;
4498}
4499_ACEOF
4500ac_clean_files_save=$ac_clean_files
22e05272 4501ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1c710c3c
DJ
4502# Try to create an executable without -o first, disregard a.out.
4503# It will help us diagnose broken compilers, and finding out an intuition
4504# of exeext.
22e05272
JM
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4506$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4507ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4508
4509# The possible output files:
4510ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4511
4512ac_rmfiles=
4513for ac_file in $ac_files
4514do
4515 case $ac_file in
4516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4517 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4518 esac
4519done
4520rm -f $ac_rmfiles
4521
4522if { { ac_try="$ac_link_default"
4523case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526esac
4527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528$as_echo "$ac_try_echo"; } >&5
4529 (eval "$ac_link_default") 2>&5
1c710c3c 4530 ac_status=$?
5213506e
RW
4531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532 test $ac_status = 0; }; then :
4533 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4534# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4535# in a Makefile. We should not override ac_cv_exeext if it was cached,
4536# so that the user can short-circuit this test for compilers unknown to
4537# Autoconf.
4538for ac_file in $ac_files ''
1c710c3c
DJ
4539do
4540 test -f "$ac_file" || continue
4541 case $ac_file in
5213506e 4542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4543 ;;
4544 [ab].out )
4545 # We found the default executable, but exeext='' is most
4546 # certainly right.
4547 break;;
4548 *.* )
5213506e
RW
4549 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4550 then :; else
4551 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4552 fi
4553 # We set ac_cv_exeext here because the later test for it is not
4554 # safe: cross compilers may not add the suffix if given an `-o'
4555 # argument, so we may need to know it at that point already.
4556 # Even if this section looks crufty: it has the advantage of
4557 # actually working.
1c710c3c
DJ
4558 break;;
4559 * )
4560 break;;
4561 esac
4562done
5213506e
RW
4563test "$ac_cv_exeext" = no && ac_cv_exeext=
4564
1c710c3c 4565else
5213506e
RW
4566 ac_file=''
4567fi
5213506e 4568if test -z "$ac_file"; then :
22e05272
JM
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570$as_echo "no" >&6; }
4571$as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4572sed 's/^/| /' conftest.$ac_ext >&5
4573
5213506e
RW
4574{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4576as_fn_error 77 "C compiler cannot create executables
4577See \`config.log' for more details" "$LINENO" 5; }
4578else
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4580$as_echo "yes" >&6; }
1c710c3c 4581fi
22e05272
JM
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4583$as_echo_n "checking for C compiler default output file name... " >&6; }
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4585$as_echo "$ac_file" >&6; }
1c710c3c 4586ac_exeext=$ac_cv_exeext
1c710c3c 4587
22e05272 4588rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1c710c3c 4589ac_clean_files=$ac_clean_files_save
5213506e
RW
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4591$as_echo_n "checking for suffix of executables... " >&6; }
4592if { { ac_try="$ac_link"
4593case "(($ac_try" in
4594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595 *) ac_try_echo=$ac_try;;
4596esac
4597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4598$as_echo "$ac_try_echo"; } >&5
4599 (eval "$ac_link") 2>&5
1c710c3c 4600 ac_status=$?
5213506e
RW
4601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4602 test $ac_status = 0; }; then :
1c710c3c
DJ
4603 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4604# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4605# work properly (i.e., refer to `conftest.exe'), while it won't with
4606# `rm'.
4607for ac_file in conftest.exe conftest conftest.*; do
4608 test -f "$ac_file" || continue
4609 case $ac_file in
5213506e 4610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4611 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4612 break;;
4613 * ) break;;
4614 esac
4615done
af71363e 4616else
5213506e
RW
4617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4619as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4620See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4621fi
22e05272 4622rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4624$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4625
4626rm -f conftest.$ac_ext
4627EXEEXT=$ac_cv_exeext
4628ac_exeext=$EXEEXT
22e05272
JM
4629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630/* end confdefs.h. */
4631#include <stdio.h>
4632int
4633main ()
4634{
4635FILE *f = fopen ("conftest.out", "w");
4636 return ferror (f) || fclose (f) != 0;
4637
4638 ;
4639 return 0;
4640}
4641_ACEOF
4642ac_clean_files="$ac_clean_files conftest.out"
4643# Check that the compiler produces executables we can run. If not, either
4644# the compiler is broken, or we cross compile.
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4646$as_echo_n "checking whether we are cross compiling... " >&6; }
4647if test "$cross_compiling" != yes; then
4648 { { ac_try="$ac_link"
4649case "(($ac_try" in
4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4652esac
4653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4654$as_echo "$ac_try_echo"; } >&5
4655 (eval "$ac_link") 2>&5
4656 ac_status=$?
4657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4658 test $ac_status = 0; }
4659 if { ac_try='./conftest$ac_cv_exeext'
4660 { { case "(($ac_try" in
4661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662 *) ac_try_echo=$ac_try;;
4663esac
4664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4665$as_echo "$ac_try_echo"; } >&5
4666 (eval "$ac_try") 2>&5
4667 ac_status=$?
4668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4669 test $ac_status = 0; }; }; then
4670 cross_compiling=no
4671 else
4672 if test "$cross_compiling" = maybe; then
4673 cross_compiling=yes
4674 else
4675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4677as_fn_error $? "cannot run C compiled programs.
4678If you meant to cross compile, use \`--host'.
4679See \`config.log' for more details" "$LINENO" 5; }
4680 fi
4681 fi
4682fi
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4684$as_echo "$cross_compiling" >&6; }
4685
4686rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4687ac_clean_files=$ac_clean_files_save
5213506e
RW
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4689$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4690if ${ac_cv_objext+:} false; then :
5213506e 4691 $as_echo_n "(cached) " >&6
1c710c3c 4692else
5213506e 4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4694/* end confdefs.h. */
4695
4696int
4697main ()
4698{
4699
4700 ;
4701 return 0;
4702}
4703_ACEOF
4704rm -f conftest.o conftest.obj
5213506e
RW
4705if { { ac_try="$ac_compile"
4706case "(($ac_try" in
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4709esac
4710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4711$as_echo "$ac_try_echo"; } >&5
4712 (eval "$ac_compile") 2>&5
1c710c3c 4713 ac_status=$?
5213506e
RW
4714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4715 test $ac_status = 0; }; then :
4716 for ac_file in conftest.o conftest.obj conftest.*; do
4717 test -f "$ac_file" || continue;
1c710c3c 4718 case $ac_file in
5213506e 4719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4720 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4721 break;;
4722 esac
4723done
4724else
5213506e 4725 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4726sed 's/^/| /' conftest.$ac_ext >&5
4727
5213506e
RW
4728{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4730as_fn_error $? "cannot compute suffix of object files: cannot compile
4731See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4732fi
1c710c3c
DJ
4733rm -f conftest.$ac_cv_objext conftest.$ac_ext
4734fi
5213506e
RW
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4736$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4737OBJEXT=$ac_cv_objext
4738ac_objext=$OBJEXT
5213506e
RW
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4740$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4741if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4742 $as_echo_n "(cached) " >&6
1c710c3c 4743else
5213506e 4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4745/* end confdefs.h. */
4746
4747int
4748main ()
4749{
4750#ifndef __GNUC__
4751 choke me
4752#endif
4753
4754 ;
4755 return 0;
4756}
4757_ACEOF
5213506e 4758if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4759 ac_compiler_gnu=yes
4760else
5213506e 4761 ac_compiler_gnu=no
1c710c3c 4762fi
5213506e 4763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4764ac_cv_c_compiler_gnu=$ac_compiler_gnu
4765
4766fi
5213506e
RW
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4768$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4769if test $ac_compiler_gnu = yes; then
4770 GCC=yes
4771else
4772 GCC=
4773fi
1c710c3c
DJ
4774ac_test_CFLAGS=${CFLAGS+set}
4775ac_save_CFLAGS=$CFLAGS
5213506e
RW
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4777$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4778if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4779 $as_echo_n "(cached) " >&6
4780else
4781 ac_save_c_werror_flag=$ac_c_werror_flag
4782 ac_c_werror_flag=yes
4783 ac_cv_prog_cc_g=no
4784 CFLAGS="-g"
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4786/* end confdefs.h. */
4787
4788int
4789main ()
4790{
4791
4792 ;
4793 return 0;
4794}
4795_ACEOF
5213506e 4796if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4797 ac_cv_prog_cc_g=yes
4798else
5213506e
RW
4799 CFLAGS=""
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801/* end confdefs.h. */
4802
4803int
4804main ()
4805{
4806
4807 ;
4808 return 0;
4809}
4810_ACEOF
4811if ac_fn_c_try_compile "$LINENO"; then :
4812
4813else
4814 ac_c_werror_flag=$ac_save_c_werror_flag
4815 CFLAGS="-g"
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817/* end confdefs.h. */
af71363e 4818
5213506e
RW
4819int
4820main ()
4821{
4822
4823 ;
4824 return 0;
4825}
4826_ACEOF
4827if ac_fn_c_try_compile "$LINENO"; then :
4828 ac_cv_prog_cc_g=yes
4829fi
4830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4831fi
5213506e 4832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4833fi
5213506e
RW
4834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 ac_c_werror_flag=$ac_save_c_werror_flag
4836fi
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4838$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4839if test "$ac_test_CFLAGS" = set; then
1c710c3c 4840 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4841elif test $ac_cv_prog_cc_g = yes; then
4842 if test "$GCC" = yes; then
4843 CFLAGS="-g -O2"
4844 else
4845 CFLAGS="-g"
4846 fi
4847else
4848 if test "$GCC" = yes; then
4849 CFLAGS="-O2"
4850 else
4851 CFLAGS=
4852 fi
4853fi
5213506e
RW
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4855$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4856if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4857 $as_echo_n "(cached) " >&6
1c710c3c 4858else
5213506e 4859 ac_cv_prog_cc_c89=no
1c710c3c 4860ac_save_CC=$CC
5213506e 4861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4862/* end confdefs.h. */
4863#include <stdarg.h>
4864#include <stdio.h>
22e05272 4865struct stat;
1c710c3c
DJ
4866/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4867struct buf { int x; };
4868FILE * (*rcsopen) (struct buf *, struct stat *, int);
4869static char *e (p, i)
4870 char **p;
4871 int i;
4872{
4873 return p[i];
4874}
4875static char *f (char * (*g) (char **, int), char **p, ...)
4876{
4877 char *s;
4878 va_list v;
4879 va_start (v,p);
4880 s = g (p, va_arg (v,int));
4881 va_end (v);
4882 return s;
4883}
4884
4885/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4886 function prototypes and stuff, but not '\xHH' hex character constants.
4887 These don't provoke an error unfortunately, instead are silently treated
5213506e 4888 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4889 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4890 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4891 that's true only with -std. */
1c710c3c
DJ
4892int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4893
5213506e
RW
4894/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4895 inside strings and character constants. */
4896#define FOO(x) 'x'
4897int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4898
1c710c3c
DJ
4899int test (int i, double x);
4900struct s1 {int (*f) (int a);};
4901struct s2 {int (*f) (double a);};
4902int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4903int argc;
4904char **argv;
4905int
4906main ()
4907{
4908return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4909 ;
4910 return 0;
4911}
4912_ACEOF
5213506e
RW
4913for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4914 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4915do
4916 CC="$ac_save_CC $ac_arg"
5213506e
RW
4917 if ac_fn_c_try_compile "$LINENO"; then :
4918 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4919fi
5213506e
RW
4920rm -f core conftest.err conftest.$ac_objext
4921 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4922done
5213506e 4923rm -f conftest.$ac_ext
1c710c3c
DJ
4924CC=$ac_save_CC
4925
4926fi
5213506e
RW
4927# AC_CACHE_VAL
4928case "x$ac_cv_prog_cc_c89" in
4929 x)
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4931$as_echo "none needed" >&6; } ;;
4932 xno)
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4934$as_echo "unsupported" >&6; } ;;
1c710c3c 4935 *)
5213506e
RW
4936 CC="$CC $ac_cv_prog_cc_c89"
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4938$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4939esac
5213506e 4940if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4941
2aeb72e9
DD
4942fi
4943
2aeb72e9
DD
4944ac_ext=c
4945ac_cpp='$CPP $CPPFLAGS'
4946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948ac_compiler_gnu=$ac_cv_c_compiler_gnu
4949
91743432
NC
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4951$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4952if ${ac_cv_prog_cc_c99+:} false; then :
4953 $as_echo_n "(cached) " >&6
4954else
4955 ac_cv_prog_cc_c99=no
4956ac_save_CC=$CC
4957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958/* end confdefs.h. */
4959#include <stdarg.h>
4960#include <stdbool.h>
4961#include <stdlib.h>
4962#include <wchar.h>
4963#include <stdio.h>
4964
4965// Check varargs macros. These examples are taken from C99 6.10.3.5.
4966#define debug(...) fprintf (stderr, __VA_ARGS__)
4967#define showlist(...) puts (#__VA_ARGS__)
4968#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4969static void
4970test_varargs_macros (void)
4971{
4972 int x = 1234;
4973 int y = 5678;
4974 debug ("Flag");
4975 debug ("X = %d\n", x);
4976 showlist (The first, second, and third items.);
4977 report (x>y, "x is %d but y is %d", x, y);
4978}
4979
4980// Check long long types.
4981#define BIG64 18446744073709551615ull
4982#define BIG32 4294967295ul
4983#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4984#if !BIG_OK
4985 your preprocessor is broken;
4986#endif
4987#if BIG_OK
4988#else
4989 your preprocessor is broken;
4990#endif
4991static long long int bignum = -9223372036854775807LL;
4992static unsigned long long int ubignum = BIG64;
4993
4994struct incomplete_array
4995{
4996 int datasize;
4997 double data[];
4998};
4999
5000struct named_init {
5001 int number;
5002 const wchar_t *name;
5003 double average;
5004};
5005
5006typedef const char *ccp;
5007
5008static inline int
5009test_restrict (ccp restrict text)
5010{
5011 // See if C++-style comments work.
5012 // Iterate through items via the restricted pointer.
5013 // Also check for declarations in for loops.
5014 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5015 continue;
5016 return 0;
5017}
5018
5019// Check varargs and va_copy.
5020static void
5021test_varargs (const char *format, ...)
5022{
5023 va_list args;
5024 va_start (args, format);
5025 va_list args_copy;
5026 va_copy (args_copy, args);
5027
5028 const char *str;
5029 int number;
5030 float fnumber;
5031
5032 while (*format)
5033 {
5034 switch (*format++)
5035 {
5036 case 's': // string
5037 str = va_arg (args_copy, const char *);
5038 break;
5039 case 'd': // int
5040 number = va_arg (args_copy, int);
5041 break;
5042 case 'f': // float
5043 fnumber = va_arg (args_copy, double);
5044 break;
5045 default:
5046 break;
5047 }
5048 }
5049 va_end (args_copy);
5050 va_end (args);
5051}
5052
5053int
5054main ()
5055{
5056
5057 // Check bool.
5058 _Bool success = false;
5059
5060 // Check restrict.
5061 if (test_restrict ("String literal") == 0)
5062 success = true;
5063 char *restrict newvar = "Another string";
5064
5065 // Check varargs.
5066 test_varargs ("s, d' f .", "string", 65, 34.234);
5067 test_varargs_macros ();
5068
5069 // Check flexible array members.
5070 struct incomplete_array *ia =
5071 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5072 ia->datasize = 10;
5073 for (int i = 0; i < ia->datasize; ++i)
5074 ia->data[i] = i * 1.234;
5075
5076 // Check named initializers.
5077 struct named_init ni = {
5078 .number = 34,
5079 .name = L"Test wide string",
5080 .average = 543.34343,
5081 };
5082
5083 ni.number = 58;
5084
5085 int dynamic_array[ni.number];
5086 dynamic_array[ni.number - 1] = 543;
5087
5088 // work around unused variable warnings
5089 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5090 || dynamic_array[ni.number - 1] != 543);
5091
5092 ;
5093 return 0;
5094}
5095_ACEOF
5096for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5097do
5098 CC="$ac_save_CC $ac_arg"
5099 if ac_fn_c_try_compile "$LINENO"; then :
5100 ac_cv_prog_cc_c99=$ac_arg
5101fi
5102rm -f core conftest.err conftest.$ac_objext
5103 test "x$ac_cv_prog_cc_c99" != "xno" && break
5104done
5105rm -f conftest.$ac_ext
5106CC=$ac_save_CC
5107
5108fi
5109# AC_CACHE_VAL
5110case "x$ac_cv_prog_cc_c99" in
5111 x)
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5113$as_echo "none needed" >&6; } ;;
5114 xno)
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5116$as_echo "unsupported" >&6; } ;;
5117 *)
5118 CC="$CC $ac_cv_prog_cc_c99"
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5120$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5121esac
5122if test "x$ac_cv_prog_cc_c99" != xno; then :
5123
5124fi
5125
5126
5213506e 5127ac_ext=cpp
2aeb72e9
DD
5128ac_cpp='$CXXCPP $CPPFLAGS'
5129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
5132if test -z "$CXX"; then
5133 if test -n "$CCC"; then
5134 CXX=$CCC
5135 else
5136 if test -n "$ac_tool_prefix"; then
5137 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
5138 do
5139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5140set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
5141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5143if ${ac_cv_prog_CXX+:} false; then :
5213506e 5144 $as_echo_n "(cached) " >&6
2aeb72e9
DD
5145else
5146 if test -n "$CXX"; then
5147 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5148else
5149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150for as_dir in $PATH
5151do
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5213506e 5154 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2aeb72e9 5156 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
5158 break 2
5159 fi
5160done
5213506e
RW
5161 done
5162IFS=$as_save_IFS
55ffb5ed 5163
c3a86da9
DJ
5164fi
5165fi
5166CXX=$ac_cv_prog_CXX
5167if test -n "$CXX"; then
5213506e
RW
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5169$as_echo "$CXX" >&6; }
c3a86da9 5170else
5213506e
RW
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172$as_echo "no" >&6; }
c3a86da9
DJ
5173fi
5174
5213506e 5175
c3a86da9
DJ
5176 test -n "$CXX" && break
5177 done
5178fi
5179if test -z "$CXX"; then
5180 ac_ct_CXX=$CXX
5213506e 5181 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
5182do
5183 # Extract the first word of "$ac_prog", so it can be a program name with args.
5184set dummy $ac_prog; ac_word=$2
5213506e
RW
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5187if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5213506e 5188 $as_echo_n "(cached) " >&6
c3a86da9
DJ
5189else
5190 if test -n "$ac_ct_CXX"; then
5191 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5192else
5193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194for as_dir in $PATH
5195do
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5213506e 5198 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9 5200 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
5202 break 2
5203 fi
5204done
5213506e
RW
5205 done
5206IFS=$as_save_IFS
c3a86da9
DJ
5207
5208fi
5209fi
5210ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5211if test -n "$ac_ct_CXX"; then
5213506e
RW
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5213$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 5214else
5213506e
RW
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216$as_echo "no" >&6; }
c3a86da9
DJ
5217fi
5218
5213506e 5219
c3a86da9
DJ
5220 test -n "$ac_ct_CXX" && break
5221done
c3a86da9 5222
5213506e
RW
5223 if test "x$ac_ct_CXX" = x; then
5224 CXX="g++"
5225 else
5226 case $cross_compiling:$ac_tool_warned in
5227yes:)
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5230ac_tool_warned=yes ;;
5231esac
5232 CXX=$ac_ct_CXX
5233 fi
c3a86da9
DJ
5234fi
5235
5213506e
RW
5236 fi
5237fi
c3a86da9 5238# Provide some information about the compiler.
5213506e
RW
5239$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5240set X $ac_compile
5241ac_compiler=$2
5242for ac_option in --version -v -V -qversion; do
5243 { { ac_try="$ac_compiler $ac_option >&5"
5244case "(($ac_try" in
5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246 *) ac_try_echo=$ac_try;;
5247esac
5248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5249$as_echo "$ac_try_echo"; } >&5
5250 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 5251 ac_status=$?
5213506e
RW
5252 if test -s conftest.err; then
5253 sed '10a\
5254... rest of stderr output deleted ...
5255 10q' conftest.err >conftest.er1
5256 cat conftest.er1 >&5
5213506e 5257 fi
22e05272 5258 rm -f conftest.er1 conftest.err
5213506e
RW
5259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5260 test $ac_status = 0; }
5261done
c3a86da9 5262
5213506e
RW
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5264$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5265if ${ac_cv_cxx_compiler_gnu+:} false; then :
5213506e 5266 $as_echo_n "(cached) " >&6
c3a86da9 5267else
5213506e 5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5269/* end confdefs.h. */
5270
5271int
5272main ()
5273{
5274#ifndef __GNUC__
5275 choke me
5276#endif
5277
5278 ;
5279 return 0;
5280}
5281_ACEOF
5213506e 5282if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5283 ac_compiler_gnu=yes
5284else
5213506e 5285 ac_compiler_gnu=no
c3a86da9 5286fi
5213506e 5287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
5288ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5289
5290fi
5213506e
RW
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5292$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5293if test $ac_compiler_gnu = yes; then
5294 GXX=yes
5295else
5296 GXX=
5297fi
c3a86da9
DJ
5298ac_test_CXXFLAGS=${CXXFLAGS+set}
5299ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
5300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5301$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5302if ${ac_cv_prog_cxx_g+:} false; then :
5213506e
RW
5303 $as_echo_n "(cached) " >&6
5304else
5305 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5306 ac_cxx_werror_flag=yes
5307 ac_cv_prog_cxx_g=no
5308 CXXFLAGS="-g"
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5310/* end confdefs.h. */
5311
5312int
5313main ()
5314{
5315
5316 ;
5317 return 0;
5318}
5319_ACEOF
5213506e 5320if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5321 ac_cv_prog_cxx_g=yes
5322else
5213506e
RW
5323 CXXFLAGS=""
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5325/* end confdefs.h. */
5213506e 5326
c3a86da9
DJ
5327int
5328main ()
5329{
5213506e 5330
c3a86da9
DJ
5331 ;
5332 return 0;
5333}
5334_ACEOF
5213506e 5335if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5336
5213506e
RW
5337else
5338 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5339 CXXFLAGS="-g"
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5341/* end confdefs.h. */
5213506e 5342
c3a86da9
DJ
5343int
5344main ()
5345{
5213506e 5346
c3a86da9
DJ
5347 ;
5348 return 0;
5349}
5350_ACEOF
5213506e
RW
5351if ac_fn_cxx_try_compile "$LINENO"; then :
5352 ac_cv_prog_cxx_g=yes
11a67599 5353fi
5213506e
RW
5354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355fi
5356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357fi
5358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5359 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5360fi
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5362$as_echo "$ac_cv_prog_cxx_g" >&6; }
5363if test "$ac_test_CXXFLAGS" = set; then
5364 CXXFLAGS=$ac_save_CXXFLAGS
5365elif test $ac_cv_prog_cxx_g = yes; then
5366 if test "$GXX" = yes; then
5367 CXXFLAGS="-g -O2"
5368 else
5369 CXXFLAGS="-g"
5370 fi
5371else
5372 if test "$GXX" = yes; then
5373 CXXFLAGS="-O2"
5374 else
5375 CXXFLAGS=
5376 fi
c3a86da9 5377fi
c3a86da9
DJ
5378ac_ext=c
5379ac_cpp='$CPP $CPPFLAGS'
5380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5382ac_compiler_gnu=$ac_cv_c_compiler_gnu
5383
5384
5385# We must set the default linker to the linker used by gcc for the correct
5386# operation of libtool. If LD is not defined and we are using gcc, try to
5387# set the LD default to the ld used by gcc.
5388if test -z "$LD"; then
5389 if test "$GCC" = yes; then
5390 case $build in
5391 *-*-mingw*)
5392 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5393 *)
5394 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5395 esac
5396 case $gcc_prog_ld in
5397 # Accept absolute paths.
5398 [\\/]* | [A-Za-z]:[\\/]*)
5399 LD="$gcc_prog_ld" ;;
5400 esac
5401 fi
23f6b2f9
PB
5402fi
5403
0b21f5d3
EB
5404# Check whether -static-libstdc++ -static-libgcc is supported.
5405have_static_libs=no
5406if test "$GCC" = yes; then
5407 saved_LDFLAGS="$LDFLAGS"
5408
5409 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5411$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5412 ac_ext=cpp
5413ac_cpp='$CXXCPP $CPPFLAGS'
5414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5417
5418
5419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420/* end confdefs.h. */
0d6414b2
EB
5421
5422#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5423#error -static-libstdc++ not implemented
5424#endif
0b21f5d3
EB
5425int main() {}
5426_ACEOF
5427if ac_fn_cxx_try_link "$LINENO"; then :
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5429$as_echo "yes" >&6; }; have_static_libs=yes
5430else
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432$as_echo "no" >&6; }
5433fi
5434rm -f core conftest.err conftest.$ac_objext \
5435 conftest$ac_exeext conftest.$ac_ext
5436 ac_ext=c
5437ac_cpp='$CPP $CPPFLAGS'
5438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440ac_compiler_gnu=$ac_cv_c_compiler_gnu
5441
5442
5443 LDFLAGS="$saved_LDFLAGS"
5444fi
5445
23f6b2f9
PB
5446
5447
55ffb5ed 5448
1c710c3c
DJ
5449if test -n "$ac_tool_prefix"; then
5450 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5451set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5454if ${ac_cv_prog_GNATBIND+:} false; then :
5213506e 5455 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5456else
5457 if test -n "$GNATBIND"; then
5458 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5459else
1c710c3c
DJ
5460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461for as_dir in $PATH
5462do
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5213506e 5465 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5467 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5469 break 2
5470 fi
5471done
5213506e
RW
5472 done
5473IFS=$as_save_IFS
1c710c3c 5474
55ffb5ed
NN
5475fi
5476fi
1c710c3c 5477GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5478if test -n "$GNATBIND"; then
5213506e
RW
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5480$as_echo "$GNATBIND" >&6; }
55ffb5ed 5481else
5213506e
RW
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483$as_echo "no" >&6; }
55ffb5ed
NN
5484fi
5485
5213506e 5486
1c710c3c 5487fi
55ffb5ed 5488if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5489 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5490 # Extract the first word of "gnatbind", so it can be a program name with args.
5491set dummy gnatbind; ac_word=$2
5213506e
RW
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5494if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5213506e 5495 $as_echo_n "(cached) " >&6
55ffb5ed 5496else
1c710c3c
DJ
5497 if test -n "$ac_ct_GNATBIND"; then
5498 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5499else
1c710c3c
DJ
5500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501for as_dir in $PATH
5502do
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
5213506e 5505 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5507 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5509 break 2
5510 fi
5511done
5213506e
RW
5512 done
5513IFS=$as_save_IFS
1c710c3c 5514
55ffb5ed
NN
5515fi
5516fi
1c710c3c
DJ
5517ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5518if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5520$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5521else
5213506e
RW
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523$as_echo "no" >&6; }
55ffb5ed
NN
5524fi
5525
5213506e
RW
5526 if test "x$ac_ct_GNATBIND" = x; then
5527 GNATBIND="no"
5528 else
5529 case $cross_compiling:$ac_tool_warned in
5530yes:)
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5533ac_tool_warned=yes ;;
5534esac
5535 GNATBIND=$ac_ct_GNATBIND
5536 fi
55ffb5ed 5537else
1c710c3c 5538 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5539fi
5540
1c710c3c
DJ
5541if test -n "$ac_tool_prefix"; then
5542 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5543set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5546if ${ac_cv_prog_GNATMAKE+:} false; then :
5213506e 5547 $as_echo_n "(cached) " >&6
5305be7e
RG
5548else
5549 if test -n "$GNATMAKE"; then
5550 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5551else
1c710c3c
DJ
5552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553for as_dir in $PATH
5554do
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
5213506e 5557 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5559 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5561 break 2
5562 fi
5563done
5213506e
RW
5564 done
5565IFS=$as_save_IFS
1c710c3c 5566
5305be7e
RG
5567fi
5568fi
1c710c3c 5569GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5570if test -n "$GNATMAKE"; then
5213506e
RW
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5572$as_echo "$GNATMAKE" >&6; }
5305be7e 5573else
5213506e
RW
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575$as_echo "no" >&6; }
5305be7e
RG
5576fi
5577
5213506e 5578
1c710c3c 5579fi
5305be7e 5580if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5581 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5582 # Extract the first word of "gnatmake", so it can be a program name with args.
5583set dummy gnatmake; ac_word=$2
5213506e
RW
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5586if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5213506e 5587 $as_echo_n "(cached) " >&6
5305be7e 5588else
1c710c3c
DJ
5589 if test -n "$ac_ct_GNATMAKE"; then
5590 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5591else
1c710c3c
DJ
5592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593for as_dir in $PATH
5594do
5595 IFS=$as_save_IFS
5596 test -z "$as_dir" && as_dir=.
5213506e 5597 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5599 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5601 break 2
5602 fi
5603done
5213506e
RW
5604 done
5605IFS=$as_save_IFS
1c710c3c 5606
5305be7e
RG
5607fi
5608fi
1c710c3c
DJ
5609ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5610if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5612$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5613else
5213506e
RW
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615$as_echo "no" >&6; }
5305be7e
RG
5616fi
5617
5213506e
RW
5618 if test "x$ac_ct_GNATMAKE" = x; then
5619 GNATMAKE="no"
5620 else
5621 case $cross_compiling:$ac_tool_warned in
5622yes:)
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5625ac_tool_warned=yes ;;
5626esac
5627 GNATMAKE=$ac_ct_GNATMAKE
5628 fi
5305be7e 5629else
1c710c3c 5630 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5631fi
5632
71f068a9
RS
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5634$as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
22e05272 5635if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5213506e 5636 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5637else
5638 cat >conftest.adb <<EOF
71f068a9
RS
5639pragma Warnings (Off);
5640with System.CRTL;
5641pragma Warnings (On);
5642use type System.CRTL.int64;
55ffb5ed
NN
5643procedure conftest is begin null; end conftest;
5644EOF
5645acx_cv_cc_gcc_supports_ada=no
5646# There is a bug in old released versions of GCC which causes the
5647# driver to exit successfully when the appropriate language module
5648# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5649# Therefore we must check for the error message as well as an
5650# unsuccessful exit.
1db673ca
RO
5651# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5652# given a .adb file, but produce no object file. So we must check
5653# if an object file was really produced to guard against this.
55ffb5ed 5654errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5655if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5656 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5657fi
5658rm -f conftest.*
5659fi
5213506e
RW
5660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5661$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5662
7cb62ef1 5663if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5664 have_gnat=yes
5665else
5666 have_gnat=no
5667fi
5668
5fee5ec3
IB
5669
5670
5671if test -n "$ac_tool_prefix"; then
5672 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5673set dummy ${ac_tool_prefix}gdc; ac_word=$2
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675$as_echo_n "checking for $ac_word... " >&6; }
5676if ${ac_cv_prog_GDC+:} false; then :
5677 $as_echo_n "(cached) " >&6
5678else
5679 if test -n "$GDC"; then
5680 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5681else
5682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683for as_dir in $PATH
5684do
5685 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5689 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 break 2
5692 fi
5693done
5694 done
5695IFS=$as_save_IFS
5696
5697fi
5698fi
5699GDC=$ac_cv_prog_GDC
5700if test -n "$GDC"; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5702$as_echo "$GDC" >&6; }
5703else
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705$as_echo "no" >&6; }
5706fi
5707
5708
5709fi
5710if test -z "$ac_cv_prog_GDC"; then
5711 ac_ct_GDC=$GDC
5712 # Extract the first word of "gdc", so it can be a program name with args.
5713set dummy gdc; ac_word=$2
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715$as_echo_n "checking for $ac_word... " >&6; }
5716if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5717 $as_echo_n "(cached) " >&6
5718else
5719 if test -n "$ac_ct_GDC"; then
5720 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5721else
5722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723for as_dir in $PATH
5724do
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729 ac_cv_prog_ac_ct_GDC="gdc"
5730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 break 2
5732 fi
5733done
5734 done
5735IFS=$as_save_IFS
5736
5737fi
5738fi
5739ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5740if test -n "$ac_ct_GDC"; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5742$as_echo "$ac_ct_GDC" >&6; }
5743else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745$as_echo "no" >&6; }
5746fi
5747
5748 if test "x$ac_ct_GDC" = x; then
5749 GDC="no"
5750 else
5751 case $cross_compiling:$ac_tool_warned in
5752yes:)
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5755ac_tool_warned=yes ;;
5756esac
5757 GDC=$ac_ct_GDC
5758 fi
5759else
5760 GDC="$ac_cv_prog_GDC"
5761fi
5762
7c6ae994
IB
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5764$as_echo_n "checking whether the D compiler works... " >&6; }
5765if ${acx_cv_d_compiler_works+:} false; then :
5766 $as_echo_n "(cached) " >&6
5767else
5768 cat >conftest.d <<EOF
5769module conftest; int main() { return 0; }
5770EOF
5771acx_cv_d_compiler_works=no
5fee5ec3 5772if test "x$GDC" != xno; then
7c6ae994
IB
5773 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5774 if test x"$errors" = x && test -f conftest.$ac_objext; then
5775 acx_cv_d_compiler_works=yes
5776 fi
5777 rm -f conftest.*
5778fi
5779fi
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5781$as_echo "$acx_cv_d_compiler_works" >&6; }
5782if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5fee5ec3
IB
5783 have_gdc=yes
5784else
5785 have_gdc=no
5786fi
5787
5213506e
RW
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5789$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
22e05272 5790if ${gcc_cv_prog_cmp_skip+:} false; then :
5213506e 5791 $as_echo_n "(cached) " >&6
a76494aa
PB
5792else
5793 echo abfoo >t1
5794 echo cdfoo >t2
b55e6680 5795 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5796 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5797 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5798 :
5799 else
5800 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5801 fi
5802 fi
a76494aa
PB
5803 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5804 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5805 :
a76494aa
PB
5806 else
5807 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5808 fi
5809 fi
5810 rm t1 t2
5811
5812fi
5213506e
RW
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5814$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5815do_compare="$gcc_cv_prog_cmp_skip"
5816
5817
55ffb5ed 5818
ff3ac0f4
ILT
5819# Check whether --enable-bootstrap was given.
5820if test "${enable_bootstrap+set}" = set; then :
5821 enableval=$enable_bootstrap;
5822else
5823 enable_bootstrap=default
5824fi
5825
5826
5827# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5828if test -r $srcdir/gcc/configure; then
5829 have_compiler=yes
5830else
5831 have_compiler=no
5832fi
ff3ac0f4
ILT
5833
5834case "$have_compiler:$host:$target:$enable_bootstrap" in
5835 *:*:*:no) ;;
5836
5837 # Default behavior. Enable bootstrap if we have a compiler
5838 # and we are in a native configuration.
5839 yes:$build:$build:default)
5840 enable_bootstrap=yes ;;
5841
5842 *:*:*:default)
5843 enable_bootstrap=no ;;
5844
5845 # We have a compiler and we are in a native configuration, bootstrap is ok
5846 yes:$build:$build:yes)
5847 ;;
5848
5849 # Other configurations, but we have a compiler. Assume the user knows
5850 # what he's doing.
5851 yes:*:*:yes)
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5853$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5854 ;;
5855
5856 # No compiler: if they passed --enable-bootstrap explicitly, fail
5857 no:*:*:yes)
22e05272 5858 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ff3ac0f4
ILT
5859
5860 # Fail if wrong command line
5861 *)
22e05272 5862 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ff3ac0f4
ILT
5863 ;;
5864esac
5865
5329b59a 5866# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
ffac9597
JM
5867# C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5868# require C++11 (or higher).
46070488 5869if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5329b59a 5870 CXX="$CXX -std=c++11"
ffac9597
JM
5871elif test "$have_compiler" = yes; then
5872 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5873 ac_ext=cpp
5874ac_cpp='$CXXCPP $CPPFLAGS'
5875ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5876ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5877ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5878 ac_success=no
5879
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5881$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5882if ${ax_cv_cxx_compile_cxx11+:} false; then :
5883 $as_echo_n "(cached) " >&6
5884else
5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886/* end confdefs.h. */
5887
5888
5889// If the compiler admits that it is not ready for C++11, why torture it?
5890// Hopefully, this will speed up the test.
5891
5892#ifndef __cplusplus
5893
5894#error "This is not a C++ compiler"
5895
5896#elif __cplusplus < 201103L
5897
5898#error "This is not a C++11 compiler"
5899
5900#else
5901
5902namespace cxx11
5903{
5904
5905 namespace test_static_assert
5906 {
5907
5908 template <typename T>
5909 struct check
5910 {
5911 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5912 };
5913
5914 }
5915
5916 namespace test_final_override
5917 {
5918
5919 struct Base
5920 {
5921 virtual ~Base() {}
5922 virtual void f() {}
5923 };
5924
5925 struct Derived : public Base
5926 {
5927 virtual ~Derived() override {}
5928 virtual void f() override {}
5929 };
5930
5931 }
5932
5933 namespace test_double_right_angle_brackets
5934 {
5935
5936 template < typename T >
5937 struct check {};
5938
5939 typedef check<void> single_type;
5940 typedef check<check<void>> double_type;
5941 typedef check<check<check<void>>> triple_type;
5942 typedef check<check<check<check<void>>>> quadruple_type;
5943
5944 }
5945
5946 namespace test_decltype
5947 {
5948
5949 int
5950 f()
5951 {
5952 int a = 1;
5953 decltype(a) b = 2;
5954 return a + b;
5955 }
5956
5957 }
5958
5959 namespace test_type_deduction
5960 {
5961
5962 template < typename T1, typename T2 >
5963 struct is_same
5964 {
5965 static const bool value = false;
5966 };
5967
5968 template < typename T >
5969 struct is_same<T, T>
5970 {
5971 static const bool value = true;
5972 };
5973
5974 template < typename T1, typename T2 >
5975 auto
5976 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5977 {
5978 return a1 + a2;
5979 }
5980
5981 int
5982 test(const int c, volatile int v)
5983 {
5984 static_assert(is_same<int, decltype(0)>::value == true, "");
5985 static_assert(is_same<int, decltype(c)>::value == false, "");
5986 static_assert(is_same<int, decltype(v)>::value == false, "");
5987 auto ac = c;
5988 auto av = v;
5989 auto sumi = ac + av + 'x';
5990 auto sumf = ac + av + 1.0;
5991 static_assert(is_same<int, decltype(ac)>::value == true, "");
5992 static_assert(is_same<int, decltype(av)>::value == true, "");
5993 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5994 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5995 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5996 return (sumf > 0.0) ? sumi : add(c, v);
5997 }
5998
5999 }
6000
6001 namespace test_noexcept
6002 {
6003
6004 int f() { return 0; }
6005 int g() noexcept { return 0; }
6006
6007 static_assert(noexcept(f()) == false, "");
6008 static_assert(noexcept(g()) == true, "");
6009
6010 }
6011
6012 namespace test_constexpr
6013 {
6014
6015 template < typename CharT >
6016 unsigned long constexpr
6017 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6018 {
6019 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6020 }
6021
6022 template < typename CharT >
6023 unsigned long constexpr
6024 strlen_c(const CharT *const s) noexcept
6025 {
6026 return strlen_c_r(s, 0UL);
6027 }
6028
6029 static_assert(strlen_c("") == 0UL, "");
6030 static_assert(strlen_c("1") == 1UL, "");
6031 static_assert(strlen_c("example") == 7UL, "");
6032 static_assert(strlen_c("another\0example") == 7UL, "");
6033
6034 }
6035
6036 namespace test_rvalue_references
6037 {
6038
6039 template < int N >
6040 struct answer
6041 {
6042 static constexpr int value = N;
6043 };
6044
6045 answer<1> f(int&) { return answer<1>(); }
6046 answer<2> f(const int&) { return answer<2>(); }
6047 answer<3> f(int&&) { return answer<3>(); }
6048
6049 void
6050 test()
6051 {
6052 int i = 0;
6053 const int c = 0;
6054 static_assert(decltype(f(i))::value == 1, "");
6055 static_assert(decltype(f(c))::value == 2, "");
6056 static_assert(decltype(f(0))::value == 3, "");
6057 }
6058
6059 }
6060
6061 namespace test_uniform_initialization
6062 {
6063
6064 struct test
6065 {
6066 static const int zero {};
6067 static const int one {1};
6068 };
6069
6070 static_assert(test::zero == 0, "");
6071 static_assert(test::one == 1, "");
6072
6073 }
6074
6075 namespace test_lambdas
6076 {
6077
6078 void
6079 test1()
6080 {
6081 auto lambda1 = [](){};
6082 auto lambda2 = lambda1;
6083 lambda1();
6084 lambda2();
6085 }
6086
6087 int
6088 test2()
6089 {
6090 auto a = [](int i, int j){ return i + j; }(1, 2);
6091 auto b = []() -> int { return '0'; }();
6092 auto c = [=](){ return a + b; }();
6093 auto d = [&](){ return c; }();
6094 auto e = [a, &b](int x) mutable {
6095 const auto identity = [](int y){ return y; };
6096 for (auto i = 0; i < a; ++i)
6097 a += b--;
6098 return x + identity(a + b);
6099 }(0);
6100 return a + b + c + d + e;
6101 }
6102
6103 int
6104 test3()
6105 {
6106 const auto nullary = [](){ return 0; };
6107 const auto unary = [](int x){ return x; };
6108 using nullary_t = decltype(nullary);
6109 using unary_t = decltype(unary);
6110 const auto higher1st = [](nullary_t f){ return f(); };
6111 const auto higher2nd = [unary](nullary_t f1){
6112 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6113 };
6114 return higher1st(nullary) + higher2nd(nullary)(unary);
6115 }
6116
6117 }
6118
6119 namespace test_variadic_templates
6120 {
6121
6122 template <int...>
6123 struct sum;
6124
6125 template <int N0, int... N1toN>
6126 struct sum<N0, N1toN...>
6127 {
6128 static constexpr auto value = N0 + sum<N1toN...>::value;
6129 };
6130
6131 template <>
6132 struct sum<>
6133 {
6134 static constexpr auto value = 0;
6135 };
6136
6137 static_assert(sum<>::value == 0, "");
6138 static_assert(sum<1>::value == 1, "");
6139 static_assert(sum<23>::value == 23, "");
6140 static_assert(sum<1, 2>::value == 3, "");
6141 static_assert(sum<5, 5, 11>::value == 21, "");
6142 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6143
6144 }
6145
6146 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6147 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6148 // because of this.
6149 namespace test_template_alias_sfinae
6150 {
6151
6152 struct foo {};
6153
6154 template<typename T>
6155 using member = typename T::member_type;
6156
6157 template<typename T>
6158 void func(...) {}
6159
6160 template<typename T>
6161 void func(member<T>*) {}
6162
6163 void test();
6164
6165 void test() { func<foo>(0); }
6166
6167 }
6168
6169} // namespace cxx11
6170
6171#endif // __cplusplus >= 201103L
6172
6173
6174
6175_ACEOF
6176if ac_fn_cxx_try_compile "$LINENO"; then :
6177 ax_cv_cxx_compile_cxx11=yes
6178else
6179 ax_cv_cxx_compile_cxx11=no
6180fi
6181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182fi
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6184$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6185 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6186 ac_success=yes
6187 fi
6188
6189 if test x$ac_success = xno; then
6190 for alternative in ${ax_cxx_compile_alternatives}; do
6191 switch="-std=gnu++${alternative}"
6192 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6194$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6195if eval \${$cachevar+:} false; then :
6196 $as_echo_n "(cached) " >&6
6197else
6198 ac_save_CXX="$CXX"
6199 CXX="$CXX $switch"
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201/* end confdefs.h. */
6202
6203
6204// If the compiler admits that it is not ready for C++11, why torture it?
6205// Hopefully, this will speed up the test.
6206
6207#ifndef __cplusplus
6208
6209#error "This is not a C++ compiler"
6210
6211#elif __cplusplus < 201103L
6212
6213#error "This is not a C++11 compiler"
6214
6215#else
6216
6217namespace cxx11
6218{
6219
6220 namespace test_static_assert
6221 {
6222
6223 template <typename T>
6224 struct check
6225 {
6226 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6227 };
6228
6229 }
6230
6231 namespace test_final_override
6232 {
6233
6234 struct Base
6235 {
6236 virtual ~Base() {}
6237 virtual void f() {}
6238 };
6239
6240 struct Derived : public Base
6241 {
6242 virtual ~Derived() override {}
6243 virtual void f() override {}
6244 };
6245
6246 }
6247
6248 namespace test_double_right_angle_brackets
6249 {
6250
6251 template < typename T >
6252 struct check {};
6253
6254 typedef check<void> single_type;
6255 typedef check<check<void>> double_type;
6256 typedef check<check<check<void>>> triple_type;
6257 typedef check<check<check<check<void>>>> quadruple_type;
6258
6259 }
6260
6261 namespace test_decltype
6262 {
6263
6264 int
6265 f()
6266 {
6267 int a = 1;
6268 decltype(a) b = 2;
6269 return a + b;
6270 }
6271
6272 }
6273
6274 namespace test_type_deduction
6275 {
6276
6277 template < typename T1, typename T2 >
6278 struct is_same
6279 {
6280 static const bool value = false;
6281 };
6282
6283 template < typename T >
6284 struct is_same<T, T>
6285 {
6286 static const bool value = true;
6287 };
6288
6289 template < typename T1, typename T2 >
6290 auto
6291 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6292 {
6293 return a1 + a2;
6294 }
6295
6296 int
6297 test(const int c, volatile int v)
6298 {
6299 static_assert(is_same<int, decltype(0)>::value == true, "");
6300 static_assert(is_same<int, decltype(c)>::value == false, "");
6301 static_assert(is_same<int, decltype(v)>::value == false, "");
6302 auto ac = c;
6303 auto av = v;
6304 auto sumi = ac + av + 'x';
6305 auto sumf = ac + av + 1.0;
6306 static_assert(is_same<int, decltype(ac)>::value == true, "");
6307 static_assert(is_same<int, decltype(av)>::value == true, "");
6308 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6309 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6310 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6311 return (sumf > 0.0) ? sumi : add(c, v);
6312 }
6313
6314 }
6315
6316 namespace test_noexcept
6317 {
6318
6319 int f() { return 0; }
6320 int g() noexcept { return 0; }
6321
6322 static_assert(noexcept(f()) == false, "");
6323 static_assert(noexcept(g()) == true, "");
6324
6325 }
6326
6327 namespace test_constexpr
6328 {
6329
6330 template < typename CharT >
6331 unsigned long constexpr
6332 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6333 {
6334 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6335 }
6336
6337 template < typename CharT >
6338 unsigned long constexpr
6339 strlen_c(const CharT *const s) noexcept
6340 {
6341 return strlen_c_r(s, 0UL);
6342 }
6343
6344 static_assert(strlen_c("") == 0UL, "");
6345 static_assert(strlen_c("1") == 1UL, "");
6346 static_assert(strlen_c("example") == 7UL, "");
6347 static_assert(strlen_c("another\0example") == 7UL, "");
6348
6349 }
6350
6351 namespace test_rvalue_references
6352 {
6353
6354 template < int N >
6355 struct answer
6356 {
6357 static constexpr int value = N;
6358 };
6359
6360 answer<1> f(int&) { return answer<1>(); }
6361 answer<2> f(const int&) { return answer<2>(); }
6362 answer<3> f(int&&) { return answer<3>(); }
6363
6364 void
6365 test()
6366 {
6367 int i = 0;
6368 const int c = 0;
6369 static_assert(decltype(f(i))::value == 1, "");
6370 static_assert(decltype(f(c))::value == 2, "");
6371 static_assert(decltype(f(0))::value == 3, "");
6372 }
6373
6374 }
6375
6376 namespace test_uniform_initialization
6377 {
6378
6379 struct test
6380 {
6381 static const int zero {};
6382 static const int one {1};
6383 };
6384
6385 static_assert(test::zero == 0, "");
6386 static_assert(test::one == 1, "");
6387
6388 }
6389
6390 namespace test_lambdas
6391 {
6392
6393 void
6394 test1()
6395 {
6396 auto lambda1 = [](){};
6397 auto lambda2 = lambda1;
6398 lambda1();
6399 lambda2();
6400 }
6401
6402 int
6403 test2()
6404 {
6405 auto a = [](int i, int j){ return i + j; }(1, 2);
6406 auto b = []() -> int { return '0'; }();
6407 auto c = [=](){ return a + b; }();
6408 auto d = [&](){ return c; }();
6409 auto e = [a, &b](int x) mutable {
6410 const auto identity = [](int y){ return y; };
6411 for (auto i = 0; i < a; ++i)
6412 a += b--;
6413 return x + identity(a + b);
6414 }(0);
6415 return a + b + c + d + e;
6416 }
6417
6418 int
6419 test3()
6420 {
6421 const auto nullary = [](){ return 0; };
6422 const auto unary = [](int x){ return x; };
6423 using nullary_t = decltype(nullary);
6424 using unary_t = decltype(unary);
6425 const auto higher1st = [](nullary_t f){ return f(); };
6426 const auto higher2nd = [unary](nullary_t f1){
6427 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6428 };
6429 return higher1st(nullary) + higher2nd(nullary)(unary);
6430 }
6431
6432 }
6433
6434 namespace test_variadic_templates
6435 {
6436
6437 template <int...>
6438 struct sum;
6439
6440 template <int N0, int... N1toN>
6441 struct sum<N0, N1toN...>
6442 {
6443 static constexpr auto value = N0 + sum<N1toN...>::value;
6444 };
6445
6446 template <>
6447 struct sum<>
6448 {
6449 static constexpr auto value = 0;
6450 };
6451
6452 static_assert(sum<>::value == 0, "");
6453 static_assert(sum<1>::value == 1, "");
6454 static_assert(sum<23>::value == 23, "");
6455 static_assert(sum<1, 2>::value == 3, "");
6456 static_assert(sum<5, 5, 11>::value == 21, "");
6457 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6458
6459 }
6460
6461 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6462 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6463 // because of this.
6464 namespace test_template_alias_sfinae
6465 {
6466
6467 struct foo {};
6468
6469 template<typename T>
6470 using member = typename T::member_type;
6471
6472 template<typename T>
6473 void func(...) {}
6474
6475 template<typename T>
6476 void func(member<T>*) {}
6477
6478 void test();
6479
6480 void test() { func<foo>(0); }
6481
6482 }
6483
6484} // namespace cxx11
6485
6486#endif // __cplusplus >= 201103L
6487
6488
6489
6490_ACEOF
6491if ac_fn_cxx_try_compile "$LINENO"; then :
6492 eval $cachevar=yes
6493else
6494 eval $cachevar=no
6495fi
6496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497 CXX="$ac_save_CXX"
6498fi
6499eval ac_res=\$$cachevar
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6501$as_echo "$ac_res" >&6; }
6502 if eval test x\$$cachevar = xyes; then
6503 CXX="$CXX $switch"
6504 if test -n "$CXXCPP" ; then
6505 CXXCPP="$CXXCPP $switch"
6506 fi
6507 ac_success=yes
6508 break
6509 fi
6510 done
6511 fi
6512
6513 if test x$ac_success = xno; then
6514 for alternative in ${ax_cxx_compile_alternatives}; do
6515 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6516 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6518$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6519if eval \${$cachevar+:} false; then :
6520 $as_echo_n "(cached) " >&6
6521else
6522 ac_save_CXX="$CXX"
6523 CXX="$CXX $switch"
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525/* end confdefs.h. */
6526
6527
6528// If the compiler admits that it is not ready for C++11, why torture it?
6529// Hopefully, this will speed up the test.
6530
6531#ifndef __cplusplus
6532
6533#error "This is not a C++ compiler"
6534
6535#elif __cplusplus < 201103L
6536
6537#error "This is not a C++11 compiler"
6538
6539#else
6540
6541namespace cxx11
6542{
6543
6544 namespace test_static_assert
6545 {
6546
6547 template <typename T>
6548 struct check
6549 {
6550 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6551 };
6552
6553 }
6554
6555 namespace test_final_override
6556 {
6557
6558 struct Base
6559 {
6560 virtual ~Base() {}
6561 virtual void f() {}
6562 };
6563
6564 struct Derived : public Base
6565 {
6566 virtual ~Derived() override {}
6567 virtual void f() override {}
6568 };
6569
6570 }
6571
6572 namespace test_double_right_angle_brackets
6573 {
6574
6575 template < typename T >
6576 struct check {};
6577
6578 typedef check<void> single_type;
6579 typedef check<check<void>> double_type;
6580 typedef check<check<check<void>>> triple_type;
6581 typedef check<check<check<check<void>>>> quadruple_type;
6582
6583 }
6584
6585 namespace test_decltype
6586 {
6587
6588 int
6589 f()
6590 {
6591 int a = 1;
6592 decltype(a) b = 2;
6593 return a + b;
6594 }
6595
6596 }
6597
6598 namespace test_type_deduction
6599 {
6600
6601 template < typename T1, typename T2 >
6602 struct is_same
6603 {
6604 static const bool value = false;
6605 };
6606
6607 template < typename T >
6608 struct is_same<T, T>
6609 {
6610 static const bool value = true;
6611 };
6612
6613 template < typename T1, typename T2 >
6614 auto
6615 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6616 {
6617 return a1 + a2;
6618 }
6619
6620 int
6621 test(const int c, volatile int v)
6622 {
6623 static_assert(is_same<int, decltype(0)>::value == true, "");
6624 static_assert(is_same<int, decltype(c)>::value == false, "");
6625 static_assert(is_same<int, decltype(v)>::value == false, "");
6626 auto ac = c;
6627 auto av = v;
6628 auto sumi = ac + av + 'x';
6629 auto sumf = ac + av + 1.0;
6630 static_assert(is_same<int, decltype(ac)>::value == true, "");
6631 static_assert(is_same<int, decltype(av)>::value == true, "");
6632 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6633 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6634 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6635 return (sumf > 0.0) ? sumi : add(c, v);
6636 }
6637
6638 }
6639
6640 namespace test_noexcept
6641 {
6642
6643 int f() { return 0; }
6644 int g() noexcept { return 0; }
6645
6646 static_assert(noexcept(f()) == false, "");
6647 static_assert(noexcept(g()) == true, "");
6648
6649 }
6650
6651 namespace test_constexpr
6652 {
6653
6654 template < typename CharT >
6655 unsigned long constexpr
6656 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6657 {
6658 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6659 }
6660
6661 template < typename CharT >
6662 unsigned long constexpr
6663 strlen_c(const CharT *const s) noexcept
6664 {
6665 return strlen_c_r(s, 0UL);
6666 }
6667
6668 static_assert(strlen_c("") == 0UL, "");
6669 static_assert(strlen_c("1") == 1UL, "");
6670 static_assert(strlen_c("example") == 7UL, "");
6671 static_assert(strlen_c("another\0example") == 7UL, "");
6672
6673 }
6674
6675 namespace test_rvalue_references
6676 {
6677
6678 template < int N >
6679 struct answer
6680 {
6681 static constexpr int value = N;
6682 };
6683
6684 answer<1> f(int&) { return answer<1>(); }
6685 answer<2> f(const int&) { return answer<2>(); }
6686 answer<3> f(int&&) { return answer<3>(); }
6687
6688 void
6689 test()
6690 {
6691 int i = 0;
6692 const int c = 0;
6693 static_assert(decltype(f(i))::value == 1, "");
6694 static_assert(decltype(f(c))::value == 2, "");
6695 static_assert(decltype(f(0))::value == 3, "");
6696 }
6697
6698 }
6699
6700 namespace test_uniform_initialization
6701 {
6702
6703 struct test
6704 {
6705 static const int zero {};
6706 static const int one {1};
6707 };
6708
6709 static_assert(test::zero == 0, "");
6710 static_assert(test::one == 1, "");
6711
6712 }
6713
6714 namespace test_lambdas
6715 {
6716
6717 void
6718 test1()
6719 {
6720 auto lambda1 = [](){};
6721 auto lambda2 = lambda1;
6722 lambda1();
6723 lambda2();
6724 }
6725
6726 int
6727 test2()
6728 {
6729 auto a = [](int i, int j){ return i + j; }(1, 2);
6730 auto b = []() -> int { return '0'; }();
6731 auto c = [=](){ return a + b; }();
6732 auto d = [&](){ return c; }();
6733 auto e = [a, &b](int x) mutable {
6734 const auto identity = [](int y){ return y; };
6735 for (auto i = 0; i < a; ++i)
6736 a += b--;
6737 return x + identity(a + b);
6738 }(0);
6739 return a + b + c + d + e;
6740 }
6741
6742 int
6743 test3()
6744 {
6745 const auto nullary = [](){ return 0; };
6746 const auto unary = [](int x){ return x; };
6747 using nullary_t = decltype(nullary);
6748 using unary_t = decltype(unary);
6749 const auto higher1st = [](nullary_t f){ return f(); };
6750 const auto higher2nd = [unary](nullary_t f1){
6751 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6752 };
6753 return higher1st(nullary) + higher2nd(nullary)(unary);
6754 }
6755
6756 }
6757
6758 namespace test_variadic_templates
6759 {
6760
6761 template <int...>
6762 struct sum;
6763
6764 template <int N0, int... N1toN>
6765 struct sum<N0, N1toN...>
6766 {
6767 static constexpr auto value = N0 + sum<N1toN...>::value;
6768 };
6769
6770 template <>
6771 struct sum<>
6772 {
6773 static constexpr auto value = 0;
6774 };
6775
6776 static_assert(sum<>::value == 0, "");
6777 static_assert(sum<1>::value == 1, "");
6778 static_assert(sum<23>::value == 23, "");
6779 static_assert(sum<1, 2>::value == 3, "");
6780 static_assert(sum<5, 5, 11>::value == 21, "");
6781 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6782
6783 }
6784
6785 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6786 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6787 // because of this.
6788 namespace test_template_alias_sfinae
6789 {
6790
6791 struct foo {};
6792
6793 template<typename T>
6794 using member = typename T::member_type;
6795
6796 template<typename T>
6797 void func(...) {}
6798
6799 template<typename T>
6800 void func(member<T>*) {}
6801
6802 void test();
6803
6804 void test() { func<foo>(0); }
6805
6806 }
6807
6808} // namespace cxx11
6809
6810#endif // __cplusplus >= 201103L
6811
6812
6813
6814_ACEOF
6815if ac_fn_cxx_try_compile "$LINENO"; then :
6816 eval $cachevar=yes
6817else
6818 eval $cachevar=no
6819fi
6820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821 CXX="$ac_save_CXX"
6822fi
6823eval ac_res=\$$cachevar
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6825$as_echo "$ac_res" >&6; }
6826 if eval test x\$$cachevar = xyes; then
6827 CXX="$CXX $switch"
6828 if test -n "$CXXCPP" ; then
6829 CXXCPP="$CXXCPP $switch"
6830 fi
6831 ac_success=yes
6832 break
6833 fi
6834 done
6835 if test x$ac_success = xyes; then
6836 break
6837 fi
6838 done
6839 fi
7ffcf5d6 6840
ffac9597
JM
6841 ac_ext=c
6842ac_cpp='$CPP $CPPFLAGS'
6843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6845ac_compiler_gnu=$ac_cv_c_compiler_gnu
6846
6847 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6848 if test x$ac_success = xno; then
6849 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6850 fi
6851 fi
6852 if test x$ac_success = xno; then
6853 HAVE_CXX11=0
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6855$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6856 else
6857 HAVE_CXX11=1
6858
6859$as_echo "#define HAVE_CXX11 1" >>confdefs.h
6860
6861 fi
6862
6863
7ffcf5d6
TB
6864
6865 if test "${build}" != "${host}"; then
6866 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6867 ac_ext=cpp
6868ac_cpp='$CXXCPP $CPPFLAGS'
6869ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6870ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6871ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6872 ac_success=no
6873 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6874 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6875 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6876 CXX="$CXX_FOR_BUILD"
6877 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6878 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6880$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6881if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6882 $as_echo_n "(cached) " >&6
6883else
6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885/* end confdefs.h. */
6886
6887
6888// If the compiler admits that it is not ready for C++11, why torture it?
6889// Hopefully, this will speed up the test.
6890
6891#ifndef __cplusplus
6892
6893#error "This is not a C++ compiler"
6894
6895#elif __cplusplus < 201103L
6896
6897#error "This is not a C++11 compiler"
6898
6899#else
6900
6901namespace cxx11
6902{
6903
6904 namespace test_static_assert
6905 {
6906
6907 template <typename T>
6908 struct check
6909 {
6910 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6911 };
6912
6913 }
6914
6915 namespace test_final_override
6916 {
6917
6918 struct Base
6919 {
6920 virtual ~Base() {}
6921 virtual void f() {}
6922 };
6923
6924 struct Derived : public Base
6925 {
6926 virtual ~Derived() override {}
6927 virtual void f() override {}
6928 };
6929
6930 }
6931
6932 namespace test_double_right_angle_brackets
6933 {
6934
6935 template < typename T >
6936 struct check {};
6937
6938 typedef check<void> single_type;
6939 typedef check<check<void>> double_type;
6940 typedef check<check<check<void>>> triple_type;
6941 typedef check<check<check<check<void>>>> quadruple_type;
6942
6943 }
6944
6945 namespace test_decltype
6946 {
6947
6948 int
6949 f()
6950 {
6951 int a = 1;
6952 decltype(a) b = 2;
6953 return a + b;
6954 }
6955
6956 }
6957
6958 namespace test_type_deduction
6959 {
6960
6961 template < typename T1, typename T2 >
6962 struct is_same
6963 {
6964 static const bool value = false;
6965 };
6966
6967 template < typename T >
6968 struct is_same<T, T>
6969 {
6970 static const bool value = true;
6971 };
6972
6973 template < typename T1, typename T2 >
6974 auto
6975 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6976 {
6977 return a1 + a2;
6978 }
6979
6980 int
6981 test(const int c, volatile int v)
6982 {
6983 static_assert(is_same<int, decltype(0)>::value == true, "");
6984 static_assert(is_same<int, decltype(c)>::value == false, "");
6985 static_assert(is_same<int, decltype(v)>::value == false, "");
6986 auto ac = c;
6987 auto av = v;
6988 auto sumi = ac + av + 'x';
6989 auto sumf = ac + av + 1.0;
6990 static_assert(is_same<int, decltype(ac)>::value == true, "");
6991 static_assert(is_same<int, decltype(av)>::value == true, "");
6992 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6993 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6994 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6995 return (sumf > 0.0) ? sumi : add(c, v);
6996 }
6997
6998 }
6999
7000 namespace test_noexcept
7001 {
7002
7003 int f() { return 0; }
7004 int g() noexcept { return 0; }
7005
7006 static_assert(noexcept(f()) == false, "");
7007 static_assert(noexcept(g()) == true, "");
7008
7009 }
7010
7011 namespace test_constexpr
7012 {
7013
7014 template < typename CharT >
7015 unsigned long constexpr
7016 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7017 {
7018 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7019 }
7020
7021 template < typename CharT >
7022 unsigned long constexpr
7023 strlen_c(const CharT *const s) noexcept
7024 {
7025 return strlen_c_r(s, 0UL);
7026 }
7027
7028 static_assert(strlen_c("") == 0UL, "");
7029 static_assert(strlen_c("1") == 1UL, "");
7030 static_assert(strlen_c("example") == 7UL, "");
7031 static_assert(strlen_c("another\0example") == 7UL, "");
7032
7033 }
7034
7035 namespace test_rvalue_references
7036 {
7037
7038 template < int N >
7039 struct answer
7040 {
7041 static constexpr int value = N;
7042 };
7043
7044 answer<1> f(int&) { return answer<1>(); }
7045 answer<2> f(const int&) { return answer<2>(); }
7046 answer<3> f(int&&) { return answer<3>(); }
7047
7048 void
7049 test()
7050 {
7051 int i = 0;
7052 const int c = 0;
7053 static_assert(decltype(f(i))::value == 1, "");
7054 static_assert(decltype(f(c))::value == 2, "");
7055 static_assert(decltype(f(0))::value == 3, "");
7056 }
7057
7058 }
7059
7060 namespace test_uniform_initialization
7061 {
7062
7063 struct test
7064 {
7065 static const int zero {};
7066 static const int one {1};
7067 };
7068
7069 static_assert(test::zero == 0, "");
7070 static_assert(test::one == 1, "");
7071
7072 }
7073
7074 namespace test_lambdas
7075 {
7076
7077 void
7078 test1()
7079 {
7080 auto lambda1 = [](){};
7081 auto lambda2 = lambda1;
7082 lambda1();
7083 lambda2();
7084 }
7085
7086 int
7087 test2()
7088 {
7089 auto a = [](int i, int j){ return i + j; }(1, 2);
7090 auto b = []() -> int { return '0'; }();
7091 auto c = [=](){ return a + b; }();
7092 auto d = [&](){ return c; }();
7093 auto e = [a, &b](int x) mutable {
7094 const auto identity = [](int y){ return y; };
7095 for (auto i = 0; i < a; ++i)
7096 a += b--;
7097 return x + identity(a + b);
7098 }(0);
7099 return a + b + c + d + e;
7100 }
7101
7102 int
7103 test3()
7104 {
7105 const auto nullary = [](){ return 0; };
7106 const auto unary = [](int x){ return x; };
7107 using nullary_t = decltype(nullary);
7108 using unary_t = decltype(unary);
7109 const auto higher1st = [](nullary_t f){ return f(); };
7110 const auto higher2nd = [unary](nullary_t f1){
7111 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7112 };
7113 return higher1st(nullary) + higher2nd(nullary)(unary);
7114 }
7115
7116 }
7117
7118 namespace test_variadic_templates
7119 {
7120
7121 template <int...>
7122 struct sum;
7123
7124 template <int N0, int... N1toN>
7125 struct sum<N0, N1toN...>
7126 {
7127 static constexpr auto value = N0 + sum<N1toN...>::value;
7128 };
7129
7130 template <>
7131 struct sum<>
7132 {
7133 static constexpr auto value = 0;
7134 };
7135
7136 static_assert(sum<>::value == 0, "");
7137 static_assert(sum<1>::value == 1, "");
7138 static_assert(sum<23>::value == 23, "");
7139 static_assert(sum<1, 2>::value == 3, "");
7140 static_assert(sum<5, 5, 11>::value == 21, "");
7141 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7142
7143 }
7144
7145 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7146 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7147 // because of this.
7148 namespace test_template_alias_sfinae
7149 {
7150
7151 struct foo {};
7152
7153 template<typename T>
7154 using member = typename T::member_type;
7155
7156 template<typename T>
7157 void func(...) {}
7158
7159 template<typename T>
7160 void func(member<T>*) {}
7161
7162 void test();
7163
7164 void test() { func<foo>(0); }
7165
7166 }
7167
7168} // namespace cxx11
7169
7170#endif // __cplusplus >= 201103L
7171
7172
7173
7174_ACEOF
7175if ac_fn_cxx_try_compile "$LINENO"; then :
7176 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7177else
7178 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7179fi
7180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7181fi
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7183$as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7184 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7185 ac_success=yes
7186 fi
7187
7188 if test x$ac_success = xno; then
7189 for alternative in ${ax_cxx_compile_alternatives}; do
7190 switch="-std=gnu++${alternative}"
7191 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7193$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7194if eval \${$cachevar+:} false; then :
7195 $as_echo_n "(cached) " >&6
7196else
7197 ac_save_CXX="$CXX"
7198 CXX="$CXX $switch"
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200/* end confdefs.h. */
7201
7202
7203// If the compiler admits that it is not ready for C++11, why torture it?
7204// Hopefully, this will speed up the test.
7205
7206#ifndef __cplusplus
7207
7208#error "This is not a C++ compiler"
7209
7210#elif __cplusplus < 201103L
7211
7212#error "This is not a C++11 compiler"
7213
7214#else
7215
7216namespace cxx11
7217{
7218
7219 namespace test_static_assert
7220 {
7221
7222 template <typename T>
7223 struct check
7224 {
7225 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7226 };
7227
7228 }
7229
7230 namespace test_final_override
7231 {
7232
7233 struct Base
7234 {
7235 virtual ~Base() {}
7236 virtual void f() {}
7237 };
7238
7239 struct Derived : public Base
7240 {
7241 virtual ~Derived() override {}
7242 virtual void f() override {}
7243 };
7244
7245 }
7246
7247 namespace test_double_right_angle_brackets
7248 {
7249
7250 template < typename T >
7251 struct check {};
7252
7253 typedef check<void> single_type;
7254 typedef check<check<void>> double_type;
7255 typedef check<check<check<void>>> triple_type;
7256 typedef check<check<check<check<void>>>> quadruple_type;
7257
7258 }
7259
7260 namespace test_decltype
7261 {
7262
7263 int
7264 f()
7265 {
7266 int a = 1;
7267 decltype(a) b = 2;
7268 return a + b;
7269 }
7270
7271 }
7272
7273 namespace test_type_deduction
7274 {
7275
7276 template < typename T1, typename T2 >
7277 struct is_same
7278 {
7279 static const bool value = false;
7280 };
7281
7282 template < typename T >
7283 struct is_same<T, T>
7284 {
7285 static const bool value = true;
7286 };
7287
7288 template < typename T1, typename T2 >
7289 auto
7290 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7291 {
7292 return a1 + a2;
7293 }
7294
7295 int
7296 test(const int c, volatile int v)
7297 {
7298 static_assert(is_same<int, decltype(0)>::value == true, "");
7299 static_assert(is_same<int, decltype(c)>::value == false, "");
7300 static_assert(is_same<int, decltype(v)>::value == false, "");
7301 auto ac = c;
7302 auto av = v;
7303 auto sumi = ac + av + 'x';
7304 auto sumf = ac + av + 1.0;
7305 static_assert(is_same<int, decltype(ac)>::value == true, "");
7306 static_assert(is_same<int, decltype(av)>::value == true, "");
7307 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7308 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7309 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7310 return (sumf > 0.0) ? sumi : add(c, v);
7311 }
7312
7313 }
7314
7315 namespace test_noexcept
7316 {
7317
7318 int f() { return 0; }
7319 int g() noexcept { return 0; }
7320
7321 static_assert(noexcept(f()) == false, "");
7322 static_assert(noexcept(g()) == true, "");
7323
7324 }
7325
7326 namespace test_constexpr
7327 {
7328
7329 template < typename CharT >
7330 unsigned long constexpr
7331 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7332 {
7333 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7334 }
7335
7336 template < typename CharT >
7337 unsigned long constexpr
7338 strlen_c(const CharT *const s) noexcept
7339 {
7340 return strlen_c_r(s, 0UL);
7341 }
7342
7343 static_assert(strlen_c("") == 0UL, "");
7344 static_assert(strlen_c("1") == 1UL, "");
7345 static_assert(strlen_c("example") == 7UL, "");
7346 static_assert(strlen_c("another\0example") == 7UL, "");
7347
7348 }
7349
7350 namespace test_rvalue_references
7351 {
7352
7353 template < int N >
7354 struct answer
7355 {
7356 static constexpr int value = N;
7357 };
7358
7359 answer<1> f(int&) { return answer<1>(); }
7360 answer<2> f(const int&) { return answer<2>(); }
7361 answer<3> f(int&&) { return answer<3>(); }
7362
7363 void
7364 test()
7365 {
7366 int i = 0;
7367 const int c = 0;
7368 static_assert(decltype(f(i))::value == 1, "");
7369 static_assert(decltype(f(c))::value == 2, "");
7370 static_assert(decltype(f(0))::value == 3, "");
7371 }
7372
7373 }
7374
7375 namespace test_uniform_initialization
7376 {
7377
7378 struct test
7379 {
7380 static const int zero {};
7381 static const int one {1};
7382 };
7383
7384 static_assert(test::zero == 0, "");
7385 static_assert(test::one == 1, "");
7386
7387 }
7388
7389 namespace test_lambdas
7390 {
7391
7392 void
7393 test1()
7394 {
7395 auto lambda1 = [](){};
7396 auto lambda2 = lambda1;
7397 lambda1();
7398 lambda2();
7399 }
7400
7401 int
7402 test2()
7403 {
7404 auto a = [](int i, int j){ return i + j; }(1, 2);
7405 auto b = []() -> int { return '0'; }();
7406 auto c = [=](){ return a + b; }();
7407 auto d = [&](){ return c; }();
7408 auto e = [a, &b](int x) mutable {
7409 const auto identity = [](int y){ return y; };
7410 for (auto i = 0; i < a; ++i)
7411 a += b--;
7412 return x + identity(a + b);
7413 }(0);
7414 return a + b + c + d + e;
7415 }
7416
7417 int
7418 test3()
7419 {
7420 const auto nullary = [](){ return 0; };
7421 const auto unary = [](int x){ return x; };
7422 using nullary_t = decltype(nullary);
7423 using unary_t = decltype(unary);
7424 const auto higher1st = [](nullary_t f){ return f(); };
7425 const auto higher2nd = [unary](nullary_t f1){
7426 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7427 };
7428 return higher1st(nullary) + higher2nd(nullary)(unary);
7429 }
7430
7431 }
7432
7433 namespace test_variadic_templates
7434 {
7435
7436 template <int...>
7437 struct sum;
7438
7439 template <int N0, int... N1toN>
7440 struct sum<N0, N1toN...>
7441 {
7442 static constexpr auto value = N0 + sum<N1toN...>::value;
7443 };
7444
7445 template <>
7446 struct sum<>
7447 {
7448 static constexpr auto value = 0;
7449 };
7450
7451 static_assert(sum<>::value == 0, "");
7452 static_assert(sum<1>::value == 1, "");
7453 static_assert(sum<23>::value == 23, "");
7454 static_assert(sum<1, 2>::value == 3, "");
7455 static_assert(sum<5, 5, 11>::value == 21, "");
7456 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7457
7458 }
7459
7460 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7461 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7462 // because of this.
7463 namespace test_template_alias_sfinae
7464 {
7465
7466 struct foo {};
7467
7468 template<typename T>
7469 using member = typename T::member_type;
7470
7471 template<typename T>
7472 void func(...) {}
7473
7474 template<typename T>
7475 void func(member<T>*) {}
7476
7477 void test();
7478
7479 void test() { func<foo>(0); }
7480
7481 }
7482
7483} // namespace cxx11
7484
7485#endif // __cplusplus >= 201103L
7486
7487
7488
7489_ACEOF
7490if ac_fn_cxx_try_compile "$LINENO"; then :
7491 eval $cachevar=yes
7492else
7493 eval $cachevar=no
7494fi
7495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496 CXX="$ac_save_CXX"
7497fi
7498eval ac_res=\$$cachevar
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7500$as_echo "$ac_res" >&6; }
7501 if eval test x\$$cachevar = xyes; then
7502 CXX="$CXX $switch"
7503 if test -n "$CXXCPP" ; then
7504 CXXCPP="$CXXCPP $switch"
7505 fi
7506 ac_success=yes
7507 break
7508 fi
7509 done
7510 fi
7511
7512 if test x$ac_success = xno; then
7513 for alternative in ${ax_cxx_compile_alternatives}; do
7514 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7515 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7517$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7518if eval \${$cachevar+:} false; then :
7519 $as_echo_n "(cached) " >&6
7520else
7521 ac_save_CXX="$CXX"
7522 CXX="$CXX $switch"
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524/* end confdefs.h. */
7525
7526
7527// If the compiler admits that it is not ready for C++11, why torture it?
7528// Hopefully, this will speed up the test.
7529
7530#ifndef __cplusplus
7531
7532#error "This is not a C++ compiler"
7533
7534#elif __cplusplus < 201103L
7535
7536#error "This is not a C++11 compiler"
7537
7538#else
7539
7540namespace cxx11
7541{
7542
7543 namespace test_static_assert
7544 {
7545
7546 template <typename T>
7547 struct check
7548 {
7549 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7550 };
7551
7552 }
7553
7554 namespace test_final_override
7555 {
7556
7557 struct Base
7558 {
7559 virtual ~Base() {}
7560 virtual void f() {}
7561 };
7562
7563 struct Derived : public Base
7564 {
7565 virtual ~Derived() override {}
7566 virtual void f() override {}
7567 };
7568
7569 }
7570
7571 namespace test_double_right_angle_brackets
7572 {
7573
7574 template < typename T >
7575 struct check {};
7576
7577 typedef check<void> single_type;
7578 typedef check<check<void>> double_type;
7579 typedef check<check<check<void>>> triple_type;
7580 typedef check<check<check<check<void>>>> quadruple_type;
7581
7582 }
7583
7584 namespace test_decltype
7585 {
7586
7587 int
7588 f()
7589 {
7590 int a = 1;
7591 decltype(a) b = 2;
7592 return a + b;
7593 }
7594
7595 }
7596
7597 namespace test_type_deduction
7598 {
7599
7600 template < typename T1, typename T2 >
7601 struct is_same
7602 {
7603 static const bool value = false;
7604 };
7605
7606 template < typename T >
7607 struct is_same<T, T>
7608 {
7609 static const bool value = true;
7610 };
7611
7612 template < typename T1, typename T2 >
7613 auto
7614 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7615 {
7616 return a1 + a2;
7617 }
7618
7619 int
7620 test(const int c, volatile int v)
7621 {
7622 static_assert(is_same<int, decltype(0)>::value == true, "");
7623 static_assert(is_same<int, decltype(c)>::value == false, "");
7624 static_assert(is_same<int, decltype(v)>::value == false, "");
7625 auto ac = c;
7626 auto av = v;
7627 auto sumi = ac + av + 'x';
7628 auto sumf = ac + av + 1.0;
7629 static_assert(is_same<int, decltype(ac)>::value == true, "");
7630 static_assert(is_same<int, decltype(av)>::value == true, "");
7631 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7632 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7633 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7634 return (sumf > 0.0) ? sumi : add(c, v);
7635 }
7636
7637 }
7638
7639 namespace test_noexcept
7640 {
7641
7642 int f() { return 0; }
7643 int g() noexcept { return 0; }
7644
7645 static_assert(noexcept(f()) == false, "");
7646 static_assert(noexcept(g()) == true, "");
7647
7648 }
7649
7650 namespace test_constexpr
7651 {
7652
7653 template < typename CharT >
7654 unsigned long constexpr
7655 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7656 {
7657 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7658 }
7659
7660 template < typename CharT >
7661 unsigned long constexpr
7662 strlen_c(const CharT *const s) noexcept
7663 {
7664 return strlen_c_r(s, 0UL);
7665 }
7666
7667 static_assert(strlen_c("") == 0UL, "");
7668 static_assert(strlen_c("1") == 1UL, "");
7669 static_assert(strlen_c("example") == 7UL, "");
7670 static_assert(strlen_c("another\0example") == 7UL, "");
7671
7672 }
7673
7674 namespace test_rvalue_references
7675 {
7676
7677 template < int N >
7678 struct answer
7679 {
7680 static constexpr int value = N;
7681 };
7682
7683 answer<1> f(int&) { return answer<1>(); }
7684 answer<2> f(const int&) { return answer<2>(); }
7685 answer<3> f(int&&) { return answer<3>(); }
7686
7687 void
7688 test()
7689 {
7690 int i = 0;
7691 const int c = 0;
7692 static_assert(decltype(f(i))::value == 1, "");
7693 static_assert(decltype(f(c))::value == 2, "");
7694 static_assert(decltype(f(0))::value == 3, "");
7695 }
7696
7697 }
7698
7699 namespace test_uniform_initialization
7700 {
7701
7702 struct test
7703 {
7704 static const int zero {};
7705 static const int one {1};
7706 };
7707
7708 static_assert(test::zero == 0, "");
7709 static_assert(test::one == 1, "");
7710
7711 }
7712
7713 namespace test_lambdas
7714 {
7715
7716 void
7717 test1()
7718 {
7719 auto lambda1 = [](){};
7720 auto lambda2 = lambda1;
7721 lambda1();
7722 lambda2();
7723 }
7724
7725 int
7726 test2()
7727 {
7728 auto a = [](int i, int j){ return i + j; }(1, 2);
7729 auto b = []() -> int { return '0'; }();
7730 auto c = [=](){ return a + b; }();
7731 auto d = [&](){ return c; }();
7732 auto e = [a, &b](int x) mutable {
7733 const auto identity = [](int y){ return y; };
7734 for (auto i = 0; i < a; ++i)
7735 a += b--;
7736 return x + identity(a + b);
7737 }(0);
7738 return a + b + c + d + e;
7739 }
7740
7741 int
7742 test3()
7743 {
7744 const auto nullary = [](){ return 0; };
7745 const auto unary = [](int x){ return x; };
7746 using nullary_t = decltype(nullary);
7747 using unary_t = decltype(unary);
7748 const auto higher1st = [](nullary_t f){ return f(); };
7749 const auto higher2nd = [unary](nullary_t f1){
7750 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7751 };
7752 return higher1st(nullary) + higher2nd(nullary)(unary);
7753 }
7754
7755 }
7756
7757 namespace test_variadic_templates
7758 {
7759
7760 template <int...>
7761 struct sum;
7762
7763 template <int N0, int... N1toN>
7764 struct sum<N0, N1toN...>
7765 {
7766 static constexpr auto value = N0 + sum<N1toN...>::value;
7767 };
7768
7769 template <>
7770 struct sum<>
7771 {
7772 static constexpr auto value = 0;
7773 };
7774
7775 static_assert(sum<>::value == 0, "");
7776 static_assert(sum<1>::value == 1, "");
7777 static_assert(sum<23>::value == 23, "");
7778 static_assert(sum<1, 2>::value == 3, "");
7779 static_assert(sum<5, 5, 11>::value == 21, "");
7780 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7781
7782 }
7783
7784 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7785 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7786 // because of this.
7787 namespace test_template_alias_sfinae
7788 {
7789
7790 struct foo {};
7791
7792 template<typename T>
7793 using member = typename T::member_type;
7794
7795 template<typename T>
7796 void func(...) {}
7797
7798 template<typename T>
7799 void func(member<T>*) {}
7800
7801 void test();
7802
7803 void test() { func<foo>(0); }
7804
7805 }
7806
7807} // namespace cxx11
7808
7809#endif // __cplusplus >= 201103L
7810
7811
7812
7813_ACEOF
7814if ac_fn_cxx_try_compile "$LINENO"; then :
7815 eval $cachevar=yes
7816else
7817 eval $cachevar=no
7818fi
7819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820 CXX="$ac_save_CXX"
7821fi
7822eval ac_res=\$$cachevar
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7824$as_echo "$ac_res" >&6; }
7825 if eval test x\$$cachevar = xyes; then
7826 CXX="$CXX $switch"
7827 if test -n "$CXXCPP" ; then
7828 CXXCPP="$CXXCPP $switch"
7829 fi
7830 ac_success=yes
7831 break
7832 fi
7833 done
7834 if test x$ac_success = xyes; then
7835 break
7836 fi
7837 done
7838 fi
7839 CXX_FOR_BUILD="$CXX"
7840 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7841 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7842 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7843 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7844 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7845 ac_ext=c
7846ac_cpp='$CPP $CPPFLAGS'
7847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7849ac_compiler_gnu=$ac_cv_c_compiler_gnu
7850
7851 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7852 if test x$ac_success = xno; then
7853 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7854 fi
7855 fi
7856 if test x$ac_success = xno; then
7857 HAVE_CXX11_FOR_BUILD=0
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7859$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7860 else
7861 HAVE_CXX11_FOR_BUILD=1
7862
7863$as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7864
7865 fi
7866
7867
7868 fi
46070488
JM
7869fi
7870
4a5e71f2
L
7871# Check whether --enable-pgo-build was given.
7872if test "${enable_pgo_build+set}" = set; then :
7873 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7874else
7875 enable_pgo_build=no
7876fi
7877
7878
7879# Issue errors and warnings for invalid/strange PGO build combinations.
7880case "$have_compiler:$host:$target:$enable_pgo_build" in
7881 *:*:*:no) ;;
7882
7883 # Allow the PGO build only if we aren't building a compiler and
7884 # we are in a native configuration.
7885 no:$build:$build:yes | no:$build:$build:lto) ;;
7886
7887 # Disallow the PGO bootstrap if we are building a compiler.
7888 yes:*:*:yes | yes:*:*:lto)
7889 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7890
7891 *)
7892 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7893 ;;
7894esac
7895
7896if test "$enable_pgo_build" != "no"; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7898$as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7899 old_CFLAGS="$CFLAGS"
7900 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7901 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7902
7903cat 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_GEN_CFLAGS=
7911fi
7912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7913 CFLAGS="$old_CFLAGS"
7914 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7916$as_echo "yes" >&6; }
7917 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7918 else
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920$as_echo "no" >&6; }
7921 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7922 fi
7923
7924 if test "$enable_pgo_build" = "lto"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7926$as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7927 old_CFLAGS="$CFLAGS"
7928 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7929 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931/* end confdefs.h. */
7932int foo;
7933_ACEOF
7934if ac_fn_c_try_compile "$LINENO"; then :
7935
7936else
7937 PGO_BUILD_LTO_CFLAGS=
7938fi
7939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940 CFLAGS="$old_CFLAGS"
7941 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7943$as_echo "yes" >&6; }
7944 else
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946$as_echo "no" >&6; }
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7948$as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7949 fi
7950 fi
7951fi
7952
7953
7954
7955
592c90ff
KG
7956# Used for setting $lt_cv_objdir
7957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7958$as_echo_n "checking for objdir... " >&6; }
22e05272 7959if ${lt_cv_objdir+:} false; then :
592c90ff
KG
7960 $as_echo_n "(cached) " >&6
7961else
7962 rm -f .libs 2>/dev/null
7963mkdir .libs 2>/dev/null
7964if test -d .libs; then
7965 lt_cv_objdir=.libs
7966else
7967 # MS-DOS does not allow filenames that begin with a dot.
7968 lt_cv_objdir=_libs
7969fi
7970rmdir .libs 2>/dev/null
7971fi
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7973$as_echo "$lt_cv_objdir" >&6; }
7974objdir=$lt_cv_objdir
7975
7976
7977
7978
7979
7980cat >>confdefs.h <<_ACEOF
7981#define LT_OBJDIR "$lt_cv_objdir/"
7982_ACEOF
7983
7984
7985
acd26225 7986# Check for GMP, MPFR and MPC
91e0d220
AP
7987require_gmp=no
7988require_mpc=no
7989if test -d ${srcdir}/gcc ; then
7990 require_gmp=yes
7991 require_mpc=yes
7992fi
7993if test -d ${srcdir}/gdb ; then
5977d14a
CC
7994 if test "x$enable_gdb" != xno; then
7995 require_gmp=yes
7996 fi
91e0d220
AP
7997fi
7998
7999gmplibs="-lmpfr -lgmp"
8000if test x"$require_mpc" = "xyes" ; then
8001 gmplibs="-lmpc $gmplibs"
8002fi
6de9cd9a 8003gmpinc=
e69bf64b 8004have_gmp=no
acd26225
KG
8005
8006# Specify a location for mpc
8007# check for this first so it ends up on the link line before mpfr.
8008
5213506e
RW
8009# Check whether --with-mpc was given.
8010if test "${with_mpc+set}" = set; then :
8011 withval=$with_mpc;
8012fi
acd26225 8013
acd26225 8014
9965e3cd 8015# Check whether --with-mpc-include was given.
5213506e
RW
8016if test "${with_mpc_include+set}" = set; then :
8017 withval=$with_mpc_include;
8018fi
acd26225 8019
acd26225 8020
9965e3cd 8021# Check whether --with-mpc-lib was given.
5213506e
RW
8022if test "${with_mpc_lib+set}" = set; then :
8023 withval=$with_mpc_lib;
8024fi
acd26225 8025
acd26225
KG
8026
8027if test "x$with_mpc" != x; then
3a5729ea
KG
8028 gmplibs="-L$with_mpc/lib $gmplibs"
8029 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
8030fi
8031if test "x$with_mpc_include" != x; then
3a5729ea 8032 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
8033fi
8034if test "x$with_mpc_lib" != x; then
3a5729ea 8035 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
8036fi
8037if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 8038 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 8039 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
8040 # Do not test the mpc version. Assume that it is sufficient, since
8041 # it is in the source tree, and the library has not been built yet
8042 # but it would be included on the link line in the version check below
8043 # hence making the test fail.
3a5729ea 8044 have_gmp=yes
acd26225 8045fi
e69bf64b 8046
bebf829d
PB
8047# Specify a location for mpfr
8048# check for this first so it ends up on the link line before gmp.
1c710c3c 8049
5213506e
RW
8050# Check whether --with-mpfr was given.
8051if test "${with_mpfr+set}" = set; then :
8052 withval=$with_mpfr;
8053fi
1c710c3c 8054
bebf829d 8055
9965e3cd 8056# Check whether --with-mpfr-include was given.
5213506e
RW
8057if test "${with_mpfr_include+set}" = set; then :
8058 withval=$with_mpfr_include;
8059fi
1c710c3c 8060
8a877c9c 8061
9965e3cd 8062# Check whether --with-mpfr-lib was given.
5213506e
RW
8063if test "${with_mpfr_lib+set}" = set; then :
8064 withval=$with_mpfr_lib;
8065fi
8a877c9c 8066
bebf829d
PB
8067
8068if test "x$with_mpfr" != x; then
8069 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 8070 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 8071fi
8a877c9c 8072if test "x$with_mpfr_include" != x; then
3a5729ea 8073 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
8074fi
8075if test "x$with_mpfr_lib" != x; then
8076 gmplibs="-L$with_mpfr_lib $gmplibs"
8077fi
e69bf64b 8078if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
8079 # MPFR v3.1.0 moved the sources into a src sub-directory.
8080 if ! test -d ${srcdir}/mpfr/src; then
22e05272 8081 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8f3675f8 8082 fi
00f35794
BE
8083 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8084 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8085 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
8086 # Do not test the mpfr version. Assume that it is sufficient, since
8087 # it is in the source tree, and the library has not been built yet
8088 # but it would be included on the link line in the version check below
8089 # hence making the test fail.
8090 have_gmp=yes
8091fi
bebf829d 8092
6de9cd9a 8093# Specify a location for gmp
1c710c3c 8094
5213506e
RW
8095# Check whether --with-gmp was given.
8096if test "${with_gmp+set}" = set; then :
8097 withval=$with_gmp;
8098fi
1c710c3c 8099
6de9cd9a 8100
9965e3cd 8101# Check whether --with-gmp-include was given.
5213506e
RW
8102if test "${with_gmp_include+set}" = set; then :
8103 withval=$with_gmp_include;
8104fi
1c710c3c 8105
8a877c9c 8106
9965e3cd 8107# Check whether --with-gmp-lib was given.
5213506e
RW
8108if test "${with_gmp_lib+set}" = set; then :
8109 withval=$with_gmp_lib;
8110fi
8a877c9c
KG
8111
8112
6de9cd9a 8113
bebf829d
PB
8114if test "x$with_gmp" != x; then
8115 gmplibs="-L$with_gmp/lib $gmplibs"
8116 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 8117fi
8a877c9c
KG
8118if test "x$with_gmp_include" != x; then
8119 gmpinc="-I$with_gmp_include $gmpinc"
8120fi
8121if test "x$with_gmp_lib" != x; then
8122 gmplibs="-L$with_gmp_lib $gmplibs"
8123fi
e69bf64b 8124if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 8125 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 8126 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 8127 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 8128 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 8129 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
8130 # Do not test the gmp version. Assume that it is sufficient, since
8131 # it is in the source tree, and the library has not been built yet
8132 # but it would be included on the link line in the version check below
8133 # hence making the test fail.
8134 have_gmp=yes
8135fi
6de9cd9a 8136
91e0d220 8137if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
e69bf64b
PB
8138 have_gmp=yes
8139 saved_CFLAGS="$CFLAGS"
8140 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
8141 # Check for the recommended and required versions of GMP.
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8143$as_echo_n "checking for the correct version of gmp.h... " >&6; }
4a5e71f2 8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
8145/* end confdefs.h. */
8146#include "gmp.h"
8147int
8148main ()
8149{
8150
8151 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8152 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 8153 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
8154 choke me
8155 #endif
8156
8157 ;
8158 return 0;
8159}
8160_ACEOF
8161if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 8162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8163/* end confdefs.h. */
362c6d2f 8164#include <gmp.h>
1c710c3c
DJ
8165int
8166main ()
8167{
6de9cd9a 8168
362c6d2f
KG
8169 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8170 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8171 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
8172 choke me
8173 #endif
1c710c3c
DJ
8174
8175 ;
8176 return 0;
8177}
8178_ACEOF
5213506e
RW
8179if ac_fn_c_try_compile "$LINENO"; then :
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8181$as_echo "yes" >&6; }
362c6d2f
KG
8182else
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8184$as_echo "buggy but acceptable" >&6; }
8185fi
8186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 8187else
5213506e
RW
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189$as_echo "no" >&6; }; have_gmp=no
1c710c3c 8190fi
5213506e 8191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 8192
acd26225 8193 # If we have GMP, check the MPFR version.
e69bf64b 8194 if test x"$have_gmp" = xyes; then
362c6d2f
KG
8195 # Check for the recommended and required versions of MPFR.
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8197$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8199/* end confdefs.h. */
70ec446f 8200#include <gmp.h>
e69bf64b 8201 #include <mpfr.h>
1c710c3c
DJ
8202int
8203main ()
8204{
e48d66a9 8205
8be34204 8206 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
e69bf64b
PB
8207 choke me
8208 #endif
1c710c3c
DJ
8209
8210 ;
8211 return 0;
8212}
8213_ACEOF
5213506e
RW
8214if ac_fn_c_try_compile "$LINENO"; then :
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8216/* end confdefs.h. */
a3993f33 8217#include <gmp.h>
e69bf64b 8218 #include <mpfr.h>
1c710c3c
DJ
8219int
8220main ()
8221{
a3993f33 8222
8be34204 8223 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
e69bf64b
PB
8224 choke me
8225 #endif
acd26225
KG
8226
8227 ;
8228 return 0;
8229}
8230_ACEOF
5213506e
RW
8231if ac_fn_c_try_compile "$LINENO"; then :
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8233$as_echo "yes" >&6; }
acd26225 8234else
5213506e
RW
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8236$as_echo "buggy but acceptable" >&6; }
acd26225 8237fi
5213506e 8238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 8239else
5213506e
RW
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241$as_echo "no" >&6; }; have_gmp=no
acd26225 8242fi
5213506e 8243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
8244 fi
8245
8246 # Check for the MPC header version.
91e0d220 8247 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
362c6d2f 8248 # Check for the recommended and required versions of MPC.
5213506e
RW
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8250$as_echo_n "checking for the correct version of mpc.h... " >&6; }
8251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
8252/* end confdefs.h. */
8253#include <mpc.h>
8254int
8255main ()
8256{
8257
362c6d2f
KG
8258 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8259 choke me
8260 #endif
8261
8262 ;
8263 return 0;
8264}
8265_ACEOF
8266if ac_fn_c_try_compile "$LINENO"; then :
8267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8268/* end confdefs.h. */
8269#include <mpc.h>
8270int
8271main ()
8272{
8273
8274 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
8275 choke me
8276 #endif
8277
8278 ;
8279 return 0;
8280}
8281_ACEOF
5213506e
RW
8282if ac_fn_c_try_compile "$LINENO"; then :
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 8284$as_echo "yes" >&6; }
362c6d2f
KG
8285else
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8287$as_echo "buggy but acceptable" >&6; }
8288fi
8289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 8290else
5213506e 8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 8292$as_echo "no" >&6; }; have_gmp=no
acd26225 8293fi
5213506e 8294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
8295 fi
8296
8297 # Now check the MPFR library.
8298 if test x"$have_gmp" = xyes; then
8299 saved_LIBS="$LIBS"
8300 LIBS="$LIBS $gmplibs"
91e0d220
AP
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8302$as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
5213506e 8303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 8304/* end confdefs.h. */
91e0d220 8305#include <mpfr.h>
acd26225
KG
8306int
8307main ()
8308{
8309
8310 mpfr_t n;
8311 mpfr_t x;
8312 int t;
8313 mpfr_init (n);
8314 mpfr_init (x);
90ca6847
TB
8315 mpfr_atan2 (n, n, x, MPFR_RNDN);
8316 mpfr_erfc (n, x, MPFR_RNDN);
8317 mpfr_subnormalize (x, t, MPFR_RNDN);
3a5729ea
KG
8318 mpfr_clear(n);
8319 mpfr_clear(x);
91e0d220
AP
8320
8321 ;
8322 return 0;
8323}
8324_ACEOF
8325if ac_fn_c_try_link "$LINENO"; then :
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8327$as_echo "yes" >&6; }
8328else
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330$as_echo "no" >&6; }; have_gmp=no
8331fi
8332rm -f core conftest.err conftest.$ac_objext \
8333 conftest$ac_exeext conftest.$ac_ext
8334 LIBS="$saved_LIBS"
8335 fi
8336
8337 # Now check the MPC library
8338 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
8339 saved_LIBS="$LIBS"
8340 LIBS="$LIBS $gmplibs"
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8342$as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344/* end confdefs.h. */
8345#include <mpc.h>
8346int
8347main ()
8348{
8349
8350 mpc_t c;
3a5729ea
KG
8351 mpc_init2 (c, 53);
8352 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8353 mpc_cosh (c, c, MPC_RNDNN);
8354 mpc_pow (c, c, c, MPC_RNDNN);
8355 mpc_acosh (c, c, MPC_RNDNN);
8356 mpc_clear (c);
1c710c3c
DJ
8357
8358 ;
8359 return 0;
8360}
8361_ACEOF
5213506e
RW
8362if ac_fn_c_try_link "$LINENO"; then :
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8364$as_echo "yes" >&6; }
1c710c3c 8365else
5213506e
RW
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367$as_echo "no" >&6; }; have_gmp=no
1c710c3c 8368fi
5213506e
RW
8369rm -f core conftest.err conftest.$ac_objext \
8370 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
8371 LIBS="$saved_LIBS"
8372 fi
8373
e69bf64b 8374 CFLAGS="$saved_CFLAGS"
6de9cd9a 8375
362c6d2f
KG
8376# The library versions listed in the error message below should match
8377# the HARD-minimums enforced above.
e69bf64b 8378 if test x$have_gmp != xyes; then
91e0d220
AP
8379 if test -d ${srcdir}/gcc ; then
8380 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
3a5729ea
KG
8381Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8382their locations. Source code for these libraries can be found at
8383their respective hosting sites as well as at
aeebd94c 8384https://gcc.gnu.org/pub/gcc/infrastructure/. See also
45ab87d4 8385http://gcc.gnu.org/install/prerequisites.html for additional info. If
3a5729ea
KG
8386you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8387make sure that you have installed both the libraries and the header
8388files. They may be located in separate packages." "$LINENO" 5
91e0d220
AP
8389 else
8390 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8391Try the --with-gmp and/or --with-mpfr options to specify
8392their locations. If you obtained GMP and/or MPFR from a vendor
8393distribution package, make sure that you have installed both the libraries
8394and the header files. They may be located in separate packages." "$LINENO" 5
8395 fi
e69bf64b 8396 fi
70ec446f
KG
8397fi
8398
acd26225
KG
8399# Flags needed for both GMP, MPFR and/or MPC.
8400
8401
6de9cd9a
DN
8402
8403
8404
9e3eba15 8405
0ff2d841 8406
0b21f5d3 8407# Libraries to use for stage1 or when not bootstrapping.
00020c16 8408
0b21f5d3
EB
8409# Check whether --with-stage1-libs was given.
8410if test "${with_stage1_libs+set}" = set; then :
8411 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8412 stage1_libs=
00020c16 8413 else
0b21f5d3 8414 stage1_libs=$withval
00020c16
ILT
8415 fi
8416else
5dc85f7e 8417 stage1_libs=
5213506e
RW
8418fi
8419
00020c16
ILT
8420
8421
aac9103b
TT
8422# Whether or not to use -static-libstdc++ and -static-libgcc. The
8423# default is yes if gcc is being built; no otherwise. The reason for
8424# this default is that gdb is sometimes linked against GNU Source
8425# Highlight, which is a shared library that uses C++ exceptions. In
8426# this case, -static-libstdc++ will cause crashes.
8427
8428# Check whether --with-static-standard-libraries was given.
8429if test "${with_static_standard_libraries+set}" = set; then :
8430 withval=$with_static_standard_libraries;
8431else
8432 with_static_standard_libraries=auto
8433fi
8434
8435if test "$with_static_standard_libraries" = auto; then
8436 with_static_standard_libraries=$have_compiler
8437fi
8438
0b21f5d3 8439# Linker flags to use for stage1 or when not bootstrapping.
00020c16 8440
0b21f5d3
EB
8441# Check whether --with-stage1-ldflags was given.
8442if test "${with_stage1_ldflags+set}" = set; then :
8443 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8444 stage1_ldflags=
00020c16 8445 else
0b21f5d3 8446 stage1_ldflags=$withval
00020c16
ILT
8447 fi
8448else
0b21f5d3
EB
8449 stage1_ldflags=
8450 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8451 # if supported. But if the user explicitly specified the libraries to use,
8452 # trust that they are doing what they want.
aac9103b
TT
8453 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8454 -a "$have_static_libs" = yes; then
0b21f5d3
EB
8455 stage1_ldflags="-static-libstdc++ -static-libgcc"
8456 fi
5213506e
RW
8457fi
8458
00020c16
ILT
8459
8460
5dc85f7e 8461# Libraries to use for stage2 and later builds.
00020c16 8462
5213506e
RW
8463# Check whether --with-boot-libs was given.
8464if test "${with_boot_libs+set}" = set; then :
8465 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
8466 poststage1_libs=
8467 else
8468 poststage1_libs=$withval
8469 fi
8470else
5dc85f7e 8471 poststage1_libs=
5213506e
RW
8472fi
8473
00020c16
ILT
8474
8475
ed2eaa9f
ILT
8476# Linker flags to use for stage2 and later builds.
8477
8478# Check whether --with-boot-ldflags was given.
8479if test "${with_boot_ldflags+set}" = set; then :
8480 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8481 poststage1_ldflags=
8482 else
8483 poststage1_ldflags=$withval
8484 fi
8485else
8486 poststage1_ldflags=
bec93d73
ILT
8487 # In stages 2 and 3, default to linking libstdc++ and libgcc
8488 # statically. But if the user explicitly specified the libraries to
8489 # use, trust that they are doing what they want.
8490 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
8491 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8492 fi
8493fi
8494
6a6d3817
IS
8495case $target in
8496 *-darwin2* | *-darwin1[56789]*)
8497 # For these versions, we default to using embedded rpaths.
8498 if test "x$enable_darwin_at_rpath" != "xno"; then
8499 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
8500 fi
8501 ;;
8502 *-darwin*)
8503 # For these versions, we only use embedded rpaths on demand.
8504 if test "x$enable_darwin_at_rpath" = "xyes"; then
8505 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
8506 fi
8507 ;;
8508esac
ed2eaa9f
ILT
8509
8510
e357a5e0 8511# GCC GRAPHITE dependency isl.
4a9bb2aa 8512# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
8513
8514
33ad93b9
RG
8515# Check whether --with-isl was given.
8516if test "${with_isl+set}" = set; then :
8517 withval=$with_isl;
5213506e 8518fi
f8bf9252 8519
f8bf9252 8520
eae1a5d4 8521# Treat --without-isl as a request to disable
625afa23 8522# GRAPHITE support and skip all following checks.
eae1a5d4 8523if test "x$with_isl" != "xno"; then
e357a5e0 8524 # Check for isl
625afa23
RG
8525
8526
33ad93b9
RG
8527# Check whether --with-isl-include was given.
8528if test "${with_isl_include+set}" = set; then :
8529 withval=$with_isl_include;
5213506e
RW
8530fi
8531
f8bf9252 8532
33ad93b9
RG
8533# Check whether --with-isl-lib was given.
8534if test "${with_isl_lib+set}" = set; then :
8535 withval=$with_isl_lib;
5213506e 8536fi
f8bf9252 8537
f8bf9252 8538
33ad93b9
RG
8539 # Check whether --enable-isl-version-check was given.
8540if test "${enable_isl_version_check+set}" = set; then :
8541 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8542else
8543 ENABLE_ISL_CHECK=yes
7d32a440
SP
8544fi
8545
8546
33ad93b9
RG
8547 # Initialize isllibs and islinc.
8548 case $with_isl in
8549 no)
8550 isllibs=
8551 islinc=
8552 ;;
8553 "" | yes)
8554 ;;
8555 *)
8556 isllibs="-L$with_isl/lib"
8557 islinc="-I$with_isl/include"
8558 ;;
8559 esac
8560 if test "x${with_isl_include}" != x ; then
8561 islinc="-I$with_isl_include"
8562 fi
8563 if test "x${with_isl_lib}" != x; then
8564 isllibs="-L$with_isl_lib"
8565 fi
8566 if test "x${islinc}" = x && test "x${isllibs}" = x \
8567 && test -d ${srcdir}/isl; then
8568 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8569 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8570 ENABLE_ISL_CHECK=no
560d18d3
AK
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8572$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 8573 fi
7d32a440 8574
eae1a5d4
RG
8575 isllibs="${isllibs} -lisl"
8576
7d32a440 8577
7d32a440 8578
9847828b
RB
8579 if test "${ENABLE_ISL_CHECK}" = yes ; then
8580 _isl_saved_CFLAGS=$CFLAGS
8581 _isl_saved_LDFLAGS=$LDFLAGS
8582 _isl_saved_LIBS=$LIBS
8583
8584 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
8585 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8586 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 8587
f877b3ad
RB
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8589$as_echo_n "checking for isl 0.15 or later... " >&6; }
e0c0c325 8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 8591/* end confdefs.h. */
f877b3ad 8592#include <isl/schedule.h>
622dbadf
BC
8593int
8594main ()
8595{
f877b3ad 8596isl_options_set_schedule_serialize_sccs (NULL, 0);
622dbadf
BC
8597 ;
8598 return 0;
8599}
8600_ACEOF
8601if ac_fn_c_try_link "$LINENO"; then :
9847828b 8602 gcc_cv_isl=yes
622dbadf
BC
8603else
8604 gcc_cv_isl=no
8605fi
8606rm -f core conftest.err conftest.$ac_objext \
8607 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8609$as_echo "$gcc_cv_isl" >&6; }
8610
560d18d3 8611 if test "${gcc_cv_isl}" = no ; then
f877b3ad
RB
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8613$as_echo "required isl version is 0.15 or later" >&6; }
1e050c90
AK
8614 fi
8615
9847828b
RB
8616 CFLAGS=$_isl_saved_CFLAGS
8617 LDFLAGS=$_isl_saved_LDFLAGS
8618 LIBS=$_isl_saved_LIBS
8619 fi
8620
8621
f8bf9252 8622
f8bf9252 8623
33ad93b9
RG
8624
8625
33ad93b9
RG
8626 if test "x${with_isl}" = xno; then
8627 graphite_requested=no
8628 elif test "x${with_isl}" != x \
8629 || test "x${with_isl_include}" != x \
8630 || test "x${with_isl_lib}" != x ; then
8631 graphite_requested=yes
8632 else
8633 graphite_requested=no
7d32a440 8634 fi
d789184e 8635
d789184e
SP
8636
8637
33ad93b9
RG
8638 if test "${gcc_cv_isl}" = no ; then
8639 isllibs=
8640 islinc=
8641 fi
8642
8643 if test "${graphite_requested}" = yes \
8644 && test "x${isllibs}" = x \
8645 && test "x${islinc}" = x ; then
f8bf9252 8646
22e05272 8647 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 8648 fi
f8bf9252 8649
d32ef397 8650
d32ef397
AS
8651fi
8652
e357a5e0 8653# If the isl check failed, disable builds of in-tree variant of isl
625afa23 8654if test "x$with_isl" = xno ||
625afa23 8655 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 8656 noconfigdirs="$noconfigdirs isl"
625afa23 8657 islinc=
32d024bf
RG
8658fi
8659
625afa23
RG
8660
8661
8662
d7f09764
DN
8663# Check for LTO support.
8664# Check whether --enable-lto was given.
8665if test "${enable_lto+set}" = set; then :
8666 enableval=$enable_lto; enable_lto=$enableval
8667else
8668 enable_lto=yes; default_enable_lto=yes
8669fi
8670
8671
7413962d 8672
9a02962b
DK
8673
8674
8675target_elf=no
8676case $target in
8677 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 8678 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 8679 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 8680 nvptx-*-none)
9a02962b
DK
8681 target_elf=no
8682 ;;
8683 *)
8684 target_elf=yes
8685 ;;
8686esac
8687
8688if test $target_elf = yes; then :
48215350
DK
8689 # ELF platforms build the lto-plugin always.
8690 build_lto_plugin=yes
9a02962b 8691
9a02962b
DK
8692else
8693 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 8694 case $target in
deeba76a 8695 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 8696 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
8697 *) enable_lto=no ;;
8698 esac
9a02962b 8699 else
db50fe7d
IS
8700 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8701 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
8702 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8703 # warn during gcc/ subconfigure; unless you're bootstrapping with
8704 # -flto it won't be needed until after installation anyway.
8705 case $target in
9e530bcd 8706 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b 8707 *) if test x"$enable_lto" = x"yes"; then
22e05272 8708 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9a02962b
DK
8709 fi
8710 ;;
8711 esac
8712 fi
1cd0b716 8713 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 8714 # Build it unless LTO was explicitly disabled.
1cd0b716 8715 case $target in
48215350 8716 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
8717 *) ;;
8718 esac
48215350 8719
9a02962b
DK
8720fi
8721
d7f09764 8722
45b3824d
TS
8723# Check whether --enable-linker-plugin-configure-flags was given.
8724if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8725 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8726else
8727 extra_linker_plugin_configure_flags=
8728fi
8729
8730
8731# Check whether --enable-linker-plugin-flags was given.
8732if test "${enable_linker_plugin_flags+set}" = set; then :
8733 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8734else
8735 extra_linker_plugin_flags=
8736fi
8737
8738
8739
c1fecabe
IS
8740# Handle --enable-host-pie
8741# If host PIE executables are the default (or must be forced on) for some host,
8742# we must pass that configuration to the gcc directory.
8743gcc_host_pie=
b6cb10af
MP
8744# Check whether --enable-host-pie was given.
8745if test "${enable_host_pie+set}" = set; then :
8746 enableval=$enable_host_pie; host_pie=$enableval
8747 case $host in
c1fecabe 8748 *-*-darwin2*)
b6cb10af 8749 if test x$host_pie != xyes ; then
c1fecabe
IS
8750 # for Darwin20+ this is required.
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
8752$as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
b6cb10af 8753 host_pie=yes
c1fecabe 8754 gcc_host_pie=--enable-host-pie
b6cb10af
MP
8755 fi ;;
8756 *) ;;
8757 esac
8758else
8759 case $host in
c1fecabe
IS
8760 *-*-darwin2*)
8761 # Default to PIE (mandatory for aarch64).
8762 host_pie=yes
8763 gcc_host_pie=--enable-host-pie
8764 ;;
b6cb10af
MP
8765 *) host_pie=no ;;
8766 esac
8767fi
8768
8769
8770
8771
c1fecabe 8772
cdfee50a
NS
8773# Enable --enable-host-shared.
8774# Checked early to determine whether jit is an 'all' language
8775# Check whether --enable-host-shared was given.
8776if test "${enable_host_shared+set}" = set; then :
8777 enableval=$enable_host_shared; host_shared=$enableval
1edfc8f2 8778 case $host in
a1d2b162
IS
8779 x86_64-*-darwin* | aarch64-*-darwin*)
8780 if test x$host_shared != xyes ; then
8781 # PIC is the default, and actually cannot be switched off.
c1fecabe
IS
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
8783$as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
a1d2b162
IS
8784 host_shared=yes
8785 fi ;;
b6cb10af 8786 *-*-darwin*)
c1fecabe
IS
8787 if test x$host_pie = xyes -a x$host_shared != xyes ; then
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
8789$as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
b6cb10af
MP
8790 host_shared=yes
8791 fi ;;
a1d2b162
IS
8792 *) ;;
8793 esac
cdfee50a 8794else
1edfc8f2 8795 case $host in
c1fecabe 8796 # 64B x86_64 and Aarch64 Darwin default to PIC.
a1d2b162 8797 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
c1fecabe
IS
8798 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
8799 *-*-darwin*) host_shared=$host_pie ;;
b6cb10af 8800 *) host_shared=no;;
a1d2b162 8801 esac
cdfee50a
NS
8802fi
8803
8804
f8bf9252 8805
05048fc2 8806
b6cb10af 8807if test x$host_shared = xyes; then
c1fecabe
IS
8808 case $host in
8809 *-*-darwin*)
8810 # Since host shared is the default for 64b Darwin, and also enabled for
8811 # host_pie, ensure that we present the PIE flag when host_pie is active.
8812 if test x$host_pie = xyes; then
8813 PICFLAG=-fPIE
8814 fi
8815 ;;
8816 *)
8817 PICFLAG=-fPIC
8818 ;;
8819 esac
b6cb10af
MP
8820elif test x$host_pie = xyes; then
8821 PICFLAG=-fPIE
8822else
8823 PICFLAG=
8824fi
8825
8826
8827
05048fc2
IS
8828# If we are building PIC/PIE host executables, and we are building dependent
8829# libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8830# code.
8831host_libs_picflag=
b6cb10af 8832if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
05048fc2
IS
8833host_libs_picflag='--with-pic'
8834fi
8835
8836
0823efed 8837# By default, C and C++ are the only stage 1 languages.
e1888513 8838stage1_languages=,c,
2805b53a 8839
00020c16 8840# Target libraries that we bootstrap.
ad1e5170 8841bootstrap_target_libs=,target-libgcc,
00020c16 8842
55ffb5ed
NN
8843# Figure out what language subdirectories are present.
8844# Look if the user specified --enable-languages="..."; if not, use
8845# the environment variable $LANGUAGES if defined. $LANGUAGES might
8846# go away some day.
8847# NB: embedded tabs in this IF block -- do not untabify
8848if test -d ${srcdir}/gcc; then
8849 if test x"${enable_languages+set}" != xset; then
8850 if test x"${LANGUAGES+set}" = xset; then
8851 enable_languages="${LANGUAGES}"
6b1786aa 8852 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed 8853 else
cdfee50a 8854 enable_languages=default
55ffb5ed
NN
8855 fi
8856 else
8857 if test x"${enable_languages}" = x ||
8858 test x"${enable_languages}" = xyes;
8859 then
6b1786aa 8860 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
8861 exit 1
8862 fi
8863 fi
8864 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8865
7f26dfa3
FXC
8866 # 'f95' is the old name for the 'fortran' language. We issue a warning
8867 # and make the substitution.
8868 case ,${enable_languages}, in
8869 *,f95,*)
6b1786aa 8870 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
8871 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8872 ;;
8873 esac
8874
0823efed
DN
8875 # If bootstrapping, C++ must be enabled.
8876 case ",$enable_languages,:$enable_bootstrap" in
8877 *,c++,*:*) ;;
8878 *:yes)
ff3ac0f4
ILT
8879 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8880 enable_languages="${enable_languages},c++"
8881 else
22e05272 8882 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
8883 fi
8884 ;;
8885 esac
8886
55ffb5ed
NN
8887 # First scan to see if an enabled language requires some other language.
8888 # We assume that a given config-lang.in will list all the language
8889 # front ends it requires, even if some are required indirectly.
8890 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8891 case ${lang_frag} in
8892 ..) ;;
8893 # The odd quoting in the next line works around
8894 # an apparent bug in bash 1.12 on linux.
8895 ${srcdir}/gcc/[*]/config-lang.in) ;;
8896 *)
69ecd18f
ILT
8897 # From the config-lang.in, get $language, $lang_requires, and
8898 # $lang_requires_boot_languages.
55ffb5ed
NN
8899 language=
8900 lang_requires=
69ecd18f 8901 lang_requires_boot_languages=
d4360477
NS
8902 # set srcdir during sourcing lang_frag to the gcc dir.
8903 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8904 # polutes this shell
8905 saved_srcdir=${srcdir}
8906 srcdir=${srcdir}/gcc . ${lang_frag}
8907 srcdir=${saved_srcdir}
69ecd18f 8908 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
8909 case ,${enable_languages}, in
8910 *,$other,*) ;;
cdfee50a 8911 *,default,*) ;;
55ffb5ed
NN
8912 *,all,*) ;;
8913 *,$language,*)
8914 echo " \`$other' language required by \`$language'; enabling" 1>&2
8915 enable_languages="${enable_languages},${other}"
8916 ;;
8917 esac
8918 done
69ecd18f
ILT
8919 for other in ${lang_requires_boot_languages} ; do
8920 if test "$other" != "c"; then
8921 case ,${enable_stage1_languages}, in
8922 *,$other,*) ;;
cdfee50a 8923 *,default,*) ;;
69ecd18f
ILT
8924 *,all,*) ;;
8925 *)
8926 case ,${enable_languages}, in
8927 *,$language,*)
8928 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8929 enable_stage1_languages="$enable_stage1_languages,${other}"
8930 ;;
8931 esac
8932 ;;
8933 esac
8934 fi
8935 done
55ffb5ed
NN
8936 ;;
8937 esac
8938 done
8939
e1888513 8940 new_enable_languages=,c,
d7f09764
DN
8941
8942 # If LTO is enabled, add the LTO front end.
d7f09764 8943 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
8944 case ,${enable_languages}, in
8945 *,lto,*) ;;
8946 *) enable_languages="${enable_languages},lto" ;;
8947 esac
1cd0b716 8948 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 8949 configdirs="$configdirs lto-plugin"
d7f09764
DN
8950 fi
8951 fi
8952
426c1eb0
TS
8953 # If we're building an offloading compiler, add the LTO front end.
8954 if test x"$enable_as_accelerator_for" != x ; then
8955 case ,${enable_languages}, in
8956 *,lto,*) ;;
8957 *) enable_languages="${enable_languages},lto" ;;
8958 esac
8959 fi
8960
cdfee50a 8961 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
e1888513 8962 potential_languages=,c,
55ffb5ed 8963
4da3b0f8
ILT
8964 enabled_target_libs=
8965 disabled_target_libs=
8966
55ffb5ed
NN
8967 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8968 case ${lang_frag} in
8969 ..) ;;
8970 # The odd quoting in the next line works around
8971 # an apparent bug in bash 1.12 on linux.
8972 ${srcdir}/gcc/[*]/config-lang.in) ;;
8973 *)
1c710c3c 8974 # From the config-lang.in, get $language, $target_libs,
2805b53a 8975 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
8976 language=
8977 target_libs=
8978 lang_dirs=
1546bb64 8979 subdir_requires=
e1888513
PB
8980 boot_language=no
8981 build_by_default=yes
d4360477
NS
8982 # set srcdir during sourcing. See above about save & restore
8983 saved_srcdir=${srcdir}
8984 srcdir=${srcdir}/gcc . ${lang_frag}
8985 srcdir=${saved_srcdir}
e1888513
PB
8986 if test x${language} = x; then
8987 echo "${lang_frag} doesn't set \$language." 1>&2
8988 exit 1
8989 fi
8990
78767fd9 8991 if test "$language" = "c++"; then
0823efed 8992 boot_language=yes
00020c16
ILT
8993 fi
8994
178f875a 8995 add_this_lang=no
cdfee50a
NS
8996 # C is always enabled, so no need to add it again
8997 if test "$language" != "c"; then
8998 case ,${enable_languages}, in
8999 *,${language},*)
9000 # Language was explicitly selected; include it
d4a10d0a 9001 add_this_lang=yes
cdfee50a
NS
9002 ;;
9003 *,all,*)
9004 # All languages are enabled
9005 add_this_lang=all
9006 ;;
9007 *,default,*)
9008 # 'default' was selected, select it if it is a default language
178f875a 9009 add_this_lang=${build_by_default}
cdfee50a
NS
9010 ;;
9011 esac
9012 fi
6de9cd9a 9013
1546bb64 9014 # Disable languages that need other directories if these aren't available.
95695ad3 9015 for i in $subdir_requires; do
b6348cb3 9016 test -f "$srcdir/gcc/$i/config-lang.in" && continue
cdfee50a
NS
9017 case ${add_this_lang} in
9018 yes)
1546bb64 9019 # Specifically requested language; tell them.
22e05272 9020 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64 9021 ;;
cdfee50a
NS
9022 all)
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
9024$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
9025 add_this_lang=unsupported
9026 ;;
1546bb64
PB
9027 *)
9028 # Silently disable.
e1888513 9029 add_this_lang=unsupported
1546bb64
PB
9030 ;;
9031 esac
9032 done
9033
e1888513 9034 # Disable Ada if no preexisting GNAT is available.
cdfee50a
NS
9035 case ${add_this_lang}:${language}:${have_gnat} in
9036 yes:ada:no)
e1888513 9037 # Specifically requested language; tell them.
22e05272 9038 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
e1888513 9039 ;;
cdfee50a
NS
9040 all:ada:no)
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
9042$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
9043 add_this_lang=unsupported
9044 ;;
e1888513
PB
9045 *:ada:no)
9046 # Silently disable.
9047 add_this_lang=unsupported
9048 ;;
9049 esac
9050
5fee5ec3
IB
9051 # Disable D if no preexisting GDC is available.
9052 case ${add_this_lang}:${language}:${have_gdc} in
9053 yes:d:no)
9054 # Specifically requested language; tell them.
9055 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
9056 ;;
9057 all:d:no)
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
9059$as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
9060 add_this_lang=unsupported
9061 ;;
9062 *:d:no)
9063 # Silently disable.
9064 add_this_lang=unsupported
9065 ;;
9066 esac
9067
cdfee50a 9068 # Disable jit if -enable-host-shared not specified
ffac9597
JM
9069 # but not if building for Mingw. All code in Windows
9070 # is position independent code (PIC).
c83027f3
NB
9071 case $target in
9072 *mingw*) ;;
9073 *)
9074 case ${add_this_lang}:${language}:${host_shared} in
9075 yes:jit:no)
9076 # PR jit/64780: explicitly specify --enable-host-shared
22e05272 9077 as_fn_error $? "
cdfee50a
NS
9078Enabling language \"jit\" requires --enable-host-shared.
9079
9080--enable-host-shared typically slows the rest of the compiler down by
9081a few %, so you must explicitly enable it.
9082
9083If you want to build both the jit and the regular compiler, it is often
9084best to do this via two separate configure/builds, in separate
9085directories, to avoid imposing the performance cost of
9086--enable-host-shared on the regular compiler." "$LINENO" 5
c83027f3
NB
9087 ;;
9088 all:jit:no)
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
cdfee50a 9090$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
c83027f3
NB
9091 add_this_lang=unsupported
9092 ;;
9093 *:jit:no)
9094 # Silently disable.
9095 add_this_lang=unsupported
9096 ;;
9097 esac
9098 ;;
9099 esac
cdfee50a
NS
9100
9101 # Disable a language that is unsupported by the target.
9102 case "${add_this_lang}: $unsupported_languages " in
9103 no:*) ;;
9104 unsupported:*) ;;
9105 *:*" $language "*)
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9107$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
e1888513 9108 add_this_lang=unsupported
4fab7234
HPN
9109 ;;
9110 esac
9111
6de9cd9a 9112 case $add_this_lang in
e1888513 9113 unsupported)
55ffb5ed 9114 # Remove language-dependent dirs.
4da3b0f8
ILT
9115 disabled_target_libs="$disabled_target_libs $target_libs"
9116 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 9117 ;;
e1888513
PB
9118 no)
9119 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
9120 disabled_target_libs="$disabled_target_libs $target_libs"
9121 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
9122 potential_languages="${potential_languages}${language},"
9123 ;;
cdfee50a 9124 all|yes)
e1888513
PB
9125 new_enable_languages="${new_enable_languages}${language},"
9126 potential_languages="${potential_languages}${language},"
2805b53a 9127 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 9128 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
9129 case "${boot_language}:,$enable_stage1_languages," in
9130 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 9131 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
9132 case ",$stage1_languages," in
9133 *,$language,* | ,yes, | ,all,) ;;
9134 *) stage1_languages="${stage1_languages}${language}," ;;
9135 esac
00020c16 9136 # We need to bootstrap any supporting libraries.
5fee5ec3 9137 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
2805b53a
NN
9138 ;;
9139 esac
9140 ;;
55ffb5ed
NN
9141 esac
9142 ;;
9143 esac
9144 done
9145
4da3b0f8
ILT
9146 # Add target libraries which are only needed for disabled languages
9147 # to noconfigdirs.
9148 if test -n "$disabled_target_libs"; then
9149 for dir in $disabled_target_libs; do
9150 case " $enabled_target_libs " in
9151 *" ${dir} "*) ;;
9152 *) noconfigdirs="$noconfigdirs $dir" ;;
9153 esac
9154 done
9155 fi
9156
5213506e
RW
9157 # Check whether --enable-stage1-languages was given.
9158if test "${enable_stage1_languages+set}" = set; then :
9159 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
9160 ,no,|,,)
9161 # Set it to something that will have no effect in the loop below
9162 enable_stage1_languages=c ;;
9163 ,yes,)
9164 enable_stage1_languages=`echo $new_enable_languages | \
9165 sed -e "s/^,//" -e "s/,$//" ` ;;
9166 *,all,*)
9167 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9168 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9169 esac
9170
9171 # Add "good" languages from enable_stage1_languages to stage1_languages,
9172 # while "bad" languages go in missing_languages. Leave no duplicates.
9173 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9174 case $potential_languages in
9175 *,$i,*)
9176 case $stage1_languages in
9177 *,$i,*) ;;
9178 *) stage1_languages="$stage1_languages$i," ;;
9179 esac ;;
9180 *)
9181 case $missing_languages in
9182 *,$i,*) ;;
9183 *) missing_languages="$missing_languages$i," ;;
9184 esac ;;
9185 esac
9186 done
5213506e
RW
9187fi
9188
e1888513
PB
9189
9190 # Remove leading/trailing commas that were added for simplicity
9191 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 9192 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
9193 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9194 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9195
55ffb5ed 9196 if test "x$missing_languages" != x; then
22e05272 9197 as_fn_error $? "
0cf085e4 9198The following requested languages could not be built: ${missing_languages}
5213506e 9199Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 9200 fi
55ffb5ed
NN
9201 if test "x$new_enable_languages" != "x$enable_languages"; then
9202 echo The following languages will be built: ${new_enable_languages}
e1888513 9203 enable_languages="$new_enable_languages"
55ffb5ed 9204 fi
e1888513 9205
1c710c3c 9206
b2eaac4a 9207 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
9208fi
9209
27079765
AH
9210# Handle --disable-<component> generically.
9211for dir in $configdirs $build_configdirs $target_configdirs ; do
9212 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
9213 varname=`echo $dirname | sed -e s/+/_/g`
9214 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
9215 noconfigdirs="$noconfigdirs $dir"
9216 fi
9217done
9218
43c40f3e
RO
9219# Check for Boehm's garbage collector
9220# Check whether --enable-objc-gc was given.
9221if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
9222 enableval=$enable_objc_gc;
9223fi
9224
9225
9226# Check whether --with-target-bdw-gc was given.
9227if test "${with_target_bdw_gc+set}" = set; then :
9228 withval=$with_target_bdw_gc;
9229fi
9230
9231
9232# Check whether --with-target-bdw-gc-include was given.
9233if test "${with_target_bdw_gc_include+set}" = set; then :
9234 withval=$with_target_bdw_gc_include;
9235fi
9236
9237
9238# Check whether --with-target-bdw-gc-lib was given.
9239if test "${with_target_bdw_gc_lib+set}" = set; then :
9240 withval=$with_target_bdw_gc_lib;
9241fi
9242
9243
9244case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9246$as_echo_n "checking for bdw garbage collector... " >&6; }
9247 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9249$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
9250 else
9251 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
22e05272 9252 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
114bf3f1 9253 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
22e05272 9254 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
114bf3f1
MK
9255 else
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9257$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9258 fi
9259 fi
43c40f3e
RO
9260esac
9261
e4cba494 9262# Disable libitm, libsanitizer, libvtv if we're not building C++
99776ebd 9263case ,${enable_languages}, in
1007a55c 9264 *,c++,*)
5e9d6aa4 9265 # Disable libitm, libsanitizer if we're not building libstdc++
1007a55c
JW
9266 case "${noconfigdirs}" in
9267 *target-libstdc++-v3*)
5e9d6aa4 9268 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1007a55c
JW
9269 ;;
9270 *) ;;
9271 esac
9272 ;;
99776ebd 9273 *)
e4cba494 9274 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
9275 ;;
9276esac
9277
dc614a83
AB
9278# If gcc/ is not in the source tree then we'll not be building a
9279# target compiler, assume in that case we don't want to build any
9280# target libraries or tools.
9281#
9282# This was added primarily for the benefit for binutils-gdb who reuse
9283# this configure script, but don't always have target tools available.
9284if test ! -d ${srcdir}/gcc; then
9285 skipdirs="${skipdirs} ${target_configdirs}"
9286fi
9287
ee6a22df
L
9288# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9289# $build_configdirs and $target_configdirs.
55ffb5ed
NN
9290# If we have the source for $noconfigdirs entries, add them to $notsupp.
9291
9292notsupp=""
9293for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 9294 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
9295 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9296 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9297 if test -r $srcdir/$dirname/configure ; then
9298 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9299 true
9300 else
9301 notsupp="$notsupp $dir"
9302 fi
9303 fi
9304 fi
ee6a22df
L
9305 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9306 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9307 if test -r $srcdir/$dirname/configure ; then
9308 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9309 true
9310 else
9311 notsupp="$notsupp $dir"
9312 fi
9313 fi
9314 fi
55ffb5ed
NN
9315 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9316 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9317 if test -r $srcdir/$dirname/configure ; then
9318 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9319 true
9320 else
9321 notsupp="$notsupp $dir"
9322 fi
9323 fi
9324 fi
9325done
9326
55ffb5ed
NN
9327# Quietly strip out all directories which aren't configurable in this tree.
9328# This relies on all configurable subdirectories being autoconfiscated, which
9329# is now the case.
23f6b2f9
PB
9330build_configdirs_all="$build_configdirs"
9331build_configdirs=
9332for i in ${build_configdirs_all} ; do
1c710c3c 9333 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
9334 if test -f ${srcdir}/$j/configure ; then
9335 build_configdirs="${build_configdirs} $i"
9336 fi
9337done
9338
55ffb5ed
NN
9339configdirs_all="$configdirs"
9340configdirs=
9341for i in ${configdirs_all} ; do
9342 if test -f ${srcdir}/$i/configure ; then
9343 configdirs="${configdirs} $i"
9344 fi
9345done
23f6b2f9 9346
55ffb5ed
NN
9347target_configdirs_all="$target_configdirs"
9348target_configdirs=
9349for i in ${target_configdirs_all} ; do
1c710c3c 9350 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
9351 if test -f ${srcdir}/$j/configure ; then
9352 target_configdirs="${target_configdirs} $i"
9353 fi
9354done
9355
45b3824d
TS
9356# libiberty-linker-plugin is special: it doesn't have its own source directory,
9357# so we have to add it after the preceding checks.
9358if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9359then
9360 case " $configdirs " in
9361 *" libiberty "*)
9362 # If we can build libiberty, we can also build libiberty-linker-plugin.
9363 configdirs="$configdirs libiberty-linker-plugin"
9364 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9365 --with-libiberty=../libiberty-linker-plugin";;
9366 *)
22e05272 9367 as_fn_error $? "libiberty missing" "$LINENO" 5;;
45b3824d
TS
9368 esac
9369fi
9370
fca38047
TS
9371# Sometimes we have special requirements for the host libiberty.
9372extra_host_libiberty_configure_flags=
9373case " $configdirs " in
15368960 9374 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
fca38047
TS
9375 # When these are to be built as shared libraries, the same applies to
9376 # libiberty.
9377 extra_host_libiberty_configure_flags=--enable-shared
9378 ;;
04bb15e4
TV
9379esac
9380
9381
9382# Sometimes we have special requirements for the host zlib.
9383extra_host_zlib_configure_flags=
9384case " $configdirs " in
1c01ebf6
L
9385 *" bfd "*)
9386 # When bfd is to be built as a shared library, the same applies to
9387 # zlib.
9388 if test "$enable_shared" = "yes"; then
9389 extra_host_zlib_configure_flags=--enable-host-shared
9390 fi
9391 ;;
fca38047
TS
9392esac
9393
9394
55ffb5ed
NN
9395# Produce a warning message for the subdirs we can't configure.
9396# This isn't especially interesting in the Cygnus tree, but in the individual
9397# FSF releases, it's important to let people know when their machine isn't
9398# supported by the one or two programs in a package.
9399
9400if test -n "${notsupp}" && test -z "${norecursion}" ; then
9401 # If $appdirs is non-empty, at least one of those directories must still
9402 # be configured, or we error out. (E.g., if the gas release supports a
9403 # specified target in some subdirs but not the gas subdir, we shouldn't
9404 # pretend that all is well.)
9405 if test -n "$appdirs" ; then
9406 for dir in $appdirs ; do
9407 if test -r $dir/Makefile.in ; then
9408 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9409 appdirs=""
9410 break
9411 fi
23f6b2f9 9412 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
9413 appdirs=""
9414 break
9415 fi
9416 fi
9417 done
9418 if test -n "$appdirs" ; then
9419 echo "*** This configuration is not supported by this package." 1>&2
9420 exit 1
9421 fi
9422 fi
9423 # Okay, some application will build, or we don't care to check. Still
9424 # notify of subdirs not getting built.
9425 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9426 echo " ${notsupp}" 1>&2
9427 echo " (Any other directories should still work fine.)" 1>&2
9428fi
9429
9430case "$host" in
9431 *msdosdjgpp*)
9432 enable_gdbtk=no ;;
9433esac
9434
c3a86da9
DJ
9435# To find our prefix, in gcc_cv_tool_prefix.
9436
9437# The user is always right.
9438if test "${PATH_SEPARATOR+set}" != set; then
9439 echo "#! /bin/sh" >conf$$.sh
9440 echo "exit 0" >>conf$$.sh
9441 chmod +x conf$$.sh
9442 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9443 PATH_SEPARATOR=';'
9444 else
9445 PATH_SEPARATOR=:
9446 fi
9447 rm -f conf$$.sh
9448fi
9449
9450
3c36aa6b
JJ
9451 get_gcc_base_ver="cat"
9452
9453# Check whether --with-gcc-major-version-only was given.
9454if test "${with_gcc_major_version_only+set}" = set; then :
9455 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
31db0fe0 9456 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
9457 fi
9458
9459fi
9460
9461
9462
9463
9464
c3a86da9
DJ
9465
9466if test "x$exec_prefix" = xNONE; then
9467 if test "x$prefix" = xNONE; then
9468 gcc_cv_tool_prefix=$ac_default_prefix
9469 else
9470 gcc_cv_tool_prefix=$prefix
9471 fi
9472else
9473 gcc_cv_tool_prefix=$exec_prefix
9474fi
9475
9476# If there is no compiler in the tree, use the PATH only. In any
9477# case, if there is no compiler in the tree nobody should use
9478# AS_FOR_TARGET and LD_FOR_TARGET.
9479if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
9480 if test x$with_gcc_major_version_only = xyes ; then
9481 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9482 else
9483 gcc_version=`cat $srcdir/gcc/BASE-VER`
9484 fi
c3a86da9
DJ
9485 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9486 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9487 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9488 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9489 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9490 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9491else
9492 gcc_cv_tool_dirs=
9493fi
9494
9495if test x$build = x$target && test -n "$md_exec_prefix"; then
9496 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9497fi
9498
9499
9500
55ffb5ed
NN
9501copy_dirs=
9502
1c710c3c 9503
5213506e
RW
9504# Check whether --with-build-sysroot was given.
9505if test "${with_build_sysroot+set}" = set; then :
9506 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
9507 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9508 fi
9509else
9510 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 9511fi
526635cb
MM
9512
9513
c8aea42c 9514
5213506e
RW
9515
9516# Check whether --with-debug-prefix-map was given.
9517if test "${with_debug_prefix_map+set}" = set; then :
9518 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
9519 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9520 for debug_map in $withval; do
9521 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9522 done
9523 fi
9524else
9525 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
9526fi
9527
c8aea42c
PB
9528
9529
1c8bd6a3
PB
9530# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9531# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9532# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9533# We want to ensure that TARGET libraries (which we know are built with
9534# gcc) are built with "-O2 -g", so include those options when setting
9535# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9536if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9537 if test "x${is_cross_compiler}" = xyes; then
9538 CFLAGS_FOR_TARGET="-g -O2"
9539 else
9540 CFLAGS_FOR_TARGET=$CFLAGS
9541 case " $CFLAGS " in
9542 *" -O2 "*) ;;
9543 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9544 esac
9545 case " $CFLAGS " in
9546 *" -g "* | *" -g3 "*) ;;
9547 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9548 esac
9549 fi
1c8bd6a3
PB
9550fi
9551
9552
9553if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9554 if test "x${is_cross_compiler}" = xyes; then
9555 CXXFLAGS_FOR_TARGET="-g -O2"
9556 else
9557 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9558 case " $CXXFLAGS " in
9559 *" -O2 "*) ;;
9560 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9561 esac
9562 case " $CXXFLAGS " in
9563 *" -g "* | *" -g3 "*) ;;
9564 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9565 esac
9566 fi
1c8bd6a3
PB
9567fi
9568
9569
6f57bdf6
DK
9570
9571
55ffb5ed
NN
9572# Handle --with-headers=XXX. If the value is not "yes", the contents of
9573# the named directory are copied to $(tooldir)/sys-include.
9574if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9575 if test x${is_cross_compiler} = xno ; then
9576 echo 1>&2 '***' --with-headers is only supported when cross compiling
9577 exit 1
9578 fi
9579 if test x"${with_headers}" != xyes ; then
c3a86da9 9580 x=${gcc_cv_tool_prefix}
1c710c3c 9581 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
9582 fi
9583fi
9584
9585# Handle --with-libs=XXX. If the value is not "yes", the contents of
9586# the name directories are copied to $(tooldir)/lib. Multiple directories
9587# are permitted.
9588if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9589 if test x${is_cross_compiler} = xno ; then
9590 echo 1>&2 '***' --with-libs is only supported when cross compiling
9591 exit 1
9592 fi
9593 if test x"${with_libs}" != xyes ; then
9594 # Copy the libraries in reverse order, so that files in the first named
9595 # library override files in subsequent libraries.
c3a86da9 9596 x=${gcc_cv_tool_prefix}
55ffb5ed 9597 for l in ${with_libs}; do
1c710c3c 9598 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
9599 done
9600 fi
9601fi
9602
d7f09764 9603# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
9604#
9605# This is done by determining whether or not the appropriate directory
9606# is available, and by checking whether or not specific configurations
9607# have requested that this magic not happen.
1c710c3c
DJ
9608#
9609# The command line options always override the explicit settings in
6b1786aa 9610# configure.ac, and the settings in configure.ac override this magic.
e8b05380 9611#
1c710c3c 9612# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 9613# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
9614# --without-gnu-ld options for the configure script. Similarly, if
9615# the default is to use the included zlib and you don't want to do that,
9616# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
9617
9618if test x${use_gnu_as} = x &&
9619 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9620 with_gnu_as=yes
9621 extra_host_args="$extra_host_args --with-gnu-as"
9622fi
9623
9624if test x${use_gnu_ld} = x &&
5afab7ad 9625 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
9626 with_gnu_ld=yes
9627 extra_host_args="$extra_host_args --with-gnu-ld"
9628fi
9629
d7f09764
DN
9630if test x${use_included_zlib} = x &&
9631 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9632 :
9633else
9634 with_system_zlib=yes
9635 extra_host_args="$extra_host_args --with-system-zlib"
9636fi
9637
e8b05380
PB
9638# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9639# can detect this case.
9640
9641if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9642 with_newlib=yes
9643 extra_host_args="$extra_host_args --with-newlib"
9644fi
9645
55ffb5ed
NN
9646# Handle ${copy_dirs}
9647set fnord ${copy_dirs}
9648shift
9649while test $# != 0 ; do
9650 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9651 :
9652 else
9653 echo Copying $1 to $2
9654
9655 # Use the install script to create the directory and all required
9656 # parent directories.
9657 if test -d $2 ; then
9658 :
9659 else
9660 echo >config.temp
9661 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9662 fi
9663
9664 # Copy the directory, assuming we have tar.
9665 # FIXME: Should we use B in the second tar? Not all systems support it.
9666 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9667
9668 # It is the responsibility of the user to correctly adjust all
9669 # symlinks. If somebody can figure out how to handle them correctly
9670 # here, feel free to add the code.
9671
9672 echo $1 > $2/COPIED
9673 fi
9674 shift; shift
9675done
9676
e8b05380
PB
9677# Determine a target-dependent exec_prefix that the installed
9678# gcc will search in. Keep this list sorted by triplet, with
9679# the *-*-osname triplets last.
9680md_exec_prefix=
9681case "${target}" in
30b74385 9682 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
9683 md_exec_prefix=/dev/env/DJDIR/bin
9684 ;;
e8b05380 9685 *-*-hpux* | \
e8b05380 9686 *-*-nto-qnx* | \
6de66370 9687 *-*-solaris2*)
e8b05380
PB
9688 md_exec_prefix=/usr/ccs/bin
9689 ;;
9690esac
9691
671aa708
NN
9692extra_arflags_for_target=
9693extra_nmflags_for_target=
9694extra_ranlibflags_for_target=
9695target_makefile_frag=/dev/null
9696case "${target}" in
58e24147
AM
9697 spu-*-*)
9698 target_makefile_frag="config/mt-spu"
9699 ;;
227b18f5
YY
9700 loongarch*-*linux* | loongarch*-*gnu*)
9701 target_makefile_frag="config/mt-loongarch-gnu"
9702 ;;
9703 loongarch*-*elf*)
9704 target_makefile_frag="config/mt-loongarch-elf"
9705 ;;
d896cc4d 9706 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
9707 target_makefile_frag="config/mt-sde"
9708 ;;
1ec3b87b
RS
9709 mipsisa*-*-elfoabi*)
9710 target_makefile_frag="config/mt-mips-elfoabi"
9711 ;;
08d0963a
RS
9712 mips*-*-*linux* | mips*-*-gnu*)
9713 target_makefile_frag="config/mt-mips-gnu"
9714 ;;
707f1839
SL
9715 nios2-*-elf*)
9716 target_makefile_frag="config/mt-nios2-elf"
9717 ;;
76052545
EB
9718 *-*-linux-android*)
9719 target_makefile_frag="config/mt-android"
9720 ;;
416ac4d4 9721 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 9722 target_makefile_frag="config/mt-gnu"
671aa708
NN
9723 ;;
9724 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 9725 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
9726 # commands to handle both 32-bit and 64-bit objects. These flags are
9727 # harmless if we're using GNU nm or ar.
9728 extra_arflags_for_target=" -X32_64"
9729 extra_nmflags_for_target=" -B -X32_64"
9730 ;;
671aa708
NN
9731esac
9732
9733alphaieee_frag=/dev/null
9734case $target in
9735 alpha*-*-*)
9736 # This just makes sure to use the -mieee option to build target libs.
9737 # This should probably be set individually by each library.
9738 alphaieee_frag="config/mt-alphaieee"
9739 ;;
9740esac
9741
9742# If --enable-target-optspace always use -Os instead of -O2 to build
9743# the target libraries, similarly if it is not specified, use -Os
9744# on selected platforms.
9745ospace_frag=/dev/null
9746case "${enable_target_optspace}:${target}" in
9747 yes:*)
9748 ospace_frag="config/mt-ospace"
9749 ;;
9750 :d30v-*)
9751 ospace_frag="config/mt-d30v"
9752 ;;
d9063947 9753 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
9754 ospace_frag="config/mt-ospace"
9755 ;;
9756 no:* | :*)
9757 ;;
9758 *)
9759 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9760 ;;
9761esac
9762
671aa708
NN
9763# Some systems (e.g., one of the i386-aix systems the gas testers are
9764# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 9765tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
9766build_tooldir=${tooldir}
9767
671aa708
NN
9768# Create a .gdbinit file which runs the one in srcdir
9769# and tells GDB to look there for source files.
9770
9771if test -r ${srcdir}/.gdbinit ; then
9772 case ${srcdir} in
9773 .) ;;
9774 *) cat > ./.gdbinit <<EOF
9775# ${NO_EDIT}
9776dir ${srcdir}
9777dir .
9778source ${srcdir}/.gdbinit
9779EOF
9780 ;;
9781 esac
9782fi
9783
671aa708
NN
9784# Make sure that the compiler is able to generate an executable. If it
9785# can't, we are probably in trouble. We don't care whether we can run the
9786# executable--we might be using a cross compiler--we only care whether it
9787# can be created. At this point the main configure script has set CC.
9788we_are_ok=no
9789echo "int main () { return 0; }" > conftest.c
9790${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9791if test $? = 0 ; then
9792 if test -s conftest || test -s conftest.exe ; then
9793 we_are_ok=yes
9794 fi
1c710c3c 9795fi
671aa708
NN
9796case $we_are_ok in
9797 no)
9798 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9799 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9800 rm -f conftest*
9801 exit 1
9802 ;;
9803esac
9804rm -f conftest*
9805
d89f0ad6 9806# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
9807case "${host}" in
9808 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 9809 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 9810 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
9811 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9812esac
9813
d89f0ad6
AL
9814# On systems where the dynamic library environment variable is PATH,
9815# gcc/ will put dynamic libraries into a subdirectory to avoid adding
9816# built executables to PATH.
9817if test "$RPATH_ENVVAR" = PATH; then
9818 GCC_SHLIB_SUBDIR=/shlib
9819else
9820 GCC_SHLIB_SUBDIR=
9821fi
9822
beeda1d9
JJ
9823# Adjust the toplevel makefile according to whether bootstrap was selected.
9824case $enable_bootstrap in
9825 yes)
9826 bootstrap_suffix=bootstrap
9827 BUILD_CONFIG=bootstrap-debug
9828 ;;
9829 no)
9830 bootstrap_suffix=no-bootstrap
9831 BUILD_CONFIG=
9832 ;;
9833esac
9834
9835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9836$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9837
9838
9839# Check whether --with-build-config was given.
9840if test "${with_build_config+set}" = set; then :
9841 withval=$with_build_config; case $with_build_config in
9842 yes) with_build_config= ;;
9843 no) with_build_config= BUILD_CONFIG= ;;
9844 esac
9845fi
9846
9847
9848if test "x${with_build_config}" != x; then
9849 BUILD_CONFIG=$with_build_config
9850else
9851 case $BUILD_CONFIG in
9852 bootstrap-debug)
9853 if echo "int f (void) { return 0; }" > conftest.c &&
9854 ${CC} -c conftest.c &&
9855 mv conftest.o conftest.o.g0 &&
9856 ${CC} -c -g conftest.c &&
9857 mv conftest.o conftest.o.g &&
9858 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9859 :
9860 else
9861 BUILD_CONFIG=
9862 fi
9863 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9864 ;;
9865 esac
9866fi
9867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9868$as_echo "$BUILD_CONFIG" >&6; }
9869
9870
9871# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9873$as_echo_n "checking for --enable-vtable-verify... " >&6; }
9874# Check whether --enable-vtable-verify was given.
9875if test "${enable_vtable_verify+set}" = set; then :
9876 enableval=$enable_vtable_verify; case "$enableval" in
9877 yes) enable_vtable_verify=yes ;;
9878 no) enable_vtable_verify=no ;;
9879 *) enable_vtable_verify=no;;
9880 esac
9881else
9882 enable_vtable_verify=no
9883fi
9884
9885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9886$as_echo "$enable_vtable_verify" >&6; }
9887
671aa708
NN
9888# Record target_configdirs and the configure arguments for target and
9889# build configuration in Makefile.
9890target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 9891build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 9892bootstrap_fixincludes=no
671aa708 9893
ad1e5170
JR
9894# If we are building libgomp, bootstrap it.
9895if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9896 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9897fi
9898
beeda1d9
JJ
9899# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9900# or bootstrap-ubsan, bootstrap it.
9901if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9902 case "$BUILD_CONFIG" in
170e618e 9903 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
beeda1d9 9904 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 9905 bootstrap_fixincludes=yes
beeda1d9
JJ
9906 ;;
9907 esac
ac8701fe
L
9908fi
9909
beeda1d9
JJ
9910# If we are building libvtv and --enable-vtable-verify, bootstrap it.
9911if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9912 test "$enable_vtable_verify" != no; then
2077db1b
CT
9913 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9914fi
9915
5fee5ec3
IB
9916# If we are building libatomic and the list of enabled languages includes the
9917# D frontend, bootstrap it.
9918if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9919 case ,${enable_languages}, in
9920 *,d,*)
9921 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9922 ;;
9923 esac
9924fi
9925
671aa708
NN
9926# Determine whether gdb needs tk/tcl or not.
9927# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9928# and in that case we want gdb to be built without tk. Ugh!
9929# In fact I believe gdb is the *only* package directly dependent on tk,
9930# so we should be able to put the 'maybe's in unconditionally and
9931# leave out the maybe dependencies when enable_gdbtk is false. I'm not
9932# 100% sure that that's safe though.
e914a571 9933
b4f96efe 9934gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
9935case "$enable_gdbtk" in
9936 no)
9937 GDB_TK="" ;;
e914a571
AC
9938 yes)
9939 GDB_TK="${gdb_tk}" ;;
671aa708 9940 *)
e914a571
AC
9941 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9942 # distro. Eventually someone will fix this and move Insight, nee
9943 # gdbtk to a separate directory.
9944 if test -d ${srcdir}/gdb/gdbtk ; then
9945 GDB_TK="${gdb_tk}"
9946 else
9947 GDB_TK=""
9948 fi
9949 ;;
671aa708 9950esac
ef9db8d5
DJ
9951CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9952INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 9953
f9d09df0
TT
9954# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9955# else does, only include them if one of these is built. The Makefile
9956# provides the ordering, so it's enough here to add to the list.
9957case " ${configdirs} " in
9958 *\ gdb\ *)
9959 configdirs="${configdirs} gnulib gdbsupport"
9960 ;;
9961 *\ gdbserver\ *)
9962 configdirs="${configdirs} gnulib gdbsupport"
9963 ;;
f14c9bd4
MF
9964 *\ sim\ *)
9965 configdirs="${configdirs} gnulib"
9966 ;;
f9d09df0 9967esac
98e5be21 9968
60975492 9969# Strip out unwanted targets.
8b87bb96
NN
9970
9971# While at that, we remove Makefiles if we were started for recursive
9972# configuration, so that the top-level Makefile reconfigures them,
9973# like we used to do when configure itself was recursive.
8b87bb96 9974
3e54529c
RW
9975# Loop over modules. We used to use the "$extrasub" feature from Autoconf
9976# but now we're fixing up the Makefile ourselves with the additional
9977# commands passed to AC_CONFIG_FILES. Use separate variables
9978# extrasub-{build,host,target} not because there is any reason to split
9979# the substitutions up that way, but only to remain below the limit of
9980# 99 commands in a script, for HP-UX sed.
da34ca3f
AO
9981
9982# Do not nest @if/@endif or @unless/@endunless pairs, because
9983# configure will not warn you at all.
8b87bb96 9984
79cd2b23
RW
9985case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9986 yes:yes:*\ gold\ *:*,c++,*) ;;
9987 yes:yes:*\ gold\ *:*)
22e05272 9988 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
79cd2b23
RW
9989 ;;
9990esac
9991
3e54529c 9992extrasub_build=
23f6b2f9 9993for module in ${build_configdirs} ; do
5607edfd
PB
9994 if test -z "${no_recursion}" \
9995 && test -f ${build_subdir}/${module}/Makefile; then
9996 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9997 rm -f ${build_subdir}/${module}/Makefile
9998 fi
3e54529c 9999 extrasub_build="$extrasub_build
5607edfd
PB
10000/^@if build-$module\$/d
10001/^@endif build-$module\$/d
da34ca3f 10002/^@unless build-$module\$/,/^@endunless build-$module\$/d
5607edfd 10003/^@if build-$module-$bootstrap_suffix\$/d
da34ca3f
AO
10004/^@endif build-$module-$bootstrap_suffix\$/d
10005/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
5607edfd 10006done
3e54529c 10007extrasub_host=
5607edfd 10008for module in ${configdirs} ; do
a6fbc1e2 10009 if test -z "${no_recursion}"; then
f063a9ed 10010 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
10011 if test -f ${file}; then
10012 echo 1>&2 "*** removing ${file} to force reconfigure"
10013 rm -f ${file}
10014 fi
10015 done
5607edfd 10016 fi
9e1c8fc1
JJ
10017 case ${module},${bootstrap_fixincludes} in
10018 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
10019 *) host_bootstrap_suffix=$bootstrap_suffix ;;
10020 esac
3e54529c 10021 extrasub_host="$extrasub_host
5607edfd
PB
10022/^@if $module\$/d
10023/^@endif $module\$/d
da34ca3f 10024/^@unless $module\$/,/^@endunless $module\$/d
9e1c8fc1 10025/^@if $module-$host_bootstrap_suffix\$/d
da34ca3f
AO
10026/^@endif $module-$host_bootstrap_suffix\$/d
10027/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
5607edfd 10028done
3e54529c 10029extrasub_target=
5607edfd
PB
10030for module in ${target_configdirs} ; do
10031 if test -z "${no_recursion}" \
10032 && test -f ${target_subdir}/${module}/Makefile; then
10033 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
10034 rm -f ${target_subdir}/${module}/Makefile
10035 fi
00020c16
ILT
10036
10037 # We only bootstrap target libraries listed in bootstrap_target_libs.
10038 case $bootstrap_target_libs in
10039 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
10040 *) target_bootstrap_suffix=no-bootstrap ;;
10041 esac
10042
3e54529c 10043 extrasub_target="$extrasub_target
5607edfd
PB
10044/^@if target-$module\$/d
10045/^@endif target-$module\$/d
da34ca3f 10046/^@unless target-$module\$/,/^@endunless target-$module\$/d
00020c16 10047/^@if target-$module-$target_bootstrap_suffix\$/d
da34ca3f
AO
10048/^@endif target-$module-$target_bootstrap_suffix\$/d
10049/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
10050done
10051
3e54529c
RW
10052# Do the final fixup along with target modules.
10053extrasub_target="$extrasub_target
da34ca3f
AO
10054/^@if /,/^@endif /d
10055/^@unless /d
10056/^@endunless /d"
671aa708 10057
4a5e71f2
L
10058if test "$enable_pgo_build" != "no"; then
10059 extrasub_build="$extrasub_build
10060/^@if pgo-build\$/d
10061/^@endif pgo-build\$/d"
10062fi
10063
671aa708
NN
10064# Create the serialization dependencies. This uses a temporary file.
10065
5213506e
RW
10066# Check whether --enable-serial-configure was given.
10067if test "${enable_serial_configure+set}" = set; then :
10068 enableval=$enable_serial_configure;
10069fi
ade82b16
AO
10070
10071
bf1d3e81
NN
10072case ${enable_serial_configure} in
10073 yes)
10074 enable_serial_build_configure=yes
10075 enable_serial_host_configure=yes
10076 enable_serial_target_configure=yes
10077 ;;
10078esac
10079
671aa708
NN
10080# These force 'configure's to be done one at a time, to avoid problems
10081# with contention over a shared config.cache.
10082rm -f serdep.tmp
7d115e01 10083if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
ade82b16 10084echo '# serdep.tmp' > serdep.tmp
7d115e01 10085fi
671aa708 10086olditem=
bf1d3e81 10087test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
10088for item in ${build_configdirs} ; do
10089 case ${olditem} in
10090 "") ;;
ade82b16 10091 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
10092 esac
10093 olditem=${item}
10094done
10095olditem=
bf1d3e81 10096test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
10097for item in ${configdirs} ; do
10098 case ${olditem} in
10099 "") ;;
ade82b16 10100 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
10101 esac
10102 olditem=${item}
10103done
10104olditem=
bf1d3e81 10105test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
10106for item in ${target_configdirs} ; do
10107 case ${olditem} in
10108 "") ;;
ade82b16 10109 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
10110 esac
10111 olditem=${item}
10112done
10113serialization_dependencies=serdep.tmp
10114
10115
ade82b16 10116# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 10117# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
10118# might not want to pass down to subconfigures. The exception being
10119# --cache-file=/dev/null, which is used to turn off the use of cache
10120# files altogether, and which should be passed on to subconfigures.
10121# Also strip program-prefix, program-suffix, and program-transform-name,
10122# so that we can pass down a consistent program-transform-name.
db50aea6
AA
10123hbaseargs=
10124bbaseargs=
29a63921 10125tbaseargs=
1c710c3c
DJ
10126keep_next=no
10127skip_next=no
10128eval "set -- $ac_configure_args"
44bfc3ac
DJ
10129for ac_arg
10130do
1c710c3c
DJ
10131 if test X"$skip_next" = X"yes"; then
10132 skip_next=no
10133 continue
10134 fi
10135 if test X"$keep_next" = X"yes"; then
10136 case $ac_arg in
10137 *\'*)
10138 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10139 esac
db50aea6
AA
10140 hbaseargs="$hbaseargs '$ac_arg'"
10141 bbaseargs="$bbaseargs '$ac_arg'"
29a63921 10142 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
10143 keep_next=no
10144 continue
10145 fi
10146
10147 # Handle separated arguments. Based on the logic generated by
10148 # autoconf 2.59.
10149 case $ac_arg in
10150 *=* | --config-cache | -C | -disable-* | --disable-* \
10151 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10152 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10153 | -with-* | --with-* | -without-* | --without-* | --x)
10154 separate_arg=no
10155 ;;
10156 -*)
10157 separate_arg=yes
10158 ;;
10159 *)
10160 separate_arg=no
10161 ;;
10162 esac
10163
29a63921 10164 skip_targ=no
db50aea6 10165 skip_barg=no
29a63921
AO
10166 case $ac_arg in
10167
10168 --with-* | --without-*)
10169 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10170
10171 case $libopt in
10172 *[-_]include)
10173 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10174 ;;
10175 *[-_]lib)
10176 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10177 ;;
db50aea6
AA
10178 *[-_]prefix)
10179 lib=`echo "$libopt" | sed 's,[-_]prefix$,,'`
10180 ;;
10181 *[-_]type)
10182 lib=`echo "$libopt" | sed 's,[-_]type$,,'`
10183 ;;
29a63921
AO
10184 *)
10185 lib=$libopt
10186 ;;
10187 esac
10188
10189
10190 case $lib in
4a9bb2aa 10191 mpc | mpfr | gmp | isl)
29a63921
AO
10192 # If we're processing --with-$lib, --with-$lib-include or
10193 # --with-$lib-lib, for one of the libs above, and target is
10194 # different from host, don't pass the current argument to any
10195 # target library's configure.
10196 if test x$is_cross_compiler = xyes; then
10197 skip_targ=yes
10198 fi
10199 ;;
db50aea6
AA
10200 libintl | libiconv)
10201 # We don't want libintl (and co.) in anything but the host arguments.
10202 skip_targ=yes
10203 skip_barg=yes
10204 ;;
29a63921
AO
10205 esac
10206 ;;
10207 esac
10208
1c710c3c 10209 case "$ac_arg" in
f1a036e4
NC
10210 --cache-file=/dev/null | \
10211 -cache-file=/dev/null )
10212 # Handled here to avoid the test to skip args below.
db50aea6
AA
10213 hbaseargs="$hbaseargs '$ac_arg'"
10214 bbaseargs="$bbaseargs '$ac_arg'"
29a63921 10215 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
10216 # Assert: $separate_arg should always be no.
10217 keep_next=$separate_arg
10218 ;;
1c710c3c
DJ
10219 --no*)
10220 continue
10221 ;;
10222 --c* | \
10223 --sr* | \
10224 --ho* | \
10225 --bu* | \
10226 --t* | \
10227 --program-* | \
10228 -cache_file* | \
10229 -srcdir* | \
10230 -host* | \
10231 -build* | \
10232 -target* | \
10233 -program-prefix* | \
10234 -program-suffix* | \
10235 -program-transform-name* )
10236 skip_next=$separate_arg
10237 continue
10238 ;;
10239 -*)
10240 # An option. Add it.
10241 case $ac_arg in
10242 *\'*)
10243 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10244 esac
db50aea6
AA
10245 hbaseargs="$hbaseargs '$ac_arg'"
10246 if test X"$skip_barg" = Xno; then
10247 bbaseargs="$bbaseargs '$ac_arg'"
10248 fi
29a63921
AO
10249 if test X"$skip_targ" = Xno; then
10250 tbaseargs="$tbaseargs '$ac_arg'"
10251 fi
1c710c3c
DJ
10252 keep_next=$separate_arg
10253 ;;
10254 *)
10255 # Either a variable assignment, or a nonopt (triplet). Don't
10256 # pass it down; let the Makefile handle this.
10257 continue
10258 ;;
10259 esac
10260done
10261# Remove the initial space we just introduced and, as these will be
10262# expanded by make, quote '$'.
db50aea6
AA
10263hbaseargs=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10264bbaseargs=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 10265
43bb47c2
DJ
10266# Add in --program-transform-name, after --program-prefix and
10267# --program-suffix have been applied to it. Autoconf has already
10268# doubled dollar signs and backslashes in program_transform_name; we want
10269# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 10270# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
10271# Also, because we want to override the logic in subdir configure scripts to
10272# choose program_transform_name, replace any s,x,x, with s,y,y,.
10273sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10274${program_transform_name}
10275EOF_SED
10276gcc_transform_name=`cat conftestsed.out`
10277rm -f conftestsed.out
db50aea6
AA
10278hbaseargs="$hbaseargs --program-transform-name='${gcc_transform_name}'"
10279bbaseargs="$bbaseargs --program-transform-name='${gcc_transform_name}'"
29a63921 10280tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717 10281if test "$silent" = yes; then
db50aea6
AA
10282 bbaseargs="$bbaseargs --silent"
10283 hbaseargs="$hbaseargs --silent"
29a63921 10284 tbaseargs="$tbaseargs --silent"
d9acb717 10285fi
a49d42e8 10286
db50aea6
AA
10287bbaseargs="$bbaseargs --disable-option-checking"
10288hbaseargs="$hbaseargs --disable-option-checking"
29a63921 10289tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 10290
a49d42e8
LM
10291if test "$enable_year2038" = no; then
10292 baseargs="$baseargs --disable-year2038"
10293 tbaseargs="$tbaseargs --disable-year2038"
10294fi
10295
ffedf511
RW
10296# Record and document user additions to sub configure arguments.
10297
10298
10299
10300
671aa708
NN
10301# For the build-side libraries, we just need to pretend we're native,
10302# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
10303# desired. We can't even use the same cache file for all build-side
10304# libraries, as they're compiled differently; some with C, some with
10305# C++ or with different feature-enabling options.
db50aea6 10306build_configargs="$build_configargs --cache-file=./config.cache ${bbaseargs}"
671aa708
NN
10307
10308# For host modules, accept cache file option, or specification as blank.
10309case "${cache_file}" in
10310"") # empty
10311 cache_file_option="" ;;
10312/* | [A-Za-z]:[\\/]* ) # absolute path
10313 cache_file_option="--cache-file=${cache_file}" ;;
10314*) # relative path
10315 cache_file_option="--cache-file=../${cache_file}" ;;
10316esac
10317
09438bde
NN
10318# Host dirs don't like to share a cache file either, horribly enough.
10319# This seems to be due to autoconf 2.5x stupidity.
db50aea6 10320host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
671aa708 10321
29a63921 10322target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
10323
10324# Passing a --with-cross-host argument lets the target libraries know
10325# whether they are being built with a cross-compiler or being built
10326# native. However, it would be better to use other mechanisms to make the
10327# sorts of decisions they want to make on this basis. Please consider
10328# this option to be deprecated. FIXME.
10329if test x${is_cross_compiler} = xyes ; then
1c710c3c 10330 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
10331fi
10332
79e0604d
FXC
10333# Special user-friendly check for native x86_64-linux build, if
10334# multilib is not explicitly enabled.
10335case "$target:$have_compiler:$host:$target:$enable_multilib" in
10336 x86_64-*linux*:yes:$build:$build:)
e640447c 10337 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
10338 dev64=no
10339 echo "int main () { return 0; }" > conftest.c
10340 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10341 if test $? = 0 ; then
10342 if test -s conftest || test -s conftest.exe ; then
10343 dev64=yes
10344 fi
10345 fi
10346 rm -f conftest*
10347 if test x${dev64} != xyes ; then
22e05272 10348 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
10349 fi
10350 ;;
10351esac
10352
dc683a3f
RW
10353# Default to --enable-multilib.
10354if test x${enable_multilib} = x ; then
671aa708 10355 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 10356fi
671aa708
NN
10357
10358# Pass --with-newlib if appropriate. Note that target_configdirs has
10359# changed from the earlier setting of with_newlib.
10360if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10361 target_configargs="--with-newlib ${target_configargs}"
10362fi
10363
6b9eb62c
NN
10364# Different target subdirs use different values of certain variables
10365# (notably CXX). Worse, multilibs use *lots* of different values.
10366# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10367# it doesn't automatically accept command-line overrides of them.
10368# This means it's not safe for target subdirs to share a cache file,
10369# which is disgusting, but there you have it. Hopefully this can be
10370# fixed in future. It's still worthwhile to use a cache file for each
10371# directory. I think.
10372
bebcd931
MS
10373# Pass the appropriate --build, --host, --target and --cache-file arguments.
10374# We need to pass --target, as newer autoconf's requires consistency
10375# for target_alias and gcc doesn't manage it consistently.
e69bf64b 10376target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 10377
671aa708
NN
10378FLAGS_FOR_TARGET=
10379case " $target_configdirs " in
10380 *" newlib "*)
10381 case " $target_configargs " in
10382 *" --with-newlib "*)
10383 case "$target" in
5d571eaa 10384 *-cygwin*)
443e6238 10385 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 10386 ;;
671aa708
NN
10387 esac
10388
10389 # If we're not building GCC, don't discard standard headers.
10390 if test -d ${srcdir}/gcc; then
10391 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10392
10393 if test "${build}" != "${host}"; then
10394 # On Canadian crosses, CC_FOR_TARGET will have already been set
10395 # by `configure', so we won't have an opportunity to add -Bgcc/
10396 # to it. This is right: we don't want to search that directory
10397 # for binaries, but we want the header files in there, so add
10398 # them explicitly.
0463992b 10399 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
10400
10401 # Someone might think of using the pre-installed headers on
10402 # Canadian crosses, in case the installed compiler is not fully
10403 # compatible with the compiler being built. In this case, it
10404 # would be better to flag an error than risking having
10405 # incompatible object files being constructed. We can't
10406 # guarantee that an error will be flagged, but let's hope the
10407 # compiler will do it, when presented with incompatible header
10408 # files.
10409 fi
10410 fi
10411
10412 case "${target}-${is_cross_compiler}" in
f2a0e225 10413 i[3456789]86-*-linux*-no)
671aa708
NN
10414 # Here host == target, so we don't need to build gcc,
10415 # so we don't want to discard standard headers.
10416 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10417 ;;
10418 *)
10419 # If we're building newlib, use its generic headers last, but search
10420 # for any libc-related directories first (so make it the last -B
10421 # switch).
10422 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
10423
10424 # If we're building libgloss, find the startup file, simulator library
10425 # and linker script.
10426 case " $target_configdirs " in
10427 *" libgloss "*)
10428 # Look for startup file, simulator library and maybe linker script.
10429 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10430 # Look for libnosys.a in case the target needs it.
10431 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10432 # Most targets have the linker script in the source directory.
10433 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10434 ;;
10435 esac
671aa708
NN
10436 ;;
10437 esac
10438 ;;
10439 esac
10440 ;;
10441esac
5d571eaa 10442
b91f0a41 10443case "$target" in
5d571eaa
OS
10444 x86_64-*mingw* | *-w64-mingw*)
10445 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10446 # however, use a symlink named 'mingw' in ${prefix} .
10447 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10448 ;;
10449 *-mingw*)
10450 # MinGW can't be handled as Cygwin above since it does not use newlib.
10451 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'
10452 ;;
b91f0a41 10453esac
671aa708 10454
6691a79e
ME
10455# Allow the user to override the flags for
10456# our build compiler if desired.
f019adc1
MF
10457if test x"${build}" = x"${host}" ; then
10458 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
84401ce5 10459 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
f019adc1
MF
10460 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10461 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10462fi
6691a79e 10463
671aa708
NN
10464# On Canadian crosses, we'll be searching the right directories for
10465# the previously-installed cross compiler, so don't bother to add
10466# flags for directories within the install tree of the compiler
10467# being built; programs in there won't even run.
10468if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10469 # Search for pre-installed headers if nothing else fits.
9124bc53 10470 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
10471fi
10472
10473if test "x${use_gnu_ld}" = x &&
10474 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10475 # Arrange for us to find uninstalled linker scripts.
215c351a 10476 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
10477fi
10478
e88a2c09
DD
10479# Search for other target-specific linker scripts and such.
10480case "${target}" in
3e19841a
PB
10481 mep*)
10482 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10483 ;;
9b8ffbb8
OH
10484 # The VxWorks support for shared libraries is getting in
10485 # incrementally. Make sure it doesn't get activated implicitly:
10486 *vxworks*)
10487 if test "${enable_shared-unset}" = unset ; then
10488 enable_shared=no
10489 # So the build of libraries knows ...
10490 target_configargs="${target_configargs} --disable-shared"
10491 # So gcc knows ...
10492 host_configargs="${host_configargs} --disable-shared"
10493 fi
10494 ;;
e88a2c09
DD
10495esac
10496
671aa708 10497# Makefile fragments.
7b61653a
PE
10498for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10499do
10500 eval fragval=\$$frag
10501 if test $fragval != /dev/null; then
10502 eval $frag=${srcdir}/$fragval
10503 fi
10504done
671aa708
NN
10505
10506
10507
10508
10509
10510# Miscellanea: directories, flags, etc.
10511
10512
10513
10514
10515
10516
10517
d89f0ad6 10518
23f6b2f9 10519# Build module lists & subconfigure args.
671aa708
NN
10520
10521
10522
2abefe3d
PB
10523# Host module lists & subconfigure args.
10524
10525
10526
aae29963 10527
2abefe3d
PB
10528# Target module lists & subconfigure args.
10529
10530
10531
10532# Build tools.
10533
10534
10535
0999159b
PB
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
b4c522fa 10549
3b5e8ee4 10550
a1d2b162
IS
10551
10552
2abefe3d
PB
10553# Generate default definitions for YACC, M4, LEX and other programs that run
10554# on the build machine. These are used if the Makefile can't locate these
10555# programs in objdir.
10556MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10557
10558for ac_prog in 'bison -y' byacc yacc
10559do
1c710c3c 10560 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10561set dummy $ac_prog; ac_word=$2
5213506e
RW
10562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10563$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10564if ${ac_cv_prog_YACC+:} false; then :
5213506e 10565 $as_echo_n "(cached) " >&6
2abefe3d
PB
10566else
10567 if test -n "$YACC"; then
10568 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10569else
1c710c3c
DJ
10570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571for as_dir in $PATH
10572do
10573 IFS=$as_save_IFS
10574 test -z "$as_dir" && as_dir=.
5213506e 10575 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10577 ac_cv_prog_YACC="$ac_prog"
5213506e 10578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10579 break 2
10580 fi
10581done
5213506e
RW
10582 done
10583IFS=$as_save_IFS
1c710c3c 10584
2abefe3d
PB
10585fi
10586fi
1c710c3c 10587YACC=$ac_cv_prog_YACC
2abefe3d 10588if test -n "$YACC"; then
5213506e
RW
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10590$as_echo "$YACC" >&6; }
2abefe3d 10591else
5213506e
RW
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10593$as_echo "no" >&6; }
2abefe3d
PB
10594fi
10595
5213506e 10596
1c710c3c 10597 test -n "$YACC" && break
2abefe3d
PB
10598done
10599test -n "$YACC" || YACC="$MISSING bison -y"
10600
10601case " $build_configdirs " in
10602 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
10603esac
10604
10605for ac_prog in bison
10606do
1c710c3c 10607 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10608set dummy $ac_prog; ac_word=$2
5213506e
RW
10609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10610$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10611if ${ac_cv_prog_BISON+:} false; then :
5213506e 10612 $as_echo_n "(cached) " >&6
2abefe3d
PB
10613else
10614 if test -n "$BISON"; then
10615 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10616else
1c710c3c
DJ
10617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10618for as_dir in $PATH
10619do
10620 IFS=$as_save_IFS
10621 test -z "$as_dir" && as_dir=.
5213506e 10622 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10624 ac_cv_prog_BISON="$ac_prog"
5213506e 10625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10626 break 2
10627 fi
10628done
5213506e
RW
10629 done
10630IFS=$as_save_IFS
1c710c3c 10631
2abefe3d
PB
10632fi
10633fi
1c710c3c 10634BISON=$ac_cv_prog_BISON
2abefe3d 10635if test -n "$BISON"; then
5213506e
RW
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10637$as_echo "$BISON" >&6; }
2abefe3d 10638else
5213506e
RW
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640$as_echo "no" >&6; }
2abefe3d
PB
10641fi
10642
5213506e 10643
1c710c3c 10644 test -n "$BISON" && break
2abefe3d
PB
10645done
10646test -n "$BISON" || BISON="$MISSING bison"
10647
10648case " $build_configdirs " in
10649 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10650esac
10651
10652for ac_prog in gm4 gnum4 m4
10653do
1c710c3c 10654 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10655set dummy $ac_prog; ac_word=$2
5213506e
RW
10656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10657$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10658if ${ac_cv_prog_M4+:} false; then :
5213506e 10659 $as_echo_n "(cached) " >&6
2abefe3d
PB
10660else
10661 if test -n "$M4"; then
10662 ac_cv_prog_M4="$M4" # Let the user override the test.
10663else
1c710c3c
DJ
10664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10665for as_dir in $PATH
10666do
10667 IFS=$as_save_IFS
10668 test -z "$as_dir" && as_dir=.
5213506e 10669 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10671 ac_cv_prog_M4="$ac_prog"
5213506e 10672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10673 break 2
10674 fi
10675done
5213506e
RW
10676 done
10677IFS=$as_save_IFS
1c710c3c 10678
2abefe3d
PB
10679fi
10680fi
1c710c3c 10681M4=$ac_cv_prog_M4
2abefe3d 10682if test -n "$M4"; then
5213506e
RW
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10684$as_echo "$M4" >&6; }
2abefe3d 10685else
5213506e
RW
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10687$as_echo "no" >&6; }
2abefe3d
PB
10688fi
10689
5213506e 10690
1c710c3c 10691 test -n "$M4" && break
2abefe3d
PB
10692done
10693test -n "$M4" || M4="$MISSING m4"
10694
10695case " $build_configdirs " in
10696 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10697esac
10698
10699for ac_prog in flex lex
10700do
1c710c3c 10701 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10702set dummy $ac_prog; ac_word=$2
5213506e
RW
10703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10705if ${ac_cv_prog_LEX+:} false; then :
5213506e 10706 $as_echo_n "(cached) " >&6
2abefe3d
PB
10707else
10708 if test -n "$LEX"; then
10709 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10710else
1c710c3c
DJ
10711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10712for as_dir in $PATH
10713do
10714 IFS=$as_save_IFS
10715 test -z "$as_dir" && as_dir=.
5213506e 10716 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10718 ac_cv_prog_LEX="$ac_prog"
5213506e 10719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10720 break 2
10721 fi
10722done
5213506e
RW
10723 done
10724IFS=$as_save_IFS
1c710c3c 10725
2abefe3d
PB
10726fi
10727fi
1c710c3c 10728LEX=$ac_cv_prog_LEX
2abefe3d 10729if test -n "$LEX"; then
5213506e
RW
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10731$as_echo "$LEX" >&6; }
2abefe3d 10732else
5213506e
RW
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734$as_echo "no" >&6; }
2abefe3d
PB
10735fi
10736
5213506e 10737
1c710c3c 10738 test -n "$LEX" && break
2abefe3d
PB
10739done
10740test -n "$LEX" || LEX="$MISSING flex"
10741
10742case " $build_configdirs " in
10743 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10744 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10745esac
10746
10747for ac_prog in flex
10748do
1c710c3c 10749 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10750set dummy $ac_prog; ac_word=$2
5213506e
RW
10751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10752$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10753if ${ac_cv_prog_FLEX+:} false; then :
5213506e 10754 $as_echo_n "(cached) " >&6
2abefe3d
PB
10755else
10756 if test -n "$FLEX"; then
10757 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10758else
1c710c3c
DJ
10759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760for as_dir in $PATH
10761do
10762 IFS=$as_save_IFS
10763 test -z "$as_dir" && as_dir=.
5213506e 10764 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10766 ac_cv_prog_FLEX="$ac_prog"
5213506e 10767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10768 break 2
10769 fi
10770done
5213506e
RW
10771 done
10772IFS=$as_save_IFS
1c710c3c 10773
2abefe3d
PB
10774fi
10775fi
1c710c3c 10776FLEX=$ac_cv_prog_FLEX
2abefe3d 10777if test -n "$FLEX"; then
5213506e
RW
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10779$as_echo "$FLEX" >&6; }
2abefe3d 10780else
5213506e
RW
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782$as_echo "no" >&6; }
2abefe3d
PB
10783fi
10784
5213506e 10785
1c710c3c 10786 test -n "$FLEX" && break
2abefe3d
PB
10787done
10788test -n "$FLEX" || FLEX="$MISSING flex"
10789
10790case " $build_configdirs " in
10791 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10792esac
10793
10794for ac_prog in makeinfo
10795do
1c710c3c 10796 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10797set dummy $ac_prog; ac_word=$2
5213506e
RW
10798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10799$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10800if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 10801 $as_echo_n "(cached) " >&6
2abefe3d
PB
10802else
10803 if test -n "$MAKEINFO"; then
10804 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10805else
1c710c3c
DJ
10806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10807for as_dir in $PATH
10808do
10809 IFS=$as_save_IFS
10810 test -z "$as_dir" && as_dir=.
5213506e 10811 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10813 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 10814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10815 break 2
10816 fi
10817done
5213506e
RW
10818 done
10819IFS=$as_save_IFS
1c710c3c 10820
2abefe3d
PB
10821fi
10822fi
1c710c3c 10823MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 10824if test -n "$MAKEINFO"; then
5213506e
RW
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10826$as_echo "$MAKEINFO" >&6; }
2abefe3d 10827else
5213506e
RW
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829$as_echo "no" >&6; }
2abefe3d
PB
10830fi
10831
5213506e 10832
1c710c3c 10833 test -n "$MAKEINFO" && break
2abefe3d
PB
10834done
10835test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10836
10837case " $build_configdirs " in
10838 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10839 *)
10840
d18ff35a 10841 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
10842 # higher, else we use the "missing" dummy.
10843 if ${MAKEINFO} --version \
d18ff35a 10844 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
10845 :
10846 else
10847 MAKEINFO="$MISSING makeinfo"
10848 fi
10849 ;;
10850
10851esac
671aa708 10852
2abefe3d 10853# FIXME: expect and dejagnu may become build tools?
671aa708 10854
2abefe3d
PB
10855for ac_prog in expect
10856do
1c710c3c 10857 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10858set dummy $ac_prog; ac_word=$2
5213506e
RW
10859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10860$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10861if ${ac_cv_prog_EXPECT+:} false; then :
5213506e 10862 $as_echo_n "(cached) " >&6
2abefe3d
PB
10863else
10864 if test -n "$EXPECT"; then
10865 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10866else
1c710c3c
DJ
10867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10868for as_dir in $PATH
10869do
10870 IFS=$as_save_IFS
10871 test -z "$as_dir" && as_dir=.
5213506e 10872 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10874 ac_cv_prog_EXPECT="$ac_prog"
5213506e 10875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10876 break 2
10877 fi
10878done
5213506e
RW
10879 done
10880IFS=$as_save_IFS
1c710c3c 10881
2abefe3d
PB
10882fi
10883fi
1c710c3c 10884EXPECT=$ac_cv_prog_EXPECT
2abefe3d 10885if test -n "$EXPECT"; then
5213506e
RW
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10887$as_echo "$EXPECT" >&6; }
2abefe3d 10888else
5213506e
RW
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890$as_echo "no" >&6; }
2abefe3d 10891fi
671aa708 10892
5213506e 10893
1c710c3c 10894 test -n "$EXPECT" && break
2abefe3d
PB
10895done
10896test -n "$EXPECT" || EXPECT="expect"
671aa708 10897
2abefe3d
PB
10898case " $configdirs " in
10899 *" expect "*)
10900 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10901 ;;
10902esac
671aa708 10903
2abefe3d
PB
10904for ac_prog in runtest
10905do
1c710c3c 10906 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10907set dummy $ac_prog; ac_word=$2
5213506e
RW
10908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10909$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10910if ${ac_cv_prog_RUNTEST+:} false; then :
5213506e 10911 $as_echo_n "(cached) " >&6
2abefe3d
PB
10912else
10913 if test -n "$RUNTEST"; then
10914 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 10915else
1c710c3c
DJ
10916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10917for as_dir in $PATH
10918do
10919 IFS=$as_save_IFS
10920 test -z "$as_dir" && as_dir=.
5213506e 10921 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10923 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 10924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10925 break 2
10926 fi
10927done
5213506e
RW
10928 done
10929IFS=$as_save_IFS
1c710c3c 10930
2abefe3d
PB
10931fi
10932fi
1c710c3c 10933RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 10934if test -n "$RUNTEST"; then
5213506e
RW
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10936$as_echo "$RUNTEST" >&6; }
2abefe3d 10937else
5213506e
RW
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10939$as_echo "no" >&6; }
2abefe3d 10940fi
671aa708 10941
5213506e 10942
1c710c3c 10943 test -n "$RUNTEST" && break
2abefe3d
PB
10944done
10945test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 10946
2abefe3d
PB
10947case " $configdirs " in
10948 *" dejagnu "*)
c394e891 10949 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
10950 ;;
10951esac
671aa708 10952
4e3dcf20 10953
671aa708 10954# Host tools.
ca9f4b81
AO
10955ncn_tool_prefix=
10956test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10957ncn_target_tool_prefix=
10958test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10959
278a7a38
AO
10960
10961
10962if test -n "$AR"; then
10963 ac_cv_prog_AR=$AR
10964elif test -n "$ac_cv_prog_AR"; then
10965 AR=$ac_cv_prog_AR
10966fi
10967
10968if test -n "$ac_cv_prog_AR"; then
10969 for ncn_progname in ar; do
10970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10971set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10973$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10974if ${ac_cv_prog_AR+:} false; then :
5213506e 10975 $as_echo_n "(cached) " >&6
278a7a38
AO
10976else
10977 if test -n "$AR"; then
10978 ac_cv_prog_AR="$AR" # Let the user override the test.
10979else
10980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981for as_dir in $PATH
10982do
10983 IFS=$as_save_IFS
10984 test -z "$as_dir" && as_dir=.
5213506e 10985 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10987 ac_cv_prog_AR="${ncn_progname}"
5213506e 10988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10989 break 2
10990 fi
10991done
5213506e
RW
10992 done
10993IFS=$as_save_IFS
278a7a38
AO
10994
10995fi
10996fi
10997AR=$ac_cv_prog_AR
10998if test -n "$AR"; then
5213506e
RW
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11000$as_echo "$AR" >&6; }
278a7a38 11001else
5213506e
RW
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11003$as_echo "no" >&6; }
278a7a38
AO
11004fi
11005
5213506e 11006
278a7a38
AO
11007 done
11008fi
11009
11010for ncn_progname in ar; do
2693c0b0
PB
11011 if test -n "$ncn_tool_prefix"; then
11012 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11013set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11015$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11016if ${ac_cv_prog_AR+:} false; then :
5213506e 11017 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11018else
11019 if test -n "$AR"; then
11020 ac_cv_prog_AR="$AR" # Let the user override the test.
11021else
1c710c3c
DJ
11022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11023for as_dir in $PATH
11024do
11025 IFS=$as_save_IFS
11026 test -z "$as_dir" && as_dir=.
5213506e 11027 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11029 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 11030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11031 break 2
11032 fi
11033done
5213506e
RW
11034 done
11035IFS=$as_save_IFS
1c710c3c 11036
ca9f4b81
AO
11037fi
11038fi
1c710c3c 11039AR=$ac_cv_prog_AR
ca9f4b81 11040if test -n "$AR"; then
5213506e
RW
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11042$as_echo "$AR" >&6; }
ca9f4b81 11043else
5213506e
RW
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11045$as_echo "no" >&6; }
ca9f4b81
AO
11046fi
11047
5213506e 11048
2693c0b0
PB
11049 fi
11050 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
11051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11052set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11054$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11055if ${ac_cv_prog_AR+:} false; then :
5213506e 11056 $as_echo_n "(cached) " >&6
ca9f4b81 11057else
2693c0b0 11058 if test -n "$AR"; then
af71363e
AS
11059 ac_cv_prog_AR="$AR" # Let the user override the test.
11060else
1c710c3c
DJ
11061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11062for as_dir in $PATH
11063do
11064 IFS=$as_save_IFS
11065 test -z "$as_dir" && as_dir=.
5213506e 11066 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11068 ac_cv_prog_AR="${ncn_progname}"
5213506e 11069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11070 break 2
11071 fi
11072done
5213506e
RW
11073 done
11074IFS=$as_save_IFS
1c710c3c 11075
ca9f4b81
AO
11076fi
11077fi
1c710c3c 11078AR=$ac_cv_prog_AR
2693c0b0 11079if test -n "$AR"; then
5213506e
RW
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11081$as_echo "$AR" >&6; }
ca9f4b81 11082else
5213506e
RW
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11084$as_echo "no" >&6; }
ca9f4b81 11085fi
1c710c3c 11086
5213506e 11087
2693c0b0
PB
11088 fi
11089 test -n "$ac_cv_prog_AR" && break
11090done
11091
11092if test -z "$ac_cv_prog_AR" ; then
11093 set dummy ar
11094 if test $build = $host ; then
11095 AR="$2"
ca9f4b81 11096 else
2693c0b0 11097 AR="${ncn_tool_prefix}$2"
ca9f4b81 11098 fi
ca9f4b81
AO
11099fi
11100
278a7a38
AO
11101
11102
11103if test -n "$AS"; then
11104 ac_cv_prog_AS=$AS
11105elif test -n "$ac_cv_prog_AS"; then
11106 AS=$ac_cv_prog_AS
11107fi
11108
11109if test -n "$ac_cv_prog_AS"; then
11110 for ncn_progname in as; do
11111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11112set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11114$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11115if ${ac_cv_prog_AS+:} false; then :
5213506e 11116 $as_echo_n "(cached) " >&6
278a7a38
AO
11117else
11118 if test -n "$AS"; then
11119 ac_cv_prog_AS="$AS" # Let the user override the test.
11120else
11121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11122for as_dir in $PATH
11123do
11124 IFS=$as_save_IFS
11125 test -z "$as_dir" && as_dir=.
5213506e 11126 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11128 ac_cv_prog_AS="${ncn_progname}"
5213506e 11129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11130 break 2
11131 fi
11132done
5213506e
RW
11133 done
11134IFS=$as_save_IFS
278a7a38
AO
11135
11136fi
11137fi
11138AS=$ac_cv_prog_AS
11139if test -n "$AS"; then
5213506e
RW
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11141$as_echo "$AS" >&6; }
278a7a38 11142else
5213506e
RW
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144$as_echo "no" >&6; }
278a7a38
AO
11145fi
11146
5213506e 11147
278a7a38
AO
11148 done
11149fi
11150
11151for ncn_progname in as; do
2693c0b0
PB
11152 if test -n "$ncn_tool_prefix"; then
11153 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11154set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11156$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11157if ${ac_cv_prog_AS+:} false; then :
5213506e 11158 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11159else
11160 if test -n "$AS"; then
11161 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 11162else
1c710c3c
DJ
11163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164for as_dir in $PATH
11165do
11166 IFS=$as_save_IFS
11167 test -z "$as_dir" && as_dir=.
5213506e 11168 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11170 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 11171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11172 break 2
11173 fi
11174done
5213506e
RW
11175 done
11176IFS=$as_save_IFS
1c710c3c 11177
ca9f4b81
AO
11178fi
11179fi
1c710c3c 11180AS=$ac_cv_prog_AS
ca9f4b81 11181if test -n "$AS"; then
5213506e
RW
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11183$as_echo "$AS" >&6; }
ca9f4b81 11184else
5213506e
RW
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186$as_echo "no" >&6; }
ca9f4b81
AO
11187fi
11188
5213506e 11189
2693c0b0
PB
11190 fi
11191 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11193set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11196if ${ac_cv_prog_AS+:} false; then :
5213506e 11197 $as_echo_n "(cached) " >&6
ca9f4b81 11198else
2693c0b0
PB
11199 if test -n "$AS"; then
11200 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 11201else
1c710c3c
DJ
11202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203for as_dir in $PATH
11204do
11205 IFS=$as_save_IFS
11206 test -z "$as_dir" && as_dir=.
5213506e 11207 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11209 ac_cv_prog_AS="${ncn_progname}"
5213506e 11210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11211 break 2
11212 fi
11213done
5213506e
RW
11214 done
11215IFS=$as_save_IFS
1c710c3c 11216
ca9f4b81
AO
11217fi
11218fi
1c710c3c 11219AS=$ac_cv_prog_AS
2693c0b0 11220if test -n "$AS"; then
5213506e
RW
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11222$as_echo "$AS" >&6; }
ca9f4b81 11223else
5213506e
RW
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225$as_echo "no" >&6; }
ca9f4b81 11226fi
1c710c3c 11227
5213506e 11228
2693c0b0
PB
11229 fi
11230 test -n "$ac_cv_prog_AS" && break
11231done
11232
11233if test -z "$ac_cv_prog_AS" ; then
11234 set dummy as
11235 if test $build = $host ; then
11236 AS="$2"
ca9f4b81 11237 else
2693c0b0 11238 AS="${ncn_tool_prefix}$2"
ca9f4b81 11239 fi
ca9f4b81
AO
11240fi
11241
278a7a38
AO
11242
11243
11244if test -n "$DLLTOOL"; then
11245 ac_cv_prog_DLLTOOL=$DLLTOOL
11246elif test -n "$ac_cv_prog_DLLTOOL"; then
11247 DLLTOOL=$ac_cv_prog_DLLTOOL
11248fi
11249
11250if test -n "$ac_cv_prog_DLLTOOL"; then
11251 for ncn_progname in dlltool; do
11252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11253set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11255$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11256if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11257 $as_echo_n "(cached) " >&6
278a7a38
AO
11258else
11259 if test -n "$DLLTOOL"; then
11260 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11261else
11262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11263for as_dir in $PATH
11264do
11265 IFS=$as_save_IFS
11266 test -z "$as_dir" && as_dir=.
5213506e 11267 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11269 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 11270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11271 break 2
11272 fi
11273done
5213506e
RW
11274 done
11275IFS=$as_save_IFS
278a7a38
AO
11276
11277fi
11278fi
11279DLLTOOL=$ac_cv_prog_DLLTOOL
11280if test -n "$DLLTOOL"; then
5213506e
RW
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11282$as_echo "$DLLTOOL" >&6; }
278a7a38 11283else
5213506e
RW
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285$as_echo "no" >&6; }
278a7a38
AO
11286fi
11287
5213506e 11288
278a7a38
AO
11289 done
11290fi
11291
11292for ncn_progname in dlltool; do
2693c0b0
PB
11293 if test -n "$ncn_tool_prefix"; then
11294 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11295set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11297$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11298if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11299 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11300else
11301 if test -n "$DLLTOOL"; then
11302 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11303else
1c710c3c
DJ
11304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305for as_dir in $PATH
11306do
11307 IFS=$as_save_IFS
11308 test -z "$as_dir" && as_dir=.
5213506e 11309 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11311 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 11312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11313 break 2
11314 fi
11315done
5213506e
RW
11316 done
11317IFS=$as_save_IFS
1c710c3c 11318
ca9f4b81
AO
11319fi
11320fi
1c710c3c 11321DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 11322if test -n "$DLLTOOL"; then
5213506e
RW
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11324$as_echo "$DLLTOOL" >&6; }
ca9f4b81 11325else
5213506e
RW
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11327$as_echo "no" >&6; }
ca9f4b81
AO
11328fi
11329
5213506e 11330
2693c0b0
PB
11331 fi
11332 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11334set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11336$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11337if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11338 $as_echo_n "(cached) " >&6
ca9f4b81 11339else
2693c0b0
PB
11340 if test -n "$DLLTOOL"; then
11341 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 11342else
1c710c3c
DJ
11343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344for as_dir in $PATH
11345do
11346 IFS=$as_save_IFS
11347 test -z "$as_dir" && as_dir=.
5213506e 11348 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11350 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 11351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11352 break 2
11353 fi
11354done
5213506e
RW
11355 done
11356IFS=$as_save_IFS
1c710c3c 11357
ca9f4b81
AO
11358fi
11359fi
1c710c3c 11360DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 11361if test -n "$DLLTOOL"; then
5213506e
RW
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11363$as_echo "$DLLTOOL" >&6; }
ca9f4b81 11364else
5213506e
RW
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11366$as_echo "no" >&6; }
ca9f4b81 11367fi
1c710c3c 11368
5213506e 11369
2693c0b0
PB
11370 fi
11371 test -n "$ac_cv_prog_DLLTOOL" && break
11372done
11373
11374if test -z "$ac_cv_prog_DLLTOOL" ; then
11375 set dummy dlltool
11376 if test $build = $host ; then
11377 DLLTOOL="$2"
ca9f4b81 11378 else
2693c0b0 11379 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 11380 fi
ca9f4b81
AO
11381fi
11382
278a7a38
AO
11383
11384
3b5e8ee4
IS
11385if test -n "$DSYMUTIL"; then
11386 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11387elif test -n "$ac_cv_prog_DSYMUTIL"; then
11388 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11389fi
11390
11391if test -n "$ac_cv_prog_DSYMUTIL"; then
11392 for ncn_progname in dsymutil; do
11393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11394set dummy ${ncn_progname}; ac_word=$2
11395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11396$as_echo_n "checking for $ac_word... " >&6; }
11397if ${ac_cv_prog_DSYMUTIL+:} false; then :
11398 $as_echo_n "(cached) " >&6
11399else
11400 if test -n "$DSYMUTIL"; then
11401 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11402else
11403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11404for as_dir in $PATH
11405do
11406 IFS=$as_save_IFS
11407 test -z "$as_dir" && as_dir=.
11408 for ac_exec_ext in '' $ac_executable_extensions; do
11409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11410 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11412 break 2
11413 fi
11414done
11415 done
11416IFS=$as_save_IFS
11417
11418fi
11419fi
11420DSYMUTIL=$ac_cv_prog_DSYMUTIL
11421if test -n "$DSYMUTIL"; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11423$as_echo "$DSYMUTIL" >&6; }
11424else
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11426$as_echo "no" >&6; }
11427fi
11428
11429
11430 done
11431fi
11432
11433for ncn_progname in dsymutil; do
11434 if test -n "$ncn_tool_prefix"; then
11435 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11436set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11438$as_echo_n "checking for $ac_word... " >&6; }
11439if ${ac_cv_prog_DSYMUTIL+:} false; then :
11440 $as_echo_n "(cached) " >&6
11441else
11442 if test -n "$DSYMUTIL"; then
11443 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11444else
11445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11446for as_dir in $PATH
11447do
11448 IFS=$as_save_IFS
11449 test -z "$as_dir" && as_dir=.
11450 for ac_exec_ext in '' $ac_executable_extensions; do
11451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11452 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11454 break 2
11455 fi
11456done
11457 done
11458IFS=$as_save_IFS
11459
11460fi
11461fi
11462DSYMUTIL=$ac_cv_prog_DSYMUTIL
11463if test -n "$DSYMUTIL"; then
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11465$as_echo "$DSYMUTIL" >&6; }
11466else
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468$as_echo "no" >&6; }
11469fi
11470
11471
11472 fi
11473 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11475set dummy ${ncn_progname}; ac_word=$2
11476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11477$as_echo_n "checking for $ac_word... " >&6; }
11478if ${ac_cv_prog_DSYMUTIL+:} false; then :
11479 $as_echo_n "(cached) " >&6
11480else
11481 if test -n "$DSYMUTIL"; then
11482 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11483else
11484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11485for as_dir in $PATH
11486do
11487 IFS=$as_save_IFS
11488 test -z "$as_dir" && as_dir=.
11489 for ac_exec_ext in '' $ac_executable_extensions; do
11490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11491 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11493 break 2
11494 fi
11495done
11496 done
11497IFS=$as_save_IFS
11498
11499fi
11500fi
11501DSYMUTIL=$ac_cv_prog_DSYMUTIL
11502if test -n "$DSYMUTIL"; then
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11504$as_echo "$DSYMUTIL" >&6; }
11505else
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11507$as_echo "no" >&6; }
11508fi
11509
11510
11511 fi
11512 test -n "$ac_cv_prog_DSYMUTIL" && break
11513done
11514
11515if test -z "$ac_cv_prog_DSYMUTIL" ; then
11516 set dummy dsymutil
11517 if test $build = $host ; then
11518 DSYMUTIL="$2"
11519 else
11520 DSYMUTIL="${ncn_tool_prefix}$2"
11521 fi
11522fi
11523
11524
11525
278a7a38
AO
11526if test -n "$LD"; then
11527 ac_cv_prog_LD=$LD
11528elif test -n "$ac_cv_prog_LD"; then
11529 LD=$ac_cv_prog_LD
11530fi
11531
11532if test -n "$ac_cv_prog_LD"; then
11533 for ncn_progname in ld; do
11534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11535set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11537$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11538if ${ac_cv_prog_LD+:} false; then :
5213506e 11539 $as_echo_n "(cached) " >&6
278a7a38
AO
11540else
11541 if test -n "$LD"; then
11542 ac_cv_prog_LD="$LD" # Let the user override the test.
11543else
11544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11545for as_dir in $PATH
11546do
11547 IFS=$as_save_IFS
11548 test -z "$as_dir" && as_dir=.
5213506e 11549 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11551 ac_cv_prog_LD="${ncn_progname}"
5213506e 11552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11553 break 2
11554 fi
11555done
5213506e
RW
11556 done
11557IFS=$as_save_IFS
278a7a38
AO
11558
11559fi
11560fi
11561LD=$ac_cv_prog_LD
11562if test -n "$LD"; then
5213506e
RW
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11564$as_echo "$LD" >&6; }
278a7a38 11565else
5213506e
RW
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567$as_echo "no" >&6; }
278a7a38
AO
11568fi
11569
5213506e 11570
278a7a38
AO
11571 done
11572fi
11573
11574for ncn_progname in ld; do
2693c0b0
PB
11575 if test -n "$ncn_tool_prefix"; then
11576 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11577set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11579$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11580if ${ac_cv_prog_LD+:} false; then :
5213506e 11581 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11582else
11583 if test -n "$LD"; then
11584 ac_cv_prog_LD="$LD" # Let the user override the test.
11585else
1c710c3c
DJ
11586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11587for as_dir in $PATH
11588do
11589 IFS=$as_save_IFS
11590 test -z "$as_dir" && as_dir=.
5213506e 11591 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11593 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 11594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11595 break 2
11596 fi
11597done
5213506e
RW
11598 done
11599IFS=$as_save_IFS
1c710c3c 11600
ca9f4b81
AO
11601fi
11602fi
1c710c3c 11603LD=$ac_cv_prog_LD
ca9f4b81 11604if test -n "$LD"; then
5213506e
RW
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11606$as_echo "$LD" >&6; }
ca9f4b81 11607else
5213506e
RW
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609$as_echo "no" >&6; }
ca9f4b81
AO
11610fi
11611
5213506e 11612
2693c0b0
PB
11613 fi
11614 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11616set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11618$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11619if ${ac_cv_prog_LD+:} false; then :
5213506e 11620 $as_echo_n "(cached) " >&6
ca9f4b81 11621else
2693c0b0
PB
11622 if test -n "$LD"; then
11623 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 11624else
1c710c3c
DJ
11625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11626for as_dir in $PATH
11627do
11628 IFS=$as_save_IFS
11629 test -z "$as_dir" && as_dir=.
5213506e 11630 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11632 ac_cv_prog_LD="${ncn_progname}"
5213506e 11633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11634 break 2
11635 fi
11636done
5213506e
RW
11637 done
11638IFS=$as_save_IFS
1c710c3c 11639
ca9f4b81
AO
11640fi
11641fi
1c710c3c 11642LD=$ac_cv_prog_LD
2693c0b0 11643if test -n "$LD"; then
5213506e
RW
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11645$as_echo "$LD" >&6; }
ca9f4b81 11646else
5213506e
RW
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648$as_echo "no" >&6; }
ca9f4b81 11649fi
1c710c3c 11650
5213506e 11651
2693c0b0
PB
11652 fi
11653 test -n "$ac_cv_prog_LD" && break
11654done
11655
11656if test -z "$ac_cv_prog_LD" ; then
11657 set dummy ld
11658 if test $build = $host ; then
11659 LD="$2"
ca9f4b81 11660 else
2693c0b0 11661 LD="${ncn_tool_prefix}$2"
ca9f4b81 11662 fi
ca9f4b81
AO
11663fi
11664
278a7a38
AO
11665
11666
11667if test -n "$LIPO"; then
11668 ac_cv_prog_LIPO=$LIPO
11669elif test -n "$ac_cv_prog_LIPO"; then
11670 LIPO=$ac_cv_prog_LIPO
11671fi
11672
11673if test -n "$ac_cv_prog_LIPO"; then
11674 for ncn_progname in lipo; do
11675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11676set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11679if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11680 $as_echo_n "(cached) " >&6
278a7a38
AO
11681else
11682 if test -n "$LIPO"; then
11683 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11684else
11685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686for as_dir in $PATH
11687do
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
5213506e 11690 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11692 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11694 break 2
11695 fi
11696done
5213506e
RW
11697 done
11698IFS=$as_save_IFS
278a7a38
AO
11699
11700fi
11701fi
11702LIPO=$ac_cv_prog_LIPO
11703if test -n "$LIPO"; then
5213506e
RW
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11705$as_echo "$LIPO" >&6; }
278a7a38 11706else
5213506e
RW
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708$as_echo "no" >&6; }
278a7a38
AO
11709fi
11710
5213506e 11711
278a7a38
AO
11712 done
11713fi
11714
11715for ncn_progname in lipo; do
2abefe3d
PB
11716 if test -n "$ncn_tool_prefix"; then
11717 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11718set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11720$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11721if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11722 $as_echo_n "(cached) " >&6
2abefe3d
PB
11723else
11724 if test -n "$LIPO"; then
11725 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11726else
1c710c3c
DJ
11727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11728for as_dir in $PATH
11729do
11730 IFS=$as_save_IFS
11731 test -z "$as_dir" && as_dir=.
5213506e 11732 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11734 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 11735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11736 break 2
11737 fi
11738done
5213506e
RW
11739 done
11740IFS=$as_save_IFS
1c710c3c 11741
2abefe3d
PB
11742fi
11743fi
1c710c3c 11744LIPO=$ac_cv_prog_LIPO
2abefe3d 11745if test -n "$LIPO"; then
5213506e
RW
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11747$as_echo "$LIPO" >&6; }
2abefe3d 11748else
5213506e
RW
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750$as_echo "no" >&6; }
2abefe3d
PB
11751fi
11752
5213506e 11753
2abefe3d
PB
11754 fi
11755 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11757set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11759$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11760if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11761 $as_echo_n "(cached) " >&6
2abefe3d
PB
11762else
11763 if test -n "$LIPO"; then
11764 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11765else
1c710c3c
DJ
11766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11767for as_dir in $PATH
11768do
11769 IFS=$as_save_IFS
11770 test -z "$as_dir" && as_dir=.
5213506e 11771 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11773 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11775 break 2
11776 fi
11777done
5213506e
RW
11778 done
11779IFS=$as_save_IFS
1c710c3c 11780
2abefe3d
PB
11781fi
11782fi
1c710c3c 11783LIPO=$ac_cv_prog_LIPO
2abefe3d 11784if test -n "$LIPO"; then
5213506e
RW
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11786$as_echo "$LIPO" >&6; }
2abefe3d 11787else
5213506e
RW
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11789$as_echo "no" >&6; }
2abefe3d 11790fi
1c710c3c 11791
5213506e 11792
2abefe3d
PB
11793 fi
11794 test -n "$ac_cv_prog_LIPO" && break
11795done
11796
11797if test -z "$ac_cv_prog_LIPO" ; then
11798 set dummy lipo
11799 if test $build = $host ; then
11800 LIPO="$2"
11801 else
11802 LIPO="${ncn_tool_prefix}$2"
11803 fi
11804fi
11805
278a7a38
AO
11806
11807
11808if test -n "$NM"; then
11809 ac_cv_prog_NM=$NM
11810elif test -n "$ac_cv_prog_NM"; then
11811 NM=$ac_cv_prog_NM
11812fi
11813
11814if test -n "$ac_cv_prog_NM"; then
11815 for ncn_progname in nm; do
11816 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11817set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11819$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11820if ${ac_cv_prog_NM+:} false; then :
5213506e 11821 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11822else
11823 if test -n "$NM"; then
11824 ac_cv_prog_NM="$NM" # Let the user override the test.
11825else
1c710c3c
DJ
11826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11827for as_dir in $PATH
11828do
11829 IFS=$as_save_IFS
11830 test -z "$as_dir" && as_dir=.
5213506e 11831 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11833 ac_cv_prog_NM="${ncn_progname}"
5213506e 11834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11835 break 2
11836 fi
11837done
5213506e
RW
11838 done
11839IFS=$as_save_IFS
1c710c3c 11840
ca9f4b81
AO
11841fi
11842fi
1c710c3c 11843NM=$ac_cv_prog_NM
ca9f4b81 11844if test -n "$NM"; then
5213506e
RW
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11846$as_echo "$NM" >&6; }
ca9f4b81 11847else
5213506e
RW
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849$as_echo "no" >&6; }
ca9f4b81
AO
11850fi
11851
5213506e 11852
278a7a38
AO
11853 done
11854fi
11855
11856for ncn_progname in nm; do
11857 if test -n "$ncn_tool_prefix"; then
11858 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11859set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11862if ${ac_cv_prog_NM+:} false; then :
5213506e 11863 $as_echo_n "(cached) " >&6
ca9f4b81 11864else
2693c0b0
PB
11865 if test -n "$NM"; then
11866 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 11867else
1c710c3c
DJ
11868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11869for as_dir in $PATH
11870do
11871 IFS=$as_save_IFS
11872 test -z "$as_dir" && as_dir=.
5213506e 11873 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11875 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 11876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11877 break 2
11878 fi
11879done
5213506e
RW
11880 done
11881IFS=$as_save_IFS
1c710c3c 11882
ca9f4b81
AO
11883fi
11884fi
1c710c3c 11885NM=$ac_cv_prog_NM
2693c0b0 11886if test -n "$NM"; then
5213506e
RW
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11888$as_echo "$NM" >&6; }
ca9f4b81 11889else
5213506e
RW
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891$as_echo "no" >&6; }
ca9f4b81 11892fi
1c710c3c 11893
5213506e 11894
2693c0b0 11895 fi
278a7a38
AO
11896 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11897 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11898set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11900$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11901if ${ac_cv_prog_NM+:} false; then :
5213506e 11902 $as_echo_n "(cached) " >&6
278a7a38
AO
11903else
11904 if test -n "$NM"; then
11905 ac_cv_prog_NM="$NM" # Let the user override the test.
11906else
11907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11908for as_dir in $PATH
11909do
11910 IFS=$as_save_IFS
11911 test -z "$as_dir" && as_dir=.
5213506e 11912 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11914 ac_cv_prog_NM="${ncn_progname}"
5213506e 11915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11916 break 2
11917 fi
11918done
5213506e
RW
11919 done
11920IFS=$as_save_IFS
278a7a38
AO
11921
11922fi
11923fi
11924NM=$ac_cv_prog_NM
11925if test -n "$NM"; then
5213506e
RW
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11927$as_echo "$NM" >&6; }
278a7a38 11928else
5213506e
RW
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930$as_echo "no" >&6; }
278a7a38
AO
11931fi
11932
5213506e 11933
278a7a38
AO
11934 fi
11935 test -n "$ac_cv_prog_NM" && break
11936done
11937
11938if test -z "$ac_cv_prog_NM" ; then
11939 set dummy nm
11940 if test $build = $host ; then
11941 NM="$2"
11942 else
11943 NM="${ncn_tool_prefix}$2"
11944 fi
11945fi
11946
11947
11948
11949if test -n "$RANLIB"; then
11950 ac_cv_prog_RANLIB=$RANLIB
11951elif test -n "$ac_cv_prog_RANLIB"; then
11952 RANLIB=$ac_cv_prog_RANLIB
11953fi
11954
11955if test -n "$ac_cv_prog_RANLIB"; then
11956 for ncn_progname in ranlib; do
11957 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11958set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11960$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11961if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11962 $as_echo_n "(cached) " >&6
278a7a38
AO
11963else
11964 if test -n "$RANLIB"; then
11965 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11966else
11967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11968for as_dir in $PATH
11969do
11970 IFS=$as_save_IFS
11971 test -z "$as_dir" && as_dir=.
5213506e 11972 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11974 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11976 break 2
11977 fi
11978done
5213506e
RW
11979 done
11980IFS=$as_save_IFS
278a7a38
AO
11981
11982fi
11983fi
11984RANLIB=$ac_cv_prog_RANLIB
11985if test -n "$RANLIB"; then
5213506e
RW
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11987$as_echo "$RANLIB" >&6; }
278a7a38 11988else
5213506e
RW
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990$as_echo "no" >&6; }
278a7a38
AO
11991fi
11992
5213506e 11993
278a7a38
AO
11994 done
11995fi
ca9f4b81 11996
278a7a38 11997for ncn_progname in ranlib; do
2693c0b0
PB
11998 if test -n "$ncn_tool_prefix"; then
11999 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12000set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12002$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12003if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 12004 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12005else
12006 if test -n "$RANLIB"; then
12007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12008else
1c710c3c
DJ
12009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12010for as_dir in $PATH
12011do
12012 IFS=$as_save_IFS
12013 test -z "$as_dir" && as_dir=.
5213506e 12014 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12016 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 12017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12018 break 2
12019 fi
12020done
5213506e
RW
12021 done
12022IFS=$as_save_IFS
1c710c3c 12023
ca9f4b81
AO
12024fi
12025fi
1c710c3c 12026RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 12027if test -n "$RANLIB"; then
5213506e
RW
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12029$as_echo "$RANLIB" >&6; }
ca9f4b81 12030else
5213506e
RW
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032$as_echo "no" >&6; }
ca9f4b81
AO
12033fi
12034
5213506e 12035
2693c0b0
PB
12036 fi
12037 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
12038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12039set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12041$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12042if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 12043 $as_echo_n "(cached) " >&6
ca9f4b81 12044else
2693c0b0
PB
12045 if test -n "$RANLIB"; then
12046 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 12047else
1c710c3c
DJ
12048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049for as_dir in $PATH
12050do
12051 IFS=$as_save_IFS
12052 test -z "$as_dir" && as_dir=.
5213506e 12053 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12055 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 12056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12057 break 2
12058 fi
12059done
5213506e
RW
12060 done
12061IFS=$as_save_IFS
1c710c3c 12062
ca9f4b81
AO
12063fi
12064fi
1c710c3c 12065RANLIB=$ac_cv_prog_RANLIB
2693c0b0 12066if test -n "$RANLIB"; then
5213506e
RW
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12068$as_echo "$RANLIB" >&6; }
ca9f4b81 12069else
5213506e
RW
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071$as_echo "no" >&6; }
ca9f4b81 12072fi
1c710c3c 12073
5213506e 12074
ca9f4b81 12075 fi
2693c0b0
PB
12076 test -n "$ac_cv_prog_RANLIB" && break
12077done
12078
12079if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 12080 RANLIB="true"
ca9f4b81
AO
12081fi
12082
278a7a38
AO
12083
12084
12085if test -n "$STRIP"; then
12086 ac_cv_prog_STRIP=$STRIP
12087elif test -n "$ac_cv_prog_STRIP"; then
12088 STRIP=$ac_cv_prog_STRIP
12089fi
12090
12091if test -n "$ac_cv_prog_STRIP"; then
12092 for ncn_progname in strip; do
12093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12094set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12096$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12097if ${ac_cv_prog_STRIP+:} false; then :
5213506e 12098 $as_echo_n "(cached) " >&6
278a7a38
AO
12099else
12100 if test -n "$STRIP"; then
12101 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12102else
12103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12104for as_dir in $PATH
12105do
12106 IFS=$as_save_IFS
12107 test -z "$as_dir" && as_dir=.
5213506e 12108 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12110 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 12111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12112 break 2
12113 fi
12114done
5213506e
RW
12115 done
12116IFS=$as_save_IFS
278a7a38
AO
12117
12118fi
12119fi
12120STRIP=$ac_cv_prog_STRIP
12121if test -n "$STRIP"; then
5213506e
RW
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12123$as_echo "$STRIP" >&6; }
278a7a38 12124else
5213506e
RW
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126$as_echo "no" >&6; }
278a7a38
AO
12127fi
12128
5213506e 12129
278a7a38
AO
12130 done
12131fi
12132
12133for ncn_progname in strip; do
2abefe3d
PB
12134 if test -n "$ncn_tool_prefix"; then
12135 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12136set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12138$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12139if ${ac_cv_prog_STRIP+:} false; then :
5213506e 12140 $as_echo_n "(cached) " >&6
2abefe3d
PB
12141else
12142 if test -n "$STRIP"; then
12143 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12144else
1c710c3c
DJ
12145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146for as_dir in $PATH
12147do
12148 IFS=$as_save_IFS
12149 test -z "$as_dir" && as_dir=.
5213506e 12150 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12152 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 12153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12154 break 2
12155 fi
12156done
5213506e
RW
12157 done
12158IFS=$as_save_IFS
1c710c3c 12159
2abefe3d
PB
12160fi
12161fi
1c710c3c 12162STRIP=$ac_cv_prog_STRIP
2abefe3d 12163if test -n "$STRIP"; then
5213506e
RW
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12165$as_echo "$STRIP" >&6; }
2abefe3d 12166else
5213506e
RW
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168$as_echo "no" >&6; }
2abefe3d
PB
12169fi
12170
5213506e 12171
2abefe3d
PB
12172 fi
12173 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12175set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12177$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12178if ${ac_cv_prog_STRIP+:} false; then :
5213506e 12179 $as_echo_n "(cached) " >&6
2abefe3d
PB
12180else
12181 if test -n "$STRIP"; then
12182 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12183else
1c710c3c
DJ
12184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185for as_dir in $PATH
12186do
12187 IFS=$as_save_IFS
12188 test -z "$as_dir" && as_dir=.
5213506e 12189 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12191 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 12192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12193 break 2
12194 fi
12195done
5213506e
RW
12196 done
12197IFS=$as_save_IFS
1c710c3c 12198
2abefe3d
PB
12199fi
12200fi
1c710c3c 12201STRIP=$ac_cv_prog_STRIP
2abefe3d 12202if test -n "$STRIP"; then
5213506e
RW
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12204$as_echo "$STRIP" >&6; }
2abefe3d 12205else
5213506e
RW
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12207$as_echo "no" >&6; }
2abefe3d 12208fi
1c710c3c 12209
5213506e 12210
2abefe3d
PB
12211 fi
12212 test -n "$ac_cv_prog_STRIP" && break
12213done
12214
12215if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 12216 STRIP="true"
2abefe3d
PB
12217fi
12218
278a7a38
AO
12219
12220
12221if test -n "$WINDRES"; then
12222 ac_cv_prog_WINDRES=$WINDRES
12223elif test -n "$ac_cv_prog_WINDRES"; then
12224 WINDRES=$ac_cv_prog_WINDRES
12225fi
12226
12227if test -n "$ac_cv_prog_WINDRES"; then
12228 for ncn_progname in windres; do
12229 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12230set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12233if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12234 $as_echo_n "(cached) " >&6
278a7a38
AO
12235else
12236 if test -n "$WINDRES"; then
12237 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12238else
12239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240for as_dir in $PATH
12241do
12242 IFS=$as_save_IFS
12243 test -z "$as_dir" && as_dir=.
5213506e 12244 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12246 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 12247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12248 break 2
12249 fi
12250done
5213506e
RW
12251 done
12252IFS=$as_save_IFS
278a7a38
AO
12253
12254fi
12255fi
12256WINDRES=$ac_cv_prog_WINDRES
12257if test -n "$WINDRES"; then
5213506e
RW
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12259$as_echo "$WINDRES" >&6; }
278a7a38 12260else
5213506e
RW
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262$as_echo "no" >&6; }
278a7a38
AO
12263fi
12264
5213506e 12265
278a7a38
AO
12266 done
12267fi
12268
12269for ncn_progname in windres; do
2693c0b0
PB
12270 if test -n "$ncn_tool_prefix"; then
12271 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12272set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12274$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12275if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12276 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12277else
12278 if test -n "$WINDRES"; then
12279 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12280else
1c710c3c
DJ
12281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12282for as_dir in $PATH
12283do
12284 IFS=$as_save_IFS
12285 test -z "$as_dir" && as_dir=.
5213506e 12286 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12288 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 12289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12290 break 2
12291 fi
12292done
5213506e
RW
12293 done
12294IFS=$as_save_IFS
1c710c3c 12295
ca9f4b81
AO
12296fi
12297fi
1c710c3c 12298WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 12299if test -n "$WINDRES"; then
5213506e
RW
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12301$as_echo "$WINDRES" >&6; }
ca9f4b81 12302else
5213506e
RW
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304$as_echo "no" >&6; }
ca9f4b81
AO
12305fi
12306
5213506e 12307
2693c0b0
PB
12308 fi
12309 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12311set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12313$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12314if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12315 $as_echo_n "(cached) " >&6
ca9f4b81 12316else
2693c0b0
PB
12317 if test -n "$WINDRES"; then
12318 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 12319else
1c710c3c
DJ
12320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321for as_dir in $PATH
12322do
12323 IFS=$as_save_IFS
12324 test -z "$as_dir" && as_dir=.
5213506e 12325 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12327 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 12328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12329 break 2
12330 fi
12331done
5213506e
RW
12332 done
12333IFS=$as_save_IFS
1c710c3c 12334
ca9f4b81
AO
12335fi
12336fi
1c710c3c 12337WINDRES=$ac_cv_prog_WINDRES
2693c0b0 12338if test -n "$WINDRES"; then
5213506e
RW
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12340$as_echo "$WINDRES" >&6; }
ca9f4b81 12341else
5213506e
RW
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343$as_echo "no" >&6; }
ca9f4b81 12344fi
1c710c3c 12345
5213506e 12346
2693c0b0
PB
12347 fi
12348 test -n "$ac_cv_prog_WINDRES" && break
12349done
12350
12351if test -z "$ac_cv_prog_WINDRES" ; then
12352 set dummy windres
12353 if test $build = $host ; then
12354 WINDRES="$2"
ca9f4b81 12355 else
2693c0b0 12356 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 12357 fi
ca9f4b81
AO
12358fi
12359
278a7a38
AO
12360
12361
901119ae
KT
12362if test -n "$WINDMC"; then
12363 ac_cv_prog_WINDMC=$WINDMC
12364elif test -n "$ac_cv_prog_WINDMC"; then
12365 WINDMC=$ac_cv_prog_WINDMC
12366fi
12367
12368if test -n "$ac_cv_prog_WINDMC"; then
12369 for ncn_progname in windmc; do
12370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12371set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12373$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12374if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12375 $as_echo_n "(cached) " >&6
901119ae
KT
12376else
12377 if test -n "$WINDMC"; then
12378 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12379else
12380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12381for as_dir in $PATH
12382do
12383 IFS=$as_save_IFS
12384 test -z "$as_dir" && as_dir=.
5213506e 12385 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12387 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 12388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12389 break 2
12390 fi
12391done
5213506e
RW
12392 done
12393IFS=$as_save_IFS
901119ae
KT
12394
12395fi
12396fi
12397WINDMC=$ac_cv_prog_WINDMC
12398if test -n "$WINDMC"; then
5213506e
RW
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12400$as_echo "$WINDMC" >&6; }
901119ae 12401else
5213506e
RW
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403$as_echo "no" >&6; }
901119ae
KT
12404fi
12405
5213506e 12406
901119ae
KT
12407 done
12408fi
12409
12410for ncn_progname in windmc; do
12411 if test -n "$ncn_tool_prefix"; then
12412 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12413set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12415$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12416if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12417 $as_echo_n "(cached) " >&6
901119ae
KT
12418else
12419 if test -n "$WINDMC"; then
12420 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12421else
12422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12423for as_dir in $PATH
12424do
12425 IFS=$as_save_IFS
12426 test -z "$as_dir" && as_dir=.
5213506e 12427 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12429 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 12430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12431 break 2
12432 fi
12433done
5213506e
RW
12434 done
12435IFS=$as_save_IFS
901119ae
KT
12436
12437fi
12438fi
12439WINDMC=$ac_cv_prog_WINDMC
12440if test -n "$WINDMC"; then
5213506e
RW
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12442$as_echo "$WINDMC" >&6; }
901119ae 12443else
5213506e
RW
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12445$as_echo "no" >&6; }
901119ae
KT
12446fi
12447
5213506e 12448
901119ae
KT
12449 fi
12450 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12452set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12454$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12455if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12456 $as_echo_n "(cached) " >&6
901119ae
KT
12457else
12458 if test -n "$WINDMC"; then
12459 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12460else
12461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12462for as_dir in $PATH
12463do
12464 IFS=$as_save_IFS
12465 test -z "$as_dir" && as_dir=.
5213506e 12466 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12468 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 12469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12470 break 2
12471 fi
12472done
5213506e
RW
12473 done
12474IFS=$as_save_IFS
901119ae
KT
12475
12476fi
12477fi
12478WINDMC=$ac_cv_prog_WINDMC
12479if test -n "$WINDMC"; then
5213506e
RW
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12481$as_echo "$WINDMC" >&6; }
901119ae 12482else
5213506e
RW
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12484$as_echo "no" >&6; }
901119ae
KT
12485fi
12486
5213506e 12487
901119ae
KT
12488 fi
12489 test -n "$ac_cv_prog_WINDMC" && break
12490done
12491
12492if test -z "$ac_cv_prog_WINDMC" ; then
12493 set dummy windmc
12494 if test $build = $host ; then
12495 WINDMC="$2"
12496 else
12497 WINDMC="${ncn_tool_prefix}$2"
12498 fi
12499fi
12500
12501
12502
278a7a38
AO
12503if test -n "$OBJCOPY"; then
12504 ac_cv_prog_OBJCOPY=$OBJCOPY
12505elif test -n "$ac_cv_prog_OBJCOPY"; then
12506 OBJCOPY=$ac_cv_prog_OBJCOPY
12507fi
12508
12509if test -n "$ac_cv_prog_OBJCOPY"; then
12510 for ncn_progname in objcopy; do
12511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12512set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12514$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12515if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12516 $as_echo_n "(cached) " >&6
278a7a38
AO
12517else
12518 if test -n "$OBJCOPY"; then
12519 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12520else
12521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522for as_dir in $PATH
12523do
12524 IFS=$as_save_IFS
12525 test -z "$as_dir" && as_dir=.
5213506e 12526 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12528 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12530 break 2
12531 fi
12532done
5213506e
RW
12533 done
12534IFS=$as_save_IFS
278a7a38
AO
12535
12536fi
12537fi
12538OBJCOPY=$ac_cv_prog_OBJCOPY
12539if test -n "$OBJCOPY"; then
5213506e
RW
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12541$as_echo "$OBJCOPY" >&6; }
278a7a38 12542else
5213506e
RW
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544$as_echo "no" >&6; }
278a7a38
AO
12545fi
12546
5213506e 12547
278a7a38
AO
12548 done
12549fi
12550
12551for ncn_progname in objcopy; do
2693c0b0
PB
12552 if test -n "$ncn_tool_prefix"; then
12553 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12554set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12556$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12557if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12558 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12559else
12560 if test -n "$OBJCOPY"; then
12561 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12562else
1c710c3c
DJ
12563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12564for as_dir in $PATH
12565do
12566 IFS=$as_save_IFS
12567 test -z "$as_dir" && as_dir=.
5213506e 12568 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12570 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 12571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12572 break 2
12573 fi
12574done
5213506e
RW
12575 done
12576IFS=$as_save_IFS
1c710c3c 12577
ca9f4b81
AO
12578fi
12579fi
1c710c3c 12580OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 12581if test -n "$OBJCOPY"; then
5213506e
RW
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12583$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12584else
5213506e
RW
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586$as_echo "no" >&6; }
ca9f4b81
AO
12587fi
12588
5213506e 12589
2693c0b0
PB
12590 fi
12591 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12593set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12595$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12596if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12597 $as_echo_n "(cached) " >&6
ca9f4b81 12598else
2693c0b0
PB
12599 if test -n "$OBJCOPY"; then
12600 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 12601else
1c710c3c
DJ
12602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603for as_dir in $PATH
12604do
12605 IFS=$as_save_IFS
12606 test -z "$as_dir" && as_dir=.
5213506e 12607 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12609 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12611 break 2
12612 fi
12613done
5213506e
RW
12614 done
12615IFS=$as_save_IFS
1c710c3c 12616
ca9f4b81
AO
12617fi
12618fi
1c710c3c 12619OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 12620if test -n "$OBJCOPY"; then
5213506e
RW
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12622$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12623else
5213506e
RW
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625$as_echo "no" >&6; }
ca9f4b81 12626fi
1c710c3c 12627
5213506e 12628
2693c0b0
PB
12629 fi
12630 test -n "$ac_cv_prog_OBJCOPY" && break
12631done
12632
12633if test -z "$ac_cv_prog_OBJCOPY" ; then
12634 set dummy objcopy
12635 if test $build = $host ; then
12636 OBJCOPY="$2"
ca9f4b81 12637 else
2693c0b0 12638 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 12639 fi
ca9f4b81
AO
12640fi
12641
278a7a38
AO
12642
12643
12644if test -n "$OBJDUMP"; then
12645 ac_cv_prog_OBJDUMP=$OBJDUMP
12646elif test -n "$ac_cv_prog_OBJDUMP"; then
12647 OBJDUMP=$ac_cv_prog_OBJDUMP
12648fi
12649
12650if test -n "$ac_cv_prog_OBJDUMP"; then
12651 for ncn_progname in objdump; do
12652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12653set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12655$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12656if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12657 $as_echo_n "(cached) " >&6
278a7a38
AO
12658else
12659 if test -n "$OBJDUMP"; then
12660 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12661else
12662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663for as_dir in $PATH
12664do
12665 IFS=$as_save_IFS
12666 test -z "$as_dir" && as_dir=.
5213506e 12667 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12669 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12671 break 2
12672 fi
12673done
5213506e
RW
12674 done
12675IFS=$as_save_IFS
278a7a38
AO
12676
12677fi
12678fi
12679OBJDUMP=$ac_cv_prog_OBJDUMP
12680if test -n "$OBJDUMP"; then
5213506e
RW
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12682$as_echo "$OBJDUMP" >&6; }
278a7a38 12683else
5213506e
RW
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685$as_echo "no" >&6; }
278a7a38
AO
12686fi
12687
5213506e 12688
278a7a38
AO
12689 done
12690fi
12691
12692for ncn_progname in objdump; do
2693c0b0
PB
12693 if test -n "$ncn_tool_prefix"; then
12694 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12695set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12697$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12698if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12699 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12700else
12701 if test -n "$OBJDUMP"; then
12702 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12703else
1c710c3c
DJ
12704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12705for as_dir in $PATH
12706do
12707 IFS=$as_save_IFS
12708 test -z "$as_dir" && as_dir=.
5213506e 12709 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12711 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 12712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12713 break 2
12714 fi
12715done
5213506e
RW
12716 done
12717IFS=$as_save_IFS
1c710c3c 12718
ca9f4b81
AO
12719fi
12720fi
1c710c3c 12721OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 12722if test -n "$OBJDUMP"; then
5213506e
RW
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12724$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12725else
5213506e
RW
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12727$as_echo "no" >&6; }
ca9f4b81
AO
12728fi
12729
5213506e 12730
2693c0b0
PB
12731 fi
12732 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12734set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12736$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12737if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12738 $as_echo_n "(cached) " >&6
ca9f4b81 12739else
2693c0b0
PB
12740 if test -n "$OBJDUMP"; then
12741 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 12742else
1c710c3c
DJ
12743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12744for as_dir in $PATH
12745do
12746 IFS=$as_save_IFS
12747 test -z "$as_dir" && as_dir=.
5213506e 12748 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12750 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12752 break 2
12753 fi
12754done
5213506e
RW
12755 done
12756IFS=$as_save_IFS
1c710c3c 12757
ca9f4b81
AO
12758fi
12759fi
1c710c3c 12760OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 12761if test -n "$OBJDUMP"; then
5213506e
RW
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12763$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12764else
5213506e
RW
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766$as_echo "no" >&6; }
ca9f4b81 12767fi
1c710c3c 12768
5213506e 12769
2693c0b0
PB
12770 fi
12771 test -n "$ac_cv_prog_OBJDUMP" && break
12772done
12773
12774if test -z "$ac_cv_prog_OBJDUMP" ; then
12775 set dummy objdump
12776 if test $build = $host ; then
12777 OBJDUMP="$2"
ca9f4b81 12778 else
2693c0b0 12779 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 12780 fi
ca9f4b81
AO
12781fi
12782
671aa708
NN
12783
12784
e4a9a572
IS
12785if test -n "$OTOOL"; then
12786 ac_cv_prog_OTOOL=$OTOOL
12787elif test -n "$ac_cv_prog_OTOOL"; then
12788 OTOOL=$ac_cv_prog_OTOOL
12789fi
12790
12791if test -n "$ac_cv_prog_OTOOL"; then
12792 for ncn_progname in otool; do
12793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12794set dummy ${ncn_progname}; ac_word=$2
12795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12796$as_echo_n "checking for $ac_word... " >&6; }
12797if ${ac_cv_prog_OTOOL+:} false; then :
12798 $as_echo_n "(cached) " >&6
12799else
12800 if test -n "$OTOOL"; then
12801 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12802else
12803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12804for as_dir in $PATH
12805do
12806 IFS=$as_save_IFS
12807 test -z "$as_dir" && as_dir=.
12808 for ac_exec_ext in '' $ac_executable_extensions; do
12809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12810 ac_cv_prog_OTOOL="${ncn_progname}"
12811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12812 break 2
12813 fi
12814done
12815 done
12816IFS=$as_save_IFS
12817
12818fi
12819fi
12820OTOOL=$ac_cv_prog_OTOOL
12821if test -n "$OTOOL"; then
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12823$as_echo "$OTOOL" >&6; }
12824else
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12826$as_echo "no" >&6; }
12827fi
12828
12829
12830 done
12831fi
12832
12833for ncn_progname in otool; do
12834 if test -n "$ncn_tool_prefix"; then
12835 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12836set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12838$as_echo_n "checking for $ac_word... " >&6; }
12839if ${ac_cv_prog_OTOOL+:} false; then :
12840 $as_echo_n "(cached) " >&6
12841else
12842 if test -n "$OTOOL"; then
12843 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12844else
12845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12846for as_dir in $PATH
12847do
12848 IFS=$as_save_IFS
12849 test -z "$as_dir" && as_dir=.
12850 for ac_exec_ext in '' $ac_executable_extensions; do
12851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12852 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12854 break 2
12855 fi
12856done
12857 done
12858IFS=$as_save_IFS
12859
12860fi
12861fi
12862OTOOL=$ac_cv_prog_OTOOL
12863if test -n "$OTOOL"; then
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12865$as_echo "$OTOOL" >&6; }
12866else
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12868$as_echo "no" >&6; }
12869fi
12870
12871
12872 fi
12873 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12875set dummy ${ncn_progname}; ac_word=$2
12876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12877$as_echo_n "checking for $ac_word... " >&6; }
12878if ${ac_cv_prog_OTOOL+:} false; then :
12879 $as_echo_n "(cached) " >&6
12880else
12881 if test -n "$OTOOL"; then
12882 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12883else
12884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12885for as_dir in $PATH
12886do
12887 IFS=$as_save_IFS
12888 test -z "$as_dir" && as_dir=.
12889 for ac_exec_ext in '' $ac_executable_extensions; do
12890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12891 ac_cv_prog_OTOOL="${ncn_progname}"
12892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12893 break 2
12894 fi
12895done
12896 done
12897IFS=$as_save_IFS
12898
12899fi
12900fi
12901OTOOL=$ac_cv_prog_OTOOL
12902if test -n "$OTOOL"; then
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12904$as_echo "$OTOOL" >&6; }
12905else
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12907$as_echo "no" >&6; }
12908fi
12909
12910
12911 fi
12912 test -n "$ac_cv_prog_OTOOL" && break
12913done
12914
12915if test -z "$ac_cv_prog_OTOOL" ; then
12916 set dummy otool
12917 if test $build = $host ; then
12918 OTOOL="$2"
12919 else
12920 OTOOL="${ncn_tool_prefix}$2"
12921 fi
12922fi
12923
12924
12925
e7a82751
RM
12926if test -n "$READELF"; then
12927 ac_cv_prog_READELF=$READELF
12928elif test -n "$ac_cv_prog_READELF"; then
12929 READELF=$ac_cv_prog_READELF
12930fi
12931
12932if test -n "$ac_cv_prog_READELF"; then
12933 for ncn_progname in readelf; do
12934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12935set dummy ${ncn_progname}; ac_word=$2
12936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12937$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12938if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12939 $as_echo_n "(cached) " >&6
12940else
12941 if test -n "$READELF"; then
12942 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12943else
12944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945for as_dir in $PATH
12946do
12947 IFS=$as_save_IFS
12948 test -z "$as_dir" && as_dir=.
12949 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12951 ac_cv_prog_READELF="${ncn_progname}"
12952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12953 break 2
12954 fi
12955done
12956 done
12957IFS=$as_save_IFS
12958
12959fi
12960fi
12961READELF=$ac_cv_prog_READELF
12962if test -n "$READELF"; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12964$as_echo "$READELF" >&6; }
12965else
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967$as_echo "no" >&6; }
12968fi
12969
12970
12971 done
12972fi
12973
12974for ncn_progname in readelf; do
12975 if test -n "$ncn_tool_prefix"; then
12976 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12977set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12979$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12980if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12981 $as_echo_n "(cached) " >&6
12982else
12983 if test -n "$READELF"; then
12984 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12985else
12986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12987for as_dir in $PATH
12988do
12989 IFS=$as_save_IFS
12990 test -z "$as_dir" && as_dir=.
12991 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12993 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12995 break 2
12996 fi
12997done
12998 done
12999IFS=$as_save_IFS
13000
13001fi
13002fi
13003READELF=$ac_cv_prog_READELF
13004if test -n "$READELF"; then
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13006$as_echo "$READELF" >&6; }
13007else
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13009$as_echo "no" >&6; }
13010fi
13011
13012
13013 fi
13014 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
13015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13016set dummy ${ncn_progname}; ac_word=$2
13017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13018$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13019if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
13020 $as_echo_n "(cached) " >&6
13021else
13022 if test -n "$READELF"; then
13023 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13024else
13025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13026for as_dir in $PATH
13027do
13028 IFS=$as_save_IFS
13029 test -z "$as_dir" && as_dir=.
13030 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13032 ac_cv_prog_READELF="${ncn_progname}"
13033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13034 break 2
13035 fi
13036done
13037 done
13038IFS=$as_save_IFS
13039
13040fi
13041fi
13042READELF=$ac_cv_prog_READELF
13043if test -n "$READELF"; then
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13045$as_echo "$READELF" >&6; }
13046else
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13048$as_echo "no" >&6; }
13049fi
13050
13051
13052 fi
13053 test -n "$ac_cv_prog_READELF" && break
13054done
13055
13056if test -z "$ac_cv_prog_READELF" ; then
13057 set dummy readelf
13058 if test $build = $host ; then
13059 READELF="$2"
13060 else
13061 READELF="${ncn_tool_prefix}$2"
13062 fi
13063fi
13064
13065
13066
671aa708
NN
13067
13068
13069
5fee5ec3 13070
1ed21e23 13071GDCFLAGS=${GDCFLAGS-${CFLAGS}}
5fee5ec3 13072
1ddd41fd 13073
126f707e
L
13074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
13075$as_echo_n "checking for -plugin option... " >&6; }
13076
13077plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
13078plugin_option=
13079for plugin in $plugin_names; do
13080 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
13081 if test x$plugin_so = x$plugin; then
13082 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
13083 fi
13084 if test x$plugin_so != x$plugin; then
13085 plugin_option="--plugin $plugin_so"
13086 break
13087 fi
13088done
9c7797a8
L
13089if test -n "$ac_tool_prefix"; then
13090 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13091set dummy ${ac_tool_prefix}ar; ac_word=$2
13092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13093$as_echo_n "checking for $ac_word... " >&6; }
13094if ${ac_cv_prog_AR+:} false; then :
13095 $as_echo_n "(cached) " >&6
13096else
13097 if test -n "$AR"; then
13098 ac_cv_prog_AR="$AR" # Let the user override the test.
13099else
13100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101for as_dir in $PATH
13102do
13103 IFS=$as_save_IFS
13104 test -z "$as_dir" && as_dir=.
13105 for ac_exec_ext in '' $ac_executable_extensions; do
13106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13107 ac_cv_prog_AR="${ac_tool_prefix}ar"
13108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13109 break 2
13110 fi
13111done
13112 done
13113IFS=$as_save_IFS
13114
13115fi
13116fi
13117AR=$ac_cv_prog_AR
13118if test -n "$AR"; then
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13120$as_echo "$AR" >&6; }
13121else
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13123$as_echo "no" >&6; }
13124fi
13125
13126
13127fi
13128if test -z "$ac_cv_prog_AR"; then
13129 ac_ct_AR=$AR
13130 # Extract the first word of "ar", so it can be a program name with args.
13131set dummy ar; ac_word=$2
13132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133$as_echo_n "checking for $ac_word... " >&6; }
13134if ${ac_cv_prog_ac_ct_AR+:} false; then :
13135 $as_echo_n "(cached) " >&6
13136else
13137 if test -n "$ac_ct_AR"; then
13138 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13139else
13140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141for as_dir in $PATH
13142do
13143 IFS=$as_save_IFS
13144 test -z "$as_dir" && as_dir=.
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13147 ac_cv_prog_ac_ct_AR="ar"
13148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13149 break 2
13150 fi
13151done
13152 done
13153IFS=$as_save_IFS
13154
13155fi
13156fi
13157ac_ct_AR=$ac_cv_prog_ac_ct_AR
13158if test -n "$ac_ct_AR"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13160$as_echo "$ac_ct_AR" >&6; }
13161else
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163$as_echo "no" >&6; }
13164fi
13165
13166 if test "x$ac_ct_AR" = x; then
13167 AR=""
13168 else
13169 case $cross_compiling:$ac_tool_warned in
13170yes:)
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13173ac_tool_warned=yes ;;
13174esac
13175 AR=$ac_ct_AR
13176 fi
13177else
13178 AR="$ac_cv_prog_AR"
13179fi
13180
13181if test "${AR}" = "" ; then
13182 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
13183fi
13184touch conftest.c
13185${AR} $plugin_option rc conftest.a conftest.c
13186if test "$?" != 0; then
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
13188$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
13189 plugin_option=
13190fi
13191rm -f conftest.*
126f707e
L
13192if test -n "$plugin_option"; then
13193 PLUGIN_OPTION="$plugin_option"
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
13195$as_echo "$plugin_option" >&6; }
13196else
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13198$as_echo "no" >&6; }
13199fi
13200
13201AR_PLUGIN_OPTION=
13202RANLIB_PLUGIN_OPTION=
13203if test -n "$PLUGIN_OPTION"; then
13204 if $AR --help 2>&1 | grep -q "\--plugin"; then
13205 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13206 fi
13207 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
13208 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13209 fi
13210fi
13211
13212
13213
2abefe3d 13214# Target tools.
1c710c3c 13215
5213506e
RW
13216# Check whether --with-build-time-tools was given.
13217if test "${with_build_time_tools+set}" = set; then :
13218 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
13219 x/*) ;;
13220 *)
13221 with_build_time_tools=
5213506e
RW
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
13223$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
13224 ;;
13225 esac
ca9f4b81 13226else
e8b05380 13227 with_build_time_tools=
5213506e
RW
13228fi
13229
ca9f4b81 13230
278a7a38
AO
13231
13232
13233if test -n "$CC_FOR_TARGET"; then
13234 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13235elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13236 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13237fi
13238
13239if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13240 for ncn_progname in cc gcc; do
13241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13242set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13244$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13245if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 13246 $as_echo_n "(cached) " >&6
278a7a38
AO
13247else
13248 if test -n "$CC_FOR_TARGET"; then
13249 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13250else
13251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13252for as_dir in $PATH
13253do
13254 IFS=$as_save_IFS
13255 test -z "$as_dir" && as_dir=.
5213506e 13256 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13258 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 13259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13260 break 2
13261 fi
13262done
5213506e
RW
13263 done
13264IFS=$as_save_IFS
278a7a38
AO
13265
13266fi
13267fi
13268CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13269if test -n "$CC_FOR_TARGET"; then
5213506e
RW
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13271$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 13272else
5213506e
RW
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13274$as_echo "no" >&6; }
278a7a38
AO
13275fi
13276
5213506e 13277
278a7a38
AO
13278 done
13279fi
13280
13281if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13282 for ncn_progname in cc gcc; do
5213506e
RW
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13284$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13285 if test -x $with_build_time_tools/${ncn_progname}; then
13286 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13288$as_echo "yes" >&6; }
72a7ab82 13289 break
e8b05380 13290 else
5213506e
RW
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13292$as_echo "no" >&6; }
72a7ab82
AP
13293 fi
13294 done
4de997d1
PB
13295fi
13296
e8b05380
PB
13297if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13298 for ncn_progname in cc gcc; do
13299 if test -n "$ncn_target_tool_prefix"; then
13300 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13301set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13303$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13304if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 13305 $as_echo_n "(cached) " >&6
4de997d1
PB
13306else
13307 if test -n "$CC_FOR_TARGET"; then
13308 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13309else
1c710c3c
DJ
13310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13311for as_dir in $PATH
13312do
13313 IFS=$as_save_IFS
13314 test -z "$as_dir" && as_dir=.
5213506e 13315 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13317 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13319 break 2
13320 fi
13321done
5213506e
RW
13322 done
13323IFS=$as_save_IFS
1c710c3c 13324
4de997d1
PB
13325fi
13326fi
1c710c3c 13327CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 13328if test -n "$CC_FOR_TARGET"; then
5213506e
RW
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13330$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 13331else
5213506e
RW
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13333$as_echo "no" >&6; }
4de997d1
PB
13334fi
13335
5213506e 13336
e8b05380
PB
13337 fi
13338 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13340set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13342$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13343if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 13344 $as_echo_n "(cached) " >&6
4de997d1 13345else
2693c0b0
PB
13346 if test -n "$CC_FOR_TARGET"; then
13347 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 13348else
1c710c3c
DJ
13349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13350for as_dir in $PATH
13351do
13352 IFS=$as_save_IFS
13353 test -z "$as_dir" && as_dir=.
5213506e 13354 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13356 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 13357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13358 break 2
13359 fi
13360done
5213506e
RW
13361 done
13362IFS=$as_save_IFS
1c710c3c 13363
4de997d1
PB
13364fi
13365fi
1c710c3c 13366CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 13367if test -n "$CC_FOR_TARGET"; then
5213506e
RW
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13369$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 13370else
5213506e
RW
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372$as_echo "no" >&6; }
4de997d1 13373fi
1c710c3c 13374
5213506e 13375
e8b05380
PB
13376 fi
13377 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13378 done
13379fi
1c710c3c 13380
2693c0b0
PB
13381if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13382 set dummy cc gcc
13383 if test $build = $target ; then
13384 CC_FOR_TARGET="$2"
4de997d1 13385 else
2693c0b0 13386 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 13387 fi
1c00b503
PB
13388else
13389 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
13390fi
13391
278a7a38
AO
13392
13393
13394if test -n "$CXX_FOR_TARGET"; then
13395 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13396elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13397 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13398fi
13399
13400if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13401 for ncn_progname in c++ g++ cxx gxx; do
13402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13403set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13405$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13406if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13407 $as_echo_n "(cached) " >&6
278a7a38
AO
13408else
13409 if test -n "$CXX_FOR_TARGET"; then
13410 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13411else
13412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13413for as_dir in $PATH
13414do
13415 IFS=$as_save_IFS
13416 test -z "$as_dir" && as_dir=.
5213506e 13417 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13419 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 13420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13421 break 2
13422 fi
13423done
5213506e
RW
13424 done
13425IFS=$as_save_IFS
278a7a38
AO
13426
13427fi
13428fi
13429CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13430if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13432$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 13433else
5213506e
RW
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13435$as_echo "no" >&6; }
278a7a38
AO
13436fi
13437
5213506e 13438
278a7a38
AO
13439 done
13440fi
13441
13442if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13443 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13445$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13446 if test -x $with_build_time_tools/${ncn_progname}; then
13447 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13449$as_echo "yes" >&6; }
e8b05380
PB
13450 break
13451 else
5213506e
RW
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453$as_echo "no" >&6; }
e8b05380
PB
13454 fi
13455 done
13456fi
13457
13458if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13459 for ncn_progname in c++ g++ cxx gxx; do
13460 if test -n "$ncn_target_tool_prefix"; then
13461 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13462set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13464$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13465if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13466 $as_echo_n "(cached) " >&6
4de997d1
PB
13467else
13468 if test -n "$CXX_FOR_TARGET"; then
13469 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13470else
1c710c3c
DJ
13471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13472for as_dir in $PATH
13473do
13474 IFS=$as_save_IFS
13475 test -z "$as_dir" && as_dir=.
5213506e 13476 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13478 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13480 break 2
13481 fi
13482done
5213506e
RW
13483 done
13484IFS=$as_save_IFS
1c710c3c 13485
4de997d1
PB
13486fi
13487fi
1c710c3c 13488CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 13489if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13491$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 13492else
5213506e
RW
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13494$as_echo "no" >&6; }
4de997d1
PB
13495fi
13496
5213506e 13497
e8b05380
PB
13498 fi
13499 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13501set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13503$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13504if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13505 $as_echo_n "(cached) " >&6
4de997d1 13506else
2693c0b0
PB
13507 if test -n "$CXX_FOR_TARGET"; then
13508 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 13509else
1c710c3c
DJ
13510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13511for as_dir in $PATH
13512do
13513 IFS=$as_save_IFS
13514 test -z "$as_dir" && as_dir=.
5213506e 13515 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13517 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 13518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13519 break 2
13520 fi
13521done
5213506e
RW
13522 done
13523IFS=$as_save_IFS
1c710c3c 13524
4de997d1
PB
13525fi
13526fi
1c710c3c 13527CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 13528if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13530$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 13531else
5213506e
RW
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13533$as_echo "no" >&6; }
4de997d1 13534fi
1c710c3c 13535
5213506e 13536
e8b05380
PB
13537 fi
13538 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13539 done
13540fi
1c710c3c 13541
2693c0b0
PB
13542if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13543 set dummy c++ g++ cxx gxx
13544 if test $build = $target ; then
13545 CXX_FOR_TARGET="$2"
4de997d1 13546 else
2693c0b0 13547 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 13548 fi
1c00b503
PB
13549else
13550 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
13551fi
13552
278a7a38
AO
13553
13554
13555if test -n "$GCC_FOR_TARGET"; then
13556 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13557elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13558 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13559fi
13560
13561if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13562 for ncn_progname in gcc; do
13563 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13564set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13566$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13567if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13568 $as_echo_n "(cached) " >&6
278a7a38
AO
13569else
13570 if test -n "$GCC_FOR_TARGET"; then
13571 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13572else
13573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574for as_dir in $PATH
13575do
13576 IFS=$as_save_IFS
13577 test -z "$as_dir" && as_dir=.
5213506e 13578 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13580 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 13581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13582 break 2
13583 fi
13584done
5213506e
RW
13585 done
13586IFS=$as_save_IFS
278a7a38
AO
13587
13588fi
13589fi
13590GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13591if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13593$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 13594else
5213506e
RW
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596$as_echo "no" >&6; }
278a7a38
AO
13597fi
13598
5213506e 13599
278a7a38
AO
13600 done
13601fi
13602
13603if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13604 for ncn_progname in gcc; do
5213506e
RW
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13606$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13607 if test -x $with_build_time_tools/${ncn_progname}; then
13608 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13610$as_echo "yes" >&6; }
e8b05380
PB
13611 break
13612 else
5213506e
RW
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13614$as_echo "no" >&6; }
e8b05380
PB
13615 fi
13616 done
13617fi
13618
13619if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13620 for ncn_progname in gcc; do
13621 if test -n "$ncn_target_tool_prefix"; then
13622 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13623set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13625$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13626if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13627 $as_echo_n "(cached) " >&6
ca9f4b81 13628else
e8b05380
PB
13629 if test -n "$GCC_FOR_TARGET"; then
13630 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13631else
1c710c3c
DJ
13632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13633for as_dir in $PATH
13634do
13635 IFS=$as_save_IFS
13636 test -z "$as_dir" && as_dir=.
5213506e 13637 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13639 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13641 break 2
13642 fi
13643done
5213506e
RW
13644 done
13645IFS=$as_save_IFS
1c710c3c 13646
ca9f4b81
AO
13647fi
13648fi
1c710c3c 13649GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13650if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13652$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13653else
5213506e
RW
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13655$as_echo "no" >&6; }
ca9f4b81
AO
13656fi
13657
5213506e 13658
e8b05380
PB
13659 fi
13660 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13662set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13664$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13665if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13666 $as_echo_n "(cached) " >&6
ca9f4b81 13667else
e8b05380
PB
13668 if test -n "$GCC_FOR_TARGET"; then
13669 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13670else
1c710c3c
DJ
13671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13672for as_dir in $PATH
13673do
13674 IFS=$as_save_IFS
13675 test -z "$as_dir" && as_dir=.
5213506e 13676 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13678 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 13679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13680 break 2
13681 fi
13682done
5213506e
RW
13683 done
13684IFS=$as_save_IFS
1c710c3c 13685
ca9f4b81
AO
13686fi
13687fi
1c710c3c 13688GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13689if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13691$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13692else
5213506e
RW
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13694$as_echo "no" >&6; }
ca9f4b81 13695fi
1c710c3c 13696
5213506e 13697
e8b05380
PB
13698 fi
13699 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13700 done
13701fi
1c710c3c 13702
e8b05380
PB
13703if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13704 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
13705else
13706 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
13707fi
13708
278a7a38
AO
13709
13710
278a7a38
AO
13711if test -n "$GFORTRAN_FOR_TARGET"; then
13712 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13713elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13714 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
13715fi
13716
278a7a38
AO
13717if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13718 for ncn_progname in gfortran; do
13719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 13720set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13722$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13723if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13724 $as_echo_n "(cached) " >&6
e8b05380 13725else
278a7a38
AO
13726 if test -n "$GFORTRAN_FOR_TARGET"; then
13727 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 13728else
1c710c3c
DJ
13729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13730for as_dir in $PATH
13731do
13732 IFS=$as_save_IFS
13733 test -z "$as_dir" && as_dir=.
5213506e 13734 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13736 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13738 break 2
13739 fi
13740done
5213506e
RW
13741 done
13742IFS=$as_save_IFS
1c710c3c 13743
e8b05380
PB
13744fi
13745fi
278a7a38
AO
13746GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13747if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13749$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13750else
5213506e
RW
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13752$as_echo "no" >&6; }
e8b05380 13753fi
1c710c3c 13754
5213506e 13755
e8b05380
PB
13756 done
13757fi
1c710c3c 13758
278a7a38 13759if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13760 for ncn_progname in gfortran; do
5213506e
RW
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13762$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13763 if test -x $with_build_time_tools/${ncn_progname}; then
13764 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13766$as_echo "yes" >&6; }
e8b05380
PB
13767 break
13768 else
5213506e
RW
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13770$as_echo "no" >&6; }
e8b05380
PB
13771 fi
13772 done
13773fi
13774
13775if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13776 for ncn_progname in gfortran; do
13777 if test -n "$ncn_target_tool_prefix"; then
13778 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13779set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13781$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13782if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13783 $as_echo_n "(cached) " >&6
e8b05380
PB
13784else
13785 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
13786 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13787else
13788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13789for as_dir in $PATH
13790do
13791 IFS=$as_save_IFS
13792 test -z "$as_dir" && as_dir=.
5213506e 13793 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13795 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13797 break 2
13798 fi
13799done
5213506e
RW
13800 done
13801IFS=$as_save_IFS
1c710c3c 13802
e8b05380
PB
13803fi
13804fi
1c710c3c 13805GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13806if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13808$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13809else
5213506e
RW
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811$as_echo "no" >&6; }
e8b05380
PB
13812fi
13813
5213506e 13814
e8b05380
PB
13815 fi
13816 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13818set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13820$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13821if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13822 $as_echo_n "(cached) " >&6
e8b05380
PB
13823else
13824 if test -n "$GFORTRAN_FOR_TARGET"; then
13825 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13826else
1c710c3c
DJ
13827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13828for as_dir in $PATH
13829do
13830 IFS=$as_save_IFS
13831 test -z "$as_dir" && as_dir=.
5213506e 13832 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13834 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13836 break 2
13837 fi
13838done
5213506e
RW
13839 done
13840IFS=$as_save_IFS
1c710c3c 13841
e8b05380
PB
13842fi
13843fi
1c710c3c 13844GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13845if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13847$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13848else
5213506e
RW
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13850$as_echo "no" >&6; }
e8b05380 13851fi
1c710c3c 13852
5213506e 13853
e8b05380
PB
13854 fi
13855 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13856 done
13857fi
1c710c3c 13858
e8b05380
PB
13859if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13860 set dummy gfortran
2693c0b0 13861 if test $build = $target ; then
e8b05380 13862 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 13863 else
e8b05380
PB
13864 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13865 fi
1c00b503
PB
13866else
13867 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
13868fi
13869
13870
13871
632e2a07
ILT
13872if test -n "$GOC_FOR_TARGET"; then
13873 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13874elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13875 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13876fi
13877
13878if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13879 for ncn_progname in gccgo; do
13880 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13881set dummy ${ncn_progname}; ac_word=$2
13882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13883$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13884if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13885 $as_echo_n "(cached) " >&6
13886else
13887 if test -n "$GOC_FOR_TARGET"; then
13888 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13889else
13890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13891for as_dir in $PATH
13892do
13893 IFS=$as_save_IFS
13894 test -z "$as_dir" && as_dir=.
13895 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13897 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13899 break 2
13900 fi
13901done
13902 done
13903IFS=$as_save_IFS
13904
13905fi
13906fi
13907GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13908if test -n "$GOC_FOR_TARGET"; then
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13910$as_echo "$GOC_FOR_TARGET" >&6; }
13911else
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13913$as_echo "no" >&6; }
13914fi
13915
13916
13917 done
13918fi
13919
13920if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13921 for ncn_progname in gccgo; do
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13923$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13924 if test -x $with_build_time_tools/${ncn_progname}; then
13925 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13927$as_echo "yes" >&6; }
13928 break
13929 else
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13931$as_echo "no" >&6; }
13932 fi
13933 done
13934fi
13935
13936if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13937 for ncn_progname in gccgo; do
13938 if test -n "$ncn_target_tool_prefix"; then
13939 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13940set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13942$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13943if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13944 $as_echo_n "(cached) " >&6
13945else
13946 if test -n "$GOC_FOR_TARGET"; then
13947 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13948else
13949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13950for as_dir in $PATH
13951do
13952 IFS=$as_save_IFS
13953 test -z "$as_dir" && as_dir=.
13954 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13956 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13958 break 2
13959 fi
13960done
13961 done
13962IFS=$as_save_IFS
13963
13964fi
13965fi
13966GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13967if test -n "$GOC_FOR_TARGET"; then
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13969$as_echo "$GOC_FOR_TARGET" >&6; }
13970else
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13972$as_echo "no" >&6; }
13973fi
13974
13975
13976 fi
13977 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13979set dummy ${ncn_progname}; ac_word=$2
13980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13981$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13982if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13983 $as_echo_n "(cached) " >&6
13984else
13985 if test -n "$GOC_FOR_TARGET"; then
13986 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13987else
13988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13989for as_dir in $PATH
13990do
13991 IFS=$as_save_IFS
13992 test -z "$as_dir" && as_dir=.
13993 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13995 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13997 break 2
13998 fi
13999done
14000 done
14001IFS=$as_save_IFS
14002
14003fi
14004fi
14005GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14006if test -n "$GOC_FOR_TARGET"; then
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
14008$as_echo "$GOC_FOR_TARGET" >&6; }
14009else
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14011$as_echo "no" >&6; }
14012fi
14013
14014
14015 fi
14016 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
14017 done
14018fi
14019
14020if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
14021 set dummy gccgo
14022 if test $build = $target ; then
14023 GOC_FOR_TARGET="$2"
14024 else
14025 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14026 fi
14027else
14028 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
14029fi
14030
14031
14032
b4c522fa
IB
14033if test -n "$GDC_FOR_TARGET"; then
14034 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
14035elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14036 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14037fi
14038
14039if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14040 for ncn_progname in gdc; do
14041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14042set dummy ${ncn_progname}; ac_word=$2
14043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14044$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14045if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
14046 $as_echo_n "(cached) " >&6
14047else
14048 if test -n "$GDC_FOR_TARGET"; then
14049 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14050else
14051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14052for as_dir in $PATH
14053do
14054 IFS=$as_save_IFS
14055 test -z "$as_dir" && as_dir=.
14056 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
14058 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14060 break 2
14061 fi
14062done
14063 done
14064IFS=$as_save_IFS
14065
14066fi
14067fi
14068GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14069if test -n "$GDC_FOR_TARGET"; then
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14071$as_echo "$GDC_FOR_TARGET" >&6; }
14072else
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14074$as_echo "no" >&6; }
14075fi
14076
14077
14078 done
14079fi
14080
14081if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14082 for ncn_progname in gdc; do
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14084$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14085 if test -x $with_build_time_tools/${ncn_progname}; then
14086 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14088$as_echo "yes" >&6; }
14089 break
14090 else
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14092$as_echo "no" >&6; }
14093 fi
14094 done
14095fi
14096
14097if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
14098 for ncn_progname in gdc; do
14099 if test -n "$ncn_target_tool_prefix"; then
14100 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14101set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14103$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14104if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
14105 $as_echo_n "(cached) " >&6
14106else
14107 if test -n "$GDC_FOR_TARGET"; then
14108 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14109else
14110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14111for as_dir in $PATH
14112do
14113 IFS=$as_save_IFS
14114 test -z "$as_dir" && as_dir=.
14115 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
14117 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14119 break 2
14120 fi
14121done
14122 done
14123IFS=$as_save_IFS
14124
14125fi
14126fi
14127GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14128if test -n "$GDC_FOR_TARGET"; then
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14130$as_echo "$GDC_FOR_TARGET" >&6; }
14131else
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14133$as_echo "no" >&6; }
14134fi
14135
14136
14137 fi
14138 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14140set dummy ${ncn_progname}; ac_word=$2
14141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14142$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14143if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
14144 $as_echo_n "(cached) " >&6
14145else
14146 if test -n "$GDC_FOR_TARGET"; then
14147 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14148else
14149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14150for as_dir in $PATH
14151do
14152 IFS=$as_save_IFS
14153 test -z "$as_dir" && as_dir=.
14154 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
14156 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14158 break 2
14159 fi
14160done
14161 done
14162IFS=$as_save_IFS
14163
14164fi
14165fi
14166GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14167if test -n "$GDC_FOR_TARGET"; then
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14169$as_echo "$GDC_FOR_TARGET" >&6; }
14170else
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14172$as_echo "no" >&6; }
14173fi
14174
14175
14176 fi
14177 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14178 done
14179fi
14180
14181if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14182 set dummy gdc
14183 if test $build = $target ; then
14184 GDC_FOR_TARGET="$2"
14185 else
14186 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14187 fi
14188else
14189 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14190fi
14191
14192
14193
1eee94d3
GM
14194if test -n "$GM2_FOR_TARGET"; then
14195 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
14196elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14197 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14198fi
14199
14200if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14201 for ncn_progname in gm2; do
14202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14203set dummy ${ncn_progname}; ac_word=$2
14204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14205$as_echo_n "checking for $ac_word... " >&6; }
14206if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14207 $as_echo_n "(cached) " >&6
14208else
14209 if test -n "$GM2_FOR_TARGET"; then
14210 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14211else
14212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14213for as_dir in $PATH
14214do
14215 IFS=$as_save_IFS
14216 test -z "$as_dir" && as_dir=.
14217 for ac_exec_ext in '' $ac_executable_extensions; do
14218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14219 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14221 break 2
14222 fi
14223done
14224 done
14225IFS=$as_save_IFS
14226
14227fi
14228fi
14229GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14230if test -n "$GM2_FOR_TARGET"; then
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14232$as_echo "$GM2_FOR_TARGET" >&6; }
14233else
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14235$as_echo "no" >&6; }
14236fi
14237
14238
14239 done
14240fi
14241
14242if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
14243 for ncn_progname in gm2; do
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14245$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14246 if test -x $with_build_time_tools/${ncn_progname}; then
14247 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14249$as_echo "yes" >&6; }
14250 break
14251 else
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14253$as_echo "no" >&6; }
14254 fi
14255 done
14256fi
14257
14258if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
14259 for ncn_progname in gm2; do
14260 if test -n "$ncn_target_tool_prefix"; then
14261 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14262set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14264$as_echo_n "checking for $ac_word... " >&6; }
14265if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14266 $as_echo_n "(cached) " >&6
14267else
14268 if test -n "$GM2_FOR_TARGET"; then
14269 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14270else
14271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14272for as_dir in $PATH
14273do
14274 IFS=$as_save_IFS
14275 test -z "$as_dir" && as_dir=.
14276 for ac_exec_ext in '' $ac_executable_extensions; do
14277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14278 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14280 break 2
14281 fi
14282done
14283 done
14284IFS=$as_save_IFS
14285
14286fi
14287fi
14288GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14289if test -n "$GM2_FOR_TARGET"; then
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14291$as_echo "$GM2_FOR_TARGET" >&6; }
14292else
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14294$as_echo "no" >&6; }
14295fi
14296
14297
14298 fi
14299 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14301set dummy ${ncn_progname}; ac_word=$2
14302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14303$as_echo_n "checking for $ac_word... " >&6; }
14304if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14305 $as_echo_n "(cached) " >&6
14306else
14307 if test -n "$GM2_FOR_TARGET"; then
14308 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14309else
14310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14311for as_dir in $PATH
14312do
14313 IFS=$as_save_IFS
14314 test -z "$as_dir" && as_dir=.
14315 for ac_exec_ext in '' $ac_executable_extensions; do
14316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14317 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14319 break 2
14320 fi
14321done
14322 done
14323IFS=$as_save_IFS
14324
14325fi
14326fi
14327GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14328if test -n "$GM2_FOR_TARGET"; then
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14330$as_echo "$GM2_FOR_TARGET" >&6; }
14331else
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14333$as_echo "no" >&6; }
14334fi
14335
14336
14337 fi
14338 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14339 done
14340fi
14341
14342if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14343 set dummy gm2
14344 if test $build = $target ; then
14345 GM2_FOR_TARGET="$2"
14346 else
14347 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14348 fi
14349else
14350 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14351fi
14352
14353
14354
e8b05380
PB
14355cat > conftest.c << \EOF
14356#ifdef __GNUC__
14357 gcc_yay;
14358#endif
14359EOF
14360if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14361 have_gcc_for_target=yes
14362else
14363 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14364 have_gcc_for_target=no
14365fi
14366rm conftest.c
14367
14368
14369
14370
14371if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14372 if test -n "$with_build_time_tools"; then
5213506e
RW
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14374$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14375 if test -x $with_build_time_tools/ar; then
14376 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14377 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14379$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 14380 else
5213506e
RW
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14382$as_echo "no" >&6; }
d1f8db0c 14383 fi
e8b05380
PB
14384 elif test $build != $host && test $have_gcc_for_target = yes; then
14385 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
14386 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14387 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
14388 fi
14389fi
3e19841a 14390if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14391 # Extract the first word of "ar", so it can be a program name with args.
14392set dummy ar; ac_word=$2
5213506e
RW
14393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14394$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14395if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
5213506e 14396 $as_echo_n "(cached) " >&6
e8b05380 14397else
1c710c3c
DJ
14398 case $AR_FOR_TARGET in
14399 [\\/]* | ?:[\\/]*)
e8b05380
PB
14400 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14401 ;;
e8b05380 14402 *)
1c710c3c
DJ
14403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14404for as_dir in $gcc_cv_tool_dirs
14405do
14406 IFS=$as_save_IFS
14407 test -z "$as_dir" && as_dir=.
5213506e 14408 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14410 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14412 break 2
14413 fi
14414done
5213506e
RW
14415 done
14416IFS=$as_save_IFS
1c710c3c 14417
e8b05380
PB
14418 ;;
14419esac
14420fi
1c710c3c 14421AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 14422if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14424$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 14425else
5213506e
RW
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14427$as_echo "no" >&6; }
4de997d1
PB
14428fi
14429
5213506e 14430
e8b05380
PB
14431fi
14432if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
14433
14434
14435if test -n "$AR_FOR_TARGET"; then
14436 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14437elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14438 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14439fi
14440
14441if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14442 for ncn_progname in ar; do
14443 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14444set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14446$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14447if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 14448 $as_echo_n "(cached) " >&6
278a7a38
AO
14449else
14450 if test -n "$AR_FOR_TARGET"; then
14451 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14452else
14453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14454for as_dir in $PATH
14455do
14456 IFS=$as_save_IFS
14457 test -z "$as_dir" && as_dir=.
5213506e 14458 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14460 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 14461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14462 break 2
14463 fi
14464done
5213506e
RW
14465 done
14466IFS=$as_save_IFS
278a7a38
AO
14467
14468fi
14469fi
14470AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14471if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14473$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 14474else
5213506e
RW
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14476$as_echo "no" >&6; }
278a7a38
AO
14477fi
14478
5213506e 14479
278a7a38
AO
14480 done
14481fi
14482
14483if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14484 for ncn_progname in ar; do
5213506e
RW
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14486$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14487 if test -x $with_build_time_tools/${ncn_progname}; then
14488 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14490$as_echo "yes" >&6; }
e8b05380
PB
14491 break
14492 else
5213506e
RW
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14494$as_echo "no" >&6; }
e8b05380
PB
14495 fi
14496 done
14497fi
14498
14499if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14500 for ncn_progname in ar; do
14501 if test -n "$ncn_target_tool_prefix"; then
14502 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14503set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14505$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14506if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 14507 $as_echo_n "(cached) " >&6
4de997d1 14508else
e8b05380
PB
14509 if test -n "$AR_FOR_TARGET"; then
14510 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 14511else
1c710c3c
DJ
14512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14513for as_dir in $PATH
14514do
14515 IFS=$as_save_IFS
14516 test -z "$as_dir" && as_dir=.
5213506e 14517 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14519 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14521 break 2
14522 fi
14523done
5213506e
RW
14524 done
14525IFS=$as_save_IFS
1c710c3c 14526
4de997d1
PB
14527fi
14528fi
1c710c3c 14529AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 14530if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14532$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 14533else
5213506e
RW
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14535$as_echo "no" >&6; }
4de997d1
PB
14536fi
14537
5213506e 14538
e8b05380
PB
14539 fi
14540 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14542set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14544$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14545if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 14546 $as_echo_n "(cached) " >&6
e8b05380
PB
14547else
14548 if test -n "$AR_FOR_TARGET"; then
14549 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14550else
1c710c3c
DJ
14551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14552for as_dir in $PATH
14553do
14554 IFS=$as_save_IFS
14555 test -z "$as_dir" && as_dir=.
5213506e 14556 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14558 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 14559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14560 break 2
14561 fi
14562done
5213506e
RW
14563 done
14564IFS=$as_save_IFS
1c710c3c 14565
e8b05380
PB
14566fi
14567fi
1c710c3c 14568AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 14569if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14571$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 14572else
5213506e
RW
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14574$as_echo "no" >&6; }
e8b05380 14575fi
1c710c3c 14576
5213506e 14577
e8b05380
PB
14578 fi
14579 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14580 done
14581fi
1c710c3c 14582
e8b05380
PB
14583if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14584 set dummy ar
14585 if test $build = $target ; then
14586 AR_FOR_TARGET="$2"
14587 else
14588 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 14589 fi
1c00b503
PB
14590else
14591 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
14592fi
14593
d1f8db0c
PB
14594else
14595 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
14596fi
14597
14598
14599
14600
14601if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14602 if test -n "$with_build_time_tools"; then
5213506e
RW
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14604$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14605 if test -x $with_build_time_tools/as; then
14606 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14607 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14609$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 14610 else
5213506e
RW
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14612$as_echo "no" >&6; }
d1f8db0c 14613 fi
e8b05380
PB
14614 elif test $build != $host && test $have_gcc_for_target = yes; then
14615 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
14616 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14617 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
14618 fi
14619fi
3e19841a 14620if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14621 # Extract the first word of "as", so it can be a program name with args.
14622set dummy as; ac_word=$2
5213506e
RW
14623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14624$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14625if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
5213506e 14626 $as_echo_n "(cached) " >&6
e8b05380 14627else
1c710c3c
DJ
14628 case $AS_FOR_TARGET in
14629 [\\/]* | ?:[\\/]*)
e8b05380
PB
14630 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14631 ;;
e8b05380 14632 *)
1c710c3c
DJ
14633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14634for as_dir in $gcc_cv_tool_dirs
14635do
14636 IFS=$as_save_IFS
14637 test -z "$as_dir" && as_dir=.
5213506e 14638 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14640 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14642 break 2
14643 fi
14644done
5213506e
RW
14645 done
14646IFS=$as_save_IFS
1c710c3c 14647
e8b05380
PB
14648 ;;
14649esac
14650fi
1c710c3c 14651AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 14652if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14654$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 14655else
5213506e
RW
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14657$as_echo "no" >&6; }
e8b05380
PB
14658fi
14659
5213506e 14660
e8b05380
PB
14661fi
14662if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
14663
14664
14665if test -n "$AS_FOR_TARGET"; then
14666 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14667elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14668 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14669fi
14670
14671if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14672 for ncn_progname in as; do
14673 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14674set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14676$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14677if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14678 $as_echo_n "(cached) " >&6
278a7a38
AO
14679else
14680 if test -n "$AS_FOR_TARGET"; then
14681 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14682else
14683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14684for as_dir in $PATH
14685do
14686 IFS=$as_save_IFS
14687 test -z "$as_dir" && as_dir=.
5213506e 14688 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14690 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 14691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14692 break 2
14693 fi
14694done
5213506e
RW
14695 done
14696IFS=$as_save_IFS
278a7a38
AO
14697
14698fi
14699fi
14700AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14701if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14703$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 14704else
5213506e
RW
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14706$as_echo "no" >&6; }
278a7a38
AO
14707fi
14708
5213506e 14709
278a7a38
AO
14710 done
14711fi
14712
14713if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14714 for ncn_progname in as; do
5213506e
RW
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14716$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14717 if test -x $with_build_time_tools/${ncn_progname}; then
14718 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14720$as_echo "yes" >&6; }
e8b05380
PB
14721 break
14722 else
5213506e
RW
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14724$as_echo "no" >&6; }
e8b05380
PB
14725 fi
14726 done
14727fi
14728
14729if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14730 for ncn_progname in as; do
14731 if test -n "$ncn_target_tool_prefix"; then
14732 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14733set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14735$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14736if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14737 $as_echo_n "(cached) " >&6
e8b05380
PB
14738else
14739 if test -n "$AS_FOR_TARGET"; then
14740 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14741else
1c710c3c
DJ
14742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14743for as_dir in $PATH
14744do
14745 IFS=$as_save_IFS
14746 test -z "$as_dir" && as_dir=.
5213506e 14747 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14749 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14751 break 2
14752 fi
14753done
5213506e
RW
14754 done
14755IFS=$as_save_IFS
1c710c3c 14756
e8b05380
PB
14757fi
14758fi
1c710c3c 14759AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 14760if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14762$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 14763else
5213506e
RW
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14765$as_echo "no" >&6; }
e8b05380
PB
14766fi
14767
5213506e 14768
e8b05380
PB
14769 fi
14770 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14772set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14774$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14775if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14776 $as_echo_n "(cached) " >&6
4de997d1 14777else
e8b05380
PB
14778 if test -n "$AS_FOR_TARGET"; then
14779 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 14780else
1c710c3c
DJ
14781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14782for as_dir in $PATH
14783do
14784 IFS=$as_save_IFS
14785 test -z "$as_dir" && as_dir=.
5213506e 14786 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14788 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 14789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14790 break 2
14791 fi
14792done
5213506e
RW
14793 done
14794IFS=$as_save_IFS
1c710c3c 14795
4de997d1
PB
14796fi
14797fi
1c710c3c 14798AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 14799if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14801$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 14802else
5213506e
RW
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14804$as_echo "no" >&6; }
4de997d1 14805fi
1c710c3c 14806
5213506e 14807
e8b05380
PB
14808 fi
14809 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14810 done
14811fi
1c710c3c 14812
e8b05380
PB
14813if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14814 set dummy as
14815 if test $build = $target ; then
14816 AS_FOR_TARGET="$2"
14817 else
14818 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 14819 fi
1c00b503
PB
14820else
14821 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 14822fi
2693c0b0 14823
d1f8db0c
PB
14824else
14825 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
14826fi
14827
e8b05380
PB
14828
14829
14830
14831if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14832 if test -n "$with_build_time_tools"; then
5213506e
RW
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14834$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14835 if test -x $with_build_time_tools/dlltool; then
14836 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14837 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14839$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 14840 else
5213506e
RW
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14842$as_echo "no" >&6; }
d1f8db0c 14843 fi
e8b05380
PB
14844 elif test $build != $host && test $have_gcc_for_target = yes; then
14845 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
14846 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14847 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
14848 fi
14849fi
3e19841a 14850if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14851 # Extract the first word of "dlltool", so it can be a program name with args.
14852set dummy dlltool; ac_word=$2
5213506e
RW
14853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14854$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14855if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14856 $as_echo_n "(cached) " >&6
4de997d1 14857else
1c710c3c
DJ
14858 case $DLLTOOL_FOR_TARGET in
14859 [\\/]* | ?:[\\/]*)
e8b05380
PB
14860 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14861 ;;
e8b05380 14862 *)
1c710c3c
DJ
14863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14864for as_dir in $gcc_cv_tool_dirs
14865do
14866 IFS=$as_save_IFS
14867 test -z "$as_dir" && as_dir=.
5213506e 14868 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14870 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14872 break 2
14873 fi
14874done
5213506e
RW
14875 done
14876IFS=$as_save_IFS
1c710c3c 14877
e8b05380
PB
14878 ;;
14879esac
4de997d1 14880fi
1c710c3c 14881DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 14882if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14884$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14885else
5213506e
RW
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14887$as_echo "no" >&6; }
4de997d1
PB
14888fi
14889
5213506e 14890
e8b05380
PB
14891fi
14892if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
14893
14894
14895if test -n "$DLLTOOL_FOR_TARGET"; then
14896 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14897elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14898 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14899fi
14900
14901if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14902 for ncn_progname in dlltool; do
14903 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14904set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14906$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14907if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14908 $as_echo_n "(cached) " >&6
278a7a38
AO
14909else
14910 if test -n "$DLLTOOL_FOR_TARGET"; then
14911 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14912else
14913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14914for as_dir in $PATH
14915do
14916 IFS=$as_save_IFS
14917 test -z "$as_dir" && as_dir=.
5213506e 14918 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14920 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14922 break 2
14923 fi
14924done
5213506e
RW
14925 done
14926IFS=$as_save_IFS
278a7a38
AO
14927
14928fi
14929fi
14930DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14931if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14933$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 14934else
5213506e
RW
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14936$as_echo "no" >&6; }
278a7a38
AO
14937fi
14938
5213506e 14939
278a7a38
AO
14940 done
14941fi
14942
14943if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14944 for ncn_progname in dlltool; do
5213506e
RW
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14946$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14947 if test -x $with_build_time_tools/${ncn_progname}; then
14948 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14950$as_echo "yes" >&6; }
e8b05380
PB
14951 break
14952 else
5213506e
RW
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14954$as_echo "no" >&6; }
e8b05380
PB
14955 fi
14956 done
14957fi
14958
14959if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14960 for ncn_progname in dlltool; do
14961 if test -n "$ncn_target_tool_prefix"; then
14962 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14963set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14965$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14966if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14967 $as_echo_n "(cached) " >&6
4de997d1 14968else
e8b05380
PB
14969 if test -n "$DLLTOOL_FOR_TARGET"; then
14970 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14971else
1c710c3c
DJ
14972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14973for as_dir in $PATH
14974do
14975 IFS=$as_save_IFS
14976 test -z "$as_dir" && as_dir=.
5213506e 14977 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14979 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14981 break 2
14982 fi
14983done
5213506e
RW
14984 done
14985IFS=$as_save_IFS
1c710c3c 14986
4de997d1
PB
14987fi
14988fi
1c710c3c 14989DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14990if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14992$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14993else
5213506e
RW
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14995$as_echo "no" >&6; }
4de997d1 14996fi
4de997d1 14997
5213506e 14998
e8b05380
PB
14999 fi
15000 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
15001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15002set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15004$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15005if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 15006 $as_echo_n "(cached) " >&6
4de997d1 15007else
e8b05380
PB
15008 if test -n "$DLLTOOL_FOR_TARGET"; then
15009 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 15010else
1c710c3c
DJ
15011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15012for as_dir in $PATH
15013do
15014 IFS=$as_save_IFS
15015 test -z "$as_dir" && as_dir=.
5213506e 15016 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15018 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 15019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15020 break 2
15021 fi
15022done
5213506e
RW
15023 done
15024IFS=$as_save_IFS
1c710c3c 15025
4de997d1
PB
15026fi
15027fi
1c710c3c 15028DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 15029if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15031$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 15032else
5213506e
RW
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15034$as_echo "no" >&6; }
4de997d1 15035fi
1c710c3c 15036
5213506e 15037
e8b05380
PB
15038 fi
15039 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
15040 done
15041fi
1c710c3c 15042
e8b05380
PB
15043if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
15044 set dummy dlltool
15045 if test $build = $target ; then
15046 DLLTOOL_FOR_TARGET="$2"
15047 else
15048 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15049 fi
1c00b503
PB
15050else
15051 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
15052fi
15053
d1f8db0c
PB
15054else
15055 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
15056fi
15057
4de997d1 15058
e8b05380
PB
15059
15060
3b5e8ee4
IS
15061if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15062 if test -n "$with_build_time_tools"; then
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
15064$as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
15065 if test -x $with_build_time_tools/dsymutil; then
15066 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
15067 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
15069$as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
15070 else
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15072$as_echo "no" >&6; }
15073 fi
15074 elif test $build != $host && test $have_gcc_for_target = yes; then
15075 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
15076 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
15077 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15078 fi
15079fi
15080if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15081 # Extract the first word of "dsymutil", so it can be a program name with args.
15082set dummy dsymutil; ac_word=$2
15083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15084$as_echo_n "checking for $ac_word... " >&6; }
15085if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
15086 $as_echo_n "(cached) " >&6
15087else
15088 case $DSYMUTIL_FOR_TARGET in
15089 [\\/]* | ?:[\\/]*)
15090 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
15091 ;;
15092 *)
15093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15094for as_dir in $gcc_cv_tool_dirs
15095do
15096 IFS=$as_save_IFS
15097 test -z "$as_dir" && as_dir=.
15098 for ac_exec_ext in '' $ac_executable_extensions; do
15099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15100 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15102 break 2
15103 fi
15104done
15105 done
15106IFS=$as_save_IFS
15107
15108 ;;
15109esac
15110fi
15111DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15112if test -n "$DSYMUTIL_FOR_TARGET"; then
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15114$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15115else
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15117$as_echo "no" >&6; }
15118fi
15119
15120
15121fi
15122if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15123
15124
15125if test -n "$DSYMUTIL_FOR_TARGET"; then
15126 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15127elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15128 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15129fi
15130
15131if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15132 for ncn_progname in dsymutil; do
15133 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15134set dummy ${ncn_progname}; ac_word=$2
15135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15136$as_echo_n "checking for $ac_word... " >&6; }
15137if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15138 $as_echo_n "(cached) " >&6
15139else
15140 if test -n "$DSYMUTIL_FOR_TARGET"; then
15141 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15142else
15143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15144for as_dir in $PATH
15145do
15146 IFS=$as_save_IFS
15147 test -z "$as_dir" && as_dir=.
15148 for ac_exec_ext in '' $ac_executable_extensions; do
15149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15150 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15152 break 2
15153 fi
15154done
15155 done
15156IFS=$as_save_IFS
15157
15158fi
15159fi
15160DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15161if test -n "$DSYMUTIL_FOR_TARGET"; then
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15163$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15164else
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15166$as_echo "no" >&6; }
15167fi
15168
15169
15170 done
15171fi
15172
15173if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15174 for ncn_progname in dsymutil; do
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15176$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15177 if test -x $with_build_time_tools/${ncn_progname}; then
15178 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15180$as_echo "yes" >&6; }
15181 break
15182 else
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15184$as_echo "no" >&6; }
15185 fi
15186 done
15187fi
15188
15189if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15190 for ncn_progname in dsymutil; do
15191 if test -n "$ncn_target_tool_prefix"; then
15192 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15193set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15195$as_echo_n "checking for $ac_word... " >&6; }
15196if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15197 $as_echo_n "(cached) " >&6
15198else
15199 if test -n "$DSYMUTIL_FOR_TARGET"; then
15200 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15201else
15202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15203for as_dir in $PATH
15204do
15205 IFS=$as_save_IFS
15206 test -z "$as_dir" && as_dir=.
15207 for ac_exec_ext in '' $ac_executable_extensions; do
15208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15209 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15211 break 2
15212 fi
15213done
15214 done
15215IFS=$as_save_IFS
15216
15217fi
15218fi
15219DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15220if test -n "$DSYMUTIL_FOR_TARGET"; then
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15222$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15223else
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15225$as_echo "no" >&6; }
15226fi
15227
15228
15229 fi
15230 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
15231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15232set dummy ${ncn_progname}; ac_word=$2
15233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15234$as_echo_n "checking for $ac_word... " >&6; }
15235if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15236 $as_echo_n "(cached) " >&6
15237else
15238 if test -n "$DSYMUTIL_FOR_TARGET"; then
15239 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15240else
15241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15242for as_dir in $PATH
15243do
15244 IFS=$as_save_IFS
15245 test -z "$as_dir" && as_dir=.
15246 for ac_exec_ext in '' $ac_executable_extensions; do
15247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15248 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15250 break 2
15251 fi
15252done
15253 done
15254IFS=$as_save_IFS
15255
15256fi
15257fi
15258DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15259if test -n "$DSYMUTIL_FOR_TARGET"; then
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15261$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15262else
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15264$as_echo "no" >&6; }
15265fi
15266
15267
15268 fi
15269 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15270 done
15271fi
15272
15273if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15274 set dummy dsymutil
15275 if test $build = $target ; then
15276 DSYMUTIL_FOR_TARGET="$2"
15277 else
15278 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15279 fi
15280else
15281 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15282fi
15283
15284else
15285 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15286fi
15287
15288
15289
15290
e8b05380
PB
15291if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15292 if test -n "$with_build_time_tools"; then
5213506e
RW
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
15294$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15295 if test -x $with_build_time_tools/ld; then
15296 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15297 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
15299$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 15300 else
5213506e
RW
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15302$as_echo "no" >&6; }
d1f8db0c 15303 fi
e8b05380
PB
15304 elif test $build != $host && test $have_gcc_for_target = yes; then
15305 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
15306 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15307 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 15308 fi
e8b05380 15309fi
3e19841a 15310if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15311 # Extract the first word of "ld", so it can be a program name with args.
15312set dummy ld; ac_word=$2
5213506e
RW
15313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15314$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15315if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
5213506e 15316 $as_echo_n "(cached) " >&6
4de997d1 15317else
1c710c3c
DJ
15318 case $LD_FOR_TARGET in
15319 [\\/]* | ?:[\\/]*)
e8b05380
PB
15320 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15321 ;;
e8b05380 15322 *)
1c710c3c
DJ
15323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15324for as_dir in $gcc_cv_tool_dirs
15325do
15326 IFS=$as_save_IFS
15327 test -z "$as_dir" && as_dir=.
5213506e 15328 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15330 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15332 break 2
15333 fi
15334done
5213506e
RW
15335 done
15336IFS=$as_save_IFS
1c710c3c 15337
e8b05380
PB
15338 ;;
15339esac
4de997d1 15340fi
1c710c3c 15341LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 15342if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15344$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 15345else
5213506e
RW
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15347$as_echo "no" >&6; }
4de997d1 15348fi
2693c0b0 15349
5213506e 15350
e8b05380
PB
15351fi
15352if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
15353
15354
15355if test -n "$LD_FOR_TARGET"; then
15356 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15357elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15358 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15359fi
15360
15361if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15362 for ncn_progname in ld; do
15363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15364set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15366$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15367if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 15368 $as_echo_n "(cached) " >&6
278a7a38
AO
15369else
15370 if test -n "$LD_FOR_TARGET"; then
15371 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15372else
15373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15374for as_dir in $PATH
15375do
15376 IFS=$as_save_IFS
15377 test -z "$as_dir" && as_dir=.
5213506e 15378 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15380 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 15381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15382 break 2
15383 fi
15384done
5213506e
RW
15385 done
15386IFS=$as_save_IFS
278a7a38
AO
15387
15388fi
15389fi
15390LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15391if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15393$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 15394else
5213506e
RW
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15396$as_echo "no" >&6; }
278a7a38
AO
15397fi
15398
5213506e 15399
278a7a38
AO
15400 done
15401fi
15402
15403if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15404 for ncn_progname in ld; do
5213506e
RW
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15406$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15407 if test -x $with_build_time_tools/${ncn_progname}; then
15408 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15410$as_echo "yes" >&6; }
e8b05380
PB
15411 break
15412 else
5213506e
RW
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15414$as_echo "no" >&6; }
e8b05380
PB
15415 fi
15416 done
ca9f4b81
AO
15417fi
15418
e8b05380
PB
15419if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15420 for ncn_progname in ld; do
15421 if test -n "$ncn_target_tool_prefix"; then
15422 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15423set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15425$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15426if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 15427 $as_echo_n "(cached) " >&6
ca9f4b81 15428else
4de997d1
PB
15429 if test -n "$LD_FOR_TARGET"; then
15430 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 15431else
1c710c3c
DJ
15432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15433for as_dir in $PATH
15434do
15435 IFS=$as_save_IFS
15436 test -z "$as_dir" && as_dir=.
5213506e 15437 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15439 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15441 break 2
15442 fi
15443done
5213506e
RW
15444 done
15445IFS=$as_save_IFS
1c710c3c 15446
ca9f4b81
AO
15447fi
15448fi
1c710c3c 15449LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 15450if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15452$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 15453else
5213506e
RW
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15455$as_echo "no" >&6; }
ca9f4b81
AO
15456fi
15457
5213506e 15458
e8b05380
PB
15459 fi
15460 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15461 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 15462set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15464$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15465if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 15466 $as_echo_n "(cached) " >&6
ca9f4b81 15467else
2693c0b0
PB
15468 if test -n "$LD_FOR_TARGET"; then
15469 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 15470else
1c710c3c
DJ
15471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15472for as_dir in $PATH
15473do
15474 IFS=$as_save_IFS
15475 test -z "$as_dir" && as_dir=.
5213506e 15476 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15478 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 15479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15480 break 2
15481 fi
15482done
5213506e
RW
15483 done
15484IFS=$as_save_IFS
1c710c3c 15485
ca9f4b81
AO
15486fi
15487fi
1c710c3c 15488LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 15489if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15491$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 15492else
5213506e
RW
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15494$as_echo "no" >&6; }
ca9f4b81 15495fi
1c710c3c 15496
5213506e 15497
e8b05380
PB
15498 fi
15499 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15500 done
15501fi
1c710c3c 15502
2693c0b0
PB
15503if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15504 set dummy ld
15505 if test $build = $target ; then
15506 LD_FOR_TARGET="$2"
ca9f4b81 15507 else
2693c0b0 15508 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 15509 fi
1c00b503
PB
15510else
15511 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
15512fi
15513
d1f8db0c
PB
15514else
15515 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
15516fi
15517
15518
15519
15520
15521if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15522 if test -n "$with_build_time_tools"; then
5213506e
RW
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15524$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15525 if test -x $with_build_time_tools/lipo; then
15526 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15527 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15529$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 15530 else
5213506e
RW
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15532$as_echo "no" >&6; }
d1f8db0c 15533 fi
e8b05380
PB
15534 elif test $build != $host && test $have_gcc_for_target = yes; then
15535 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
15536 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15537 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
15538 fi
15539fi
278a7a38
AO
15540if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15541 # Extract the first word of "lipo", so it can be a program name with args.
15542set dummy lipo; ac_word=$2
5213506e
RW
15543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15544$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15545if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
5213506e 15546 $as_echo_n "(cached) " >&6
278a7a38
AO
15547else
15548 case $LIPO_FOR_TARGET in
15549 [\\/]* | ?:[\\/]*)
15550 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15551 ;;
15552 *)
15553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15554for as_dir in $gcc_cv_tool_dirs
15555do
15556 IFS=$as_save_IFS
15557 test -z "$as_dir" && as_dir=.
5213506e 15558 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15560 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15562 break 2
15563 fi
15564done
5213506e
RW
15565 done
15566IFS=$as_save_IFS
278a7a38
AO
15567
15568 ;;
15569esac
15570fi
15571LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 15572if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15574$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 15575else
5213506e
RW
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15577$as_echo "no" >&6; }
278a7a38
AO
15578fi
15579
5213506e 15580
278a7a38
AO
15581fi
15582if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15583
15584
15585if test -n "$LIPO_FOR_TARGET"; then
15586 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15587elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15588 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15589fi
15590
15591if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15592 for ncn_progname in lipo; do
15593 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15594set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15596$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15597if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15598 $as_echo_n "(cached) " >&6
e8b05380 15599else
278a7a38
AO
15600 if test -n "$LIPO_FOR_TARGET"; then
15601 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15602else
15603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15604for as_dir in $PATH
1c710c3c
DJ
15605do
15606 IFS=$as_save_IFS
15607 test -z "$as_dir" && as_dir=.
5213506e 15608 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15610 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 15611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15612 break 2
15613 fi
15614done
5213506e
RW
15615 done
15616IFS=$as_save_IFS
1c710c3c 15617
e8b05380 15618fi
278a7a38
AO
15619fi
15620LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 15621if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15623$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 15624else
5213506e
RW
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15626$as_echo "no" >&6; }
e8b05380
PB
15627fi
15628
5213506e 15629
278a7a38 15630 done
e8b05380 15631fi
278a7a38
AO
15632
15633if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15634 for ncn_progname in lipo; do
5213506e
RW
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15636$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15637 if test -x $with_build_time_tools/${ncn_progname}; then
15638 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15640$as_echo "yes" >&6; }
e8b05380
PB
15641 break
15642 else
5213506e
RW
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15644$as_echo "no" >&6; }
e8b05380
PB
15645 fi
15646 done
15647fi
15648
15649if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15650 for ncn_progname in lipo; do
15651 if test -n "$ncn_target_tool_prefix"; then
15652 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15653set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15655$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15656if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15657 $as_echo_n "(cached) " >&6
040b1c5a
GK
15658else
15659 if test -n "$LIPO_FOR_TARGET"; then
15660 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15661else
1c710c3c
DJ
15662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15663for as_dir in $PATH
15664do
15665 IFS=$as_save_IFS
15666 test -z "$as_dir" && as_dir=.
5213506e 15667 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15669 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15671 break 2
15672 fi
15673done
5213506e
RW
15674 done
15675IFS=$as_save_IFS
1c710c3c 15676
040b1c5a
GK
15677fi
15678fi
1c710c3c 15679LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 15680if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15682$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 15683else
5213506e
RW
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15685$as_echo "no" >&6; }
040b1c5a
GK
15686fi
15687
5213506e 15688
e8b05380
PB
15689 fi
15690 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 15692set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15694$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15695if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15696 $as_echo_n "(cached) " >&6
040b1c5a
GK
15697else
15698 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
15699 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15700else
1c710c3c
DJ
15701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15702for as_dir in $PATH
15703do
15704 IFS=$as_save_IFS
15705 test -z "$as_dir" && as_dir=.
5213506e 15706 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15708 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 15709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15710 break 2
15711 fi
15712done
5213506e
RW
15713 done
15714IFS=$as_save_IFS
1c710c3c 15715
040b1c5a
GK
15716fi
15717fi
1c710c3c 15718LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 15719if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15721$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 15722else
5213506e
RW
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15724$as_echo "no" >&6; }
040b1c5a 15725fi
1c710c3c 15726
5213506e 15727
e8b05380
PB
15728 fi
15729 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15730 done
15731fi
1c710c3c 15732
040b1c5a
GK
15733if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15734 set dummy lipo
15735 if test $build = $target ; then
15736 LIPO_FOR_TARGET="$2"
15737 else
15738 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15739 fi
1c00b503
PB
15740else
15741 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
15742fi
15743
d1f8db0c
PB
15744else
15745 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
15746fi
15747
15748
15749
15750
15751if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15752 if test -n "$with_build_time_tools"; then
5213506e
RW
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15754$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15755 if test -x $with_build_time_tools/nm; then
15756 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15757 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15759$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 15760 else
5213506e
RW
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15762$as_echo "no" >&6; }
d1f8db0c 15763 fi
e8b05380
PB
15764 elif test $build != $host && test $have_gcc_for_target = yes; then
15765 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
15766 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15767 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
15768 fi
15769fi
3e19841a 15770if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15771 # Extract the first word of "nm", so it can be a program name with args.
15772set dummy nm; ac_word=$2
5213506e
RW
15773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15774$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15775if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
5213506e 15776 $as_echo_n "(cached) " >&6
e8b05380 15777else
1c710c3c
DJ
15778 case $NM_FOR_TARGET in
15779 [\\/]* | ?:[\\/]*)
e8b05380
PB
15780 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15781 ;;
e8b05380 15782 *)
1c710c3c
DJ
15783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15784for as_dir in $gcc_cv_tool_dirs
15785do
15786 IFS=$as_save_IFS
15787 test -z "$as_dir" && as_dir=.
5213506e 15788 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15790 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15792 break 2
15793 fi
15794done
5213506e
RW
15795 done
15796IFS=$as_save_IFS
1c710c3c 15797
e8b05380
PB
15798 ;;
15799esac
15800fi
1c710c3c 15801NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 15802if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15804$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 15805else
5213506e
RW
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15807$as_echo "no" >&6; }
e8b05380
PB
15808fi
15809
5213506e 15810
e8b05380
PB
15811fi
15812if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
15813
15814
15815if test -n "$NM_FOR_TARGET"; then
15816 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15817elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15818 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15819fi
15820
15821if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15822 for ncn_progname in nm; do
15823 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15824set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15826$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15827if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15828 $as_echo_n "(cached) " >&6
278a7a38
AO
15829else
15830 if test -n "$NM_FOR_TARGET"; then
15831 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15832else
15833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15834for as_dir in $PATH
15835do
15836 IFS=$as_save_IFS
15837 test -z "$as_dir" && as_dir=.
5213506e 15838 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15840 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15842 break 2
15843 fi
15844done
5213506e
RW
15845 done
15846IFS=$as_save_IFS
278a7a38
AO
15847
15848fi
15849fi
15850NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15851if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15853$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 15854else
5213506e
RW
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15856$as_echo "no" >&6; }
278a7a38
AO
15857fi
15858
5213506e 15859
278a7a38
AO
15860 done
15861fi
15862
15863if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15864 for ncn_progname in nm; do
5213506e
RW
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15866$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15867 if test -x $with_build_time_tools/${ncn_progname}; then
15868 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15870$as_echo "yes" >&6; }
e8b05380
PB
15871 break
15872 else
5213506e
RW
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15874$as_echo "no" >&6; }
e8b05380
PB
15875 fi
15876 done
15877fi
15878
15879if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15880 for ncn_progname in nm; do
15881 if test -n "$ncn_target_tool_prefix"; then
15882 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 15883set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15885$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15886if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15887 $as_echo_n "(cached) " >&6
ca9f4b81 15888else
4de997d1
PB
15889 if test -n "$NM_FOR_TARGET"; then
15890 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15891else
1c710c3c
DJ
15892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15893for as_dir in $PATH
15894do
15895 IFS=$as_save_IFS
15896 test -z "$as_dir" && as_dir=.
5213506e 15897 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15899 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15901 break 2
15902 fi
15903done
5213506e
RW
15904 done
15905IFS=$as_save_IFS
1c710c3c 15906
ca9f4b81
AO
15907fi
15908fi
1c710c3c 15909NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 15910if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15912$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15913else
5213506e
RW
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15915$as_echo "no" >&6; }
ca9f4b81
AO
15916fi
15917
5213506e 15918
e8b05380
PB
15919 fi
15920 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 15922set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15924$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15925if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15926 $as_echo_n "(cached) " >&6
ca9f4b81 15927else
2693c0b0
PB
15928 if test -n "$NM_FOR_TARGET"; then
15929 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15930else
1c710c3c
DJ
15931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15932for as_dir in $PATH
15933do
15934 IFS=$as_save_IFS
15935 test -z "$as_dir" && as_dir=.
5213506e 15936 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15938 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15940 break 2
15941 fi
15942done
5213506e
RW
15943 done
15944IFS=$as_save_IFS
1c710c3c 15945
ca9f4b81
AO
15946fi
15947fi
1c710c3c 15948NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 15949if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15951$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15952else
5213506e
RW
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15954$as_echo "no" >&6; }
ca9f4b81 15955fi
1c710c3c 15956
5213506e 15957
e8b05380
PB
15958 fi
15959 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15960 done
15961fi
1c710c3c 15962
2693c0b0
PB
15963if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15964 set dummy nm
15965 if test $build = $target ; then
15966 NM_FOR_TARGET="$2"
ca9f4b81 15967 else
2693c0b0 15968 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 15969 fi
1c00b503
PB
15970else
15971 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
15972fi
15973
d1f8db0c
PB
15974else
15975 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
15976fi
15977
15978
15979
15980
9bccfdf5
AP
15981if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15982 if test -n "$with_build_time_tools"; then
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15984$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15985 if test -x $with_build_time_tools/objcopy; then
15986 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15987 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15989$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15990 else
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15992$as_echo "no" >&6; }
15993 fi
15994 elif test $build != $host && test $have_gcc_for_target = yes; then
15995 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15996 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15997 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15998 fi
15999fi
16000if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16001 # Extract the first word of "objcopy", so it can be a program name with args.
16002set dummy objcopy; ac_word=$2
16003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16004$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16005if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
16006 $as_echo_n "(cached) " >&6
16007else
16008 case $OBJCOPY_FOR_TARGET in
16009 [\\/]* | ?:[\\/]*)
16010 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
16011 ;;
16012 *)
16013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16014for as_dir in $gcc_cv_tool_dirs
16015do
16016 IFS=$as_save_IFS
16017 test -z "$as_dir" && as_dir=.
16018 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
16020 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16022 break 2
16023 fi
16024done
16025 done
16026IFS=$as_save_IFS
16027
16028 ;;
16029esac
16030fi
16031OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16032if test -n "$OBJCOPY_FOR_TARGET"; then
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16034$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16035else
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16037$as_echo "no" >&6; }
16038fi
16039
16040
16041fi
16042if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16043
16044
16045if test -n "$OBJCOPY_FOR_TARGET"; then
16046 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16047elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16048 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16049fi
16050
16051if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16052 for ncn_progname in objcopy; do
16053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16054set dummy ${ncn_progname}; ac_word=$2
16055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16056$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16057if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
16058 $as_echo_n "(cached) " >&6
16059else
16060 if test -n "$OBJCOPY_FOR_TARGET"; then
16061 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16062else
16063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16064for as_dir in $PATH
16065do
16066 IFS=$as_save_IFS
16067 test -z "$as_dir" && as_dir=.
16068 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
16070 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16072 break 2
16073 fi
16074done
16075 done
16076IFS=$as_save_IFS
16077
16078fi
16079fi
16080OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16081if test -n "$OBJCOPY_FOR_TARGET"; then
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16083$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16084else
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16086$as_echo "no" >&6; }
16087fi
16088
16089
16090 done
16091fi
16092
16093if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
16094 for ncn_progname in objcopy; do
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16096$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16097 if test -x $with_build_time_tools/${ncn_progname}; then
16098 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16100$as_echo "yes" >&6; }
16101 break
16102 else
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16104$as_echo "no" >&6; }
16105 fi
16106 done
16107fi
16108
16109if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16110 for ncn_progname in objcopy; do
16111 if test -n "$ncn_target_tool_prefix"; then
16112 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16113set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16115$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16116if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
16117 $as_echo_n "(cached) " >&6
16118else
16119 if test -n "$OBJCOPY_FOR_TARGET"; then
16120 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16121else
16122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16123for as_dir in $PATH
16124do
16125 IFS=$as_save_IFS
16126 test -z "$as_dir" && as_dir=.
16127 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
16129 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16131 break 2
16132 fi
16133done
16134 done
16135IFS=$as_save_IFS
16136
16137fi
16138fi
16139OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16140if test -n "$OBJCOPY_FOR_TARGET"; then
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16142$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16143else
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16145$as_echo "no" >&6; }
16146fi
16147
16148
16149 fi
16150 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
16151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16152set dummy ${ncn_progname}; ac_word=$2
16153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16154$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16155if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
16156 $as_echo_n "(cached) " >&6
16157else
16158 if test -n "$OBJCOPY_FOR_TARGET"; then
16159 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16160else
16161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16162for as_dir in $PATH
16163do
16164 IFS=$as_save_IFS
16165 test -z "$as_dir" && as_dir=.
16166 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
16168 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16170 break 2
16171 fi
16172done
16173 done
16174IFS=$as_save_IFS
16175
16176fi
16177fi
16178OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16179if test -n "$OBJCOPY_FOR_TARGET"; then
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16181$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16182else
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16184$as_echo "no" >&6; }
16185fi
16186
16187
16188 fi
16189 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
16190 done
16191fi
16192
16193if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
16194 set dummy objcopy
16195 if test $build = $target ; then
16196 OBJCOPY_FOR_TARGET="$2"
16197 else
16198 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
16199 fi
16200else
16201 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
16202fi
16203
16204else
16205 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16206fi
16207
16208
16209
16210
e8b05380
PB
16211if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16212 if test -n "$with_build_time_tools"; then
5213506e
RW
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
16214$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16215 if test -x $with_build_time_tools/objdump; then
16216 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
16217 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
16219$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 16220 else
5213506e
RW
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16222$as_echo "no" >&6; }
d1f8db0c 16223 fi
e8b05380
PB
16224 elif test $build != $host && test $have_gcc_for_target = yes; then
16225 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
16226 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
16227 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
16228 fi
16229fi
3e19841a 16230if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16231 # Extract the first word of "objdump", so it can be a program name with args.
16232set dummy objdump; ac_word=$2
5213506e
RW
16233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16234$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16235if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 16236 $as_echo_n "(cached) " >&6
e8b05380 16237else
1c710c3c
DJ
16238 case $OBJDUMP_FOR_TARGET in
16239 [\\/]* | ?:[\\/]*)
e8b05380
PB
16240 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16241 ;;
e8b05380 16242 *)
1c710c3c
DJ
16243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16244for as_dir in $gcc_cv_tool_dirs
16245do
16246 IFS=$as_save_IFS
16247 test -z "$as_dir" && as_dir=.
5213506e 16248 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16250 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16252 break 2
16253 fi
16254done
5213506e
RW
16255 done
16256IFS=$as_save_IFS
1c710c3c 16257
e8b05380
PB
16258 ;;
16259esac
16260fi
1c710c3c 16261OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 16262if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16264$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 16265else
5213506e
RW
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16267$as_echo "no" >&6; }
e8b05380
PB
16268fi
16269
5213506e 16270
e8b05380
PB
16271fi
16272if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
16273
16274
16275if test -n "$OBJDUMP_FOR_TARGET"; then
16276 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16277elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16278 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16279fi
16280
16281if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16282 for ncn_progname in objdump; do
16283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16284set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16286$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16287if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 16288 $as_echo_n "(cached) " >&6
278a7a38
AO
16289else
16290 if test -n "$OBJDUMP_FOR_TARGET"; then
16291 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16292else
16293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16294for as_dir in $PATH
16295do
16296 IFS=$as_save_IFS
16297 test -z "$as_dir" && as_dir=.
5213506e 16298 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16300 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 16301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16302 break 2
16303 fi
16304done
5213506e
RW
16305 done
16306IFS=$as_save_IFS
278a7a38
AO
16307
16308fi
16309fi
16310OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16311if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16313$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 16314else
5213506e
RW
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16316$as_echo "no" >&6; }
278a7a38
AO
16317fi
16318
5213506e 16319
278a7a38
AO
16320 done
16321fi
16322
16323if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16324 for ncn_progname in objdump; do
5213506e
RW
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16326$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16327 if test -x $with_build_time_tools/${ncn_progname}; then
16328 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16330$as_echo "yes" >&6; }
e8b05380
PB
16331 break
16332 else
5213506e
RW
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16334$as_echo "no" >&6; }
e8b05380
PB
16335 fi
16336 done
16337fi
16338
16339if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16340 for ncn_progname in objdump; do
16341 if test -n "$ncn_target_tool_prefix"; then
16342 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 16343set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16345$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16346if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 16347 $as_echo_n "(cached) " >&6
d739199a
DJ
16348else
16349 if test -n "$OBJDUMP_FOR_TARGET"; then
16350 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16351else
1c710c3c
DJ
16352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16353for as_dir in $PATH
16354do
16355 IFS=$as_save_IFS
16356 test -z "$as_dir" && as_dir=.
5213506e 16357 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16359 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16361 break 2
16362 fi
16363done
5213506e
RW
16364 done
16365IFS=$as_save_IFS
1c710c3c 16366
d739199a
DJ
16367fi
16368fi
1c710c3c 16369OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 16370if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16372$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 16373else
5213506e
RW
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16375$as_echo "no" >&6; }
d739199a
DJ
16376fi
16377
5213506e 16378
e8b05380
PB
16379 fi
16380 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16381 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 16382set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16384$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16385if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 16386 $as_echo_n "(cached) " >&6
d739199a
DJ
16387else
16388 if test -n "$OBJDUMP_FOR_TARGET"; then
16389 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16390else
1c710c3c
DJ
16391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16392for as_dir in $PATH
16393do
16394 IFS=$as_save_IFS
16395 test -z "$as_dir" && as_dir=.
5213506e 16396 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16398 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 16399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16400 break 2
16401 fi
16402done
5213506e
RW
16403 done
16404IFS=$as_save_IFS
1c710c3c 16405
d739199a
DJ
16406fi
16407fi
1c710c3c 16408OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 16409if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16411$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 16412else
5213506e
RW
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16414$as_echo "no" >&6; }
d739199a 16415fi
1c710c3c 16416
5213506e 16417
e8b05380
PB
16418 fi
16419 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16420 done
16421fi
1c710c3c 16422
d739199a
DJ
16423if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16424 set dummy objdump
16425 if test $build = $target ; then
16426 OBJDUMP_FOR_TARGET="$2"
16427 else
16428 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16429 fi
1c00b503
PB
16430else
16431 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
16432fi
16433
d1f8db0c
PB
16434else
16435 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
16436fi
16437
16438
16439
16440
e4a9a572
IS
16441if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16442 if test -n "$with_build_time_tools"; then
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16444$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16445 if test -x $with_build_time_tools/otool; then
16446 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16447 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16449$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16450 else
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16452$as_echo "no" >&6; }
16453 fi
16454 elif test $build != $host && test $have_gcc_for_target = yes; then
16455 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16456 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16457 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16458 fi
16459fi
16460if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16461 # Extract the first word of "otool", so it can be a program name with args.
16462set dummy otool; ac_word=$2
16463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16464$as_echo_n "checking for $ac_word... " >&6; }
16465if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16466 $as_echo_n "(cached) " >&6
16467else
16468 case $OTOOL_FOR_TARGET in
16469 [\\/]* | ?:[\\/]*)
16470 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16471 ;;
16472 *)
16473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16474for as_dir in $gcc_cv_tool_dirs
16475do
16476 IFS=$as_save_IFS
16477 test -z "$as_dir" && as_dir=.
16478 for ac_exec_ext in '' $ac_executable_extensions; do
16479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16480 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16482 break 2
16483 fi
16484done
16485 done
16486IFS=$as_save_IFS
16487
16488 ;;
16489esac
16490fi
16491OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16492if test -n "$OTOOL_FOR_TARGET"; then
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16494$as_echo "$OTOOL_FOR_TARGET" >&6; }
16495else
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16497$as_echo "no" >&6; }
16498fi
16499
16500
16501fi
16502if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16503
16504
16505if test -n "$OTOOL_FOR_TARGET"; then
16506 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16507elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16508 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16509fi
16510
16511if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16512 for ncn_progname in otool; do
16513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16514set dummy ${ncn_progname}; ac_word=$2
16515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16516$as_echo_n "checking for $ac_word... " >&6; }
16517if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16518 $as_echo_n "(cached) " >&6
16519else
16520 if test -n "$OTOOL_FOR_TARGET"; then
16521 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16522else
16523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16524for as_dir in $PATH
16525do
16526 IFS=$as_save_IFS
16527 test -z "$as_dir" && as_dir=.
16528 for ac_exec_ext in '' $ac_executable_extensions; do
16529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16530 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16532 break 2
16533 fi
16534done
16535 done
16536IFS=$as_save_IFS
16537
16538fi
16539fi
16540OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16541if test -n "$OTOOL_FOR_TARGET"; then
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16543$as_echo "$OTOOL_FOR_TARGET" >&6; }
16544else
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16546$as_echo "no" >&6; }
16547fi
16548
16549
16550 done
16551fi
16552
16553if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16554 for ncn_progname in otool; do
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16556$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16557 if test -x $with_build_time_tools/${ncn_progname}; then
16558 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16560$as_echo "yes" >&6; }
16561 break
16562 else
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16564$as_echo "no" >&6; }
16565 fi
16566 done
16567fi
16568
16569if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16570 for ncn_progname in otool; do
16571 if test -n "$ncn_target_tool_prefix"; then
16572 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16573set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16575$as_echo_n "checking for $ac_word... " >&6; }
16576if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16577 $as_echo_n "(cached) " >&6
16578else
16579 if test -n "$OTOOL_FOR_TARGET"; then
16580 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16581else
16582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16583for as_dir in $PATH
16584do
16585 IFS=$as_save_IFS
16586 test -z "$as_dir" && as_dir=.
16587 for ac_exec_ext in '' $ac_executable_extensions; do
16588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16589 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16591 break 2
16592 fi
16593done
16594 done
16595IFS=$as_save_IFS
16596
16597fi
16598fi
16599OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16600if test -n "$OTOOL_FOR_TARGET"; then
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16602$as_echo "$OTOOL_FOR_TARGET" >&6; }
16603else
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16605$as_echo "no" >&6; }
16606fi
16607
16608
16609 fi
16610 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16612set dummy ${ncn_progname}; ac_word=$2
16613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16614$as_echo_n "checking for $ac_word... " >&6; }
16615if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16616 $as_echo_n "(cached) " >&6
16617else
16618 if test -n "$OTOOL_FOR_TARGET"; then
16619 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16620else
16621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16622for as_dir in $PATH
16623do
16624 IFS=$as_save_IFS
16625 test -z "$as_dir" && as_dir=.
16626 for ac_exec_ext in '' $ac_executable_extensions; do
16627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16628 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16630 break 2
16631 fi
16632done
16633 done
16634IFS=$as_save_IFS
16635
16636fi
16637fi
16638OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16639if test -n "$OTOOL_FOR_TARGET"; then
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16641$as_echo "$OTOOL_FOR_TARGET" >&6; }
16642else
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16644$as_echo "no" >&6; }
16645fi
16646
16647
16648 fi
16649 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16650 done
16651fi
16652
16653if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16654 set dummy otool
16655 if test $build = $target ; then
16656 OTOOL_FOR_TARGET="$2"
16657 else
16658 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16659 fi
16660else
16661 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16662fi
16663
16664else
16665 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16666fi
16667
16668
16669
16670
e8b05380
PB
16671if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16672 if test -n "$with_build_time_tools"; then
5213506e
RW
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16674$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16675 if test -x $with_build_time_tools/ranlib; then
16676 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16677 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16679$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 16680 else
5213506e
RW
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16682$as_echo "no" >&6; }
d1f8db0c 16683 fi
e8b05380
PB
16684 elif test $build != $host && test $have_gcc_for_target = yes; then
16685 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
16686 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16687 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
16688 fi
16689fi
3e19841a 16690if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16691 # Extract the first word of "ranlib", so it can be a program name with args.
16692set dummy ranlib; ac_word=$2
5213506e
RW
16693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16694$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16695if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
5213506e 16696 $as_echo_n "(cached) " >&6
e8b05380 16697else
1c710c3c
DJ
16698 case $RANLIB_FOR_TARGET in
16699 [\\/]* | ?:[\\/]*)
e8b05380
PB
16700 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16701 ;;
e8b05380 16702 *)
1c710c3c
DJ
16703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16704for as_dir in $gcc_cv_tool_dirs
16705do
16706 IFS=$as_save_IFS
16707 test -z "$as_dir" && as_dir=.
5213506e 16708 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16710 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16712 break 2
16713 fi
16714done
5213506e
RW
16715 done
16716IFS=$as_save_IFS
1c710c3c 16717
e8b05380
PB
16718 ;;
16719esac
16720fi
1c710c3c 16721RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 16722if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16724$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 16725else
5213506e
RW
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16727$as_echo "no" >&6; }
e8b05380
PB
16728fi
16729
5213506e 16730
e8b05380
PB
16731fi
16732if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
16733
16734
16735if test -n "$RANLIB_FOR_TARGET"; then
16736 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16737elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16738 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16739fi
16740
16741if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16742 for ncn_progname in ranlib; do
16743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16744set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16746$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16747if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16748 $as_echo_n "(cached) " >&6
278a7a38
AO
16749else
16750 if test -n "$RANLIB_FOR_TARGET"; then
16751 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16752else
16753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16754for as_dir in $PATH
16755do
16756 IFS=$as_save_IFS
16757 test -z "$as_dir" && as_dir=.
5213506e 16758 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16760 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 16761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16762 break 2
16763 fi
16764done
5213506e
RW
16765 done
16766IFS=$as_save_IFS
278a7a38
AO
16767
16768fi
16769fi
16770RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16771if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16773$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 16774else
5213506e
RW
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16776$as_echo "no" >&6; }
278a7a38
AO
16777fi
16778
5213506e 16779
278a7a38
AO
16780 done
16781fi
16782
16783if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16784 for ncn_progname in ranlib; do
5213506e
RW
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16786$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16787 if test -x $with_build_time_tools/${ncn_progname}; then
16788 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16790$as_echo "yes" >&6; }
e8b05380
PB
16791 break
16792 else
5213506e
RW
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16794$as_echo "no" >&6; }
e8b05380
PB
16795 fi
16796 done
16797fi
16798
16799if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16800 for ncn_progname in ranlib; do
16801 if test -n "$ncn_target_tool_prefix"; then
16802 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 16803set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16805$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16806if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16807 $as_echo_n "(cached) " >&6
ca9f4b81 16808else
4de997d1
PB
16809 if test -n "$RANLIB_FOR_TARGET"; then
16810 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16811else
1c710c3c
DJ
16812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16813for as_dir in $PATH
16814do
16815 IFS=$as_save_IFS
16816 test -z "$as_dir" && as_dir=.
5213506e 16817 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16819 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16821 break 2
16822 fi
16823done
5213506e
RW
16824 done
16825IFS=$as_save_IFS
1c710c3c 16826
ca9f4b81
AO
16827fi
16828fi
1c710c3c 16829RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 16830if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16832$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16833else
5213506e
RW
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16835$as_echo "no" >&6; }
ca9f4b81
AO
16836fi
16837
5213506e 16838
e8b05380
PB
16839 fi
16840 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 16842set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16844$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16845if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16846 $as_echo_n "(cached) " >&6
ca9f4b81 16847else
2693c0b0
PB
16848 if test -n "$RANLIB_FOR_TARGET"; then
16849 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16850else
1c710c3c
DJ
16851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16852for as_dir in $PATH
16853do
16854 IFS=$as_save_IFS
16855 test -z "$as_dir" && as_dir=.
5213506e 16856 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16858 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 16859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16860 break 2
16861 fi
16862done
5213506e
RW
16863 done
16864IFS=$as_save_IFS
1c710c3c 16865
ca9f4b81
AO
16866fi
16867fi
1c710c3c 16868RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 16869if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16871$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16872else
5213506e
RW
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16874$as_echo "no" >&6; }
ca9f4b81 16875fi
1c710c3c 16876
5213506e 16877
e8b05380
PB
16878 fi
16879 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16880 done
16881fi
1c710c3c 16882
e8b05380
PB
16883if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16884 set dummy ranlib
16885 if test $build = $target ; then
16886 RANLIB_FOR_TARGET="$2"
16887 else
16888 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 16889 fi
1c00b503
PB
16890else
16891 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 16892fi
2693c0b0 16893
d1f8db0c
PB
16894else
16895 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
16896fi
16897
e8b05380
PB
16898
16899
16900
e7a82751
RM
16901if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16902 if test -n "$with_build_time_tools"; then
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16904$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16905 if test -x $with_build_time_tools/readelf; then
16906 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16907 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16909$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16910 else
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16912$as_echo "no" >&6; }
16913 fi
16914 elif test $build != $host && test $have_gcc_for_target = yes; then
16915 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16916 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16917 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16918 fi
16919fi
16920if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16921 # Extract the first word of "readelf", so it can be a program name with args.
16922set dummy readelf; ac_word=$2
16923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16924$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16925if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16926 $as_echo_n "(cached) " >&6
16927else
16928 case $READELF_FOR_TARGET in
16929 [\\/]* | ?:[\\/]*)
16930 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16931 ;;
16932 *)
16933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16934for as_dir in $gcc_cv_tool_dirs
16935do
16936 IFS=$as_save_IFS
16937 test -z "$as_dir" && as_dir=.
16938 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16940 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16942 break 2
16943 fi
16944done
16945 done
16946IFS=$as_save_IFS
16947
16948 ;;
16949esac
16950fi
16951READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16952if test -n "$READELF_FOR_TARGET"; then
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16954$as_echo "$READELF_FOR_TARGET" >&6; }
16955else
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16957$as_echo "no" >&6; }
16958fi
16959
16960
16961fi
16962if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16963
16964
16965if test -n "$READELF_FOR_TARGET"; then
16966 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16967elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16968 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16969fi
16970
16971if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16972 for ncn_progname in readelf; do
16973 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16974set dummy ${ncn_progname}; ac_word=$2
16975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16976$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16977if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16978 $as_echo_n "(cached) " >&6
16979else
16980 if test -n "$READELF_FOR_TARGET"; then
16981 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16982else
16983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16984for as_dir in $PATH
16985do
16986 IFS=$as_save_IFS
16987 test -z "$as_dir" && as_dir=.
16988 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16990 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16992 break 2
16993 fi
16994done
16995 done
16996IFS=$as_save_IFS
16997
16998fi
16999fi
17000READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17001if test -n "$READELF_FOR_TARGET"; then
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17003$as_echo "$READELF_FOR_TARGET" >&6; }
17004else
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17006$as_echo "no" >&6; }
17007fi
17008
17009
17010 done
17011fi
17012
17013if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
17014 for ncn_progname in readelf; do
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17016$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17017 if test -x $with_build_time_tools/${ncn_progname}; then
17018 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17020$as_echo "yes" >&6; }
17021 break
17022 else
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17024$as_echo "no" >&6; }
17025 fi
17026 done
17027fi
17028
17029if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
17030 for ncn_progname in readelf; do
17031 if test -n "$ncn_target_tool_prefix"; then
17032 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17033set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17035$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17036if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
17037 $as_echo_n "(cached) " >&6
17038else
17039 if test -n "$READELF_FOR_TARGET"; then
17040 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17041else
17042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17043for as_dir in $PATH
17044do
17045 IFS=$as_save_IFS
17046 test -z "$as_dir" && as_dir=.
17047 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
17049 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17051 break 2
17052 fi
17053done
17054 done
17055IFS=$as_save_IFS
17056
17057fi
17058fi
17059READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17060if test -n "$READELF_FOR_TARGET"; then
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17062$as_echo "$READELF_FOR_TARGET" >&6; }
17063else
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17065$as_echo "no" >&6; }
17066fi
17067
17068
17069 fi
17070 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
17071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17072set dummy ${ncn_progname}; ac_word=$2
17073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17074$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17075if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
17076 $as_echo_n "(cached) " >&6
17077else
17078 if test -n "$READELF_FOR_TARGET"; then
17079 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17080else
17081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17082for as_dir in $PATH
17083do
17084 IFS=$as_save_IFS
17085 test -z "$as_dir" && as_dir=.
17086 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
17088 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17090 break 2
17091 fi
17092done
17093 done
17094IFS=$as_save_IFS
17095
17096fi
17097fi
17098READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17099if test -n "$READELF_FOR_TARGET"; then
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17101$as_echo "$READELF_FOR_TARGET" >&6; }
17102else
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17104$as_echo "no" >&6; }
17105fi
17106
17107
17108 fi
17109 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
17110 done
17111fi
17112
17113if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
17114 set dummy readelf
17115 if test $build = $target ; then
17116 READELF_FOR_TARGET="$2"
17117 else
17118 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
17119 fi
17120else
17121 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
17122fi
17123
17124else
17125 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17126fi
17127
17128
17129
17130
e8b05380
PB
17131if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17132 if test -n "$with_build_time_tools"; then
5213506e
RW
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
17134$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
17135 if test -x $with_build_time_tools/strip; then
17136 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
17137 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
17139$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 17140 else
5213506e
RW
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17142$as_echo "no" >&6; }
d1f8db0c 17143 fi
e8b05380
PB
17144 elif test $build != $host && test $have_gcc_for_target = yes; then
17145 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
17146 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
17147 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
17148 fi
17149fi
3e19841a 17150if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
17151 # Extract the first word of "strip", so it can be a program name with args.
17152set dummy strip; ac_word=$2
5213506e
RW
17153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17154$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17155if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
5213506e 17156 $as_echo_n "(cached) " >&6
e8b05380 17157else
1c710c3c
DJ
17158 case $STRIP_FOR_TARGET in
17159 [\\/]* | ?:[\\/]*)
e8b05380
PB
17160 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
17161 ;;
e8b05380 17162 *)
1c710c3c
DJ
17163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17164for as_dir in $gcc_cv_tool_dirs
17165do
17166 IFS=$as_save_IFS
17167 test -z "$as_dir" && as_dir=.
5213506e 17168 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17170 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 17171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17172 break 2
17173 fi
17174done
5213506e
RW
17175 done
17176IFS=$as_save_IFS
1c710c3c 17177
e8b05380
PB
17178 ;;
17179esac
17180fi
1c710c3c 17181STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 17182if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17184$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 17185else
5213506e
RW
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17187$as_echo "no" >&6; }
e8b05380
PB
17188fi
17189
5213506e 17190
e8b05380
PB
17191fi
17192if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
17193
17194
17195if test -n "$STRIP_FOR_TARGET"; then
17196 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17197elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17198 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17199fi
17200
17201if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17202 for ncn_progname in strip; do
17203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17204set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17206$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17207if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 17208 $as_echo_n "(cached) " >&6
278a7a38
AO
17209else
17210 if test -n "$STRIP_FOR_TARGET"; then
17211 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17212else
17213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17214for as_dir in $PATH
17215do
17216 IFS=$as_save_IFS
17217 test -z "$as_dir" && as_dir=.
5213506e 17218 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 17220 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 17221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
17222 break 2
17223 fi
17224done
5213506e
RW
17225 done
17226IFS=$as_save_IFS
278a7a38
AO
17227
17228fi
17229fi
17230STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17231if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17233$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 17234else
5213506e
RW
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17236$as_echo "no" >&6; }
278a7a38
AO
17237fi
17238
5213506e 17239
278a7a38
AO
17240 done
17241fi
17242
17243if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 17244 for ncn_progname in strip; do
5213506e
RW
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17246$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
17247 if test -x $with_build_time_tools/${ncn_progname}; then
17248 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17250$as_echo "yes" >&6; }
e8b05380
PB
17251 break
17252 else
5213506e
RW
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17254$as_echo "no" >&6; }
e8b05380
PB
17255 fi
17256 done
17257fi
17258
17259if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17260 for ncn_progname in strip; do
17261 if test -n "$ncn_target_tool_prefix"; then
17262 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 17263set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
17264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17265$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17266if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 17267 $as_echo_n "(cached) " >&6
af71363e
AS
17268else
17269 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
17270 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17271else
17272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17273for as_dir in $PATH
17274do
17275 IFS=$as_save_IFS
17276 test -z "$as_dir" && as_dir=.
5213506e 17277 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17279 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 17280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17281 break 2
17282 fi
17283done
5213506e
RW
17284 done
17285IFS=$as_save_IFS
1c710c3c 17286
040b1c5a
GK
17287fi
17288fi
1c710c3c 17289STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 17290if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17292$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 17293else
5213506e
RW
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17295$as_echo "no" >&6; }
040b1c5a
GK
17296fi
17297
5213506e 17298
e8b05380
PB
17299 fi
17300 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 17302set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17304$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17305if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 17306 $as_echo_n "(cached) " >&6
040b1c5a
GK
17307else
17308 if test -n "$STRIP_FOR_TARGET"; then
17309 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17310else
1c710c3c
DJ
17311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17312for as_dir in $PATH
17313do
17314 IFS=$as_save_IFS
17315 test -z "$as_dir" && as_dir=.
5213506e 17316 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17318 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 17319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17320 break 2
17321 fi
17322done
5213506e
RW
17323 done
17324IFS=$as_save_IFS
1c710c3c 17325
040b1c5a
GK
17326fi
17327fi
1c710c3c 17328STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 17329if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17331$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 17332else
5213506e
RW
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17334$as_echo "no" >&6; }
040b1c5a 17335fi
1c710c3c 17336
5213506e 17337
e8b05380
PB
17338 fi
17339 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17340 done
17341fi
1c710c3c 17342
040b1c5a
GK
17343if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17344 set dummy strip
17345 if test $build = $target ; then
17346 STRIP_FOR_TARGET="$2"
17347 else
17348 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17349 fi
1c00b503
PB
17350else
17351 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
17352fi
17353
d1f8db0c
PB
17354else
17355 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
17356fi
17357
17358
17359
17360
17361if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17362 if test -n "$with_build_time_tools"; then
5213506e
RW
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17364$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
17365 if test -x $with_build_time_tools/windres; then
17366 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17367 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17369$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 17370 else
5213506e
RW
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17372$as_echo "no" >&6; }
d1f8db0c 17373 fi
e8b05380
PB
17374 elif test $build != $host && test $have_gcc_for_target = yes; then
17375 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
17376 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17377 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
17378 fi
17379fi
3e19841a 17380if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
17381 # Extract the first word of "windres", so it can be a program name with args.
17382set dummy windres; ac_word=$2
5213506e
RW
17383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17384$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17385if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
5213506e 17386 $as_echo_n "(cached) " >&6
e8b05380 17387else
1c710c3c
DJ
17388 case $WINDRES_FOR_TARGET in
17389 [\\/]* | ?:[\\/]*)
e8b05380
PB
17390 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17391 ;;
e8b05380 17392 *)
1c710c3c
DJ
17393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17394for as_dir in $gcc_cv_tool_dirs
17395do
17396 IFS=$as_save_IFS
17397 test -z "$as_dir" && as_dir=.
5213506e 17398 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17400 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 17401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17402 break 2
17403 fi
17404done
5213506e
RW
17405 done
17406IFS=$as_save_IFS
1c710c3c 17407
e8b05380
PB
17408 ;;
17409esac
17410fi
1c710c3c 17411WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 17412if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17414$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 17415else
5213506e
RW
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17417$as_echo "no" >&6; }
e8b05380
PB
17418fi
17419
5213506e 17420
e8b05380
PB
17421fi
17422if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
17423
17424
17425if test -n "$WINDRES_FOR_TARGET"; then
17426 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17427elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17428 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17429fi
17430
17431if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17432 for ncn_progname in windres; do
17433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17434set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17436$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17437if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 17438 $as_echo_n "(cached) " >&6
278a7a38
AO
17439else
17440 if test -n "$WINDRES_FOR_TARGET"; then
17441 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17442else
17443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17444for as_dir in $PATH
17445do
17446 IFS=$as_save_IFS
17447 test -z "$as_dir" && as_dir=.
5213506e 17448 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 17450 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 17451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
17452 break 2
17453 fi
17454done
5213506e
RW
17455 done
17456IFS=$as_save_IFS
278a7a38
AO
17457
17458fi
17459fi
17460WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17461if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17463$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 17464else
5213506e
RW
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17466$as_echo "no" >&6; }
278a7a38
AO
17467fi
17468
5213506e 17469
278a7a38
AO
17470 done
17471fi
17472
17473if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 17474 for ncn_progname in windres; do
5213506e
RW
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17476$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
17477 if test -x $with_build_time_tools/${ncn_progname}; then
17478 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17480$as_echo "yes" >&6; }
e8b05380
PB
17481 break
17482 else
5213506e
RW
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17484$as_echo "no" >&6; }
e8b05380
PB
17485 fi
17486 done
17487fi
17488
17489if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17490 for ncn_progname in windres; do
17491 if test -n "$ncn_target_tool_prefix"; then
17492 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 17493set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
17494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17495$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17496if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 17497 $as_echo_n "(cached) " >&6
ca9f4b81 17498else
4de997d1
PB
17499 if test -n "$WINDRES_FOR_TARGET"; then
17500 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 17501else
1c710c3c
DJ
17502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17503for as_dir in $PATH
17504do
17505 IFS=$as_save_IFS
17506 test -z "$as_dir" && as_dir=.
5213506e 17507 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17509 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 17510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17511 break 2
17512 fi
17513done
5213506e
RW
17514 done
17515IFS=$as_save_IFS
1c710c3c 17516
ca9f4b81
AO
17517fi
17518fi
1c710c3c 17519WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 17520if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17522$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 17523else
5213506e
RW
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17525$as_echo "no" >&6; }
ca9f4b81
AO
17526fi
17527
5213506e 17528
e8b05380
PB
17529 fi
17530 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17531 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 17532set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17534$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17535if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 17536 $as_echo_n "(cached) " >&6
ca9f4b81 17537else
2693c0b0
PB
17538 if test -n "$WINDRES_FOR_TARGET"; then
17539 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 17540else
1c710c3c
DJ
17541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17542for as_dir in $PATH
17543do
17544 IFS=$as_save_IFS
17545 test -z "$as_dir" && as_dir=.
5213506e 17546 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17548 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 17549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17550 break 2
17551 fi
17552done
5213506e
RW
17553 done
17554IFS=$as_save_IFS
1c710c3c 17555
ca9f4b81
AO
17556fi
17557fi
1c710c3c 17558WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 17559if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17561$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 17562else
5213506e
RW
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17564$as_echo "no" >&6; }
ca9f4b81 17565fi
1c710c3c 17566
5213506e 17567
e8b05380
PB
17568 fi
17569 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17570 done
17571fi
1c710c3c 17572
2693c0b0
PB
17573if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17574 set dummy windres
17575 if test $build = $target ; then
17576 WINDRES_FOR_TARGET="$2"
ca9f4b81 17577 else
2693c0b0 17578 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 17579 fi
1c00b503
PB
17580else
17581 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
17582fi
17583
d1f8db0c
PB
17584else
17585 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
17586fi
17587
4977bab6 17588
901119ae
KT
17589
17590
17591if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17592 if test -n "$with_build_time_tools"; then
5213506e
RW
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17594$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
17595 if test -x $with_build_time_tools/windmc; then
17596 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17597 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17599$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 17600 else
5213506e
RW
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17602$as_echo "no" >&6; }
901119ae
KT
17603 fi
17604 elif test $build != $host && test $have_gcc_for_target = yes; then
17605 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
17606 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17607 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
17608 fi
17609fi
17610if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17611 # Extract the first word of "windmc", so it can be a program name with args.
17612set dummy windmc; ac_word=$2
5213506e
RW
17613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17614$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17615if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
5213506e 17616 $as_echo_n "(cached) " >&6
901119ae
KT
17617else
17618 case $WINDMC_FOR_TARGET in
17619 [\\/]* | ?:[\\/]*)
17620 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17621 ;;
17622 *)
17623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17624for as_dir in $gcc_cv_tool_dirs
17625do
17626 IFS=$as_save_IFS
17627 test -z "$as_dir" && as_dir=.
5213506e 17628 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17630 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 17631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17632 break 2
17633 fi
17634done
5213506e
RW
17635 done
17636IFS=$as_save_IFS
901119ae
KT
17637
17638 ;;
17639esac
17640fi
17641WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 17642if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17644$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17645else
5213506e
RW
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17647$as_echo "no" >&6; }
901119ae
KT
17648fi
17649
5213506e 17650
901119ae
KT
17651fi
17652if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17653
17654
17655if test -n "$WINDMC_FOR_TARGET"; then
17656 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17657elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17658 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17659fi
17660
17661if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17662 for ncn_progname in windmc; do
17663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17664set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17666$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17667if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17668 $as_echo_n "(cached) " >&6
901119ae
KT
17669else
17670 if test -n "$WINDMC_FOR_TARGET"; then
17671 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17672else
17673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17674for as_dir in $PATH
17675do
17676 IFS=$as_save_IFS
17677 test -z "$as_dir" && as_dir=.
5213506e 17678 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17680 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 17681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17682 break 2
17683 fi
17684done
5213506e
RW
17685 done
17686IFS=$as_save_IFS
901119ae
KT
17687
17688fi
17689fi
17690WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17691if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17693$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17694else
5213506e
RW
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17696$as_echo "no" >&6; }
901119ae
KT
17697fi
17698
5213506e 17699
901119ae
KT
17700 done
17701fi
17702
17703if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17704 for ncn_progname in windmc; do
5213506e
RW
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17706$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
17707 if test -x $with_build_time_tools/${ncn_progname}; then
17708 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17710$as_echo "yes" >&6; }
901119ae
KT
17711 break
17712 else
5213506e
RW
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17714$as_echo "no" >&6; }
901119ae
KT
17715 fi
17716 done
17717fi
17718
17719if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17720 for ncn_progname in windmc; do
17721 if test -n "$ncn_target_tool_prefix"; then
17722 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17723set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
17724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17725$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17726if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17727 $as_echo_n "(cached) " >&6
901119ae
KT
17728else
17729 if test -n "$WINDMC_FOR_TARGET"; then
17730 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17731else
17732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17733for as_dir in $PATH
17734do
17735 IFS=$as_save_IFS
17736 test -z "$as_dir" && as_dir=.
5213506e 17737 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17739 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 17740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17741 break 2
17742 fi
17743done
5213506e
RW
17744 done
17745IFS=$as_save_IFS
901119ae
KT
17746
17747fi
17748fi
17749WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17750if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17752$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17753else
5213506e
RW
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17755$as_echo "no" >&6; }
901119ae
KT
17756fi
17757
5213506e 17758
901119ae
KT
17759 fi
17760 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17761 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17762set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17764$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17765if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17766 $as_echo_n "(cached) " >&6
901119ae
KT
17767else
17768 if test -n "$WINDMC_FOR_TARGET"; then
17769 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17770else
17771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17772for as_dir in $PATH
17773do
17774 IFS=$as_save_IFS
17775 test -z "$as_dir" && as_dir=.
5213506e 17776 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17778 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 17779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17780 break 2
17781 fi
17782done
5213506e
RW
17783 done
17784IFS=$as_save_IFS
901119ae
KT
17785
17786fi
17787fi
17788WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17789if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17791$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17792else
5213506e
RW
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17794$as_echo "no" >&6; }
901119ae
KT
17795fi
17796
5213506e 17797
901119ae
KT
17798 fi
17799 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17800 done
17801fi
17802
17803if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17804 set dummy windmc
17805 if test $build = $target ; then
17806 WINDMC_FOR_TARGET="$2"
17807 else
17808 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17809 fi
1c00b503
PB
17810else
17811 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
17812fi
17813
17814else
17815 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17816fi
17817
17818
2abefe3d
PB
17819RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17820
5213506e
RW
17821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17822$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 17823if test "x${build}" != "x${host}" ; then
e8b05380
PB
17824 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17825 # We already found the complete path
172e41aa 17826 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17828$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17829 else
17830 # Canadian cross, just use what we found
5213506e
RW
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17832$as_echo "pre-installed" >&6; }
e8b05380 17833 fi
2abefe3d
PB
17834else
17835 ok=yes
17836 case " ${configdirs} " in
17837 *" binutils "*) ;;
17838 *) ok=no ;;
17839 esac
1c710c3c 17840
2abefe3d
PB
17841 if test $ok = yes; then
17842 # An in-tree tool is available and we can use it
17843 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17845$as_echo "just compiled" >&6; }
e8b05380
PB
17846 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17847 # We already found the complete path
172e41aa 17848 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17850$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17851 elif test "x$target" = "x$host"; then
17852 # We can use an host tool
17853 AR_FOR_TARGET='$(AR)'
5213506e
RW
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17855$as_echo "host tool" >&6; }
2abefe3d
PB
17856 else
17857 # We need a cross tool
5213506e
RW
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17859$as_echo "pre-installed" >&6; }
2abefe3d
PB
17860 fi
17861fi
0b0dc272 17862
5213506e
RW
17863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17864$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 17865if test "x${build}" != "x${host}" ; then
e8b05380
PB
17866 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17867 # We already found the complete path
172e41aa 17868 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17870$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17871 else
17872 # Canadian cross, just use what we found
5213506e
RW
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17874$as_echo "pre-installed" >&6; }
e8b05380 17875 fi
2abefe3d
PB
17876else
17877 ok=yes
17878 case " ${configdirs} " in
17879 *" gas "*) ;;
17880 *) ok=no ;;
17881 esac
1c710c3c 17882
2abefe3d
PB
17883 if test $ok = yes; then
17884 # An in-tree tool is available and we can use it
17885 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17887$as_echo "just compiled" >&6; }
e8b05380
PB
17888 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17889 # We already found the complete path
172e41aa 17890 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17892$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17893 elif test "x$target" = "x$host"; then
17894 # We can use an host tool
17895 AS_FOR_TARGET='$(AS)'
5213506e
RW
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17897$as_echo "host tool" >&6; }
2abefe3d
PB
17898 else
17899 # We need a cross tool
5213506e
RW
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17901$as_echo "pre-installed" >&6; }
2abefe3d
PB
17902 fi
17903fi
0b0dc272 17904
5213506e
RW
17905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17906$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 17907if test "x${build}" != "x${host}" ; then
e8b05380
PB
17908 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17909 # We already found the complete path
172e41aa 17910 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17912$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17913 else
17914 # Canadian cross, just use what we found
5213506e
RW
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17916$as_echo "pre-installed" >&6; }
e8b05380 17917 fi
2abefe3d
PB
17918else
17919 ok=yes
17920 case " ${configdirs} " in
17921 *" gcc "*) ;;
17922 *) ok=no ;;
17923 esac
1c710c3c 17924
2abefe3d
PB
17925 if test $ok = yes; then
17926 # An in-tree tool is available and we can use it
17927 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17929$as_echo "just compiled" >&6; }
e8b05380
PB
17930 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17931 # We already found the complete path
172e41aa 17932 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17934$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17935 elif test "x$target" = "x$host"; then
17936 # We can use an host tool
17937 CC_FOR_TARGET='$(CC)'
5213506e
RW
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17939$as_echo "host tool" >&6; }
2abefe3d
PB
17940 else
17941 # We need a cross tool
5213506e
RW
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17943$as_echo "pre-installed" >&6; }
2abefe3d
PB
17944 fi
17945fi
0b0dc272 17946
5213506e
RW
17947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17948$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 17949if test "x${build}" != "x${host}" ; then
e8b05380
PB
17950 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17951 # We already found the complete path
172e41aa 17952 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17954$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17955 else
17956 # Canadian cross, just use what we found
5213506e
RW
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17958$as_echo "pre-installed" >&6; }
e8b05380 17959 fi
2abefe3d
PB
17960else
17961 ok=yes
17962 case " ${configdirs} " in
17963 *" gcc "*) ;;
17964 *) ok=no ;;
17965 esac
17966 case ,${enable_languages}, in
17967 *,c++,*) ;;
17968 *) ok=no ;;
17969 esac
17970 if test $ok = yes; then
17971 # An in-tree tool is available and we can use it
2077db1b 17972 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
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17974$as_echo "just compiled" >&6; }
e8b05380
PB
17975 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17976 # We already found the complete path
172e41aa 17977 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17979$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17980 elif test "x$target" = "x$host"; then
17981 # We can use an host tool
17982 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17984$as_echo "host tool" >&6; }
2abefe3d
PB
17985 else
17986 # We need a cross tool
5213506e
RW
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17988$as_echo "pre-installed" >&6; }
2abefe3d
PB
17989 fi
17990fi
0b0dc272 17991
5213506e
RW
17992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17993$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 17994if test "x${build}" != "x${host}" ; then
e8b05380
PB
17995 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17996 # We already found the complete path
172e41aa 17997 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17999$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18000 else
18001 # Canadian cross, just use what we found
5213506e
RW
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18003$as_echo "pre-installed" >&6; }
e8b05380 18004 fi
2abefe3d
PB
18005else
18006 ok=yes
18007 case " ${configdirs} " in
18008 *" gcc "*) ;;
18009 *) ok=no ;;
18010 esac
18011 case ,${enable_languages}, in
18012 *,c++,*) ;;
18013 *) ok=no ;;
18014 esac
18015 if test $ok = yes; then
18016 # An in-tree tool is available and we can use it
2077db1b 18017 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
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18019$as_echo "just compiled" >&6; }
e8b05380
PB
18020 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
18021 # We already found the complete path
172e41aa 18022 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18024$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18025 elif test "x$target" = "x$host"; then
18026 # We can use an host tool
18027 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18029$as_echo "host tool" >&6; }
2abefe3d
PB
18030 else
18031 # We need a cross tool
5213506e
RW
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18033$as_echo "pre-installed" >&6; }
2abefe3d
PB
18034 fi
18035fi
0b0dc272 18036
5213506e
RW
18037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
18038$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 18039if test "x${build}" != "x${host}" ; then
e8b05380
PB
18040 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
18041 # We already found the complete path
172e41aa 18042 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18044$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18045 else
18046 # Canadian cross, just use what we found
5213506e
RW
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18048$as_echo "pre-installed" >&6; }
e8b05380 18049 fi
2abefe3d
PB
18050else
18051 ok=yes
18052 case " ${configdirs} " in
18053 *" binutils "*) ;;
18054 *) ok=no ;;
18055 esac
1c710c3c 18056
2abefe3d
PB
18057 if test $ok = yes; then
18058 # An in-tree tool is available and we can use it
18059 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18061$as_echo "just compiled" >&6; }
e8b05380
PB
18062 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
18063 # We already found the complete path
172e41aa 18064 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18066$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18067 elif test "x$target" = "x$host"; then
18068 # We can use an host tool
18069 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18071$as_echo "host tool" >&6; }
2abefe3d
PB
18072 else
18073 # We need a cross tool
5213506e
RW
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18075$as_echo "pre-installed" >&6; }
2abefe3d
PB
18076 fi
18077fi
0b0dc272 18078
3b5e8ee4
IS
18079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
18080$as_echo_n "checking where to find the target dsymutil... " >&6; }
18081if test "x${build}" != "x${host}" ; then
18082 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18083 # We already found the complete path
18084 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18086$as_echo "pre-installed in $ac_dir" >&6; }
18087 else
18088 # Canadian cross, just use what we found
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18090$as_echo "pre-installed" >&6; }
18091 fi
18092else
18093 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18094 # We already found the complete path
18095 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18097$as_echo "pre-installed in $ac_dir" >&6; }
18098 elif test "x$target" = "x$host"; then
18099 # We can use an host tool
18100 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18102$as_echo "host tool" >&6; }
18103 else
18104 # We need a cross tool
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18106$as_echo "pre-installed" >&6; }
18107 fi
18108fi
18109
5213506e
RW
18110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
18111$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 18112if test "x${build}" != "x${host}" ; then
e8b05380
PB
18113 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18114 # We already found the complete path
172e41aa 18115 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18117$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18118 else
18119 # Canadian cross, just use what we found
5213506e
RW
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18121$as_echo "pre-installed" >&6; }
e8b05380 18122 fi
2abefe3d
PB
18123else
18124 ok=yes
18125 case " ${configdirs} " in
18126 *" gcc "*) ;;
18127 *) ok=no ;;
18128 esac
1c710c3c 18129
2abefe3d
PB
18130 if test $ok = yes; then
18131 # An in-tree tool is available and we can use it
18132 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18134$as_echo "just compiled" >&6; }
e8b05380
PB
18135 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18136 # We already found the complete path
172e41aa 18137 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18139$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18140 elif test "x$target" = "x$host"; then
18141 # We can use an host tool
18142 GCC_FOR_TARGET='$()'
5213506e
RW
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18144$as_echo "host tool" >&6; }
2abefe3d
PB
18145 else
18146 # We need a cross tool
5213506e
RW
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18148$as_echo "pre-installed" >&6; }
2abefe3d
PB
18149 fi
18150fi
0b0dc272 18151
5213506e
RW
18152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
18153$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 18154if test "x${build}" != "x${host}" ; then
e8b05380
PB
18155 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18156 # We already found the complete path
172e41aa 18157 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18159$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18160 else
18161 # Canadian cross, just use what we found
5213506e
RW
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18163$as_echo "pre-installed" >&6; }
e8b05380 18164 fi
2abefe3d
PB
18165else
18166 ok=yes
18167 case " ${configdirs} " in
18168 *" gcc "*) ;;
18169 *) ok=no ;;
18170 esac
18171 case ,${enable_languages}, in
18172 *,fortran,*) ;;
18173 *) ok=no ;;
18174 esac
18175 if test $ok = yes; then
18176 # An in-tree tool is available and we can use it
18177 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18179$as_echo "just compiled" >&6; }
e8b05380
PB
18180 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18181 # We already found the complete path
172e41aa 18182 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18184$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18185 elif test "x$target" = "x$host"; then
18186 # We can use an host tool
18187 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18189$as_echo "host tool" >&6; }
2abefe3d
PB
18190 else
18191 # We need a cross tool
5213506e
RW
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18193$as_echo "pre-installed" >&6; }
2abefe3d
PB
18194 fi
18195fi
0b0dc272 18196
632e2a07
ILT
18197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
18198$as_echo_n "checking where to find the target gccgo... " >&6; }
18199if test "x${build}" != "x${host}" ; then
18200 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18201 # We already found the complete path
18202 ac_dir=`dirname $GOC_FOR_TARGET`
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18204$as_echo "pre-installed in $ac_dir" >&6; }
18205 else
18206 # Canadian cross, just use what we found
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18208$as_echo "pre-installed" >&6; }
18209 fi
18210else
18211 ok=yes
18212 case " ${configdirs} " in
18213 *" gcc "*) ;;
18214 *) ok=no ;;
18215 esac
18216 case ,${enable_languages}, in
18217 *,go,*) ;;
18218 *) ok=no ;;
18219 esac
18220 if test $ok = yes; then
18221 # An in-tree tool is available and we can use it
18222 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18224$as_echo "just compiled" >&6; }
18225 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18226 # We already found the complete path
18227 ac_dir=`dirname $GOC_FOR_TARGET`
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18229$as_echo "pre-installed in $ac_dir" >&6; }
18230 elif test "x$target" = "x$host"; then
18231 # We can use an host tool
18232 GOC_FOR_TARGET='$(GOC)'
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18234$as_echo "host tool" >&6; }
18235 else
18236 # We need a cross tool
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18238$as_echo "pre-installed" >&6; }
18239 fi
18240fi
18241
b4c522fa
IB
18242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
18243$as_echo_n "checking where to find the target gdc... " >&6; }
18244if test "x${build}" != "x${host}" ; then
18245 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18246 # We already found the complete path
18247 ac_dir=`dirname $GDC_FOR_TARGET`
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18249$as_echo "pre-installed in $ac_dir" >&6; }
18250 else
18251 # Canadian cross, just use what we found
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18253$as_echo "pre-installed" >&6; }
18254 fi
18255else
18256 ok=yes
18257 case " ${configdirs} " in
18258 *" gcc "*) ;;
18259 *) ok=no ;;
18260 esac
18261 case ,${enable_languages}, in
18262 *,d,*) ;;
18263 *) ok=no ;;
18264 esac
18265 if test $ok = yes; then
18266 # An in-tree tool is available and we can use it
18267 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18269$as_echo "just compiled" >&6; }
18270 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18271 # We already found the complete path
18272 ac_dir=`dirname $GDC_FOR_TARGET`
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18274$as_echo "pre-installed in $ac_dir" >&6; }
18275 elif test "x$target" = "x$host"; then
18276 # We can use an host tool
18277 GDC_FOR_TARGET='$(GDC)'
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18279$as_echo "host tool" >&6; }
18280 else
18281 # We need a cross tool
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18283$as_echo "pre-installed" >&6; }
18284 fi
18285fi
18286
1eee94d3
GM
18287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
18288$as_echo_n "checking where to find the target gm2... " >&6; }
18289if test "x${build}" != "x${host}" ; then
18290 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18291 # We already found the complete path
18292 ac_dir=`dirname $GM2_FOR_TARGET`
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18294$as_echo "pre-installed in $ac_dir" >&6; }
18295 else
18296 # Canadian cross, just use what we found
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18298$as_echo "pre-installed" >&6; }
18299 fi
18300else
18301 ok=yes
18302 case " ${configdirs} " in
18303 *" gcc "*) ;;
18304 *) ok=no ;;
18305 esac
18306 case ,${enable_languages}, in
18307 *,m2,*) ;;
18308 *) ok=no ;;
18309 esac
18310 if test $ok = yes; then
18311 # An in-tree tool is available and we can use it
18312 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18314$as_echo "just compiled" >&6; }
18315 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18316 # We already found the complete path
18317 ac_dir=`dirname $GM2_FOR_TARGET`
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18319$as_echo "pre-installed in $ac_dir" >&6; }
18320 elif test "x$target" = "x$host"; then
18321 # We can use an host tool
18322 GM2_FOR_TARGET='$(GM2)'
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18324$as_echo "host tool" >&6; }
18325 else
18326 # We need a cross tool
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18328$as_echo "pre-installed" >&6; }
18329 fi
18330fi
18331
5213506e
RW
18332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
18333$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 18334if test "x${build}" != "x${host}" ; then
e8b05380
PB
18335 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18336 # We already found the complete path
172e41aa 18337 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18339$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18340 else
18341 # Canadian cross, just use what we found
5213506e
RW
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18343$as_echo "pre-installed" >&6; }
e8b05380 18344 fi
2abefe3d
PB
18345else
18346 ok=yes
18347 case " ${configdirs} " in
18348 *" ld "*) ;;
18349 *) ok=no ;;
18350 esac
1c710c3c 18351
2abefe3d
PB
18352 if test $ok = yes; then
18353 # An in-tree tool is available and we can use it
18354 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18356$as_echo "just compiled" >&6; }
e8b05380
PB
18357 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18358 # We already found the complete path
172e41aa 18359 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18361$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18362 elif test "x$target" = "x$host"; then
18363 # We can use an host tool
18364 LD_FOR_TARGET='$(LD)'
5213506e
RW
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18366$as_echo "host tool" >&6; }
2abefe3d
PB
18367 else
18368 # We need a cross tool
5213506e
RW
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18370$as_echo "pre-installed" >&6; }
2abefe3d
PB
18371 fi
18372fi
0b0dc272 18373
5213506e
RW
18374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18375$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 18376if test "x${build}" != "x${host}" ; then
e8b05380
PB
18377 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18378 # We already found the complete path
172e41aa 18379 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18381$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18382 else
18383 # Canadian cross, just use what we found
5213506e
RW
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18385$as_echo "pre-installed" >&6; }
e8b05380 18386 fi
2abefe3d 18387else
e8b05380
PB
18388 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18389 # We already found the complete path
172e41aa 18390 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18392$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 18393 elif test "x$target" = "x$host"; then
2abefe3d
PB
18394 # We can use an host tool
18395 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18397$as_echo "host tool" >&6; }
2abefe3d
PB
18398 else
18399 # We need a cross tool
5213506e
RW
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18401$as_echo "pre-installed" >&6; }
2abefe3d
PB
18402 fi
18403fi
0b0dc272 18404
5213506e
RW
18405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18406$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 18407if test "x${build}" != "x${host}" ; then
e8b05380
PB
18408 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18409 # We already found the complete path
172e41aa 18410 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18412$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18413 else
18414 # Canadian cross, just use what we found
5213506e
RW
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18416$as_echo "pre-installed" >&6; }
e8b05380 18417 fi
2abefe3d
PB
18418else
18419 ok=yes
18420 case " ${configdirs} " in
18421 *" binutils "*) ;;
18422 *) ok=no ;;
18423 esac
1c710c3c 18424
2abefe3d
PB
18425 if test $ok = yes; then
18426 # An in-tree tool is available and we can use it
18427 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18429$as_echo "just compiled" >&6; }
e8b05380
PB
18430 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18431 # We already found the complete path
172e41aa 18432 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18434$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18435 elif test "x$target" = "x$host"; then
18436 # We can use an host tool
18437 NM_FOR_TARGET='$(NM)'
5213506e
RW
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18439$as_echo "host tool" >&6; }
2abefe3d
PB
18440 else
18441 # We need a cross tool
5213506e
RW
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18443$as_echo "pre-installed" >&6; }
2abefe3d
PB
18444 fi
18445fi
0b0dc272 18446
9bccfdf5
AP
18447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18448$as_echo_n "checking where to find the target objcopy... " >&6; }
18449if test "x${build}" != "x${host}" ; then
18450 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18451 # We already found the complete path
18452 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18454$as_echo "pre-installed in $ac_dir" >&6; }
18455 else
18456 # Canadian cross, just use what we found
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18458$as_echo "pre-installed" >&6; }
18459 fi
18460else
18461 ok=yes
18462 case " ${configdirs} " in
18463 *" binutils "*) ;;
18464 *) ok=no ;;
18465 esac
18466
18467 if test $ok = yes; then
18468 # An in-tree tool is available and we can use it
18469 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18471$as_echo "just compiled" >&6; }
18472 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18473 # We already found the complete path
18474 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18476$as_echo "pre-installed in $ac_dir" >&6; }
18477 elif test "x$target" = "x$host"; then
18478 # We can use an host tool
ec8fd1c0 18479 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18481$as_echo "host tool" >&6; }
18482 else
18483 # We need a cross tool
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18485$as_echo "pre-installed" >&6; }
18486 fi
18487fi
18488
5213506e
RW
18489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18490$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 18491if test "x${build}" != "x${host}" ; then
e8b05380
PB
18492 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18493 # We already found the complete path
172e41aa 18494 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18496$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18497 else
18498 # Canadian cross, just use what we found
5213506e
RW
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18500$as_echo "pre-installed" >&6; }
e8b05380 18501 fi
2abefe3d
PB
18502else
18503 ok=yes
18504 case " ${configdirs} " in
18505 *" binutils "*) ;;
18506 *) ok=no ;;
18507 esac
1c710c3c 18508
2abefe3d
PB
18509 if test $ok = yes; then
18510 # An in-tree tool is available and we can use it
18511 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18513$as_echo "just compiled" >&6; }
e8b05380
PB
18514 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18515 # We already found the complete path
172e41aa 18516 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18518$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18519 elif test "x$target" = "x$host"; then
18520 # We can use an host tool
18521 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18523$as_echo "host tool" >&6; }
2abefe3d
PB
18524 else
18525 # We need a cross tool
5213506e
RW
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18527$as_echo "pre-installed" >&6; }
2abefe3d
PB
18528 fi
18529fi
0b0dc272 18530
e4a9a572
IS
18531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18532$as_echo_n "checking where to find the target otool... " >&6; }
18533if test "x${build}" != "x${host}" ; then
18534 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18535 # We already found the complete path
18536 ac_dir=`dirname $OTOOL_FOR_TARGET`
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18538$as_echo "pre-installed in $ac_dir" >&6; }
18539 else
18540 # Canadian cross, just use what we found
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18542$as_echo "pre-installed" >&6; }
18543 fi
18544else
18545 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18546 # We already found the complete path
18547 ac_dir=`dirname $OTOOL_FOR_TARGET`
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18549$as_echo "pre-installed in $ac_dir" >&6; }
18550 elif test "x$target" = "x$host"; then
18551 # We can use an host tool
18552 OTOOL_FOR_TARGET='$(OTOOL)'
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18554$as_echo "host tool" >&6; }
18555 else
18556 # We need a cross tool
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18558$as_echo "pre-installed" >&6; }
18559 fi
18560fi
18561
5213506e
RW
18562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18563$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 18564if test "x${build}" != "x${host}" ; then
e8b05380
PB
18565 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18566 # We already found the complete path
172e41aa 18567 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18569$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18570 else
18571 # Canadian cross, just use what we found
5213506e
RW
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18573$as_echo "pre-installed" >&6; }
e8b05380 18574 fi
2abefe3d
PB
18575else
18576 ok=yes
18577 case " ${configdirs} " in
18578 *" binutils "*) ;;
18579 *) ok=no ;;
18580 esac
1c710c3c 18581
2abefe3d
PB
18582 if test $ok = yes; then
18583 # An in-tree tool is available and we can use it
18584 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18586$as_echo "just compiled" >&6; }
e8b05380
PB
18587 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18588 # We already found the complete path
172e41aa 18589 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18591$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18592 elif test "x$target" = "x$host"; then
18593 # We can use an host tool
18594 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18596$as_echo "host tool" >&6; }
2abefe3d
PB
18597 else
18598 # We need a cross tool
5213506e
RW
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18600$as_echo "pre-installed" >&6; }
2abefe3d
PB
18601 fi
18602fi
0b0dc272 18603
e7a82751
RM
18604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18605$as_echo_n "checking where to find the target readelf... " >&6; }
18606if test "x${build}" != "x${host}" ; then
18607 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18608 # We already found the complete path
18609 ac_dir=`dirname $READELF_FOR_TARGET`
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18611$as_echo "pre-installed in $ac_dir" >&6; }
18612 else
18613 # Canadian cross, just use what we found
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18615$as_echo "pre-installed" >&6; }
18616 fi
18617else
18618 ok=yes
18619 case " ${configdirs} " in
18620 *" binutils "*) ;;
18621 *) ok=no ;;
18622 esac
18623
18624 if test $ok = yes; then
18625 # An in-tree tool is available and we can use it
18626 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18628$as_echo "just compiled" >&6; }
18629 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18630 # We already found the complete path
18631 ac_dir=`dirname $READELF_FOR_TARGET`
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18633$as_echo "pre-installed in $ac_dir" >&6; }
18634 elif test "x$target" = "x$host"; then
18635 # We can use an host tool
18636 READELF_FOR_TARGET='$(READELF)'
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18638$as_echo "host tool" >&6; }
18639 else
18640 # We need a cross tool
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18642$as_echo "pre-installed" >&6; }
18643 fi
18644fi
18645
5213506e
RW
18646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18647$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 18648if test "x${build}" != "x${host}" ; then
e8b05380
PB
18649 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18650 # We already found the complete path
172e41aa 18651 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18653$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18654 else
18655 # Canadian cross, just use what we found
5213506e
RW
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18657$as_echo "pre-installed" >&6; }
e8b05380 18658 fi
2abefe3d
PB
18659else
18660 ok=yes
18661 case " ${configdirs} " in
18662 *" binutils "*) ;;
18663 *) ok=no ;;
18664 esac
1c710c3c 18665
2abefe3d
PB
18666 if test $ok = yes; then
18667 # An in-tree tool is available and we can use it
455c8f48 18668 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18670$as_echo "just compiled" >&6; }
e8b05380
PB
18671 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18672 # We already found the complete path
172e41aa 18673 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18675$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18676 elif test "x$target" = "x$host"; then
18677 # We can use an host tool
18678 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18680$as_echo "host tool" >&6; }
2abefe3d
PB
18681 else
18682 # We need a cross tool
5213506e
RW
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18684$as_echo "pre-installed" >&6; }
2abefe3d
PB
18685 fi
18686fi
0b0dc272 18687
5213506e
RW
18688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18689$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 18690if test "x${build}" != "x${host}" ; then
e8b05380
PB
18691 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18692 # We already found the complete path
172e41aa 18693 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18695$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18696 else
18697 # Canadian cross, just use what we found
5213506e
RW
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18699$as_echo "pre-installed" >&6; }
e8b05380 18700 fi
2abefe3d
PB
18701else
18702 ok=yes
18703 case " ${configdirs} " in
18704 *" binutils "*) ;;
18705 *) ok=no ;;
18706 esac
1c710c3c 18707
2abefe3d
PB
18708 if test $ok = yes; then
18709 # An in-tree tool is available and we can use it
18710 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18712$as_echo "just compiled" >&6; }
e8b05380
PB
18713 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18714 # We already found the complete path
172e41aa 18715 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18717$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18718 elif test "x$target" = "x$host"; then
18719 # We can use an host tool
18720 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18722$as_echo "host tool" >&6; }
2abefe3d
PB
18723 else
18724 # We need a cross tool
5213506e
RW
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18726$as_echo "pre-installed" >&6; }
2abefe3d 18727 fi
671aa708 18728fi
be912515 18729
5213506e
RW
18730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18731$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
18732if test "x${build}" != "x${host}" ; then
18733 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18734 # We already found the complete path
18735 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18737$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
18738 else
18739 # Canadian cross, just use what we found
5213506e
RW
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18741$as_echo "pre-installed" >&6; }
901119ae
KT
18742 fi
18743else
18744 ok=yes
18745 case " ${configdirs} " in
18746 *" binutils "*) ;;
18747 *) ok=no ;;
18748 esac
18749
18750 if test $ok = yes; then
18751 # An in-tree tool is available and we can use it
18752 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18754$as_echo "just compiled" >&6; }
901119ae
KT
18755 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18756 # We already found the complete path
18757 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18759$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
18760 elif test "x$target" = "x$host"; then
18761 # We can use an host tool
18762 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18764$as_echo "host tool" >&6; }
901119ae
KT
18765 else
18766 # We need a cross tool
5213506e
RW
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18768$as_echo "pre-installed" >&6; }
901119ae
KT
18769 fi
18770fi
18771
be912515
NN
18772
18773
2abefe3d 18774
0b0dc272 18775
671aa708
NN
18776# Certain tools may need extra flags.
18777AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18778RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18779NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18780
2abefe3d
PB
18781# When building target libraries, except in a Canadian cross, we use
18782# the same toolchain as the compiler we just built.
18783COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18784COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18785COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18786if test $host = $build; then
18787 case " $configdirs " in
18788 *" gcc "*)
18789 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18790 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18791 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18792 ;;
18793 esac
18794fi
18795
18796
18797
18798
18799
5213506e
RW
18800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18801$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18802# Check whether --enable-maintainer-mode was given.
18803if test "${enable_maintainer_mode+set}" = set; then :
18804 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
18805else
18806 USE_MAINTAINER_MODE=no
5213506e
RW
18807fi
18808
18809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18810$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
18811
18812
18813if test "$USE_MAINTAINER_MODE" = yes; then
18814 MAINTAINER_MODE_TRUE=
18815 MAINTAINER_MODE_FALSE='#'
18816else
18817 MAINTAINER_MODE_TRUE='#'
18818 MAINTAINER_MODE_FALSE=
1c710c3c 18819fi
ee03dc5e
AO
18820MAINT=$MAINTAINER_MODE_TRUE
18821
2805b53a
NN
18822# ---------------------
18823# GCC bootstrap support
18824# ---------------------
18825
18826# Stage specific cflags for build.
18827stage1_cflags="-g"
18828case $build in
18829 vax-*-*)
18830 case ${GCC} in
18831 yes) stage1_cflags="-g -Wa,-J" ;;
18832 *) stage1_cflags="-g -J" ;;
18833 esac ;;
2805b53a
NN
18834esac
18835
0b50988a 18836
2805b53a 18837
8efea775 18838# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
18839# Check whether --enable-stage1-checking was given.
18840if test "${enable_stage1_checking+set}" = set; then :
18841 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 18842else
e643dc23 18843 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
18844 # For --disable-checking or implicit --enable-checking=release, avoid
18845 # setting --enable-checking=gc in the default stage1 checking for LTO
18846 # bootstraps. See PR62077.
c10b5ea0
JJ
18847 case $BUILD_CONFIG in
18848 *lto*)
7db11a5a
JJ
18849 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18850 *)
18851 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 18852 esac
7db11a5a
JJ
18853 if test "x$enable_checking" = x && \
18854 test -d ${srcdir}/gcc && \
18855 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 18856 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 18857 fi
8efea775 18858else
e643dc23 18859 stage1_checking=--enable-checking=$enable_checking,types
8efea775 18860fi
5213506e 18861fi
8efea775
PB
18862
18863
2aeb72e9 18864
5213506e
RW
18865# Enable -Werror in bootstrap stage2 and later.
18866# Check whether --enable-werror was given.
18867if test "${enable_werror+set}" = set; then :
18868 enableval=$enable_werror;
09a9c095
NN
18869case ${enable_werror} in
18870 yes) stage2_werror_flag="--enable-werror-always" ;;
18871 *) stage2_werror_flag="" ;;
2805b53a
NN
18872esac
18873
afd88efc
ML
18874else
18875
01c712cb
ML
18876if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18877 case $BUILD_CONFIG in
18878 bootstrap-debug)
18879 stage2_werror_flag="--enable-werror-always" ;;
18880 "")
18881 stage2_werror_flag="--enable-werror-always" ;;
18882 esac
18883fi
18884
afd88efc
ML
18885fi
18886
18887
01c712cb 18888
2805b53a 18889
f2689b09
SE
18890# Specify what files to not compare during bootstrap.
18891
18892compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
1eee94d3
GM
18893compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18894compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18895compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
f2689b09
SE
18896case "$target" in
18897 hppa*64*-*-hpux*) ;;
4f943869 18898 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
f2689b09
SE
18899esac
18900
18901
5213506e
RW
18902ac_config_files="$ac_config_files Makefile"
18903
1c710c3c 18904cat >confcache <<\_ACEOF
671aa708
NN
18905# This file is a shell script that caches the results of configure
18906# tests run on this system so they can be shared between configure
1c710c3c
DJ
18907# scripts and configure runs, see configure's option --config-cache.
18908# It is not useful on other systems. If it contains results you don't
18909# want to keep, you may remove or edit it.
671aa708 18910#
1c710c3c
DJ
18911# config.status only pays attention to the cache file if you give it
18912# the --recheck option to rerun configure.
671aa708 18913#
1c710c3c
DJ
18914# `ac_cv_env_foo' variables (set or unset) will be overridden when
18915# loading this file, other *unset* `ac_cv_foo' will be assigned the
18916# following values.
18917
18918_ACEOF
18919
671aa708
NN
18920# The following way of writing the cache mishandles newlines in values,
18921# but we know of no workaround that is simple, portable, and efficient.
5213506e 18922# So, we kill variables containing newlines.
671aa708
NN
18923# Ultrix sh set writes to stderr and can't be redirected directly,
18924# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
18925(
18926 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18927 eval ac_val=\$$ac_var
18928 case $ac_val in #(
18929 *${as_nl}*)
18930 case $ac_var in #(
18931 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18932$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18933 esac
18934 case $ac_var in #(
18935 _ | IFS | as_nl) ;; #(
18936 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18937 *) { eval $ac_var=; unset $ac_var;} ;;
18938 esac ;;
18939 esac
18940 done
18941
1c710c3c 18942 (set) 2>&1 |
5213506e
RW
18943 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18944 *${as_nl}ac_space=\ *)
18945 # `set' does not quote correctly, so add quotes: double-quote
18946 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
18947 sed -n \
18948 "s/'/'\\\\''/g;
18949 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 18950 ;; #(
1c710c3c
DJ
18951 *)
18952 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 18953 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 18954 ;;
5213506e
RW
18955 esac |
18956 sort
18957) |
1c710c3c 18958 sed '
5213506e 18959 /^ac_cv_env_/b end
1c710c3c 18960 t clear
5213506e 18961 :clear
1c710c3c
DJ
18962 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18963 t end
5213506e
RW
18964 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18965 :end' >>confcache
18966if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18967 if test -w "$cache_file"; then
22e05272 18968 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18970$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
18971 if test ! -f "$cache_file" || test -h "$cache_file"; then
18972 cat confcache >"$cache_file"
18973 else
18974 case $cache_file in #(
18975 */* | ?:*)
18976 mv -f confcache "$cache_file"$$ &&
18977 mv -f "$cache_file"$$ "$cache_file" ;; #(
18978 *)
18979 mv -f confcache "$cache_file" ;;
18980 esac
18981 fi
18982 fi
671aa708 18983 else
5213506e
RW
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18985$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 18986 fi
4977bab6 18987fi
671aa708 18988rm -f confcache
79c06341 18989
671aa708
NN
18990test "x$prefix" = xNONE && prefix=$ac_default_prefix
18991# Let make expand exec_prefix.
18992test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 18993
671aa708
NN
18994# Transform confdefs.h into DEFS.
18995# Protect against shell expansion while executing Makefile rules.
18996# Protect against Makefile macro expansion.
1c710c3c
DJ
18997#
18998# If the first sed substitution is executed (which looks for macros that
5213506e 18999# take arguments), then branch to the quote section. Otherwise,
1c710c3c 19000# look for a macro that doesn't take arguments.
5213506e
RW
19001ac_script='
19002:mline
19003/\\$/{
19004 N
19005 s,\\\n,,
19006 b mline
19007}
1c710c3c 19008t clear
5213506e
RW
19009:clear
19010s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 19011t quote
5213506e 19012s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 19013t quote
5213506e
RW
19014b any
19015:quote
19016s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19017s/\[/\\&/g
19018s/\]/\\&/g
19019s/\$/$$/g
19020H
19021:any
19022${
19023 g
19024 s/^\n//
19025 s/\n/ /g
19026 p
19027}
19028'
19029DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
19030
19031
19032ac_libobjs=
19033ac_ltlibobjs=
22e05272 19034U=
1c710c3c
DJ
19035for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19036 # 1. Remove the extension, and $U if already installed.
5213506e
RW
19037 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19038 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19039 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19040 # will be set to the directory where LIBOBJS objects are built.
19041 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19042 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
19043done
19044LIBOBJS=$ac_libobjs
fb0103e5 19045
1c710c3c 19046LTLIBOBJS=$ac_ltlibobjs
0b0dc272 19047
af71363e 19048
1c710c3c 19049
22e05272 19050: "${CONFIG_STATUS=./config.status}"
5213506e 19051ac_write_fail=0
1c710c3c
DJ
19052ac_clean_files_save=$ac_clean_files
19053ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
19054{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19055$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19056as_write_fail=0
19057cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
19058#! $SHELL
19059# Generated by $as_me.
671aa708 19060# Run this file to recreate the current configuration.
671aa708 19061# Compiler output produced by configure, useful for debugging
1c710c3c 19062# configure, is in config.log if it exists.
0b0dc272 19063
1c710c3c
DJ
19064debug=false
19065ac_cs_recheck=false
19066ac_cs_silent=false
1c710c3c 19067
5213506e
RW
19068SHELL=\${CONFIG_SHELL-$SHELL}
19069export SHELL
19070_ASEOF
19071cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19072## -------------------- ##
19073## M4sh Initialization. ##
19074## -------------------- ##
19075
19076# Be more Bourne compatible
19077DUALCASE=1; export DUALCASE # for MKS sh
19078if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
19079 emulate sh
19080 NULLCMD=:
5213506e 19081 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
19082 # is contrary to our usage. Disable this feature.
19083 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
19084 setopt NO_GLOB_SUBST
19085else
19086 case `(set -o) 2>/dev/null` in #(
19087 *posix*) :
19088 set -o posix ;; #(
19089 *) :
19090 ;;
19091esac
1c710c3c 19092fi
1c710c3c 19093
5213506e
RW
19094
19095as_nl='
19096'
19097export as_nl
19098# Printing a long string crashes Solaris 7 /usr/bin/printf.
19099as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19100as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19101as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19102# Prefer a ksh shell builtin over an external printf program on Solaris,
19103# but without wasting forks for bash or zsh.
19104if test -z "$BASH_VERSION$ZSH_VERSION" \
19105 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19106 as_echo='print -r --'
19107 as_echo_n='print -rn --'
19108elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19109 as_echo='printf %s\n'
19110 as_echo_n='printf %s'
19111else
19112 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19113 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19114 as_echo_n='/usr/ucb/echo -n'
19115 else
19116 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19117 as_echo_n_body='eval
19118 arg=$1;
19119 case $arg in #(
19120 *"$as_nl"*)
19121 expr "X$arg" : "X\\(.*\\)$as_nl";
19122 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19123 esac;
19124 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19125 '
19126 export as_echo_n_body
19127 as_echo_n='sh -c $as_echo_n_body as_echo'
19128 fi
19129 export as_echo_body
19130 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
19131fi
19132
5213506e
RW
19133# The user is always right.
19134if test "${PATH_SEPARATOR+set}" != set; then
19135 PATH_SEPARATOR=:
19136 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19137 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19138 PATH_SEPARATOR=';'
19139 }
19140fi
19141
19142
19143# IFS
19144# We need space, tab and new line, in precisely that order. Quoting is
19145# there to prevent editors from complaining about space-tab.
19146# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19147# splitting by setting IFS to empty value.)
19148IFS=" "" $as_nl"
19149
19150# Find who we are. Look in the path if we contain no directory separator.
22e05272 19151as_myself=
5213506e
RW
19152case $0 in #((
19153 *[\\/]* ) as_myself=$0 ;;
19154 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19155for as_dir in $PATH
19156do
19157 IFS=$as_save_IFS
19158 test -z "$as_dir" && as_dir=.
19159 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19160 done
19161IFS=$as_save_IFS
19162
19163 ;;
19164esac
19165# We did not find ourselves, most probably we were run as `sh COMMAND'
19166# in which case we are not to be found in the path.
19167if test "x$as_myself" = x; then
19168 as_myself=$0
19169fi
19170if test ! -f "$as_myself"; then
19171 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19172 exit 1
19173fi
1c710c3c 19174
5213506e
RW
19175# Unset variables that we do not need and which cause bugs (e.g. in
19176# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19177# suppresses any "Segmentation fault" message there. '((' could
19178# trigger a bug in pdksh 5.2.14.
19179for as_var in BASH_ENV ENV MAIL MAILPATH
19180do eval test x\${$as_var+set} = xset \
19181 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19182done
1c710c3c
DJ
19183PS1='$ '
19184PS2='> '
19185PS4='+ '
19186
19187# NLS nuisances.
5213506e
RW
19188LC_ALL=C
19189export LC_ALL
19190LANGUAGE=C
19191export LANGUAGE
19192
19193# CDPATH.
19194(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19195
19196
22e05272
JM
19197# as_fn_error STATUS ERROR [LINENO LOG_FD]
19198# ----------------------------------------
5213506e
RW
19199# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19200# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 19201# script with STATUS, using 1 if that was 0.
5213506e
RW
19202as_fn_error ()
19203{
22e05272
JM
19204 as_status=$1; test $as_status -eq 0 && as_status=1
19205 if test "$4"; then
19206 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19207 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1c710c3c 19208 fi
22e05272 19209 $as_echo "$as_me: error: $2" >&2
5213506e
RW
19210 as_fn_exit $as_status
19211} # as_fn_error
19212
19213
19214# as_fn_set_status STATUS
19215# -----------------------
19216# Set $? to STATUS, without forking.
19217as_fn_set_status ()
19218{
19219 return $1
19220} # as_fn_set_status
19221
19222# as_fn_exit STATUS
19223# -----------------
19224# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19225as_fn_exit ()
19226{
19227 set +e
19228 as_fn_set_status $1
19229 exit $1
19230} # as_fn_exit
19231
19232# as_fn_unset VAR
19233# ---------------
19234# Portably unset VAR.
19235as_fn_unset ()
19236{
19237 { eval $1=; unset $1;}
19238}
19239as_unset=as_fn_unset
19240# as_fn_append VAR VALUE
19241# ----------------------
19242# Append the text in VALUE to the end of the definition contained in VAR. Take
19243# advantage of any shell optimizations that allow amortized linear growth over
19244# repeated appends, instead of the typical quadratic growth present in naive
19245# implementations.
19246if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19247 eval 'as_fn_append ()
19248 {
19249 eval $1+=\$2
19250 }'
19251else
19252 as_fn_append ()
19253 {
19254 eval $1=\$$1\$2
19255 }
19256fi # as_fn_append
19257
19258# as_fn_arith ARG...
19259# ------------------
19260# Perform arithmetic evaluation on the ARGs, and store the result in the
19261# global $as_val. Take advantage of shells that can avoid forks. The arguments
19262# must be portable across $(()) and expr.
19263if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19264 eval 'as_fn_arith ()
19265 {
19266 as_val=$(( $* ))
19267 }'
19268else
19269 as_fn_arith ()
19270 {
19271 as_val=`expr "$@" || test $? -eq 1`
19272 }
19273fi # as_fn_arith
19274
1c710c3c 19275
5213506e
RW
19276if expr a : '\(a\)' >/dev/null 2>&1 &&
19277 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
19278 as_expr=expr
19279else
19280 as_expr=false
19281fi
19282
5213506e 19283if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
19284 as_basename=basename
19285else
19286 as_basename=false
19287fi
19288
5213506e
RW
19289if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19290 as_dirname=dirname
19291else
19292 as_dirname=false
19293fi
1c710c3c 19294
5213506e 19295as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
19296$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19297 X"$0" : 'X\(//\)$' \| \
5213506e
RW
19298 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19299$as_echo X/"$0" |
19300 sed '/^.*\/\([^/][^/]*\)\/*$/{
19301 s//\1/
19302 q
19303 }
19304 /^X\/\(\/\/\)$/{
19305 s//\1/
19306 q
19307 }
19308 /^X\/\(\/\).*/{
19309 s//\1/
19310 q
19311 }
19312 s/.*/./; q'`
2aeb72e9 19313
2aeb72e9
DD
19314# Avoid depending upon Character Ranges.
19315as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19316as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19317as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19318as_cr_digits='0123456789'
19319as_cr_alnum=$as_cr_Letters$as_cr_digits
19320
5213506e
RW
19321ECHO_C= ECHO_N= ECHO_T=
19322case `echo -n x` in #(((((
19323-n*)
19324 case `echo 'xy\c'` in
19325 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19326 xy) ECHO_C='\c';;
19327 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19328 ECHO_T=' ';;
19329 esac;;
19330*)
19331 ECHO_N='-n';;
1c710c3c
DJ
19332esac
19333
5213506e
RW
19334rm -f conf$$ conf$$.exe conf$$.file
19335if test -d conf$$.dir; then
19336 rm -f conf$$.dir/conf$$.file
1c710c3c 19337else
5213506e
RW
19338 rm -f conf$$.dir
19339 mkdir conf$$.dir 2>/dev/null
1c710c3c 19340fi
5213506e
RW
19341if (echo >conf$$.file) 2>/dev/null; then
19342 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 19343 as_ln_s='ln -s'
5213506e
RW
19344 # ... but there are two gotchas:
19345 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19346 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 19347 # In both cases, we have to default to `cp -pR'.
5213506e 19348 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 19349 as_ln_s='cp -pR'
5213506e
RW
19350 elif ln conf$$.file conf$$ 2>/dev/null; then
19351 as_ln_s=ln
19352 else
22e05272 19353 as_ln_s='cp -pR'
2aeb72e9 19354 fi
1c710c3c 19355else
22e05272 19356 as_ln_s='cp -pR'
1c710c3c 19357fi
5213506e
RW
19358rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19359rmdir conf$$.dir 2>/dev/null
19360
19361
19362# as_fn_mkdir_p
19363# -------------
19364# Create "$as_dir" as a directory, including parents if necessary.
19365as_fn_mkdir_p ()
19366{
19367
19368 case $as_dir in #(
19369 -*) as_dir=./$as_dir;;
19370 esac
19371 test -d "$as_dir" || eval $as_mkdir_p || {
19372 as_dirs=
19373 while :; do
19374 case $as_dir in #(
19375 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19376 *) as_qdir=$as_dir;;
19377 esac
19378 as_dirs="'$as_qdir' $as_dirs"
19379 as_dir=`$as_dirname -- "$as_dir" ||
19380$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19381 X"$as_dir" : 'X\(//\)[^/]' \| \
19382 X"$as_dir" : 'X\(//\)$' \| \
19383 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19384$as_echo X"$as_dir" |
19385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19386 s//\1/
19387 q
19388 }
19389 /^X\(\/\/\)[^/].*/{
19390 s//\1/
19391 q
19392 }
19393 /^X\(\/\/\)$/{
19394 s//\1/
19395 q
19396 }
19397 /^X\(\/\).*/{
19398 s//\1/
19399 q
19400 }
19401 s/.*/./; q'`
19402 test -d "$as_dir" && break
19403 done
19404 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 19405 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 19406
1c710c3c 19407
5213506e 19408} # as_fn_mkdir_p
1c710c3c 19409if mkdir -p . 2>/dev/null; then
5213506e 19410 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
19411else
19412 test -d ./-p && rmdir ./-p
19413 as_mkdir_p=false
19414fi
19415
22e05272
JM
19416
19417# as_fn_executable_p FILE
19418# -----------------------
19419# Test if FILE is an executable regular file.
19420as_fn_executable_p ()
19421{
19422 test -f "$1" && test -x "$1"
19423} # as_fn_executable_p
19424as_test_x='test -x'
19425as_executable_p=as_fn_executable_p
1c710c3c
DJ
19426
19427# Sed expression to map a string onto a valid CPP name.
19428as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19429
19430# Sed expression to map a string onto a valid variable name.
19431as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19432
19433
1c710c3c 19434exec 6>&1
5213506e
RW
19435## ----------------------------------- ##
19436## Main body of $CONFIG_STATUS script. ##
19437## ----------------------------------- ##
19438_ASEOF
19439test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19440
19441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19442# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 19443# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
19444# values after options handling.
19445ac_log="
1c710c3c 19446This file was extended by $as_me, which was
22e05272 19447generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
19448
19449 CONFIG_FILES = $CONFIG_FILES
19450 CONFIG_HEADERS = $CONFIG_HEADERS
19451 CONFIG_LINKS = $CONFIG_LINKS
19452 CONFIG_COMMANDS = $CONFIG_COMMANDS
19453 $ $0 $@
19454
5213506e
RW
19455on `(hostname || uname -n) 2>/dev/null | sed 1q`
19456"
19457
1c710c3c
DJ
19458_ACEOF
19459
5213506e
RW
19460case $ac_config_files in *"
19461"*) set x $ac_config_files; shift; ac_config_files=$*;;
19462esac
1c710c3c 19463
2aeb72e9 19464
2aeb72e9 19465
5213506e
RW
19466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19467# Files that config.status was made for.
19468config_files="$ac_config_files"
1c710c3c 19469
5213506e 19470_ACEOF
2aeb72e9 19471
5213506e 19472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 19473ac_cs_usage="\
5213506e
RW
19474\`$as_me' instantiates files and other configuration actions
19475from templates according to the current configuration. Unless the files
19476and actions are specified as TAGs, all are instantiated by default.
1c710c3c 19477
5213506e 19478Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
19479
19480 -h, --help print this help, then exit
5213506e 19481 -V, --version print version number and configuration settings, then exit
22e05272 19482 --config print configuration, then exit
5213506e
RW
19483 -q, --quiet, --silent
19484 do not print progress messages
1c710c3c
DJ
19485 -d, --debug don't remove temporary files
19486 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
19487 --file=FILE[:TEMPLATE]
19488 instantiate the configuration file FILE
1c710c3c
DJ
19489
19490Configuration files:
19491$config_files
19492
5213506e 19493Report bugs to the package provider."
2aeb72e9 19494
5213506e
RW
19495_ACEOF
19496cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 19497ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1c710c3c
DJ
19498ac_cs_version="\\
19499config.status
22e05272
JM
19500configured by $0, generated by GNU Autoconf 2.69,
19501 with options \\"\$ac_cs_config\\"
1c710c3c 19502
22e05272 19503Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
19504This config.status script is free software; the Free Software Foundation
19505gives unlimited permission to copy, distribute and modify it."
5213506e
RW
19506
19507ac_pwd='$ac_pwd'
19508srcdir='$srcdir'
19509INSTALL='$INSTALL'
87264276 19510AWK='$AWK'
5213506e 19511test -n "\$AWK" || AWK=awk
1c710c3c
DJ
19512_ACEOF
19513
5213506e
RW
19514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19515# The default lists apply if the user does not specify any file.
1c710c3c
DJ
19516ac_need_defaults=:
19517while test $# != 0
a4b9e93e 19518do
1c710c3c 19519 case $1 in
22e05272 19520 --*=?*)
5213506e
RW
19521 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19522 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
19523 ac_shift=:
19524 ;;
22e05272
JM
19525 --*=)
19526 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19527 ac_optarg=
19528 ac_shift=:
19529 ;;
5213506e 19530 *)
1c710c3c
DJ
19531 ac_option=$1
19532 ac_optarg=$2
19533 ac_shift=shift
19534 ;;
1c710c3c
DJ
19535 esac
19536
19537 case $ac_option in
19538 # Handling of the options.
671aa708 19539 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 19540 ac_cs_recheck=: ;;
5213506e
RW
19541 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19542 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
19543 --config | --confi | --conf | --con | --co | --c )
19544 $as_echo "$ac_cs_config"; exit ;;
5213506e 19545 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
19546 debug=: ;;
19547 --file | --fil | --fi | --f )
19548 $ac_shift
5213506e
RW
19549 case $ac_optarg in
19550 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 19551 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
19552 esac
19553 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 19554 ac_need_defaults=false;;
5213506e
RW
19555 --he | --h | --help | --hel | -h )
19556 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
19557 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19558 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19559 ac_cs_silent=: ;;
19560
19561 # This is an error.
22e05272 19562 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 19563Try \`$0 --help' for more information." ;;
1c710c3c 19564
5213506e
RW
19565 *) as_fn_append ac_config_targets " $1"
19566 ac_need_defaults=false ;;
1c710c3c 19567
0b0dc272 19568 esac
1c710c3c 19569 shift
0b0dc272
AM
19570done
19571
1c710c3c 19572ac_configure_extra_args=
0b0dc272 19573
1c710c3c
DJ
19574if $ac_cs_silent; then
19575 exec 6>/dev/null
19576 ac_configure_extra_args="$ac_configure_extra_args --silent"
19577fi
0b0dc272 19578
1c710c3c 19579_ACEOF
5213506e 19580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 19581if \$ac_cs_recheck; then
22e05272 19582 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
19583 shift
19584 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19585 CONFIG_SHELL='$SHELL'
19586 export CONFIG_SHELL
19587 exec "\$@"
1c710c3c
DJ
19588fi
19589
19590_ACEOF
5213506e
RW
19591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19592exec 5>>config.log
19593{
19594 echo
19595 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19596## Running $as_me. ##
19597_ASBOX
19598 $as_echo "$ac_log"
19599} >&5
1c710c3c 19600
5213506e
RW
19601_ACEOF
19602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
19603#
19604# INIT-COMMANDS
19605#
19606extrasub_build="$extrasub_build"
19607 extrasub_host="$extrasub_host"
19608 extrasub_target="$extrasub_target"
19609
5213506e 19610_ACEOF
1c710c3c 19611
5213506e 19612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 19613
5213506e 19614# Handling of arguments.
1c710c3c
DJ
19615for ac_config_target in $ac_config_targets
19616do
5213506e
RW
19617 case $ac_config_target in
19618 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19619
22e05272 19620 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
19621 esac
19622done
19623
5213506e 19624
1c710c3c
DJ
19625# If the user did not use the arguments to specify the items to instantiate,
19626# then the envvar interface is used. Set only those that are not.
19627# We use the long form for the default assignment because of an extremely
19628# bizarre bug on SunOS 4.1.3.
19629if $ac_need_defaults; then
19630 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19631fi
19632
19633# Have a temporary directory for convenience. Make it in the build tree
5213506e 19634# simply because there is no reason against having it here, and in addition,
1c710c3c 19635# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
19636# Hook for its removal unless debugging.
19637# Note that there is a small window in which the directory will not be cleaned:
19638# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
19639$debug ||
19640{
22e05272 19641 tmp= ac_tmp=
5213506e 19642 trap 'exit_status=$?
22e05272
JM
19643 : "${ac_tmp:=$tmp}"
19644 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
19645' 0
19646 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 19647}
1c710c3c
DJ
19648# Create a (secure) tmp directory for tmp files.
19649
19650{
5213506e 19651 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 19652 test -d "$tmp"
1c710c3c
DJ
19653} ||
19654{
5213506e
RW
19655 tmp=./conf$$-$RANDOM
19656 (umask 077 && mkdir "$tmp")
22e05272
JM
19657} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19658ac_tmp=$tmp
5213506e
RW
19659
19660# Set up the scripts for CONFIG_FILES section.
19661# No need to generate them if there are no CONFIG_FILES.
19662# This happens for instance with `./config.status config.h'.
19663if test -n "$CONFIG_FILES"; then
19664
19665if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19666 ac_cs_awk_getline=:
19667 ac_cs_awk_pipe_init=
19668 ac_cs_awk_read_file='
19669 while ((getline aline < (F[key])) > 0)
19670 print(aline)
19671 close(F[key])'
19672 ac_cs_awk_pipe_fini=
19673else
19674 ac_cs_awk_getline=false
19675 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19676 ac_cs_awk_read_file='
19677 print "|#_!!_#|"
19678 print "cat " F[key] " &&"
19679 '$ac_cs_awk_pipe_init
19680 # The final `:' finishes the AND list.
19681 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19682fi
19683ac_cr=`echo X | tr X '\015'`
19684# On cygwin, bash can eat \r inside `` if the user requested igncr.
19685# But we know of no other shell where ac_cr would be empty at this
19686# point, so we can use a bashism as a fallback.
19687if test "x$ac_cr" = x; then
19688 eval ac_cr=\$\'\\r\'
19689fi
19690ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19691if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 19692 ac_cs_awk_cr='\\r'
5213506e
RW
19693else
19694 ac_cs_awk_cr=$ac_cr
19695fi
19696
22e05272 19697echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
19698_ACEOF
19699
19700# Create commands to substitute file output variables.
1c710c3c 19701{
5213506e 19702 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22e05272 19703 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
5213506e
RW
19704 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19705 echo "_ACAWK" &&
19706 echo "_ACEOF"
19707} >conf$$files.sh &&
19708. ./conf$$files.sh ||
22e05272 19709 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e 19710rm -f conf$$files.sh
1c710c3c 19711
5213506e
RW
19712{
19713 echo "cat >conf$$subs.awk <<_ACEOF" &&
19714 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19715 echo "_ACEOF"
19716} >conf$$subs.sh ||
22e05272
JM
19717 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19718ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
19719ac_delim='%!_!# '
19720for ac_last_try in false false false false false :; do
19721 . ./conf$$subs.sh ||
22e05272 19722 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
19723
19724 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19725 if test $ac_delim_n = $ac_delim_num; then
19726 break
19727 elif $ac_last_try; then
22e05272 19728 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
19729 else
19730 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19731 fi
19732done
19733rm -f conf$$subs.sh
19734
19735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 19736cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 19737_ACEOF
5213506e
RW
19738sed -n '
19739h
19740s/^/S["/; s/!.*/"]=/
19741p
19742g
19743s/^[^!]*!//
19744:repl
19745t repl
19746s/'"$ac_delim"'$//
19747t delim
19748:nl
19749h
22e05272 19750s/\(.\{148\}\)..*/\1/
5213506e
RW
19751t more1
19752s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19753p
19754n
19755b repl
19756:more1
19757s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19758p
19759g
19760s/.\{148\}//
19761t nl
19762:delim
19763h
22e05272 19764s/\(.\{148\}\)..*/\1/
5213506e
RW
19765t more2
19766s/["\\]/\\&/g; s/^/"/; s/$/"/
19767p
19768b
19769:more2
19770s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19771p
19772g
19773s/.\{148\}//
19774t delim
19775' <conf$$subs.awk | sed '
19776/^[^""]/{
19777 N
19778 s/\n//
19779}
19780' >>$CONFIG_STATUS || ac_write_fail=1
19781rm -f conf$$subs.awk
19782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19783_ACAWK
22e05272 19784cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
19785 for (key in S) S_is_set[key] = 1
19786 FS = "\a"
19787 \$ac_cs_awk_pipe_init
19788}
19789{
19790 line = $ 0
19791 nfields = split(line, field, "@")
19792 substed = 0
19793 len = length(field[1])
19794 for (i = 2; i < nfields; i++) {
19795 key = field[i]
19796 keylen = length(key)
19797 if (S_is_set[key]) {
19798 value = S[key]
19799 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19800 len += length(value) + length(field[++i])
19801 substed = 1
19802 } else
19803 len += 1 + keylen
19804 }
19805 if (nfields == 3 && !substed) {
19806 key = field[2]
19807 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19808 \$ac_cs_awk_read_file
19809 next
19810 }
19811 }
19812 print line
19813}
19814\$ac_cs_awk_pipe_fini
19815_ACAWK
19816_ACEOF
19817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19818if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19819 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19820else
19821 cat
22e05272
JM
19822fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19823 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
19824_ACEOF
19825
22e05272
JM
19826# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19827# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
19828# trailing colons and then remove the whole line if VPATH becomes empty
19829# (actually we leave an empty line to preserve line numbers).
19830if test "x$srcdir" = x.; then
22e05272
JM
19831 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19832h
19833s///
19834s/^/:/
19835s/[ ]*$/:/
19836s/:\$(srcdir):/:/g
19837s/:\${srcdir}:/:/g
19838s/:@srcdir@:/:/g
19839s/^:*//
5213506e 19840s/:*$//
22e05272
JM
19841x
19842s/\(=[ ]*\).*/\1/
19843G
19844s/\n//
5213506e
RW
19845s/^[^=]*=[ ]*$//
19846}'
19847fi
2aeb72e9 19848
5213506e
RW
19849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19850fi # test -n "$CONFIG_FILES"
2aeb72e9 19851
1c710c3c 19852
5213506e
RW
19853eval set X " :F $CONFIG_FILES "
19854shift
19855for ac_tag
19856do
19857 case $ac_tag in
19858 :[FHLC]) ac_mode=$ac_tag; continue;;
19859 esac
19860 case $ac_mode$ac_tag in
19861 :[FHL]*:*);;
22e05272 19862 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
19863 :[FH]-) ac_tag=-:-;;
19864 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19865 esac
19866 ac_save_IFS=$IFS
19867 IFS=:
19868 set x $ac_tag
19869 IFS=$ac_save_IFS
19870 shift
19871 ac_file=$1
19872 shift
79c06341 19873
5213506e
RW
19874 case $ac_mode in
19875 :L) ac_source=$1;;
19876 :[FH])
19877 ac_file_inputs=
19878 for ac_f
19879 do
19880 case $ac_f in
22e05272 19881 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
19882 *) # Look for the file first in the build tree, then in the source tree
19883 # (if the path is not absolute). The absolute path cannot be DOS-style,
19884 # because $ac_f cannot contain `:'.
19885 test -f "$ac_f" ||
19886 case $ac_f in
19887 [\\/$]*) false;;
19888 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19889 esac ||
22e05272 19890 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
19891 esac
19892 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19893 as_fn_append ac_file_inputs " '$ac_f'"
19894 done
1c710c3c 19895
5213506e
RW
19896 # Let's still pretend it is `configure' which instantiates (i.e., don't
19897 # use $as_me), people would be surprised to read:
19898 # /* config.h. Generated by config.status. */
19899 configure_input='Generated from '`
19900 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19901 `' by configure.'
19902 if test x"$ac_file" != x-; then
19903 configure_input="$ac_file. $configure_input"
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19905$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 19906 fi
5213506e
RW
19907 # Neutralize special characters interpreted by sed in replacement strings.
19908 case $configure_input in #(
19909 *\&* | *\|* | *\\* )
19910 ac_sed_conf_input=`$as_echo "$configure_input" |
19911 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19912 *) ac_sed_conf_input=$configure_input;;
19913 esac
11a67599 19914
5213506e 19915 case $ac_tag in
22e05272
JM
19916 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19917 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
19918 esac
19919 ;;
11a67599
ZW
19920 esac
19921
5213506e 19922 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
19923$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19924 X"$ac_file" : 'X\(//\)[^/]' \| \
19925 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
19926 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19927$as_echo X"$ac_file" |
19928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19929 s//\1/
19930 q
19931 }
19932 /^X\(\/\/\)[^/].*/{
19933 s//\1/
19934 q
19935 }
19936 /^X\(\/\/\)$/{
19937 s//\1/
19938 q
19939 }
19940 /^X\(\/\).*/{
19941 s//\1/
19942 q
19943 }
19944 s/.*/./; q'`
19945 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 19946 ac_builddir=.
0b0dc272 19947
5213506e
RW
19948case "$ac_dir" in
19949.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19950*)
19951 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19952 # A ".." for each directory in $ac_dir_suffix.
19953 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19954 case $ac_top_builddir_sub in
19955 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19956 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19957 esac ;;
19958esac
19959ac_abs_top_builddir=$ac_pwd
19960ac_abs_builddir=$ac_pwd$ac_dir_suffix
19961# for backward compatibility:
19962ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
19963
19964case $srcdir in
5213506e 19965 .) # We are building in place.
1c710c3c 19966 ac_srcdir=.
5213506e
RW
19967 ac_top_srcdir=$ac_top_builddir_sub
19968 ac_abs_top_srcdir=$ac_pwd ;;
19969 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 19970 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
19971 ac_top_srcdir=$srcdir
19972 ac_abs_top_srcdir=$srcdir ;;
19973 *) # Relative name.
19974 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19975 ac_top_srcdir=$ac_top_build_prefix$srcdir
19976 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 19977esac
5213506e 19978ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 19979
0b0dc272 19980
5213506e
RW
19981 case $ac_mode in
19982 :F)
19983 #
19984 # CONFIG_FILE
19985 #
1c710c3c
DJ
19986
19987 case $INSTALL in
19988 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 19989 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 19990 esac
5213506e 19991_ACEOF
11a67599 19992
5213506e
RW
19993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19994# If the template does not know about datarootdir, expand it.
19995# FIXME: This hack should be removed a few years after 2.60.
19996ac_datarootdir_hack=; ac_datarootdir_seen=
19997ac_sed_dataroot='
19998/datarootdir/ {
19999 p
20000 q
20001}
20002/@datadir@/p
20003/@docdir@/p
20004/@infodir@/p
20005/@localedir@/p
20006/@mandir@/p'
20007case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20008*datarootdir*) ac_datarootdir_seen=yes;;
20009*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20011$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 20012_ACEOF
5213506e
RW
20013cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20014 ac_datarootdir_hack='
20015 s&@datadir@&$datadir&g
20016 s&@docdir@&$docdir&g
20017 s&@infodir@&$infodir&g
20018 s&@localedir@&$localedir&g
20019 s&@mandir@&$mandir&g
20020 s&\\\${datarootdir}&$datarootdir&g' ;;
20021esac
20022_ACEOF
20023
20024# Neutralize VPATH when `$srcdir' = `.'.
20025# Shell code in configure.ac might set extrasub.
20026# FIXME: do we really want to maintain this feature?
20027cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20028ac_sed_extra="$ac_vpsub
1c710c3c
DJ
20029$extrasub
20030_ACEOF
5213506e 20031cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
20032:t
20033/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
20034s|@configure_input@|$ac_sed_conf_input|;t t
20035s&@top_builddir@&$ac_top_builddir_sub&;t t
20036s&@top_build_prefix@&$ac_top_build_prefix&;t t
20037s&@srcdir@&$ac_srcdir&;t t
20038s&@abs_srcdir@&$ac_abs_srcdir&;t t
20039s&@top_srcdir@&$ac_top_srcdir&;t t
20040s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20041s&@builddir@&$ac_builddir&;t t
20042s&@abs_builddir@&$ac_abs_builddir&;t t
20043s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20044s&@INSTALL@&$ac_INSTALL&;t t
20045$ac_datarootdir_hack
20046"
20047eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20048if $ac_cs_awk_getline; then
22e05272 20049 $AWK -f "$ac_tmp/subs.awk"
5213506e 20050else
22e05272
JM
20051 $AWK -f "$ac_tmp/subs.awk" | $SHELL
20052fi \
20053 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
20054
20055test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
20056 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20057 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20058 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 20059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 20060which seems to be undefined. Please make sure it is defined" >&5
5213506e 20061$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 20062which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 20063
22e05272 20064 rm -f "$ac_tmp/stdin"
5213506e 20065 case $ac_file in
22e05272
JM
20066 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20067 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 20068 esac \
22e05272 20069 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 20070 ;;
11a67599 20071
11a67599 20072
79c06341 20073
5213506e
RW
20074 esac
20075
3e54529c
RW
20076
20077 case $ac_file$ac_mode in
20078 "Makefile":F) sed "$extrasub_build" Makefile |
20079 sed "$extrasub_host" |
20080 sed "$extrasub_target" > mf$$
20081 mv -f mf$$ Makefile ;;
20082
20083 esac
5213506e
RW
20084done # for ac_tag
20085
20086
20087as_fn_exit 0
1c710c3c 20088_ACEOF
1c710c3c
DJ
20089ac_clean_files=$ac_clean_files_save
20090
5213506e 20091test $ac_write_fail = 0 ||
22e05272 20092 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 20093
1c710c3c
DJ
20094
20095# configure is writing to config.log, and then calls config.status.
20096# config.status does its own redirection, appending to config.log.
20097# Unfortunately, on DOS this fails, as config.log is still kept open
20098# by configure, so config.status won't be able to write to it; its
20099# output is simply discarded. So we exec the FD to /dev/null,
20100# effectively closing config.log, so it can be properly (re)opened and
20101# appended to by config.status. When coming back to configure, we
20102# need to make the FD available again.
20103if test "$no_create" != yes; then
20104 ac_cs_success=:
20105 ac_config_status_args=
20106 test "$silent" = yes &&
20107 ac_config_status_args="$ac_config_status_args --quiet"
20108 exec 5>/dev/null
20109 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20110 exec 5>>config.log
20111 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20112 # would make configure fail if this is the last instruction.
22e05272 20113 $ac_cs_success || as_fn_exit 1
5213506e
RW
20114fi
20115if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20117$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 20118fi
79c06341 20119