]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
Adjust CPP_FOR_BUILD
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5213506e 7#
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
1c710c3c
DJ
79fi
80
81
5213506e
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
22e05272 90as_myself=
5213506e
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
1c710c3c
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
5213506e
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
5213506e
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
5213506e
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
87264276
PB
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
5213506e
RW
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1c710c3c 211do
5213506e
RW
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
5213506e
RW
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1c710c3c 266 else
5213506e
RW
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
1c710c3c 271 fi
5213506e
RW
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
1c710c3c 301
5213506e
RW
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e
RW
356
357
358} # as_fn_mkdir_p
22e05272
JM
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
5213506e
RW
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
22e05272
JM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
5213506e
RW
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 407# script with STATUS, using 1 if that was 0.
5213506e
RW
408as_fn_error ()
409{
22e05272
JM
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5213506e 414 fi
22e05272 415 $as_echo "$as_me: error: $2" >&2
5213506e
RW
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
421 as_expr=expr
422else
423 as_expr=false
424fi
425
5213506e 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
427 as_basename=basename
428else
429 as_basename=false
430fi
431
5213506e
RW
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
1c710c3c 437
5213506e 438as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
5213506e
RW
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
1c710c3c 456
2aeb72e9
DD
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 463
1c710c3c 464
5213506e
RW
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
1c710c3c 474 sed '
5213506e
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
1c710c3c 479 N
5213506e
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 482 t loop
5213506e 483 s/-\n.*//
1c710c3c 484 ' >$as_me.lineno &&
5213506e
RW
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1c710c3c 487
22e05272
JM
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
1c710c3c
DJ
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
1c710c3c
DJ
496 # Exit status is that of the last command.
497 exit
498}
499
5213506e
RW
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
1c710c3c
DJ
511esac
512
5213506e
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
1c710c3c 516else
5213506e
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
1c710c3c 519fi
5213506e
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 522 as_ln_s='ln -s'
5213506e
RW
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 526 # In both cases, we have to default to `cp -pR'.
5213506e 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 528 as_ln_s='cp -pR'
5213506e
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
22e05272 532 as_ln_s='cp -pR'
2aeb72e9 533 fi
1c710c3c 534else
22e05272 535 as_ln_s='cp -pR'
1c710c3c 536fi
5213506e
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
539
540if mkdir -p . 2>/dev/null; then
5213506e 541 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
22e05272
JM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
0b0dc272 549
1c710c3c
DJ
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
22e05272
JM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
1c710c3c
DJ
559
560# Name of the host.
22e05272 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1c710c3c
DJ
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
1c710c3c
DJ
565#
566# Initializations.
567#
671aa708 568ac_default_prefix=/usr/local
5213506e 569ac_clean_files=
1c710c3c 570ac_config_libobj_dir=.
5213506e 571LIBOBJS=
1c710c3c
DJ
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
2aeb72e9 576
1c710c3c
DJ
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
5213506e 583PACKAGE_URL=
1c710c3c
DJ
584
585ac_unique_file="move-if-change"
5213506e
RW
586enable_option_checking=no
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589compare_exclusions
590stage2_werror_flag
591stage1_checking
592stage1_cflags
593MAINT
594MAINTAINER_MODE_FALSE
595MAINTAINER_MODE_TRUE
596COMPILER_NM_FOR_TARGET
597COMPILER_LD_FOR_TARGET
598COMPILER_AS_FOR_TARGET
599FLAGS_FOR_TARGET
600RAW_CXX_FOR_TARGET
601WINDMC_FOR_TARGET
602WINDRES_FOR_TARGET
603STRIP_FOR_TARGET
e7a82751 604READELF_FOR_TARGET
5213506e 605RANLIB_FOR_TARGET
e4a9a572 606OTOOL_FOR_TARGET
5213506e 607OBJDUMP_FOR_TARGET
9bccfdf5 608OBJCOPY_FOR_TARGET
5213506e
RW
609NM_FOR_TARGET
610LIPO_FOR_TARGET
611LD_FOR_TARGET
3b5e8ee4 612DSYMUTIL_FOR_TARGET
5213506e
RW
613DLLTOOL_FOR_TARGET
614AS_FOR_TARGET
615AR_FOR_TARGET
b4c522fa 616GDC_FOR_TARGET
632e2a07 617GOC_FOR_TARGET
5213506e 618GFORTRAN_FOR_TARGET
5213506e
RW
619GCC_FOR_TARGET
620CXX_FOR_TARGET
621CC_FOR_TARGET
5fee5ec3 622GDCFLAGS
e7a82751 623READELF
e4a9a572 624OTOOL
5213506e
RW
625OBJDUMP
626OBJCOPY
627WINDMC
628WINDRES
629STRIP
630RANLIB
631NM
632LIPO
633LD
3b5e8ee4 634DSYMUTIL
5213506e
RW
635DLLTOOL
636AS
637AR
638RUNTEST
639EXPECT
640MAKEINFO
641FLEX
642LEX
643M4
644BISON
645YACC
5213506e
RW
646WINDRES_FOR_BUILD
647WINDMC_FOR_BUILD
648RANLIB_FOR_BUILD
649NM_FOR_BUILD
650LD_FOR_BUILD
651LDFLAGS_FOR_BUILD
b4c522fa 652GDC_FOR_BUILD
632e2a07 653GOC_FOR_BUILD
5213506e 654GFORTRAN_FOR_BUILD
3b5e8ee4 655DSYMUTIL_FOR_BUILD
5213506e
RW
656DLLTOOL_FOR_BUILD
657CXX_FOR_BUILD
658CXXFLAGS_FOR_BUILD
84401ce5
RP
659CPPFLAGS_FOR_BUILD
660CPP_FOR_BUILD
5213506e
RW
661CFLAGS_FOR_BUILD
662CC_FOR_BUILD
663AS_FOR_BUILD
664AR_FOR_BUILD
aae29963 665target_configdirs
5213506e 666configdirs
5213506e 667build_configdirs
5213506e
RW
668INSTALL_GDB_TK
669GDB_TK
670CONFIGURE_GDB_TK
671build_tooldir
672tooldir
673GCC_SHLIB_SUBDIR
674RPATH_ENVVAR
ffedf511
RW
675target_configargs
676host_configargs
677build_configargs
e12c4094 678BUILD_CONFIG
6f57bdf6 679LDFLAGS_FOR_TARGET
5213506e
RW
680CXXFLAGS_FOR_TARGET
681CFLAGS_FOR_TARGET
682DEBUG_PREFIX_CFLAGS_FOR_TARGET
683SYSROOT_CFLAGS_FOR_TARGET
3c36aa6b 684get_gcc_base_ver
1c01ebf6 685extra_host_zlib_configure_flags
d7f09764 686extra_host_libiberty_configure_flags
fca38047 687stage1_languages
cdfee50a 688host_shared
45b3824d
TS
689extra_linker_plugin_flags
690extra_linker_plugin_configure_flags
33ad93b9 691islinc
eae1a5d4 692isllibs
5213506e 693poststage1_ldflags
ed2eaa9f 694poststage1_libs
5213506e 695stage1_ldflags
0b21f5d3 696stage1_libs
0ff2d841 697extra_isl_gmp_configure_flags
5213506e
RW
698extra_mpc_mpfr_configure_flags
699extra_mpc_gmp_configure_flags
700extra_mpfr_configure_flags
701gmpinc
702gmplibs
7ffcf5d6 703HAVE_CXX11_FOR_BUILD
ffac9597 704HAVE_CXX11
5213506e 705do_compare
5fee5ec3 706GDC
5213506e
RW
707GNATMAKE
708GNATBIND
709ac_ct_CXX
710CXXFLAGS
711CXX
712OBJEXT
713EXEEXT
714ac_ct_CC
715CPPFLAGS
716LDFLAGS
717CFLAGS
718CC
5f520819 719extra_liboffloadmic_configure_flags
5213506e
RW
720target_subdir
721host_subdir
722build_subdir
723build_libsubdir
87264276
PB
724AWK
725SED
5213506e
RW
726LN_S
727LN
728INSTALL_DATA
729INSTALL_SCRIPT
730INSTALL_PROGRAM
731target_os
732target_vendor
733target_cpu
734target
735host_os
736host_vendor
737host_cpu
738host
739target_noncanonical
740host_noncanonical
741build_noncanonical
742build_os
743build_vendor
744build_cpu
745build
746TOPLEVEL_CONFIGURE_ARGUMENTS
747target_alias
748host_alias
749build_alias
750LIBS
751ECHO_T
752ECHO_N
753ECHO_C
754DEFS
755mandir
756localedir
757libdir
758psdir
759pdfdir
760dvidir
761htmldir
762infodir
763docdir
764oldincludedir
765includedir
766localstatedir
767sharedstatedir
768sysconfdir
769datadir
770datarootdir
771libexecdir
772sbindir
773bindir
774program_transform_name
775prefix
776exec_prefix
777PACKAGE_URL
778PACKAGE_BUGREPORT
779PACKAGE_STRING
780PACKAGE_VERSION
781PACKAGE_TARNAME
782PACKAGE_NAME
783PATH_SEPARATOR
784SHELL'
785ac_subst_files='serialization_dependencies
786host_makefile_frag
787target_makefile_frag
788alphaieee_frag
789ospace_frag'
790ac_user_opts='
791enable_option_checking
792with_build_libsubdir
a05c2c75 793with_system_zlib
85c64bbe
BS
794enable_as_accelerator_for
795enable_offload_targets
fe5bfa67 796enable_offload_defaulted
5213506e 797enable_gold
21539e2e 798enable_ld
78edb32f 799enable_compressed_debug_sections
87e6d9dc
TB
800enable_libquadmath
801enable_libquadmath_support
5213506e
RW
802enable_libada
803enable_libssp
1873ec0c 804enable_libstdcxx
5f520819 805enable_liboffloadmic
ff3ac0f4 806enable_bootstrap
5213506e
RW
807with_mpc
808with_mpc_include
809with_mpc_lib
810with_mpfr_dir
811with_mpfr
812with_mpfr_include
813with_mpfr_lib
814with_gmp_dir
815with_gmp
816with_gmp_include
817with_gmp_lib
5213506e 818with_stage1_libs
aac9103b 819with_static_standard_libraries
0b21f5d3 820with_stage1_ldflags
5213506e 821with_boot_libs
ed2eaa9f 822with_boot_ldflags
33ad93b9
RG
823with_isl
824with_isl_include
825with_isl_lib
826enable_isl_version_check
d7f09764 827enable_lto
45b3824d
TS
828enable_linker_plugin_configure_flags
829enable_linker_plugin_flags
cdfee50a 830enable_host_shared
5213506e 831enable_stage1_languages
43c40f3e 832enable_objc_gc
114bf3f1
MK
833with_target_bdw_gc
834with_target_bdw_gc_include
835with_target_bdw_gc_lib
3c36aa6b 836with_gcc_major_version_only
5213506e
RW
837with_build_sysroot
838with_debug_prefix_map
5646b7b9 839with_build_config
beeda1d9 840enable_vtable_verify
5213506e
RW
841enable_serial_configure
842with_build_time_tools
843enable_maintainer_mode
844enable_stage1_checking
845enable_werror
5213506e
RW
846'
847 ac_precious_vars='build_alias
848host_alias
849target_alias
850CC
851CFLAGS
852LDFLAGS
853LIBS
854CPPFLAGS
855CXX
856CXXFLAGS
857CCC
ffedf511
RW
858build_configargs
859host_configargs
860target_configargs
5213506e
RW
861AR
862AS
863DLLTOOL
3b5e8ee4 864DSYMUTIL
5213506e
RW
865LD
866LIPO
867NM
868RANLIB
869STRIP
870WINDRES
871WINDMC
872OBJCOPY
873OBJDUMP
e4a9a572 874OTOOL
e7a82751 875READELF
5213506e
RW
876CC_FOR_TARGET
877CXX_FOR_TARGET
878GCC_FOR_TARGET
5213506e 879GFORTRAN_FOR_TARGET
632e2a07 880GOC_FOR_TARGET
b4c522fa 881GDC_FOR_TARGET
5213506e
RW
882AR_FOR_TARGET
883AS_FOR_TARGET
884DLLTOOL_FOR_TARGET
3b5e8ee4 885DSYMUTIL_FOR_TARGET
5213506e
RW
886LD_FOR_TARGET
887LIPO_FOR_TARGET
888NM_FOR_TARGET
9bccfdf5 889OBJCOPY_FOR_TARGET
5213506e 890OBJDUMP_FOR_TARGET
e4a9a572 891OTOOL_FOR_TARGET
5213506e 892RANLIB_FOR_TARGET
e7a82751 893READELF_FOR_TARGET
5213506e
RW
894STRIP_FOR_TARGET
895WINDRES_FOR_TARGET
896WINDMC_FOR_TARGET'
897
671aa708
NN
898
899# Initialize some variables set by options.
1c710c3c
DJ
900ac_init_help=
901ac_init_version=false
5213506e
RW
902ac_unrecognized_opts=
903ac_unrecognized_sep=
671aa708
NN
904# The variables have the same names as the options, with
905# dashes changed to underlines.
1c710c3c 906cache_file=/dev/null
671aa708 907exec_prefix=NONE
671aa708 908no_create=
671aa708
NN
909no_recursion=
910prefix=NONE
911program_prefix=NONE
912program_suffix=NONE
913program_transform_name=s,x,x,
914silent=
915site=
916srcdir=
671aa708
NN
917verbose=
918x_includes=NONE
919x_libraries=NONE
1c710c3c
DJ
920
921# Installation directory options.
922# These are left unexpanded so users can "make install exec_prefix=/foo"
923# and all the variables that are supposed to be based on exec_prefix
924# by default will actually change.
925# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 926# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
927bindir='${exec_prefix}/bin'
928sbindir='${exec_prefix}/sbin'
929libexecdir='${exec_prefix}/libexec'
5213506e
RW
930datarootdir='${prefix}/share'
931datadir='${datarootdir}'
671aa708
NN
932sysconfdir='${prefix}/etc'
933sharedstatedir='${prefix}/com'
934localstatedir='${prefix}/var'
671aa708
NN
935includedir='${prefix}/include'
936oldincludedir='/usr/include'
5213506e
RW
937docdir='${datarootdir}/doc/${PACKAGE}'
938infodir='${datarootdir}/info'
939htmldir='${docdir}'
940dvidir='${docdir}'
941pdfdir='${docdir}'
942psdir='${docdir}'
943libdir='${exec_prefix}/lib'
944localedir='${datarootdir}/locale'
945mandir='${datarootdir}/man'
79c06341 946
671aa708 947ac_prev=
5213506e 948ac_dashdash=
671aa708
NN
949for ac_option
950do
671aa708
NN
951 # If the previous option needs an argument, assign it.
952 if test -n "$ac_prev"; then
5213506e 953 eval $ac_prev=\$ac_option
671aa708
NN
954 ac_prev=
955 continue
956 fi
79c06341 957
5213506e 958 case $ac_option in
22e05272
JM
959 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 *=) ac_optarg= ;;
961 *) ac_optarg=yes ;;
5213506e 962 esac
671aa708
NN
963
964 # Accept the important Cygnus configure options, so we can diagnose typos.
965
5213506e
RW
966 case $ac_dashdash$ac_option in
967 --)
968 ac_dashdash=yes ;;
671aa708
NN
969
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 ac_prev=bindir ;;
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 973 bindir=$ac_optarg ;;
671aa708
NN
974
975 -build | --build | --buil | --bui | --bu)
1c710c3c 976 ac_prev=build_alias ;;
671aa708 977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 978 build_alias=$ac_optarg ;;
671aa708
NN
979
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
985 cache_file=$ac_optarg ;;
986
987 --config-cache | -C)
988 cache_file=config.cache ;;
671aa708 989
5213506e 990 -datadir | --datadir | --datadi | --datad)
671aa708 991 ac_prev=datadir ;;
5213506e 992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 993 datadir=$ac_optarg ;;
671aa708 994
5213506e
RW
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1001
671aa708 1002 -disable-* | --disable-*)
5213506e 1003 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 1004 # Reject names that are not valid shell variable names.
5213506e 1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1006 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1010 *"
1011"enable_$ac_useropt"
1012"*) ;;
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1015 esac
1016 eval enable_$ac_useropt=no ;;
1017
1018 -docdir | --docdir | --docdi | --doc | --do)
1019 ac_prev=docdir ;;
1020 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021 docdir=$ac_optarg ;;
1022
1023 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024 ac_prev=dvidir ;;
1025 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026 dvidir=$ac_optarg ;;
671aa708
NN
1027
1028 -enable-* | --enable-*)
5213506e 1029 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 1030 # Reject names that are not valid shell variable names.
5213506e 1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1032 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1036 *"
1037"enable_$ac_useropt"
1038"*) ;;
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
2aeb72e9 1041 esac
5213506e 1042 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1043
1044 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046 | --exec | --exe | --ex)
1047 ac_prev=exec_prefix ;;
1048 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050 | --exec=* | --exe=* | --ex=*)
1c710c3c 1051 exec_prefix=$ac_optarg ;;
671aa708
NN
1052
1053 -gas | --gas | --ga | --g)
1054 # Obsolete; use --with-gas.
1055 with_gas=yes ;;
1056
1c710c3c
DJ
1057 -help | --help | --hel | --he | -h)
1058 ac_init_help=long ;;
1059 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060 ac_init_help=recursive ;;
1061 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062 ac_init_help=short ;;
671aa708
NN
1063
1064 -host | --host | --hos | --ho)
1c710c3c 1065 ac_prev=host_alias ;;
671aa708 1066 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1067 host_alias=$ac_optarg ;;
671aa708 1068
5213506e
RW
1069 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070 ac_prev=htmldir ;;
1071 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072 | --ht=*)
1073 htmldir=$ac_optarg ;;
1074
671aa708
NN
1075 -includedir | --includedir | --includedi | --included | --include \
1076 | --includ | --inclu | --incl | --inc)
1077 ac_prev=includedir ;;
1078 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1080 includedir=$ac_optarg ;;
671aa708
NN
1081
1082 -infodir | --infodir | --infodi | --infod | --info | --inf)
1083 ac_prev=infodir ;;
1084 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1085 infodir=$ac_optarg ;;
671aa708
NN
1086
1087 -libdir | --libdir | --libdi | --libd)
1088 ac_prev=libdir ;;
1089 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1090 libdir=$ac_optarg ;;
671aa708
NN
1091
1092 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093 | --libexe | --libex | --libe)
1094 ac_prev=libexecdir ;;
1095 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1097 libexecdir=$ac_optarg ;;
671aa708 1098
5213506e
RW
1099 -localedir | --localedir | --localedi | --localed | --locale)
1100 ac_prev=localedir ;;
1101 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102 localedir=$ac_optarg ;;
1103
671aa708 1104 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1105 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1106 ac_prev=localstatedir ;;
1107 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1108 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1109 localstatedir=$ac_optarg ;;
671aa708
NN
1110
1111 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112 ac_prev=mandir ;;
1113 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1114 mandir=$ac_optarg ;;
671aa708
NN
1115
1116 -nfp | --nfp | --nf)
1117 # Obsolete; use --without-fp.
1118 with_fp=no ;;
1119
1120 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1121 | --no-cr | --no-c | -n)
671aa708
NN
1122 no_create=yes ;;
1123
1124 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126 no_recursion=yes ;;
1127
1128 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130 | --oldin | --oldi | --old | --ol | --o)
1131 ac_prev=oldincludedir ;;
1132 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1135 oldincludedir=$ac_optarg ;;
671aa708
NN
1136
1137 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138 ac_prev=prefix ;;
1139 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1140 prefix=$ac_optarg ;;
671aa708
NN
1141
1142 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143 | --program-pre | --program-pr | --program-p)
1144 ac_prev=program_prefix ;;
1145 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1147 program_prefix=$ac_optarg ;;
671aa708
NN
1148
1149 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150 | --program-suf | --program-su | --program-s)
1151 ac_prev=program_suffix ;;
1152 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1154 program_suffix=$ac_optarg ;;
671aa708
NN
1155
1156 -program-transform-name | --program-transform-name \
1157 | --program-transform-nam | --program-transform-na \
1158 | --program-transform-n | --program-transform- \
1159 | --program-transform | --program-transfor \
1160 | --program-transfo | --program-transf \
1161 | --program-trans | --program-tran \
1162 | --progr-tra | --program-tr | --program-t)
1163 ac_prev=program_transform_name ;;
1164 -program-transform-name=* | --program-transform-name=* \
1165 | --program-transform-nam=* | --program-transform-na=* \
1166 | --program-transform-n=* | --program-transform-=* \
1167 | --program-transform=* | --program-transfor=* \
1168 | --program-transfo=* | --program-transf=* \
1169 | --program-trans=* | --program-tran=* \
1170 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1171 program_transform_name=$ac_optarg ;;
671aa708 1172
5213506e
RW
1173 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174 ac_prev=pdfdir ;;
1175 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176 pdfdir=$ac_optarg ;;
1177
1178 -psdir | --psdir | --psdi | --psd | --ps)
1179 ac_prev=psdir ;;
1180 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181 psdir=$ac_optarg ;;
1182
671aa708
NN
1183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184 | -silent | --silent | --silen | --sile | --sil)
1185 silent=yes ;;
1186
1187 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188 ac_prev=sbindir ;;
1189 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190 | --sbi=* | --sb=*)
1c710c3c 1191 sbindir=$ac_optarg ;;
671aa708
NN
1192
1193 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195 | --sharedst | --shareds | --shared | --share | --shar \
1196 | --sha | --sh)
1197 ac_prev=sharedstatedir ;;
1198 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201 | --sha=* | --sh=*)
1c710c3c 1202 sharedstatedir=$ac_optarg ;;
671aa708
NN
1203
1204 -site | --site | --sit)
1205 ac_prev=site ;;
1206 -site=* | --site=* | --sit=*)
1c710c3c 1207 site=$ac_optarg ;;
671aa708
NN
1208
1209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210 ac_prev=srcdir ;;
1211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1212 srcdir=$ac_optarg ;;
671aa708
NN
1213
1214 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215 | --syscon | --sysco | --sysc | --sys | --sy)
1216 ac_prev=sysconfdir ;;
1217 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1219 sysconfdir=$ac_optarg ;;
671aa708
NN
1220
1221 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1222 ac_prev=target_alias ;;
671aa708 1223 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1224 target_alias=$ac_optarg ;;
671aa708
NN
1225
1226 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227 verbose=yes ;;
1228
1c710c3c
DJ
1229 -version | --version | --versio | --versi | --vers | -V)
1230 ac_init_version=: ;;
671aa708
NN
1231
1232 -with-* | --with-*)
5213506e 1233 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1234 # Reject names that are not valid shell variable names.
5213506e 1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1236 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1240 *"
1241"with_$ac_useropt"
1242"*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
2aeb72e9 1245 esac
5213506e 1246 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1247
1248 -without-* | --without-*)
5213506e 1249 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1250 # Reject names that are not valid shell variable names.
5213506e 1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1252 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1256 *"
1257"with_$ac_useropt"
1258"*) ;;
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1261 esac
1262 eval with_$ac_useropt=no ;;
671aa708
NN
1263
1264 --x)
1265 # Obsolete; use --with-x.
1266 with_x=yes ;;
1267
1268 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269 | --x-incl | --x-inc | --x-in | --x-i)
1270 ac_prev=x_includes ;;
1271 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1273 x_includes=$ac_optarg ;;
671aa708
NN
1274
1275 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277 ac_prev=x_libraries ;;
1278 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1280 x_libraries=$ac_optarg ;;
671aa708 1281
22e05272
JM
1282 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1283Try \`$0 --help' for more information"
671aa708
NN
1284 ;;
1285
1c710c3c
DJ
1286 *=*)
1287 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288 # Reject names that are not valid shell variable names.
5213506e
RW
1289 case $ac_envvar in #(
1290 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1291 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1292 esac
1293 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1294 export $ac_envvar ;;
1295
671aa708 1296 *)
1c710c3c 1297 # FIXME: should be removed in autoconf 3.0.
5213506e 1298 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1299 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1300 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1301 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
671aa708
NN
1302 ;;
1303
1304 esac
1305done
1306
1307if test -n "$ac_prev"; then
1c710c3c 1308 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1309 as_fn_error $? "missing argument to $ac_option"
af71363e 1310fi
af71363e 1311
5213506e
RW
1312if test -n "$ac_unrecognized_opts"; then
1313 case $enable_option_checking in
1314 no) ;;
22e05272 1315 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1316 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1317 esac
5213506e 1318fi
2aeb72e9 1319
5213506e
RW
1320# Check all directory arguments for consistency.
1321for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1322 datadir sysconfdir sharedstatedir localstatedir includedir \
1323 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1324 libdir localedir mandir
2aeb72e9 1325do
5213506e
RW
1326 eval ac_val=\$$ac_var
1327 # Remove trailing slashes.
1328 case $ac_val in
1329 */ )
1330 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1331 eval $ac_var=\$ac_val;;
1332 esac
1333 # Be sure to have absolute directory names.
2aeb72e9 1334 case $ac_val in
5213506e
RW
1335 [\\/$]* | ?:[\\/]* ) continue;;
1336 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1337 esac
22e05272 1338 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1339done
1340
1c710c3c
DJ
1341# There might be people who depend on the old broken behavior: `$host'
1342# used to hold the argument of --host etc.
1343# FIXME: To remove some day.
1344build=$build_alias
1345host=$host_alias
1346target=$target_alias
0b0dc272 1347
1c710c3c
DJ
1348# FIXME: To remove some day.
1349if test "x$host_alias" != x; then
1350 if test "x$build_alias" = x; then
1351 cross_compiling=maybe
1c710c3c
DJ
1352 elif test "x$build_alias" != "x$host_alias"; then
1353 cross_compiling=yes
1354 fi
1355fi
1356
1357ac_tool_prefix=
1358test -n "$host_alias" && ac_tool_prefix=$host_alias-
1359
1360test "$silent" = yes && exec 6>/dev/null
671aa708 1361
671aa708 1362
5213506e
RW
1363ac_pwd=`pwd` && test -n "$ac_pwd" &&
1364ac_ls_di=`ls -di .` &&
1365ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1366 as_fn_error $? "working directory cannot be determined"
5213506e 1367test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1368 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1369
1370
671aa708
NN
1371# Find the source files, if location was not specified.
1372if test -z "$srcdir"; then
1373 ac_srcdir_defaulted=yes
5213506e
RW
1374 # Try the directory containing this script, then the parent directory.
1375 ac_confdir=`$as_dirname -- "$as_myself" ||
1376$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377 X"$as_myself" : 'X\(//\)[^/]' \| \
1378 X"$as_myself" : 'X\(//\)$' \| \
1379 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1380$as_echo X"$as_myself" |
1381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382 s//\1/
1383 q
1384 }
1385 /^X\(\/\/\)[^/].*/{
1386 s//\1/
1387 q
1388 }
1389 /^X\(\/\/\)$/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\).*/{
1394 s//\1/
1395 q
1396 }
1397 s/.*/./; q'`
671aa708 1398 srcdir=$ac_confdir
5213506e 1399 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1400 srcdir=..
1401 fi
1402else
1403 ac_srcdir_defaulted=no
1404fi
5213506e
RW
1405if test ! -r "$srcdir/$ac_unique_file"; then
1406 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1407 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1408fi
1409ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1410ac_abs_confdir=`(
22e05272 1411 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1412 pwd)`
1413# When building in place, set srcdir=.
1414if test "$ac_abs_confdir" = "$ac_pwd"; then
1415 srcdir=.
1416fi
1417# Remove unnecessary trailing slashes from srcdir.
1418# Double slashes in file names in object file debugging info
1419# mess up M-x gdb in Emacs.
1420case $srcdir in
1421*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422esac
87841584
AM
1423case $srcdir in
1424 *" "*)
22e05272 1425 as_fn_error $? "path to source, $srcdir, contains spaces"
87841584
AM
1426 ;;
1427esac
ac9e6043
RW
1428ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1429
5213506e
RW
1430for ac_var in $ac_precious_vars; do
1431 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1432 eval ac_env_${ac_var}_value=\$${ac_var}
1433 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1435done
1c710c3c
DJ
1436
1437#
1438# Report the --help message.
1439#
1440if test "$ac_init_help" = "long"; then
1441 # Omit some internal or obsolete options to make the list less imposing.
1442 # This message is too long to be a string in the A/UX 3.1 sh.
1443 cat <<_ACEOF
1444\`configure' configures this package to adapt to many kinds of systems.
1445
1446Usage: $0 [OPTION]... [VAR=VALUE]...
1447
1448To assign environment variables (e.g., CC, CFLAGS...), specify them as
1449VAR=VALUE. See below for descriptions of some of the useful variables.
1450
1451Defaults for the options are specified in brackets.
1452
1453Configuration:
1454 -h, --help display this help and exit
1455 --help=short display options specific to this package
1456 --help=recursive display the short help of all the included packages
1457 -V, --version display version information and exit
22e05272 1458 -q, --quiet, --silent do not print \`checking ...' messages
1c710c3c
DJ
1459 --cache-file=FILE cache test results in FILE [disabled]
1460 -C, --config-cache alias for \`--cache-file=config.cache'
1461 -n, --no-create do not create output files
1462 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1463
1c710c3c
DJ
1464Installation directories:
1465 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1466 [$ac_default_prefix]
1c710c3c 1467 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1468 [PREFIX]
1c710c3c
DJ
1469
1470By default, \`make install' will install all the files in
1471\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1472an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1473for instance \`--prefix=\$HOME'.
1474
1475For better control, use the options below.
1476
1477Fine tuning of the installation directories:
5213506e
RW
1478 --bindir=DIR user executables [EPREFIX/bin]
1479 --sbindir=DIR system admin executables [EPREFIX/sbin]
1480 --libexecdir=DIR program executables [EPREFIX/libexec]
1481 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1482 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1483 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1484 --libdir=DIR object code libraries [EPREFIX/lib]
1485 --includedir=DIR C header files [PREFIX/include]
1486 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1487 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1488 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1489 --infodir=DIR info documentation [DATAROOTDIR/info]
1490 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1491 --mandir=DIR man documentation [DATAROOTDIR/man]
1492 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1493 --htmldir=DIR html documentation [DOCDIR]
1494 --dvidir=DIR dvi documentation [DOCDIR]
1495 --pdfdir=DIR pdf documentation [DOCDIR]
1496 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1497_ACEOF
1498
1499 cat <<\_ACEOF
1500
1501Program names:
1502 --program-prefix=PREFIX prepend PREFIX to installed program names
1503 --program-suffix=SUFFIX append SUFFIX to installed program names
1504 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1505
1506System types:
1507 --build=BUILD configure for building on BUILD [guessed]
1508 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1509 --target=TARGET configure for building compilers for TARGET [HOST]
1510_ACEOF
1511fi
1512
1513if test -n "$ac_init_help"; then
1514
1515 cat <<\_ACEOF
1516
1517Optional Features:
5213506e 1518 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1519 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1520 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1521 --enable-as-accelerator-for=ARG
1522 build as offload target compiler. Specify offload
1523 host triple by ARG
1524 --enable-offload-targets=LIST
1525 enable offloading to devices from comma-separated
1526 LIST of TARGET[=DIR]. Use optional path to find
1527 offload target compiler during the build
fe5bfa67
TB
1528 --enable-offload-defaulted
1529 If enabled, configured but not installed offload compilers and
1530 libgomp plugins are silently ignored. Useful for distribution
1531 compilers where those are in separate optional packages.
1532
21539e2e 1533 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1534 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1535 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1536 Enable compressed debug sections for gas, gold or ld
1537 by default
87e6d9dc
TB
1538 --disable-libquadmath do not build libquadmath directory
1539 --disable-libquadmath-support
1540 disable libquadmath support for Fortran
30b74385
RW
1541 --enable-libada build libada directory
1542 --enable-libssp build libssp directory
1873ec0c 1543 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1544 --enable-liboffloadmic=ARG
1545 build liboffloadmic [ARG={no,host,target}]
ff3ac0f4 1546 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9 1547 --disable-isl-version-check
560d18d3 1548 disable check for isl version
d7f09764 1549 --enable-lto enable link time optimization support
45b3824d
TS
1550 --enable-linker-plugin-configure-flags=FLAGS
1551 additional flags for configuring linker plugins
1552 [none]
1553 --enable-linker-plugin-flags=FLAGS
1554 additional flags for configuring and building linker
1555 plugins [none]
cdfee50a 1556 --enable-host-shared build host code as shared libraries
33e39b66
AS
1557 --enable-stage1-languages[=all]
1558 choose additional languages to build during stage1.
1559 Mostly useful for compiler development
43c40f3e
RO
1560 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1561 Objective-C runtime
318a4e6d 1562 --enable-vtable-verify Enable vtable verification feature
30b74385 1563 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1564 force sequential configuration of sub-packages for
1565 the host, target or build machine, or all
1566 sub-packages
1567 --enable-maintainer-mode
1568 enable make rules and dependencies not useful (and
1569 sometimes confusing) to the casual installer
1570 --enable-stage1-checking[=all]
1571 choose additional checking for stage1 of the
1572 compiler
1c710c3c
DJ
1573 --enable-werror enable -Werror in bootstrap stage2 and later
1574
1575Optional Packages:
1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1578 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1579 --with-system-zlib use installed libz
33e39b66
AS
1580 --with-mpc=PATH specify prefix directory for installed MPC package.
1581 Equivalent to --with-mpc-include=PATH/include plus
1582 --with-mpc-lib=PATH/lib
1583 --with-mpc-include=PATH specify directory for installed MPC include files
1584 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1585 --with-mpfr-dir=PATH this option has been REMOVED
1586 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1587 Equivalent to --with-mpfr-include=PATH/include plus
1588 --with-mpfr-lib=PATH/lib
1c710c3c 1589 --with-mpfr-include=PATH
30b74385
RW
1590 specify directory for installed MPFR include files
1591 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1592 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1593 --with-gmp=PATH specify prefix directory for the installed GMP
1594 package. Equivalent to
1595 --with-gmp-include=PATH/include plus
1596 --with-gmp-lib=PATH/lib
30b74385
RW
1597 --with-gmp-include=PATH specify directory for installed GMP include files
1598 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1599 --with-stage1-libs=LIBS libraries for stage1
aac9103b
TT
1600 --with-static-standard-libraries
1601 use -static-libstdc++ and -static-libgcc
1602 (default=auto)
33e39b66
AS
1603 --with-stage1-ldflags=FLAGS
1604 linker flags for stage1
33e39b66
AS
1605 --with-boot-libs=LIBS libraries for stage2 and later
1606 --with-boot-ldflags=FLAGS
1607 linker flags for stage2 and later
e357a5e0 1608 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1609 package. Equivalent to
33ad93b9
RG
1610 --with-isl-include=PATH/include plus
1611 --with-isl-lib=PATH/lib
560d18d3
AK
1612 --with-isl-include=PATH Specify directory for installed isl include files
1613 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1614 --with-target-bdw-gc=PATHLIST
1615 specify prefix directory for installed bdw-gc
1616 package. Equivalent to
1617 --with-target-bdw-gc-include=PATH/include plus
1618 --with-target-bdw-gc-lib=PATH/lib
1619 --with-target-bdw-gc-include=PATHLIST
1620 specify directories for installed bdw-gc include
1621 files
1622 --with-target-bdw-gc-lib=PATHLIST
1623 specify directories for installed bdw-gc library
3c36aa6b
JJ
1624 --with-gcc-major-version-only
1625 use only GCC major number in filesystem paths
30b74385 1626 --with-build-sysroot=SYSROOT
1c710c3c 1627 use sysroot as the system root during the build
c8aea42c 1628 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1629 map A to B, C to D ... in debug information
1630 --with-build-config='NAME NAME2...'
1631 use config/NAME.mk build configuration
30b74385 1632 --with-build-time-tools=PATH
1c710c3c 1633 use given path to find target tools during the build
1c710c3c
DJ
1634
1635Some influential environment variables:
1636 CC C compiler command
1637 CFLAGS C compiler flags
1638 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1639 nonstandard directory <lib dir>
5213506e 1640 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1641 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1642 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1643 CXX C++ compiler command
1644 CXXFLAGS C++ compiler flags
ffedf511
RW
1645 build_configargs
1646 additional configure arguments for build directories
1647 host_configargs
1648 additional configure arguments for host directories
1649 target_configargs
1650 additional configure arguments for target directories
278a7a38
AO
1651 AR AR for the host
1652 AS AS for the host
1653 DLLTOOL DLLTOOL for the host
3b5e8ee4 1654 DSYMUTIL DSYMUTIL for the host
278a7a38
AO
1655 LD LD for the host
1656 LIPO LIPO for the host
1657 NM NM for the host
1658 RANLIB RANLIB for the host
1659 STRIP STRIP for the host
1660 WINDRES WINDRES for the host
901119ae 1661 WINDMC WINDMC for the host
278a7a38
AO
1662 OBJCOPY OBJCOPY for the host
1663 OBJDUMP OBJDUMP for the host
e4a9a572 1664 OTOOL OTOOL for the host
e7a82751 1665 READELF READELF for the host
278a7a38
AO
1666 CC_FOR_TARGET
1667 CC for the target
1668 CXX_FOR_TARGET
1669 CXX for the target
1670 GCC_FOR_TARGET
1671 GCC for the target
278a7a38
AO
1672 GFORTRAN_FOR_TARGET
1673 GFORTRAN for the target
632e2a07
ILT
1674 GOC_FOR_TARGET
1675 GOC for the target
b4c522fa
IB
1676 GDC_FOR_TARGET
1677 GDC for the target
278a7a38
AO
1678 AR_FOR_TARGET
1679 AR for the target
1680 AS_FOR_TARGET
1681 AS for the target
1682 DLLTOOL_FOR_TARGET
1683 DLLTOOL for the target
3b5e8ee4
IS
1684 DSYMUTIL_FOR_TARGET
1685 DSYMUTIL for the target
278a7a38
AO
1686 LD_FOR_TARGET
1687 LD for the target
1688 LIPO_FOR_TARGET
1689 LIPO for the target
1690 NM_FOR_TARGET
1691 NM for the target
9bccfdf5
AP
1692 OBJCOPY_FOR_TARGET
1693 OBJCOPY for the target
278a7a38
AO
1694 OBJDUMP_FOR_TARGET
1695 OBJDUMP for the target
e4a9a572
IS
1696 OTOOL_FOR_TARGET
1697 OTOOL for the target
278a7a38
AO
1698 RANLIB_FOR_TARGET
1699 RANLIB for the target
e7a82751
RM
1700 READELF_FOR_TARGET
1701 READELF for the target
278a7a38
AO
1702 STRIP_FOR_TARGET
1703 STRIP for the target
1704 WINDRES_FOR_TARGET
1705 WINDRES for the target
901119ae
KT
1706 WINDMC_FOR_TARGET
1707 WINDMC for the target
1c710c3c
DJ
1708
1709Use these variables to override the choices made by `configure' or to help
1710it to find libraries and programs with nonstandard names/locations.
1711
5213506e 1712Report bugs to the package provider.
1c710c3c 1713_ACEOF
5213506e 1714ac_status=$?
1c710c3c
DJ
1715fi
1716
1717if test "$ac_init_help" = "recursive"; then
1718 # If there are subdirs, report their specific --help.
1c710c3c 1719 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1720 test -d "$ac_dir" ||
1721 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1722 continue
1c710c3c
DJ
1723 ac_builddir=.
1724
5213506e
RW
1725case "$ac_dir" in
1726.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1727*)
1728 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1729 # A ".." for each directory in $ac_dir_suffix.
1730 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1731 case $ac_top_builddir_sub in
1732 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1733 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1734 esac ;;
1735esac
1736ac_abs_top_builddir=$ac_pwd
1737ac_abs_builddir=$ac_pwd$ac_dir_suffix
1738# for backward compatibility:
1739ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1740
1741case $srcdir in
5213506e 1742 .) # We are building in place.
1c710c3c 1743 ac_srcdir=.
5213506e
RW
1744 ac_top_srcdir=$ac_top_builddir_sub
1745 ac_abs_top_srcdir=$ac_pwd ;;
1746 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1747 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1748 ac_top_srcdir=$srcdir
1749 ac_abs_top_srcdir=$srcdir ;;
1750 *) # Relative name.
1751 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1752 ac_top_srcdir=$ac_top_build_prefix$srcdir
1753 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1754esac
5213506e
RW
1755ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1756
1757 cd "$ac_dir" || { ac_status=$?; continue; }
1758 # Check for guested configure.
1759 if test -f "$ac_srcdir/configure.gnu"; then
1760 echo &&
1761 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1762 elif test -f "$ac_srcdir/configure"; then
1763 echo &&
1764 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1765 else
5213506e
RW
1766 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1767 fi || ac_status=$?
1768 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1769 done
1770fi
1771
5213506e 1772test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1773if $ac_init_version; then
1774 cat <<\_ACEOF
5213506e 1775configure
22e05272 1776generated by GNU Autoconf 2.69
1c710c3c 1777
22e05272 1778Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
1779This configure script is free software; the Free Software Foundation
1780gives unlimited permission to copy, distribute and modify it.
1781_ACEOF
5213506e 1782 exit
0b0dc272 1783fi
5213506e
RW
1784
1785## ------------------------ ##
1786## Autoconf initialization. ##
1787## ------------------------ ##
1788
1789# ac_fn_c_try_compile LINENO
1790# --------------------------
1791# Try to compile conftest.$ac_ext, and return whether this succeeded.
1792ac_fn_c_try_compile ()
1793{
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext
1796 if { { ac_try="$ac_compile"
1797case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800esac
1801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802$as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_compile") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1809 fi
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_c_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest.$ac_objext; then :
1815 ac_retval=0
1816else
1817 $as_echo "$as_me: failed program was:" >&5
1818sed 's/^/| /' conftest.$ac_ext >&5
1819
1820 ac_retval=1
1821fi
22e05272
JM
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
5213506e
RW
1824
1825} # ac_fn_c_try_compile
1826
1827# ac_fn_cxx_try_compile LINENO
1828# ----------------------------
1829# Try to compile conftest.$ac_ext, and return whether this succeeded.
1830ac_fn_cxx_try_compile ()
1831{
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 rm -f conftest.$ac_objext
1834 if { { ac_try="$ac_compile"
1835case "(($ac_try" in
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1838esac
1839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840$as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_compile") 2>conftest.err
1842 ac_status=$?
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1847 fi
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_cxx_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest.$ac_objext; then :
1853 ac_retval=0
1854else
1855 $as_echo "$as_me: failed program was:" >&5
1856sed 's/^/| /' conftest.$ac_ext >&5
1857
1858 ac_retval=1
1859fi
22e05272
JM
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 as_fn_set_status $ac_retval
5213506e
RW
1862
1863} # ac_fn_cxx_try_compile
1864
0b21f5d3
EB
1865# ac_fn_cxx_try_link LINENO
1866# -------------------------
1867# Try to link conftest.$ac_ext, and return whether this succeeded.
1868ac_fn_cxx_try_link ()
1869{
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 rm -f conftest.$ac_objext conftest$ac_exeext
1872 if { { ac_try="$ac_link"
1873case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876esac
1877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878$as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_link") 2>conftest.err
1880 ac_status=$?
1881 if test -s conftest.err; then
1882 grep -v '^ *+' conftest.err >conftest.er1
1883 cat conftest.er1 >&5
1884 mv -f conftest.er1 conftest.err
1885 fi
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } && {
1888 test -z "$ac_cxx_werror_flag" ||
1889 test ! -s conftest.err
1890 } && test -s conftest$ac_exeext && {
1891 test "$cross_compiling" = yes ||
22e05272 1892 test -x conftest$ac_exeext
0b21f5d3
EB
1893 }; then :
1894 ac_retval=0
1895else
1896 $as_echo "$as_me: failed program was:" >&5
1897sed 's/^/| /' conftest.$ac_ext >&5
1898
1899 ac_retval=1
1900fi
1901 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1902 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1903 # interfere with the next link command; also delete a directory that is
1904 # left behind by Apple's compiler. We do this before executing the actions.
1905 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907 as_fn_set_status $ac_retval
0b21f5d3
EB
1908
1909} # ac_fn_cxx_try_link
1910
5213506e
RW
1911# ac_fn_c_try_link LINENO
1912# -----------------------
1913# Try to link conftest.$ac_ext, and return whether this succeeded.
1914ac_fn_c_try_link ()
1915{
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 rm -f conftest.$ac_objext conftest$ac_exeext
1918 if { { ac_try="$ac_link"
1919case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1922esac
1923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924$as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_link") 2>conftest.err
1926 ac_status=$?
1927 if test -s conftest.err; then
1928 grep -v '^ *+' conftest.err >conftest.er1
1929 cat conftest.er1 >&5
1930 mv -f conftest.er1 conftest.err
1931 fi
1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933 test $ac_status = 0; } && {
1934 test -z "$ac_c_werror_flag" ||
1935 test ! -s conftest.err
1936 } && test -s conftest$ac_exeext && {
1937 test "$cross_compiling" = yes ||
22e05272 1938 test -x conftest$ac_exeext
5213506e
RW
1939 }; then :
1940 ac_retval=0
1941else
1942 $as_echo "$as_me: failed program was:" >&5
1943sed 's/^/| /' conftest.$ac_ext >&5
1944
1945 ac_retval=1
1946fi
1947 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1948 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1949 # interfere with the next link command; also delete a directory that is
1950 # left behind by Apple's compiler. We do this before executing the actions.
1951 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953 as_fn_set_status $ac_retval
5213506e
RW
1954
1955} # ac_fn_c_try_link
1956cat >config.log <<_ACEOF
1c710c3c
DJ
1957This file contains any messages produced by compilers while
1958running configure, to aid debugging if configure makes a mistake.
1959
1960It was created by $as_me, which was
22e05272 1961generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
1962
1963 $ $0 $@
1964
1965_ACEOF
5213506e 1966exec 5>>config.log
1c710c3c
DJ
1967{
1968cat <<_ASUNAME
1969## --------- ##
1970## Platform. ##
1971## --------- ##
1972
1973hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1974uname -m = `(uname -m) 2>/dev/null || echo unknown`
1975uname -r = `(uname -r) 2>/dev/null || echo unknown`
1976uname -s = `(uname -s) 2>/dev/null || echo unknown`
1977uname -v = `(uname -v) 2>/dev/null || echo unknown`
1978
1979/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1980/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1981
1982/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1983/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1984/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1985/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1986/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1987/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1988/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1989
1990_ASUNAME
1991
1992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993for as_dir in $PATH
1994do
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
5213506e
RW
1997 $as_echo "PATH: $as_dir"
1998 done
1999IFS=$as_save_IFS
1c710c3c
DJ
2000
2001} >&5
2002
2003cat >&5 <<_ACEOF
2004
2005
2006## ----------- ##
2007## Core tests. ##
2008## ----------- ##
2009
2010_ACEOF
2011
2012
2013# Keep a trace of the command line.
2014# Strip out --no-create and --no-recursion so they do not pile up.
2015# Strip out --silent because we don't want to record it for future runs.
2016# Also quote any args containing shell meta-characters.
2017# Make two passes to allow for proper duplicate-argument suppression.
2018ac_configure_args=
2019ac_configure_args0=
2020ac_configure_args1=
1c710c3c
DJ
2021ac_must_keep_next=false
2022for ac_pass in 1 2
2023do
2024 for ac_arg
2025 do
2026 case $ac_arg in
2027 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2029 | -silent | --silent | --silen | --sile | --sil)
2030 continue ;;
5213506e
RW
2031 *\'*)
2032 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2033 esac
2034 case $ac_pass in
5213506e 2035 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2036 2)
5213506e 2037 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2038 if test $ac_must_keep_next = true; then
2039 ac_must_keep_next=false # Got value, back to normal.
2040 else
2041 case $ac_arg in
2042 *=* | --config-cache | -C | -disable-* | --disable-* \
2043 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2044 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2045 | -with-* | --with-* | -without-* | --without-* | --x)
2046 case "$ac_configure_args0 " in
2047 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2048 esac
2049 ;;
2050 -* ) ac_must_keep_next=true ;;
2051 esac
2052 fi
5213506e 2053 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2054 ;;
2055 esac
2056 done
2057done
5213506e
RW
2058{ ac_configure_args0=; unset ac_configure_args0;}
2059{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2060
2061# When interrupted or exit'd, cleanup temporary files, and complete
2062# config.log. We remove comments because anyway the quotes in there
2063# would cause problems or look ugly.
5213506e
RW
2064# WARNING: Use '\'' to represent an apostrophe within the trap.
2065# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2066trap 'exit_status=$?
2067 # Save into config.log some information that might help in debugging.
2068 {
2069 echo
2070
22e05272 2071 $as_echo "## ---------------- ##
1c710c3c 2072## Cache variables. ##
22e05272 2073## ---------------- ##"
1c710c3c
DJ
2074 echo
2075 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2076(
2077 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2078 eval ac_val=\$$ac_var
2079 case $ac_val in #(
2080 *${as_nl}*)
2081 case $ac_var in #(
2082 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2083$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2084 esac
2085 case $ac_var in #(
2086 _ | IFS | as_nl) ;; #(
2087 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2088 *) { eval $ac_var=; unset $ac_var;} ;;
2089 esac ;;
2090 esac
2091 done
1c710c3c 2092 (set) 2>&1 |
5213506e
RW
2093 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2094 *${as_nl}ac_space=\ *)
1c710c3c 2095 sed -n \
5213506e
RW
2096 "s/'\''/'\''\\\\'\'''\''/g;
2097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2098 ;; #(
1c710c3c 2099 *)
5213506e 2100 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2101 ;;
5213506e
RW
2102 esac |
2103 sort
2104)
1c710c3c
DJ
2105 echo
2106
22e05272 2107 $as_echo "## ----------------- ##
1c710c3c 2108## Output variables. ##
22e05272 2109## ----------------- ##"
1c710c3c
DJ
2110 echo
2111 for ac_var in $ac_subst_vars
2112 do
5213506e
RW
2113 eval ac_val=\$$ac_var
2114 case $ac_val in
2115 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2116 esac
2117 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2118 done | sort
2119 echo
2120
2121 if test -n "$ac_subst_files"; then
22e05272 2122 $as_echo "## ------------------- ##
5213506e 2123## File substitutions. ##
22e05272 2124## ------------------- ##"
1c710c3c
DJ
2125 echo
2126 for ac_var in $ac_subst_files
2127 do
5213506e
RW
2128 eval ac_val=\$$ac_var
2129 case $ac_val in
2130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131 esac
2132 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2133 done | sort
2134 echo
2135 fi
2136
2137 if test -s confdefs.h; then
22e05272 2138 $as_echo "## ----------- ##
1c710c3c 2139## confdefs.h. ##
22e05272 2140## ----------- ##"
1c710c3c 2141 echo
5213506e 2142 cat confdefs.h
1c710c3c
DJ
2143 echo
2144 fi
2145 test "$ac_signal" != 0 &&
5213506e
RW
2146 $as_echo "$as_me: caught signal $ac_signal"
2147 $as_echo "$as_me: exit $exit_status"
1c710c3c 2148 } >&5
5213506e
RW
2149 rm -f core *.core core.conftest.* &&
2150 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2151 exit $exit_status
5213506e 2152' 0
1c710c3c 2153for ac_signal in 1 2 13 15; do
5213506e 2154 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2155done
2156ac_signal=0
2157
2158# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2159rm -f -r conftest* confdefs.h
2160
2161$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2162
2163# Predefined preprocessor variables.
2164
2165cat >>confdefs.h <<_ACEOF
2166#define PACKAGE_NAME "$PACKAGE_NAME"
2167_ACEOF
2168
1c710c3c
DJ
2169cat >>confdefs.h <<_ACEOF
2170#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2171_ACEOF
2172
1c710c3c
DJ
2173cat >>confdefs.h <<_ACEOF
2174#define PACKAGE_VERSION "$PACKAGE_VERSION"
2175_ACEOF
0b0dc272 2176
1c710c3c
DJ
2177cat >>confdefs.h <<_ACEOF
2178#define PACKAGE_STRING "$PACKAGE_STRING"
2179_ACEOF
2180
1c710c3c
DJ
2181cat >>confdefs.h <<_ACEOF
2182#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2183_ACEOF
2184
5213506e
RW
2185cat >>confdefs.h <<_ACEOF
2186#define PACKAGE_URL "$PACKAGE_URL"
2187_ACEOF
2188
1c710c3c
DJ
2189
2190# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2191# Prefer an explicitly selected file to automatically selected ones.
2192ac_site_file1=NONE
2193ac_site_file2=NONE
2194if test -n "$CONFIG_SITE"; then
22e05272
JM
2195 # We do not want a PATH search for config.site.
2196 case $CONFIG_SITE in #((
2197 -*) ac_site_file1=./$CONFIG_SITE;;
2198 */*) ac_site_file1=$CONFIG_SITE;;
2199 *) ac_site_file1=./$CONFIG_SITE;;
2200 esac
5213506e
RW
2201elif test "x$prefix" != xNONE; then
2202 ac_site_file1=$prefix/share/config.site
2203 ac_site_file2=$prefix/etc/config.site
2204else
2205 ac_site_file1=$ac_default_prefix/share/config.site
2206 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2207fi
5213506e
RW
2208for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2209do
2210 test "x$ac_site_file" = xNONE && continue
22e05272 2211 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2213$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2214 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2215 . "$ac_site_file" \
2216 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2218as_fn_error $? "failed to load site script $ac_site_file
2219See \`config.log' for more details" "$LINENO" 5; }
671aa708
NN
2220 fi
2221done
2222
2223if test -r "$cache_file"; then
22e05272
JM
2224 # Some versions of bash will fail to source /dev/null (special files
2225 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2226 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2228$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2229 case $cache_file in
5213506e
RW
2230 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2231 *) . "./$cache_file";;
1c710c3c
DJ
2232 esac
2233 fi
671aa708 2234else
5213506e
RW
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2236$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2237 >$cache_file
2238fi
2239
2240# Check that the precious variables saved in the cache have kept the same
2241# value.
2242ac_cache_corrupted=false
5213506e 2243for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2245 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2246 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2247 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2248 case $ac_old_set,$ac_new_set in
2249 set,)
5213506e
RW
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2251$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2252 ac_cache_corrupted=: ;;
2253 ,set)
5213506e
RW
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2255$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2256 ac_cache_corrupted=: ;;
2257 ,);;
2258 *)
2259 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2260 # differences in whitespace do not lead to failure.
2261 ac_old_val_w=`echo x $ac_old_val`
2262 ac_new_val_w=`echo x $ac_new_val`
2263 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2265$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2266 ac_cache_corrupted=:
2267 else
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2269$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2270 eval $ac_var=\$ac_old_val
2271 fi
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2273$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2275$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2276 fi;;
2277 esac
2278 # Pass precious variables to config.status.
2279 if test "$ac_new_set" = set; then
2280 case $ac_new_val in
5213506e 2281 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2282 *) ac_arg=$ac_var=$ac_new_val ;;
2283 esac
2284 case " $ac_configure_args " in
2285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2286 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2287 esac
2288 fi
2289done
2290if $ac_cache_corrupted; then
5213506e
RW
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2294$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2295 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2296fi
5213506e
RW
2297## -------------------- ##
2298## Main body of script. ##
2299## -------------------- ##
671aa708 2300
2aeb72e9
DD
2301ac_ext=c
2302ac_cpp='$CPP $CPPFLAGS'
2303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2305ac_compiler_gnu=$ac_cv_c_compiler_gnu
2306
1c710c3c
DJ
2307
2308
2309
1c710c3c
DJ
2310
2311
0115d4a3 2312
1c710c3c 2313
ad33ff57
RW
2314progname=$0
2315# if PWD already has a value, it is probably wrong.
2316if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2317
2318# Export original configure arguments for use by sub-configures.
2319# Quote arguments with shell meta charatcers.
2320TOPLEVEL_CONFIGURE_ARGUMENTS=
2321set -- "$progname" "$@"
2322for ac_arg
2323do
2324 case "$ac_arg" in
2325 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2326 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2327 # if the argument is of the form -foo=baz, quote the baz part only
2328 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2329 *) ;;
2330 esac
2331 # Add the quoted argument to the list.
2332 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2333done
2334if test "$silent" = yes; then
2335 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2336fi
2337# Remove the initial space we just introduced and, as these will be
2338# expanded by make, quote '$'.
2339TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2340
1c710c3c
DJ
2341
2342# Find the build, host, and target systems.
671aa708 2343ac_aux_dir=
5213506e 2344for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2345 if test -f "$ac_dir/install-sh"; then
2346 ac_aux_dir=$ac_dir
2347 ac_install_sh="$ac_aux_dir/install-sh -c"
2348 break
2349 elif test -f "$ac_dir/install.sh"; then
2350 ac_aux_dir=$ac_dir
2351 ac_install_sh="$ac_aux_dir/install.sh -c"
2352 break
2353 elif test -f "$ac_dir/shtool"; then
2354 ac_aux_dir=$ac_dir
2355 ac_install_sh="$ac_aux_dir/shtool install -c"
2356 break
2357 fi
671aa708
NN
2358done
2359if test -z "$ac_aux_dir"; then
22e05272 2360 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2361fi
5213506e
RW
2362
2363# These three variables are undocumented and unsupported,
2364# and are intended to be withdrawn in a future Autoconf release.
2365# They can cause serious problems if a builder's source tree is in a directory
2366# whose full name contains unusual characters.
2367ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2368ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2369ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2370
671aa708 2371
1c710c3c 2372# Make sure we can run config.sub.
5213506e 2373$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2374 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2375
2376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2377$as_echo_n "checking build system type... " >&6; }
22e05272 2378if ${ac_cv_build+:} false; then :
5213506e
RW
2379 $as_echo_n "(cached) " >&6
2380else
2381 ac_build_alias=$build_alias
2382test "x$ac_build_alias" = x &&
2383 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2384test "x$ac_build_alias" = x &&
22e05272 2385 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2386ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2387 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2388
2389fi
2390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2391$as_echo "$ac_cv_build" >&6; }
2392case $ac_cv_build in
2393*-*-*) ;;
22e05272 2394*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2395esac
1c710c3c 2396build=$ac_cv_build
5213506e
RW
2397ac_save_IFS=$IFS; IFS='-'
2398set x $ac_cv_build
2399shift
2400build_cpu=$1
2401build_vendor=$2
2402shift; shift
2403# Remember, the first character of IFS is used to create $*,
2404# except with old shells:
2405build_os=$*
2406IFS=$ac_save_IFS
2407case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2408
671aa708 2409
1c710c3c
DJ
2410 case ${build_alias} in
2411 "") build_noncanonical=${build} ;;
2412 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2413esac
2414
2415
af71363e 2416
1c710c3c
DJ
2417 case ${host_alias} in
2418 "") host_noncanonical=${build_noncanonical} ;;
2419 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2420esac
2421
af71363e 2422
1c710c3c
DJ
2423
2424 case ${target_alias} in
2425 "") target_noncanonical=${host_noncanonical} ;;
2426 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2427esac
2428
af71363e 2429
1c710c3c
DJ
2430
2431
2432test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2433 test "$program_prefix$program_suffix$program_transform_name" = \
2434 NONENONEs,x,x, &&
1c710c3c 2435 program_transform_name=s,y,y,
af71363e 2436
5213506e
RW
2437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2438$as_echo_n "checking host system type... " >&6; }
22e05272 2439if ${ac_cv_host+:} false; then :
5213506e 2440 $as_echo_n "(cached) " >&6
af71363e 2441else
5213506e
RW
2442 if test "x$host_alias" = x; then
2443 ac_cv_host=$ac_cv_build
2444else
2445 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2446 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2447fi
1c710c3c 2448
af71363e 2449fi
5213506e
RW
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2451$as_echo "$ac_cv_host" >&6; }
2452case $ac_cv_host in
2453*-*-*) ;;
22e05272 2454*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2455esac
1c710c3c 2456host=$ac_cv_host
5213506e
RW
2457ac_save_IFS=$IFS; IFS='-'
2458set x $ac_cv_host
2459shift
2460host_cpu=$1
2461host_vendor=$2
2462shift; shift
2463# Remember, the first character of IFS is used to create $*,
2464# except with old shells:
2465host_os=$*
2466IFS=$ac_save_IFS
2467case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2468
2469
5213506e
RW
2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2471$as_echo_n "checking target system type... " >&6; }
22e05272 2472if ${ac_cv_target+:} false; then :
5213506e 2473 $as_echo_n "(cached) " >&6
1c710c3c 2474else
5213506e
RW
2475 if test "x$target_alias" = x; then
2476 ac_cv_target=$ac_cv_host
2477else
2478 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2479 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2480fi
1c710c3c
DJ
2481
2482fi
5213506e
RW
2483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2484$as_echo "$ac_cv_target" >&6; }
2485case $ac_cv_target in
2486*-*-*) ;;
22e05272 2487*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2488esac
1c710c3c 2489target=$ac_cv_target
5213506e
RW
2490ac_save_IFS=$IFS; IFS='-'
2491set x $ac_cv_target
2492shift
2493target_cpu=$1
2494target_vendor=$2
2495shift; shift
2496# Remember, the first character of IFS is used to create $*,
2497# except with old shells:
2498target_os=$*
2499IFS=$ac_save_IFS
2500case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2501
2502
2503# The aliases save the names the user supplied, while $host etc.
2504# will get canonicalized.
2505test -n "$target_alias" &&
2506 test "$program_prefix$program_suffix$program_transform_name" = \
2507 NONENONEs,x,x, &&
2508 program_prefix=${target_alias}-
5213506e 2509
671aa708 2510test "$program_prefix" != NONE &&
5213506e 2511 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2512# Use a double $ so make ignores it.
2513test "$program_suffix" != NONE &&
5213506e
RW
2514 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2515# Double any \ or $.
1c710c3c 2516# By default was `s,x,x', remove it if useless.
5213506e
RW
2517ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2518program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2519
671aa708
NN
2520
2521
775956d0
NN
2522# Get 'install' or 'install-sh' and its variants.
2523# Find a good install program. We prefer a C program (faster),
2524# so one script is as good as another. But avoid the broken or
2525# incompatible versions:
2526# SysV /etc/install, /usr/sbin/install
2527# SunOS /usr/etc/install
2528# IRIX /sbin/install
2529# AIX /bin/install
1c710c3c 2530# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2531# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2532# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2533# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2534# OS/2's system install, which has a completely different semantic
775956d0 2535# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2536# Reject install programs that cannot install multiple files.
5213506e
RW
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2538$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2539if test -z "$INSTALL"; then
22e05272 2540if ${ac_cv_path_install+:} false; then :
5213506e 2541 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2542else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH
2545do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
5213506e
RW
2548 # Account for people who put trailing slashes in PATH elements.
2549case $as_dir/ in #((
2550 ./ | .// | /[cC]/* | \
1c710c3c 2551 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2552 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2553 /usr/ucb/* ) ;;
2554 *)
2555 # OSF1 and SCO ODT 3.0 have their own names for install.
2556 # Don't use installbsd from OSF since it installs stuff as root
2557 # by default.
2558 for ac_prog in ginstall scoinst install; do
2559 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2560 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 2561 if test $ac_prog = install &&
1c710c3c 2562 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2563 # AIX install. It has an incompatible calling convention.
2564 :
1c710c3c
DJ
2565 elif test $ac_prog = install &&
2566 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2567 # program-specific install script used by HP pwplus--don't use.
2568 :
775956d0 2569 else
38d24731
RW
2570 rm -rf conftest.one conftest.two conftest.dir
2571 echo one > conftest.one
2572 echo two > conftest.two
2573 mkdir conftest.dir
2574 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2575 test -s conftest.one && test -s conftest.two &&
2576 test -s conftest.dir/conftest.one &&
2577 test -s conftest.dir/conftest.two
2578 then
2579 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2580 break 3
2581 fi
775956d0
NN
2582 fi
2583 fi
2584 done
1c710c3c
DJ
2585 done
2586 ;;
2587esac
5213506e
RW
2588
2589 done
2590IFS=$as_save_IFS
1c710c3c 2591
38d24731 2592rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2593
2594fi
2595 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2596 INSTALL=$ac_cv_path_install
775956d0 2597 else
38d24731
RW
2598 # As a last resort, use the slow shell script. Don't cache a
2599 # value for INSTALL within a source directory, because that will
775956d0 2600 # break other packages using the cache if that directory is
38d24731 2601 # removed, or if the value is a relative name.
1c710c3c 2602 INSTALL=$ac_install_sh
775956d0
NN
2603 fi
2604fi
5213506e
RW
2605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2606$as_echo "$INSTALL" >&6; }
775956d0
NN
2607
2608# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2609# It thinks the first close brace ends the variable substitution.
2610test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2611
1c710c3c 2612test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2613
2614test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2615
5213506e
RW
2616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2617$as_echo_n "checking whether ln works... " >&6; }
22e05272 2618if ${acx_cv_prog_LN+:} false; then :
5213506e 2619 $as_echo_n "(cached) " >&6
ad6717df
PB
2620else
2621 rm -f conftestdata_t
2622echo >conftestdata_f
2623if ln conftestdata_f conftestdata_t 2>/dev/null
2624then
2625 acx_cv_prog_LN=ln
2626else
2627 acx_cv_prog_LN=no
2628fi
2629rm -f conftestdata_f conftestdata_t
2630
2631fi
2632if test $acx_cv_prog_LN = no; then
2633 LN="cp"
5213506e
RW
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2635$as_echo "no, using $LN" >&6; }
ad6717df
PB
2636else
2637 LN="$acx_cv_prog_LN"
5213506e
RW
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2639$as_echo "yes" >&6; }
ad6717df
PB
2640fi
2641
5213506e
RW
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2643$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2644LN_S=$as_ln_s
2645if test "$LN_S" = "ln -s"; then
5213506e
RW
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2647$as_echo "yes" >&6; }
fb0103e5 2648else
5213506e
RW
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2650$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2651fi
2652
87264276
PB
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2654$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 2655if ${ac_cv_path_SED+:} false; then :
87264276
PB
2656 $as_echo_n "(cached) " >&6
2657else
2658 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2659 for ac_i in 1 2 3 4 5 6 7; do
2660 ac_script="$ac_script$as_nl$ac_script"
2661 done
2662 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2663 { ac_script=; unset ac_script;}
2664 if test -z "$SED"; then
2665 ac_path_SED_found=false
2666 # Loop through the user's path and test for each of PROGNAME-LIST
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668for as_dir in $PATH
2669do
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_prog in sed gsed; do
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 2675 as_fn_executable_p "$ac_path_SED" || continue
87264276
PB
2676# Check for GNU ac_path_SED and select it if it is found.
2677 # Check for GNU $ac_path_SED
2678case `"$ac_path_SED" --version 2>&1` in
2679*GNU*)
2680 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2681*)
2682 ac_count=0
2683 $as_echo_n 0123456789 >"conftest.in"
2684 while :
2685 do
2686 cat "conftest.in" "conftest.in" >"conftest.tmp"
2687 mv "conftest.tmp" "conftest.in"
2688 cp "conftest.in" "conftest.nl"
2689 $as_echo '' >> "conftest.nl"
2690 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2692 as_fn_arith $ac_count + 1 && ac_count=$as_val
2693 if test $ac_count -gt ${ac_path_SED_max-0}; then
2694 # Best one so far, save it but keep looking for a better one
2695 ac_cv_path_SED="$ac_path_SED"
2696 ac_path_SED_max=$ac_count
2697 fi
2698 # 10*(2^10) chars as input seems more than enough
2699 test $ac_count -gt 10 && break
2700 done
2701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2702esac
2703
2704 $ac_path_SED_found && break 3
2705 done
2706 done
2707 done
2708IFS=$as_save_IFS
2709 if test -z "$ac_cv_path_SED"; then
22e05272 2710 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
87264276
PB
2711 fi
2712else
2713 ac_cv_path_SED=$SED
2714fi
2715
2716fi
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2718$as_echo "$ac_cv_path_SED" >&6; }
2719 SED="$ac_cv_path_SED"
2720 rm -f conftest.sed
2721
2722for ac_prog in gawk mawk nawk awk
2723do
2724 # Extract the first word of "$ac_prog", so it can be a program name with args.
2725set dummy $ac_prog; ac_word=$2
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2728if ${ac_cv_prog_AWK+:} false; then :
87264276
PB
2729 $as_echo_n "(cached) " >&6
2730else
2731 if test -n "$AWK"; then
2732 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2733else
2734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735for as_dir in $PATH
2736do
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87264276
PB
2741 ac_cv_prog_AWK="$ac_prog"
2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2744 fi
2745done
2746 done
2747IFS=$as_save_IFS
2748
2749fi
2750fi
2751AWK=$ac_cv_prog_AWK
2752if test -n "$AWK"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2754$as_echo "$AWK" >&6; }
2755else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757$as_echo "no" >&6; }
2758fi
2759
2760
2761 test -n "$AWK" && break
2762done
2763
775956d0 2764
ee6a22df
L
2765srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2766
2767# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2768# a relative path.
2769if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2770 INSTALL="${srcpwd}/install-sh -c"
2771fi
2772
671aa708
NN
2773# Set srcdir to "." if that's what it is.
2774# This is important for multilib support.
2775pwd=`${PWDCMD-pwd}`
671aa708
NN
2776if test "${pwd}" = "${srcpwd}" ; then
2777 srcdir=.
79c06341
JL
2778fi
2779
671aa708 2780topsrcdir=$srcpwd
5d4a5ee6 2781
671aa708 2782extra_host_args=
afabd8e6 2783
671aa708
NN
2784### To add a new directory to the tree, first choose whether it is a target
2785### or a host dependent tool. Then put it into the appropriate list
2786### (library or tools, host or target), doing a dependency sort.
79c06341 2787
1c710c3c 2788# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2789# configdirs, or target_configdirs; see the serialization section below.
79c06341 2790
1c710c3c
DJ
2791# Dependency sorting is only needed when *configuration* must be done in
2792# a particular order. In all cases a dependency should be specified in
671aa708 2793# the Makefile, whether or not it's implicitly specified here.
79c06341 2794
671aa708
NN
2795# Double entries in build_configdirs, configdirs, or target_configdirs may
2796# cause circular dependencies and break everything horribly.
79c06341 2797
23f6b2f9
PB
2798# these library is used by various programs built for the build
2799# environment
2800#
929315a9 2801build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2802
2803# these tools are built for the build environment
85bfb75e 2804build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2805
671aa708 2806# these libraries are used by various programs built for the host environment
eae1a5d4 2807#f
36230329 2808host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
671aa708 2809
671aa708
NN
2810# these tools are built for the host environment
2811# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2812# know that we are building the simulator.
2813# binutils, gas and ld appear in that order because it makes sense to run
2814# "make check" in that particular order.
38e3d868 2815# If --enable-gold is used, "gold" may replace "ld".
2efd8b1f 2816host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools"
671aa708 2817
671aa708
NN
2818# these libraries are built for the target environment, and are built after
2819# the host libraries and the host tools (which may be a cross compiler)
8499116a 2820# Note that libiberty is not a target library.
291f172e 2821target_libraries="target-libgcc \
eff02e4f 2822 target-libbacktrace \
671aa708
NN
2823 target-libgloss \
2824 target-newlib \
6d3b5aea 2825 target-libgomp \
5f520819 2826 target-liboffloadmic \
48310492 2827 target-libatomic \
0a35513e 2828 target-libitm \
cb543528 2829 target-libstdc++-v3 \
f35db108 2830 target-libsanitizer \
2077db1b 2831 target-libvtv \
77008252 2832 target-libssp \
1ec601bf 2833 target-libquadmath \
6de9cd9a 2834 target-libgfortran \
012447ea 2835 target-libffi \
d9cdb878 2836 target-libobjc \
632e2a07 2837 target-libada \
b4c522fa 2838 target-libgo \
bb50312e
IB
2839 target-libphobos \
2840 target-zlib"
671aa708 2841
4dbda6f0
NN
2842# these tools are built using the target libraries, and are intended to
2843# run only in the target environment
671aa708 2844#
4dbda6f0 2845# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2846# list belongs in this list.
671aa708 2847#
85bfb75e 2848target_tools="target-rda"
79c06341 2849
671aa708 2850################################################################################
79c06341 2851
671aa708
NN
2852## All tools belong in one of the four categories, and are assigned above
2853## We assign ${configdirs} this way to remove all embedded newlines. This
2854## is important because configure will choke if they ever get through.
2855## ${configdirs} is directories we build using the host tools.
2856## ${target_configdirs} is directories we build using the target tools.
671aa708 2857configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2858target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2859build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2860
ac9e6043
RW
2861
2862
671aa708 2863################################################################################
79c06341 2864
671aa708 2865srcname="gnu development package"
79c06341 2866
671aa708
NN
2867# This gets set non-empty for some net releases of packages.
2868appdirs=""
79c06341 2869
671aa708
NN
2870# Define is_cross_compiler to save on calls to 'test'.
2871is_cross_compiler=
2872if test x"${host}" = x"${target}" ; then
2873 is_cross_compiler=no
79c06341 2874else
671aa708 2875 is_cross_compiler=yes
1c710c3c 2876fi
79c06341 2877
b4acb5ef 2878# Find the build and target subdir names.
8b87bb96 2879
2e9e6f68
DJ
2880# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2881# have matching libraries, they should use host libraries: Makefile.tpl
2882# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2883# However, they still use the build modules, because the corresponding
2884# host modules (e.g. bison) are only built for the host when bootstrap
2885# finishes. So:
2886# - build_subdir is where we find build modules, and never changes.
2887# - build_libsubdir is where we find build libraries, and can be overridden.
2888
2889# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2890build_subdir="build-${build_noncanonical}"
1c710c3c 2891
5213506e
RW
2892# Check whether --with-build-libsubdir was given.
2893if test "${with_build_libsubdir+set}" = set; then :
2894 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2895else
2896 build_libsubdir="$build_subdir"
5213506e
RW
2897fi
2898
215c351a
PB
2899# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2900if ( test $srcdir = . && test -d gcc ) \
2901 || test -d $srcdir/../host-${host_noncanonical}; then
2902 host_subdir="host-${host_noncanonical}"
2903else
2904 host_subdir=.
2905fi
8b87bb96
NN
2906# No prefix.
2907target_subdir=${target_noncanonical}
1c710c3c 2908
0db770bd
RW
2909# Be sure to cover against remnants of an in-tree build.
2910if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
22e05272 2911 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
0db770bd
RW
2912Use a pristine source tree when building in a separate tree" "$LINENO" 5
2913fi
79c06341 2914
671aa708
NN
2915# Skipdirs are removed silently.
2916skipdirs=
2917# Noconfigdirs are removed loudly.
2918noconfigdirs=""
79c06341 2919
671aa708
NN
2920use_gnu_ld=
2921# Make sure we don't let GNU ld be added if we didn't want it.
2922if test x$with_gnu_ld = xno ; then
2923 use_gnu_ld=no
5afab7ad 2924 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2925fi
2926
671aa708
NN
2927use_gnu_as=
2928# Make sure we don't let GNU as be added if we didn't want it.
2929if test x$with_gnu_as = xno ; then
2930 use_gnu_as=no
2931 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2932fi
2933
d7f09764 2934use_included_zlib=
a05c2c75
L
2935
2936# Check whether --with-system-zlib was given.
2937if test "${with_system_zlib+set}" = set; then :
2938 withval=$with_system_zlib;
2939fi
2940
d7f09764
DN
2941# Make sure we don't let ZLIB be added if we didn't want it.
2942if test x$with_system_zlib = xyes ; then
2943 use_included_zlib=no
2944 noconfigdirs="$noconfigdirs zlib"
2945fi
2946
1c710c3c 2947# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2948# it's not even worth trying to configure, much less build, that tool.
79c06341 2949
671aa708
NN
2950case ${with_x} in
2951 yes | "") ;; # the default value for this tree is that X11 is available
2952 no)
b4f96efe 2953 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2954 # We won't be able to build gdbtk without X.
1c710c3c 2955 enable_gdbtk=no
671aa708
NN
2956 ;;
2957 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2958esac
79c06341 2959
1bcce263 2960# Some are only suitable for cross toolchains.
671aa708
NN
2961# Remove these if host=target.
2962cross_only="target-libgloss target-newlib target-opcodes"
2963
2964case $is_cross_compiler in
2965 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2966esac
79c06341 2967
671aa708
NN
2968# If both --with-headers and --with-libs are specified, default to
2969# --without-newlib.
ee6a22df
L
2970if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2971 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2972 if test x"${with_newlib}" = x ; then
2973 with_newlib=no
2974 fi
79c06341
JL
2975fi
2976
671aa708
NN
2977# Recognize --with-newlib/--without-newlib.
2978case ${with_newlib} in
2979 no) skipdirs="${skipdirs} target-newlib" ;;
2980 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2981esac
79c06341 2982
85c64bbe
BS
2983# Check whether --enable-as-accelerator-for was given.
2984if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2985 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2986fi
2987
2988
2989# Check whether --enable-offload-targets was given.
2990if test "${enable_offload_targets+set}" = set; then :
2991 enableval=$enable_offload_targets;
2992 if test x"$enable_offload_targets" = x; then
22e05272 2993 as_fn_error $? "no offload targets specified" "$LINENO" 5
85c64bbe
BS
2994 fi
2995
2996else
2997 enable_offload_targets=
2998fi
2999
3000
fe5bfa67
TB
3001# Check whether --enable-offload-defaulted was given.
3002if test "${enable_offload_defaulted+set}" = set; then :
3003 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3004else
3005 enable_offload_defaulted=
3006fi
3007
3008
21539e2e
MK
3009# Handle --enable-gold, --enable-ld.
3010# --disable-gold [--enable-ld]
3011# Build only ld. Default option.
9580395f
L
3012# --enable-gold [--enable-ld]
3013# Build both gold and ld. Install gold as "ld.gold", install ld
3014# as "ld.bfd" and "ld".
3015# --enable-gold=default [--enable-ld]
21539e2e
MK
3016# Build both gold and ld. Install gold as "ld.gold" and "ld",
3017# install ld as "ld.bfd".
3018# --enable-gold[=default] --disable-ld
3019# Build only gold, which is then installed as both "ld.gold" and "ld".
3020# --enable-gold --enable-ld=default
9580395f
L
3021# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3022# and ld.bfd).
21539e2e
MK
3023# In other words, ld is default
3024# --enable-gold=default --enable-ld=default
3025# Error.
3026
3027default_ld=
5213506e
RW
3028# Check whether --enable-gold was given.
3029if test "${enable_gold+set}" = set; then :
3030 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
3031else
3032 ENABLE_GOLD=no
5213506e
RW
3033fi
3034
21539e2e
MK
3035case "${ENABLE_GOLD}" in
3036 yes|default)
38e3d868
RM
3037 # Check for ELF target.
3038 is_elf=no
3039 case "${target}" in
3040 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 3041 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 3042 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 3043 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
3044 case "${target}" in
3045 *-*-linux*aout* | *-*-linux*oldld*)
3046 ;;
3047 *)
3048 is_elf=yes
3049 ;;
3050 esac
3051 esac
3052
3053 if test "$is_elf" = "yes"; then
3054 # Check for target supported by gold.
5afab7ad 3055 case "${target}" in
7705dfd1 3056 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
1b858e76 3057 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
21539e2e
MK
3058 configdirs="$configdirs gold"
3059 if test x${ENABLE_GOLD} = xdefault; then
3060 default_ld=gold
3061 fi
38e3d868 3062 ENABLE_GOLD=yes
5afab7ad
ILT
3063 ;;
3064 esac
38e3d868
RM
3065 fi
3066 ;;
3067 no)
3068 ;;
3069 *)
22e05272 3070 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
38e3d868 3071 ;;
21539e2e
MK
3072esac
3073
3074# Check whether --enable-ld was given.
3075if test "${enable_ld+set}" = set; then :
3076 enableval=$enable_ld; ENABLE_LD=$enableval
3077else
3078 ENABLE_LD=yes
3079fi
3080
3081
3082case "${ENABLE_LD}" in
3083 default)
9580395f 3084 if test x${default_ld} != x; then
22e05272 3085 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
21539e2e
MK
3086 fi
3087 ;;
3088 yes)
3089 ;;
3090 no)
3091 if test x${ENABLE_GOLD} != xyes; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3093$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3094 fi
3095 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3096 ;;
3097 *)
22e05272 3098 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
21539e2e
MK
3099 ;;
3100esac
5afab7ad 3101
78edb32f
L
3102# PR gas/19109
3103# Decide the default method for compressing debug sections.
3104# Provide a configure time option to override our default.
3105# Check whether --enable-compressed_debug_sections was given.
3106if test "${enable_compressed_debug_sections+set}" = set; then :
3107 enableval=$enable_compressed_debug_sections;
3108 if test x"$enable_compressed_debug_sections" = xyes; then
22e05272 3109 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
78edb32f
L
3110 fi
3111
3112else
3113 enable_compressed_debug_sections=
3114fi
3115
3116
671aa708 3117# Configure extra directories which are host specific
79c06341 3118
671aa708
NN
3119case "${host}" in
3120 *-cygwin*)
3121 configdirs="$configdirs libtermcap" ;;
3122esac
79c06341 3123
4fab7234
HPN
3124# A target can indicate whether a language isn't supported for some reason.
3125# Only spaces may be used in this macro; not newlines or tabs.
3126unsupported_languages=
3127
1c710c3c 3128# Remove more programs from consideration, based on the host or
671aa708
NN
3129# target this usually means that a port of the program doesn't
3130# exist yet.
ec8d6ddc 3131
671aa708 3132case "${host}" in
111eeb6e 3133 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3134 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3135 ;;
671aa708 3136esac
ec8d6ddc 3137
6de9cd9a 3138
87e6d9dc
TB
3139# Check whether --enable-libquadmath was given.
3140if test "${enable_libquadmath+set}" = set; then :
3141 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3142else
3143 ENABLE_LIBQUADMATH=yes
3144fi
3145
3146if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3147 noconfigdirs="$noconfigdirs target-libquadmath"
3148fi
3149
3150
3151# Check whether --enable-libquadmath-support was given.
3152if test "${enable_libquadmath_support+set}" = set; then :
3153 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3154else
3155 ENABLE_LIBQUADMATH_SUPPORT=yes
3156fi
3157
3158enable_libquadmath_support=
3159if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3160 enable_libquadmath_support=no
3161fi
3162
3163
5213506e
RW
3164# Check whether --enable-libada was given.
3165if test "${enable_libada+set}" = set; then :
3166 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3167else
3168 ENABLE_LIBADA=yes
5213506e
RW
3169fi
3170
d9cdb878 3171if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3172 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3173fi
3174
5213506e
RW
3175# Check whether --enable-libssp was given.
3176if test "${enable_libssp+set}" = set; then :
3177 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3178else
3179 ENABLE_LIBSSP=yes
5213506e
RW
3180fi
3181
ef0087a7 3182
1873ec0c
L
3183# Check whether --enable-libstdcxx was given.
3184if test "${enable_libstdcxx+set}" = set; then :
3185 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3186else
3187 ENABLE_LIBSTDCXX=default
3188fi
3189
3190if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3191 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3192fi
3193
5f520819
KY
3194# If this is accelerator compiler and its target is intelmic we enable
3195# target liboffloadmic by default. If this is compiler with offloading
3196# for intelmic we enable host liboffloadmic by default. Otherwise
3197# liboffloadmic is disabled by default.
3198# Check whether --enable-liboffloadmic was given.
3199if test "${enable_liboffloadmic+set}" = set; then :
3200 enableval=$enable_liboffloadmic; case "$enableval" in
3201 no | host | target)
3202 enable_liboffloadmic=$enableval ;;
3203 *)
22e05272 3204 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
5f520819
KY
3205esac
3206else
4b4f2e35 3207 if test x"$enable_as_accelerator_for" != x; then
5f520819
KY
3208 case "${target}" in
3209 *-intelmic-* | *-intelmicemul-*)
3210 enable_liboffloadmic=target
3211 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3212 ;;
3213 *)
3214 enable_liboffloadmic=no
3215 ;;
3216 esac
3217else
3218 case "${enable_offload_targets}" in
3219 *-intelmic-* | *-intelmicemul-*)
3220 enable_liboffloadmic=host
3221 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3222 ;;
3223 *)
3224 enable_liboffloadmic=no
3225 ;;
3226 esac
3227fi
3228fi
3229
3230
3231
44a7d18d 3232# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3233if test x$enable_libgomp = x ; then
953ff289 3234 case "${target}" in
416ac4d4 3235 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3236 ;;
8c6d158a 3237 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3238 ;;
b24513a1 3239 *-*-solaris2* | *-*-hpux11*)
953ff289 3240 ;;
cac90078 3241 *-*-darwin* | *-*-aix*)
953ff289 3242 ;;
29b1533a 3243 nvptx*-*-* | amdgcn*-*-*)
44a7d18d 3244 ;;
953ff289
DN
3245 *)
3246 noconfigdirs="$noconfigdirs target-libgomp"
3247 ;;
3248 esac
27079765 3249fi
953ff289 3250
48310492
RH
3251# Disable libatomic on unsupported systems.
3252if test -d ${srcdir}/libatomic; then
3253 if test x$enable_libatomic = x; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3255$as_echo_n "checking for libatomic support... " >&6; }
3256 if (srcdir=${srcdir}/libatomic; \
3257 . ${srcdir}/configure.tgt; \
3258 test -n "$UNSUPPORTED")
3259 then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261$as_echo "no" >&6; }
3262 noconfigdirs="$noconfigdirs target-libatomic"
3263 else
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3265$as_echo "yes" >&6; }
3266 fi
3267 fi
3268fi
3269
5f520819
KY
3270# Disable liboffloadmic on unsupported systems.
3271if test -d ${srcdir}/liboffloadmic; then
3272 if test x$enable_liboffloadmic != xno; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3274$as_echo_n "checking for liboffloadmic support... " >&6; }
3275 if (srcdir=${srcdir}/liboffloadmic; \
3276 . ${srcdir}/configure.tgt; \
3277 test -n "$UNSUPPORTED")
3278 then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280$as_echo "no" >&6; }
3281 noconfigdirs="$noconfigdirs target-liboffloadmic"
3282 else
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3284$as_echo "yes" >&6; }
3285 fi
3286 fi
3287fi
3288
e948157d
RH
3289# Disable libitm on unsupported systems.
3290if test -d ${srcdir}/libitm; then
3291 if test x$enable_libitm = x; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3293$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3294 if (srcdir=${srcdir}/libitm; \
3295 . ${srcdir}/configure.tgt; \
3296 test -n "$UNSUPPORTED")
3297 then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3299$as_echo "no" >&6; }
e948157d
RH
3300 noconfigdirs="$noconfigdirs target-libitm"
3301 else
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3303$as_echo "yes" >&6; }
e948157d
RH
3304 fi
3305 fi
0a35513e
AH
3306fi
3307
93bf5390
RH
3308# Disable libsanitizer on unsupported systems.
3309if test -d ${srcdir}/libsanitizer; then
3310 if test x$enable_libsanitizer = x; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3312$as_echo_n "checking for libsanitizer support... " >&6; }
3313 if (srcdir=${srcdir}/libsanitizer; \
3314 . ${srcdir}/configure.tgt; \
3315 test -n "$UNSUPPORTED")
3316 then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318$as_echo "no" >&6; }
3319 noconfigdirs="$noconfigdirs target-libsanitizer"
3320 else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3322$as_echo "yes" >&6; }
3323 fi
3324 fi
3325fi
3326
2077db1b
CT
3327# Disable libvtv on unsupported systems.
3328if test -d ${srcdir}/libvtv; then
3329 if test x$enable_libvtv = x; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3331$as_echo_n "checking for libvtv support... " >&6; }
3332 if (srcdir=${srcdir}/libvtv; \
3333 . ${srcdir}/configure.tgt; \
1e74b850 3334 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3335 then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337$as_echo "no" >&6; }
3338 noconfigdirs="$noconfigdirs target-libvtv"
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341$as_echo "yes" >&6; }
3342 fi
3343 fi
3344fi
3345
d91491e5
SE
3346# Disable libquadmath for some systems.
3347case "${target}" in
e7fae550
DE
3348 avr-*-*)
3349 noconfigdirs="$noconfigdirs target-libquadmath"
3350 ;;
d91491e5
SE
3351 # libquadmath is unused on AIX and libquadmath build process use of
3352 # LD_LIBRARY_PATH can break AIX bootstrap.
3353 powerpc-*-aix* | rs6000-*-aix*)
3354 noconfigdirs="$noconfigdirs target-libquadmath"
3355 ;;
3356esac
3357
1e9e0e23
JM
3358# Disable libssp for some systems.
3359case "${target}" in
3360 avr-*-*)
b318fb4b 3361 # No hosted I/O support.
1e9e0e23
JM
3362 noconfigdirs="$noconfigdirs target-libssp"
3363 ;;
91dfef96
JM
3364 bpf-*-*)
3365 noconfigdirs="$noconfigdirs target-libssp"
3366 ;;
1e9e0e23
JM
3367 powerpc-*-aix* | rs6000-*-aix*)
3368 noconfigdirs="$noconfigdirs target-libssp"
85b8555e 3369 ;;
8d2af3a2
DD
3370 pru-*-*)
3371 # No hosted I/O support.
3372 noconfigdirs="$noconfigdirs target-libssp"
3373 ;;
85b8555e 3374 rl78-*-*)
7cb62ef1
EB
3375 # libssp uses a misaligned load to trigger a fault, but the RL78
3376 # doesn't fault for those - instead, it gives a build-time error
3377 # for explicit misaligned loads.
85b8555e 3378 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3379 ;;
0969ec7d
EB
3380 visium-*-*)
3381 # No hosted I/O support.
3382 noconfigdirs="$noconfigdirs target-libssp"
3383 ;;
1e9e0e23
JM
3384esac
3385
1e9e0e23 3386# Disable libstdc++-v3 for some systems.
1873ec0c
L
3387# Allow user to override this if they pass --enable-libstdc++-v3
3388if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3389 case "${target}" in
3390 *-*-vxworks*)
3391 # VxWorks uses the Dinkumware C++ library.
3392 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3393 ;;
afa3d80e
TS
3394 amdgcn*-*-*)
3395 # Not ported/fails to build when using newlib.
3396 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3397 ;;
1873ec0c
L
3398 arm*-wince-pe*)
3399 # the C++ libraries don't build on top of CE's C libraries
3400 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3401 ;;
3402 avr-*-*)
3403 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3404 ;;
91dfef96
JM
3405 bpf-*-*)
3406 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3407 ;;
fef939d6
JB
3408 ft32-*-*)
3409 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3410 ;;
1873ec0c
L
3411 esac
3412fi
1e9e0e23 3413
91dfef96
JM
3414# Disable C++ on systems where it is known to not work.
3415# For testing, you can override this with --enable-languages=c++.
3416case ,${enable_languages}, in
3417 *,c++,*)
3418 ;;
3419 *)
3420 case "${target}" in
3421 bpf-*-*)
3422 unsupported_languages="$unsupported_languages c++"
3423 ;;
3424 esac
3425 ;;
3426esac
3427
3428# Disable Objc on systems where it is known to not work.
3429# For testing, you can override this with --enable-languages=objc.
3430case ,${enable_languages}, in
3431 *,objc,*)
3432 ;;
3433 *)
3434 case "${target}" in
3435 bpf-*-*)
3436 unsupported_languages="$unsupported_languages objc"
3437 ;;
3438 esac
3439 ;;
3440esac
3441
260eedb9
IB
3442# Disable D on systems where it is known to not work.
3443# For testing, you can override this with --enable-languages=d.
3444case ,${enable_languages}, in
3445 *,d,*)
3446 ;;
3447 *)
3448 case "${target}" in
91dfef96 3449 bpf-*-*)
260eedb9
IB
3450 unsupported_languages="$unsupported_languages d"
3451 ;;
3452 esac
3453 ;;
3454esac
3455
3456# Disable libphobos on unsupported systems.
3457# For testing, you can override this with --enable-libphobos.
3458if test -d ${srcdir}/libphobos; then
3459 if test x$enable_libphobos = x; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3461$as_echo_n "checking for libphobos support... " >&6; }
3462 if (srcdir=${srcdir}/libphobos; \
3463 . ${srcdir}/configure.tgt; \
7d31d331 3464 test "$LIBPHOBOS_SUPPORTED" != "yes")
260eedb9
IB
3465 then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467$as_echo "no" >&6; }
3468 noconfigdirs="$noconfigdirs target-libphobos"
3469 else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3471$as_echo "yes" >&6; }
3472 fi
3473 fi
3474fi
3475
1e9e0e23
JM
3476# Disable Fortran for some systems.
3477case "${target}" in
3478 mmix-*-*)
3479 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3480 unsupported_languages="$unsupported_languages fortran"
3481 ;;
91dfef96
JM
3482 bpf-*-*)
3483 unsupported_languages="$unsupported_languages fortran"
3484 ;;
1e9e0e23
JM
3485esac
3486
012447ea
JJ
3487# Disable libffi for some systems.
3488case "${target}" in
3489 powerpc-*-darwin*)
3490 ;;
3491 i[3456789]86-*-darwin*)
3492 ;;
3493 x86_64-*-darwin[912]*)
3494 ;;
3495 *-*-darwin*)
3496 noconfigdirs="$noconfigdirs target-libffi"
3497 ;;
3498 *-*-netware*)
3499 noconfigdirs="$noconfigdirs target-libffi"
3500 ;;
3501 *-*-phoenix*)
3502 noconfigdirs="$noconfigdirs target-libffi"
3503 ;;
3504 *-*-rtems*)
3505 noconfigdirs="$noconfigdirs target-libffi"
3506 ;;
3507 *-*-tpf*)
3508 noconfigdirs="$noconfigdirs target-libffi"
3509 ;;
3510 *-*-uclinux*)
3511 noconfigdirs="$noconfigdirs target-libffi"
3512 ;;
3513 *-*-vxworks*)
3514 noconfigdirs="$noconfigdirs target-libffi"
3515 ;;
b20e7532
AT
3516 aarch64*-*-freebsd*)
3517 noconfigdirs="$noconfigdirs target-libffi"
3518 ;;
012447ea
JJ
3519 alpha*-*-*vms*)
3520 noconfigdirs="$noconfigdirs target-libffi"
3521 ;;
3522 arm*-*-freebsd*)
3523 noconfigdirs="$noconfigdirs target-libffi"
3524 ;;
3525 arm-wince-pe)
3526 noconfigdirs="$noconfigdirs target-libffi"
3527 ;;
3528 arm*-*-symbianelf*)
3529 noconfigdirs="$noconfigdirs target-libffi"
3530 ;;
91dfef96
JM
3531 bpf-*-*)
3532 noconfigdirs="$noconfigdirs target-libffi"
3533 ;;
012447ea
JJ
3534 cris-*-* | crisv32-*-*)
3535 case "${target}" in
3536 *-*-linux*)
3537 ;;
3538 *) # See PR46792 regarding target-libffi.
3539 noconfigdirs="$noconfigdirs target-libffi";;
3540 esac
3541 ;;
3542 hppa*64*-*-hpux*)
3543 noconfigdirs="$noconfigdirs target-libffi"
3544 ;;
3545 hppa*-hp-hpux11*)
3546 ;;
3547 hppa*-*-hpux*)
3548 noconfigdirs="$noconfigdirs target-libffi"
3549 ;;
3550 ia64*-*-*vms*)
3551 noconfigdirs="$noconfigdirs target-libffi"
3552 ;;
3553 i[3456789]86-w64-mingw*)
3554 noconfigdirs="$noconfigdirs target-libffi"
3555 ;;
3556 i[3456789]86-*-mingw*)
3557 noconfigdirs="$noconfigdirs target-libffi"
3558 ;;
3559 x86_64-*-mingw*)
3560 noconfigdirs="$noconfigdirs target-libffi"
3561 ;;
3562 mmix-*-*)
3563 noconfigdirs="$noconfigdirs target-libffi"
3564 ;;
3565 powerpc-*-aix*)
012447ea
JJ
3566 ;;
3567 rs6000-*-aix*)
012447ea
JJ
3568 ;;
3569 ft32-*-*)
3570 noconfigdirs="$noconfigdirs target-libffi"
3571 ;;
3572 *-*-lynxos*)
3573 noconfigdirs="$noconfigdirs target-libffi"
3574 ;;
3575esac
3576
3577# Disable the go frontend on systems where it is known to not work. Please keep
3578# this in sync with contrib/config-list.mk.
3579case "${target}" in
91dfef96 3580*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
012447ea
JJ
3581 unsupported_languages="$unsupported_languages go"
3582 ;;
3583esac
3584
f9d09df0
TT
3585# Only allow gdbserver on some systems.
3586if test -d ${srcdir}/gdbserver; then
3587 if test x$enable_gdbserver = x; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3589$as_echo_n "checking for gdbserver support... " >&6; }
3590 if (srcdir=${srcdir}/gdbserver; \
3591 . ${srcdir}/configure.srv; \
3592 test -n "$UNSUPPORTED")
3593 then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595$as_echo "no" >&6; }
3596 noconfigdirs="$noconfigdirs gdbserver"
3597 else
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3599$as_echo "yes" >&6; }
3600 fi
3601 fi
3602fi
3603
cdbc9e92
ILT
3604# Disable libgo for some systems where it is known to not work.
3605# For testing, you can easily override this with --enable-libgo.
3606if test x$enable_libgo = x; then
3607 case "${target}" in
3608 *-*-darwin*)
3609 # PR 46986
3610 noconfigdirs="$noconfigdirs target-libgo"
3611 ;;
3612 *-*-cygwin* | *-*-mingw*)
3613 noconfigdirs="$noconfigdirs target-libgo"
3614 ;;
91dfef96
JM
3615 bpf-*-*)
3616 noconfigdirs="$noconfigdirs target-libgo"
3617 ;;
cdbc9e92
ILT
3618 esac
3619fi
3620
c03353e2
RIL
3621# Default libgloss CPU subdirectory.
3622libgloss_dir="$target_cpu"
6de9cd9a 3623
fbcf0dca
JM
3624case "${target}" in
3625 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3626 libgloss_dir=wince
3627 ;;
4dddfc74
YZ
3628 aarch64*-*-* )
3629 libgloss_dir=aarch64
3630 ;;
fbcf0dca
JM
3631 arm*-*-*)
3632 libgloss_dir=arm
3633 ;;
3634 cris-*-* | crisv32-*-*)
3635 libgloss_dir=cris
3636 ;;
3637 hppa*-*-*)
3638 libgloss_dir=pa
3639 ;;
3640 i[3456789]86-*-*)
3641 libgloss_dir=i386
3642 ;;
3643 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3644 libgloss_dir=m68hc11
3645 ;;
3646 m68*-*-* | fido-*-*)
3647 libgloss_dir=m68k
3648 ;;
3649 mips*-*-*)
3650 libgloss_dir=mips
3651 ;;
3652 powerpc*-*-*)
3653 libgloss_dir=rs6000
3654 ;;
8d2af3a2
DD
3655 pru-*-*)
3656 libgloss_dir=pru
3657 ;;
fbcf0dca
JM
3658 sparc*-*-*)
3659 libgloss_dir=sparc
3660 ;;
3661esac
3662
6a789d5e 3663# Disable newlib and libgloss for various target OSes.
671aa708 3664case "${target}" in
6a789d5e
JM
3665 alpha*-dec-osf*)
3666 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3667 ;;
3668 i[3456789]86-*-linux*)
3669 # This section makes it possible to build newlib natively on linux.
3670 # If we are using a cross compiler then don't configure newlib.
3671 if test x${is_cross_compiler} != xno ; then
3672 noconfigdirs="$noconfigdirs target-newlib"
3673 fi
3674 noconfigdirs="$noconfigdirs target-libgloss"
3675 # If we are not using a cross compiler, do configure newlib.
3676 # Note however, that newlib will only be configured in this situation
3677 # if the --with-newlib option has been given, because otherwise
3678 # 'target-newlib' will appear in skipdirs.
3679 ;;
3680 i[3456789]86-*-rdos*)
3681 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3682 ;;
3683 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3684 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3685 ;;
3686 sparc-*-sunos4*)
3687 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3688 ;;
91dfef96
JM
3689 bpf-*-*)
3690 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3691 ;;
6a789d5e
JM
3692 *-*-aix*)
3693 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3694 ;;
3695 *-*-beos*)
3696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3697 ;;
671aa708 3698 *-*-chorusos)
0036370f 3699 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3700 ;;
6a789d5e
JM
3701 *-*-dragonfly*)
3702 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3703 ;;
3704 *-*-freebsd*)
3705 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3706 ;;
3707 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3708 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3709 ;;
3710 *-*-lynxos*)
3711 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3712 ;;
3713 *-*-mingw*)
3714 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3715 ;;
3716 *-*-netbsd*)
3717 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3718 ;;
3719 *-*-netware*)
3720 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3721 ;;
3722 *-*-tpf*)
3723 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3724 ;;
3725 *-*-uclinux*)
3726 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3727 ;;
3728 *-*-vxworks*)
3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3730 ;;
3731esac
3732
3733case "${target}" in
3734 *-*-chorusos)
3735 ;;
3be96231
TG
3736 aarch64-*-darwin*)
3737 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3738 noconfigdirs="$noconfigdirs sim target-rda"
3739 ;;
7431c1a1
AS
3740 amdgcn*-*-*)
3741 ;;
3be96231
TG
3742 arm-*-darwin*)
3743 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3744 noconfigdirs="$noconfigdirs sim target-rda"
3745 ;;
75eeae1a 3746 powerpc-*-darwin*)
e1514c3f 3747 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3748 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3749 ;;
354ebf88
RW
3750 i[3456789]86-*-darwin*)
3751 noconfigdirs="$noconfigdirs ld gprof"
3752 noconfigdirs="$noconfigdirs sim target-rda"
3753 ;;
3754 x86_64-*-darwin[912]*)
0db3a858
TG
3755 noconfigdirs="$noconfigdirs ld gas gprof"
3756 noconfigdirs="$noconfigdirs sim target-rda"
3757 ;;
42c1cd8a
AT
3758 *-*-darwin*)
3759 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3760 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3761 ;;
8c6d158a 3762 *-*-dragonfly*)
8c6d158a 3763 ;;
c3f84f61 3764 *-*-freebsd*)
6de9cd9a 3765 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
c0d0a722 3766 && ! test -d ${srcdir}/gmp \
6de9cd9a
DN
3767 && test -f /usr/local/include/gmp.h; then
3768 with_gmp=/usr/local
3769 fi
6de9cd9a 3770 ;;
ef4e7569
US
3771 *-*-kaos*)
3772 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3773 noconfigdirs="$noconfigdirs target-libgloss"
3774 ;;
671aa708 3775 *-*-netbsd*)
671aa708 3776 ;;
61fec9ff 3777 *-*-netware*)
671aa708 3778 ;;
fd6487af
JS
3779 *-*-phoenix*)
3780 noconfigdirs="$noconfigdirs target-libgloss"
3781 ;;
671aa708 3782 *-*-rtems*)
2909494b 3783 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3784 ;;
a8ba31f2
EC
3785 # The tpf target doesn't support gdb yet.
3786 *-*-tpf*)
6a789d5e 3787 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3788 ;;
5785c0ed 3789 *-*-uclinux*)
6a789d5e 3790 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3791 ;;
671aa708 3792 *-*-vxworks*)
671aa708
NN
3793 ;;
3794 alpha*-dec-osf*)
3795 # ld works, but does not support shared libraries.
671aa708 3796 # gas doesn't generate exception information.
6a789d5e 3797 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3798 ;;
3799 alpha*-*-*vms*)
2909494b 3800 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3801 ;;
671aa708
NN
3802 alpha*-*-*)
3803 # newlib is not 64 bit ready
2909494b 3804 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3805 ;;
91dfef96
JM
3806 bpf-*-*)
3807 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3808 ;;
671aa708 3809 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3810 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3811 ;;
2fd88f4f
AK
3812 arc*-*-*)
3813 noconfigdirs="$noconfigdirs sim"
3814 ;;
671aa708 3815 arm-*-pe*)
2909494b 3816 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3817 ;;
671aa708 3818 arm-*-riscix*)
0036370f 3819 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3820 ;;
b588ae30
GJL
3821 avr-*-*)
3822 if test x${with_avrlibc} != xno; then
3823 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3824 fi
3825 ;;
671aa708 3826 c4x-*-* | tic4x-*-*)
0036370f 3827 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3828 ;;
0036370f
JM
3829 tic54x-*-*)
3830 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3831 ;;
671aa708 3832 d10v-*-*)
0036370f 3833 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3834 ;;
3835 d30v-*-*)
0036370f 3836 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3837 ;;
3838 fr30-*-elf*)
2909494b 3839 noconfigdirs="$noconfigdirs gdb"
671aa708 3840 ;;
a05c2c75
L
3841 ft32-*-*)
3842 noconfigdirs="$noconfigdirs target-rda gprof"
3843 ;;
55f2d967 3844 moxie-*-*)
a05c2c75 3845 noconfigdirs="$noconfigdirs"
55f2d967 3846 ;;
671aa708 3847 h8300*-*-*)
2909494b 3848 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3849 ;;
3850 h8500-*-*)
0036370f 3851 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3852 ;;
ee6a22df 3853 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3854 ;;
a05c2c75
L
3855 hppa*64*-*-hpux*)
3856 noconfigdirs="$noconfigdirs gdb"
3857 ;;
3858 hppa*-*-hpux11*)
3859 noconfigdirs="$noconfigdirs gdb ld"
3860 ;;
4569f85e 3861 hppa*64*-*-linux*)
671aa708 3862 ;;
56f8587a 3863 hppa*-*-linux*)
3e732ba0 3864 ;;
671aa708 3865 hppa*-*-*elf* | \
671aa708
NN
3866 hppa*-*-lites* | \
3867 hppa*-*-openbsd* | \
3868 hppa*64*-*-*)
671aa708 3869 ;;
c03353e2 3870 hppa*-*-pro*)
c03353e2 3871 ;;
671aa708 3872 hppa*-*-*)
2909494b 3873 noconfigdirs="$noconfigdirs ld"
671aa708 3874 ;;
fb87ad5d 3875 i960-*-*)
0036370f 3876 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3877 ;;
671aa708
NN
3878 ia64*-*-elf*)
3879 # No gdb support yet.
1bcce263 3880 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3881 ;;
3882 ia64*-**-hpux*)
5a2931d1 3883 # No ld support yet.
a05c2c75 3884 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3885 ;;
52535a64 3886 ia64*-*-*vms*)
091fe9ca
TG
3887 # No ld support yet.
3888 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3889 ;;
ef4c4300 3890 i[3456789]86-w64-mingw*)
ef4c4300
KT
3891 ;;
3892 i[3456789]86-*-mingw*)
b91f0a41 3893 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3894 ;;
671aa708
NN
3895 *-*-cygwin*)
3896 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3897 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3898 # always build newlib if winsup directory is present.
b91f0a41 3899 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3900 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3901 elif test -d "$srcdir/newlib"; then
b91f0a41 3902 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3903 fi
1c710c3c 3904 ;;
f2a0e225 3905 i[3456789]86-*-pe)
ebb9f8b0 3906 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3907 ;;
f2a0e225 3908 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3909 # The linker does not yet know about weak symbols in COFF,
3910 # and is not configured to handle mixed ELF and COFF.
0036370f 3911 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3912 ;;
f2a0e225 3913 i[3456789]86-*-sco*)
0036370f 3914 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3915 ;;
fbdd5d87 3916 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3917 noconfigdirs="$noconfigdirs target-libgloss"
3918 ;;
f2a0e225 3919 i[3456789]86-*-sysv4*)
0036370f 3920 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3921 ;;
f2a0e225 3922 i[3456789]86-*-beos*)
6a789d5e 3923 noconfigdirs="$noconfigdirs gdb"
3aa83176 3924 ;;
d1f8db0c 3925 i[3456789]86-*-rdos*)
6a789d5e 3926 noconfigdirs="$noconfigdirs gdb"
c03353e2 3927 ;;
671aa708 3928 mmix-*-*)
2909494b 3929 noconfigdirs="$noconfigdirs gdb"
671aa708 3930 ;;
ab34901f 3931 mt-*-*)
79dd769c
AH
3932 noconfigdirs="$noconfigdirs sim"
3933 ;;
58b40a67
FT
3934 nfp-*-*)
3935 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3936 noconfigdirs="$noconfigdirs $target_libraries"
3937 ;;
e6cbe965
SC
3938 pdp11-*-*)
3939 noconfigdirs="$noconfigdirs gdb gprof"
3940 ;;
671aa708
NN
3941 powerpc-*-aix*)
3942 # copied from rs6000-*-* entry
6a789d5e 3943 noconfigdirs="$noconfigdirs gprof"
671aa708 3944 ;;
4569f85e 3945 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3946 target_configdirs="$target_configdirs target-winsup"
0036370f 3947 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3948 # always build newlib.
3949 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3950 ;;
3951 # This is temporary until we can link against shared libraries
3952 powerpcle-*-solaris*)
0036370f 3953 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3954 ;;
3955 powerpc-*-beos*)
6a789d5e 3956 noconfigdirs="$noconfigdirs gdb"
671aa708 3957 ;;
671aa708 3958 rs6000-*-lynxos*)
6a789d5e 3959 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3960 ;;
3961 rs6000-*-aix*)
6a789d5e 3962 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3963 ;;
3964 rs6000-*-*)
2909494b 3965 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3966 ;;
3967 m68k-apollo-*)
0036370f 3968 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3969 ;;
ca9fe997 3970 microblaze*)
2909494b 3971 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3972 ;;
d896cc4d 3973 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3974 if test x$with_newlib = xyes; then
3975 noconfigdirs="$noconfigdirs gprof"
3976 fi
d9dced13 3977 ;;
671aa708 3978 mips*-*-irix5*)
0036370f 3979 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3980 ;;
3981 mips*-*-irix6*)
2909494b 3982 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3983 ;;
671aa708 3984 mips*-*-bsd*)
bc98bcc4 3985 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3986 ;;
671aa708 3987 mips*-*-linux*)
671aa708 3988 ;;
bc98bcc4
JBG
3989 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3990 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3991 noconfigdirs="$noconfigdirs ld gas gprof"
3992 ;;
671aa708 3993 mips*-*-*)
2909494b 3994 noconfigdirs="$noconfigdirs gprof"
671aa708 3995 ;;
738f2522 3996 nvptx*-*-*)
738f2522
BS
3997 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3998 ;;
bc6d9014 3999 sh-*-*)
ea2002ba
CB
4000 case "${target}" in
4001 sh*-*-elf)
2909494b 4002 ;;
ea2002ba 4003 *)
2909494b 4004 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 4005 esac
671aa708 4006 ;;
671aa708 4007 sparc-*-sunos4*)
6a789d5e 4008 if test x${is_cross_compiler} = xno ; then
671aa708
NN
4009 use_gnu_ld=no
4010 fi
4011 ;;
b42f0d7e 4012 tic6x-*-*)
0d557ff8 4013 noconfigdirs="$noconfigdirs sim"
b42f0d7e 4014 ;;
341c653c 4015 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
4016 noconfigdirs="$noconfigdirs sim"
4017 ;;
671aa708 4018 v810-*-*)
0036370f 4019 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
4020 ;;
4021 vax-*-*)
2909494b 4022 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 4023 ;;
1fc1d82e
MR
4024 wasm32-*-*)
4025 noconfigdirs="$noconfigdirs ld"
4026 ;;
671aa708 4027esac
79c06341 4028
671aa708
NN
4029# If we aren't building newlib, then don't build libgloss, since libgloss
4030# depends upon some newlib header files.
4031case "${noconfigdirs}" in
4032 *target-libgloss*) ;;
4033 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4034esac
4035
671aa708 4036# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
4037host_makefile_frag=/dev/null
4038if test -d ${srcdir}/config ; then
4039case "${host}" in
f2a0e225 4040 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
4041 host_makefile_frag="config/mh-djgpp"
4042 ;;
4043 *-cygwin*)
2a79c47f 4044
5213506e
RW
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4046$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 4047echo a >cygwin-cat-check
e25a8c82 4048if test `cat cygwin-cat-check` = a ; then
2a79c47f 4049 rm cygwin-cat-check
5213506e
RW
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4051$as_echo "yes" >&6; }
2a79c47f
NC
4052else
4053 rm cygwin-cat-check
5213506e
RW
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055$as_echo "no" >&6; }
22e05272 4056 as_fn_error $? "The cat command does not ignore carriage return characters.
2a79c47f
NC
4057 Please either mount the build directory in binary mode or run the following
4058 commands before running any configure script:
4059set -o igncr
4060export SHELLOPTS
5213506e 4061 " "$LINENO" 5
2a79c47f
NC
4062fi
4063
671aa708
NN
4064 host_makefile_frag="config/mh-cygwin"
4065 ;;
c53a18d3 4066 *-mingw*)
1f5a6b84 4067 host_makefile_frag="config/mh-mingw"
95af8923 4068 ;;
cabb9d59 4069 alpha*-linux*)
13be44ed
UB
4070 host_makefile_frag="config/mh-alpha-linux"
4071 ;;
efd41714 4072 hppa*-hp-hpux10*)
efd41714 4073 host_makefile_frag="config/mh-pa-hpux10"
671aa708 4074 ;;
111eeb6e 4075 hppa*-hp-hpux*)
efd41714
PB
4076 host_makefile_frag="config/mh-pa"
4077 ;;
4078 hppa*-*)
4079 host_makefile_frag="config/mh-pa"
4080 ;;
54258e22 4081 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
d8ed14ce 4082 host_makefile_frag="config/mh-darwin"
be8fff81 4083 ;;
d19bca38
PB
4084 powerpc-*-aix*)
4085 host_makefile_frag="config/mh-ppc-aix"
4086 ;;
4087 rs6000-*-aix*)
4088 host_makefile_frag="config/mh-ppc-aix"
4089 ;;
671aa708
NN
4090esac
4091fi
4092
55ffb5ed 4093if test "${build}" != "${host}" ; then
0999159b
PB
4094 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4095 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4096 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
c841dc0a 4097 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
0999159b 4098 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3b5e8ee4 4099 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
0999159b 4100 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4101 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
b4c522fa 4102 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
0999159b
PB
4103 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4104 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4105 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4106 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4107 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4108 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4109else
4110 AR_FOR_BUILD="\$(AR)"
4111 AS_FOR_BUILD="\$(AS)"
fb0103e5 4112 CC_FOR_BUILD="\$(CC)"
0999159b 4113 CXX_FOR_BUILD="\$(CXX)"
3b5e8ee4 4114 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
0999159b 4115 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4116 GOC_FOR_BUILD="\$(GOC)"
b4c522fa 4117 GDC_FOR_BUILD="\$(GDC)"
0999159b
PB
4118 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4119 LD_FOR_BUILD="\$(LD)"
4120 NM_FOR_BUILD="\$(NM)"
4121 RANLIB_FOR_BUILD="\$(RANLIB)"
4122 WINDRES_FOR_BUILD="\$(WINDRES)"
4123 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4124fi
4125
4126ac_ext=c
1c710c3c
DJ
4127ac_cpp='$CPP $CPPFLAGS'
4128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4130ac_compiler_gnu=$ac_cv_c_compiler_gnu
4131if test -n "$ac_tool_prefix"; then
4132 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4133set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4135$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4136if ${ac_cv_prog_CC+:} false; then :
5213506e 4137 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4138else
4139 if test -n "$CC"; then
4140 ac_cv_prog_CC="$CC" # Let the user override the test.
4141else
4142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143for as_dir in $PATH
4144do
4145 IFS=$as_save_IFS
4146 test -z "$as_dir" && as_dir=.
5213506e 4147 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4149 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4151 break 2
4152 fi
4153done
5213506e
RW
4154 done
4155IFS=$as_save_IFS
1c710c3c
DJ
4156
4157fi
4158fi
4159CC=$ac_cv_prog_CC
4160if test -n "$CC"; then
5213506e
RW
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4162$as_echo "$CC" >&6; }
1c710c3c 4163else
5213506e
RW
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4165$as_echo "no" >&6; }
1c710c3c
DJ
4166fi
4167
5213506e 4168
1c710c3c
DJ
4169fi
4170if test -z "$ac_cv_prog_CC"; then
4171 ac_ct_CC=$CC
fb0103e5
RG
4172 # Extract the first word of "gcc", so it can be a program name with args.
4173set dummy gcc; ac_word=$2
5213506e
RW
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4176if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4177 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4178else
4179 if test -n "$ac_ct_CC"; then
4180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4181else
4182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183for as_dir in $PATH
4184do
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
5213506e 4187 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4189 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4191 break 2
4192 fi
4193done
5213506e
RW
4194 done
4195IFS=$as_save_IFS
1c710c3c
DJ
4196
4197fi
4198fi
4199ac_ct_CC=$ac_cv_prog_ac_ct_CC
4200if test -n "$ac_ct_CC"; then
5213506e
RW
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4202$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4203else
5213506e
RW
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205$as_echo "no" >&6; }
1c710c3c
DJ
4206fi
4207
5213506e
RW
4208 if test "x$ac_ct_CC" = x; then
4209 CC=""
4210 else
4211 case $cross_compiling:$ac_tool_warned in
4212yes:)
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4215ac_tool_warned=yes ;;
4216esac
4217 CC=$ac_ct_CC
4218 fi
1c710c3c
DJ
4219else
4220 CC="$ac_cv_prog_CC"
4221fi
4222
4223if test -z "$CC"; then
5213506e
RW
4224 if test -n "$ac_tool_prefix"; then
4225 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4226set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4229if ${ac_cv_prog_CC+:} false; then :
5213506e 4230 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4231else
4232 if test -n "$CC"; then
4233 ac_cv_prog_CC="$CC" # Let the user override the test.
4234else
1c710c3c
DJ
4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH
4237do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
5213506e 4240 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4242 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4244 break 2
4245 fi
4246done
5213506e
RW
4247 done
4248IFS=$as_save_IFS
1c710c3c 4249
0b0dc272 4250fi
0b0dc272 4251fi
1c710c3c 4252CC=$ac_cv_prog_CC
af71363e 4253if test -n "$CC"; then
5213506e
RW
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4255$as_echo "$CC" >&6; }
2aeb72e9 4256else
5213506e
RW
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258$as_echo "no" >&6; }
2aeb72e9
DD
4259fi
4260
2aeb72e9 4261
5213506e 4262 fi
1c710c3c 4263fi
55ffb5ed
NN
4264if test -z "$CC"; then
4265 # Extract the first word of "cc", so it can be a program name with args.
4266set dummy cc; ac_word=$2
5213506e
RW
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4269if ${ac_cv_prog_CC+:} false; then :
5213506e 4270 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4271else
4272 if test -n "$CC"; then
4273 ac_cv_prog_CC="$CC" # Let the user override the test.
4274else
0b0dc272 4275 ac_prog_rejected=no
1c710c3c
DJ
4276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277for as_dir in $PATH
4278do
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
5213506e 4281 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4283 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4284 ac_prog_rejected=yes
4285 continue
4286 fi
4287 ac_cv_prog_CC="cc"
5213506e 4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4289 break 2
4290 fi
4291done
5213506e
RW
4292 done
4293IFS=$as_save_IFS
1c710c3c 4294
55ffb5ed
NN
4295if test $ac_prog_rejected = yes; then
4296 # We found a bogon in the path, so make sure we never use it.
4297 set dummy $ac_cv_prog_CC
4298 shift
1c710c3c 4299 if test $# != 0; then
55ffb5ed
NN
4300 # We chose a different compiler from the bogus one.
4301 # However, it has the same basename, so the bogon will be chosen
4302 # first if we set CC to just the basename; use the full file name.
4303 shift
1c710c3c 4304 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4305 fi
4306fi
4307fi
4308fi
1c710c3c 4309CC=$ac_cv_prog_CC
55ffb5ed 4310if test -n "$CC"; then
5213506e
RW
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4312$as_echo "$CC" >&6; }
55ffb5ed 4313else
5213506e
RW
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315$as_echo "no" >&6; }
55ffb5ed
NN
4316fi
4317
5213506e 4318
1c710c3c
DJ
4319fi
4320if test -z "$CC"; then
4321 if test -n "$ac_tool_prefix"; then
5213506e 4322 for ac_prog in cl.exe
1c710c3c
DJ
4323 do
4324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4325set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4327$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4328if ${ac_cv_prog_CC+:} false; then :
5213506e 4329 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4330else
4331 if test -n "$CC"; then
4332 ac_cv_prog_CC="$CC" # Let the user override the test.
4333else
1c710c3c
DJ
4334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335for as_dir in $PATH
4336do
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
5213506e 4339 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4341 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4343 break 2
4344 fi
4345done
5213506e
RW
4346 done
4347IFS=$as_save_IFS
1c710c3c 4348
55ffb5ed
NN
4349fi
4350fi
1c710c3c 4351CC=$ac_cv_prog_CC
55ffb5ed 4352if test -n "$CC"; then
5213506e
RW
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4354$as_echo "$CC" >&6; }
a4b9e93e 4355else
5213506e
RW
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357$as_echo "no" >&6; }
fb0103e5 4358fi
af71363e 4359
5213506e 4360
1c710c3c
DJ
4361 test -n "$CC" && break
4362 done
af71363e 4363fi
1c710c3c
DJ
4364if test -z "$CC"; then
4365 ac_ct_CC=$CC
5213506e 4366 for ac_prog in cl.exe
1c710c3c
DJ
4367do
4368 # Extract the first word of "$ac_prog", so it can be a program name with args.
4369set dummy $ac_prog; ac_word=$2
5213506e
RW
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4371$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4372if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4373 $as_echo_n "(cached) " >&6
0b0dc272 4374else
1c710c3c
DJ
4375 if test -n "$ac_ct_CC"; then
4376 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4377else
1c710c3c
DJ
4378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379for as_dir in $PATH
4380do
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
5213506e 4383 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4385 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4387 break 2
4388 fi
4389done
5213506e
RW
4390 done
4391IFS=$as_save_IFS
1c710c3c 4392
af71363e
AS
4393fi
4394fi
1c710c3c
DJ
4395ac_ct_CC=$ac_cv_prog_ac_ct_CC
4396if test -n "$ac_ct_CC"; then
5213506e
RW
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4398$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4399else
5213506e
RW
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4401$as_echo "no" >&6; }
af71363e 4402fi
0b0dc272 4403
5213506e 4404
1c710c3c
DJ
4405 test -n "$ac_ct_CC" && break
4406done
4407
5213506e
RW
4408 if test "x$ac_ct_CC" = x; then
4409 CC=""
4410 else
4411 case $cross_compiling:$ac_tool_warned in
4412yes:)
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4415ac_tool_warned=yes ;;
4416esac
4417 CC=$ac_ct_CC
4418 fi
1c710c3c
DJ
4419fi
4420
4421fi
4422
4423
5213506e
RW
4424test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4426as_fn_error $? "no acceptable C compiler found in \$PATH
4427See \`config.log' for more details" "$LINENO" 5; }
1c710c3c
DJ
4428
4429# Provide some information about the compiler.
5213506e
RW
4430$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4431set X $ac_compile
4432ac_compiler=$2
4433for ac_option in --version -v -V -qversion; do
4434 { { ac_try="$ac_compiler $ac_option >&5"
4435case "(($ac_try" in
4436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437 *) ac_try_echo=$ac_try;;
4438esac
4439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4440$as_echo "$ac_try_echo"; } >&5
4441 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4442 ac_status=$?
5213506e
RW
4443 if test -s conftest.err; then
4444 sed '10a\
4445... rest of stderr output deleted ...
4446 10q' conftest.err >conftest.er1
4447 cat conftest.er1 >&5
5213506e 4448 fi
22e05272 4449 rm -f conftest.er1 conftest.err
5213506e
RW
4450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4451 test $ac_status = 0; }
4452done
1c710c3c 4453
5213506e 4454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4455/* end confdefs.h. */
4456
4457int
4458main ()
4459{
4460
4461 ;
4462 return 0;
4463}
4464_ACEOF
4465ac_clean_files_save=$ac_clean_files
22e05272 4466ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1c710c3c
DJ
4467# Try to create an executable without -o first, disregard a.out.
4468# It will help us diagnose broken compilers, and finding out an intuition
4469# of exeext.
22e05272
JM
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4471$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4472ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4473
4474# The possible output files:
4475ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4476
4477ac_rmfiles=
4478for ac_file in $ac_files
4479do
4480 case $ac_file in
4481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4482 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4483 esac
4484done
4485rm -f $ac_rmfiles
4486
4487if { { ac_try="$ac_link_default"
4488case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491esac
4492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4493$as_echo "$ac_try_echo"; } >&5
4494 (eval "$ac_link_default") 2>&5
1c710c3c 4495 ac_status=$?
5213506e
RW
4496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4497 test $ac_status = 0; }; then :
4498 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4499# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4500# in a Makefile. We should not override ac_cv_exeext if it was cached,
4501# so that the user can short-circuit this test for compilers unknown to
4502# Autoconf.
4503for ac_file in $ac_files ''
1c710c3c
DJ
4504do
4505 test -f "$ac_file" || continue
4506 case $ac_file in
5213506e 4507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4508 ;;
4509 [ab].out )
4510 # We found the default executable, but exeext='' is most
4511 # certainly right.
4512 break;;
4513 *.* )
5213506e
RW
4514 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4515 then :; else
4516 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4517 fi
4518 # We set ac_cv_exeext here because the later test for it is not
4519 # safe: cross compilers may not add the suffix if given an `-o'
4520 # argument, so we may need to know it at that point already.
4521 # Even if this section looks crufty: it has the advantage of
4522 # actually working.
1c710c3c
DJ
4523 break;;
4524 * )
4525 break;;
4526 esac
4527done
5213506e
RW
4528test "$ac_cv_exeext" = no && ac_cv_exeext=
4529
1c710c3c 4530else
5213506e
RW
4531 ac_file=''
4532fi
5213506e 4533if test -z "$ac_file"; then :
22e05272
JM
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535$as_echo "no" >&6; }
4536$as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4537sed 's/^/| /' conftest.$ac_ext >&5
4538
5213506e
RW
4539{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4541as_fn_error 77 "C compiler cannot create executables
4542See \`config.log' for more details" "$LINENO" 5; }
4543else
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4545$as_echo "yes" >&6; }
1c710c3c 4546fi
22e05272
JM
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4548$as_echo_n "checking for C compiler default output file name... " >&6; }
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4550$as_echo "$ac_file" >&6; }
1c710c3c 4551ac_exeext=$ac_cv_exeext
1c710c3c 4552
22e05272 4553rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1c710c3c 4554ac_clean_files=$ac_clean_files_save
5213506e
RW
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4556$as_echo_n "checking for suffix of executables... " >&6; }
4557if { { ac_try="$ac_link"
4558case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4561esac
4562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4563$as_echo "$ac_try_echo"; } >&5
4564 (eval "$ac_link") 2>&5
1c710c3c 4565 ac_status=$?
5213506e
RW
4566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4567 test $ac_status = 0; }; then :
1c710c3c
DJ
4568 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4569# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4570# work properly (i.e., refer to `conftest.exe'), while it won't with
4571# `rm'.
4572for ac_file in conftest.exe conftest conftest.*; do
4573 test -f "$ac_file" || continue
4574 case $ac_file in
5213506e 4575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4576 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4577 break;;
4578 * ) break;;
4579 esac
4580done
af71363e 4581else
5213506e
RW
4582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4584as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4585See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4586fi
22e05272 4587rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4589$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4590
4591rm -f conftest.$ac_ext
4592EXEEXT=$ac_cv_exeext
4593ac_exeext=$EXEEXT
22e05272
JM
4594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595/* end confdefs.h. */
4596#include <stdio.h>
4597int
4598main ()
4599{
4600FILE *f = fopen ("conftest.out", "w");
4601 return ferror (f) || fclose (f) != 0;
4602
4603 ;
4604 return 0;
4605}
4606_ACEOF
4607ac_clean_files="$ac_clean_files conftest.out"
4608# Check that the compiler produces executables we can run. If not, either
4609# the compiler is broken, or we cross compile.
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4611$as_echo_n "checking whether we are cross compiling... " >&6; }
4612if test "$cross_compiling" != yes; then
4613 { { ac_try="$ac_link"
4614case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4617esac
4618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4619$as_echo "$ac_try_echo"; } >&5
4620 (eval "$ac_link") 2>&5
4621 ac_status=$?
4622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4623 test $ac_status = 0; }
4624 if { ac_try='./conftest$ac_cv_exeext'
4625 { { case "(($ac_try" in
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4628esac
4629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4630$as_echo "$ac_try_echo"; } >&5
4631 (eval "$ac_try") 2>&5
4632 ac_status=$?
4633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4634 test $ac_status = 0; }; }; then
4635 cross_compiling=no
4636 else
4637 if test "$cross_compiling" = maybe; then
4638 cross_compiling=yes
4639 else
4640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4642as_fn_error $? "cannot run C compiled programs.
4643If you meant to cross compile, use \`--host'.
4644See \`config.log' for more details" "$LINENO" 5; }
4645 fi
4646 fi
4647fi
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4649$as_echo "$cross_compiling" >&6; }
4650
4651rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4652ac_clean_files=$ac_clean_files_save
5213506e
RW
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4654$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4655if ${ac_cv_objext+:} false; then :
5213506e 4656 $as_echo_n "(cached) " >&6
1c710c3c 4657else
5213506e 4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4659/* end confdefs.h. */
4660
4661int
4662main ()
4663{
4664
4665 ;
4666 return 0;
4667}
4668_ACEOF
4669rm -f conftest.o conftest.obj
5213506e
RW
4670if { { ac_try="$ac_compile"
4671case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4674esac
4675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4676$as_echo "$ac_try_echo"; } >&5
4677 (eval "$ac_compile") 2>&5
1c710c3c 4678 ac_status=$?
5213506e
RW
4679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4680 test $ac_status = 0; }; then :
4681 for ac_file in conftest.o conftest.obj conftest.*; do
4682 test -f "$ac_file" || continue;
1c710c3c 4683 case $ac_file in
5213506e 4684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4685 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4686 break;;
4687 esac
4688done
4689else
5213506e 4690 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4691sed 's/^/| /' conftest.$ac_ext >&5
4692
5213506e
RW
4693{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4695as_fn_error $? "cannot compute suffix of object files: cannot compile
4696See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4697fi
1c710c3c
DJ
4698rm -f conftest.$ac_cv_objext conftest.$ac_ext
4699fi
5213506e
RW
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4701$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4702OBJEXT=$ac_cv_objext
4703ac_objext=$OBJEXT
5213506e
RW
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4705$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4706if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4707 $as_echo_n "(cached) " >&6
1c710c3c 4708else
5213506e 4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4710/* end confdefs.h. */
4711
4712int
4713main ()
4714{
4715#ifndef __GNUC__
4716 choke me
4717#endif
4718
4719 ;
4720 return 0;
4721}
4722_ACEOF
5213506e 4723if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4724 ac_compiler_gnu=yes
4725else
5213506e 4726 ac_compiler_gnu=no
1c710c3c 4727fi
5213506e 4728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4729ac_cv_c_compiler_gnu=$ac_compiler_gnu
4730
4731fi
5213506e
RW
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4733$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4734if test $ac_compiler_gnu = yes; then
4735 GCC=yes
4736else
4737 GCC=
4738fi
1c710c3c
DJ
4739ac_test_CFLAGS=${CFLAGS+set}
4740ac_save_CFLAGS=$CFLAGS
5213506e
RW
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4742$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4743if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4744 $as_echo_n "(cached) " >&6
4745else
4746 ac_save_c_werror_flag=$ac_c_werror_flag
4747 ac_c_werror_flag=yes
4748 ac_cv_prog_cc_g=no
4749 CFLAGS="-g"
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4751/* end confdefs.h. */
4752
4753int
4754main ()
4755{
4756
4757 ;
4758 return 0;
4759}
4760_ACEOF
5213506e 4761if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4762 ac_cv_prog_cc_g=yes
4763else
5213506e
RW
4764 CFLAGS=""
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766/* end confdefs.h. */
4767
4768int
4769main ()
4770{
4771
4772 ;
4773 return 0;
4774}
4775_ACEOF
4776if ac_fn_c_try_compile "$LINENO"; then :
4777
4778else
4779 ac_c_werror_flag=$ac_save_c_werror_flag
4780 CFLAGS="-g"
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782/* end confdefs.h. */
af71363e 4783
5213506e
RW
4784int
4785main ()
4786{
4787
4788 ;
4789 return 0;
4790}
4791_ACEOF
4792if ac_fn_c_try_compile "$LINENO"; then :
4793 ac_cv_prog_cc_g=yes
4794fi
4795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4796fi
5213506e 4797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4798fi
5213506e
RW
4799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800 ac_c_werror_flag=$ac_save_c_werror_flag
4801fi
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4803$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4804if test "$ac_test_CFLAGS" = set; then
1c710c3c 4805 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4806elif test $ac_cv_prog_cc_g = yes; then
4807 if test "$GCC" = yes; then
4808 CFLAGS="-g -O2"
4809 else
4810 CFLAGS="-g"
4811 fi
4812else
4813 if test "$GCC" = yes; then
4814 CFLAGS="-O2"
4815 else
4816 CFLAGS=
4817 fi
4818fi
5213506e
RW
4819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4820$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4821if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4822 $as_echo_n "(cached) " >&6
1c710c3c 4823else
5213506e 4824 ac_cv_prog_cc_c89=no
1c710c3c 4825ac_save_CC=$CC
5213506e 4826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4827/* end confdefs.h. */
4828#include <stdarg.h>
4829#include <stdio.h>
22e05272 4830struct stat;
1c710c3c
DJ
4831/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4832struct buf { int x; };
4833FILE * (*rcsopen) (struct buf *, struct stat *, int);
4834static char *e (p, i)
4835 char **p;
4836 int i;
4837{
4838 return p[i];
4839}
4840static char *f (char * (*g) (char **, int), char **p, ...)
4841{
4842 char *s;
4843 va_list v;
4844 va_start (v,p);
4845 s = g (p, va_arg (v,int));
4846 va_end (v);
4847 return s;
4848}
4849
4850/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4851 function prototypes and stuff, but not '\xHH' hex character constants.
4852 These don't provoke an error unfortunately, instead are silently treated
5213506e 4853 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4854 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4855 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4856 that's true only with -std. */
1c710c3c
DJ
4857int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4858
5213506e
RW
4859/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4860 inside strings and character constants. */
4861#define FOO(x) 'x'
4862int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4863
1c710c3c
DJ
4864int test (int i, double x);
4865struct s1 {int (*f) (int a);};
4866struct s2 {int (*f) (double a);};
4867int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4868int argc;
4869char **argv;
4870int
4871main ()
4872{
4873return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4874 ;
4875 return 0;
4876}
4877_ACEOF
5213506e
RW
4878for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4879 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4880do
4881 CC="$ac_save_CC $ac_arg"
5213506e
RW
4882 if ac_fn_c_try_compile "$LINENO"; then :
4883 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4884fi
5213506e
RW
4885rm -f core conftest.err conftest.$ac_objext
4886 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4887done
5213506e 4888rm -f conftest.$ac_ext
1c710c3c
DJ
4889CC=$ac_save_CC
4890
4891fi
5213506e
RW
4892# AC_CACHE_VAL
4893case "x$ac_cv_prog_cc_c89" in
4894 x)
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4896$as_echo "none needed" >&6; } ;;
4897 xno)
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4899$as_echo "unsupported" >&6; } ;;
1c710c3c 4900 *)
5213506e
RW
4901 CC="$CC $ac_cv_prog_cc_c89"
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4903$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4904esac
5213506e 4905if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4906
2aeb72e9
DD
4907fi
4908
2aeb72e9
DD
4909ac_ext=c
4910ac_cpp='$CPP $CPPFLAGS'
4911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913ac_compiler_gnu=$ac_cv_c_compiler_gnu
4914
91743432
NC
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4916$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4917if ${ac_cv_prog_cc_c99+:} false; then :
4918 $as_echo_n "(cached) " >&6
4919else
4920 ac_cv_prog_cc_c99=no
4921ac_save_CC=$CC
4922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923/* end confdefs.h. */
4924#include <stdarg.h>
4925#include <stdbool.h>
4926#include <stdlib.h>
4927#include <wchar.h>
4928#include <stdio.h>
4929
4930// Check varargs macros. These examples are taken from C99 6.10.3.5.
4931#define debug(...) fprintf (stderr, __VA_ARGS__)
4932#define showlist(...) puts (#__VA_ARGS__)
4933#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4934static void
4935test_varargs_macros (void)
4936{
4937 int x = 1234;
4938 int y = 5678;
4939 debug ("Flag");
4940 debug ("X = %d\n", x);
4941 showlist (The first, second, and third items.);
4942 report (x>y, "x is %d but y is %d", x, y);
4943}
4944
4945// Check long long types.
4946#define BIG64 18446744073709551615ull
4947#define BIG32 4294967295ul
4948#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4949#if !BIG_OK
4950 your preprocessor is broken;
4951#endif
4952#if BIG_OK
4953#else
4954 your preprocessor is broken;
4955#endif
4956static long long int bignum = -9223372036854775807LL;
4957static unsigned long long int ubignum = BIG64;
4958
4959struct incomplete_array
4960{
4961 int datasize;
4962 double data[];
4963};
4964
4965struct named_init {
4966 int number;
4967 const wchar_t *name;
4968 double average;
4969};
4970
4971typedef const char *ccp;
4972
4973static inline int
4974test_restrict (ccp restrict text)
4975{
4976 // See if C++-style comments work.
4977 // Iterate through items via the restricted pointer.
4978 // Also check for declarations in for loops.
4979 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4980 continue;
4981 return 0;
4982}
4983
4984// Check varargs and va_copy.
4985static void
4986test_varargs (const char *format, ...)
4987{
4988 va_list args;
4989 va_start (args, format);
4990 va_list args_copy;
4991 va_copy (args_copy, args);
4992
4993 const char *str;
4994 int number;
4995 float fnumber;
4996
4997 while (*format)
4998 {
4999 switch (*format++)
5000 {
5001 case 's': // string
5002 str = va_arg (args_copy, const char *);
5003 break;
5004 case 'd': // int
5005 number = va_arg (args_copy, int);
5006 break;
5007 case 'f': // float
5008 fnumber = va_arg (args_copy, double);
5009 break;
5010 default:
5011 break;
5012 }
5013 }
5014 va_end (args_copy);
5015 va_end (args);
5016}
5017
5018int
5019main ()
5020{
5021
5022 // Check bool.
5023 _Bool success = false;
5024
5025 // Check restrict.
5026 if (test_restrict ("String literal") == 0)
5027 success = true;
5028 char *restrict newvar = "Another string";
5029
5030 // Check varargs.
5031 test_varargs ("s, d' f .", "string", 65, 34.234);
5032 test_varargs_macros ();
5033
5034 // Check flexible array members.
5035 struct incomplete_array *ia =
5036 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5037 ia->datasize = 10;
5038 for (int i = 0; i < ia->datasize; ++i)
5039 ia->data[i] = i * 1.234;
5040
5041 // Check named initializers.
5042 struct named_init ni = {
5043 .number = 34,
5044 .name = L"Test wide string",
5045 .average = 543.34343,
5046 };
5047
5048 ni.number = 58;
5049
5050 int dynamic_array[ni.number];
5051 dynamic_array[ni.number - 1] = 543;
5052
5053 // work around unused variable warnings
5054 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5055 || dynamic_array[ni.number - 1] != 543);
5056
5057 ;
5058 return 0;
5059}
5060_ACEOF
5061for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5062do
5063 CC="$ac_save_CC $ac_arg"
5064 if ac_fn_c_try_compile "$LINENO"; then :
5065 ac_cv_prog_cc_c99=$ac_arg
5066fi
5067rm -f core conftest.err conftest.$ac_objext
5068 test "x$ac_cv_prog_cc_c99" != "xno" && break
5069done
5070rm -f conftest.$ac_ext
5071CC=$ac_save_CC
5072
5073fi
5074# AC_CACHE_VAL
5075case "x$ac_cv_prog_cc_c99" in
5076 x)
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5078$as_echo "none needed" >&6; } ;;
5079 xno)
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5081$as_echo "unsupported" >&6; } ;;
5082 *)
5083 CC="$CC $ac_cv_prog_cc_c99"
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5085$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5086esac
5087if test "x$ac_cv_prog_cc_c99" != xno; then :
5088
5089fi
5090
5091
5213506e 5092ac_ext=cpp
2aeb72e9
DD
5093ac_cpp='$CXXCPP $CPPFLAGS'
5094ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
5097if test -z "$CXX"; then
5098 if test -n "$CCC"; then
5099 CXX=$CCC
5100 else
5101 if test -n "$ac_tool_prefix"; then
5102 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
5103 do
5104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5105set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5108if ${ac_cv_prog_CXX+:} false; then :
5213506e 5109 $as_echo_n "(cached) " >&6
2aeb72e9
DD
5110else
5111 if test -n "$CXX"; then
5112 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5113else
5114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115for as_dir in $PATH
5116do
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5213506e 5119 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2aeb72e9 5121 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
5123 break 2
5124 fi
5125done
5213506e
RW
5126 done
5127IFS=$as_save_IFS
55ffb5ed 5128
c3a86da9
DJ
5129fi
5130fi
5131CXX=$ac_cv_prog_CXX
5132if test -n "$CXX"; then
5213506e
RW
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5134$as_echo "$CXX" >&6; }
c3a86da9 5135else
5213506e
RW
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137$as_echo "no" >&6; }
c3a86da9
DJ
5138fi
5139
5213506e 5140
c3a86da9
DJ
5141 test -n "$CXX" && break
5142 done
5143fi
5144if test -z "$CXX"; then
5145 ac_ct_CXX=$CXX
5213506e 5146 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
5147do
5148 # Extract the first word of "$ac_prog", so it can be a program name with args.
5149set dummy $ac_prog; ac_word=$2
5213506e
RW
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5152if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5213506e 5153 $as_echo_n "(cached) " >&6
c3a86da9
DJ
5154else
5155 if test -n "$ac_ct_CXX"; then
5156 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5157else
5158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159for as_dir in $PATH
5160do
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5213506e 5163 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9 5165 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
5167 break 2
5168 fi
5169done
5213506e
RW
5170 done
5171IFS=$as_save_IFS
c3a86da9
DJ
5172
5173fi
5174fi
5175ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5176if test -n "$ac_ct_CXX"; then
5213506e
RW
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5178$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 5179else
5213506e
RW
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181$as_echo "no" >&6; }
c3a86da9
DJ
5182fi
5183
5213506e 5184
c3a86da9
DJ
5185 test -n "$ac_ct_CXX" && break
5186done
c3a86da9 5187
5213506e
RW
5188 if test "x$ac_ct_CXX" = x; then
5189 CXX="g++"
5190 else
5191 case $cross_compiling:$ac_tool_warned in
5192yes:)
5193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5195ac_tool_warned=yes ;;
5196esac
5197 CXX=$ac_ct_CXX
5198 fi
c3a86da9
DJ
5199fi
5200
5213506e
RW
5201 fi
5202fi
c3a86da9 5203# Provide some information about the compiler.
5213506e
RW
5204$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5205set X $ac_compile
5206ac_compiler=$2
5207for ac_option in --version -v -V -qversion; do
5208 { { ac_try="$ac_compiler $ac_option >&5"
5209case "(($ac_try" in
5210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211 *) ac_try_echo=$ac_try;;
5212esac
5213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5214$as_echo "$ac_try_echo"; } >&5
5215 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 5216 ac_status=$?
5213506e
RW
5217 if test -s conftest.err; then
5218 sed '10a\
5219... rest of stderr output deleted ...
5220 10q' conftest.err >conftest.er1
5221 cat conftest.er1 >&5
5213506e 5222 fi
22e05272 5223 rm -f conftest.er1 conftest.err
5213506e
RW
5224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5225 test $ac_status = 0; }
5226done
c3a86da9 5227
5213506e
RW
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5229$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5230if ${ac_cv_cxx_compiler_gnu+:} false; then :
5213506e 5231 $as_echo_n "(cached) " >&6
c3a86da9 5232else
5213506e 5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5234/* end confdefs.h. */
5235
5236int
5237main ()
5238{
5239#ifndef __GNUC__
5240 choke me
5241#endif
5242
5243 ;
5244 return 0;
5245}
5246_ACEOF
5213506e 5247if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5248 ac_compiler_gnu=yes
5249else
5213506e 5250 ac_compiler_gnu=no
c3a86da9 5251fi
5213506e 5252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
5253ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5254
5255fi
5213506e
RW
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5257$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5258if test $ac_compiler_gnu = yes; then
5259 GXX=yes
5260else
5261 GXX=
5262fi
c3a86da9
DJ
5263ac_test_CXXFLAGS=${CXXFLAGS+set}
5264ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5266$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5267if ${ac_cv_prog_cxx_g+:} false; then :
5213506e
RW
5268 $as_echo_n "(cached) " >&6
5269else
5270 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5271 ac_cxx_werror_flag=yes
5272 ac_cv_prog_cxx_g=no
5273 CXXFLAGS="-g"
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5275/* end confdefs.h. */
5276
5277int
5278main ()
5279{
5280
5281 ;
5282 return 0;
5283}
5284_ACEOF
5213506e 5285if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5286 ac_cv_prog_cxx_g=yes
5287else
5213506e
RW
5288 CXXFLAGS=""
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5290/* end confdefs.h. */
5213506e 5291
c3a86da9
DJ
5292int
5293main ()
5294{
5213506e 5295
c3a86da9
DJ
5296 ;
5297 return 0;
5298}
5299_ACEOF
5213506e 5300if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5301
5213506e
RW
5302else
5303 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5304 CXXFLAGS="-g"
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5306/* end confdefs.h. */
5213506e 5307
c3a86da9
DJ
5308int
5309main ()
5310{
5213506e 5311
c3a86da9
DJ
5312 ;
5313 return 0;
5314}
5315_ACEOF
5213506e
RW
5316if ac_fn_cxx_try_compile "$LINENO"; then :
5317 ac_cv_prog_cxx_g=yes
11a67599 5318fi
5213506e
RW
5319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5320fi
5321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322fi
5323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5325fi
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5327$as_echo "$ac_cv_prog_cxx_g" >&6; }
5328if test "$ac_test_CXXFLAGS" = set; then
5329 CXXFLAGS=$ac_save_CXXFLAGS
5330elif test $ac_cv_prog_cxx_g = yes; then
5331 if test "$GXX" = yes; then
5332 CXXFLAGS="-g -O2"
5333 else
5334 CXXFLAGS="-g"
5335 fi
5336else
5337 if test "$GXX" = yes; then
5338 CXXFLAGS="-O2"
5339 else
5340 CXXFLAGS=
5341 fi
c3a86da9 5342fi
c3a86da9
DJ
5343ac_ext=c
5344ac_cpp='$CPP $CPPFLAGS'
5345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347ac_compiler_gnu=$ac_cv_c_compiler_gnu
5348
5349
5350# We must set the default linker to the linker used by gcc for the correct
5351# operation of libtool. If LD is not defined and we are using gcc, try to
5352# set the LD default to the ld used by gcc.
5353if test -z "$LD"; then
5354 if test "$GCC" = yes; then
5355 case $build in
5356 *-*-mingw*)
5357 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5358 *)
5359 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5360 esac
5361 case $gcc_prog_ld in
5362 # Accept absolute paths.
5363 [\\/]* | [A-Za-z]:[\\/]*)
5364 LD="$gcc_prog_ld" ;;
5365 esac
5366 fi
23f6b2f9
PB
5367fi
5368
0b21f5d3
EB
5369# Check whether -static-libstdc++ -static-libgcc is supported.
5370have_static_libs=no
5371if test "$GCC" = yes; then
5372 saved_LDFLAGS="$LDFLAGS"
5373
5374 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5376$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5377 ac_ext=cpp
5378ac_cpp='$CXXCPP $CPPFLAGS'
5379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5382
5383
5384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385/* end confdefs.h. */
0d6414b2
EB
5386
5387#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5388#error -static-libstdc++ not implemented
5389#endif
0b21f5d3
EB
5390int main() {}
5391_ACEOF
5392if ac_fn_cxx_try_link "$LINENO"; then :
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5394$as_echo "yes" >&6; }; have_static_libs=yes
5395else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397$as_echo "no" >&6; }
5398fi
5399rm -f core conftest.err conftest.$ac_objext \
5400 conftest$ac_exeext conftest.$ac_ext
5401 ac_ext=c
5402ac_cpp='$CPP $CPPFLAGS'
5403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405ac_compiler_gnu=$ac_cv_c_compiler_gnu
5406
5407
5408 LDFLAGS="$saved_LDFLAGS"
5409fi
5410
23f6b2f9
PB
5411
5412
55ffb5ed 5413
1c710c3c
DJ
5414if test -n "$ac_tool_prefix"; then
5415 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5416set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5419if ${ac_cv_prog_GNATBIND+:} false; then :
5213506e 5420 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5421else
5422 if test -n "$GNATBIND"; then
5423 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5424else
1c710c3c
DJ
5425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426for as_dir in $PATH
5427do
5428 IFS=$as_save_IFS
5429 test -z "$as_dir" && as_dir=.
5213506e 5430 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5432 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5434 break 2
5435 fi
5436done
5213506e
RW
5437 done
5438IFS=$as_save_IFS
1c710c3c 5439
55ffb5ed
NN
5440fi
5441fi
1c710c3c 5442GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5443if test -n "$GNATBIND"; then
5213506e
RW
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5445$as_echo "$GNATBIND" >&6; }
55ffb5ed 5446else
5213506e
RW
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448$as_echo "no" >&6; }
55ffb5ed
NN
5449fi
5450
5213506e 5451
1c710c3c 5452fi
55ffb5ed 5453if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5454 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5455 # Extract the first word of "gnatbind", so it can be a program name with args.
5456set dummy gnatbind; ac_word=$2
5213506e
RW
5457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5459if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5213506e 5460 $as_echo_n "(cached) " >&6
55ffb5ed 5461else
1c710c3c
DJ
5462 if test -n "$ac_ct_GNATBIND"; then
5463 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5464else
1c710c3c
DJ
5465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466for as_dir in $PATH
5467do
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5213506e 5470 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5472 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5474 break 2
5475 fi
5476done
5213506e
RW
5477 done
5478IFS=$as_save_IFS
1c710c3c 5479
55ffb5ed
NN
5480fi
5481fi
1c710c3c
DJ
5482ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5483if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5485$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5486else
5213506e
RW
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488$as_echo "no" >&6; }
55ffb5ed
NN
5489fi
5490
5213506e
RW
5491 if test "x$ac_ct_GNATBIND" = x; then
5492 GNATBIND="no"
5493 else
5494 case $cross_compiling:$ac_tool_warned in
5495yes:)
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5498ac_tool_warned=yes ;;
5499esac
5500 GNATBIND=$ac_ct_GNATBIND
5501 fi
55ffb5ed 5502else
1c710c3c 5503 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5504fi
5505
1c710c3c
DJ
5506if test -n "$ac_tool_prefix"; then
5507 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5508set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5511if ${ac_cv_prog_GNATMAKE+:} false; then :
5213506e 5512 $as_echo_n "(cached) " >&6
5305be7e
RG
5513else
5514 if test -n "$GNATMAKE"; then
5515 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5516else
1c710c3c
DJ
5517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518for as_dir in $PATH
5519do
5520 IFS=$as_save_IFS
5521 test -z "$as_dir" && as_dir=.
5213506e 5522 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5524 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5526 break 2
5527 fi
5528done
5213506e
RW
5529 done
5530IFS=$as_save_IFS
1c710c3c 5531
5305be7e
RG
5532fi
5533fi
1c710c3c 5534GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5535if test -n "$GNATMAKE"; then
5213506e
RW
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5537$as_echo "$GNATMAKE" >&6; }
5305be7e 5538else
5213506e
RW
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540$as_echo "no" >&6; }
5305be7e
RG
5541fi
5542
5213506e 5543
1c710c3c 5544fi
5305be7e 5545if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5546 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5547 # Extract the first word of "gnatmake", so it can be a program name with args.
5548set dummy gnatmake; ac_word=$2
5213506e
RW
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5551if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5213506e 5552 $as_echo_n "(cached) " >&6
5305be7e 5553else
1c710c3c
DJ
5554 if test -n "$ac_ct_GNATMAKE"; then
5555 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5556else
1c710c3c
DJ
5557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558for as_dir in $PATH
5559do
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5213506e 5562 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5564 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5566 break 2
5567 fi
5568done
5213506e
RW
5569 done
5570IFS=$as_save_IFS
1c710c3c 5571
5305be7e
RG
5572fi
5573fi
1c710c3c
DJ
5574ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5575if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5577$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5578else
5213506e
RW
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580$as_echo "no" >&6; }
5305be7e
RG
5581fi
5582
5213506e
RW
5583 if test "x$ac_ct_GNATMAKE" = x; then
5584 GNATMAKE="no"
5585 else
5586 case $cross_compiling:$ac_tool_warned in
5587yes:)
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5590ac_tool_warned=yes ;;
5591esac
5592 GNATMAKE=$ac_ct_GNATMAKE
5593 fi
5305be7e 5594else
1c710c3c 5595 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5596fi
5597
5213506e
RW
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5599$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
22e05272 5600if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5213506e 5601 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5602else
5603 cat >conftest.adb <<EOF
5604procedure conftest is begin null; end conftest;
5605EOF
5606acx_cv_cc_gcc_supports_ada=no
5607# There is a bug in old released versions of GCC which causes the
5608# driver to exit successfully when the appropriate language module
5609# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5610# Therefore we must check for the error message as well as an
5611# unsuccessful exit.
1db673ca
RO
5612# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5613# given a .adb file, but produce no object file. So we must check
5614# if an object file was really produced to guard against this.
55ffb5ed 5615errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5616if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5617 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5618fi
5619rm -f conftest.*
5620fi
5213506e
RW
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5622$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5623
7cb62ef1 5624if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5625 have_gnat=yes
5626else
5627 have_gnat=no
5628fi
5629
5fee5ec3
IB
5630
5631
5632if test -n "$ac_tool_prefix"; then
5633 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5634set dummy ${ac_tool_prefix}gdc; ac_word=$2
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636$as_echo_n "checking for $ac_word... " >&6; }
5637if ${ac_cv_prog_GDC+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639else
5640 if test -n "$GDC"; then
5641 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5642else
5643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644for as_dir in $PATH
5645do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2
5653 fi
5654done
5655 done
5656IFS=$as_save_IFS
5657
5658fi
5659fi
5660GDC=$ac_cv_prog_GDC
5661if test -n "$GDC"; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5663$as_echo "$GDC" >&6; }
5664else
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666$as_echo "no" >&6; }
5667fi
5668
5669
5670fi
5671if test -z "$ac_cv_prog_GDC"; then
5672 ac_ct_GDC=$GDC
5673 # Extract the first word of "gdc", so it can be a program name with args.
5674set dummy gdc; ac_word=$2
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676$as_echo_n "checking for $ac_word... " >&6; }
5677if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5678 $as_echo_n "(cached) " >&6
5679else
5680 if test -n "$ac_ct_GDC"; then
5681 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5682else
5683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684for as_dir in $PATH
5685do
5686 IFS=$as_save_IFS
5687 test -z "$as_dir" && as_dir=.
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5690 ac_cv_prog_ac_ct_GDC="gdc"
5691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 break 2
5693 fi
5694done
5695 done
5696IFS=$as_save_IFS
5697
5698fi
5699fi
5700ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5701if test -n "$ac_ct_GDC"; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5703$as_echo "$ac_ct_GDC" >&6; }
5704else
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706$as_echo "no" >&6; }
5707fi
5708
5709 if test "x$ac_ct_GDC" = x; then
5710 GDC="no"
5711 else
5712 case $cross_compiling:$ac_tool_warned in
5713yes:)
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5716ac_tool_warned=yes ;;
5717esac
5718 GDC=$ac_ct_GDC
5719 fi
5720else
5721 GDC="$ac_cv_prog_GDC"
5722fi
5723
5724if test "x$GDC" != xno; then
5725 have_gdc=yes
5726else
5727 have_gdc=no
5728fi
5729
5213506e
RW
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5731$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
22e05272 5732if ${gcc_cv_prog_cmp_skip+:} false; then :
5213506e 5733 $as_echo_n "(cached) " >&6
a76494aa
PB
5734else
5735 echo abfoo >t1
5736 echo cdfoo >t2
b55e6680 5737 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5738 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5739 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5740 :
5741 else
5742 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5743 fi
5744 fi
a76494aa
PB
5745 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5746 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5747 :
a76494aa
PB
5748 else
5749 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5750 fi
5751 fi
5752 rm t1 t2
5753
5754fi
5213506e
RW
5755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5756$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5757do_compare="$gcc_cv_prog_cmp_skip"
5758
5759
55ffb5ed 5760
ff3ac0f4
ILT
5761# Check whether --enable-bootstrap was given.
5762if test "${enable_bootstrap+set}" = set; then :
5763 enableval=$enable_bootstrap;
5764else
5765 enable_bootstrap=default
5766fi
5767
5768
5769# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5770if test -r $srcdir/gcc/configure; then
5771 have_compiler=yes
5772else
5773 have_compiler=no
5774fi
ff3ac0f4
ILT
5775
5776case "$have_compiler:$host:$target:$enable_bootstrap" in
5777 *:*:*:no) ;;
5778
5779 # Default behavior. Enable bootstrap if we have a compiler
5780 # and we are in a native configuration.
5781 yes:$build:$build:default)
5782 enable_bootstrap=yes ;;
5783
5784 *:*:*:default)
5785 enable_bootstrap=no ;;
5786
5787 # We have a compiler and we are in a native configuration, bootstrap is ok
5788 yes:$build:$build:yes)
5789 ;;
5790
5791 # Other configurations, but we have a compiler. Assume the user knows
5792 # what he's doing.
5793 yes:*:*:yes)
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5795$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5796 ;;
5797
5798 # No compiler: if they passed --enable-bootstrap explicitly, fail
5799 no:*:*:yes)
22e05272 5800 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ff3ac0f4
ILT
5801
5802 # Fail if wrong command line
5803 *)
22e05272 5804 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ff3ac0f4
ILT
5805 ;;
5806esac
5807
5329b59a 5808# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
ffac9597
JM
5809# C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5810# require C++11 (or higher).
46070488 5811if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5329b59a 5812 CXX="$CXX -std=c++11"
ffac9597
JM
5813elif test "$have_compiler" = yes; then
5814 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5815 ac_ext=cpp
5816ac_cpp='$CXXCPP $CPPFLAGS'
5817ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5818ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5820 ac_success=no
5821
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5823$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5824if ${ax_cv_cxx_compile_cxx11+:} false; then :
5825 $as_echo_n "(cached) " >&6
5826else
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828/* end confdefs.h. */
5829
5830
5831// If the compiler admits that it is not ready for C++11, why torture it?
5832// Hopefully, this will speed up the test.
5833
5834#ifndef __cplusplus
5835
5836#error "This is not a C++ compiler"
5837
5838#elif __cplusplus < 201103L
5839
5840#error "This is not a C++11 compiler"
5841
5842#else
5843
5844namespace cxx11
5845{
5846
5847 namespace test_static_assert
5848 {
5849
5850 template <typename T>
5851 struct check
5852 {
5853 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5854 };
5855
5856 }
5857
5858 namespace test_final_override
5859 {
5860
5861 struct Base
5862 {
5863 virtual ~Base() {}
5864 virtual void f() {}
5865 };
5866
5867 struct Derived : public Base
5868 {
5869 virtual ~Derived() override {}
5870 virtual void f() override {}
5871 };
5872
5873 }
5874
5875 namespace test_double_right_angle_brackets
5876 {
5877
5878 template < typename T >
5879 struct check {};
5880
5881 typedef check<void> single_type;
5882 typedef check<check<void>> double_type;
5883 typedef check<check<check<void>>> triple_type;
5884 typedef check<check<check<check<void>>>> quadruple_type;
5885
5886 }
5887
5888 namespace test_decltype
5889 {
5890
5891 int
5892 f()
5893 {
5894 int a = 1;
5895 decltype(a) b = 2;
5896 return a + b;
5897 }
5898
5899 }
5900
5901 namespace test_type_deduction
5902 {
5903
5904 template < typename T1, typename T2 >
5905 struct is_same
5906 {
5907 static const bool value = false;
5908 };
5909
5910 template < typename T >
5911 struct is_same<T, T>
5912 {
5913 static const bool value = true;
5914 };
5915
5916 template < typename T1, typename T2 >
5917 auto
5918 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5919 {
5920 return a1 + a2;
5921 }
5922
5923 int
5924 test(const int c, volatile int v)
5925 {
5926 static_assert(is_same<int, decltype(0)>::value == true, "");
5927 static_assert(is_same<int, decltype(c)>::value == false, "");
5928 static_assert(is_same<int, decltype(v)>::value == false, "");
5929 auto ac = c;
5930 auto av = v;
5931 auto sumi = ac + av + 'x';
5932 auto sumf = ac + av + 1.0;
5933 static_assert(is_same<int, decltype(ac)>::value == true, "");
5934 static_assert(is_same<int, decltype(av)>::value == true, "");
5935 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5936 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5937 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5938 return (sumf > 0.0) ? sumi : add(c, v);
5939 }
5940
5941 }
5942
5943 namespace test_noexcept
5944 {
5945
5946 int f() { return 0; }
5947 int g() noexcept { return 0; }
5948
5949 static_assert(noexcept(f()) == false, "");
5950 static_assert(noexcept(g()) == true, "");
5951
5952 }
5953
5954 namespace test_constexpr
5955 {
5956
5957 template < typename CharT >
5958 unsigned long constexpr
5959 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5960 {
5961 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5962 }
5963
5964 template < typename CharT >
5965 unsigned long constexpr
5966 strlen_c(const CharT *const s) noexcept
5967 {
5968 return strlen_c_r(s, 0UL);
5969 }
5970
5971 static_assert(strlen_c("") == 0UL, "");
5972 static_assert(strlen_c("1") == 1UL, "");
5973 static_assert(strlen_c("example") == 7UL, "");
5974 static_assert(strlen_c("another\0example") == 7UL, "");
5975
5976 }
5977
5978 namespace test_rvalue_references
5979 {
5980
5981 template < int N >
5982 struct answer
5983 {
5984 static constexpr int value = N;
5985 };
5986
5987 answer<1> f(int&) { return answer<1>(); }
5988 answer<2> f(const int&) { return answer<2>(); }
5989 answer<3> f(int&&) { return answer<3>(); }
5990
5991 void
5992 test()
5993 {
5994 int i = 0;
5995 const int c = 0;
5996 static_assert(decltype(f(i))::value == 1, "");
5997 static_assert(decltype(f(c))::value == 2, "");
5998 static_assert(decltype(f(0))::value == 3, "");
5999 }
6000
6001 }
6002
6003 namespace test_uniform_initialization
6004 {
6005
6006 struct test
6007 {
6008 static const int zero {};
6009 static const int one {1};
6010 };
6011
6012 static_assert(test::zero == 0, "");
6013 static_assert(test::one == 1, "");
6014
6015 }
6016
6017 namespace test_lambdas
6018 {
6019
6020 void
6021 test1()
6022 {
6023 auto lambda1 = [](){};
6024 auto lambda2 = lambda1;
6025 lambda1();
6026 lambda2();
6027 }
6028
6029 int
6030 test2()
6031 {
6032 auto a = [](int i, int j){ return i + j; }(1, 2);
6033 auto b = []() -> int { return '0'; }();
6034 auto c = [=](){ return a + b; }();
6035 auto d = [&](){ return c; }();
6036 auto e = [a, &b](int x) mutable {
6037 const auto identity = [](int y){ return y; };
6038 for (auto i = 0; i < a; ++i)
6039 a += b--;
6040 return x + identity(a + b);
6041 }(0);
6042 return a + b + c + d + e;
6043 }
6044
6045 int
6046 test3()
6047 {
6048 const auto nullary = [](){ return 0; };
6049 const auto unary = [](int x){ return x; };
6050 using nullary_t = decltype(nullary);
6051 using unary_t = decltype(unary);
6052 const auto higher1st = [](nullary_t f){ return f(); };
6053 const auto higher2nd = [unary](nullary_t f1){
6054 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6055 };
6056 return higher1st(nullary) + higher2nd(nullary)(unary);
6057 }
6058
6059 }
6060
6061 namespace test_variadic_templates
6062 {
6063
6064 template <int...>
6065 struct sum;
6066
6067 template <int N0, int... N1toN>
6068 struct sum<N0, N1toN...>
6069 {
6070 static constexpr auto value = N0 + sum<N1toN...>::value;
6071 };
6072
6073 template <>
6074 struct sum<>
6075 {
6076 static constexpr auto value = 0;
6077 };
6078
6079 static_assert(sum<>::value == 0, "");
6080 static_assert(sum<1>::value == 1, "");
6081 static_assert(sum<23>::value == 23, "");
6082 static_assert(sum<1, 2>::value == 3, "");
6083 static_assert(sum<5, 5, 11>::value == 21, "");
6084 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6085
6086 }
6087
6088 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6089 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6090 // because of this.
6091 namespace test_template_alias_sfinae
6092 {
6093
6094 struct foo {};
6095
6096 template<typename T>
6097 using member = typename T::member_type;
6098
6099 template<typename T>
6100 void func(...) {}
6101
6102 template<typename T>
6103 void func(member<T>*) {}
6104
6105 void test();
6106
6107 void test() { func<foo>(0); }
6108
6109 }
6110
6111} // namespace cxx11
6112
6113#endif // __cplusplus >= 201103L
6114
6115
6116
6117_ACEOF
6118if ac_fn_cxx_try_compile "$LINENO"; then :
6119 ax_cv_cxx_compile_cxx11=yes
6120else
6121 ax_cv_cxx_compile_cxx11=no
6122fi
6123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124fi
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6126$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6127 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6128 ac_success=yes
6129 fi
6130
6131 if test x$ac_success = xno; then
6132 for alternative in ${ax_cxx_compile_alternatives}; do
6133 switch="-std=gnu++${alternative}"
6134 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6136$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6137if eval \${$cachevar+:} false; then :
6138 $as_echo_n "(cached) " >&6
6139else
6140 ac_save_CXX="$CXX"
6141 CXX="$CXX $switch"
6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143/* end confdefs.h. */
6144
6145
6146// If the compiler admits that it is not ready for C++11, why torture it?
6147// Hopefully, this will speed up the test.
6148
6149#ifndef __cplusplus
6150
6151#error "This is not a C++ compiler"
6152
6153#elif __cplusplus < 201103L
6154
6155#error "This is not a C++11 compiler"
6156
6157#else
6158
6159namespace cxx11
6160{
6161
6162 namespace test_static_assert
6163 {
6164
6165 template <typename T>
6166 struct check
6167 {
6168 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6169 };
6170
6171 }
6172
6173 namespace test_final_override
6174 {
6175
6176 struct Base
6177 {
6178 virtual ~Base() {}
6179 virtual void f() {}
6180 };
6181
6182 struct Derived : public Base
6183 {
6184 virtual ~Derived() override {}
6185 virtual void f() override {}
6186 };
6187
6188 }
6189
6190 namespace test_double_right_angle_brackets
6191 {
6192
6193 template < typename T >
6194 struct check {};
6195
6196 typedef check<void> single_type;
6197 typedef check<check<void>> double_type;
6198 typedef check<check<check<void>>> triple_type;
6199 typedef check<check<check<check<void>>>> quadruple_type;
6200
6201 }
6202
6203 namespace test_decltype
6204 {
6205
6206 int
6207 f()
6208 {
6209 int a = 1;
6210 decltype(a) b = 2;
6211 return a + b;
6212 }
6213
6214 }
6215
6216 namespace test_type_deduction
6217 {
6218
6219 template < typename T1, typename T2 >
6220 struct is_same
6221 {
6222 static const bool value = false;
6223 };
6224
6225 template < typename T >
6226 struct is_same<T, T>
6227 {
6228 static const bool value = true;
6229 };
6230
6231 template < typename T1, typename T2 >
6232 auto
6233 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6234 {
6235 return a1 + a2;
6236 }
6237
6238 int
6239 test(const int c, volatile int v)
6240 {
6241 static_assert(is_same<int, decltype(0)>::value == true, "");
6242 static_assert(is_same<int, decltype(c)>::value == false, "");
6243 static_assert(is_same<int, decltype(v)>::value == false, "");
6244 auto ac = c;
6245 auto av = v;
6246 auto sumi = ac + av + 'x';
6247 auto sumf = ac + av + 1.0;
6248 static_assert(is_same<int, decltype(ac)>::value == true, "");
6249 static_assert(is_same<int, decltype(av)>::value == true, "");
6250 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6251 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6252 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6253 return (sumf > 0.0) ? sumi : add(c, v);
6254 }
6255
6256 }
6257
6258 namespace test_noexcept
6259 {
6260
6261 int f() { return 0; }
6262 int g() noexcept { return 0; }
6263
6264 static_assert(noexcept(f()) == false, "");
6265 static_assert(noexcept(g()) == true, "");
6266
6267 }
6268
6269 namespace test_constexpr
6270 {
6271
6272 template < typename CharT >
6273 unsigned long constexpr
6274 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6275 {
6276 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6277 }
6278
6279 template < typename CharT >
6280 unsigned long constexpr
6281 strlen_c(const CharT *const s) noexcept
6282 {
6283 return strlen_c_r(s, 0UL);
6284 }
6285
6286 static_assert(strlen_c("") == 0UL, "");
6287 static_assert(strlen_c("1") == 1UL, "");
6288 static_assert(strlen_c("example") == 7UL, "");
6289 static_assert(strlen_c("another\0example") == 7UL, "");
6290
6291 }
6292
6293 namespace test_rvalue_references
6294 {
6295
6296 template < int N >
6297 struct answer
6298 {
6299 static constexpr int value = N;
6300 };
6301
6302 answer<1> f(int&) { return answer<1>(); }
6303 answer<2> f(const int&) { return answer<2>(); }
6304 answer<3> f(int&&) { return answer<3>(); }
6305
6306 void
6307 test()
6308 {
6309 int i = 0;
6310 const int c = 0;
6311 static_assert(decltype(f(i))::value == 1, "");
6312 static_assert(decltype(f(c))::value == 2, "");
6313 static_assert(decltype(f(0))::value == 3, "");
6314 }
6315
6316 }
6317
6318 namespace test_uniform_initialization
6319 {
6320
6321 struct test
6322 {
6323 static const int zero {};
6324 static const int one {1};
6325 };
6326
6327 static_assert(test::zero == 0, "");
6328 static_assert(test::one == 1, "");
6329
6330 }
6331
6332 namespace test_lambdas
6333 {
6334
6335 void
6336 test1()
6337 {
6338 auto lambda1 = [](){};
6339 auto lambda2 = lambda1;
6340 lambda1();
6341 lambda2();
6342 }
6343
6344 int
6345 test2()
6346 {
6347 auto a = [](int i, int j){ return i + j; }(1, 2);
6348 auto b = []() -> int { return '0'; }();
6349 auto c = [=](){ return a + b; }();
6350 auto d = [&](){ return c; }();
6351 auto e = [a, &b](int x) mutable {
6352 const auto identity = [](int y){ return y; };
6353 for (auto i = 0; i < a; ++i)
6354 a += b--;
6355 return x + identity(a + b);
6356 }(0);
6357 return a + b + c + d + e;
6358 }
6359
6360 int
6361 test3()
6362 {
6363 const auto nullary = [](){ return 0; };
6364 const auto unary = [](int x){ return x; };
6365 using nullary_t = decltype(nullary);
6366 using unary_t = decltype(unary);
6367 const auto higher1st = [](nullary_t f){ return f(); };
6368 const auto higher2nd = [unary](nullary_t f1){
6369 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6370 };
6371 return higher1st(nullary) + higher2nd(nullary)(unary);
6372 }
6373
6374 }
6375
6376 namespace test_variadic_templates
6377 {
6378
6379 template <int...>
6380 struct sum;
6381
6382 template <int N0, int... N1toN>
6383 struct sum<N0, N1toN...>
6384 {
6385 static constexpr auto value = N0 + sum<N1toN...>::value;
6386 };
6387
6388 template <>
6389 struct sum<>
6390 {
6391 static constexpr auto value = 0;
6392 };
6393
6394 static_assert(sum<>::value == 0, "");
6395 static_assert(sum<1>::value == 1, "");
6396 static_assert(sum<23>::value == 23, "");
6397 static_assert(sum<1, 2>::value == 3, "");
6398 static_assert(sum<5, 5, 11>::value == 21, "");
6399 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6400
6401 }
6402
6403 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6404 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6405 // because of this.
6406 namespace test_template_alias_sfinae
6407 {
6408
6409 struct foo {};
6410
6411 template<typename T>
6412 using member = typename T::member_type;
6413
6414 template<typename T>
6415 void func(...) {}
6416
6417 template<typename T>
6418 void func(member<T>*) {}
6419
6420 void test();
6421
6422 void test() { func<foo>(0); }
6423
6424 }
6425
6426} // namespace cxx11
6427
6428#endif // __cplusplus >= 201103L
6429
6430
6431
6432_ACEOF
6433if ac_fn_cxx_try_compile "$LINENO"; then :
6434 eval $cachevar=yes
6435else
6436 eval $cachevar=no
6437fi
6438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 CXX="$ac_save_CXX"
6440fi
6441eval ac_res=\$$cachevar
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6443$as_echo "$ac_res" >&6; }
6444 if eval test x\$$cachevar = xyes; then
6445 CXX="$CXX $switch"
6446 if test -n "$CXXCPP" ; then
6447 CXXCPP="$CXXCPP $switch"
6448 fi
6449 ac_success=yes
6450 break
6451 fi
6452 done
6453 fi
6454
6455 if test x$ac_success = xno; then
6456 for alternative in ${ax_cxx_compile_alternatives}; do
6457 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6458 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6460$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6461if eval \${$cachevar+:} false; then :
6462 $as_echo_n "(cached) " >&6
6463else
6464 ac_save_CXX="$CXX"
6465 CXX="$CXX $switch"
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467/* end confdefs.h. */
6468
6469
6470// If the compiler admits that it is not ready for C++11, why torture it?
6471// Hopefully, this will speed up the test.
6472
6473#ifndef __cplusplus
6474
6475#error "This is not a C++ compiler"
6476
6477#elif __cplusplus < 201103L
6478
6479#error "This is not a C++11 compiler"
6480
6481#else
6482
6483namespace cxx11
6484{
6485
6486 namespace test_static_assert
6487 {
6488
6489 template <typename T>
6490 struct check
6491 {
6492 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6493 };
6494
6495 }
6496
6497 namespace test_final_override
6498 {
6499
6500 struct Base
6501 {
6502 virtual ~Base() {}
6503 virtual void f() {}
6504 };
6505
6506 struct Derived : public Base
6507 {
6508 virtual ~Derived() override {}
6509 virtual void f() override {}
6510 };
6511
6512 }
6513
6514 namespace test_double_right_angle_brackets
6515 {
6516
6517 template < typename T >
6518 struct check {};
6519
6520 typedef check<void> single_type;
6521 typedef check<check<void>> double_type;
6522 typedef check<check<check<void>>> triple_type;
6523 typedef check<check<check<check<void>>>> quadruple_type;
6524
6525 }
6526
6527 namespace test_decltype
6528 {
6529
6530 int
6531 f()
6532 {
6533 int a = 1;
6534 decltype(a) b = 2;
6535 return a + b;
6536 }
6537
6538 }
6539
6540 namespace test_type_deduction
6541 {
6542
6543 template < typename T1, typename T2 >
6544 struct is_same
6545 {
6546 static const bool value = false;
6547 };
6548
6549 template < typename T >
6550 struct is_same<T, T>
6551 {
6552 static const bool value = true;
6553 };
6554
6555 template < typename T1, typename T2 >
6556 auto
6557 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6558 {
6559 return a1 + a2;
6560 }
6561
6562 int
6563 test(const int c, volatile int v)
6564 {
6565 static_assert(is_same<int, decltype(0)>::value == true, "");
6566 static_assert(is_same<int, decltype(c)>::value == false, "");
6567 static_assert(is_same<int, decltype(v)>::value == false, "");
6568 auto ac = c;
6569 auto av = v;
6570 auto sumi = ac + av + 'x';
6571 auto sumf = ac + av + 1.0;
6572 static_assert(is_same<int, decltype(ac)>::value == true, "");
6573 static_assert(is_same<int, decltype(av)>::value == true, "");
6574 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6575 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6576 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6577 return (sumf > 0.0) ? sumi : add(c, v);
6578 }
6579
6580 }
6581
6582 namespace test_noexcept
6583 {
6584
6585 int f() { return 0; }
6586 int g() noexcept { return 0; }
6587
6588 static_assert(noexcept(f()) == false, "");
6589 static_assert(noexcept(g()) == true, "");
6590
6591 }
6592
6593 namespace test_constexpr
6594 {
6595
6596 template < typename CharT >
6597 unsigned long constexpr
6598 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6599 {
6600 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6601 }
6602
6603 template < typename CharT >
6604 unsigned long constexpr
6605 strlen_c(const CharT *const s) noexcept
6606 {
6607 return strlen_c_r(s, 0UL);
6608 }
6609
6610 static_assert(strlen_c("") == 0UL, "");
6611 static_assert(strlen_c("1") == 1UL, "");
6612 static_assert(strlen_c("example") == 7UL, "");
6613 static_assert(strlen_c("another\0example") == 7UL, "");
6614
6615 }
6616
6617 namespace test_rvalue_references
6618 {
6619
6620 template < int N >
6621 struct answer
6622 {
6623 static constexpr int value = N;
6624 };
6625
6626 answer<1> f(int&) { return answer<1>(); }
6627 answer<2> f(const int&) { return answer<2>(); }
6628 answer<3> f(int&&) { return answer<3>(); }
6629
6630 void
6631 test()
6632 {
6633 int i = 0;
6634 const int c = 0;
6635 static_assert(decltype(f(i))::value == 1, "");
6636 static_assert(decltype(f(c))::value == 2, "");
6637 static_assert(decltype(f(0))::value == 3, "");
6638 }
6639
6640 }
6641
6642 namespace test_uniform_initialization
6643 {
6644
6645 struct test
6646 {
6647 static const int zero {};
6648 static const int one {1};
6649 };
6650
6651 static_assert(test::zero == 0, "");
6652 static_assert(test::one == 1, "");
6653
6654 }
6655
6656 namespace test_lambdas
6657 {
6658
6659 void
6660 test1()
6661 {
6662 auto lambda1 = [](){};
6663 auto lambda2 = lambda1;
6664 lambda1();
6665 lambda2();
6666 }
6667
6668 int
6669 test2()
6670 {
6671 auto a = [](int i, int j){ return i + j; }(1, 2);
6672 auto b = []() -> int { return '0'; }();
6673 auto c = [=](){ return a + b; }();
6674 auto d = [&](){ return c; }();
6675 auto e = [a, &b](int x) mutable {
6676 const auto identity = [](int y){ return y; };
6677 for (auto i = 0; i < a; ++i)
6678 a += b--;
6679 return x + identity(a + b);
6680 }(0);
6681 return a + b + c + d + e;
6682 }
6683
6684 int
6685 test3()
6686 {
6687 const auto nullary = [](){ return 0; };
6688 const auto unary = [](int x){ return x; };
6689 using nullary_t = decltype(nullary);
6690 using unary_t = decltype(unary);
6691 const auto higher1st = [](nullary_t f){ return f(); };
6692 const auto higher2nd = [unary](nullary_t f1){
6693 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6694 };
6695 return higher1st(nullary) + higher2nd(nullary)(unary);
6696 }
6697
6698 }
6699
6700 namespace test_variadic_templates
6701 {
6702
6703 template <int...>
6704 struct sum;
6705
6706 template <int N0, int... N1toN>
6707 struct sum<N0, N1toN...>
6708 {
6709 static constexpr auto value = N0 + sum<N1toN...>::value;
6710 };
6711
6712 template <>
6713 struct sum<>
6714 {
6715 static constexpr auto value = 0;
6716 };
6717
6718 static_assert(sum<>::value == 0, "");
6719 static_assert(sum<1>::value == 1, "");
6720 static_assert(sum<23>::value == 23, "");
6721 static_assert(sum<1, 2>::value == 3, "");
6722 static_assert(sum<5, 5, 11>::value == 21, "");
6723 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6724
6725 }
6726
6727 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6728 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6729 // because of this.
6730 namespace test_template_alias_sfinae
6731 {
6732
6733 struct foo {};
6734
6735 template<typename T>
6736 using member = typename T::member_type;
6737
6738 template<typename T>
6739 void func(...) {}
6740
6741 template<typename T>
6742 void func(member<T>*) {}
6743
6744 void test();
6745
6746 void test() { func<foo>(0); }
6747
6748 }
6749
6750} // namespace cxx11
6751
6752#endif // __cplusplus >= 201103L
6753
6754
6755
6756_ACEOF
6757if ac_fn_cxx_try_compile "$LINENO"; then :
6758 eval $cachevar=yes
6759else
6760 eval $cachevar=no
6761fi
6762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 CXX="$ac_save_CXX"
6764fi
6765eval ac_res=\$$cachevar
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6767$as_echo "$ac_res" >&6; }
6768 if eval test x\$$cachevar = xyes; then
6769 CXX="$CXX $switch"
6770 if test -n "$CXXCPP" ; then
6771 CXXCPP="$CXXCPP $switch"
6772 fi
6773 ac_success=yes
6774 break
6775 fi
6776 done
6777 if test x$ac_success = xyes; then
6778 break
6779 fi
6780 done
6781 fi
7ffcf5d6 6782
ffac9597
JM
6783 ac_ext=c
6784ac_cpp='$CPP $CPPFLAGS'
6785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6787ac_compiler_gnu=$ac_cv_c_compiler_gnu
6788
6789 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6790 if test x$ac_success = xno; then
6791 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6792 fi
6793 fi
6794 if test x$ac_success = xno; then
6795 HAVE_CXX11=0
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6797$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6798 else
6799 HAVE_CXX11=1
6800
6801$as_echo "#define HAVE_CXX11 1" >>confdefs.h
6802
6803 fi
6804
6805
7ffcf5d6
TB
6806
6807 if test "${build}" != "${host}"; then
6808 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6809 ac_ext=cpp
6810ac_cpp='$CXXCPP $CPPFLAGS'
6811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6814 ac_success=no
6815 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6816 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6817 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6818 CXX="$CXX_FOR_BUILD"
6819 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6820 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6822$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6823if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6824 $as_echo_n "(cached) " >&6
6825else
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827/* end confdefs.h. */
6828
6829
6830// If the compiler admits that it is not ready for C++11, why torture it?
6831// Hopefully, this will speed up the test.
6832
6833#ifndef __cplusplus
6834
6835#error "This is not a C++ compiler"
6836
6837#elif __cplusplus < 201103L
6838
6839#error "This is not a C++11 compiler"
6840
6841#else
6842
6843namespace cxx11
6844{
6845
6846 namespace test_static_assert
6847 {
6848
6849 template <typename T>
6850 struct check
6851 {
6852 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6853 };
6854
6855 }
6856
6857 namespace test_final_override
6858 {
6859
6860 struct Base
6861 {
6862 virtual ~Base() {}
6863 virtual void f() {}
6864 };
6865
6866 struct Derived : public Base
6867 {
6868 virtual ~Derived() override {}
6869 virtual void f() override {}
6870 };
6871
6872 }
6873
6874 namespace test_double_right_angle_brackets
6875 {
6876
6877 template < typename T >
6878 struct check {};
6879
6880 typedef check<void> single_type;
6881 typedef check<check<void>> double_type;
6882 typedef check<check<check<void>>> triple_type;
6883 typedef check<check<check<check<void>>>> quadruple_type;
6884
6885 }
6886
6887 namespace test_decltype
6888 {
6889
6890 int
6891 f()
6892 {
6893 int a = 1;
6894 decltype(a) b = 2;
6895 return a + b;
6896 }
6897
6898 }
6899
6900 namespace test_type_deduction
6901 {
6902
6903 template < typename T1, typename T2 >
6904 struct is_same
6905 {
6906 static const bool value = false;
6907 };
6908
6909 template < typename T >
6910 struct is_same<T, T>
6911 {
6912 static const bool value = true;
6913 };
6914
6915 template < typename T1, typename T2 >
6916 auto
6917 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6918 {
6919 return a1 + a2;
6920 }
6921
6922 int
6923 test(const int c, volatile int v)
6924 {
6925 static_assert(is_same<int, decltype(0)>::value == true, "");
6926 static_assert(is_same<int, decltype(c)>::value == false, "");
6927 static_assert(is_same<int, decltype(v)>::value == false, "");
6928 auto ac = c;
6929 auto av = v;
6930 auto sumi = ac + av + 'x';
6931 auto sumf = ac + av + 1.0;
6932 static_assert(is_same<int, decltype(ac)>::value == true, "");
6933 static_assert(is_same<int, decltype(av)>::value == true, "");
6934 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6935 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6936 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6937 return (sumf > 0.0) ? sumi : add(c, v);
6938 }
6939
6940 }
6941
6942 namespace test_noexcept
6943 {
6944
6945 int f() { return 0; }
6946 int g() noexcept { return 0; }
6947
6948 static_assert(noexcept(f()) == false, "");
6949 static_assert(noexcept(g()) == true, "");
6950
6951 }
6952
6953 namespace test_constexpr
6954 {
6955
6956 template < typename CharT >
6957 unsigned long constexpr
6958 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6959 {
6960 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6961 }
6962
6963 template < typename CharT >
6964 unsigned long constexpr
6965 strlen_c(const CharT *const s) noexcept
6966 {
6967 return strlen_c_r(s, 0UL);
6968 }
6969
6970 static_assert(strlen_c("") == 0UL, "");
6971 static_assert(strlen_c("1") == 1UL, "");
6972 static_assert(strlen_c("example") == 7UL, "");
6973 static_assert(strlen_c("another\0example") == 7UL, "");
6974
6975 }
6976
6977 namespace test_rvalue_references
6978 {
6979
6980 template < int N >
6981 struct answer
6982 {
6983 static constexpr int value = N;
6984 };
6985
6986 answer<1> f(int&) { return answer<1>(); }
6987 answer<2> f(const int&) { return answer<2>(); }
6988 answer<3> f(int&&) { return answer<3>(); }
6989
6990 void
6991 test()
6992 {
6993 int i = 0;
6994 const int c = 0;
6995 static_assert(decltype(f(i))::value == 1, "");
6996 static_assert(decltype(f(c))::value == 2, "");
6997 static_assert(decltype(f(0))::value == 3, "");
6998 }
6999
7000 }
7001
7002 namespace test_uniform_initialization
7003 {
7004
7005 struct test
7006 {
7007 static const int zero {};
7008 static const int one {1};
7009 };
7010
7011 static_assert(test::zero == 0, "");
7012 static_assert(test::one == 1, "");
7013
7014 }
7015
7016 namespace test_lambdas
7017 {
7018
7019 void
7020 test1()
7021 {
7022 auto lambda1 = [](){};
7023 auto lambda2 = lambda1;
7024 lambda1();
7025 lambda2();
7026 }
7027
7028 int
7029 test2()
7030 {
7031 auto a = [](int i, int j){ return i + j; }(1, 2);
7032 auto b = []() -> int { return '0'; }();
7033 auto c = [=](){ return a + b; }();
7034 auto d = [&](){ return c; }();
7035 auto e = [a, &b](int x) mutable {
7036 const auto identity = [](int y){ return y; };
7037 for (auto i = 0; i < a; ++i)
7038 a += b--;
7039 return x + identity(a + b);
7040 }(0);
7041 return a + b + c + d + e;
7042 }
7043
7044 int
7045 test3()
7046 {
7047 const auto nullary = [](){ return 0; };
7048 const auto unary = [](int x){ return x; };
7049 using nullary_t = decltype(nullary);
7050 using unary_t = decltype(unary);
7051 const auto higher1st = [](nullary_t f){ return f(); };
7052 const auto higher2nd = [unary](nullary_t f1){
7053 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7054 };
7055 return higher1st(nullary) + higher2nd(nullary)(unary);
7056 }
7057
7058 }
7059
7060 namespace test_variadic_templates
7061 {
7062
7063 template <int...>
7064 struct sum;
7065
7066 template <int N0, int... N1toN>
7067 struct sum<N0, N1toN...>
7068 {
7069 static constexpr auto value = N0 + sum<N1toN...>::value;
7070 };
7071
7072 template <>
7073 struct sum<>
7074 {
7075 static constexpr auto value = 0;
7076 };
7077
7078 static_assert(sum<>::value == 0, "");
7079 static_assert(sum<1>::value == 1, "");
7080 static_assert(sum<23>::value == 23, "");
7081 static_assert(sum<1, 2>::value == 3, "");
7082 static_assert(sum<5, 5, 11>::value == 21, "");
7083 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7084
7085 }
7086
7087 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7088 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7089 // because of this.
7090 namespace test_template_alias_sfinae
7091 {
7092
7093 struct foo {};
7094
7095 template<typename T>
7096 using member = typename T::member_type;
7097
7098 template<typename T>
7099 void func(...) {}
7100
7101 template<typename T>
7102 void func(member<T>*) {}
7103
7104 void test();
7105
7106 void test() { func<foo>(0); }
7107
7108 }
7109
7110} // namespace cxx11
7111
7112#endif // __cplusplus >= 201103L
7113
7114
7115
7116_ACEOF
7117if ac_fn_cxx_try_compile "$LINENO"; then :
7118 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7119else
7120 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7121fi
7122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123fi
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7125$as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7126 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7127 ac_success=yes
7128 fi
7129
7130 if test x$ac_success = xno; then
7131 for alternative in ${ax_cxx_compile_alternatives}; do
7132 switch="-std=gnu++${alternative}"
7133 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7135$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7136if eval \${$cachevar+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138else
7139 ac_save_CXX="$CXX"
7140 CXX="$CXX $switch"
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142/* end confdefs.h. */
7143
7144
7145// If the compiler admits that it is not ready for C++11, why torture it?
7146// Hopefully, this will speed up the test.
7147
7148#ifndef __cplusplus
7149
7150#error "This is not a C++ compiler"
7151
7152#elif __cplusplus < 201103L
7153
7154#error "This is not a C++11 compiler"
7155
7156#else
7157
7158namespace cxx11
7159{
7160
7161 namespace test_static_assert
7162 {
7163
7164 template <typename T>
7165 struct check
7166 {
7167 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7168 };
7169
7170 }
7171
7172 namespace test_final_override
7173 {
7174
7175 struct Base
7176 {
7177 virtual ~Base() {}
7178 virtual void f() {}
7179 };
7180
7181 struct Derived : public Base
7182 {
7183 virtual ~Derived() override {}
7184 virtual void f() override {}
7185 };
7186
7187 }
7188
7189 namespace test_double_right_angle_brackets
7190 {
7191
7192 template < typename T >
7193 struct check {};
7194
7195 typedef check<void> single_type;
7196 typedef check<check<void>> double_type;
7197 typedef check<check<check<void>>> triple_type;
7198 typedef check<check<check<check<void>>>> quadruple_type;
7199
7200 }
7201
7202 namespace test_decltype
7203 {
7204
7205 int
7206 f()
7207 {
7208 int a = 1;
7209 decltype(a) b = 2;
7210 return a + b;
7211 }
7212
7213 }
7214
7215 namespace test_type_deduction
7216 {
7217
7218 template < typename T1, typename T2 >
7219 struct is_same
7220 {
7221 static const bool value = false;
7222 };
7223
7224 template < typename T >
7225 struct is_same<T, T>
7226 {
7227 static const bool value = true;
7228 };
7229
7230 template < typename T1, typename T2 >
7231 auto
7232 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7233 {
7234 return a1 + a2;
7235 }
7236
7237 int
7238 test(const int c, volatile int v)
7239 {
7240 static_assert(is_same<int, decltype(0)>::value == true, "");
7241 static_assert(is_same<int, decltype(c)>::value == false, "");
7242 static_assert(is_same<int, decltype(v)>::value == false, "");
7243 auto ac = c;
7244 auto av = v;
7245 auto sumi = ac + av + 'x';
7246 auto sumf = ac + av + 1.0;
7247 static_assert(is_same<int, decltype(ac)>::value == true, "");
7248 static_assert(is_same<int, decltype(av)>::value == true, "");
7249 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7250 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7251 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7252 return (sumf > 0.0) ? sumi : add(c, v);
7253 }
7254
7255 }
7256
7257 namespace test_noexcept
7258 {
7259
7260 int f() { return 0; }
7261 int g() noexcept { return 0; }
7262
7263 static_assert(noexcept(f()) == false, "");
7264 static_assert(noexcept(g()) == true, "");
7265
7266 }
7267
7268 namespace test_constexpr
7269 {
7270
7271 template < typename CharT >
7272 unsigned long constexpr
7273 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7274 {
7275 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7276 }
7277
7278 template < typename CharT >
7279 unsigned long constexpr
7280 strlen_c(const CharT *const s) noexcept
7281 {
7282 return strlen_c_r(s, 0UL);
7283 }
7284
7285 static_assert(strlen_c("") == 0UL, "");
7286 static_assert(strlen_c("1") == 1UL, "");
7287 static_assert(strlen_c("example") == 7UL, "");
7288 static_assert(strlen_c("another\0example") == 7UL, "");
7289
7290 }
7291
7292 namespace test_rvalue_references
7293 {
7294
7295 template < int N >
7296 struct answer
7297 {
7298 static constexpr int value = N;
7299 };
7300
7301 answer<1> f(int&) { return answer<1>(); }
7302 answer<2> f(const int&) { return answer<2>(); }
7303 answer<3> f(int&&) { return answer<3>(); }
7304
7305 void
7306 test()
7307 {
7308 int i = 0;
7309 const int c = 0;
7310 static_assert(decltype(f(i))::value == 1, "");
7311 static_assert(decltype(f(c))::value == 2, "");
7312 static_assert(decltype(f(0))::value == 3, "");
7313 }
7314
7315 }
7316
7317 namespace test_uniform_initialization
7318 {
7319
7320 struct test
7321 {
7322 static const int zero {};
7323 static const int one {1};
7324 };
7325
7326 static_assert(test::zero == 0, "");
7327 static_assert(test::one == 1, "");
7328
7329 }
7330
7331 namespace test_lambdas
7332 {
7333
7334 void
7335 test1()
7336 {
7337 auto lambda1 = [](){};
7338 auto lambda2 = lambda1;
7339 lambda1();
7340 lambda2();
7341 }
7342
7343 int
7344 test2()
7345 {
7346 auto a = [](int i, int j){ return i + j; }(1, 2);
7347 auto b = []() -> int { return '0'; }();
7348 auto c = [=](){ return a + b; }();
7349 auto d = [&](){ return c; }();
7350 auto e = [a, &b](int x) mutable {
7351 const auto identity = [](int y){ return y; };
7352 for (auto i = 0; i < a; ++i)
7353 a += b--;
7354 return x + identity(a + b);
7355 }(0);
7356 return a + b + c + d + e;
7357 }
7358
7359 int
7360 test3()
7361 {
7362 const auto nullary = [](){ return 0; };
7363 const auto unary = [](int x){ return x; };
7364 using nullary_t = decltype(nullary);
7365 using unary_t = decltype(unary);
7366 const auto higher1st = [](nullary_t f){ return f(); };
7367 const auto higher2nd = [unary](nullary_t f1){
7368 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7369 };
7370 return higher1st(nullary) + higher2nd(nullary)(unary);
7371 }
7372
7373 }
7374
7375 namespace test_variadic_templates
7376 {
7377
7378 template <int...>
7379 struct sum;
7380
7381 template <int N0, int... N1toN>
7382 struct sum<N0, N1toN...>
7383 {
7384 static constexpr auto value = N0 + sum<N1toN...>::value;
7385 };
7386
7387 template <>
7388 struct sum<>
7389 {
7390 static constexpr auto value = 0;
7391 };
7392
7393 static_assert(sum<>::value == 0, "");
7394 static_assert(sum<1>::value == 1, "");
7395 static_assert(sum<23>::value == 23, "");
7396 static_assert(sum<1, 2>::value == 3, "");
7397 static_assert(sum<5, 5, 11>::value == 21, "");
7398 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7399
7400 }
7401
7402 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7403 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7404 // because of this.
7405 namespace test_template_alias_sfinae
7406 {
7407
7408 struct foo {};
7409
7410 template<typename T>
7411 using member = typename T::member_type;
7412
7413 template<typename T>
7414 void func(...) {}
7415
7416 template<typename T>
7417 void func(member<T>*) {}
7418
7419 void test();
7420
7421 void test() { func<foo>(0); }
7422
7423 }
7424
7425} // namespace cxx11
7426
7427#endif // __cplusplus >= 201103L
7428
7429
7430
7431_ACEOF
7432if ac_fn_cxx_try_compile "$LINENO"; then :
7433 eval $cachevar=yes
7434else
7435 eval $cachevar=no
7436fi
7437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7438 CXX="$ac_save_CXX"
7439fi
7440eval ac_res=\$$cachevar
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7442$as_echo "$ac_res" >&6; }
7443 if eval test x\$$cachevar = xyes; then
7444 CXX="$CXX $switch"
7445 if test -n "$CXXCPP" ; then
7446 CXXCPP="$CXXCPP $switch"
7447 fi
7448 ac_success=yes
7449 break
7450 fi
7451 done
7452 fi
7453
7454 if test x$ac_success = xno; then
7455 for alternative in ${ax_cxx_compile_alternatives}; do
7456 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7457 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7459$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7460if eval \${$cachevar+:} false; then :
7461 $as_echo_n "(cached) " >&6
7462else
7463 ac_save_CXX="$CXX"
7464 CXX="$CXX $switch"
7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466/* end confdefs.h. */
7467
7468
7469// If the compiler admits that it is not ready for C++11, why torture it?
7470// Hopefully, this will speed up the test.
7471
7472#ifndef __cplusplus
7473
7474#error "This is not a C++ compiler"
7475
7476#elif __cplusplus < 201103L
7477
7478#error "This is not a C++11 compiler"
7479
7480#else
7481
7482namespace cxx11
7483{
7484
7485 namespace test_static_assert
7486 {
7487
7488 template <typename T>
7489 struct check
7490 {
7491 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7492 };
7493
7494 }
7495
7496 namespace test_final_override
7497 {
7498
7499 struct Base
7500 {
7501 virtual ~Base() {}
7502 virtual void f() {}
7503 };
7504
7505 struct Derived : public Base
7506 {
7507 virtual ~Derived() override {}
7508 virtual void f() override {}
7509 };
7510
7511 }
7512
7513 namespace test_double_right_angle_brackets
7514 {
7515
7516 template < typename T >
7517 struct check {};
7518
7519 typedef check<void> single_type;
7520 typedef check<check<void>> double_type;
7521 typedef check<check<check<void>>> triple_type;
7522 typedef check<check<check<check<void>>>> quadruple_type;
7523
7524 }
7525
7526 namespace test_decltype
7527 {
7528
7529 int
7530 f()
7531 {
7532 int a = 1;
7533 decltype(a) b = 2;
7534 return a + b;
7535 }
7536
7537 }
7538
7539 namespace test_type_deduction
7540 {
7541
7542 template < typename T1, typename T2 >
7543 struct is_same
7544 {
7545 static const bool value = false;
7546 };
7547
7548 template < typename T >
7549 struct is_same<T, T>
7550 {
7551 static const bool value = true;
7552 };
7553
7554 template < typename T1, typename T2 >
7555 auto
7556 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7557 {
7558 return a1 + a2;
7559 }
7560
7561 int
7562 test(const int c, volatile int v)
7563 {
7564 static_assert(is_same<int, decltype(0)>::value == true, "");
7565 static_assert(is_same<int, decltype(c)>::value == false, "");
7566 static_assert(is_same<int, decltype(v)>::value == false, "");
7567 auto ac = c;
7568 auto av = v;
7569 auto sumi = ac + av + 'x';
7570 auto sumf = ac + av + 1.0;
7571 static_assert(is_same<int, decltype(ac)>::value == true, "");
7572 static_assert(is_same<int, decltype(av)>::value == true, "");
7573 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7574 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7575 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7576 return (sumf > 0.0) ? sumi : add(c, v);
7577 }
7578
7579 }
7580
7581 namespace test_noexcept
7582 {
7583
7584 int f() { return 0; }
7585 int g() noexcept { return 0; }
7586
7587 static_assert(noexcept(f()) == false, "");
7588 static_assert(noexcept(g()) == true, "");
7589
7590 }
7591
7592 namespace test_constexpr
7593 {
7594
7595 template < typename CharT >
7596 unsigned long constexpr
7597 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7598 {
7599 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7600 }
7601
7602 template < typename CharT >
7603 unsigned long constexpr
7604 strlen_c(const CharT *const s) noexcept
7605 {
7606 return strlen_c_r(s, 0UL);
7607 }
7608
7609 static_assert(strlen_c("") == 0UL, "");
7610 static_assert(strlen_c("1") == 1UL, "");
7611 static_assert(strlen_c("example") == 7UL, "");
7612 static_assert(strlen_c("another\0example") == 7UL, "");
7613
7614 }
7615
7616 namespace test_rvalue_references
7617 {
7618
7619 template < int N >
7620 struct answer
7621 {
7622 static constexpr int value = N;
7623 };
7624
7625 answer<1> f(int&) { return answer<1>(); }
7626 answer<2> f(const int&) { return answer<2>(); }
7627 answer<3> f(int&&) { return answer<3>(); }
7628
7629 void
7630 test()
7631 {
7632 int i = 0;
7633 const int c = 0;
7634 static_assert(decltype(f(i))::value == 1, "");
7635 static_assert(decltype(f(c))::value == 2, "");
7636 static_assert(decltype(f(0))::value == 3, "");
7637 }
7638
7639 }
7640
7641 namespace test_uniform_initialization
7642 {
7643
7644 struct test
7645 {
7646 static const int zero {};
7647 static const int one {1};
7648 };
7649
7650 static_assert(test::zero == 0, "");
7651 static_assert(test::one == 1, "");
7652
7653 }
7654
7655 namespace test_lambdas
7656 {
7657
7658 void
7659 test1()
7660 {
7661 auto lambda1 = [](){};
7662 auto lambda2 = lambda1;
7663 lambda1();
7664 lambda2();
7665 }
7666
7667 int
7668 test2()
7669 {
7670 auto a = [](int i, int j){ return i + j; }(1, 2);
7671 auto b = []() -> int { return '0'; }();
7672 auto c = [=](){ return a + b; }();
7673 auto d = [&](){ return c; }();
7674 auto e = [a, &b](int x) mutable {
7675 const auto identity = [](int y){ return y; };
7676 for (auto i = 0; i < a; ++i)
7677 a += b--;
7678 return x + identity(a + b);
7679 }(0);
7680 return a + b + c + d + e;
7681 }
7682
7683 int
7684 test3()
7685 {
7686 const auto nullary = [](){ return 0; };
7687 const auto unary = [](int x){ return x; };
7688 using nullary_t = decltype(nullary);
7689 using unary_t = decltype(unary);
7690 const auto higher1st = [](nullary_t f){ return f(); };
7691 const auto higher2nd = [unary](nullary_t f1){
7692 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7693 };
7694 return higher1st(nullary) + higher2nd(nullary)(unary);
7695 }
7696
7697 }
7698
7699 namespace test_variadic_templates
7700 {
7701
7702 template <int...>
7703 struct sum;
7704
7705 template <int N0, int... N1toN>
7706 struct sum<N0, N1toN...>
7707 {
7708 static constexpr auto value = N0 + sum<N1toN...>::value;
7709 };
7710
7711 template <>
7712 struct sum<>
7713 {
7714 static constexpr auto value = 0;
7715 };
7716
7717 static_assert(sum<>::value == 0, "");
7718 static_assert(sum<1>::value == 1, "");
7719 static_assert(sum<23>::value == 23, "");
7720 static_assert(sum<1, 2>::value == 3, "");
7721 static_assert(sum<5, 5, 11>::value == 21, "");
7722 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7723
7724 }
7725
7726 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7727 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7728 // because of this.
7729 namespace test_template_alias_sfinae
7730 {
7731
7732 struct foo {};
7733
7734 template<typename T>
7735 using member = typename T::member_type;
7736
7737 template<typename T>
7738 void func(...) {}
7739
7740 template<typename T>
7741 void func(member<T>*) {}
7742
7743 void test();
7744
7745 void test() { func<foo>(0); }
7746
7747 }
7748
7749} // namespace cxx11
7750
7751#endif // __cplusplus >= 201103L
7752
7753
7754
7755_ACEOF
7756if ac_fn_cxx_try_compile "$LINENO"; then :
7757 eval $cachevar=yes
7758else
7759 eval $cachevar=no
7760fi
7761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762 CXX="$ac_save_CXX"
7763fi
7764eval ac_res=\$$cachevar
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7766$as_echo "$ac_res" >&6; }
7767 if eval test x\$$cachevar = xyes; then
7768 CXX="$CXX $switch"
7769 if test -n "$CXXCPP" ; then
7770 CXXCPP="$CXXCPP $switch"
7771 fi
7772 ac_success=yes
7773 break
7774 fi
7775 done
7776 if test x$ac_success = xyes; then
7777 break
7778 fi
7779 done
7780 fi
7781 CXX_FOR_BUILD="$CXX"
7782 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7783 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7784 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7785 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7786 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7787 ac_ext=c
7788ac_cpp='$CPP $CPPFLAGS'
7789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7791ac_compiler_gnu=$ac_cv_c_compiler_gnu
7792
7793 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7794 if test x$ac_success = xno; then
7795 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7796 fi
7797 fi
7798 if test x$ac_success = xno; then
7799 HAVE_CXX11_FOR_BUILD=0
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7801$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7802 else
7803 HAVE_CXX11_FOR_BUILD=1
7804
7805$as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7806
7807 fi
7808
7809
7810 fi
46070488
JM
7811fi
7812
592c90ff
KG
7813# Used for setting $lt_cv_objdir
7814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7815$as_echo_n "checking for objdir... " >&6; }
22e05272 7816if ${lt_cv_objdir+:} false; then :
592c90ff
KG
7817 $as_echo_n "(cached) " >&6
7818else
7819 rm -f .libs 2>/dev/null
7820mkdir .libs 2>/dev/null
7821if test -d .libs; then
7822 lt_cv_objdir=.libs
7823else
7824 # MS-DOS does not allow filenames that begin with a dot.
7825 lt_cv_objdir=_libs
7826fi
7827rmdir .libs 2>/dev/null
7828fi
7829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7830$as_echo "$lt_cv_objdir" >&6; }
7831objdir=$lt_cv_objdir
7832
7833
7834
7835
7836
7837cat >>confdefs.h <<_ACEOF
7838#define LT_OBJDIR "$lt_cv_objdir/"
7839_ACEOF
7840
7841
7842
acd26225 7843# Check for GMP, MPFR and MPC
3a5729ea 7844gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 7845gmpinc=
e69bf64b 7846have_gmp=no
acd26225
KG
7847
7848# Specify a location for mpc
7849# check for this first so it ends up on the link line before mpfr.
7850
5213506e
RW
7851# Check whether --with-mpc was given.
7852if test "${with_mpc+set}" = set; then :
7853 withval=$with_mpc;
7854fi
acd26225 7855
acd26225 7856
9965e3cd 7857# Check whether --with-mpc-include was given.
5213506e
RW
7858if test "${with_mpc_include+set}" = set; then :
7859 withval=$with_mpc_include;
7860fi
acd26225 7861
acd26225 7862
9965e3cd 7863# Check whether --with-mpc-lib was given.
5213506e
RW
7864if test "${with_mpc_lib+set}" = set; then :
7865 withval=$with_mpc_lib;
7866fi
acd26225 7867
acd26225
KG
7868
7869if test "x$with_mpc" != x; then
3a5729ea
KG
7870 gmplibs="-L$with_mpc/lib $gmplibs"
7871 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
7872fi
7873if test "x$with_mpc_include" != x; then
3a5729ea 7874 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
7875fi
7876if test "x$with_mpc_lib" != x; then
3a5729ea 7877 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
7878fi
7879if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 7880 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 7881 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
7882 # Do not test the mpc version. Assume that it is sufficient, since
7883 # it is in the source tree, and the library has not been built yet
7884 # but it would be included on the link line in the version check below
7885 # hence making the test fail.
3a5729ea 7886 have_gmp=yes
acd26225 7887fi
e69bf64b 7888
bebf829d
PB
7889# Specify a location for mpfr
7890# check for this first so it ends up on the link line before gmp.
1c710c3c 7891
5213506e
RW
7892# Check whether --with-mpfr-dir was given.
7893if test "${with_mpfr_dir+set}" = set; then :
22e05272 7894 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5213506e
RW
7895Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7896fi
7897
bebf829d
PB
7898
7899
5213506e
RW
7900# Check whether --with-mpfr was given.
7901if test "${with_mpfr+set}" = set; then :
7902 withval=$with_mpfr;
7903fi
1c710c3c 7904
bebf829d 7905
9965e3cd 7906# Check whether --with-mpfr-include was given.
5213506e
RW
7907if test "${with_mpfr_include+set}" = set; then :
7908 withval=$with_mpfr_include;
7909fi
1c710c3c 7910
8a877c9c 7911
9965e3cd 7912# Check whether --with-mpfr-lib was given.
5213506e
RW
7913if test "${with_mpfr_lib+set}" = set; then :
7914 withval=$with_mpfr_lib;
7915fi
8a877c9c 7916
bebf829d
PB
7917
7918if test "x$with_mpfr" != x; then
7919 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 7920 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 7921fi
8a877c9c 7922if test "x$with_mpfr_include" != x; then
3a5729ea 7923 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
7924fi
7925if test "x$with_mpfr_lib" != x; then
7926 gmplibs="-L$with_mpfr_lib $gmplibs"
7927fi
e69bf64b 7928if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
7929 # MPFR v3.1.0 moved the sources into a src sub-directory.
7930 if ! test -d ${srcdir}/mpfr/src; then
22e05272 7931 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8f3675f8 7932 fi
00f35794
BE
7933 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7934 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7935 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
7936 # Do not test the mpfr version. Assume that it is sufficient, since
7937 # it is in the source tree, and the library has not been built yet
7938 # but it would be included on the link line in the version check below
7939 # hence making the test fail.
7940 have_gmp=yes
7941fi
bebf829d 7942
6de9cd9a 7943# Specify a location for gmp
1c710c3c 7944
5213506e
RW
7945# Check whether --with-gmp-dir was given.
7946if test "${with_gmp_dir+set}" = set; then :
22e05272 7947 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5213506e
RW
7948Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
7949fi
7950
6de9cd9a 7951
6de9cd9a 7952
5213506e
RW
7953# Check whether --with-gmp was given.
7954if test "${with_gmp+set}" = set; then :
7955 withval=$with_gmp;
7956fi
1c710c3c 7957
6de9cd9a 7958
9965e3cd 7959# Check whether --with-gmp-include was given.
5213506e
RW
7960if test "${with_gmp_include+set}" = set; then :
7961 withval=$with_gmp_include;
7962fi
1c710c3c 7963
8a877c9c 7964
9965e3cd 7965# Check whether --with-gmp-lib was given.
5213506e
RW
7966if test "${with_gmp_lib+set}" = set; then :
7967 withval=$with_gmp_lib;
7968fi
8a877c9c
KG
7969
7970
6de9cd9a 7971
bebf829d
PB
7972if test "x$with_gmp" != x; then
7973 gmplibs="-L$with_gmp/lib $gmplibs"
7974 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 7975fi
8a877c9c
KG
7976if test "x$with_gmp_include" != x; then
7977 gmpinc="-I$with_gmp_include $gmpinc"
7978fi
7979if test "x$with_gmp_lib" != x; then
7980 gmplibs="-L$with_gmp_lib $gmplibs"
7981fi
e69bf64b 7982if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 7983 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 7984 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 7985 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 7986 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 7987 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
7988 # Do not test the gmp version. Assume that it is sufficient, since
7989 # it is in the source tree, and the library has not been built yet
7990 # but it would be included on the link line in the version check below
7991 # hence making the test fail.
7992 have_gmp=yes
7993fi
6de9cd9a 7994
d943d7c4 7995if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
7996 have_gmp=yes
7997 saved_CFLAGS="$CFLAGS"
7998 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
7999 # Check for the recommended and required versions of GMP.
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8001$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
8002
8003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
8004/* end confdefs.h. */
8005#include "gmp.h"
8006int
8007main ()
8008{
8009
8010 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8011 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 8012 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
8013 choke me
8014 #endif
8015
8016 ;
8017 return 0;
8018}
8019_ACEOF
8020if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 8021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8022/* end confdefs.h. */
362c6d2f 8023#include <gmp.h>
1c710c3c
DJ
8024int
8025main ()
8026{
6de9cd9a 8027
362c6d2f
KG
8028 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8029 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8030 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
8031 choke me
8032 #endif
1c710c3c
DJ
8033
8034 ;
8035 return 0;
8036}
8037_ACEOF
5213506e
RW
8038if ac_fn_c_try_compile "$LINENO"; then :
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8040$as_echo "yes" >&6; }
362c6d2f
KG
8041else
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8043$as_echo "buggy but acceptable" >&6; }
8044fi
8045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 8046else
5213506e
RW
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048$as_echo "no" >&6; }; have_gmp=no
1c710c3c 8049fi
5213506e 8050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 8051
acd26225 8052 # If we have GMP, check the MPFR version.
e69bf64b 8053 if test x"$have_gmp" = xyes; then
362c6d2f
KG
8054 # Check for the recommended and required versions of MPFR.
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8056$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8058/* end confdefs.h. */
70ec446f 8059#include <gmp.h>
e69bf64b 8060 #include <mpfr.h>
1c710c3c
DJ
8061int
8062main ()
8063{
e48d66a9 8064
8be34204 8065 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
e69bf64b
PB
8066 choke me
8067 #endif
1c710c3c
DJ
8068
8069 ;
8070 return 0;
8071}
8072_ACEOF
5213506e
RW
8073if ac_fn_c_try_compile "$LINENO"; then :
8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8075/* end confdefs.h. */
a3993f33 8076#include <gmp.h>
e69bf64b 8077 #include <mpfr.h>
1c710c3c
DJ
8078int
8079main ()
8080{
a3993f33 8081
8be34204 8082 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
e69bf64b
PB
8083 choke me
8084 #endif
acd26225
KG
8085
8086 ;
8087 return 0;
8088}
8089_ACEOF
5213506e
RW
8090if ac_fn_c_try_compile "$LINENO"; then :
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8092$as_echo "yes" >&6; }
acd26225 8093else
5213506e
RW
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8095$as_echo "buggy but acceptable" >&6; }
acd26225 8096fi
5213506e 8097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 8098else
5213506e
RW
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100$as_echo "no" >&6; }; have_gmp=no
acd26225 8101fi
5213506e 8102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
8103 fi
8104
8105 # Check for the MPC header version.
3a5729ea 8106 if test x"$have_gmp" = xyes ; then
362c6d2f 8107 # Check for the recommended and required versions of MPC.
5213506e
RW
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8109$as_echo_n "checking for the correct version of mpc.h... " >&6; }
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
8111/* end confdefs.h. */
8112#include <mpc.h>
8113int
8114main ()
8115{
8116
362c6d2f
KG
8117 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8118 choke me
8119 #endif
8120
8121 ;
8122 return 0;
8123}
8124_ACEOF
8125if ac_fn_c_try_compile "$LINENO"; then :
8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127/* end confdefs.h. */
8128#include <mpc.h>
8129int
8130main ()
8131{
8132
8133 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
8134 choke me
8135 #endif
8136
8137 ;
8138 return 0;
8139}
8140_ACEOF
5213506e
RW
8141if ac_fn_c_try_compile "$LINENO"; then :
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 8143$as_echo "yes" >&6; }
362c6d2f
KG
8144else
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8146$as_echo "buggy but acceptable" >&6; }
8147fi
8148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 8149else
5213506e 8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 8151$as_echo "no" >&6; }; have_gmp=no
acd26225 8152fi
5213506e 8153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
8154 fi
8155
8156 # Now check the MPFR library.
8157 if test x"$have_gmp" = xyes; then
8158 saved_LIBS="$LIBS"
8159 LIBS="$LIBS $gmplibs"
3a5729ea
KG
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8161$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 8162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 8163/* end confdefs.h. */
3a5729ea 8164#include <mpc.h>
acd26225
KG
8165int
8166main ()
8167{
8168
8169 mpfr_t n;
8170 mpfr_t x;
3a5729ea 8171 mpc_t c;
acd26225
KG
8172 int t;
8173 mpfr_init (n);
8174 mpfr_init (x);
90ca6847
TB
8175 mpfr_atan2 (n, n, x, MPFR_RNDN);
8176 mpfr_erfc (n, x, MPFR_RNDN);
8177 mpfr_subnormalize (x, t, MPFR_RNDN);
3a5729ea
KG
8178 mpfr_clear(n);
8179 mpfr_clear(x);
8180 mpc_init2 (c, 53);
8181 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8182 mpc_cosh (c, c, MPC_RNDNN);
8183 mpc_pow (c, c, c, MPC_RNDNN);
8184 mpc_acosh (c, c, MPC_RNDNN);
8185 mpc_clear (c);
1c710c3c
DJ
8186
8187 ;
8188 return 0;
8189}
8190_ACEOF
5213506e
RW
8191if ac_fn_c_try_link "$LINENO"; then :
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8193$as_echo "yes" >&6; }
1c710c3c 8194else
5213506e
RW
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196$as_echo "no" >&6; }; have_gmp=no
1c710c3c 8197fi
5213506e
RW
8198rm -f core conftest.err conftest.$ac_objext \
8199 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
8200 LIBS="$saved_LIBS"
8201 fi
8202
e69bf64b 8203 CFLAGS="$saved_CFLAGS"
6de9cd9a 8204
362c6d2f
KG
8205# The library versions listed in the error message below should match
8206# the HARD-minimums enforced above.
e69bf64b 8207 if test x$have_gmp != xyes; then
8be34204 8208 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
3a5729ea
KG
8209Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8210their locations. Source code for these libraries can be found at
8211their respective hosting sites as well as at
aeebd94c 8212https://gcc.gnu.org/pub/gcc/infrastructure/. See also
3a5729ea
KG
8213http://gcc.gnu.org/install/prerequisites.html for additional info. If
8214you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8215make sure that you have installed both the libraries and the header
8216files. They may be located in separate packages." "$LINENO" 5
e69bf64b 8217 fi
70ec446f
KG
8218fi
8219
acd26225
KG
8220# Flags needed for both GMP, MPFR and/or MPC.
8221
8222
6de9cd9a
DN
8223
8224
8225
9e3eba15 8226
0ff2d841 8227
0b21f5d3 8228# Libraries to use for stage1 or when not bootstrapping.
00020c16 8229
0b21f5d3
EB
8230# Check whether --with-stage1-libs was given.
8231if test "${with_stage1_libs+set}" = set; then :
8232 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8233 stage1_libs=
00020c16 8234 else
0b21f5d3 8235 stage1_libs=$withval
00020c16
ILT
8236 fi
8237else
5dc85f7e 8238 stage1_libs=
5213506e
RW
8239fi
8240
00020c16
ILT
8241
8242
aac9103b
TT
8243# Whether or not to use -static-libstdc++ and -static-libgcc. The
8244# default is yes if gcc is being built; no otherwise. The reason for
8245# this default is that gdb is sometimes linked against GNU Source
8246# Highlight, which is a shared library that uses C++ exceptions. In
8247# this case, -static-libstdc++ will cause crashes.
8248
8249# Check whether --with-static-standard-libraries was given.
8250if test "${with_static_standard_libraries+set}" = set; then :
8251 withval=$with_static_standard_libraries;
8252else
8253 with_static_standard_libraries=auto
8254fi
8255
8256if test "$with_static_standard_libraries" = auto; then
8257 with_static_standard_libraries=$have_compiler
8258fi
8259
0b21f5d3 8260# Linker flags to use for stage1 or when not bootstrapping.
00020c16 8261
0b21f5d3
EB
8262# Check whether --with-stage1-ldflags was given.
8263if test "${with_stage1_ldflags+set}" = set; then :
8264 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8265 stage1_ldflags=
00020c16 8266 else
0b21f5d3 8267 stage1_ldflags=$withval
00020c16
ILT
8268 fi
8269else
0b21f5d3
EB
8270 stage1_ldflags=
8271 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8272 # if supported. But if the user explicitly specified the libraries to use,
8273 # trust that they are doing what they want.
aac9103b
TT
8274 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8275 -a "$have_static_libs" = yes; then
0b21f5d3
EB
8276 stage1_ldflags="-static-libstdc++ -static-libgcc"
8277 fi
5213506e
RW
8278fi
8279
00020c16
ILT
8280
8281
5dc85f7e 8282# Libraries to use for stage2 and later builds.
00020c16 8283
5213506e
RW
8284# Check whether --with-boot-libs was given.
8285if test "${with_boot_libs+set}" = set; then :
8286 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
8287 poststage1_libs=
8288 else
8289 poststage1_libs=$withval
8290 fi
8291else
5dc85f7e 8292 poststage1_libs=
5213506e
RW
8293fi
8294
00020c16
ILT
8295
8296
ed2eaa9f
ILT
8297# Linker flags to use for stage2 and later builds.
8298
8299# Check whether --with-boot-ldflags was given.
8300if test "${with_boot_ldflags+set}" = set; then :
8301 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8302 poststage1_ldflags=
8303 else
8304 poststage1_ldflags=$withval
8305 fi
8306else
8307 poststage1_ldflags=
bec93d73
ILT
8308 # In stages 2 and 3, default to linking libstdc++ and libgcc
8309 # statically. But if the user explicitly specified the libraries to
8310 # use, trust that they are doing what they want.
8311 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
8312 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8313 fi
8314fi
8315
8316
8317
e357a5e0 8318# GCC GRAPHITE dependency isl.
4a9bb2aa 8319# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
8320
8321
33ad93b9
RG
8322# Check whether --with-isl was given.
8323if test "${with_isl+set}" = set; then :
8324 withval=$with_isl;
5213506e 8325fi
f8bf9252 8326
f8bf9252 8327
eae1a5d4 8328# Treat --without-isl as a request to disable
625afa23 8329# GRAPHITE support and skip all following checks.
eae1a5d4 8330if test "x$with_isl" != "xno"; then
e357a5e0 8331 # Check for isl
625afa23
RG
8332
8333
33ad93b9
RG
8334# Check whether --with-isl-include was given.
8335if test "${with_isl_include+set}" = set; then :
8336 withval=$with_isl_include;
5213506e
RW
8337fi
8338
f8bf9252 8339
33ad93b9
RG
8340# Check whether --with-isl-lib was given.
8341if test "${with_isl_lib+set}" = set; then :
8342 withval=$with_isl_lib;
5213506e 8343fi
f8bf9252 8344
f8bf9252 8345
33ad93b9
RG
8346 # Check whether --enable-isl-version-check was given.
8347if test "${enable_isl_version_check+set}" = set; then :
8348 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8349else
8350 ENABLE_ISL_CHECK=yes
7d32a440
SP
8351fi
8352
8353
33ad93b9
RG
8354 # Initialize isllibs and islinc.
8355 case $with_isl in
8356 no)
8357 isllibs=
8358 islinc=
8359 ;;
8360 "" | yes)
8361 ;;
8362 *)
8363 isllibs="-L$with_isl/lib"
8364 islinc="-I$with_isl/include"
8365 ;;
8366 esac
8367 if test "x${with_isl_include}" != x ; then
8368 islinc="-I$with_isl_include"
8369 fi
8370 if test "x${with_isl_lib}" != x; then
8371 isllibs="-L$with_isl_lib"
8372 fi
8373 if test "x${islinc}" = x && test "x${isllibs}" = x \
8374 && test -d ${srcdir}/isl; then
8375 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8376 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8377 ENABLE_ISL_CHECK=no
560d18d3
AK
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8379$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 8380 fi
7d32a440 8381
eae1a5d4
RG
8382 isllibs="${isllibs} -lisl"
8383
7d32a440 8384
7d32a440 8385
9847828b
RB
8386 if test "${ENABLE_ISL_CHECK}" = yes ; then
8387 _isl_saved_CFLAGS=$CFLAGS
8388 _isl_saved_LDFLAGS=$LDFLAGS
8389 _isl_saved_LIBS=$LIBS
8390
8391 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
8392 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8393 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 8394
f877b3ad
RB
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8396$as_echo_n "checking for isl 0.15 or later... " >&6; }
e0c0c325 8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 8398/* end confdefs.h. */
f877b3ad 8399#include <isl/schedule.h>
622dbadf
BC
8400int
8401main ()
8402{
f877b3ad 8403isl_options_set_schedule_serialize_sccs (NULL, 0);
622dbadf
BC
8404 ;
8405 return 0;
8406}
8407_ACEOF
8408if ac_fn_c_try_link "$LINENO"; then :
9847828b 8409 gcc_cv_isl=yes
622dbadf
BC
8410else
8411 gcc_cv_isl=no
8412fi
8413rm -f core conftest.err conftest.$ac_objext \
8414 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8416$as_echo "$gcc_cv_isl" >&6; }
8417
560d18d3 8418 if test "${gcc_cv_isl}" = no ; then
f877b3ad
RB
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8420$as_echo "required isl version is 0.15 or later" >&6; }
1e050c90
AK
8421 fi
8422
9847828b
RB
8423 CFLAGS=$_isl_saved_CFLAGS
8424 LDFLAGS=$_isl_saved_LDFLAGS
8425 LIBS=$_isl_saved_LIBS
8426 fi
8427
8428
f8bf9252 8429
f8bf9252 8430
33ad93b9
RG
8431
8432
33ad93b9
RG
8433 if test "x${with_isl}" = xno; then
8434 graphite_requested=no
8435 elif test "x${with_isl}" != x \
8436 || test "x${with_isl_include}" != x \
8437 || test "x${with_isl_lib}" != x ; then
8438 graphite_requested=yes
8439 else
8440 graphite_requested=no
7d32a440 8441 fi
d789184e 8442
d789184e
SP
8443
8444
33ad93b9
RG
8445 if test "${gcc_cv_isl}" = no ; then
8446 isllibs=
8447 islinc=
8448 fi
8449
8450 if test "${graphite_requested}" = yes \
8451 && test "x${isllibs}" = x \
8452 && test "x${islinc}" = x ; then
f8bf9252 8453
22e05272 8454 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 8455 fi
f8bf9252 8456
d32ef397 8457
d32ef397
AS
8458fi
8459
e357a5e0 8460# If the isl check failed, disable builds of in-tree variant of isl
625afa23 8461if test "x$with_isl" = xno ||
625afa23 8462 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 8463 noconfigdirs="$noconfigdirs isl"
625afa23 8464 islinc=
32d024bf
RG
8465fi
8466
625afa23
RG
8467
8468
8469
d7f09764
DN
8470# Check for LTO support.
8471# Check whether --enable-lto was given.
8472if test "${enable_lto+set}" = set; then :
8473 enableval=$enable_lto; enable_lto=$enableval
8474else
8475 enable_lto=yes; default_enable_lto=yes
8476fi
8477
8478
7413962d 8479
9a02962b
DK
8480
8481
8482target_elf=no
8483case $target in
8484 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 8485 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 8486 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 8487 nvptx-*-none)
9a02962b
DK
8488 target_elf=no
8489 ;;
8490 *)
8491 target_elf=yes
8492 ;;
8493esac
8494
8495if test $target_elf = yes; then :
48215350
DK
8496 # ELF platforms build the lto-plugin always.
8497 build_lto_plugin=yes
9a02962b 8498
9a02962b
DK
8499else
8500 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 8501 case $target in
deeba76a 8502 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 8503 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
8504 *) enable_lto=no ;;
8505 esac
9a02962b 8506 else
db50fe7d
IS
8507 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8508 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
8509 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8510 # warn during gcc/ subconfigure; unless you're bootstrapping with
8511 # -flto it won't be needed until after installation anyway.
8512 case $target in
9e530bcd 8513 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b 8514 *) if test x"$enable_lto" = x"yes"; then
22e05272 8515 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9a02962b
DK
8516 fi
8517 ;;
8518 esac
8519 fi
1cd0b716 8520 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 8521 # Build it unless LTO was explicitly disabled.
1cd0b716 8522 case $target in
48215350 8523 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
8524 *) ;;
8525 esac
48215350 8526
9a02962b
DK
8527fi
8528
d7f09764 8529
45b3824d
TS
8530# Check whether --enable-linker-plugin-configure-flags was given.
8531if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8532 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8533else
8534 extra_linker_plugin_configure_flags=
8535fi
8536
8537
8538# Check whether --enable-linker-plugin-flags was given.
8539if test "${enable_linker_plugin_flags+set}" = set; then :
8540 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8541else
8542 extra_linker_plugin_flags=
8543fi
8544
8545
8546
cdfee50a
NS
8547# Enable --enable-host-shared.
8548# Checked early to determine whether jit is an 'all' language
8549# Check whether --enable-host-shared was given.
8550if test "${enable_host_shared+set}" = set; then :
8551 enableval=$enable_host_shared; host_shared=$enableval
a1d2b162
IS
8552 case $target in
8553 x86_64-*-darwin* | aarch64-*-darwin*)
8554 if test x$host_shared != xyes ; then
8555 # PIC is the default, and actually cannot be switched off.
8556 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8557 host_shared=yes
8558 fi ;;
8559 *) ;;
8560 esac
cdfee50a 8561else
a1d2b162
IS
8562 case $target in
8563 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8564 *) host_shared=no ;;
8565 esac
cdfee50a
NS
8566fi
8567
8568
f8bf9252 8569
0823efed 8570# By default, C and C++ are the only stage 1 languages.
e1888513 8571stage1_languages=,c,
2805b53a 8572
00020c16 8573# Target libraries that we bootstrap.
ad1e5170 8574bootstrap_target_libs=,target-libgcc,
00020c16 8575
55ffb5ed
NN
8576# Figure out what language subdirectories are present.
8577# Look if the user specified --enable-languages="..."; if not, use
8578# the environment variable $LANGUAGES if defined. $LANGUAGES might
8579# go away some day.
8580# NB: embedded tabs in this IF block -- do not untabify
8581if test -d ${srcdir}/gcc; then
8582 if test x"${enable_languages+set}" != xset; then
8583 if test x"${LANGUAGES+set}" = xset; then
8584 enable_languages="${LANGUAGES}"
6b1786aa 8585 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed 8586 else
cdfee50a 8587 enable_languages=default
55ffb5ed
NN
8588 fi
8589 else
8590 if test x"${enable_languages}" = x ||
8591 test x"${enable_languages}" = xyes;
8592 then
6b1786aa 8593 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
8594 exit 1
8595 fi
8596 fi
8597 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8598
7f26dfa3
FXC
8599 # 'f95' is the old name for the 'fortran' language. We issue a warning
8600 # and make the substitution.
8601 case ,${enable_languages}, in
8602 *,f95,*)
6b1786aa 8603 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
8604 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8605 ;;
8606 esac
8607
0823efed
DN
8608 # If bootstrapping, C++ must be enabled.
8609 case ",$enable_languages,:$enable_bootstrap" in
8610 *,c++,*:*) ;;
8611 *:yes)
ff3ac0f4
ILT
8612 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8613 enable_languages="${enable_languages},c++"
8614 else
22e05272 8615 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
8616 fi
8617 ;;
8618 esac
8619
55ffb5ed
NN
8620 # First scan to see if an enabled language requires some other language.
8621 # We assume that a given config-lang.in will list all the language
8622 # front ends it requires, even if some are required indirectly.
8623 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8624 case ${lang_frag} in
8625 ..) ;;
8626 # The odd quoting in the next line works around
8627 # an apparent bug in bash 1.12 on linux.
8628 ${srcdir}/gcc/[*]/config-lang.in) ;;
8629 *)
69ecd18f
ILT
8630 # From the config-lang.in, get $language, $lang_requires, and
8631 # $lang_requires_boot_languages.
55ffb5ed
NN
8632 language=
8633 lang_requires=
69ecd18f 8634 lang_requires_boot_languages=
d4360477
NS
8635 # set srcdir during sourcing lang_frag to the gcc dir.
8636 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8637 # polutes this shell
8638 saved_srcdir=${srcdir}
8639 srcdir=${srcdir}/gcc . ${lang_frag}
8640 srcdir=${saved_srcdir}
69ecd18f 8641 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
8642 case ,${enable_languages}, in
8643 *,$other,*) ;;
cdfee50a 8644 *,default,*) ;;
55ffb5ed
NN
8645 *,all,*) ;;
8646 *,$language,*)
8647 echo " \`$other' language required by \`$language'; enabling" 1>&2
8648 enable_languages="${enable_languages},${other}"
8649 ;;
8650 esac
8651 done
69ecd18f
ILT
8652 for other in ${lang_requires_boot_languages} ; do
8653 if test "$other" != "c"; then
8654 case ,${enable_stage1_languages}, in
8655 *,$other,*) ;;
cdfee50a 8656 *,default,*) ;;
69ecd18f
ILT
8657 *,all,*) ;;
8658 *)
8659 case ,${enable_languages}, in
8660 *,$language,*)
8661 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8662 enable_stage1_languages="$enable_stage1_languages,${other}"
8663 ;;
8664 esac
8665 ;;
8666 esac
8667 fi
8668 done
55ffb5ed
NN
8669 ;;
8670 esac
8671 done
8672
e1888513 8673 new_enable_languages=,c,
d7f09764
DN
8674
8675 # If LTO is enabled, add the LTO front end.
d7f09764 8676 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
8677 case ,${enable_languages}, in
8678 *,lto,*) ;;
8679 *) enable_languages="${enable_languages},lto" ;;
8680 esac
1cd0b716 8681 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 8682 configdirs="$configdirs lto-plugin"
d7f09764
DN
8683 fi
8684 fi
8685
426c1eb0
TS
8686 # If we're building an offloading compiler, add the LTO front end.
8687 if test x"$enable_as_accelerator_for" != x ; then
8688 case ,${enable_languages}, in
8689 *,lto,*) ;;
8690 *) enable_languages="${enable_languages},lto" ;;
8691 esac
8692 fi
8693
cdfee50a 8694 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
e1888513 8695 potential_languages=,c,
55ffb5ed 8696
4da3b0f8
ILT
8697 enabled_target_libs=
8698 disabled_target_libs=
8699
55ffb5ed
NN
8700 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8701 case ${lang_frag} in
8702 ..) ;;
8703 # The odd quoting in the next line works around
8704 # an apparent bug in bash 1.12 on linux.
8705 ${srcdir}/gcc/[*]/config-lang.in) ;;
8706 *)
1c710c3c 8707 # From the config-lang.in, get $language, $target_libs,
2805b53a 8708 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
8709 language=
8710 target_libs=
8711 lang_dirs=
1546bb64 8712 subdir_requires=
e1888513
PB
8713 boot_language=no
8714 build_by_default=yes
d4360477
NS
8715 # set srcdir during sourcing. See above about save & restore
8716 saved_srcdir=${srcdir}
8717 srcdir=${srcdir}/gcc . ${lang_frag}
8718 srcdir=${saved_srcdir}
e1888513
PB
8719 if test x${language} = x; then
8720 echo "${lang_frag} doesn't set \$language." 1>&2
8721 exit 1
8722 fi
8723
78767fd9 8724 if test "$language" = "c++"; then
0823efed 8725 boot_language=yes
00020c16
ILT
8726 fi
8727
178f875a 8728 add_this_lang=no
cdfee50a
NS
8729 # C is always enabled, so no need to add it again
8730 if test "$language" != "c"; then
8731 case ,${enable_languages}, in
8732 *,${language},*)
8733 # Language was explicitly selected; include it
d4a10d0a 8734 add_this_lang=yes
cdfee50a
NS
8735 ;;
8736 *,all,*)
8737 # All languages are enabled
8738 add_this_lang=all
8739 ;;
8740 *,default,*)
8741 # 'default' was selected, select it if it is a default language
178f875a 8742 add_this_lang=${build_by_default}
cdfee50a
NS
8743 ;;
8744 esac
8745 fi
6de9cd9a 8746
1546bb64 8747 # Disable languages that need other directories if these aren't available.
95695ad3 8748 for i in $subdir_requires; do
b6348cb3 8749 test -f "$srcdir/gcc/$i/config-lang.in" && continue
cdfee50a
NS
8750 case ${add_this_lang} in
8751 yes)
1546bb64 8752 # Specifically requested language; tell them.
22e05272 8753 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64 8754 ;;
cdfee50a
NS
8755 all)
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8757$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8758 add_this_lang=unsupported
8759 ;;
1546bb64
PB
8760 *)
8761 # Silently disable.
e1888513 8762 add_this_lang=unsupported
1546bb64
PB
8763 ;;
8764 esac
8765 done
8766
e1888513 8767 # Disable Ada if no preexisting GNAT is available.
cdfee50a
NS
8768 case ${add_this_lang}:${language}:${have_gnat} in
8769 yes:ada:no)
e1888513 8770 # Specifically requested language; tell them.
22e05272 8771 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
e1888513 8772 ;;
cdfee50a
NS
8773 all:ada:no)
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8775$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8776 add_this_lang=unsupported
8777 ;;
e1888513
PB
8778 *:ada:no)
8779 # Silently disable.
8780 add_this_lang=unsupported
8781 ;;
8782 esac
8783
5fee5ec3
IB
8784 # Disable D if no preexisting GDC is available.
8785 case ${add_this_lang}:${language}:${have_gdc} in
8786 yes:d:no)
8787 # Specifically requested language; tell them.
8788 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8789 ;;
8790 all:d:no)
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8792$as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8793 add_this_lang=unsupported
8794 ;;
8795 *:d:no)
8796 # Silently disable.
8797 add_this_lang=unsupported
8798 ;;
8799 esac
8800
cdfee50a 8801 # Disable jit if -enable-host-shared not specified
ffac9597
JM
8802 # but not if building for Mingw. All code in Windows
8803 # is position independent code (PIC).
c83027f3
NB
8804 case $target in
8805 *mingw*) ;;
8806 *)
8807 case ${add_this_lang}:${language}:${host_shared} in
8808 yes:jit:no)
8809 # PR jit/64780: explicitly specify --enable-host-shared
22e05272 8810 as_fn_error $? "
cdfee50a
NS
8811Enabling language \"jit\" requires --enable-host-shared.
8812
8813--enable-host-shared typically slows the rest of the compiler down by
8814a few %, so you must explicitly enable it.
8815
8816If you want to build both the jit and the regular compiler, it is often
8817best to do this via two separate configure/builds, in separate
8818directories, to avoid imposing the performance cost of
8819--enable-host-shared on the regular compiler." "$LINENO" 5
c83027f3
NB
8820 ;;
8821 all:jit:no)
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
cdfee50a 8823$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
c83027f3
NB
8824 add_this_lang=unsupported
8825 ;;
8826 *:jit:no)
8827 # Silently disable.
8828 add_this_lang=unsupported
8829 ;;
8830 esac
8831 ;;
8832 esac
cdfee50a
NS
8833
8834 # Disable a language that is unsupported by the target.
8835 case "${add_this_lang}: $unsupported_languages " in
8836 no:*) ;;
8837 unsupported:*) ;;
8838 *:*" $language "*)
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8840$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
e1888513 8841 add_this_lang=unsupported
4fab7234
HPN
8842 ;;
8843 esac
8844
6de9cd9a 8845 case $add_this_lang in
e1888513 8846 unsupported)
55ffb5ed 8847 # Remove language-dependent dirs.
4da3b0f8
ILT
8848 disabled_target_libs="$disabled_target_libs $target_libs"
8849 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 8850 ;;
e1888513
PB
8851 no)
8852 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
8853 disabled_target_libs="$disabled_target_libs $target_libs"
8854 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
8855 potential_languages="${potential_languages}${language},"
8856 ;;
cdfee50a 8857 all|yes)
e1888513
PB
8858 new_enable_languages="${new_enable_languages}${language},"
8859 potential_languages="${potential_languages}${language},"
2805b53a 8860 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 8861 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
8862 case "${boot_language}:,$enable_stage1_languages," in
8863 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 8864 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
8865 case ",$stage1_languages," in
8866 *,$language,* | ,yes, | ,all,) ;;
8867 *) stage1_languages="${stage1_languages}${language}," ;;
8868 esac
00020c16 8869 # We need to bootstrap any supporting libraries.
5fee5ec3 8870 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
2805b53a
NN
8871 ;;
8872 esac
8873 ;;
55ffb5ed
NN
8874 esac
8875 ;;
8876 esac
8877 done
8878
4da3b0f8
ILT
8879 # Add target libraries which are only needed for disabled languages
8880 # to noconfigdirs.
8881 if test -n "$disabled_target_libs"; then
8882 for dir in $disabled_target_libs; do
8883 case " $enabled_target_libs " in
8884 *" ${dir} "*) ;;
8885 *) noconfigdirs="$noconfigdirs $dir" ;;
8886 esac
8887 done
8888 fi
8889
5213506e
RW
8890 # Check whether --enable-stage1-languages was given.
8891if test "${enable_stage1_languages+set}" = set; then :
8892 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
8893 ,no,|,,)
8894 # Set it to something that will have no effect in the loop below
8895 enable_stage1_languages=c ;;
8896 ,yes,)
8897 enable_stage1_languages=`echo $new_enable_languages | \
8898 sed -e "s/^,//" -e "s/,$//" ` ;;
8899 *,all,*)
8900 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8901 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8902 esac
8903
8904 # Add "good" languages from enable_stage1_languages to stage1_languages,
8905 # while "bad" languages go in missing_languages. Leave no duplicates.
8906 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8907 case $potential_languages in
8908 *,$i,*)
8909 case $stage1_languages in
8910 *,$i,*) ;;
8911 *) stage1_languages="$stage1_languages$i," ;;
8912 esac ;;
8913 *)
8914 case $missing_languages in
8915 *,$i,*) ;;
8916 *) missing_languages="$missing_languages$i," ;;
8917 esac ;;
8918 esac
8919 done
5213506e
RW
8920fi
8921
e1888513
PB
8922
8923 # Remove leading/trailing commas that were added for simplicity
8924 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 8925 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
8926 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8927 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8928
55ffb5ed 8929 if test "x$missing_languages" != x; then
22e05272 8930 as_fn_error $? "
0cf085e4 8931The following requested languages could not be built: ${missing_languages}
5213506e 8932Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 8933 fi
55ffb5ed
NN
8934 if test "x$new_enable_languages" != "x$enable_languages"; then
8935 echo The following languages will be built: ${new_enable_languages}
e1888513 8936 enable_languages="$new_enable_languages"
55ffb5ed 8937 fi
e1888513 8938
1c710c3c 8939
b2eaac4a 8940 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
8941fi
8942
27079765
AH
8943# Handle --disable-<component> generically.
8944for dir in $configdirs $build_configdirs $target_configdirs ; do
8945 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
8946 varname=`echo $dirname | sed -e s/+/_/g`
8947 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
8948 noconfigdirs="$noconfigdirs $dir"
8949 fi
8950done
8951
43c40f3e
RO
8952# Check for Boehm's garbage collector
8953# Check whether --enable-objc-gc was given.
8954if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
8955 enableval=$enable_objc_gc;
8956fi
8957
8958
8959# Check whether --with-target-bdw-gc was given.
8960if test "${with_target_bdw_gc+set}" = set; then :
8961 withval=$with_target_bdw_gc;
8962fi
8963
8964
8965# Check whether --with-target-bdw-gc-include was given.
8966if test "${with_target_bdw_gc_include+set}" = set; then :
8967 withval=$with_target_bdw_gc_include;
8968fi
8969
8970
8971# Check whether --with-target-bdw-gc-lib was given.
8972if test "${with_target_bdw_gc_lib+set}" = set; then :
8973 withval=$with_target_bdw_gc_lib;
8974fi
8975
8976
8977case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
8979$as_echo_n "checking for bdw garbage collector... " >&6; }
8980 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
8982$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
8983 else
8984 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
22e05272 8985 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
114bf3f1 8986 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
22e05272 8987 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
114bf3f1
MK
8988 else
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
8990$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
8991 fi
8992 fi
43c40f3e
RO
8993esac
8994
5e9d6aa4 8995# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 8996case ,${enable_languages}, in
1007a55c 8997 *,c++,*)
5e9d6aa4 8998 # Disable libitm, libsanitizer if we're not building libstdc++
1007a55c
JW
8999 case "${noconfigdirs}" in
9000 *target-libstdc++-v3*)
5e9d6aa4 9001 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1007a55c
JW
9002 ;;
9003 *) ;;
9004 esac
9005 ;;
99776ebd 9006 *)
5e9d6aa4 9007 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
9008 ;;
9009esac
9010
dc614a83
AB
9011# If gcc/ is not in the source tree then we'll not be building a
9012# target compiler, assume in that case we don't want to build any
9013# target libraries or tools.
9014#
9015# This was added primarily for the benefit for binutils-gdb who reuse
9016# this configure script, but don't always have target tools available.
9017if test ! -d ${srcdir}/gcc; then
9018 skipdirs="${skipdirs} ${target_configdirs}"
9019fi
9020
ee6a22df
L
9021# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9022# $build_configdirs and $target_configdirs.
55ffb5ed
NN
9023# If we have the source for $noconfigdirs entries, add them to $notsupp.
9024
9025notsupp=""
9026for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 9027 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
9028 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9029 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9030 if test -r $srcdir/$dirname/configure ; then
9031 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9032 true
9033 else
9034 notsupp="$notsupp $dir"
9035 fi
9036 fi
9037 fi
ee6a22df
L
9038 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9039 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9040 if test -r $srcdir/$dirname/configure ; then
9041 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9042 true
9043 else
9044 notsupp="$notsupp $dir"
9045 fi
9046 fi
9047 fi
55ffb5ed
NN
9048 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9049 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9050 if test -r $srcdir/$dirname/configure ; then
9051 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9052 true
9053 else
9054 notsupp="$notsupp $dir"
9055 fi
9056 fi
9057 fi
9058done
9059
55ffb5ed
NN
9060# Quietly strip out all directories which aren't configurable in this tree.
9061# This relies on all configurable subdirectories being autoconfiscated, which
9062# is now the case.
23f6b2f9
PB
9063build_configdirs_all="$build_configdirs"
9064build_configdirs=
9065for i in ${build_configdirs_all} ; do
1c710c3c 9066 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
9067 if test -f ${srcdir}/$j/configure ; then
9068 build_configdirs="${build_configdirs} $i"
9069 fi
9070done
9071
55ffb5ed
NN
9072configdirs_all="$configdirs"
9073configdirs=
9074for i in ${configdirs_all} ; do
9075 if test -f ${srcdir}/$i/configure ; then
9076 configdirs="${configdirs} $i"
9077 fi
9078done
23f6b2f9 9079
55ffb5ed
NN
9080target_configdirs_all="$target_configdirs"
9081target_configdirs=
9082for i in ${target_configdirs_all} ; do
1c710c3c 9083 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
9084 if test -f ${srcdir}/$j/configure ; then
9085 target_configdirs="${target_configdirs} $i"
9086 fi
9087done
9088
45b3824d
TS
9089# libiberty-linker-plugin is special: it doesn't have its own source directory,
9090# so we have to add it after the preceding checks.
9091if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9092then
9093 case " $configdirs " in
9094 *" libiberty "*)
9095 # If we can build libiberty, we can also build libiberty-linker-plugin.
9096 configdirs="$configdirs libiberty-linker-plugin"
9097 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9098 --with-libiberty=../libiberty-linker-plugin";;
9099 *)
22e05272 9100 as_fn_error $? "libiberty missing" "$LINENO" 5;;
45b3824d
TS
9101 esac
9102fi
9103
fca38047
TS
9104# Sometimes we have special requirements for the host libiberty.
9105extra_host_libiberty_configure_flags=
1c01ebf6 9106extra_host_zlib_configure_flags=
fca38047
TS
9107case " $configdirs " in
9108 *" lto-plugin "* | *" libcc1 "*)
9109 # When these are to be built as shared libraries, the same applies to
9110 # libiberty.
9111 extra_host_libiberty_configure_flags=--enable-shared
9112 ;;
1c01ebf6
L
9113 *" bfd "*)
9114 # When bfd is to be built as a shared library, the same applies to
9115 # zlib.
9116 if test "$enable_shared" = "yes"; then
9117 extra_host_zlib_configure_flags=--enable-host-shared
9118 fi
9119 ;;
fca38047
TS
9120esac
9121
9122
1c01ebf6 9123
55ffb5ed
NN
9124# Produce a warning message for the subdirs we can't configure.
9125# This isn't especially interesting in the Cygnus tree, but in the individual
9126# FSF releases, it's important to let people know when their machine isn't
9127# supported by the one or two programs in a package.
9128
9129if test -n "${notsupp}" && test -z "${norecursion}" ; then
9130 # If $appdirs is non-empty, at least one of those directories must still
9131 # be configured, or we error out. (E.g., if the gas release supports a
9132 # specified target in some subdirs but not the gas subdir, we shouldn't
9133 # pretend that all is well.)
9134 if test -n "$appdirs" ; then
9135 for dir in $appdirs ; do
9136 if test -r $dir/Makefile.in ; then
9137 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9138 appdirs=""
9139 break
9140 fi
23f6b2f9 9141 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
9142 appdirs=""
9143 break
9144 fi
9145 fi
9146 done
9147 if test -n "$appdirs" ; then
9148 echo "*** This configuration is not supported by this package." 1>&2
9149 exit 1
9150 fi
9151 fi
9152 # Okay, some application will build, or we don't care to check. Still
9153 # notify of subdirs not getting built.
9154 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9155 echo " ${notsupp}" 1>&2
9156 echo " (Any other directories should still work fine.)" 1>&2
9157fi
9158
9159case "$host" in
9160 *msdosdjgpp*)
9161 enable_gdbtk=no ;;
9162esac
9163
c3a86da9
DJ
9164# To find our prefix, in gcc_cv_tool_prefix.
9165
9166# The user is always right.
9167if test "${PATH_SEPARATOR+set}" != set; then
9168 echo "#! /bin/sh" >conf$$.sh
9169 echo "exit 0" >>conf$$.sh
9170 chmod +x conf$$.sh
9171 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9172 PATH_SEPARATOR=';'
9173 else
9174 PATH_SEPARATOR=:
9175 fi
9176 rm -f conf$$.sh
9177fi
9178
9179
3c36aa6b
JJ
9180 get_gcc_base_ver="cat"
9181
9182# Check whether --with-gcc-major-version-only was given.
9183if test "${with_gcc_major_version_only+set}" = set; then :
9184 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
31db0fe0 9185 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
9186 fi
9187
9188fi
9189
9190
9191
9192
9193
c3a86da9
DJ
9194
9195if test "x$exec_prefix" = xNONE; then
9196 if test "x$prefix" = xNONE; then
9197 gcc_cv_tool_prefix=$ac_default_prefix
9198 else
9199 gcc_cv_tool_prefix=$prefix
9200 fi
9201else
9202 gcc_cv_tool_prefix=$exec_prefix
9203fi
9204
9205# If there is no compiler in the tree, use the PATH only. In any
9206# case, if there is no compiler in the tree nobody should use
9207# AS_FOR_TARGET and LD_FOR_TARGET.
9208if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
9209 if test x$with_gcc_major_version_only = xyes ; then
9210 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9211 else
9212 gcc_version=`cat $srcdir/gcc/BASE-VER`
9213 fi
c3a86da9
DJ
9214 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9215 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9216 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9217 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9218 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9219 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9220else
9221 gcc_cv_tool_dirs=
9222fi
9223
9224if test x$build = x$target && test -n "$md_exec_prefix"; then
9225 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9226fi
9227
9228
9229
55ffb5ed
NN
9230copy_dirs=
9231
1c710c3c 9232
5213506e
RW
9233# Check whether --with-build-sysroot was given.
9234if test "${with_build_sysroot+set}" = set; then :
9235 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
9236 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9237 fi
9238else
9239 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 9240fi
526635cb
MM
9241
9242
c8aea42c 9243
5213506e
RW
9244
9245# Check whether --with-debug-prefix-map was given.
9246if test "${with_debug_prefix_map+set}" = set; then :
9247 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
9248 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9249 for debug_map in $withval; do
9250 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9251 done
9252 fi
9253else
9254 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
9255fi
9256
c8aea42c
PB
9257
9258
1c8bd6a3
PB
9259# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9260# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9261# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9262# We want to ensure that TARGET libraries (which we know are built with
9263# gcc) are built with "-O2 -g", so include those options when setting
9264# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9265if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9266 if test "x${is_cross_compiler}" = xyes; then
9267 CFLAGS_FOR_TARGET="-g -O2"
9268 else
9269 CFLAGS_FOR_TARGET=$CFLAGS
9270 case " $CFLAGS " in
9271 *" -O2 "*) ;;
9272 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9273 esac
9274 case " $CFLAGS " in
9275 *" -g "* | *" -g3 "*) ;;
9276 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9277 esac
9278 fi
1c8bd6a3
PB
9279fi
9280
9281
9282if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9283 if test "x${is_cross_compiler}" = xyes; then
9284 CXXFLAGS_FOR_TARGET="-g -O2"
9285 else
9286 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9287 case " $CXXFLAGS " in
9288 *" -O2 "*) ;;
9289 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9290 esac
9291 case " $CXXFLAGS " in
9292 *" -g "* | *" -g3 "*) ;;
9293 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9294 esac
9295 fi
1c8bd6a3
PB
9296fi
9297
9298
6f57bdf6
DK
9299
9300
55ffb5ed
NN
9301# Handle --with-headers=XXX. If the value is not "yes", the contents of
9302# the named directory are copied to $(tooldir)/sys-include.
9303if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9304 if test x${is_cross_compiler} = xno ; then
9305 echo 1>&2 '***' --with-headers is only supported when cross compiling
9306 exit 1
9307 fi
9308 if test x"${with_headers}" != xyes ; then
c3a86da9 9309 x=${gcc_cv_tool_prefix}
1c710c3c 9310 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
9311 fi
9312fi
9313
9314# Handle --with-libs=XXX. If the value is not "yes", the contents of
9315# the name directories are copied to $(tooldir)/lib. Multiple directories
9316# are permitted.
9317if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9318 if test x${is_cross_compiler} = xno ; then
9319 echo 1>&2 '***' --with-libs is only supported when cross compiling
9320 exit 1
9321 fi
9322 if test x"${with_libs}" != xyes ; then
9323 # Copy the libraries in reverse order, so that files in the first named
9324 # library override files in subsequent libraries.
c3a86da9 9325 x=${gcc_cv_tool_prefix}
55ffb5ed 9326 for l in ${with_libs}; do
1c710c3c 9327 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
9328 done
9329 fi
9330fi
9331
d7f09764 9332# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
9333#
9334# This is done by determining whether or not the appropriate directory
9335# is available, and by checking whether or not specific configurations
9336# have requested that this magic not happen.
1c710c3c
DJ
9337#
9338# The command line options always override the explicit settings in
6b1786aa 9339# configure.ac, and the settings in configure.ac override this magic.
e8b05380 9340#
1c710c3c 9341# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 9342# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
9343# --without-gnu-ld options for the configure script. Similarly, if
9344# the default is to use the included zlib and you don't want to do that,
9345# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
9346
9347if test x${use_gnu_as} = x &&
9348 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9349 with_gnu_as=yes
9350 extra_host_args="$extra_host_args --with-gnu-as"
9351fi
9352
9353if test x${use_gnu_ld} = x &&
5afab7ad 9354 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
9355 with_gnu_ld=yes
9356 extra_host_args="$extra_host_args --with-gnu-ld"
9357fi
9358
d7f09764
DN
9359if test x${use_included_zlib} = x &&
9360 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9361 :
9362else
9363 with_system_zlib=yes
9364 extra_host_args="$extra_host_args --with-system-zlib"
9365fi
9366
e8b05380
PB
9367# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9368# can detect this case.
9369
9370if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9371 with_newlib=yes
9372 extra_host_args="$extra_host_args --with-newlib"
9373fi
9374
55ffb5ed
NN
9375# Handle ${copy_dirs}
9376set fnord ${copy_dirs}
9377shift
9378while test $# != 0 ; do
9379 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9380 :
9381 else
9382 echo Copying $1 to $2
9383
9384 # Use the install script to create the directory and all required
9385 # parent directories.
9386 if test -d $2 ; then
9387 :
9388 else
9389 echo >config.temp
9390 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9391 fi
9392
9393 # Copy the directory, assuming we have tar.
9394 # FIXME: Should we use B in the second tar? Not all systems support it.
9395 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9396
9397 # It is the responsibility of the user to correctly adjust all
9398 # symlinks. If somebody can figure out how to handle them correctly
9399 # here, feel free to add the code.
9400
9401 echo $1 > $2/COPIED
9402 fi
9403 shift; shift
9404done
9405
e8b05380
PB
9406# Determine a target-dependent exec_prefix that the installed
9407# gcc will search in. Keep this list sorted by triplet, with
9408# the *-*-osname triplets last.
9409md_exec_prefix=
9410case "${target}" in
30b74385 9411 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
9412 md_exec_prefix=/dev/env/DJDIR/bin
9413 ;;
e8b05380 9414 *-*-hpux* | \
e8b05380 9415 *-*-nto-qnx* | \
6de66370 9416 *-*-solaris2*)
e8b05380
PB
9417 md_exec_prefix=/usr/ccs/bin
9418 ;;
9419esac
9420
671aa708
NN
9421extra_arflags_for_target=
9422extra_nmflags_for_target=
9423extra_ranlibflags_for_target=
9424target_makefile_frag=/dev/null
9425case "${target}" in
58e24147
AM
9426 spu-*-*)
9427 target_makefile_frag="config/mt-spu"
9428 ;;
d896cc4d 9429 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
9430 target_makefile_frag="config/mt-sde"
9431 ;;
1ec3b87b
RS
9432 mipsisa*-*-elfoabi*)
9433 target_makefile_frag="config/mt-mips-elfoabi"
9434 ;;
08d0963a
RS
9435 mips*-*-*linux* | mips*-*-gnu*)
9436 target_makefile_frag="config/mt-mips-gnu"
9437 ;;
707f1839
SL
9438 nios2-*-elf*)
9439 target_makefile_frag="config/mt-nios2-elf"
9440 ;;
76052545
EB
9441 *-*-linux-android*)
9442 target_makefile_frag="config/mt-android"
9443 ;;
416ac4d4 9444 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 9445 target_makefile_frag="config/mt-gnu"
671aa708
NN
9446 ;;
9447 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 9448 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
9449 # commands to handle both 32-bit and 64-bit objects. These flags are
9450 # harmless if we're using GNU nm or ar.
9451 extra_arflags_for_target=" -X32_64"
9452 extra_nmflags_for_target=" -B -X32_64"
9453 ;;
671aa708
NN
9454esac
9455
9456alphaieee_frag=/dev/null
9457case $target in
9458 alpha*-*-*)
9459 # This just makes sure to use the -mieee option to build target libs.
9460 # This should probably be set individually by each library.
9461 alphaieee_frag="config/mt-alphaieee"
9462 ;;
9463esac
9464
9465# If --enable-target-optspace always use -Os instead of -O2 to build
9466# the target libraries, similarly if it is not specified, use -Os
9467# on selected platforms.
9468ospace_frag=/dev/null
9469case "${enable_target_optspace}:${target}" in
9470 yes:*)
9471 ospace_frag="config/mt-ospace"
9472 ;;
9473 :d30v-*)
9474 ospace_frag="config/mt-d30v"
9475 ;;
d9063947 9476 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
9477 ospace_frag="config/mt-ospace"
9478 ;;
9479 no:* | :*)
9480 ;;
9481 *)
9482 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9483 ;;
9484esac
9485
671aa708
NN
9486# Some systems (e.g., one of the i386-aix systems the gas testers are
9487# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 9488tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
9489build_tooldir=${tooldir}
9490
671aa708
NN
9491# Create a .gdbinit file which runs the one in srcdir
9492# and tells GDB to look there for source files.
9493
9494if test -r ${srcdir}/.gdbinit ; then
9495 case ${srcdir} in
9496 .) ;;
9497 *) cat > ./.gdbinit <<EOF
9498# ${NO_EDIT}
9499dir ${srcdir}
9500dir .
9501source ${srcdir}/.gdbinit
9502EOF
9503 ;;
9504 esac
9505fi
9506
671aa708
NN
9507# Make sure that the compiler is able to generate an executable. If it
9508# can't, we are probably in trouble. We don't care whether we can run the
9509# executable--we might be using a cross compiler--we only care whether it
9510# can be created. At this point the main configure script has set CC.
9511we_are_ok=no
9512echo "int main () { return 0; }" > conftest.c
9513${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9514if test $? = 0 ; then
9515 if test -s conftest || test -s conftest.exe ; then
9516 we_are_ok=yes
9517 fi
1c710c3c 9518fi
671aa708
NN
9519case $we_are_ok in
9520 no)
9521 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9522 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9523 rm -f conftest*
9524 exit 1
9525 ;;
9526esac
9527rm -f conftest*
9528
d89f0ad6 9529# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
9530case "${host}" in
9531 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 9532 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 9533 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
9534 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9535esac
9536
d89f0ad6
AL
9537# On systems where the dynamic library environment variable is PATH,
9538# gcc/ will put dynamic libraries into a subdirectory to avoid adding
9539# built executables to PATH.
9540if test "$RPATH_ENVVAR" = PATH; then
9541 GCC_SHLIB_SUBDIR=/shlib
9542else
9543 GCC_SHLIB_SUBDIR=
9544fi
9545
beeda1d9
JJ
9546# Adjust the toplevel makefile according to whether bootstrap was selected.
9547case $enable_bootstrap in
9548 yes)
9549 bootstrap_suffix=bootstrap
9550 BUILD_CONFIG=bootstrap-debug
9551 ;;
9552 no)
9553 bootstrap_suffix=no-bootstrap
9554 BUILD_CONFIG=
9555 ;;
9556esac
9557
9558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9559$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9560
9561
9562# Check whether --with-build-config was given.
9563if test "${with_build_config+set}" = set; then :
9564 withval=$with_build_config; case $with_build_config in
9565 yes) with_build_config= ;;
9566 no) with_build_config= BUILD_CONFIG= ;;
9567 esac
9568fi
9569
9570
9571if test "x${with_build_config}" != x; then
9572 BUILD_CONFIG=$with_build_config
9573else
9574 case $BUILD_CONFIG in
9575 bootstrap-debug)
9576 if echo "int f (void) { return 0; }" > conftest.c &&
9577 ${CC} -c conftest.c &&
9578 mv conftest.o conftest.o.g0 &&
9579 ${CC} -c -g conftest.c &&
9580 mv conftest.o conftest.o.g &&
9581 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9582 :
9583 else
9584 BUILD_CONFIG=
9585 fi
9586 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9587 ;;
9588 esac
9589fi
9590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9591$as_echo "$BUILD_CONFIG" >&6; }
9592
9593
9594# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9596$as_echo_n "checking for --enable-vtable-verify... " >&6; }
9597# Check whether --enable-vtable-verify was given.
9598if test "${enable_vtable_verify+set}" = set; then :
9599 enableval=$enable_vtable_verify; case "$enableval" in
9600 yes) enable_vtable_verify=yes ;;
9601 no) enable_vtable_verify=no ;;
9602 *) enable_vtable_verify=no;;
9603 esac
9604else
9605 enable_vtable_verify=no
9606fi
9607
9608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9609$as_echo "$enable_vtable_verify" >&6; }
9610
671aa708
NN
9611# Record target_configdirs and the configure arguments for target and
9612# build configuration in Makefile.
9613target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 9614build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 9615bootstrap_fixincludes=no
671aa708 9616
ad1e5170
JR
9617# If we are building libgomp, bootstrap it.
9618if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9619 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9620fi
9621
beeda1d9
JJ
9622# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9623# or bootstrap-ubsan, bootstrap it.
9624if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9625 case "$BUILD_CONFIG" in
170e618e 9626 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
beeda1d9 9627 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 9628 bootstrap_fixincludes=yes
beeda1d9
JJ
9629 ;;
9630 esac
ac8701fe
L
9631fi
9632
beeda1d9
JJ
9633# If we are building libvtv and --enable-vtable-verify, bootstrap it.
9634if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9635 test "$enable_vtable_verify" != no; then
2077db1b
CT
9636 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9637fi
9638
5fee5ec3
IB
9639# If we are building libatomic and the list of enabled languages includes the
9640# D frontend, bootstrap it.
9641if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9642 case ,${enable_languages}, in
9643 *,d,*)
9644 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9645 ;;
9646 esac
9647fi
9648
671aa708
NN
9649# Determine whether gdb needs tk/tcl or not.
9650# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9651# and in that case we want gdb to be built without tk. Ugh!
9652# In fact I believe gdb is the *only* package directly dependent on tk,
9653# so we should be able to put the 'maybe's in unconditionally and
9654# leave out the maybe dependencies when enable_gdbtk is false. I'm not
9655# 100% sure that that's safe though.
e914a571 9656
b4f96efe 9657gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
9658case "$enable_gdbtk" in
9659 no)
9660 GDB_TK="" ;;
e914a571
AC
9661 yes)
9662 GDB_TK="${gdb_tk}" ;;
671aa708 9663 *)
e914a571
AC
9664 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9665 # distro. Eventually someone will fix this and move Insight, nee
9666 # gdbtk to a separate directory.
9667 if test -d ${srcdir}/gdb/gdbtk ; then
9668 GDB_TK="${gdb_tk}"
9669 else
9670 GDB_TK=""
9671 fi
9672 ;;
671aa708 9673esac
ef9db8d5
DJ
9674CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9675INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 9676
f9d09df0
TT
9677# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9678# else does, only include them if one of these is built. The Makefile
9679# provides the ordering, so it's enough here to add to the list.
9680case " ${configdirs} " in
9681 *\ gdb\ *)
9682 configdirs="${configdirs} gnulib gdbsupport"
9683 ;;
9684 *\ gdbserver\ *)
9685 configdirs="${configdirs} gnulib gdbsupport"
9686 ;;
f14c9bd4
MF
9687 *\ sim\ *)
9688 configdirs="${configdirs} gnulib"
9689 ;;
f9d09df0 9690esac
98e5be21 9691
60975492 9692# Strip out unwanted targets.
8b87bb96
NN
9693
9694# While at that, we remove Makefiles if we were started for recursive
9695# configuration, so that the top-level Makefile reconfigures them,
9696# like we used to do when configure itself was recursive.
8b87bb96 9697
3e54529c
RW
9698# Loop over modules. We used to use the "$extrasub" feature from Autoconf
9699# but now we're fixing up the Makefile ourselves with the additional
9700# commands passed to AC_CONFIG_FILES. Use separate variables
9701# extrasub-{build,host,target} not because there is any reason to split
9702# the substitutions up that way, but only to remain below the limit of
9703# 99 commands in a script, for HP-UX sed.
da34ca3f
AO
9704
9705# Do not nest @if/@endif or @unless/@endunless pairs, because
9706# configure will not warn you at all.
8b87bb96 9707
79cd2b23
RW
9708case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9709 yes:yes:*\ gold\ *:*,c++,*) ;;
9710 yes:yes:*\ gold\ *:*)
22e05272 9711 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
79cd2b23
RW
9712 ;;
9713esac
9714
3e54529c 9715extrasub_build=
23f6b2f9 9716for module in ${build_configdirs} ; do
5607edfd
PB
9717 if test -z "${no_recursion}" \
9718 && test -f ${build_subdir}/${module}/Makefile; then
9719 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9720 rm -f ${build_subdir}/${module}/Makefile
9721 fi
3e54529c 9722 extrasub_build="$extrasub_build
5607edfd
PB
9723/^@if build-$module\$/d
9724/^@endif build-$module\$/d
da34ca3f 9725/^@unless build-$module\$/,/^@endunless build-$module\$/d
5607edfd 9726/^@if build-$module-$bootstrap_suffix\$/d
da34ca3f
AO
9727/^@endif build-$module-$bootstrap_suffix\$/d
9728/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
5607edfd 9729done
3e54529c 9730extrasub_host=
5607edfd 9731for module in ${configdirs} ; do
a6fbc1e2 9732 if test -z "${no_recursion}"; then
f063a9ed 9733 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
9734 if test -f ${file}; then
9735 echo 1>&2 "*** removing ${file} to force reconfigure"
9736 rm -f ${file}
9737 fi
9738 done
5607edfd 9739 fi
9e1c8fc1
JJ
9740 case ${module},${bootstrap_fixincludes} in
9741 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9742 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9743 esac
3e54529c 9744 extrasub_host="$extrasub_host
5607edfd
PB
9745/^@if $module\$/d
9746/^@endif $module\$/d
da34ca3f 9747/^@unless $module\$/,/^@endunless $module\$/d
9e1c8fc1 9748/^@if $module-$host_bootstrap_suffix\$/d
da34ca3f
AO
9749/^@endif $module-$host_bootstrap_suffix\$/d
9750/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
5607edfd 9751done
3e54529c 9752extrasub_target=
5607edfd
PB
9753for module in ${target_configdirs} ; do
9754 if test -z "${no_recursion}" \
9755 && test -f ${target_subdir}/${module}/Makefile; then
9756 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9757 rm -f ${target_subdir}/${module}/Makefile
9758 fi
00020c16
ILT
9759
9760 # We only bootstrap target libraries listed in bootstrap_target_libs.
9761 case $bootstrap_target_libs in
9762 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9763 *) target_bootstrap_suffix=no-bootstrap ;;
9764 esac
9765
3e54529c 9766 extrasub_target="$extrasub_target
5607edfd
PB
9767/^@if target-$module\$/d
9768/^@endif target-$module\$/d
da34ca3f 9769/^@unless target-$module\$/,/^@endunless target-$module\$/d
00020c16 9770/^@if target-$module-$target_bootstrap_suffix\$/d
da34ca3f
AO
9771/^@endif target-$module-$target_bootstrap_suffix\$/d
9772/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
9773done
9774
3e54529c
RW
9775# Do the final fixup along with target modules.
9776extrasub_target="$extrasub_target
da34ca3f
AO
9777/^@if /,/^@endif /d
9778/^@unless /d
9779/^@endunless /d"
671aa708
NN
9780
9781# Create the serialization dependencies. This uses a temporary file.
9782
5213506e
RW
9783# Check whether --enable-serial-configure was given.
9784if test "${enable_serial_configure+set}" = set; then :
9785 enableval=$enable_serial_configure;
9786fi
ade82b16
AO
9787
9788
bf1d3e81
NN
9789case ${enable_serial_configure} in
9790 yes)
9791 enable_serial_build_configure=yes
9792 enable_serial_host_configure=yes
9793 enable_serial_target_configure=yes
9794 ;;
9795esac
9796
671aa708
NN
9797# These force 'configure's to be done one at a time, to avoid problems
9798# with contention over a shared config.cache.
9799rm -f serdep.tmp
ade82b16 9800echo '# serdep.tmp' > serdep.tmp
671aa708 9801olditem=
bf1d3e81 9802test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
9803for item in ${build_configdirs} ; do
9804 case ${olditem} in
9805 "") ;;
ade82b16 9806 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
9807 esac
9808 olditem=${item}
9809done
9810olditem=
bf1d3e81 9811test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
9812for item in ${configdirs} ; do
9813 case ${olditem} in
9814 "") ;;
ade82b16 9815 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
9816 esac
9817 olditem=${item}
9818done
9819olditem=
bf1d3e81 9820test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
9821for item in ${target_configdirs} ; do
9822 case ${olditem} in
9823 "") ;;
ade82b16 9824 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
9825 esac
9826 olditem=${item}
9827done
9828serialization_dependencies=serdep.tmp
9829
9830
ade82b16 9831# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 9832# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
9833# might not want to pass down to subconfigures. The exception being
9834# --cache-file=/dev/null, which is used to turn off the use of cache
9835# files altogether, and which should be passed on to subconfigures.
9836# Also strip program-prefix, program-suffix, and program-transform-name,
9837# so that we can pass down a consistent program-transform-name.
1c710c3c 9838baseargs=
29a63921 9839tbaseargs=
1c710c3c
DJ
9840keep_next=no
9841skip_next=no
9842eval "set -- $ac_configure_args"
44bfc3ac
DJ
9843for ac_arg
9844do
1c710c3c
DJ
9845 if test X"$skip_next" = X"yes"; then
9846 skip_next=no
9847 continue
9848 fi
9849 if test X"$keep_next" = X"yes"; then
9850 case $ac_arg in
9851 *\'*)
9852 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9853 esac
9854 baseargs="$baseargs '$ac_arg'"
29a63921 9855 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
9856 keep_next=no
9857 continue
9858 fi
9859
9860 # Handle separated arguments. Based on the logic generated by
9861 # autoconf 2.59.
9862 case $ac_arg in
9863 *=* | --config-cache | -C | -disable-* | --disable-* \
9864 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9865 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9866 | -with-* | --with-* | -without-* | --without-* | --x)
9867 separate_arg=no
9868 ;;
9869 -*)
9870 separate_arg=yes
9871 ;;
9872 *)
9873 separate_arg=no
9874 ;;
9875 esac
9876
29a63921
AO
9877 skip_targ=no
9878 case $ac_arg in
9879
9880 --with-* | --without-*)
9881 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9882
9883 case $libopt in
9884 *[-_]include)
9885 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9886 ;;
9887 *[-_]lib)
9888 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9889 ;;
9890 *)
9891 lib=$libopt
9892 ;;
9893 esac
9894
9895
9896 case $lib in
4a9bb2aa 9897 mpc | mpfr | gmp | isl)
29a63921
AO
9898 # If we're processing --with-$lib, --with-$lib-include or
9899 # --with-$lib-lib, for one of the libs above, and target is
9900 # different from host, don't pass the current argument to any
9901 # target library's configure.
9902 if test x$is_cross_compiler = xyes; then
9903 skip_targ=yes
9904 fi
9905 ;;
9906 esac
9907 ;;
9908 esac
9909
1c710c3c 9910 case "$ac_arg" in
f1a036e4
NC
9911 --cache-file=/dev/null | \
9912 -cache-file=/dev/null )
9913 # Handled here to avoid the test to skip args below.
9914 baseargs="$baseargs '$ac_arg'"
29a63921 9915 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
9916 # Assert: $separate_arg should always be no.
9917 keep_next=$separate_arg
9918 ;;
1c710c3c
DJ
9919 --no*)
9920 continue
9921 ;;
9922 --c* | \
9923 --sr* | \
9924 --ho* | \
9925 --bu* | \
9926 --t* | \
9927 --program-* | \
9928 -cache_file* | \
9929 -srcdir* | \
9930 -host* | \
9931 -build* | \
9932 -target* | \
9933 -program-prefix* | \
9934 -program-suffix* | \
9935 -program-transform-name* )
9936 skip_next=$separate_arg
9937 continue
9938 ;;
9939 -*)
9940 # An option. Add it.
9941 case $ac_arg in
9942 *\'*)
9943 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9944 esac
9945 baseargs="$baseargs '$ac_arg'"
29a63921
AO
9946 if test X"$skip_targ" = Xno; then
9947 tbaseargs="$tbaseargs '$ac_arg'"
9948 fi
1c710c3c
DJ
9949 keep_next=$separate_arg
9950 ;;
9951 *)
9952 # Either a variable assignment, or a nonopt (triplet). Don't
9953 # pass it down; let the Makefile handle this.
9954 continue
9955 ;;
9956 esac
9957done
9958# Remove the initial space we just introduced and, as these will be
9959# expanded by make, quote '$'.
9960baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 9961
43bb47c2
DJ
9962# Add in --program-transform-name, after --program-prefix and
9963# --program-suffix have been applied to it. Autoconf has already
9964# doubled dollar signs and backslashes in program_transform_name; we want
9965# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 9966# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
9967# Also, because we want to override the logic in subdir configure scripts to
9968# choose program_transform_name, replace any s,x,x, with s,y,y,.
9969sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9970${program_transform_name}
9971EOF_SED
9972gcc_transform_name=`cat conftestsed.out`
9973rm -f conftestsed.out
9974baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 9975tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
9976if test "$silent" = yes; then
9977 baseargs="$baseargs --silent"
29a63921 9978 tbaseargs="$tbaseargs --silent"
d9acb717 9979fi
0115d4a3 9980baseargs="$baseargs --disable-option-checking"
29a63921 9981tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 9982
ffedf511
RW
9983# Record and document user additions to sub configure arguments.
9984
9985
9986
9987
671aa708
NN
9988# For the build-side libraries, we just need to pretend we're native,
9989# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
9990# desired. We can't even use the same cache file for all build-side
9991# libraries, as they're compiled differently; some with C, some with
9992# C++ or with different feature-enabling options.
9993build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
9994
9995# For host modules, accept cache file option, or specification as blank.
9996case "${cache_file}" in
9997"") # empty
9998 cache_file_option="" ;;
9999/* | [A-Za-z]:[\\/]* ) # absolute path
10000 cache_file_option="--cache-file=${cache_file}" ;;
10001*) # relative path
10002 cache_file_option="--cache-file=../${cache_file}" ;;
10003esac
10004
09438bde
NN
10005# Host dirs don't like to share a cache file either, horribly enough.
10006# This seems to be due to autoconf 2.5x stupidity.
ffedf511 10007host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 10008
29a63921 10009target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
10010
10011# Passing a --with-cross-host argument lets the target libraries know
10012# whether they are being built with a cross-compiler or being built
10013# native. However, it would be better to use other mechanisms to make the
10014# sorts of decisions they want to make on this basis. Please consider
10015# this option to be deprecated. FIXME.
10016if test x${is_cross_compiler} = xyes ; then
1c710c3c 10017 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
10018fi
10019
79e0604d
FXC
10020# Special user-friendly check for native x86_64-linux build, if
10021# multilib is not explicitly enabled.
10022case "$target:$have_compiler:$host:$target:$enable_multilib" in
10023 x86_64-*linux*:yes:$build:$build:)
e640447c 10024 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
10025 dev64=no
10026 echo "int main () { return 0; }" > conftest.c
10027 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10028 if test $? = 0 ; then
10029 if test -s conftest || test -s conftest.exe ; then
10030 dev64=yes
10031 fi
10032 fi
10033 rm -f conftest*
10034 if test x${dev64} != xyes ; then
22e05272 10035 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
10036 fi
10037 ;;
10038esac
10039
dc683a3f
RW
10040# Default to --enable-multilib.
10041if test x${enable_multilib} = x ; then
671aa708 10042 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 10043fi
671aa708
NN
10044
10045# Pass --with-newlib if appropriate. Note that target_configdirs has
10046# changed from the earlier setting of with_newlib.
10047if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10048 target_configargs="--with-newlib ${target_configargs}"
10049fi
10050
6b9eb62c
NN
10051# Different target subdirs use different values of certain variables
10052# (notably CXX). Worse, multilibs use *lots* of different values.
10053# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10054# it doesn't automatically accept command-line overrides of them.
10055# This means it's not safe for target subdirs to share a cache file,
10056# which is disgusting, but there you have it. Hopefully this can be
10057# fixed in future. It's still worthwhile to use a cache file for each
10058# directory. I think.
10059
bebcd931
MS
10060# Pass the appropriate --build, --host, --target and --cache-file arguments.
10061# We need to pass --target, as newer autoconf's requires consistency
10062# for target_alias and gcc doesn't manage it consistently.
e69bf64b 10063target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 10064
671aa708
NN
10065FLAGS_FOR_TARGET=
10066case " $target_configdirs " in
10067 *" newlib "*)
10068 case " $target_configargs " in
10069 *" --with-newlib "*)
10070 case "$target" in
5d571eaa 10071 *-cygwin*)
443e6238 10072 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 10073 ;;
671aa708
NN
10074 esac
10075
10076 # If we're not building GCC, don't discard standard headers.
10077 if test -d ${srcdir}/gcc; then
10078 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10079
10080 if test "${build}" != "${host}"; then
10081 # On Canadian crosses, CC_FOR_TARGET will have already been set
10082 # by `configure', so we won't have an opportunity to add -Bgcc/
10083 # to it. This is right: we don't want to search that directory
10084 # for binaries, but we want the header files in there, so add
10085 # them explicitly.
0463992b 10086 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
10087
10088 # Someone might think of using the pre-installed headers on
10089 # Canadian crosses, in case the installed compiler is not fully
10090 # compatible with the compiler being built. In this case, it
10091 # would be better to flag an error than risking having
10092 # incompatible object files being constructed. We can't
10093 # guarantee that an error will be flagged, but let's hope the
10094 # compiler will do it, when presented with incompatible header
10095 # files.
10096 fi
10097 fi
10098
10099 case "${target}-${is_cross_compiler}" in
f2a0e225 10100 i[3456789]86-*-linux*-no)
671aa708
NN
10101 # Here host == target, so we don't need to build gcc,
10102 # so we don't want to discard standard headers.
10103 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10104 ;;
10105 *)
10106 # If we're building newlib, use its generic headers last, but search
10107 # for any libc-related directories first (so make it the last -B
10108 # switch).
10109 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
10110
10111 # If we're building libgloss, find the startup file, simulator library
10112 # and linker script.
10113 case " $target_configdirs " in
10114 *" libgloss "*)
10115 # Look for startup file, simulator library and maybe linker script.
10116 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10117 # Look for libnosys.a in case the target needs it.
10118 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10119 # Most targets have the linker script in the source directory.
10120 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10121 ;;
10122 esac
671aa708
NN
10123 ;;
10124 esac
10125 ;;
10126 esac
10127 ;;
10128esac
5d571eaa 10129
b91f0a41 10130case "$target" in
5d571eaa
OS
10131 x86_64-*mingw* | *-w64-mingw*)
10132 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10133 # however, use a symlink named 'mingw' in ${prefix} .
10134 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10135 ;;
10136 *-mingw*)
10137 # MinGW can't be handled as Cygwin above since it does not use newlib.
10138 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'
10139 ;;
b91f0a41 10140esac
671aa708 10141
6691a79e
ME
10142# Allow the user to override the flags for
10143# our build compiler if desired.
f019adc1
MF
10144if test x"${build}" = x"${host}" ; then
10145 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
84401ce5 10146 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
f019adc1
MF
10147 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10148 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10149fi
6691a79e 10150
671aa708
NN
10151# On Canadian crosses, we'll be searching the right directories for
10152# the previously-installed cross compiler, so don't bother to add
10153# flags for directories within the install tree of the compiler
10154# being built; programs in there won't even run.
10155if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10156 # Search for pre-installed headers if nothing else fits.
9124bc53 10157 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
10158fi
10159
10160if test "x${use_gnu_ld}" = x &&
10161 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10162 # Arrange for us to find uninstalled linker scripts.
215c351a 10163 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
10164fi
10165
e88a2c09
DD
10166# Search for other target-specific linker scripts and such.
10167case "${target}" in
3e19841a
PB
10168 mep*)
10169 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10170 ;;
e88a2c09
DD
10171esac
10172
671aa708 10173# Makefile fragments.
7b61653a
PE
10174for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10175do
10176 eval fragval=\$$frag
10177 if test $fragval != /dev/null; then
10178 eval $frag=${srcdir}/$fragval
10179 fi
10180done
671aa708
NN
10181
10182
10183
10184
10185
10186# Miscellanea: directories, flags, etc.
10187
10188
10189
10190
10191
10192
10193
d89f0ad6 10194
23f6b2f9 10195# Build module lists & subconfigure args.
671aa708
NN
10196
10197
10198
2abefe3d
PB
10199# Host module lists & subconfigure args.
10200
10201
10202
aae29963 10203
2abefe3d
PB
10204# Target module lists & subconfigure args.
10205
10206
10207
10208# Build tools.
10209
10210
10211
0999159b
PB
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
b4c522fa 10225
3b5e8ee4 10226
a1d2b162
IS
10227
10228
2abefe3d
PB
10229# Generate default definitions for YACC, M4, LEX and other programs that run
10230# on the build machine. These are used if the Makefile can't locate these
10231# programs in objdir.
10232MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10233
10234for ac_prog in 'bison -y' byacc yacc
10235do
1c710c3c 10236 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10237set dummy $ac_prog; ac_word=$2
5213506e
RW
10238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10239$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10240if ${ac_cv_prog_YACC+:} false; then :
5213506e 10241 $as_echo_n "(cached) " >&6
2abefe3d
PB
10242else
10243 if test -n "$YACC"; then
10244 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10245else
1c710c3c
DJ
10246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10247for as_dir in $PATH
10248do
10249 IFS=$as_save_IFS
10250 test -z "$as_dir" && as_dir=.
5213506e 10251 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10253 ac_cv_prog_YACC="$ac_prog"
5213506e 10254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10255 break 2
10256 fi
10257done
5213506e
RW
10258 done
10259IFS=$as_save_IFS
1c710c3c 10260
2abefe3d
PB
10261fi
10262fi
1c710c3c 10263YACC=$ac_cv_prog_YACC
2abefe3d 10264if test -n "$YACC"; then
5213506e
RW
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10266$as_echo "$YACC" >&6; }
2abefe3d 10267else
5213506e
RW
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269$as_echo "no" >&6; }
2abefe3d
PB
10270fi
10271
5213506e 10272
1c710c3c 10273 test -n "$YACC" && break
2abefe3d
PB
10274done
10275test -n "$YACC" || YACC="$MISSING bison -y"
10276
10277case " $build_configdirs " in
10278 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
10279esac
10280
10281for ac_prog in bison
10282do
1c710c3c 10283 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10284set dummy $ac_prog; ac_word=$2
5213506e
RW
10285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10286$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10287if ${ac_cv_prog_BISON+:} false; then :
5213506e 10288 $as_echo_n "(cached) " >&6
2abefe3d
PB
10289else
10290 if test -n "$BISON"; then
10291 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10292else
1c710c3c
DJ
10293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10294for as_dir in $PATH
10295do
10296 IFS=$as_save_IFS
10297 test -z "$as_dir" && as_dir=.
5213506e 10298 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10300 ac_cv_prog_BISON="$ac_prog"
5213506e 10301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10302 break 2
10303 fi
10304done
5213506e
RW
10305 done
10306IFS=$as_save_IFS
1c710c3c 10307
2abefe3d
PB
10308fi
10309fi
1c710c3c 10310BISON=$ac_cv_prog_BISON
2abefe3d 10311if test -n "$BISON"; then
5213506e
RW
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10313$as_echo "$BISON" >&6; }
2abefe3d 10314else
5213506e
RW
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10316$as_echo "no" >&6; }
2abefe3d
PB
10317fi
10318
5213506e 10319
1c710c3c 10320 test -n "$BISON" && break
2abefe3d
PB
10321done
10322test -n "$BISON" || BISON="$MISSING bison"
10323
10324case " $build_configdirs " in
10325 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10326esac
10327
10328for ac_prog in gm4 gnum4 m4
10329do
1c710c3c 10330 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10331set dummy $ac_prog; ac_word=$2
5213506e
RW
10332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10333$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10334if ${ac_cv_prog_M4+:} false; then :
5213506e 10335 $as_echo_n "(cached) " >&6
2abefe3d
PB
10336else
10337 if test -n "$M4"; then
10338 ac_cv_prog_M4="$M4" # Let the user override the test.
10339else
1c710c3c
DJ
10340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10341for as_dir in $PATH
10342do
10343 IFS=$as_save_IFS
10344 test -z "$as_dir" && as_dir=.
5213506e 10345 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10347 ac_cv_prog_M4="$ac_prog"
5213506e 10348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10349 break 2
10350 fi
10351done
5213506e
RW
10352 done
10353IFS=$as_save_IFS
1c710c3c 10354
2abefe3d
PB
10355fi
10356fi
1c710c3c 10357M4=$ac_cv_prog_M4
2abefe3d 10358if test -n "$M4"; then
5213506e
RW
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10360$as_echo "$M4" >&6; }
2abefe3d 10361else
5213506e
RW
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10363$as_echo "no" >&6; }
2abefe3d
PB
10364fi
10365
5213506e 10366
1c710c3c 10367 test -n "$M4" && break
2abefe3d
PB
10368done
10369test -n "$M4" || M4="$MISSING m4"
10370
10371case " $build_configdirs " in
10372 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10373esac
10374
10375for ac_prog in flex lex
10376do
1c710c3c 10377 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10378set dummy $ac_prog; ac_word=$2
5213506e
RW
10379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10380$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10381if ${ac_cv_prog_LEX+:} false; then :
5213506e 10382 $as_echo_n "(cached) " >&6
2abefe3d
PB
10383else
10384 if test -n "$LEX"; then
10385 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10386else
1c710c3c
DJ
10387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10388for as_dir in $PATH
10389do
10390 IFS=$as_save_IFS
10391 test -z "$as_dir" && as_dir=.
5213506e 10392 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10394 ac_cv_prog_LEX="$ac_prog"
5213506e 10395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10396 break 2
10397 fi
10398done
5213506e
RW
10399 done
10400IFS=$as_save_IFS
1c710c3c 10401
2abefe3d
PB
10402fi
10403fi
1c710c3c 10404LEX=$ac_cv_prog_LEX
2abefe3d 10405if test -n "$LEX"; then
5213506e
RW
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10407$as_echo "$LEX" >&6; }
2abefe3d 10408else
5213506e
RW
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10410$as_echo "no" >&6; }
2abefe3d
PB
10411fi
10412
5213506e 10413
1c710c3c 10414 test -n "$LEX" && break
2abefe3d
PB
10415done
10416test -n "$LEX" || LEX="$MISSING flex"
10417
10418case " $build_configdirs " in
10419 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10420 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10421esac
10422
10423for ac_prog in flex
10424do
1c710c3c 10425 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10426set dummy $ac_prog; ac_word=$2
5213506e
RW
10427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10428$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10429if ${ac_cv_prog_FLEX+:} false; then :
5213506e 10430 $as_echo_n "(cached) " >&6
2abefe3d
PB
10431else
10432 if test -n "$FLEX"; then
10433 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10434else
1c710c3c
DJ
10435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436for as_dir in $PATH
10437do
10438 IFS=$as_save_IFS
10439 test -z "$as_dir" && as_dir=.
5213506e 10440 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10442 ac_cv_prog_FLEX="$ac_prog"
5213506e 10443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10444 break 2
10445 fi
10446done
5213506e
RW
10447 done
10448IFS=$as_save_IFS
1c710c3c 10449
2abefe3d
PB
10450fi
10451fi
1c710c3c 10452FLEX=$ac_cv_prog_FLEX
2abefe3d 10453if test -n "$FLEX"; then
5213506e
RW
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10455$as_echo "$FLEX" >&6; }
2abefe3d 10456else
5213506e
RW
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458$as_echo "no" >&6; }
2abefe3d
PB
10459fi
10460
5213506e 10461
1c710c3c 10462 test -n "$FLEX" && break
2abefe3d
PB
10463done
10464test -n "$FLEX" || FLEX="$MISSING flex"
10465
10466case " $build_configdirs " in
10467 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10468esac
10469
10470for ac_prog in makeinfo
10471do
1c710c3c 10472 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10473set dummy $ac_prog; ac_word=$2
5213506e
RW
10474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10475$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10476if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 10477 $as_echo_n "(cached) " >&6
2abefe3d
PB
10478else
10479 if test -n "$MAKEINFO"; then
10480 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10481else
1c710c3c
DJ
10482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10483for as_dir in $PATH
10484do
10485 IFS=$as_save_IFS
10486 test -z "$as_dir" && as_dir=.
5213506e 10487 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10489 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 10490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10491 break 2
10492 fi
10493done
5213506e
RW
10494 done
10495IFS=$as_save_IFS
1c710c3c 10496
2abefe3d
PB
10497fi
10498fi
1c710c3c 10499MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 10500if test -n "$MAKEINFO"; then
5213506e
RW
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10502$as_echo "$MAKEINFO" >&6; }
2abefe3d 10503else
5213506e
RW
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505$as_echo "no" >&6; }
2abefe3d
PB
10506fi
10507
5213506e 10508
1c710c3c 10509 test -n "$MAKEINFO" && break
2abefe3d
PB
10510done
10511test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10512
10513case " $build_configdirs " in
10514 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10515 *)
10516
d18ff35a 10517 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
10518 # higher, else we use the "missing" dummy.
10519 if ${MAKEINFO} --version \
d18ff35a 10520 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
10521 :
10522 else
10523 MAKEINFO="$MISSING makeinfo"
10524 fi
10525 ;;
10526
10527esac
671aa708 10528
2abefe3d 10529# FIXME: expect and dejagnu may become build tools?
671aa708 10530
2abefe3d
PB
10531for ac_prog in expect
10532do
1c710c3c 10533 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10534set dummy $ac_prog; ac_word=$2
5213506e
RW
10535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10536$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10537if ${ac_cv_prog_EXPECT+:} false; then :
5213506e 10538 $as_echo_n "(cached) " >&6
2abefe3d
PB
10539else
10540 if test -n "$EXPECT"; then
10541 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10542else
1c710c3c
DJ
10543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544for as_dir in $PATH
10545do
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
5213506e 10548 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10550 ac_cv_prog_EXPECT="$ac_prog"
5213506e 10551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10552 break 2
10553 fi
10554done
5213506e
RW
10555 done
10556IFS=$as_save_IFS
1c710c3c 10557
2abefe3d
PB
10558fi
10559fi
1c710c3c 10560EXPECT=$ac_cv_prog_EXPECT
2abefe3d 10561if test -n "$EXPECT"; then
5213506e
RW
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10563$as_echo "$EXPECT" >&6; }
2abefe3d 10564else
5213506e
RW
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566$as_echo "no" >&6; }
2abefe3d 10567fi
671aa708 10568
5213506e 10569
1c710c3c 10570 test -n "$EXPECT" && break
2abefe3d
PB
10571done
10572test -n "$EXPECT" || EXPECT="expect"
671aa708 10573
2abefe3d
PB
10574case " $configdirs " in
10575 *" expect "*)
10576 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10577 ;;
10578esac
671aa708 10579
2abefe3d
PB
10580for ac_prog in runtest
10581do
1c710c3c 10582 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10583set dummy $ac_prog; ac_word=$2
5213506e
RW
10584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10585$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10586if ${ac_cv_prog_RUNTEST+:} false; then :
5213506e 10587 $as_echo_n "(cached) " >&6
2abefe3d
PB
10588else
10589 if test -n "$RUNTEST"; then
10590 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 10591else
1c710c3c
DJ
10592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593for as_dir in $PATH
10594do
10595 IFS=$as_save_IFS
10596 test -z "$as_dir" && as_dir=.
5213506e 10597 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10599 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 10600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10601 break 2
10602 fi
10603done
5213506e
RW
10604 done
10605IFS=$as_save_IFS
1c710c3c 10606
2abefe3d
PB
10607fi
10608fi
1c710c3c 10609RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 10610if test -n "$RUNTEST"; then
5213506e
RW
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10612$as_echo "$RUNTEST" >&6; }
2abefe3d 10613else
5213506e
RW
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615$as_echo "no" >&6; }
2abefe3d 10616fi
671aa708 10617
5213506e 10618
1c710c3c 10619 test -n "$RUNTEST" && break
2abefe3d
PB
10620done
10621test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 10622
2abefe3d
PB
10623case " $configdirs " in
10624 *" dejagnu "*)
c394e891 10625 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
10626 ;;
10627esac
671aa708
NN
10628
10629
671aa708 10630# Host tools.
ca9f4b81
AO
10631ncn_tool_prefix=
10632test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10633ncn_target_tool_prefix=
10634test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10635
278a7a38
AO
10636
10637
10638if test -n "$AR"; then
10639 ac_cv_prog_AR=$AR
10640elif test -n "$ac_cv_prog_AR"; then
10641 AR=$ac_cv_prog_AR
10642fi
10643
10644if test -n "$ac_cv_prog_AR"; then
10645 for ncn_progname in ar; do
10646 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10647set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10649$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10650if ${ac_cv_prog_AR+:} false; then :
5213506e 10651 $as_echo_n "(cached) " >&6
278a7a38
AO
10652else
10653 if test -n "$AR"; then
10654 ac_cv_prog_AR="$AR" # Let the user override the test.
10655else
10656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10657for as_dir in $PATH
10658do
10659 IFS=$as_save_IFS
10660 test -z "$as_dir" && as_dir=.
5213506e 10661 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10663 ac_cv_prog_AR="${ncn_progname}"
5213506e 10664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10665 break 2
10666 fi
10667done
5213506e
RW
10668 done
10669IFS=$as_save_IFS
278a7a38
AO
10670
10671fi
10672fi
10673AR=$ac_cv_prog_AR
10674if test -n "$AR"; then
5213506e
RW
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10676$as_echo "$AR" >&6; }
278a7a38 10677else
5213506e
RW
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679$as_echo "no" >&6; }
278a7a38
AO
10680fi
10681
5213506e 10682
278a7a38
AO
10683 done
10684fi
10685
10686for ncn_progname in ar; do
2693c0b0
PB
10687 if test -n "$ncn_tool_prefix"; then
10688 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10689set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10691$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10692if ${ac_cv_prog_AR+:} false; then :
5213506e 10693 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10694else
10695 if test -n "$AR"; then
10696 ac_cv_prog_AR="$AR" # Let the user override the test.
10697else
1c710c3c
DJ
10698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10699for as_dir in $PATH
10700do
10701 IFS=$as_save_IFS
10702 test -z "$as_dir" && as_dir=.
5213506e 10703 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10705 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 10706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10707 break 2
10708 fi
10709done
5213506e
RW
10710 done
10711IFS=$as_save_IFS
1c710c3c 10712
ca9f4b81
AO
10713fi
10714fi
1c710c3c 10715AR=$ac_cv_prog_AR
ca9f4b81 10716if test -n "$AR"; then
5213506e
RW
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10718$as_echo "$AR" >&6; }
ca9f4b81 10719else
5213506e
RW
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10721$as_echo "no" >&6; }
ca9f4b81
AO
10722fi
10723
5213506e 10724
2693c0b0
PB
10725 fi
10726 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10727 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10728set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10730$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10731if ${ac_cv_prog_AR+:} false; then :
5213506e 10732 $as_echo_n "(cached) " >&6
ca9f4b81 10733else
2693c0b0 10734 if test -n "$AR"; then
af71363e
AS
10735 ac_cv_prog_AR="$AR" # Let the user override the test.
10736else
1c710c3c
DJ
10737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10738for as_dir in $PATH
10739do
10740 IFS=$as_save_IFS
10741 test -z "$as_dir" && as_dir=.
5213506e 10742 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10744 ac_cv_prog_AR="${ncn_progname}"
5213506e 10745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10746 break 2
10747 fi
10748done
5213506e
RW
10749 done
10750IFS=$as_save_IFS
1c710c3c 10751
ca9f4b81
AO
10752fi
10753fi
1c710c3c 10754AR=$ac_cv_prog_AR
2693c0b0 10755if test -n "$AR"; then
5213506e
RW
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10757$as_echo "$AR" >&6; }
ca9f4b81 10758else
5213506e
RW
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10760$as_echo "no" >&6; }
ca9f4b81 10761fi
1c710c3c 10762
5213506e 10763
2693c0b0
PB
10764 fi
10765 test -n "$ac_cv_prog_AR" && break
10766done
10767
10768if test -z "$ac_cv_prog_AR" ; then
10769 set dummy ar
10770 if test $build = $host ; then
10771 AR="$2"
ca9f4b81 10772 else
2693c0b0 10773 AR="${ncn_tool_prefix}$2"
ca9f4b81 10774 fi
ca9f4b81
AO
10775fi
10776
278a7a38
AO
10777
10778
10779if test -n "$AS"; then
10780 ac_cv_prog_AS=$AS
10781elif test -n "$ac_cv_prog_AS"; then
10782 AS=$ac_cv_prog_AS
10783fi
10784
10785if test -n "$ac_cv_prog_AS"; then
10786 for ncn_progname in as; do
10787 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10788set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10790$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10791if ${ac_cv_prog_AS+:} false; then :
5213506e 10792 $as_echo_n "(cached) " >&6
278a7a38
AO
10793else
10794 if test -n "$AS"; then
10795 ac_cv_prog_AS="$AS" # Let the user override the test.
10796else
10797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10798for as_dir in $PATH
10799do
10800 IFS=$as_save_IFS
10801 test -z "$as_dir" && as_dir=.
5213506e 10802 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10804 ac_cv_prog_AS="${ncn_progname}"
5213506e 10805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10806 break 2
10807 fi
10808done
5213506e
RW
10809 done
10810IFS=$as_save_IFS
278a7a38
AO
10811
10812fi
10813fi
10814AS=$ac_cv_prog_AS
10815if test -n "$AS"; then
5213506e
RW
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10817$as_echo "$AS" >&6; }
278a7a38 10818else
5213506e
RW
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820$as_echo "no" >&6; }
278a7a38
AO
10821fi
10822
5213506e 10823
278a7a38
AO
10824 done
10825fi
10826
10827for ncn_progname in as; do
2693c0b0
PB
10828 if test -n "$ncn_tool_prefix"; then
10829 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10830set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10832$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10833if ${ac_cv_prog_AS+:} false; then :
5213506e 10834 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10835else
10836 if test -n "$AS"; then
10837 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 10838else
1c710c3c
DJ
10839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840for as_dir in $PATH
10841do
10842 IFS=$as_save_IFS
10843 test -z "$as_dir" && as_dir=.
5213506e 10844 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10846 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 10847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10848 break 2
10849 fi
10850done
5213506e
RW
10851 done
10852IFS=$as_save_IFS
1c710c3c 10853
ca9f4b81
AO
10854fi
10855fi
1c710c3c 10856AS=$ac_cv_prog_AS
ca9f4b81 10857if test -n "$AS"; then
5213506e
RW
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10859$as_echo "$AS" >&6; }
ca9f4b81 10860else
5213506e
RW
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862$as_echo "no" >&6; }
ca9f4b81
AO
10863fi
10864
5213506e 10865
2693c0b0
PB
10866 fi
10867 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10868 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10869set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10871$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10872if ${ac_cv_prog_AS+:} false; then :
5213506e 10873 $as_echo_n "(cached) " >&6
ca9f4b81 10874else
2693c0b0
PB
10875 if test -n "$AS"; then
10876 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 10877else
1c710c3c
DJ
10878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10879for as_dir in $PATH
10880do
10881 IFS=$as_save_IFS
10882 test -z "$as_dir" && as_dir=.
5213506e 10883 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10885 ac_cv_prog_AS="${ncn_progname}"
5213506e 10886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10887 break 2
10888 fi
10889done
5213506e
RW
10890 done
10891IFS=$as_save_IFS
1c710c3c 10892
ca9f4b81
AO
10893fi
10894fi
1c710c3c 10895AS=$ac_cv_prog_AS
2693c0b0 10896if test -n "$AS"; then
5213506e
RW
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10898$as_echo "$AS" >&6; }
ca9f4b81 10899else
5213506e
RW
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901$as_echo "no" >&6; }
ca9f4b81 10902fi
1c710c3c 10903
5213506e 10904
2693c0b0
PB
10905 fi
10906 test -n "$ac_cv_prog_AS" && break
10907done
10908
10909if test -z "$ac_cv_prog_AS" ; then
10910 set dummy as
10911 if test $build = $host ; then
10912 AS="$2"
ca9f4b81 10913 else
2693c0b0 10914 AS="${ncn_tool_prefix}$2"
ca9f4b81 10915 fi
ca9f4b81
AO
10916fi
10917
278a7a38
AO
10918
10919
10920if test -n "$DLLTOOL"; then
10921 ac_cv_prog_DLLTOOL=$DLLTOOL
10922elif test -n "$ac_cv_prog_DLLTOOL"; then
10923 DLLTOOL=$ac_cv_prog_DLLTOOL
10924fi
10925
10926if test -n "$ac_cv_prog_DLLTOOL"; then
10927 for ncn_progname in dlltool; do
10928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10929set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10931$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10932if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 10933 $as_echo_n "(cached) " >&6
278a7a38
AO
10934else
10935 if test -n "$DLLTOOL"; then
10936 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10937else
10938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10939for as_dir in $PATH
10940do
10941 IFS=$as_save_IFS
10942 test -z "$as_dir" && as_dir=.
5213506e 10943 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10945 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 10946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10947 break 2
10948 fi
10949done
5213506e
RW
10950 done
10951IFS=$as_save_IFS
278a7a38
AO
10952
10953fi
10954fi
10955DLLTOOL=$ac_cv_prog_DLLTOOL
10956if test -n "$DLLTOOL"; then
5213506e
RW
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10958$as_echo "$DLLTOOL" >&6; }
278a7a38 10959else
5213506e
RW
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10961$as_echo "no" >&6; }
278a7a38
AO
10962fi
10963
5213506e 10964
278a7a38
AO
10965 done
10966fi
10967
10968for ncn_progname in dlltool; do
2693c0b0
PB
10969 if test -n "$ncn_tool_prefix"; then
10970 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10971set dummy ${ncn_tool_prefix}${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_DLLTOOL+:} false; then :
5213506e 10975 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10976else
10977 if test -n "$DLLTOOL"; then
10978 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10979else
1c710c3c
DJ
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
1c710c3c 10987 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 10988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10989 break 2
10990 fi
10991done
5213506e
RW
10992 done
10993IFS=$as_save_IFS
1c710c3c 10994
ca9f4b81
AO
10995fi
10996fi
1c710c3c 10997DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 10998if test -n "$DLLTOOL"; then
5213506e
RW
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11000$as_echo "$DLLTOOL" >&6; }
ca9f4b81 11001else
5213506e
RW
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11003$as_echo "no" >&6; }
ca9f4b81
AO
11004fi
11005
5213506e 11006
2693c0b0
PB
11007 fi
11008 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11010set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11012$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11013if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11014 $as_echo_n "(cached) " >&6
ca9f4b81 11015else
2693c0b0
PB
11016 if test -n "$DLLTOOL"; then
11017 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 11018else
1c710c3c
DJ
11019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11020for as_dir in $PATH
11021do
11022 IFS=$as_save_IFS
11023 test -z "$as_dir" && as_dir=.
5213506e 11024 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11026 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 11027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11028 break 2
11029 fi
11030done
5213506e
RW
11031 done
11032IFS=$as_save_IFS
1c710c3c 11033
ca9f4b81
AO
11034fi
11035fi
1c710c3c 11036DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 11037if test -n "$DLLTOOL"; then
5213506e
RW
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11039$as_echo "$DLLTOOL" >&6; }
ca9f4b81 11040else
5213506e
RW
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11042$as_echo "no" >&6; }
ca9f4b81 11043fi
1c710c3c 11044
5213506e 11045
2693c0b0
PB
11046 fi
11047 test -n "$ac_cv_prog_DLLTOOL" && break
11048done
11049
11050if test -z "$ac_cv_prog_DLLTOOL" ; then
11051 set dummy dlltool
11052 if test $build = $host ; then
11053 DLLTOOL="$2"
ca9f4b81 11054 else
2693c0b0 11055 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 11056 fi
ca9f4b81
AO
11057fi
11058
278a7a38
AO
11059
11060
3b5e8ee4
IS
11061if test -n "$DSYMUTIL"; then
11062 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11063elif test -n "$ac_cv_prog_DSYMUTIL"; then
11064 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11065fi
11066
11067if test -n "$ac_cv_prog_DSYMUTIL"; then
11068 for ncn_progname in dsymutil; do
11069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11070set dummy ${ncn_progname}; ac_word=$2
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072$as_echo_n "checking for $ac_word... " >&6; }
11073if ${ac_cv_prog_DSYMUTIL+:} false; then :
11074 $as_echo_n "(cached) " >&6
11075else
11076 if test -n "$DSYMUTIL"; then
11077 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11078else
11079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080for as_dir in $PATH
11081do
11082 IFS=$as_save_IFS
11083 test -z "$as_dir" && as_dir=.
11084 for ac_exec_ext in '' $ac_executable_extensions; do
11085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11086 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11088 break 2
11089 fi
11090done
11091 done
11092IFS=$as_save_IFS
11093
11094fi
11095fi
11096DSYMUTIL=$ac_cv_prog_DSYMUTIL
11097if test -n "$DSYMUTIL"; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11099$as_echo "$DSYMUTIL" >&6; }
11100else
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102$as_echo "no" >&6; }
11103fi
11104
11105
11106 done
11107fi
11108
11109for ncn_progname in dsymutil; do
11110 if test -n "$ncn_tool_prefix"; then
11111 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11112set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11114$as_echo_n "checking for $ac_word... " >&6; }
11115if ${ac_cv_prog_DSYMUTIL+:} false; then :
11116 $as_echo_n "(cached) " >&6
11117else
11118 if test -n "$DSYMUTIL"; then
11119 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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=.
11126 for ac_exec_ext in '' $ac_executable_extensions; do
11127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11128 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11130 break 2
11131 fi
11132done
11133 done
11134IFS=$as_save_IFS
11135
11136fi
11137fi
11138DSYMUTIL=$ac_cv_prog_DSYMUTIL
11139if test -n "$DSYMUTIL"; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11141$as_echo "$DSYMUTIL" >&6; }
11142else
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144$as_echo "no" >&6; }
11145fi
11146
11147
11148 fi
11149 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11151set dummy ${ncn_progname}; ac_word=$2
11152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11153$as_echo_n "checking for $ac_word... " >&6; }
11154if ${ac_cv_prog_DSYMUTIL+:} false; then :
11155 $as_echo_n "(cached) " >&6
11156else
11157 if test -n "$DSYMUTIL"; then
11158 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11159else
11160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11161for as_dir in $PATH
11162do
11163 IFS=$as_save_IFS
11164 test -z "$as_dir" && as_dir=.
11165 for ac_exec_ext in '' $ac_executable_extensions; do
11166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11167 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11169 break 2
11170 fi
11171done
11172 done
11173IFS=$as_save_IFS
11174
11175fi
11176fi
11177DSYMUTIL=$ac_cv_prog_DSYMUTIL
11178if test -n "$DSYMUTIL"; then
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11180$as_echo "$DSYMUTIL" >&6; }
11181else
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183$as_echo "no" >&6; }
11184fi
11185
11186
11187 fi
11188 test -n "$ac_cv_prog_DSYMUTIL" && break
11189done
11190
11191if test -z "$ac_cv_prog_DSYMUTIL" ; then
11192 set dummy dsymutil
11193 if test $build = $host ; then
11194 DSYMUTIL="$2"
11195 else
11196 DSYMUTIL="${ncn_tool_prefix}$2"
11197 fi
11198fi
11199
11200
11201
278a7a38
AO
11202if test -n "$LD"; then
11203 ac_cv_prog_LD=$LD
11204elif test -n "$ac_cv_prog_LD"; then
11205 LD=$ac_cv_prog_LD
11206fi
11207
11208if test -n "$ac_cv_prog_LD"; then
11209 for ncn_progname in ld; do
11210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11211set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11213$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11214if ${ac_cv_prog_LD+:} false; then :
5213506e 11215 $as_echo_n "(cached) " >&6
278a7a38
AO
11216else
11217 if test -n "$LD"; then
11218 ac_cv_prog_LD="$LD" # Let the user override the test.
11219else
11220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221for as_dir in $PATH
11222do
11223 IFS=$as_save_IFS
11224 test -z "$as_dir" && as_dir=.
5213506e 11225 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11227 ac_cv_prog_LD="${ncn_progname}"
5213506e 11228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11229 break 2
11230 fi
11231done
5213506e
RW
11232 done
11233IFS=$as_save_IFS
278a7a38
AO
11234
11235fi
11236fi
11237LD=$ac_cv_prog_LD
11238if test -n "$LD"; then
5213506e
RW
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11240$as_echo "$LD" >&6; }
278a7a38 11241else
5213506e
RW
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243$as_echo "no" >&6; }
278a7a38
AO
11244fi
11245
5213506e 11246
278a7a38
AO
11247 done
11248fi
11249
11250for ncn_progname in ld; do
2693c0b0
PB
11251 if test -n "$ncn_tool_prefix"; then
11252 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11253set dummy ${ncn_tool_prefix}${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_LD+:} false; then :
5213506e 11257 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11258else
11259 if test -n "$LD"; then
11260 ac_cv_prog_LD="$LD" # Let the user override the test.
11261else
1c710c3c
DJ
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
1c710c3c 11269 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 11270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11271 break 2
11272 fi
11273done
5213506e
RW
11274 done
11275IFS=$as_save_IFS
1c710c3c 11276
ca9f4b81
AO
11277fi
11278fi
1c710c3c 11279LD=$ac_cv_prog_LD
ca9f4b81 11280if test -n "$LD"; then
5213506e
RW
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11282$as_echo "$LD" >&6; }
ca9f4b81 11283else
5213506e
RW
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285$as_echo "no" >&6; }
ca9f4b81
AO
11286fi
11287
5213506e 11288
2693c0b0
PB
11289 fi
11290 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11292set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11294$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11295if ${ac_cv_prog_LD+:} false; then :
5213506e 11296 $as_echo_n "(cached) " >&6
ca9f4b81 11297else
2693c0b0
PB
11298 if test -n "$LD"; then
11299 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 11300else
1c710c3c
DJ
11301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11302for as_dir in $PATH
11303do
11304 IFS=$as_save_IFS
11305 test -z "$as_dir" && as_dir=.
5213506e 11306 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11308 ac_cv_prog_LD="${ncn_progname}"
5213506e 11309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11310 break 2
11311 fi
11312done
5213506e
RW
11313 done
11314IFS=$as_save_IFS
1c710c3c 11315
ca9f4b81
AO
11316fi
11317fi
1c710c3c 11318LD=$ac_cv_prog_LD
2693c0b0 11319if test -n "$LD"; then
5213506e
RW
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11321$as_echo "$LD" >&6; }
ca9f4b81 11322else
5213506e
RW
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11324$as_echo "no" >&6; }
ca9f4b81 11325fi
1c710c3c 11326
5213506e 11327
2693c0b0
PB
11328 fi
11329 test -n "$ac_cv_prog_LD" && break
11330done
11331
11332if test -z "$ac_cv_prog_LD" ; then
11333 set dummy ld
11334 if test $build = $host ; then
11335 LD="$2"
ca9f4b81 11336 else
2693c0b0 11337 LD="${ncn_tool_prefix}$2"
ca9f4b81 11338 fi
ca9f4b81
AO
11339fi
11340
278a7a38
AO
11341
11342
11343if test -n "$LIPO"; then
11344 ac_cv_prog_LIPO=$LIPO
11345elif test -n "$ac_cv_prog_LIPO"; then
11346 LIPO=$ac_cv_prog_LIPO
11347fi
11348
11349if test -n "$ac_cv_prog_LIPO"; then
11350 for ncn_progname in lipo; do
11351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11352set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11354$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11355if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11356 $as_echo_n "(cached) " >&6
278a7a38
AO
11357else
11358 if test -n "$LIPO"; then
11359 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11360else
11361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11362for as_dir in $PATH
11363do
11364 IFS=$as_save_IFS
11365 test -z "$as_dir" && as_dir=.
5213506e 11366 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11368 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11370 break 2
11371 fi
11372done
5213506e
RW
11373 done
11374IFS=$as_save_IFS
278a7a38
AO
11375
11376fi
11377fi
11378LIPO=$ac_cv_prog_LIPO
11379if test -n "$LIPO"; then
5213506e
RW
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11381$as_echo "$LIPO" >&6; }
278a7a38 11382else
5213506e
RW
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384$as_echo "no" >&6; }
278a7a38
AO
11385fi
11386
5213506e 11387
278a7a38
AO
11388 done
11389fi
11390
11391for ncn_progname in lipo; do
2abefe3d
PB
11392 if test -n "$ncn_tool_prefix"; then
11393 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11394set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11396$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11397if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11398 $as_echo_n "(cached) " >&6
2abefe3d
PB
11399else
11400 if test -n "$LIPO"; then
11401 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11402else
1c710c3c
DJ
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=.
5213506e 11408 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11410 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 11411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11412 break 2
11413 fi
11414done
5213506e
RW
11415 done
11416IFS=$as_save_IFS
1c710c3c 11417
2abefe3d
PB
11418fi
11419fi
1c710c3c 11420LIPO=$ac_cv_prog_LIPO
2abefe3d 11421if test -n "$LIPO"; then
5213506e
RW
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11423$as_echo "$LIPO" >&6; }
2abefe3d 11424else
5213506e
RW
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11426$as_echo "no" >&6; }
2abefe3d
PB
11427fi
11428
5213506e 11429
2abefe3d
PB
11430 fi
11431 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11433set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11435$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11436if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11437 $as_echo_n "(cached) " >&6
2abefe3d
PB
11438else
11439 if test -n "$LIPO"; then
11440 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11441else
1c710c3c
DJ
11442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11443for as_dir in $PATH
11444do
11445 IFS=$as_save_IFS
11446 test -z "$as_dir" && as_dir=.
5213506e 11447 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11449 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11451 break 2
11452 fi
11453done
5213506e
RW
11454 done
11455IFS=$as_save_IFS
1c710c3c 11456
2abefe3d
PB
11457fi
11458fi
1c710c3c 11459LIPO=$ac_cv_prog_LIPO
2abefe3d 11460if test -n "$LIPO"; then
5213506e
RW
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11462$as_echo "$LIPO" >&6; }
2abefe3d 11463else
5213506e
RW
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11465$as_echo "no" >&6; }
2abefe3d 11466fi
1c710c3c 11467
5213506e 11468
2abefe3d
PB
11469 fi
11470 test -n "$ac_cv_prog_LIPO" && break
11471done
11472
11473if test -z "$ac_cv_prog_LIPO" ; then
11474 set dummy lipo
11475 if test $build = $host ; then
11476 LIPO="$2"
11477 else
11478 LIPO="${ncn_tool_prefix}$2"
11479 fi
11480fi
11481
278a7a38
AO
11482
11483
11484if test -n "$NM"; then
11485 ac_cv_prog_NM=$NM
11486elif test -n "$ac_cv_prog_NM"; then
11487 NM=$ac_cv_prog_NM
11488fi
11489
11490if test -n "$ac_cv_prog_NM"; then
11491 for ncn_progname in nm; do
11492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11493set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11495$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11496if ${ac_cv_prog_NM+:} false; then :
5213506e 11497 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11498else
11499 if test -n "$NM"; then
11500 ac_cv_prog_NM="$NM" # Let the user override the test.
11501else
1c710c3c
DJ
11502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11503for as_dir in $PATH
11504do
11505 IFS=$as_save_IFS
11506 test -z "$as_dir" && as_dir=.
5213506e 11507 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11509 ac_cv_prog_NM="${ncn_progname}"
5213506e 11510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11511 break 2
11512 fi
11513done
5213506e
RW
11514 done
11515IFS=$as_save_IFS
1c710c3c 11516
ca9f4b81
AO
11517fi
11518fi
1c710c3c 11519NM=$ac_cv_prog_NM
ca9f4b81 11520if test -n "$NM"; then
5213506e
RW
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11522$as_echo "$NM" >&6; }
ca9f4b81 11523else
5213506e
RW
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525$as_echo "no" >&6; }
ca9f4b81
AO
11526fi
11527
5213506e 11528
278a7a38
AO
11529 done
11530fi
11531
11532for ncn_progname in nm; do
11533 if test -n "$ncn_tool_prefix"; then
11534 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11535set dummy ${ncn_tool_prefix}${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_NM+:} false; then :
5213506e 11539 $as_echo_n "(cached) " >&6
ca9f4b81 11540else
2693c0b0
PB
11541 if test -n "$NM"; then
11542 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 11543else
1c710c3c
DJ
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_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 11552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11553 break 2
11554 fi
11555done
5213506e
RW
11556 done
11557IFS=$as_save_IFS
1c710c3c 11558
ca9f4b81
AO
11559fi
11560fi
1c710c3c 11561NM=$ac_cv_prog_NM
2693c0b0 11562if test -n "$NM"; then
5213506e
RW
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11564$as_echo "$NM" >&6; }
ca9f4b81 11565else
5213506e
RW
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567$as_echo "no" >&6; }
ca9f4b81 11568fi
1c710c3c 11569
5213506e 11570
2693c0b0 11571 fi
278a7a38
AO
11572 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11574set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11576$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11577if ${ac_cv_prog_NM+:} false; then :
5213506e 11578 $as_echo_n "(cached) " >&6
278a7a38
AO
11579else
11580 if test -n "$NM"; then
11581 ac_cv_prog_NM="$NM" # Let the user override the test.
11582else
11583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584for as_dir in $PATH
11585do
11586 IFS=$as_save_IFS
11587 test -z "$as_dir" && as_dir=.
5213506e 11588 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11590 ac_cv_prog_NM="${ncn_progname}"
5213506e 11591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11592 break 2
11593 fi
11594done
5213506e
RW
11595 done
11596IFS=$as_save_IFS
278a7a38
AO
11597
11598fi
11599fi
11600NM=$ac_cv_prog_NM
11601if test -n "$NM"; then
5213506e
RW
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11603$as_echo "$NM" >&6; }
278a7a38 11604else
5213506e
RW
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606$as_echo "no" >&6; }
278a7a38
AO
11607fi
11608
5213506e 11609
278a7a38
AO
11610 fi
11611 test -n "$ac_cv_prog_NM" && break
11612done
11613
11614if test -z "$ac_cv_prog_NM" ; then
11615 set dummy nm
11616 if test $build = $host ; then
11617 NM="$2"
11618 else
11619 NM="${ncn_tool_prefix}$2"
11620 fi
11621fi
11622
11623
11624
11625if test -n "$RANLIB"; then
11626 ac_cv_prog_RANLIB=$RANLIB
11627elif test -n "$ac_cv_prog_RANLIB"; then
11628 RANLIB=$ac_cv_prog_RANLIB
11629fi
11630
11631if test -n "$ac_cv_prog_RANLIB"; then
11632 for ncn_progname in ranlib; do
11633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11634set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11636$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11637if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11638 $as_echo_n "(cached) " >&6
278a7a38
AO
11639else
11640 if test -n "$RANLIB"; then
11641 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11642else
11643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11644for as_dir in $PATH
11645do
11646 IFS=$as_save_IFS
11647 test -z "$as_dir" && as_dir=.
5213506e 11648 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11650 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11652 break 2
11653 fi
11654done
5213506e
RW
11655 done
11656IFS=$as_save_IFS
278a7a38
AO
11657
11658fi
11659fi
11660RANLIB=$ac_cv_prog_RANLIB
11661if test -n "$RANLIB"; then
5213506e
RW
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11663$as_echo "$RANLIB" >&6; }
278a7a38 11664else
5213506e
RW
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666$as_echo "no" >&6; }
278a7a38
AO
11667fi
11668
5213506e 11669
278a7a38
AO
11670 done
11671fi
ca9f4b81 11672
278a7a38 11673for ncn_progname in ranlib; do
2693c0b0
PB
11674 if test -n "$ncn_tool_prefix"; then
11675 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11676set dummy ${ncn_tool_prefix}${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_RANLIB+:} false; then :
5213506e 11680 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11681else
11682 if test -n "$RANLIB"; then
11683 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11684else
1c710c3c
DJ
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
1c710c3c 11692 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11694 break 2
11695 fi
11696done
5213506e
RW
11697 done
11698IFS=$as_save_IFS
1c710c3c 11699
ca9f4b81
AO
11700fi
11701fi
1c710c3c 11702RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 11703if test -n "$RANLIB"; then
5213506e
RW
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11705$as_echo "$RANLIB" >&6; }
ca9f4b81 11706else
5213506e
RW
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708$as_echo "no" >&6; }
ca9f4b81
AO
11709fi
11710
5213506e 11711
2693c0b0
PB
11712 fi
11713 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11715set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11717$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11718if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11719 $as_echo_n "(cached) " >&6
ca9f4b81 11720else
2693c0b0
PB
11721 if test -n "$RANLIB"; then
11722 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 11723else
1c710c3c
DJ
11724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11725for as_dir in $PATH
11726do
11727 IFS=$as_save_IFS
11728 test -z "$as_dir" && as_dir=.
5213506e 11729 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11731 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11733 break 2
11734 fi
11735done
5213506e
RW
11736 done
11737IFS=$as_save_IFS
1c710c3c 11738
ca9f4b81
AO
11739fi
11740fi
1c710c3c 11741RANLIB=$ac_cv_prog_RANLIB
2693c0b0 11742if test -n "$RANLIB"; then
5213506e
RW
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11744$as_echo "$RANLIB" >&6; }
ca9f4b81 11745else
5213506e
RW
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11747$as_echo "no" >&6; }
ca9f4b81 11748fi
1c710c3c 11749
5213506e 11750
ca9f4b81 11751 fi
2693c0b0
PB
11752 test -n "$ac_cv_prog_RANLIB" && break
11753done
11754
11755if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 11756 RANLIB="true"
ca9f4b81
AO
11757fi
11758
278a7a38
AO
11759
11760
11761if test -n "$STRIP"; then
11762 ac_cv_prog_STRIP=$STRIP
11763elif test -n "$ac_cv_prog_STRIP"; then
11764 STRIP=$ac_cv_prog_STRIP
11765fi
11766
11767if test -n "$ac_cv_prog_STRIP"; then
11768 for ncn_progname in strip; do
11769 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11770set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11772$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11773if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11774 $as_echo_n "(cached) " >&6
278a7a38
AO
11775else
11776 if test -n "$STRIP"; then
11777 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11778else
11779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11780for as_dir in $PATH
11781do
11782 IFS=$as_save_IFS
11783 test -z "$as_dir" && as_dir=.
5213506e 11784 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11786 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 11787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11788 break 2
11789 fi
11790done
5213506e
RW
11791 done
11792IFS=$as_save_IFS
278a7a38
AO
11793
11794fi
11795fi
11796STRIP=$ac_cv_prog_STRIP
11797if test -n "$STRIP"; then
5213506e
RW
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11799$as_echo "$STRIP" >&6; }
278a7a38 11800else
5213506e
RW
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11802$as_echo "no" >&6; }
278a7a38
AO
11803fi
11804
5213506e 11805
278a7a38
AO
11806 done
11807fi
11808
11809for ncn_progname in strip; do
2abefe3d
PB
11810 if test -n "$ncn_tool_prefix"; then
11811 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11812set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11814$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11815if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11816 $as_echo_n "(cached) " >&6
2abefe3d
PB
11817else
11818 if test -n "$STRIP"; then
11819 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11820else
1c710c3c
DJ
11821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822for as_dir in $PATH
11823do
11824 IFS=$as_save_IFS
11825 test -z "$as_dir" && as_dir=.
5213506e 11826 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11828 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 11829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11830 break 2
11831 fi
11832done
5213506e
RW
11833 done
11834IFS=$as_save_IFS
1c710c3c 11835
2abefe3d
PB
11836fi
11837fi
1c710c3c 11838STRIP=$ac_cv_prog_STRIP
2abefe3d 11839if test -n "$STRIP"; then
5213506e
RW
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11841$as_echo "$STRIP" >&6; }
2abefe3d 11842else
5213506e
RW
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844$as_echo "no" >&6; }
2abefe3d
PB
11845fi
11846
5213506e 11847
2abefe3d
PB
11848 fi
11849 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11851set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11853$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11854if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11855 $as_echo_n "(cached) " >&6
2abefe3d
PB
11856else
11857 if test -n "$STRIP"; then
11858 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11859else
1c710c3c
DJ
11860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11861for as_dir in $PATH
11862do
11863 IFS=$as_save_IFS
11864 test -z "$as_dir" && as_dir=.
5213506e 11865 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11867 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 11868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11869 break 2
11870 fi
11871done
5213506e
RW
11872 done
11873IFS=$as_save_IFS
1c710c3c 11874
2abefe3d
PB
11875fi
11876fi
1c710c3c 11877STRIP=$ac_cv_prog_STRIP
2abefe3d 11878if test -n "$STRIP"; then
5213506e
RW
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11880$as_echo "$STRIP" >&6; }
2abefe3d 11881else
5213506e
RW
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883$as_echo "no" >&6; }
2abefe3d 11884fi
1c710c3c 11885
5213506e 11886
2abefe3d
PB
11887 fi
11888 test -n "$ac_cv_prog_STRIP" && break
11889done
11890
11891if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 11892 STRIP="true"
2abefe3d
PB
11893fi
11894
278a7a38
AO
11895
11896
11897if test -n "$WINDRES"; then
11898 ac_cv_prog_WINDRES=$WINDRES
11899elif test -n "$ac_cv_prog_WINDRES"; then
11900 WINDRES=$ac_cv_prog_WINDRES
11901fi
11902
11903if test -n "$ac_cv_prog_WINDRES"; then
11904 for ncn_progname in windres; do
11905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11906set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11909if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 11910 $as_echo_n "(cached) " >&6
278a7a38
AO
11911else
11912 if test -n "$WINDRES"; then
11913 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11914else
11915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916for as_dir in $PATH
11917do
11918 IFS=$as_save_IFS
11919 test -z "$as_dir" && as_dir=.
5213506e 11920 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11922 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 11923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11924 break 2
11925 fi
11926done
5213506e
RW
11927 done
11928IFS=$as_save_IFS
278a7a38
AO
11929
11930fi
11931fi
11932WINDRES=$ac_cv_prog_WINDRES
11933if test -n "$WINDRES"; then
5213506e
RW
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11935$as_echo "$WINDRES" >&6; }
278a7a38 11936else
5213506e
RW
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938$as_echo "no" >&6; }
278a7a38
AO
11939fi
11940
5213506e 11941
278a7a38
AO
11942 done
11943fi
11944
11945for ncn_progname in windres; do
2693c0b0
PB
11946 if test -n "$ncn_tool_prefix"; then
11947 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11948set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11950$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11951if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 11952 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11953else
11954 if test -n "$WINDRES"; then
11955 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11956else
1c710c3c
DJ
11957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11958for as_dir in $PATH
11959do
11960 IFS=$as_save_IFS
11961 test -z "$as_dir" && as_dir=.
5213506e 11962 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11964 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 11965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11966 break 2
11967 fi
11968done
5213506e
RW
11969 done
11970IFS=$as_save_IFS
1c710c3c 11971
ca9f4b81
AO
11972fi
11973fi
1c710c3c 11974WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 11975if test -n "$WINDRES"; then
5213506e
RW
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11977$as_echo "$WINDRES" >&6; }
ca9f4b81 11978else
5213506e
RW
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980$as_echo "no" >&6; }
ca9f4b81
AO
11981fi
11982
5213506e 11983
2693c0b0
PB
11984 fi
11985 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11987set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11989$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11990if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 11991 $as_echo_n "(cached) " >&6
ca9f4b81 11992else
2693c0b0
PB
11993 if test -n "$WINDRES"; then
11994 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 11995else
1c710c3c
DJ
11996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11997for as_dir in $PATH
11998do
11999 IFS=$as_save_IFS
12000 test -z "$as_dir" && as_dir=.
5213506e 12001 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12003 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 12004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12005 break 2
12006 fi
12007done
5213506e
RW
12008 done
12009IFS=$as_save_IFS
1c710c3c 12010
ca9f4b81
AO
12011fi
12012fi
1c710c3c 12013WINDRES=$ac_cv_prog_WINDRES
2693c0b0 12014if test -n "$WINDRES"; then
5213506e
RW
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12016$as_echo "$WINDRES" >&6; }
ca9f4b81 12017else
5213506e
RW
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12019$as_echo "no" >&6; }
ca9f4b81 12020fi
1c710c3c 12021
5213506e 12022
2693c0b0
PB
12023 fi
12024 test -n "$ac_cv_prog_WINDRES" && break
12025done
12026
12027if test -z "$ac_cv_prog_WINDRES" ; then
12028 set dummy windres
12029 if test $build = $host ; then
12030 WINDRES="$2"
ca9f4b81 12031 else
2693c0b0 12032 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 12033 fi
ca9f4b81
AO
12034fi
12035
278a7a38
AO
12036
12037
901119ae
KT
12038if test -n "$WINDMC"; then
12039 ac_cv_prog_WINDMC=$WINDMC
12040elif test -n "$ac_cv_prog_WINDMC"; then
12041 WINDMC=$ac_cv_prog_WINDMC
12042fi
12043
12044if test -n "$ac_cv_prog_WINDMC"; then
12045 for ncn_progname in windmc; do
12046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12047set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12049$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12050if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12051 $as_echo_n "(cached) " >&6
901119ae
KT
12052else
12053 if test -n "$WINDMC"; then
12054 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12055else
12056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12057for as_dir in $PATH
12058do
12059 IFS=$as_save_IFS
12060 test -z "$as_dir" && as_dir=.
5213506e 12061 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12063 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 12064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12065 break 2
12066 fi
12067done
5213506e
RW
12068 done
12069IFS=$as_save_IFS
901119ae
KT
12070
12071fi
12072fi
12073WINDMC=$ac_cv_prog_WINDMC
12074if test -n "$WINDMC"; then
5213506e
RW
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12076$as_echo "$WINDMC" >&6; }
901119ae 12077else
5213506e
RW
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079$as_echo "no" >&6; }
901119ae
KT
12080fi
12081
5213506e 12082
901119ae
KT
12083 done
12084fi
12085
12086for ncn_progname in windmc; do
12087 if test -n "$ncn_tool_prefix"; then
12088 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12089set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12091$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12092if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12093 $as_echo_n "(cached) " >&6
901119ae
KT
12094else
12095 if test -n "$WINDMC"; then
12096 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12097else
12098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099for as_dir in $PATH
12100do
12101 IFS=$as_save_IFS
12102 test -z "$as_dir" && as_dir=.
5213506e 12103 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12105 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 12106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12107 break 2
12108 fi
12109done
5213506e
RW
12110 done
12111IFS=$as_save_IFS
901119ae
KT
12112
12113fi
12114fi
12115WINDMC=$ac_cv_prog_WINDMC
12116if test -n "$WINDMC"; then
5213506e
RW
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12118$as_echo "$WINDMC" >&6; }
901119ae 12119else
5213506e
RW
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121$as_echo "no" >&6; }
901119ae
KT
12122fi
12123
5213506e 12124
901119ae
KT
12125 fi
12126 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12128set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12130$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12131if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12132 $as_echo_n "(cached) " >&6
901119ae
KT
12133else
12134 if test -n "$WINDMC"; then
12135 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12136else
12137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138for as_dir in $PATH
12139do
12140 IFS=$as_save_IFS
12141 test -z "$as_dir" && as_dir=.
5213506e 12142 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12144 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 12145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12146 break 2
12147 fi
12148done
5213506e
RW
12149 done
12150IFS=$as_save_IFS
901119ae
KT
12151
12152fi
12153fi
12154WINDMC=$ac_cv_prog_WINDMC
12155if test -n "$WINDMC"; then
5213506e
RW
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12157$as_echo "$WINDMC" >&6; }
901119ae 12158else
5213506e
RW
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160$as_echo "no" >&6; }
901119ae
KT
12161fi
12162
5213506e 12163
901119ae
KT
12164 fi
12165 test -n "$ac_cv_prog_WINDMC" && break
12166done
12167
12168if test -z "$ac_cv_prog_WINDMC" ; then
12169 set dummy windmc
12170 if test $build = $host ; then
12171 WINDMC="$2"
12172 else
12173 WINDMC="${ncn_tool_prefix}$2"
12174 fi
12175fi
12176
12177
12178
278a7a38
AO
12179if test -n "$OBJCOPY"; then
12180 ac_cv_prog_OBJCOPY=$OBJCOPY
12181elif test -n "$ac_cv_prog_OBJCOPY"; then
12182 OBJCOPY=$ac_cv_prog_OBJCOPY
12183fi
12184
12185if test -n "$ac_cv_prog_OBJCOPY"; then
12186 for ncn_progname in objcopy; do
12187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12188set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12190$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12191if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12192 $as_echo_n "(cached) " >&6
278a7a38
AO
12193else
12194 if test -n "$OBJCOPY"; then
12195 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12196else
12197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12198for as_dir in $PATH
12199do
12200 IFS=$as_save_IFS
12201 test -z "$as_dir" && as_dir=.
5213506e 12202 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12204 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12206 break 2
12207 fi
12208done
5213506e
RW
12209 done
12210IFS=$as_save_IFS
278a7a38
AO
12211
12212fi
12213fi
12214OBJCOPY=$ac_cv_prog_OBJCOPY
12215if test -n "$OBJCOPY"; then
5213506e
RW
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12217$as_echo "$OBJCOPY" >&6; }
278a7a38 12218else
5213506e
RW
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220$as_echo "no" >&6; }
278a7a38
AO
12221fi
12222
5213506e 12223
278a7a38
AO
12224 done
12225fi
12226
12227for ncn_progname in objcopy; do
2693c0b0
PB
12228 if test -n "$ncn_tool_prefix"; then
12229 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12230set dummy ${ncn_tool_prefix}${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_OBJCOPY+:} false; then :
5213506e 12234 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12235else
12236 if test -n "$OBJCOPY"; then
12237 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12238else
1c710c3c
DJ
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
1c710c3c 12246 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 12247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12248 break 2
12249 fi
12250done
5213506e
RW
12251 done
12252IFS=$as_save_IFS
1c710c3c 12253
ca9f4b81
AO
12254fi
12255fi
1c710c3c 12256OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 12257if test -n "$OBJCOPY"; then
5213506e
RW
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12259$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12260else
5213506e
RW
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262$as_echo "no" >&6; }
ca9f4b81
AO
12263fi
12264
5213506e 12265
2693c0b0
PB
12266 fi
12267 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12269set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12271$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12272if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12273 $as_echo_n "(cached) " >&6
ca9f4b81 12274else
2693c0b0
PB
12275 if test -n "$OBJCOPY"; then
12276 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 12277else
1c710c3c
DJ
12278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279for as_dir in $PATH
12280do
12281 IFS=$as_save_IFS
12282 test -z "$as_dir" && as_dir=.
5213506e 12283 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12285 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12287 break 2
12288 fi
12289done
5213506e
RW
12290 done
12291IFS=$as_save_IFS
1c710c3c 12292
ca9f4b81
AO
12293fi
12294fi
1c710c3c 12295OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 12296if test -n "$OBJCOPY"; then
5213506e
RW
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12298$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12299else
5213506e
RW
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12301$as_echo "no" >&6; }
ca9f4b81 12302fi
1c710c3c 12303
5213506e 12304
2693c0b0
PB
12305 fi
12306 test -n "$ac_cv_prog_OBJCOPY" && break
12307done
12308
12309if test -z "$ac_cv_prog_OBJCOPY" ; then
12310 set dummy objcopy
12311 if test $build = $host ; then
12312 OBJCOPY="$2"
ca9f4b81 12313 else
2693c0b0 12314 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 12315 fi
ca9f4b81
AO
12316fi
12317
278a7a38
AO
12318
12319
12320if test -n "$OBJDUMP"; then
12321 ac_cv_prog_OBJDUMP=$OBJDUMP
12322elif test -n "$ac_cv_prog_OBJDUMP"; then
12323 OBJDUMP=$ac_cv_prog_OBJDUMP
12324fi
12325
12326if test -n "$ac_cv_prog_OBJDUMP"; then
12327 for ncn_progname in objdump; do
12328 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12329set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12331$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12332if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12333 $as_echo_n "(cached) " >&6
278a7a38
AO
12334else
12335 if test -n "$OBJDUMP"; then
12336 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12337else
12338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12339for as_dir in $PATH
12340do
12341 IFS=$as_save_IFS
12342 test -z "$as_dir" && as_dir=.
5213506e 12343 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12345 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12347 break 2
12348 fi
12349done
5213506e
RW
12350 done
12351IFS=$as_save_IFS
278a7a38
AO
12352
12353fi
12354fi
12355OBJDUMP=$ac_cv_prog_OBJDUMP
12356if test -n "$OBJDUMP"; then
5213506e
RW
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12358$as_echo "$OBJDUMP" >&6; }
278a7a38 12359else
5213506e
RW
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361$as_echo "no" >&6; }
278a7a38
AO
12362fi
12363
5213506e 12364
278a7a38
AO
12365 done
12366fi
12367
12368for ncn_progname in objdump; do
2693c0b0
PB
12369 if test -n "$ncn_tool_prefix"; then
12370 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12371set dummy ${ncn_tool_prefix}${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_OBJDUMP+:} false; then :
5213506e 12375 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12376else
12377 if test -n "$OBJDUMP"; then
12378 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12379else
1c710c3c
DJ
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
1c710c3c 12387 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 12388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12389 break 2
12390 fi
12391done
5213506e
RW
12392 done
12393IFS=$as_save_IFS
1c710c3c 12394
ca9f4b81
AO
12395fi
12396fi
1c710c3c 12397OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 12398if test -n "$OBJDUMP"; then
5213506e
RW
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12400$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12401else
5213506e
RW
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403$as_echo "no" >&6; }
ca9f4b81
AO
12404fi
12405
5213506e 12406
2693c0b0
PB
12407 fi
12408 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12410set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12412$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12413if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12414 $as_echo_n "(cached) " >&6
ca9f4b81 12415else
2693c0b0
PB
12416 if test -n "$OBJDUMP"; then
12417 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 12418else
1c710c3c
DJ
12419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420for as_dir in $PATH
12421do
12422 IFS=$as_save_IFS
12423 test -z "$as_dir" && as_dir=.
5213506e 12424 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12426 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12428 break 2
12429 fi
12430done
5213506e
RW
12431 done
12432IFS=$as_save_IFS
1c710c3c 12433
ca9f4b81
AO
12434fi
12435fi
1c710c3c 12436OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 12437if test -n "$OBJDUMP"; then
5213506e
RW
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12439$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12440else
5213506e
RW
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442$as_echo "no" >&6; }
ca9f4b81 12443fi
1c710c3c 12444
5213506e 12445
2693c0b0
PB
12446 fi
12447 test -n "$ac_cv_prog_OBJDUMP" && break
12448done
12449
12450if test -z "$ac_cv_prog_OBJDUMP" ; then
12451 set dummy objdump
12452 if test $build = $host ; then
12453 OBJDUMP="$2"
ca9f4b81 12454 else
2693c0b0 12455 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 12456 fi
ca9f4b81
AO
12457fi
12458
671aa708
NN
12459
12460
e4a9a572
IS
12461if test -n "$OTOOL"; then
12462 ac_cv_prog_OTOOL=$OTOOL
12463elif test -n "$ac_cv_prog_OTOOL"; then
12464 OTOOL=$ac_cv_prog_OTOOL
12465fi
12466
12467if test -n "$ac_cv_prog_OTOOL"; then
12468 for ncn_progname in otool; do
12469 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12470set dummy ${ncn_progname}; ac_word=$2
12471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12472$as_echo_n "checking for $ac_word... " >&6; }
12473if ${ac_cv_prog_OTOOL+:} false; then :
12474 $as_echo_n "(cached) " >&6
12475else
12476 if test -n "$OTOOL"; then
12477 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12478else
12479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12480for as_dir in $PATH
12481do
12482 IFS=$as_save_IFS
12483 test -z "$as_dir" && as_dir=.
12484 for ac_exec_ext in '' $ac_executable_extensions; do
12485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12486 ac_cv_prog_OTOOL="${ncn_progname}"
12487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12488 break 2
12489 fi
12490done
12491 done
12492IFS=$as_save_IFS
12493
12494fi
12495fi
12496OTOOL=$ac_cv_prog_OTOOL
12497if test -n "$OTOOL"; then
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12499$as_echo "$OTOOL" >&6; }
12500else
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502$as_echo "no" >&6; }
12503fi
12504
12505
12506 done
12507fi
12508
12509for ncn_progname in otool; do
12510 if test -n "$ncn_tool_prefix"; then
12511 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12512set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12514$as_echo_n "checking for $ac_word... " >&6; }
12515if ${ac_cv_prog_OTOOL+:} false; then :
12516 $as_echo_n "(cached) " >&6
12517else
12518 if test -n "$OTOOL"; then
12519 ac_cv_prog_OTOOL="$OTOOL" # 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=.
12526 for ac_exec_ext in '' $ac_executable_extensions; do
12527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12528 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12530 break 2
12531 fi
12532done
12533 done
12534IFS=$as_save_IFS
12535
12536fi
12537fi
12538OTOOL=$ac_cv_prog_OTOOL
12539if test -n "$OTOOL"; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12541$as_echo "$OTOOL" >&6; }
12542else
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544$as_echo "no" >&6; }
12545fi
12546
12547
12548 fi
12549 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12551set dummy ${ncn_progname}; ac_word=$2
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12553$as_echo_n "checking for $ac_word... " >&6; }
12554if ${ac_cv_prog_OTOOL+:} false; then :
12555 $as_echo_n "(cached) " >&6
12556else
12557 if test -n "$OTOOL"; then
12558 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12559else
12560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12561for as_dir in $PATH
12562do
12563 IFS=$as_save_IFS
12564 test -z "$as_dir" && as_dir=.
12565 for ac_exec_ext in '' $ac_executable_extensions; do
12566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12567 ac_cv_prog_OTOOL="${ncn_progname}"
12568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12569 break 2
12570 fi
12571done
12572 done
12573IFS=$as_save_IFS
12574
12575fi
12576fi
12577OTOOL=$ac_cv_prog_OTOOL
12578if test -n "$OTOOL"; then
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12580$as_echo "$OTOOL" >&6; }
12581else
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583$as_echo "no" >&6; }
12584fi
12585
12586
12587 fi
12588 test -n "$ac_cv_prog_OTOOL" && break
12589done
12590
12591if test -z "$ac_cv_prog_OTOOL" ; then
12592 set dummy otool
12593 if test $build = $host ; then
12594 OTOOL="$2"
12595 else
12596 OTOOL="${ncn_tool_prefix}$2"
12597 fi
12598fi
12599
12600
12601
e7a82751
RM
12602if test -n "$READELF"; then
12603 ac_cv_prog_READELF=$READELF
12604elif test -n "$ac_cv_prog_READELF"; then
12605 READELF=$ac_cv_prog_READELF
12606fi
12607
12608if test -n "$ac_cv_prog_READELF"; then
12609 for ncn_progname in readelf; do
12610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12611set dummy ${ncn_progname}; ac_word=$2
12612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12613$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12614if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12615 $as_echo_n "(cached) " >&6
12616else
12617 if test -n "$READELF"; then
12618 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12619else
12620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12621for as_dir in $PATH
12622do
12623 IFS=$as_save_IFS
12624 test -z "$as_dir" && as_dir=.
12625 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12627 ac_cv_prog_READELF="${ncn_progname}"
12628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12629 break 2
12630 fi
12631done
12632 done
12633IFS=$as_save_IFS
12634
12635fi
12636fi
12637READELF=$ac_cv_prog_READELF
12638if test -n "$READELF"; then
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12640$as_echo "$READELF" >&6; }
12641else
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12643$as_echo "no" >&6; }
12644fi
12645
12646
12647 done
12648fi
12649
12650for ncn_progname in readelf; do
12651 if test -n "$ncn_tool_prefix"; then
12652 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12653set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
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_READELF+:} false; then :
e7a82751
RM
12657 $as_echo_n "(cached) " >&6
12658else
12659 if test -n "$READELF"; then
12660 ac_cv_prog_READELF="$READELF" # 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=.
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
e7a82751
RM
12669 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671 break 2
12672 fi
12673done
12674 done
12675IFS=$as_save_IFS
12676
12677fi
12678fi
12679READELF=$ac_cv_prog_READELF
12680if test -n "$READELF"; then
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12682$as_echo "$READELF" >&6; }
12683else
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685$as_echo "no" >&6; }
12686fi
12687
12688
12689 fi
12690 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12692set dummy ${ncn_progname}; ac_word=$2
12693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12694$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12695if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12696 $as_echo_n "(cached) " >&6
12697else
12698 if test -n "$READELF"; then
12699 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12700else
12701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12702for as_dir in $PATH
12703do
12704 IFS=$as_save_IFS
12705 test -z "$as_dir" && as_dir=.
12706 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12708 ac_cv_prog_READELF="${ncn_progname}"
12709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12710 break 2
12711 fi
12712done
12713 done
12714IFS=$as_save_IFS
12715
12716fi
12717fi
12718READELF=$ac_cv_prog_READELF
12719if test -n "$READELF"; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12721$as_echo "$READELF" >&6; }
12722else
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12724$as_echo "no" >&6; }
12725fi
12726
12727
12728 fi
12729 test -n "$ac_cv_prog_READELF" && break
12730done
12731
12732if test -z "$ac_cv_prog_READELF" ; then
12733 set dummy readelf
12734 if test $build = $host ; then
12735 READELF="$2"
12736 else
12737 READELF="${ncn_tool_prefix}$2"
12738 fi
12739fi
12740
12741
12742
671aa708
NN
12743
12744
12745
5fee5ec3
IB
12746
12747
2abefe3d 12748# Target tools.
1c710c3c 12749
5213506e
RW
12750# Check whether --with-build-time-tools was given.
12751if test "${with_build_time_tools+set}" = set; then :
12752 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
12753 x/*) ;;
12754 *)
12755 with_build_time_tools=
5213506e
RW
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12757$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
12758 ;;
12759 esac
ca9f4b81 12760else
e8b05380 12761 with_build_time_tools=
5213506e
RW
12762fi
12763
ca9f4b81 12764
278a7a38
AO
12765
12766
12767if test -n "$CC_FOR_TARGET"; then
12768 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12769elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12770 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12771fi
12772
12773if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12774 for ncn_progname in cc gcc; do
12775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12776set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12779if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12780 $as_echo_n "(cached) " >&6
278a7a38
AO
12781else
12782 if test -n "$CC_FOR_TARGET"; then
12783 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12784else
12785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786for as_dir in $PATH
12787do
12788 IFS=$as_save_IFS
12789 test -z "$as_dir" && as_dir=.
5213506e 12790 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12792 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12794 break 2
12795 fi
12796done
5213506e
RW
12797 done
12798IFS=$as_save_IFS
278a7a38
AO
12799
12800fi
12801fi
12802CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12803if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12805$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 12806else
5213506e
RW
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808$as_echo "no" >&6; }
278a7a38
AO
12809fi
12810
5213506e 12811
278a7a38
AO
12812 done
12813fi
12814
12815if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12816 for ncn_progname in cc gcc; do
5213506e
RW
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12818$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12819 if test -x $with_build_time_tools/${ncn_progname}; then
12820 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12822$as_echo "yes" >&6; }
72a7ab82 12823 break
e8b05380 12824 else
5213506e
RW
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12826$as_echo "no" >&6; }
72a7ab82
AP
12827 fi
12828 done
4de997d1
PB
12829fi
12830
e8b05380
PB
12831if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12832 for ncn_progname in cc gcc; do
12833 if test -n "$ncn_target_tool_prefix"; then
12834 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12835set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12837$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12838if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12839 $as_echo_n "(cached) " >&6
4de997d1
PB
12840else
12841 if test -n "$CC_FOR_TARGET"; then
12842 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12843else
1c710c3c
DJ
12844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12845for as_dir in $PATH
12846do
12847 IFS=$as_save_IFS
12848 test -z "$as_dir" && as_dir=.
5213506e 12849 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12851 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12853 break 2
12854 fi
12855done
5213506e
RW
12856 done
12857IFS=$as_save_IFS
1c710c3c 12858
4de997d1
PB
12859fi
12860fi
1c710c3c 12861CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 12862if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12864$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 12865else
5213506e
RW
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867$as_echo "no" >&6; }
4de997d1
PB
12868fi
12869
5213506e 12870
e8b05380
PB
12871 fi
12872 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12874set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12877if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12878 $as_echo_n "(cached) " >&6
4de997d1 12879else
2693c0b0
PB
12880 if test -n "$CC_FOR_TARGET"; then
12881 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 12882else
1c710c3c
DJ
12883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12884for as_dir in $PATH
12885do
12886 IFS=$as_save_IFS
12887 test -z "$as_dir" && as_dir=.
5213506e 12888 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12890 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 12891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12892 break 2
12893 fi
12894done
5213506e
RW
12895 done
12896IFS=$as_save_IFS
1c710c3c 12897
4de997d1
PB
12898fi
12899fi
1c710c3c 12900CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 12901if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12903$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 12904else
5213506e
RW
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906$as_echo "no" >&6; }
4de997d1 12907fi
1c710c3c 12908
5213506e 12909
e8b05380
PB
12910 fi
12911 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12912 done
12913fi
1c710c3c 12914
2693c0b0
PB
12915if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12916 set dummy cc gcc
12917 if test $build = $target ; then
12918 CC_FOR_TARGET="$2"
4de997d1 12919 else
2693c0b0 12920 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 12921 fi
1c00b503
PB
12922else
12923 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
12924fi
12925
278a7a38
AO
12926
12927
12928if test -n "$CXX_FOR_TARGET"; then
12929 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12930elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12931 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12932fi
12933
12934if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12935 for ncn_progname in c++ g++ cxx gxx; do
12936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12937set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12939$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12940if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 12941 $as_echo_n "(cached) " >&6
278a7a38
AO
12942else
12943 if test -n "$CXX_FOR_TARGET"; then
12944 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12945else
12946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12947for as_dir in $PATH
12948do
12949 IFS=$as_save_IFS
12950 test -z "$as_dir" && as_dir=.
5213506e 12951 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12953 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 12954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12955 break 2
12956 fi
12957done
5213506e
RW
12958 done
12959IFS=$as_save_IFS
278a7a38
AO
12960
12961fi
12962fi
12963CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12964if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12966$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 12967else
5213506e
RW
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969$as_echo "no" >&6; }
278a7a38
AO
12970fi
12971
5213506e 12972
278a7a38
AO
12973 done
12974fi
12975
12976if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12977 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12979$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12980 if test -x $with_build_time_tools/${ncn_progname}; then
12981 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12983$as_echo "yes" >&6; }
e8b05380
PB
12984 break
12985 else
5213506e
RW
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12987$as_echo "no" >&6; }
e8b05380
PB
12988 fi
12989 done
12990fi
12991
12992if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
12993 for ncn_progname in c++ g++ cxx gxx; do
12994 if test -n "$ncn_target_tool_prefix"; then
12995 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12996set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12999if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13000 $as_echo_n "(cached) " >&6
4de997d1
PB
13001else
13002 if test -n "$CXX_FOR_TARGET"; then
13003 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13004else
1c710c3c
DJ
13005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006for as_dir in $PATH
13007do
13008 IFS=$as_save_IFS
13009 test -z "$as_dir" && as_dir=.
5213506e 13010 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13012 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13014 break 2
13015 fi
13016done
5213506e
RW
13017 done
13018IFS=$as_save_IFS
1c710c3c 13019
4de997d1
PB
13020fi
13021fi
1c710c3c 13022CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 13023if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13025$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 13026else
5213506e
RW
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028$as_echo "no" >&6; }
4de997d1
PB
13029fi
13030
5213506e 13031
e8b05380
PB
13032 fi
13033 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13034 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13035set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13037$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13038if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13039 $as_echo_n "(cached) " >&6
4de997d1 13040else
2693c0b0
PB
13041 if test -n "$CXX_FOR_TARGET"; then
13042 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 13043else
1c710c3c
DJ
13044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045for as_dir in $PATH
13046do
13047 IFS=$as_save_IFS
13048 test -z "$as_dir" && as_dir=.
5213506e 13049 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13051 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 13052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13053 break 2
13054 fi
13055done
5213506e
RW
13056 done
13057IFS=$as_save_IFS
1c710c3c 13058
4de997d1
PB
13059fi
13060fi
1c710c3c 13061CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 13062if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13064$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 13065else
5213506e
RW
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067$as_echo "no" >&6; }
4de997d1 13068fi
1c710c3c 13069
5213506e 13070
e8b05380
PB
13071 fi
13072 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13073 done
13074fi
1c710c3c 13075
2693c0b0
PB
13076if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13077 set dummy c++ g++ cxx gxx
13078 if test $build = $target ; then
13079 CXX_FOR_TARGET="$2"
4de997d1 13080 else
2693c0b0 13081 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 13082 fi
1c00b503
PB
13083else
13084 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
13085fi
13086
278a7a38
AO
13087
13088
13089if test -n "$GCC_FOR_TARGET"; then
13090 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13091elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13092 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13093fi
13094
13095if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13096 for ncn_progname in gcc; do
13097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13098set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13100$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13101if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13102 $as_echo_n "(cached) " >&6
278a7a38
AO
13103else
13104 if test -n "$GCC_FOR_TARGET"; then
13105 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13106else
13107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13108for as_dir in $PATH
13109do
13110 IFS=$as_save_IFS
13111 test -z "$as_dir" && as_dir=.
5213506e 13112 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13114 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 13115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13116 break 2
13117 fi
13118done
5213506e
RW
13119 done
13120IFS=$as_save_IFS
278a7a38
AO
13121
13122fi
13123fi
13124GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13125if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13127$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 13128else
5213506e
RW
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130$as_echo "no" >&6; }
278a7a38
AO
13131fi
13132
5213506e 13133
278a7a38
AO
13134 done
13135fi
13136
13137if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13138 for ncn_progname in gcc; do
5213506e
RW
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13140$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13141 if test -x $with_build_time_tools/${ncn_progname}; then
13142 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13144$as_echo "yes" >&6; }
e8b05380
PB
13145 break
13146 else
5213506e
RW
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148$as_echo "no" >&6; }
e8b05380
PB
13149 fi
13150 done
13151fi
13152
13153if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13154 for ncn_progname in gcc; do
13155 if test -n "$ncn_target_tool_prefix"; then
13156 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13157set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13159$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13160if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13161 $as_echo_n "(cached) " >&6
ca9f4b81 13162else
e8b05380
PB
13163 if test -n "$GCC_FOR_TARGET"; then
13164 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13165else
1c710c3c
DJ
13166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167for as_dir in $PATH
13168do
13169 IFS=$as_save_IFS
13170 test -z "$as_dir" && as_dir=.
5213506e 13171 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13173 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13175 break 2
13176 fi
13177done
5213506e
RW
13178 done
13179IFS=$as_save_IFS
1c710c3c 13180
ca9f4b81
AO
13181fi
13182fi
1c710c3c 13183GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13184if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13186$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13187else
5213506e
RW
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189$as_echo "no" >&6; }
ca9f4b81
AO
13190fi
13191
5213506e 13192
e8b05380
PB
13193 fi
13194 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13195 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13196set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13198$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13199if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13200 $as_echo_n "(cached) " >&6
ca9f4b81 13201else
e8b05380
PB
13202 if test -n "$GCC_FOR_TARGET"; then
13203 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13204else
1c710c3c
DJ
13205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206for as_dir in $PATH
13207do
13208 IFS=$as_save_IFS
13209 test -z "$as_dir" && as_dir=.
5213506e 13210 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13212 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 13213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13214 break 2
13215 fi
13216done
5213506e
RW
13217 done
13218IFS=$as_save_IFS
1c710c3c 13219
ca9f4b81
AO
13220fi
13221fi
1c710c3c 13222GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13223if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13225$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13226else
5213506e
RW
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228$as_echo "no" >&6; }
ca9f4b81 13229fi
1c710c3c 13230
5213506e 13231
e8b05380
PB
13232 fi
13233 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13234 done
13235fi
1c710c3c 13236
e8b05380
PB
13237if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13238 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
13239else
13240 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
13241fi
13242
278a7a38
AO
13243
13244
278a7a38
AO
13245if test -n "$GFORTRAN_FOR_TARGET"; then
13246 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13247elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13248 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
13249fi
13250
278a7a38
AO
13251if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13252 for ncn_progname in gfortran; do
13253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 13254set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13256$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13257if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13258 $as_echo_n "(cached) " >&6
e8b05380 13259else
278a7a38
AO
13260 if test -n "$GFORTRAN_FOR_TARGET"; then
13261 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 13262else
1c710c3c
DJ
13263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13264for as_dir in $PATH
13265do
13266 IFS=$as_save_IFS
13267 test -z "$as_dir" && as_dir=.
5213506e 13268 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13270 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13272 break 2
13273 fi
13274done
5213506e
RW
13275 done
13276IFS=$as_save_IFS
1c710c3c 13277
e8b05380
PB
13278fi
13279fi
278a7a38
AO
13280GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13281if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13283$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13284else
5213506e
RW
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286$as_echo "no" >&6; }
e8b05380 13287fi
1c710c3c 13288
5213506e 13289
e8b05380
PB
13290 done
13291fi
1c710c3c 13292
278a7a38 13293if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13294 for ncn_progname in gfortran; do
5213506e
RW
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13296$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13297 if test -x $with_build_time_tools/${ncn_progname}; then
13298 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13300$as_echo "yes" >&6; }
e8b05380
PB
13301 break
13302 else
5213506e
RW
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304$as_echo "no" >&6; }
e8b05380
PB
13305 fi
13306 done
13307fi
13308
13309if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13310 for ncn_progname in gfortran; do
13311 if test -n "$ncn_target_tool_prefix"; then
13312 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13313set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13315$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13316if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13317 $as_echo_n "(cached) " >&6
e8b05380
PB
13318else
13319 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
13320 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13321else
13322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13323for as_dir in $PATH
13324do
13325 IFS=$as_save_IFS
13326 test -z "$as_dir" && as_dir=.
5213506e 13327 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13329 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13331 break 2
13332 fi
13333done
5213506e
RW
13334 done
13335IFS=$as_save_IFS
1c710c3c 13336
e8b05380
PB
13337fi
13338fi
1c710c3c 13339GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13340if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13342$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13343else
5213506e
RW
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13345$as_echo "no" >&6; }
e8b05380
PB
13346fi
13347
5213506e 13348
e8b05380
PB
13349 fi
13350 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13352set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13354$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13355if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13356 $as_echo_n "(cached) " >&6
e8b05380
PB
13357else
13358 if test -n "$GFORTRAN_FOR_TARGET"; then
13359 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13360else
1c710c3c
DJ
13361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13362for as_dir in $PATH
13363do
13364 IFS=$as_save_IFS
13365 test -z "$as_dir" && as_dir=.
5213506e 13366 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13368 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13370 break 2
13371 fi
13372done
5213506e
RW
13373 done
13374IFS=$as_save_IFS
1c710c3c 13375
e8b05380
PB
13376fi
13377fi
1c710c3c 13378GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13379if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13381$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13382else
5213506e
RW
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13384$as_echo "no" >&6; }
e8b05380 13385fi
1c710c3c 13386
5213506e 13387
e8b05380
PB
13388 fi
13389 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13390 done
13391fi
1c710c3c 13392
e8b05380
PB
13393if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13394 set dummy gfortran
2693c0b0 13395 if test $build = $target ; then
e8b05380 13396 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 13397 else
e8b05380
PB
13398 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13399 fi
1c00b503
PB
13400else
13401 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
13402fi
13403
13404
13405
632e2a07
ILT
13406if test -n "$GOC_FOR_TARGET"; then
13407 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13408elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13409 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13410fi
13411
13412if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13413 for ncn_progname in gccgo; do
13414 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13415set dummy ${ncn_progname}; ac_word=$2
13416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13417$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13418if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13419 $as_echo_n "(cached) " >&6
13420else
13421 if test -n "$GOC_FOR_TARGET"; then
13422 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13423else
13424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13425for as_dir in $PATH
13426do
13427 IFS=$as_save_IFS
13428 test -z "$as_dir" && as_dir=.
13429 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13431 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13433 break 2
13434 fi
13435done
13436 done
13437IFS=$as_save_IFS
13438
13439fi
13440fi
13441GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13442if test -n "$GOC_FOR_TARGET"; then
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13444$as_echo "$GOC_FOR_TARGET" >&6; }
13445else
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13447$as_echo "no" >&6; }
13448fi
13449
13450
13451 done
13452fi
13453
13454if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13455 for ncn_progname in gccgo; do
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13457$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13458 if test -x $with_build_time_tools/${ncn_progname}; then
13459 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13461$as_echo "yes" >&6; }
13462 break
13463 else
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13465$as_echo "no" >&6; }
13466 fi
13467 done
13468fi
13469
13470if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13471 for ncn_progname in gccgo; do
13472 if test -n "$ncn_target_tool_prefix"; then
13473 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13474set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13476$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13477if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13478 $as_echo_n "(cached) " >&6
13479else
13480 if test -n "$GOC_FOR_TARGET"; then
13481 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13482else
13483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13484for as_dir in $PATH
13485do
13486 IFS=$as_save_IFS
13487 test -z "$as_dir" && as_dir=.
13488 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13490 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13492 break 2
13493 fi
13494done
13495 done
13496IFS=$as_save_IFS
13497
13498fi
13499fi
13500GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13501if test -n "$GOC_FOR_TARGET"; then
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13503$as_echo "$GOC_FOR_TARGET" >&6; }
13504else
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506$as_echo "no" >&6; }
13507fi
13508
13509
13510 fi
13511 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13513set dummy ${ncn_progname}; ac_word=$2
13514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13515$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13516if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13517 $as_echo_n "(cached) " >&6
13518else
13519 if test -n "$GOC_FOR_TARGET"; then
13520 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13521else
13522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13523for as_dir in $PATH
13524do
13525 IFS=$as_save_IFS
13526 test -z "$as_dir" && as_dir=.
13527 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13529 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13531 break 2
13532 fi
13533done
13534 done
13535IFS=$as_save_IFS
13536
13537fi
13538fi
13539GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13540if test -n "$GOC_FOR_TARGET"; then
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13542$as_echo "$GOC_FOR_TARGET" >&6; }
13543else
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545$as_echo "no" >&6; }
13546fi
13547
13548
13549 fi
13550 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13551 done
13552fi
13553
13554if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13555 set dummy gccgo
13556 if test $build = $target ; then
13557 GOC_FOR_TARGET="$2"
13558 else
13559 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13560 fi
13561else
13562 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13563fi
13564
13565
13566
b4c522fa
IB
13567if test -n "$GDC_FOR_TARGET"; then
13568 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13569elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13570 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13571fi
13572
13573if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13574 for ncn_progname in gdc; do
13575 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13576set dummy ${ncn_progname}; ac_word=$2
13577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13578$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13579if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13580 $as_echo_n "(cached) " >&6
13581else
13582 if test -n "$GDC_FOR_TARGET"; then
13583 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13584else
13585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13586for as_dir in $PATH
13587do
13588 IFS=$as_save_IFS
13589 test -z "$as_dir" && as_dir=.
13590 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13592 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13594 break 2
13595 fi
13596done
13597 done
13598IFS=$as_save_IFS
13599
13600fi
13601fi
13602GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13603if test -n "$GDC_FOR_TARGET"; then
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13605$as_echo "$GDC_FOR_TARGET" >&6; }
13606else
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13608$as_echo "no" >&6; }
13609fi
13610
13611
13612 done
13613fi
13614
13615if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13616 for ncn_progname in gdc; do
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13618$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13619 if test -x $with_build_time_tools/${ncn_progname}; then
13620 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13622$as_echo "yes" >&6; }
13623 break
13624 else
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13626$as_echo "no" >&6; }
13627 fi
13628 done
13629fi
13630
13631if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13632 for ncn_progname in gdc; do
13633 if test -n "$ncn_target_tool_prefix"; then
13634 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13635set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13637$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13638if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13639 $as_echo_n "(cached) " >&6
13640else
13641 if test -n "$GDC_FOR_TARGET"; then
13642 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13643else
13644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13645for as_dir in $PATH
13646do
13647 IFS=$as_save_IFS
13648 test -z "$as_dir" && as_dir=.
13649 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13651 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13653 break 2
13654 fi
13655done
13656 done
13657IFS=$as_save_IFS
13658
13659fi
13660fi
13661GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13662if test -n "$GDC_FOR_TARGET"; then
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13664$as_echo "$GDC_FOR_TARGET" >&6; }
13665else
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13667$as_echo "no" >&6; }
13668fi
13669
13670
13671 fi
13672 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13673 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13674set dummy ${ncn_progname}; ac_word=$2
13675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13676$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13677if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13678 $as_echo_n "(cached) " >&6
13679else
13680 if test -n "$GDC_FOR_TARGET"; then
13681 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13682else
13683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13684for as_dir in $PATH
13685do
13686 IFS=$as_save_IFS
13687 test -z "$as_dir" && as_dir=.
13688 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13690 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13692 break 2
13693 fi
13694done
13695 done
13696IFS=$as_save_IFS
13697
13698fi
13699fi
13700GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13701if test -n "$GDC_FOR_TARGET"; then
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13703$as_echo "$GDC_FOR_TARGET" >&6; }
13704else
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13706$as_echo "no" >&6; }
13707fi
13708
13709
13710 fi
13711 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13712 done
13713fi
13714
13715if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13716 set dummy gdc
13717 if test $build = $target ; then
13718 GDC_FOR_TARGET="$2"
13719 else
13720 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13721 fi
13722else
13723 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13724fi
13725
13726
13727
e8b05380
PB
13728cat > conftest.c << \EOF
13729#ifdef __GNUC__
13730 gcc_yay;
13731#endif
13732EOF
13733if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13734 have_gcc_for_target=yes
13735else
13736 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13737 have_gcc_for_target=no
13738fi
13739rm conftest.c
13740
13741
13742
13743
13744if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13745 if test -n "$with_build_time_tools"; then
5213506e
RW
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13747$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13748 if test -x $with_build_time_tools/ar; then
13749 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13750 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13752$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 13753 else
5213506e
RW
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13755$as_echo "no" >&6; }
d1f8db0c 13756 fi
e8b05380
PB
13757 elif test $build != $host && test $have_gcc_for_target = yes; then
13758 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
13759 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13760 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
13761 fi
13762fi
3e19841a 13763if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13764 # Extract the first word of "ar", so it can be a program name with args.
13765set dummy ar; ac_word=$2
5213506e
RW
13766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13767$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13768if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
5213506e 13769 $as_echo_n "(cached) " >&6
e8b05380 13770else
1c710c3c
DJ
13771 case $AR_FOR_TARGET in
13772 [\\/]* | ?:[\\/]*)
e8b05380
PB
13773 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13774 ;;
e8b05380 13775 *)
1c710c3c
DJ
13776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13777for as_dir in $gcc_cv_tool_dirs
13778do
13779 IFS=$as_save_IFS
13780 test -z "$as_dir" && as_dir=.
5213506e 13781 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13783 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13785 break 2
13786 fi
13787done
5213506e
RW
13788 done
13789IFS=$as_save_IFS
1c710c3c 13790
e8b05380
PB
13791 ;;
13792esac
13793fi
1c710c3c 13794AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 13795if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13797$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 13798else
5213506e
RW
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13800$as_echo "no" >&6; }
4de997d1
PB
13801fi
13802
5213506e 13803
e8b05380
PB
13804fi
13805if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
13806
13807
13808if test -n "$AR_FOR_TARGET"; then
13809 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13810elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13811 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13812fi
13813
13814if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13815 for ncn_progname in ar; do
13816 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13817set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13819$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13820if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 13821 $as_echo_n "(cached) " >&6
278a7a38
AO
13822else
13823 if test -n "$AR_FOR_TARGET"; then
13824 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13825else
13826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13827for as_dir in $PATH
13828do
13829 IFS=$as_save_IFS
13830 test -z "$as_dir" && as_dir=.
5213506e 13831 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13833 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 13834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13835 break 2
13836 fi
13837done
5213506e
RW
13838 done
13839IFS=$as_save_IFS
278a7a38
AO
13840
13841fi
13842fi
13843AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13844if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13846$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 13847else
5213506e
RW
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13849$as_echo "no" >&6; }
278a7a38
AO
13850fi
13851
5213506e 13852
278a7a38
AO
13853 done
13854fi
13855
13856if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13857 for ncn_progname in ar; do
5213506e
RW
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13859$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13860 if test -x $with_build_time_tools/${ncn_progname}; then
13861 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13863$as_echo "yes" >&6; }
e8b05380
PB
13864 break
13865 else
5213506e
RW
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13867$as_echo "no" >&6; }
e8b05380
PB
13868 fi
13869 done
13870fi
13871
13872if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13873 for ncn_progname in ar; do
13874 if test -n "$ncn_target_tool_prefix"; then
13875 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13876set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13878$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13879if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 13880 $as_echo_n "(cached) " >&6
4de997d1 13881else
e8b05380
PB
13882 if test -n "$AR_FOR_TARGET"; then
13883 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 13884else
1c710c3c
DJ
13885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13886for as_dir in $PATH
13887do
13888 IFS=$as_save_IFS
13889 test -z "$as_dir" && as_dir=.
5213506e 13890 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13892 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13894 break 2
13895 fi
13896done
5213506e
RW
13897 done
13898IFS=$as_save_IFS
1c710c3c 13899
4de997d1
PB
13900fi
13901fi
1c710c3c 13902AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 13903if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13905$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 13906else
5213506e
RW
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13908$as_echo "no" >&6; }
4de997d1
PB
13909fi
13910
5213506e 13911
e8b05380
PB
13912 fi
13913 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13914 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13915set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13917$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13918if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 13919 $as_echo_n "(cached) " >&6
e8b05380
PB
13920else
13921 if test -n "$AR_FOR_TARGET"; then
13922 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13923else
1c710c3c
DJ
13924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925for as_dir in $PATH
13926do
13927 IFS=$as_save_IFS
13928 test -z "$as_dir" && as_dir=.
5213506e 13929 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13931 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 13932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13933 break 2
13934 fi
13935done
5213506e
RW
13936 done
13937IFS=$as_save_IFS
1c710c3c 13938
e8b05380
PB
13939fi
13940fi
1c710c3c 13941AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 13942if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13944$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 13945else
5213506e
RW
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947$as_echo "no" >&6; }
e8b05380 13948fi
1c710c3c 13949
5213506e 13950
e8b05380
PB
13951 fi
13952 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13953 done
13954fi
1c710c3c 13955
e8b05380
PB
13956if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13957 set dummy ar
13958 if test $build = $target ; then
13959 AR_FOR_TARGET="$2"
13960 else
13961 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 13962 fi
1c00b503
PB
13963else
13964 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
13965fi
13966
d1f8db0c
PB
13967else
13968 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
13969fi
13970
13971
13972
13973
13974if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13975 if test -n "$with_build_time_tools"; then
5213506e
RW
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
13977$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13978 if test -x $with_build_time_tools/as; then
13979 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
13980 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
13982$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 13983 else
5213506e
RW
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13985$as_echo "no" >&6; }
d1f8db0c 13986 fi
e8b05380
PB
13987 elif test $build != $host && test $have_gcc_for_target = yes; then
13988 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
13989 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
13990 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
13991 fi
13992fi
3e19841a 13993if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13994 # Extract the first word of "as", so it can be a program name with args.
13995set dummy as; ac_word=$2
5213506e
RW
13996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13997$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13998if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
5213506e 13999 $as_echo_n "(cached) " >&6
e8b05380 14000else
1c710c3c
DJ
14001 case $AS_FOR_TARGET in
14002 [\\/]* | ?:[\\/]*)
e8b05380
PB
14003 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14004 ;;
e8b05380 14005 *)
1c710c3c
DJ
14006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14007for as_dir in $gcc_cv_tool_dirs
14008do
14009 IFS=$as_save_IFS
14010 test -z "$as_dir" && as_dir=.
5213506e 14011 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14013 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14015 break 2
14016 fi
14017done
5213506e
RW
14018 done
14019IFS=$as_save_IFS
1c710c3c 14020
e8b05380
PB
14021 ;;
14022esac
14023fi
1c710c3c 14024AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 14025if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14027$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 14028else
5213506e
RW
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14030$as_echo "no" >&6; }
e8b05380
PB
14031fi
14032
5213506e 14033
e8b05380
PB
14034fi
14035if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
14036
14037
14038if test -n "$AS_FOR_TARGET"; then
14039 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14040elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14041 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14042fi
14043
14044if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14045 for ncn_progname in as; do
14046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14047set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14049$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14050if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14051 $as_echo_n "(cached) " >&6
278a7a38
AO
14052else
14053 if test -n "$AS_FOR_TARGET"; then
14054 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14055else
14056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14057for as_dir in $PATH
14058do
14059 IFS=$as_save_IFS
14060 test -z "$as_dir" && as_dir=.
5213506e 14061 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14063 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 14064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14065 break 2
14066 fi
14067done
5213506e
RW
14068 done
14069IFS=$as_save_IFS
278a7a38
AO
14070
14071fi
14072fi
14073AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14074if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14076$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 14077else
5213506e
RW
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14079$as_echo "no" >&6; }
278a7a38
AO
14080fi
14081
5213506e 14082
278a7a38
AO
14083 done
14084fi
14085
14086if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14087 for ncn_progname in as; do
5213506e
RW
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14089$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14090 if test -x $with_build_time_tools/${ncn_progname}; then
14091 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14093$as_echo "yes" >&6; }
e8b05380
PB
14094 break
14095 else
5213506e
RW
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14097$as_echo "no" >&6; }
e8b05380
PB
14098 fi
14099 done
14100fi
14101
14102if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14103 for ncn_progname in as; do
14104 if test -n "$ncn_target_tool_prefix"; then
14105 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14106set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14108$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14109if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14110 $as_echo_n "(cached) " >&6
e8b05380
PB
14111else
14112 if test -n "$AS_FOR_TARGET"; then
14113 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14114else
1c710c3c
DJ
14115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14116for as_dir in $PATH
14117do
14118 IFS=$as_save_IFS
14119 test -z "$as_dir" && as_dir=.
5213506e 14120 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14122 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14124 break 2
14125 fi
14126done
5213506e
RW
14127 done
14128IFS=$as_save_IFS
1c710c3c 14129
e8b05380
PB
14130fi
14131fi
1c710c3c 14132AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 14133if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14135$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 14136else
5213506e
RW
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14138$as_echo "no" >&6; }
e8b05380
PB
14139fi
14140
5213506e 14141
e8b05380
PB
14142 fi
14143 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14145set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14147$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14148if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14149 $as_echo_n "(cached) " >&6
4de997d1 14150else
e8b05380
PB
14151 if test -n "$AS_FOR_TARGET"; then
14152 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 14153else
1c710c3c
DJ
14154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14155for as_dir in $PATH
14156do
14157 IFS=$as_save_IFS
14158 test -z "$as_dir" && as_dir=.
5213506e 14159 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14161 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 14162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14163 break 2
14164 fi
14165done
5213506e
RW
14166 done
14167IFS=$as_save_IFS
1c710c3c 14168
4de997d1
PB
14169fi
14170fi
1c710c3c 14171AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 14172if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14174$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 14175else
5213506e
RW
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14177$as_echo "no" >&6; }
4de997d1 14178fi
1c710c3c 14179
5213506e 14180
e8b05380
PB
14181 fi
14182 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14183 done
14184fi
1c710c3c 14185
e8b05380
PB
14186if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14187 set dummy as
14188 if test $build = $target ; then
14189 AS_FOR_TARGET="$2"
14190 else
14191 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 14192 fi
1c00b503
PB
14193else
14194 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 14195fi
2693c0b0 14196
d1f8db0c
PB
14197else
14198 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
14199fi
14200
e8b05380
PB
14201
14202
14203
14204if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14205 if test -n "$with_build_time_tools"; then
5213506e
RW
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14207$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14208 if test -x $with_build_time_tools/dlltool; then
14209 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14210 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14212$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 14213 else
5213506e
RW
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14215$as_echo "no" >&6; }
d1f8db0c 14216 fi
e8b05380
PB
14217 elif test $build != $host && test $have_gcc_for_target = yes; then
14218 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
14219 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14220 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
14221 fi
14222fi
3e19841a 14223if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14224 # Extract the first word of "dlltool", so it can be a program name with args.
14225set dummy dlltool; ac_word=$2
5213506e
RW
14226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14227$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14228if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14229 $as_echo_n "(cached) " >&6
4de997d1 14230else
1c710c3c
DJ
14231 case $DLLTOOL_FOR_TARGET in
14232 [\\/]* | ?:[\\/]*)
e8b05380
PB
14233 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14234 ;;
e8b05380 14235 *)
1c710c3c
DJ
14236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14237for as_dir in $gcc_cv_tool_dirs
14238do
14239 IFS=$as_save_IFS
14240 test -z "$as_dir" && as_dir=.
5213506e 14241 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14243 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14245 break 2
14246 fi
14247done
5213506e
RW
14248 done
14249IFS=$as_save_IFS
1c710c3c 14250
e8b05380
PB
14251 ;;
14252esac
4de997d1 14253fi
1c710c3c 14254DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 14255if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14257$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14258else
5213506e
RW
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14260$as_echo "no" >&6; }
4de997d1
PB
14261fi
14262
5213506e 14263
e8b05380
PB
14264fi
14265if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
14266
14267
14268if test -n "$DLLTOOL_FOR_TARGET"; then
14269 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14270elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14271 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14272fi
14273
14274if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14275 for ncn_progname in dlltool; do
14276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14277set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14279$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14280if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14281 $as_echo_n "(cached) " >&6
278a7a38
AO
14282else
14283 if test -n "$DLLTOOL_FOR_TARGET"; then
14284 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14285else
14286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14287for as_dir in $PATH
14288do
14289 IFS=$as_save_IFS
14290 test -z "$as_dir" && as_dir=.
5213506e 14291 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14293 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14295 break 2
14296 fi
14297done
5213506e
RW
14298 done
14299IFS=$as_save_IFS
278a7a38
AO
14300
14301fi
14302fi
14303DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14304if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14306$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 14307else
5213506e
RW
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309$as_echo "no" >&6; }
278a7a38
AO
14310fi
14311
5213506e 14312
278a7a38
AO
14313 done
14314fi
14315
14316if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14317 for ncn_progname in dlltool; do
5213506e
RW
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14319$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14320 if test -x $with_build_time_tools/${ncn_progname}; then
14321 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14323$as_echo "yes" >&6; }
e8b05380
PB
14324 break
14325 else
5213506e
RW
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14327$as_echo "no" >&6; }
e8b05380
PB
14328 fi
14329 done
14330fi
14331
14332if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14333 for ncn_progname in dlltool; do
14334 if test -n "$ncn_target_tool_prefix"; then
14335 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14336set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14338$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14339if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14340 $as_echo_n "(cached) " >&6
4de997d1 14341else
e8b05380
PB
14342 if test -n "$DLLTOOL_FOR_TARGET"; then
14343 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14344else
1c710c3c
DJ
14345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14346for as_dir in $PATH
14347do
14348 IFS=$as_save_IFS
14349 test -z "$as_dir" && as_dir=.
5213506e 14350 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14352 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14354 break 2
14355 fi
14356done
5213506e
RW
14357 done
14358IFS=$as_save_IFS
1c710c3c 14359
4de997d1
PB
14360fi
14361fi
1c710c3c 14362DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14363if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14365$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14366else
5213506e
RW
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14368$as_echo "no" >&6; }
4de997d1 14369fi
4de997d1 14370
5213506e 14371
e8b05380
PB
14372 fi
14373 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14374 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14375set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14377$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14378if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14379 $as_echo_n "(cached) " >&6
4de997d1 14380else
e8b05380
PB
14381 if test -n "$DLLTOOL_FOR_TARGET"; then
14382 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14383else
1c710c3c
DJ
14384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14385for as_dir in $PATH
14386do
14387 IFS=$as_save_IFS
14388 test -z "$as_dir" && as_dir=.
5213506e 14389 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14391 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14393 break 2
14394 fi
14395done
5213506e
RW
14396 done
14397IFS=$as_save_IFS
1c710c3c 14398
4de997d1
PB
14399fi
14400fi
1c710c3c 14401DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14402if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14404$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14405else
5213506e
RW
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14407$as_echo "no" >&6; }
4de997d1 14408fi
1c710c3c 14409
5213506e 14410
e8b05380
PB
14411 fi
14412 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14413 done
14414fi
1c710c3c 14415
e8b05380
PB
14416if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14417 set dummy dlltool
14418 if test $build = $target ; then
14419 DLLTOOL_FOR_TARGET="$2"
14420 else
14421 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14422 fi
1c00b503
PB
14423else
14424 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
14425fi
14426
d1f8db0c
PB
14427else
14428 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
14429fi
14430
4de997d1 14431
e8b05380
PB
14432
14433
3b5e8ee4
IS
14434if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14435 if test -n "$with_build_time_tools"; then
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14437$as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14438 if test -x $with_build_time_tools/dsymutil; then
14439 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14440 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14442$as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14443 else
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14445$as_echo "no" >&6; }
14446 fi
14447 elif test $build != $host && test $have_gcc_for_target = yes; then
14448 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14449 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14450 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14451 fi
14452fi
14453if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14454 # Extract the first word of "dsymutil", so it can be a program name with args.
14455set dummy dsymutil; ac_word=$2
14456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14457$as_echo_n "checking for $ac_word... " >&6; }
14458if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14459 $as_echo_n "(cached) " >&6
14460else
14461 case $DSYMUTIL_FOR_TARGET in
14462 [\\/]* | ?:[\\/]*)
14463 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14464 ;;
14465 *)
14466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14467for as_dir in $gcc_cv_tool_dirs
14468do
14469 IFS=$as_save_IFS
14470 test -z "$as_dir" && as_dir=.
14471 for ac_exec_ext in '' $ac_executable_extensions; do
14472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14473 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14475 break 2
14476 fi
14477done
14478 done
14479IFS=$as_save_IFS
14480
14481 ;;
14482esac
14483fi
14484DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14485if test -n "$DSYMUTIL_FOR_TARGET"; then
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14487$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14488else
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14490$as_echo "no" >&6; }
14491fi
14492
14493
14494fi
14495if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14496
14497
14498if test -n "$DSYMUTIL_FOR_TARGET"; then
14499 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14500elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14501 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14502fi
14503
14504if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14505 for ncn_progname in dsymutil; do
14506 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14507set dummy ${ncn_progname}; ac_word=$2
14508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14509$as_echo_n "checking for $ac_word... " >&6; }
14510if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14511 $as_echo_n "(cached) " >&6
14512else
14513 if test -n "$DSYMUTIL_FOR_TARGET"; then
14514 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14515else
14516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14517for as_dir in $PATH
14518do
14519 IFS=$as_save_IFS
14520 test -z "$as_dir" && as_dir=.
14521 for ac_exec_ext in '' $ac_executable_extensions; do
14522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14523 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14525 break 2
14526 fi
14527done
14528 done
14529IFS=$as_save_IFS
14530
14531fi
14532fi
14533DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14534if test -n "$DSYMUTIL_FOR_TARGET"; then
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14536$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14537else
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14539$as_echo "no" >&6; }
14540fi
14541
14542
14543 done
14544fi
14545
14546if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14547 for ncn_progname in dsymutil; do
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14549$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14550 if test -x $with_build_time_tools/${ncn_progname}; then
14551 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14553$as_echo "yes" >&6; }
14554 break
14555 else
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14557$as_echo "no" >&6; }
14558 fi
14559 done
14560fi
14561
14562if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14563 for ncn_progname in dsymutil; do
14564 if test -n "$ncn_target_tool_prefix"; then
14565 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14566set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14568$as_echo_n "checking for $ac_word... " >&6; }
14569if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14570 $as_echo_n "(cached) " >&6
14571else
14572 if test -n "$DSYMUTIL_FOR_TARGET"; then
14573 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14574else
14575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14576for as_dir in $PATH
14577do
14578 IFS=$as_save_IFS
14579 test -z "$as_dir" && as_dir=.
14580 for ac_exec_ext in '' $ac_executable_extensions; do
14581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14582 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14584 break 2
14585 fi
14586done
14587 done
14588IFS=$as_save_IFS
14589
14590fi
14591fi
14592DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14593if test -n "$DSYMUTIL_FOR_TARGET"; then
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14595$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14596else
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14598$as_echo "no" >&6; }
14599fi
14600
14601
14602 fi
14603 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14605set dummy ${ncn_progname}; ac_word=$2
14606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14607$as_echo_n "checking for $ac_word... " >&6; }
14608if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14609 $as_echo_n "(cached) " >&6
14610else
14611 if test -n "$DSYMUTIL_FOR_TARGET"; then
14612 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14613else
14614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14615for as_dir in $PATH
14616do
14617 IFS=$as_save_IFS
14618 test -z "$as_dir" && as_dir=.
14619 for ac_exec_ext in '' $ac_executable_extensions; do
14620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14621 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14623 break 2
14624 fi
14625done
14626 done
14627IFS=$as_save_IFS
14628
14629fi
14630fi
14631DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14632if test -n "$DSYMUTIL_FOR_TARGET"; then
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14634$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14635else
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14637$as_echo "no" >&6; }
14638fi
14639
14640
14641 fi
14642 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14643 done
14644fi
14645
14646if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14647 set dummy dsymutil
14648 if test $build = $target ; then
14649 DSYMUTIL_FOR_TARGET="$2"
14650 else
14651 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14652 fi
14653else
14654 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14655fi
14656
14657else
14658 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14659fi
14660
14661
14662
14663
e8b05380
PB
14664if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14665 if test -n "$with_build_time_tools"; then
5213506e
RW
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14667$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14668 if test -x $with_build_time_tools/ld; then
14669 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14670 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14672$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 14673 else
5213506e
RW
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14675$as_echo "no" >&6; }
d1f8db0c 14676 fi
e8b05380
PB
14677 elif test $build != $host && test $have_gcc_for_target = yes; then
14678 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
14679 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14680 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 14681 fi
e8b05380 14682fi
3e19841a 14683if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14684 # Extract the first word of "ld", so it can be a program name with args.
14685set dummy ld; ac_word=$2
5213506e
RW
14686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14687$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14688if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
5213506e 14689 $as_echo_n "(cached) " >&6
4de997d1 14690else
1c710c3c
DJ
14691 case $LD_FOR_TARGET in
14692 [\\/]* | ?:[\\/]*)
e8b05380
PB
14693 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14694 ;;
e8b05380 14695 *)
1c710c3c
DJ
14696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14697for as_dir in $gcc_cv_tool_dirs
14698do
14699 IFS=$as_save_IFS
14700 test -z "$as_dir" && as_dir=.
5213506e 14701 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14703 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14705 break 2
14706 fi
14707done
5213506e
RW
14708 done
14709IFS=$as_save_IFS
1c710c3c 14710
e8b05380
PB
14711 ;;
14712esac
4de997d1 14713fi
1c710c3c 14714LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 14715if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14717$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 14718else
5213506e
RW
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14720$as_echo "no" >&6; }
4de997d1 14721fi
2693c0b0 14722
5213506e 14723
e8b05380
PB
14724fi
14725if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
14726
14727
14728if test -n "$LD_FOR_TARGET"; then
14729 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14730elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14731 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14732fi
14733
14734if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14735 for ncn_progname in ld; do
14736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14737set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14739$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14740if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14741 $as_echo_n "(cached) " >&6
278a7a38
AO
14742else
14743 if test -n "$LD_FOR_TARGET"; then
14744 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14745else
14746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14747for as_dir in $PATH
14748do
14749 IFS=$as_save_IFS
14750 test -z "$as_dir" && as_dir=.
5213506e 14751 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14753 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 14754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14755 break 2
14756 fi
14757done
5213506e
RW
14758 done
14759IFS=$as_save_IFS
278a7a38
AO
14760
14761fi
14762fi
14763LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14764if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14766$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 14767else
5213506e
RW
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14769$as_echo "no" >&6; }
278a7a38
AO
14770fi
14771
5213506e 14772
278a7a38
AO
14773 done
14774fi
14775
14776if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14777 for ncn_progname in ld; do
5213506e
RW
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14779$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14780 if test -x $with_build_time_tools/${ncn_progname}; then
14781 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14783$as_echo "yes" >&6; }
e8b05380
PB
14784 break
14785 else
5213506e
RW
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14787$as_echo "no" >&6; }
e8b05380
PB
14788 fi
14789 done
ca9f4b81
AO
14790fi
14791
e8b05380
PB
14792if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14793 for ncn_progname in ld; do
14794 if test -n "$ncn_target_tool_prefix"; then
14795 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14796set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14798$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14799if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14800 $as_echo_n "(cached) " >&6
ca9f4b81 14801else
4de997d1
PB
14802 if test -n "$LD_FOR_TARGET"; then
14803 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 14804else
1c710c3c
DJ
14805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14806for as_dir in $PATH
14807do
14808 IFS=$as_save_IFS
14809 test -z "$as_dir" && as_dir=.
5213506e 14810 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14812 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14814 break 2
14815 fi
14816done
5213506e
RW
14817 done
14818IFS=$as_save_IFS
1c710c3c 14819
ca9f4b81
AO
14820fi
14821fi
1c710c3c 14822LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 14823if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14825$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 14826else
5213506e
RW
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14828$as_echo "no" >&6; }
ca9f4b81
AO
14829fi
14830
5213506e 14831
e8b05380
PB
14832 fi
14833 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14835set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14837$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14838if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14839 $as_echo_n "(cached) " >&6
ca9f4b81 14840else
2693c0b0
PB
14841 if test -n "$LD_FOR_TARGET"; then
14842 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 14843else
1c710c3c
DJ
14844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14845for as_dir in $PATH
14846do
14847 IFS=$as_save_IFS
14848 test -z "$as_dir" && as_dir=.
5213506e 14849 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14851 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 14852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14853 break 2
14854 fi
14855done
5213506e
RW
14856 done
14857IFS=$as_save_IFS
1c710c3c 14858
ca9f4b81
AO
14859fi
14860fi
1c710c3c 14861LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 14862if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14864$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 14865else
5213506e
RW
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14867$as_echo "no" >&6; }
ca9f4b81 14868fi
1c710c3c 14869
5213506e 14870
e8b05380
PB
14871 fi
14872 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14873 done
14874fi
1c710c3c 14875
2693c0b0
PB
14876if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14877 set dummy ld
14878 if test $build = $target ; then
14879 LD_FOR_TARGET="$2"
ca9f4b81 14880 else
2693c0b0 14881 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 14882 fi
1c00b503
PB
14883else
14884 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
14885fi
14886
d1f8db0c
PB
14887else
14888 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
14889fi
14890
14891
14892
14893
14894if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14895 if test -n "$with_build_time_tools"; then
5213506e
RW
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14897$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14898 if test -x $with_build_time_tools/lipo; then
14899 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14900 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14902$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 14903 else
5213506e
RW
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14905$as_echo "no" >&6; }
d1f8db0c 14906 fi
e8b05380
PB
14907 elif test $build != $host && test $have_gcc_for_target = yes; then
14908 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
14909 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14910 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
14911 fi
14912fi
278a7a38
AO
14913if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14914 # Extract the first word of "lipo", so it can be a program name with args.
14915set dummy lipo; ac_word=$2
5213506e
RW
14916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14917$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14918if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
5213506e 14919 $as_echo_n "(cached) " >&6
278a7a38
AO
14920else
14921 case $LIPO_FOR_TARGET in
14922 [\\/]* | ?:[\\/]*)
14923 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14924 ;;
14925 *)
14926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14927for as_dir in $gcc_cv_tool_dirs
14928do
14929 IFS=$as_save_IFS
14930 test -z "$as_dir" && as_dir=.
5213506e 14931 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14933 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14935 break 2
14936 fi
14937done
5213506e
RW
14938 done
14939IFS=$as_save_IFS
278a7a38
AO
14940
14941 ;;
14942esac
14943fi
14944LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 14945if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14947$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 14948else
5213506e
RW
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14950$as_echo "no" >&6; }
278a7a38
AO
14951fi
14952
5213506e 14953
278a7a38
AO
14954fi
14955if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14956
14957
14958if test -n "$LIPO_FOR_TARGET"; then
14959 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14960elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14961 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14962fi
14963
14964if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14965 for ncn_progname in lipo; do
14966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14967set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14969$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14970if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 14971 $as_echo_n "(cached) " >&6
e8b05380 14972else
278a7a38
AO
14973 if test -n "$LIPO_FOR_TARGET"; then
14974 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14975else
14976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14977for as_dir in $PATH
1c710c3c
DJ
14978do
14979 IFS=$as_save_IFS
14980 test -z "$as_dir" && as_dir=.
5213506e 14981 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14983 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 14984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14985 break 2
14986 fi
14987done
5213506e
RW
14988 done
14989IFS=$as_save_IFS
1c710c3c 14990
e8b05380 14991fi
278a7a38
AO
14992fi
14993LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 14994if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14996$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 14997else
5213506e
RW
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14999$as_echo "no" >&6; }
e8b05380
PB
15000fi
15001
5213506e 15002
278a7a38 15003 done
e8b05380 15004fi
278a7a38
AO
15005
15006if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15007 for ncn_progname in lipo; do
5213506e
RW
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15009$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15010 if test -x $with_build_time_tools/${ncn_progname}; then
15011 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15013$as_echo "yes" >&6; }
e8b05380
PB
15014 break
15015 else
5213506e
RW
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15017$as_echo "no" >&6; }
e8b05380
PB
15018 fi
15019 done
15020fi
15021
15022if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15023 for ncn_progname in lipo; do
15024 if test -n "$ncn_target_tool_prefix"; then
15025 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15026set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15028$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15029if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15030 $as_echo_n "(cached) " >&6
040b1c5a
GK
15031else
15032 if test -n "$LIPO_FOR_TARGET"; then
15033 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15034else
1c710c3c
DJ
15035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15036for as_dir in $PATH
15037do
15038 IFS=$as_save_IFS
15039 test -z "$as_dir" && as_dir=.
5213506e 15040 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15042 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15044 break 2
15045 fi
15046done
5213506e
RW
15047 done
15048IFS=$as_save_IFS
1c710c3c 15049
040b1c5a
GK
15050fi
15051fi
1c710c3c 15052LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 15053if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15055$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 15056else
5213506e
RW
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15058$as_echo "no" >&6; }
040b1c5a
GK
15059fi
15060
5213506e 15061
e8b05380
PB
15062 fi
15063 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 15065set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15067$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15068if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15069 $as_echo_n "(cached) " >&6
040b1c5a
GK
15070else
15071 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
15072 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15073else
1c710c3c
DJ
15074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15075for as_dir in $PATH
15076do
15077 IFS=$as_save_IFS
15078 test -z "$as_dir" && as_dir=.
5213506e 15079 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15081 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 15082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15083 break 2
15084 fi
15085done
5213506e
RW
15086 done
15087IFS=$as_save_IFS
1c710c3c 15088
040b1c5a
GK
15089fi
15090fi
1c710c3c 15091LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 15092if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15094$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 15095else
5213506e
RW
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15097$as_echo "no" >&6; }
040b1c5a 15098fi
1c710c3c 15099
5213506e 15100
e8b05380
PB
15101 fi
15102 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15103 done
15104fi
1c710c3c 15105
040b1c5a
GK
15106if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15107 set dummy lipo
15108 if test $build = $target ; then
15109 LIPO_FOR_TARGET="$2"
15110 else
15111 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15112 fi
1c00b503
PB
15113else
15114 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
15115fi
15116
d1f8db0c
PB
15117else
15118 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
15119fi
15120
15121
15122
15123
15124if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15125 if test -n "$with_build_time_tools"; then
5213506e
RW
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15127$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15128 if test -x $with_build_time_tools/nm; then
15129 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15130 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15132$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 15133 else
5213506e
RW
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15135$as_echo "no" >&6; }
d1f8db0c 15136 fi
e8b05380
PB
15137 elif test $build != $host && test $have_gcc_for_target = yes; then
15138 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
15139 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15140 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
15141 fi
15142fi
3e19841a 15143if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15144 # Extract the first word of "nm", so it can be a program name with args.
15145set dummy nm; ac_word=$2
5213506e
RW
15146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15147$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15148if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
5213506e 15149 $as_echo_n "(cached) " >&6
e8b05380 15150else
1c710c3c
DJ
15151 case $NM_FOR_TARGET in
15152 [\\/]* | ?:[\\/]*)
e8b05380
PB
15153 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15154 ;;
e8b05380 15155 *)
1c710c3c
DJ
15156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15157for as_dir in $gcc_cv_tool_dirs
15158do
15159 IFS=$as_save_IFS
15160 test -z "$as_dir" && as_dir=.
5213506e 15161 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15163 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15165 break 2
15166 fi
15167done
5213506e
RW
15168 done
15169IFS=$as_save_IFS
1c710c3c 15170
e8b05380
PB
15171 ;;
15172esac
15173fi
1c710c3c 15174NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 15175if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15177$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 15178else
5213506e
RW
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15180$as_echo "no" >&6; }
e8b05380
PB
15181fi
15182
5213506e 15183
e8b05380
PB
15184fi
15185if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
15186
15187
15188if test -n "$NM_FOR_TARGET"; then
15189 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15190elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15191 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15192fi
15193
15194if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15195 for ncn_progname in nm; do
15196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15197set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15199$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15200if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15201 $as_echo_n "(cached) " >&6
278a7a38
AO
15202else
15203 if test -n "$NM_FOR_TARGET"; then
15204 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15205else
15206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15207for as_dir in $PATH
15208do
15209 IFS=$as_save_IFS
15210 test -z "$as_dir" && as_dir=.
5213506e 15211 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15213 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15215 break 2
15216 fi
15217done
5213506e
RW
15218 done
15219IFS=$as_save_IFS
278a7a38
AO
15220
15221fi
15222fi
15223NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15224if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15226$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 15227else
5213506e
RW
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15229$as_echo "no" >&6; }
278a7a38
AO
15230fi
15231
5213506e 15232
278a7a38
AO
15233 done
15234fi
15235
15236if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15237 for ncn_progname in nm; do
5213506e
RW
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15239$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15240 if test -x $with_build_time_tools/${ncn_progname}; then
15241 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15243$as_echo "yes" >&6; }
e8b05380
PB
15244 break
15245 else
5213506e
RW
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15247$as_echo "no" >&6; }
e8b05380
PB
15248 fi
15249 done
15250fi
15251
15252if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15253 for ncn_progname in nm; do
15254 if test -n "$ncn_target_tool_prefix"; then
15255 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 15256set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15258$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15259if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15260 $as_echo_n "(cached) " >&6
ca9f4b81 15261else
4de997d1
PB
15262 if test -n "$NM_FOR_TARGET"; then
15263 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15264else
1c710c3c
DJ
15265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15266for as_dir in $PATH
15267do
15268 IFS=$as_save_IFS
15269 test -z "$as_dir" && as_dir=.
5213506e 15270 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15272 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15274 break 2
15275 fi
15276done
5213506e
RW
15277 done
15278IFS=$as_save_IFS
1c710c3c 15279
ca9f4b81
AO
15280fi
15281fi
1c710c3c 15282NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 15283if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15285$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15286else
5213506e
RW
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15288$as_echo "no" >&6; }
ca9f4b81
AO
15289fi
15290
5213506e 15291
e8b05380
PB
15292 fi
15293 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15294 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 15295set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15297$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15298if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15299 $as_echo_n "(cached) " >&6
ca9f4b81 15300else
2693c0b0
PB
15301 if test -n "$NM_FOR_TARGET"; then
15302 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15303else
1c710c3c
DJ
15304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15305for as_dir in $PATH
15306do
15307 IFS=$as_save_IFS
15308 test -z "$as_dir" && as_dir=.
5213506e 15309 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15311 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15313 break 2
15314 fi
15315done
5213506e
RW
15316 done
15317IFS=$as_save_IFS
1c710c3c 15318
ca9f4b81
AO
15319fi
15320fi
1c710c3c 15321NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 15322if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15324$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15325else
5213506e
RW
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15327$as_echo "no" >&6; }
ca9f4b81 15328fi
1c710c3c 15329
5213506e 15330
e8b05380
PB
15331 fi
15332 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15333 done
15334fi
1c710c3c 15335
2693c0b0
PB
15336if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15337 set dummy nm
15338 if test $build = $target ; then
15339 NM_FOR_TARGET="$2"
ca9f4b81 15340 else
2693c0b0 15341 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 15342 fi
1c00b503
PB
15343else
15344 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
15345fi
15346
d1f8db0c
PB
15347else
15348 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
15349fi
15350
15351
15352
15353
9bccfdf5
AP
15354if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15355 if test -n "$with_build_time_tools"; then
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15357$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15358 if test -x $with_build_time_tools/objcopy; then
15359 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15360 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15362$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15363 else
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15365$as_echo "no" >&6; }
15366 fi
15367 elif test $build != $host && test $have_gcc_for_target = yes; then
15368 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15369 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15370 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15371 fi
15372fi
15373if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15374 # Extract the first word of "objcopy", so it can be a program name with args.
15375set dummy objcopy; ac_word=$2
15376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15377$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15378if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15379 $as_echo_n "(cached) " >&6
15380else
15381 case $OBJCOPY_FOR_TARGET in
15382 [\\/]* | ?:[\\/]*)
15383 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15384 ;;
15385 *)
15386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15387for as_dir in $gcc_cv_tool_dirs
15388do
15389 IFS=$as_save_IFS
15390 test -z "$as_dir" && as_dir=.
15391 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15393 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15395 break 2
15396 fi
15397done
15398 done
15399IFS=$as_save_IFS
15400
15401 ;;
15402esac
15403fi
15404OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15405if test -n "$OBJCOPY_FOR_TARGET"; then
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15407$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15408else
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15410$as_echo "no" >&6; }
15411fi
15412
15413
15414fi
15415if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15416
15417
15418if test -n "$OBJCOPY_FOR_TARGET"; then
15419 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15420elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15421 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15422fi
15423
15424if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15425 for ncn_progname in objcopy; do
15426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15427set dummy ${ncn_progname}; ac_word=$2
15428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15429$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15430if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15431 $as_echo_n "(cached) " >&6
15432else
15433 if test -n "$OBJCOPY_FOR_TARGET"; then
15434 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15435else
15436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15437for as_dir in $PATH
15438do
15439 IFS=$as_save_IFS
15440 test -z "$as_dir" && as_dir=.
15441 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15443 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15445 break 2
15446 fi
15447done
15448 done
15449IFS=$as_save_IFS
15450
15451fi
15452fi
15453OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15454if test -n "$OBJCOPY_FOR_TARGET"; then
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15456$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15457else
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15459$as_echo "no" >&6; }
15460fi
15461
15462
15463 done
15464fi
15465
15466if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15467 for ncn_progname in objcopy; do
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15469$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15470 if test -x $with_build_time_tools/${ncn_progname}; then
15471 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15473$as_echo "yes" >&6; }
15474 break
15475 else
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15477$as_echo "no" >&6; }
15478 fi
15479 done
15480fi
15481
15482if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15483 for ncn_progname in objcopy; do
15484 if test -n "$ncn_target_tool_prefix"; then
15485 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15486set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15488$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15489if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15490 $as_echo_n "(cached) " >&6
15491else
15492 if test -n "$OBJCOPY_FOR_TARGET"; then
15493 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15494else
15495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15496for as_dir in $PATH
15497do
15498 IFS=$as_save_IFS
15499 test -z "$as_dir" && as_dir=.
15500 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15502 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15504 break 2
15505 fi
15506done
15507 done
15508IFS=$as_save_IFS
15509
15510fi
15511fi
15512OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15513if test -n "$OBJCOPY_FOR_TARGET"; then
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15515$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15516else
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15518$as_echo "no" >&6; }
15519fi
15520
15521
15522 fi
15523 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15525set dummy ${ncn_progname}; ac_word=$2
15526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15527$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15528if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15529 $as_echo_n "(cached) " >&6
15530else
15531 if test -n "$OBJCOPY_FOR_TARGET"; then
15532 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15533else
15534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15535for as_dir in $PATH
15536do
15537 IFS=$as_save_IFS
15538 test -z "$as_dir" && as_dir=.
15539 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15541 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15543 break 2
15544 fi
15545done
15546 done
15547IFS=$as_save_IFS
15548
15549fi
15550fi
15551OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15552if test -n "$OBJCOPY_FOR_TARGET"; then
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15554$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15555else
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15557$as_echo "no" >&6; }
15558fi
15559
15560
15561 fi
15562 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15563 done
15564fi
15565
15566if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15567 set dummy objcopy
15568 if test $build = $target ; then
15569 OBJCOPY_FOR_TARGET="$2"
15570 else
15571 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15572 fi
15573else
15574 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15575fi
15576
15577else
15578 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15579fi
15580
15581
15582
15583
e8b05380
PB
15584if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15585 if test -n "$with_build_time_tools"; then
5213506e
RW
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15587$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15588 if test -x $with_build_time_tools/objdump; then
15589 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15590 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15592$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 15593 else
5213506e
RW
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15595$as_echo "no" >&6; }
d1f8db0c 15596 fi
e8b05380
PB
15597 elif test $build != $host && test $have_gcc_for_target = yes; then
15598 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
15599 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15600 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
15601 fi
15602fi
3e19841a 15603if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15604 # Extract the first word of "objdump", so it can be a program name with args.
15605set dummy objdump; ac_word=$2
5213506e
RW
15606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15607$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15608if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15609 $as_echo_n "(cached) " >&6
e8b05380 15610else
1c710c3c
DJ
15611 case $OBJDUMP_FOR_TARGET in
15612 [\\/]* | ?:[\\/]*)
e8b05380
PB
15613 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15614 ;;
e8b05380 15615 *)
1c710c3c
DJ
15616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15617for as_dir in $gcc_cv_tool_dirs
15618do
15619 IFS=$as_save_IFS
15620 test -z "$as_dir" && as_dir=.
5213506e 15621 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15623 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15625 break 2
15626 fi
15627done
5213506e
RW
15628 done
15629IFS=$as_save_IFS
1c710c3c 15630
e8b05380
PB
15631 ;;
15632esac
15633fi
1c710c3c 15634OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 15635if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15637$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 15638else
5213506e
RW
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15640$as_echo "no" >&6; }
e8b05380
PB
15641fi
15642
5213506e 15643
e8b05380
PB
15644fi
15645if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
15646
15647
15648if test -n "$OBJDUMP_FOR_TARGET"; then
15649 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15650elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15651 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15652fi
15653
15654if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15655 for ncn_progname in objdump; do
15656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15657set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15659$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15660if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15661 $as_echo_n "(cached) " >&6
278a7a38
AO
15662else
15663 if test -n "$OBJDUMP_FOR_TARGET"; then
15664 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15665else
15666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15667for as_dir in $PATH
15668do
15669 IFS=$as_save_IFS
15670 test -z "$as_dir" && as_dir=.
5213506e 15671 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15673 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 15674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15675 break 2
15676 fi
15677done
5213506e
RW
15678 done
15679IFS=$as_save_IFS
278a7a38
AO
15680
15681fi
15682fi
15683OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15684if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15686$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 15687else
5213506e
RW
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15689$as_echo "no" >&6; }
278a7a38
AO
15690fi
15691
5213506e 15692
278a7a38
AO
15693 done
15694fi
15695
15696if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15697 for ncn_progname in objdump; do
5213506e
RW
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15699$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15700 if test -x $with_build_time_tools/${ncn_progname}; then
15701 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15703$as_echo "yes" >&6; }
e8b05380
PB
15704 break
15705 else
5213506e
RW
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15707$as_echo "no" >&6; }
e8b05380
PB
15708 fi
15709 done
15710fi
15711
15712if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15713 for ncn_progname in objdump; do
15714 if test -n "$ncn_target_tool_prefix"; then
15715 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15716set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15718$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15719if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15720 $as_echo_n "(cached) " >&6
d739199a
DJ
15721else
15722 if test -n "$OBJDUMP_FOR_TARGET"; then
15723 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15724else
1c710c3c
DJ
15725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15726for as_dir in $PATH
15727do
15728 IFS=$as_save_IFS
15729 test -z "$as_dir" && as_dir=.
5213506e 15730 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15732 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15734 break 2
15735 fi
15736done
5213506e
RW
15737 done
15738IFS=$as_save_IFS
1c710c3c 15739
d739199a
DJ
15740fi
15741fi
1c710c3c 15742OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 15743if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15745$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 15746else
5213506e
RW
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15748$as_echo "no" >&6; }
d739199a
DJ
15749fi
15750
5213506e 15751
e8b05380
PB
15752 fi
15753 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 15755set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15757$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15758if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15759 $as_echo_n "(cached) " >&6
d739199a
DJ
15760else
15761 if test -n "$OBJDUMP_FOR_TARGET"; then
15762 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15763else
1c710c3c
DJ
15764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15765for as_dir in $PATH
15766do
15767 IFS=$as_save_IFS
15768 test -z "$as_dir" && as_dir=.
5213506e 15769 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15771 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 15772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15773 break 2
15774 fi
15775done
5213506e
RW
15776 done
15777IFS=$as_save_IFS
1c710c3c 15778
d739199a
DJ
15779fi
15780fi
1c710c3c 15781OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 15782if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15784$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 15785else
5213506e
RW
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15787$as_echo "no" >&6; }
d739199a 15788fi
1c710c3c 15789
5213506e 15790
e8b05380
PB
15791 fi
15792 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15793 done
15794fi
1c710c3c 15795
d739199a
DJ
15796if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15797 set dummy objdump
15798 if test $build = $target ; then
15799 OBJDUMP_FOR_TARGET="$2"
15800 else
15801 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15802 fi
1c00b503
PB
15803else
15804 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
15805fi
15806
d1f8db0c
PB
15807else
15808 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
15809fi
15810
15811
15812
15813
e4a9a572
IS
15814if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15815 if test -n "$with_build_time_tools"; then
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15817$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15818 if test -x $with_build_time_tools/otool; then
15819 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15820 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15822$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15823 else
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15825$as_echo "no" >&6; }
15826 fi
15827 elif test $build != $host && test $have_gcc_for_target = yes; then
15828 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15829 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15830 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15831 fi
15832fi
15833if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15834 # Extract the first word of "otool", so it can be a program name with args.
15835set dummy otool; ac_word=$2
15836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15837$as_echo_n "checking for $ac_word... " >&6; }
15838if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15839 $as_echo_n "(cached) " >&6
15840else
15841 case $OTOOL_FOR_TARGET in
15842 [\\/]* | ?:[\\/]*)
15843 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15844 ;;
15845 *)
15846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15847for as_dir in $gcc_cv_tool_dirs
15848do
15849 IFS=$as_save_IFS
15850 test -z "$as_dir" && as_dir=.
15851 for ac_exec_ext in '' $ac_executable_extensions; do
15852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15853 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15855 break 2
15856 fi
15857done
15858 done
15859IFS=$as_save_IFS
15860
15861 ;;
15862esac
15863fi
15864OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15865if test -n "$OTOOL_FOR_TARGET"; then
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15867$as_echo "$OTOOL_FOR_TARGET" >&6; }
15868else
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15870$as_echo "no" >&6; }
15871fi
15872
15873
15874fi
15875if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15876
15877
15878if test -n "$OTOOL_FOR_TARGET"; then
15879 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15880elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15881 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15882fi
15883
15884if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15885 for ncn_progname in otool; do
15886 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15887set dummy ${ncn_progname}; ac_word=$2
15888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15889$as_echo_n "checking for $ac_word... " >&6; }
15890if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15891 $as_echo_n "(cached) " >&6
15892else
15893 if test -n "$OTOOL_FOR_TARGET"; then
15894 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15895else
15896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15897for as_dir in $PATH
15898do
15899 IFS=$as_save_IFS
15900 test -z "$as_dir" && as_dir=.
15901 for ac_exec_ext in '' $ac_executable_extensions; do
15902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15903 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15905 break 2
15906 fi
15907done
15908 done
15909IFS=$as_save_IFS
15910
15911fi
15912fi
15913OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15914if test -n "$OTOOL_FOR_TARGET"; then
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15916$as_echo "$OTOOL_FOR_TARGET" >&6; }
15917else
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15919$as_echo "no" >&6; }
15920fi
15921
15922
15923 done
15924fi
15925
15926if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15927 for ncn_progname in otool; do
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15929$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15930 if test -x $with_build_time_tools/${ncn_progname}; then
15931 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15933$as_echo "yes" >&6; }
15934 break
15935 else
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15937$as_echo "no" >&6; }
15938 fi
15939 done
15940fi
15941
15942if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15943 for ncn_progname in otool; do
15944 if test -n "$ncn_target_tool_prefix"; then
15945 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15946set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15948$as_echo_n "checking for $ac_word... " >&6; }
15949if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15950 $as_echo_n "(cached) " >&6
15951else
15952 if test -n "$OTOOL_FOR_TARGET"; then
15953 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15954else
15955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15956for as_dir in $PATH
15957do
15958 IFS=$as_save_IFS
15959 test -z "$as_dir" && as_dir=.
15960 for ac_exec_ext in '' $ac_executable_extensions; do
15961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15962 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15964 break 2
15965 fi
15966done
15967 done
15968IFS=$as_save_IFS
15969
15970fi
15971fi
15972OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15973if test -n "$OTOOL_FOR_TARGET"; then
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15975$as_echo "$OTOOL_FOR_TARGET" >&6; }
15976else
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15978$as_echo "no" >&6; }
15979fi
15980
15981
15982 fi
15983 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
15984 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15985set dummy ${ncn_progname}; ac_word=$2
15986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15987$as_echo_n "checking for $ac_word... " >&6; }
15988if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15989 $as_echo_n "(cached) " >&6
15990else
15991 if test -n "$OTOOL_FOR_TARGET"; then
15992 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15993else
15994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15995for as_dir in $PATH
15996do
15997 IFS=$as_save_IFS
15998 test -z "$as_dir" && as_dir=.
15999 for ac_exec_ext in '' $ac_executable_extensions; do
16000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16001 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16003 break 2
16004 fi
16005done
16006 done
16007IFS=$as_save_IFS
16008
16009fi
16010fi
16011OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16012if test -n "$OTOOL_FOR_TARGET"; then
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16014$as_echo "$OTOOL_FOR_TARGET" >&6; }
16015else
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16017$as_echo "no" >&6; }
16018fi
16019
16020
16021 fi
16022 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16023 done
16024fi
16025
16026if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16027 set dummy otool
16028 if test $build = $target ; then
16029 OTOOL_FOR_TARGET="$2"
16030 else
16031 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16032 fi
16033else
16034 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16035fi
16036
16037else
16038 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16039fi
16040
16041
16042
16043
e8b05380
PB
16044if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16045 if test -n "$with_build_time_tools"; then
5213506e
RW
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16047$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16048 if test -x $with_build_time_tools/ranlib; then
16049 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16050 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16052$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 16053 else
5213506e
RW
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16055$as_echo "no" >&6; }
d1f8db0c 16056 fi
e8b05380
PB
16057 elif test $build != $host && test $have_gcc_for_target = yes; then
16058 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
16059 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16060 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
16061 fi
16062fi
3e19841a 16063if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16064 # Extract the first word of "ranlib", so it can be a program name with args.
16065set dummy ranlib; ac_word=$2
5213506e
RW
16066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16067$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16068if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
5213506e 16069 $as_echo_n "(cached) " >&6
e8b05380 16070else
1c710c3c
DJ
16071 case $RANLIB_FOR_TARGET in
16072 [\\/]* | ?:[\\/]*)
e8b05380
PB
16073 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16074 ;;
e8b05380 16075 *)
1c710c3c
DJ
16076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16077for as_dir in $gcc_cv_tool_dirs
16078do
16079 IFS=$as_save_IFS
16080 test -z "$as_dir" && as_dir=.
5213506e 16081 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16083 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16085 break 2
16086 fi
16087done
5213506e
RW
16088 done
16089IFS=$as_save_IFS
1c710c3c 16090
e8b05380
PB
16091 ;;
16092esac
16093fi
1c710c3c 16094RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 16095if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16097$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 16098else
5213506e
RW
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16100$as_echo "no" >&6; }
e8b05380
PB
16101fi
16102
5213506e 16103
e8b05380
PB
16104fi
16105if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
16106
16107
16108if test -n "$RANLIB_FOR_TARGET"; then
16109 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16110elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16111 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16112fi
16113
16114if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16115 for ncn_progname in ranlib; do
16116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16117set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16119$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16120if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16121 $as_echo_n "(cached) " >&6
278a7a38
AO
16122else
16123 if test -n "$RANLIB_FOR_TARGET"; then
16124 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16125else
16126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16127for as_dir in $PATH
16128do
16129 IFS=$as_save_IFS
16130 test -z "$as_dir" && as_dir=.
5213506e 16131 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16133 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 16134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16135 break 2
16136 fi
16137done
5213506e
RW
16138 done
16139IFS=$as_save_IFS
278a7a38
AO
16140
16141fi
16142fi
16143RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16144if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16146$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 16147else
5213506e
RW
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16149$as_echo "no" >&6; }
278a7a38
AO
16150fi
16151
5213506e 16152
278a7a38
AO
16153 done
16154fi
16155
16156if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16157 for ncn_progname in ranlib; do
5213506e
RW
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16159$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16160 if test -x $with_build_time_tools/${ncn_progname}; then
16161 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16163$as_echo "yes" >&6; }
e8b05380
PB
16164 break
16165 else
5213506e
RW
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16167$as_echo "no" >&6; }
e8b05380
PB
16168 fi
16169 done
16170fi
16171
16172if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16173 for ncn_progname in ranlib; do
16174 if test -n "$ncn_target_tool_prefix"; then
16175 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 16176set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16178$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16179if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16180 $as_echo_n "(cached) " >&6
ca9f4b81 16181else
4de997d1
PB
16182 if test -n "$RANLIB_FOR_TARGET"; then
16183 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16184else
1c710c3c
DJ
16185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16186for as_dir in $PATH
16187do
16188 IFS=$as_save_IFS
16189 test -z "$as_dir" && as_dir=.
5213506e 16190 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16192 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16194 break 2
16195 fi
16196done
5213506e
RW
16197 done
16198IFS=$as_save_IFS
1c710c3c 16199
ca9f4b81
AO
16200fi
16201fi
1c710c3c 16202RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 16203if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16205$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16206else
5213506e
RW
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16208$as_echo "no" >&6; }
ca9f4b81
AO
16209fi
16210
5213506e 16211
e8b05380
PB
16212 fi
16213 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 16215set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16217$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16218if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16219 $as_echo_n "(cached) " >&6
ca9f4b81 16220else
2693c0b0
PB
16221 if test -n "$RANLIB_FOR_TARGET"; then
16222 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16223else
1c710c3c
DJ
16224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16225for as_dir in $PATH
16226do
16227 IFS=$as_save_IFS
16228 test -z "$as_dir" && as_dir=.
5213506e 16229 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16231 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 16232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16233 break 2
16234 fi
16235done
5213506e
RW
16236 done
16237IFS=$as_save_IFS
1c710c3c 16238
ca9f4b81
AO
16239fi
16240fi
1c710c3c 16241RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 16242if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16244$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16245else
5213506e
RW
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16247$as_echo "no" >&6; }
ca9f4b81 16248fi
1c710c3c 16249
5213506e 16250
e8b05380
PB
16251 fi
16252 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16253 done
16254fi
1c710c3c 16255
e8b05380
PB
16256if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16257 set dummy ranlib
16258 if test $build = $target ; then
16259 RANLIB_FOR_TARGET="$2"
16260 else
16261 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 16262 fi
1c00b503
PB
16263else
16264 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 16265fi
2693c0b0 16266
d1f8db0c
PB
16267else
16268 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
16269fi
16270
e8b05380
PB
16271
16272
16273
e7a82751
RM
16274if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16275 if test -n "$with_build_time_tools"; then
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16277$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16278 if test -x $with_build_time_tools/readelf; then
16279 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16280 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16282$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16283 else
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16285$as_echo "no" >&6; }
16286 fi
16287 elif test $build != $host && test $have_gcc_for_target = yes; then
16288 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16289 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16290 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16291 fi
16292fi
16293if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16294 # Extract the first word of "readelf", so it can be a program name with args.
16295set dummy readelf; ac_word=$2
16296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16297$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16298if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16299 $as_echo_n "(cached) " >&6
16300else
16301 case $READELF_FOR_TARGET in
16302 [\\/]* | ?:[\\/]*)
16303 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16304 ;;
16305 *)
16306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16307for as_dir in $gcc_cv_tool_dirs
16308do
16309 IFS=$as_save_IFS
16310 test -z "$as_dir" && as_dir=.
16311 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16313 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16315 break 2
16316 fi
16317done
16318 done
16319IFS=$as_save_IFS
16320
16321 ;;
16322esac
16323fi
16324READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16325if test -n "$READELF_FOR_TARGET"; then
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16327$as_echo "$READELF_FOR_TARGET" >&6; }
16328else
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16330$as_echo "no" >&6; }
16331fi
16332
16333
16334fi
16335if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16336
16337
16338if test -n "$READELF_FOR_TARGET"; then
16339 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16340elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16341 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16342fi
16343
16344if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16345 for ncn_progname in readelf; do
16346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16347set dummy ${ncn_progname}; ac_word=$2
16348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16349$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16350if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16351 $as_echo_n "(cached) " >&6
16352else
16353 if test -n "$READELF_FOR_TARGET"; then
16354 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16355else
16356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16357for as_dir in $PATH
16358do
16359 IFS=$as_save_IFS
16360 test -z "$as_dir" && as_dir=.
16361 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16363 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16365 break 2
16366 fi
16367done
16368 done
16369IFS=$as_save_IFS
16370
16371fi
16372fi
16373READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16374if test -n "$READELF_FOR_TARGET"; then
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16376$as_echo "$READELF_FOR_TARGET" >&6; }
16377else
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16379$as_echo "no" >&6; }
16380fi
16381
16382
16383 done
16384fi
16385
16386if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16387 for ncn_progname in readelf; do
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16389$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16390 if test -x $with_build_time_tools/${ncn_progname}; then
16391 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16393$as_echo "yes" >&6; }
16394 break
16395 else
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16397$as_echo "no" >&6; }
16398 fi
16399 done
16400fi
16401
16402if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16403 for ncn_progname in readelf; do
16404 if test -n "$ncn_target_tool_prefix"; then
16405 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16406set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16408$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16409if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16410 $as_echo_n "(cached) " >&6
16411else
16412 if test -n "$READELF_FOR_TARGET"; then
16413 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16414else
16415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16416for as_dir in $PATH
16417do
16418 IFS=$as_save_IFS
16419 test -z "$as_dir" && as_dir=.
16420 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16422 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16424 break 2
16425 fi
16426done
16427 done
16428IFS=$as_save_IFS
16429
16430fi
16431fi
16432READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16433if test -n "$READELF_FOR_TARGET"; then
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16435$as_echo "$READELF_FOR_TARGET" >&6; }
16436else
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16438$as_echo "no" >&6; }
16439fi
16440
16441
16442 fi
16443 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16445set dummy ${ncn_progname}; ac_word=$2
16446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16447$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16448if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16449 $as_echo_n "(cached) " >&6
16450else
16451 if test -n "$READELF_FOR_TARGET"; then
16452 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16453else
16454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16455for as_dir in $PATH
16456do
16457 IFS=$as_save_IFS
16458 test -z "$as_dir" && as_dir=.
16459 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16461 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16463 break 2
16464 fi
16465done
16466 done
16467IFS=$as_save_IFS
16468
16469fi
16470fi
16471READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16472if test -n "$READELF_FOR_TARGET"; then
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16474$as_echo "$READELF_FOR_TARGET" >&6; }
16475else
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16477$as_echo "no" >&6; }
16478fi
16479
16480
16481 fi
16482 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16483 done
16484fi
16485
16486if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16487 set dummy readelf
16488 if test $build = $target ; then
16489 READELF_FOR_TARGET="$2"
16490 else
16491 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16492 fi
16493else
16494 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16495fi
16496
16497else
16498 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16499fi
16500
16501
16502
16503
e8b05380
PB
16504if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16505 if test -n "$with_build_time_tools"; then
5213506e
RW
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16507$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16508 if test -x $with_build_time_tools/strip; then
16509 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16510 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16512$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 16513 else
5213506e
RW
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16515$as_echo "no" >&6; }
d1f8db0c 16516 fi
e8b05380
PB
16517 elif test $build != $host && test $have_gcc_for_target = yes; then
16518 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
16519 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16520 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
16521 fi
16522fi
3e19841a 16523if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16524 # Extract the first word of "strip", so it can be a program name with args.
16525set dummy strip; ac_word=$2
5213506e
RW
16526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16527$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16528if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
5213506e 16529 $as_echo_n "(cached) " >&6
e8b05380 16530else
1c710c3c
DJ
16531 case $STRIP_FOR_TARGET in
16532 [\\/]* | ?:[\\/]*)
e8b05380
PB
16533 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16534 ;;
e8b05380 16535 *)
1c710c3c
DJ
16536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16537for as_dir in $gcc_cv_tool_dirs
16538do
16539 IFS=$as_save_IFS
16540 test -z "$as_dir" && as_dir=.
5213506e 16541 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16543 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16545 break 2
16546 fi
16547done
5213506e
RW
16548 done
16549IFS=$as_save_IFS
1c710c3c 16550
e8b05380
PB
16551 ;;
16552esac
16553fi
1c710c3c 16554STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 16555if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16557$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 16558else
5213506e
RW
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16560$as_echo "no" >&6; }
e8b05380
PB
16561fi
16562
5213506e 16563
e8b05380
PB
16564fi
16565if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
16566
16567
16568if test -n "$STRIP_FOR_TARGET"; then
16569 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16570elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16571 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16572fi
16573
16574if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16575 for ncn_progname in strip; do
16576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16577set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16579$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16580if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16581 $as_echo_n "(cached) " >&6
278a7a38
AO
16582else
16583 if test -n "$STRIP_FOR_TARGET"; then
16584 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16585else
16586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16587for as_dir in $PATH
16588do
16589 IFS=$as_save_IFS
16590 test -z "$as_dir" && as_dir=.
5213506e 16591 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16593 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 16594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16595 break 2
16596 fi
16597done
5213506e
RW
16598 done
16599IFS=$as_save_IFS
278a7a38
AO
16600
16601fi
16602fi
16603STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16604if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16606$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 16607else
5213506e
RW
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16609$as_echo "no" >&6; }
278a7a38
AO
16610fi
16611
5213506e 16612
278a7a38
AO
16613 done
16614fi
16615
16616if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16617 for ncn_progname in strip; do
5213506e
RW
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16619$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16620 if test -x $with_build_time_tools/${ncn_progname}; then
16621 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16623$as_echo "yes" >&6; }
e8b05380
PB
16624 break
16625 else
5213506e
RW
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16627$as_echo "no" >&6; }
e8b05380
PB
16628 fi
16629 done
16630fi
16631
16632if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16633 for ncn_progname in strip; do
16634 if test -n "$ncn_target_tool_prefix"; then
16635 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 16636set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16638$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16639if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16640 $as_echo_n "(cached) " >&6
af71363e
AS
16641else
16642 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
16643 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16644else
16645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16646for as_dir in $PATH
16647do
16648 IFS=$as_save_IFS
16649 test -z "$as_dir" && as_dir=.
5213506e 16650 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16652 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16654 break 2
16655 fi
16656done
5213506e
RW
16657 done
16658IFS=$as_save_IFS
1c710c3c 16659
040b1c5a
GK
16660fi
16661fi
1c710c3c 16662STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 16663if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16665$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 16666else
5213506e
RW
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16668$as_echo "no" >&6; }
040b1c5a
GK
16669fi
16670
5213506e 16671
e8b05380
PB
16672 fi
16673 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16674 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 16675set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16677$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16678if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16679 $as_echo_n "(cached) " >&6
040b1c5a
GK
16680else
16681 if test -n "$STRIP_FOR_TARGET"; then
16682 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16683else
1c710c3c
DJ
16684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16685for as_dir in $PATH
16686do
16687 IFS=$as_save_IFS
16688 test -z "$as_dir" && as_dir=.
5213506e 16689 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16691 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 16692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16693 break 2
16694 fi
16695done
5213506e
RW
16696 done
16697IFS=$as_save_IFS
1c710c3c 16698
040b1c5a
GK
16699fi
16700fi
1c710c3c 16701STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 16702if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16704$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 16705else
5213506e
RW
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16707$as_echo "no" >&6; }
040b1c5a 16708fi
1c710c3c 16709
5213506e 16710
e8b05380
PB
16711 fi
16712 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16713 done
16714fi
1c710c3c 16715
040b1c5a
GK
16716if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16717 set dummy strip
16718 if test $build = $target ; then
16719 STRIP_FOR_TARGET="$2"
16720 else
16721 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16722 fi
1c00b503
PB
16723else
16724 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
16725fi
16726
d1f8db0c
PB
16727else
16728 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
16729fi
16730
16731
16732
16733
16734if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16735 if test -n "$with_build_time_tools"; then
5213506e
RW
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16737$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16738 if test -x $with_build_time_tools/windres; then
16739 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16740 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16742$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 16743 else
5213506e
RW
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16745$as_echo "no" >&6; }
d1f8db0c 16746 fi
e8b05380
PB
16747 elif test $build != $host && test $have_gcc_for_target = yes; then
16748 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
16749 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16750 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
16751 fi
16752fi
3e19841a 16753if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16754 # Extract the first word of "windres", so it can be a program name with args.
16755set dummy windres; ac_word=$2
5213506e
RW
16756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16757$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16758if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
5213506e 16759 $as_echo_n "(cached) " >&6
e8b05380 16760else
1c710c3c
DJ
16761 case $WINDRES_FOR_TARGET in
16762 [\\/]* | ?:[\\/]*)
e8b05380
PB
16763 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16764 ;;
e8b05380 16765 *)
1c710c3c
DJ
16766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16767for as_dir in $gcc_cv_tool_dirs
16768do
16769 IFS=$as_save_IFS
16770 test -z "$as_dir" && as_dir=.
5213506e 16771 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16773 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16775 break 2
16776 fi
16777done
5213506e
RW
16778 done
16779IFS=$as_save_IFS
1c710c3c 16780
e8b05380
PB
16781 ;;
16782esac
16783fi
1c710c3c 16784WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 16785if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16787$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 16788else
5213506e
RW
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16790$as_echo "no" >&6; }
e8b05380
PB
16791fi
16792
5213506e 16793
e8b05380
PB
16794fi
16795if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
16796
16797
16798if test -n "$WINDRES_FOR_TARGET"; then
16799 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16800elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16801 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16802fi
16803
16804if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16805 for ncn_progname in windres; do
16806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16807set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16809$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16810if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 16811 $as_echo_n "(cached) " >&6
278a7a38
AO
16812else
16813 if test -n "$WINDRES_FOR_TARGET"; then
16814 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16815else
16816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16817for as_dir in $PATH
16818do
16819 IFS=$as_save_IFS
16820 test -z "$as_dir" && as_dir=.
5213506e 16821 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16823 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 16824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16825 break 2
16826 fi
16827done
5213506e
RW
16828 done
16829IFS=$as_save_IFS
278a7a38
AO
16830
16831fi
16832fi
16833WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16834if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16836$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 16837else
5213506e
RW
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16839$as_echo "no" >&6; }
278a7a38
AO
16840fi
16841
5213506e 16842
278a7a38
AO
16843 done
16844fi
16845
16846if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16847 for ncn_progname in windres; do
5213506e
RW
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16849$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16850 if test -x $with_build_time_tools/${ncn_progname}; then
16851 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16853$as_echo "yes" >&6; }
e8b05380
PB
16854 break
16855 else
5213506e
RW
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16857$as_echo "no" >&6; }
e8b05380
PB
16858 fi
16859 done
16860fi
16861
16862if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16863 for ncn_progname in windres; do
16864 if test -n "$ncn_target_tool_prefix"; then
16865 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 16866set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16868$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16869if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 16870 $as_echo_n "(cached) " >&6
ca9f4b81 16871else
4de997d1
PB
16872 if test -n "$WINDRES_FOR_TARGET"; then
16873 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 16874else
1c710c3c
DJ
16875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16876for as_dir in $PATH
16877do
16878 IFS=$as_save_IFS
16879 test -z "$as_dir" && as_dir=.
5213506e 16880 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16882 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16884 break 2
16885 fi
16886done
5213506e
RW
16887 done
16888IFS=$as_save_IFS
1c710c3c 16889
ca9f4b81
AO
16890fi
16891fi
1c710c3c 16892WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 16893if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16895$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 16896else
5213506e
RW
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16898$as_echo "no" >&6; }
ca9f4b81
AO
16899fi
16900
5213506e 16901
e8b05380
PB
16902 fi
16903 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 16905set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16907$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16908if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 16909 $as_echo_n "(cached) " >&6
ca9f4b81 16910else
2693c0b0
PB
16911 if test -n "$WINDRES_FOR_TARGET"; then
16912 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 16913else
1c710c3c
DJ
16914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16915for as_dir in $PATH
16916do
16917 IFS=$as_save_IFS
16918 test -z "$as_dir" && as_dir=.
5213506e 16919 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16921 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 16922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16923 break 2
16924 fi
16925done
5213506e
RW
16926 done
16927IFS=$as_save_IFS
1c710c3c 16928
ca9f4b81
AO
16929fi
16930fi
1c710c3c 16931WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 16932if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16934$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 16935else
5213506e
RW
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16937$as_echo "no" >&6; }
ca9f4b81 16938fi
1c710c3c 16939
5213506e 16940
e8b05380
PB
16941 fi
16942 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16943 done
16944fi
1c710c3c 16945
2693c0b0
PB
16946if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16947 set dummy windres
16948 if test $build = $target ; then
16949 WINDRES_FOR_TARGET="$2"
ca9f4b81 16950 else
2693c0b0 16951 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 16952 fi
1c00b503
PB
16953else
16954 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
16955fi
16956
d1f8db0c
PB
16957else
16958 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
16959fi
16960
4977bab6 16961
901119ae
KT
16962
16963
16964if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16965 if test -n "$with_build_time_tools"; then
5213506e
RW
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
16967$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
16968 if test -x $with_build_time_tools/windmc; then
16969 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
16970 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
16972$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 16973 else
5213506e
RW
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16975$as_echo "no" >&6; }
901119ae
KT
16976 fi
16977 elif test $build != $host && test $have_gcc_for_target = yes; then
16978 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
16979 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
16980 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
16981 fi
16982fi
16983if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16984 # Extract the first word of "windmc", so it can be a program name with args.
16985set dummy windmc; ac_word=$2
5213506e
RW
16986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16987$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16988if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
5213506e 16989 $as_echo_n "(cached) " >&6
901119ae
KT
16990else
16991 case $WINDMC_FOR_TARGET in
16992 [\\/]* | ?:[\\/]*)
16993 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
16994 ;;
16995 *)
16996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16997for as_dir in $gcc_cv_tool_dirs
16998do
16999 IFS=$as_save_IFS
17000 test -z "$as_dir" && as_dir=.
5213506e 17001 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17003 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 17004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17005 break 2
17006 fi
17007done
5213506e
RW
17008 done
17009IFS=$as_save_IFS
901119ae
KT
17010
17011 ;;
17012esac
17013fi
17014WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 17015if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17017$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17018else
5213506e
RW
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17020$as_echo "no" >&6; }
901119ae
KT
17021fi
17022
5213506e 17023
901119ae
KT
17024fi
17025if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17026
17027
17028if test -n "$WINDMC_FOR_TARGET"; then
17029 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17030elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17031 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17032fi
17033
17034if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17035 for ncn_progname in windmc; do
17036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17037set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17039$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17040if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17041 $as_echo_n "(cached) " >&6
901119ae
KT
17042else
17043 if test -n "$WINDMC_FOR_TARGET"; then
17044 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17045else
17046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17047for as_dir in $PATH
17048do
17049 IFS=$as_save_IFS
17050 test -z "$as_dir" && as_dir=.
5213506e 17051 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17053 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 17054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17055 break 2
17056 fi
17057done
5213506e
RW
17058 done
17059IFS=$as_save_IFS
901119ae
KT
17060
17061fi
17062fi
17063WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17064if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17066$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17067else
5213506e
RW
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17069$as_echo "no" >&6; }
901119ae
KT
17070fi
17071
5213506e 17072
901119ae
KT
17073 done
17074fi
17075
17076if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17077 for ncn_progname in windmc; do
5213506e
RW
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17079$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
17080 if test -x $with_build_time_tools/${ncn_progname}; then
17081 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17083$as_echo "yes" >&6; }
901119ae
KT
17084 break
17085 else
5213506e
RW
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17087$as_echo "no" >&6; }
901119ae
KT
17088 fi
17089 done
17090fi
17091
17092if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17093 for ncn_progname in windmc; do
17094 if test -n "$ncn_target_tool_prefix"; then
17095 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17096set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
17097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17098$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17099if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17100 $as_echo_n "(cached) " >&6
901119ae
KT
17101else
17102 if test -n "$WINDMC_FOR_TARGET"; then
17103 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17104else
17105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17106for as_dir in $PATH
17107do
17108 IFS=$as_save_IFS
17109 test -z "$as_dir" && as_dir=.
5213506e 17110 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17112 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 17113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17114 break 2
17115 fi
17116done
5213506e
RW
17117 done
17118IFS=$as_save_IFS
901119ae
KT
17119
17120fi
17121fi
17122WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17123if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17125$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17126else
5213506e
RW
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17128$as_echo "no" >&6; }
901119ae
KT
17129fi
17130
5213506e 17131
901119ae
KT
17132 fi
17133 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17135set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17137$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17138if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17139 $as_echo_n "(cached) " >&6
901119ae
KT
17140else
17141 if test -n "$WINDMC_FOR_TARGET"; then
17142 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17143else
17144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17145for as_dir in $PATH
17146do
17147 IFS=$as_save_IFS
17148 test -z "$as_dir" && as_dir=.
5213506e 17149 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17151 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 17152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17153 break 2
17154 fi
17155done
5213506e
RW
17156 done
17157IFS=$as_save_IFS
901119ae
KT
17158
17159fi
17160fi
17161WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17162if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17164$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17165else
5213506e
RW
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17167$as_echo "no" >&6; }
901119ae
KT
17168fi
17169
5213506e 17170
901119ae
KT
17171 fi
17172 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17173 done
17174fi
17175
17176if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17177 set dummy windmc
17178 if test $build = $target ; then
17179 WINDMC_FOR_TARGET="$2"
17180 else
17181 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17182 fi
1c00b503
PB
17183else
17184 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
17185fi
17186
17187else
17188 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17189fi
17190
17191
2abefe3d
PB
17192RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17193
5213506e
RW
17194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17195$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 17196if test "x${build}" != "x${host}" ; then
e8b05380
PB
17197 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17198 # We already found the complete path
172e41aa 17199 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17201$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17202 else
17203 # Canadian cross, just use what we found
5213506e
RW
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17205$as_echo "pre-installed" >&6; }
e8b05380 17206 fi
2abefe3d
PB
17207else
17208 ok=yes
17209 case " ${configdirs} " in
17210 *" binutils "*) ;;
17211 *) ok=no ;;
17212 esac
1c710c3c 17213
2abefe3d
PB
17214 if test $ok = yes; then
17215 # An in-tree tool is available and we can use it
17216 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17218$as_echo "just compiled" >&6; }
e8b05380
PB
17219 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17220 # We already found the complete path
172e41aa 17221 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17223$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17224 elif test "x$target" = "x$host"; then
17225 # We can use an host tool
17226 AR_FOR_TARGET='$(AR)'
5213506e
RW
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17228$as_echo "host tool" >&6; }
2abefe3d
PB
17229 else
17230 # We need a cross tool
5213506e
RW
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17232$as_echo "pre-installed" >&6; }
2abefe3d
PB
17233 fi
17234fi
0b0dc272 17235
5213506e
RW
17236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17237$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 17238if test "x${build}" != "x${host}" ; then
e8b05380
PB
17239 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17240 # We already found the complete path
172e41aa 17241 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17243$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17244 else
17245 # Canadian cross, just use what we found
5213506e
RW
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17247$as_echo "pre-installed" >&6; }
e8b05380 17248 fi
2abefe3d
PB
17249else
17250 ok=yes
17251 case " ${configdirs} " in
17252 *" gas "*) ;;
17253 *) ok=no ;;
17254 esac
1c710c3c 17255
2abefe3d
PB
17256 if test $ok = yes; then
17257 # An in-tree tool is available and we can use it
17258 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17260$as_echo "just compiled" >&6; }
e8b05380
PB
17261 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17262 # We already found the complete path
172e41aa 17263 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17265$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17266 elif test "x$target" = "x$host"; then
17267 # We can use an host tool
17268 AS_FOR_TARGET='$(AS)'
5213506e
RW
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17270$as_echo "host tool" >&6; }
2abefe3d
PB
17271 else
17272 # We need a cross tool
5213506e
RW
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17274$as_echo "pre-installed" >&6; }
2abefe3d
PB
17275 fi
17276fi
0b0dc272 17277
5213506e
RW
17278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17279$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 17280if test "x${build}" != "x${host}" ; then
e8b05380
PB
17281 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17282 # We already found the complete path
172e41aa 17283 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17285$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17286 else
17287 # Canadian cross, just use what we found
5213506e
RW
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17289$as_echo "pre-installed" >&6; }
e8b05380 17290 fi
2abefe3d
PB
17291else
17292 ok=yes
17293 case " ${configdirs} " in
17294 *" gcc "*) ;;
17295 *) ok=no ;;
17296 esac
1c710c3c 17297
2abefe3d
PB
17298 if test $ok = yes; then
17299 # An in-tree tool is available and we can use it
17300 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17302$as_echo "just compiled" >&6; }
e8b05380
PB
17303 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17304 # We already found the complete path
172e41aa 17305 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17307$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17308 elif test "x$target" = "x$host"; then
17309 # We can use an host tool
17310 CC_FOR_TARGET='$(CC)'
5213506e
RW
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17312$as_echo "host tool" >&6; }
2abefe3d
PB
17313 else
17314 # We need a cross tool
5213506e
RW
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17316$as_echo "pre-installed" >&6; }
2abefe3d
PB
17317 fi
17318fi
0b0dc272 17319
5213506e
RW
17320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17321$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 17322if test "x${build}" != "x${host}" ; then
e8b05380
PB
17323 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17324 # We already found the complete path
172e41aa 17325 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17327$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17328 else
17329 # Canadian cross, just use what we found
5213506e
RW
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17331$as_echo "pre-installed" >&6; }
e8b05380 17332 fi
2abefe3d
PB
17333else
17334 ok=yes
17335 case " ${configdirs} " in
17336 *" gcc "*) ;;
17337 *) ok=no ;;
17338 esac
17339 case ,${enable_languages}, in
17340 *,c++,*) ;;
17341 *) ok=no ;;
17342 esac
17343 if test $ok = yes; then
17344 # An in-tree tool is available and we can use it
2077db1b 17345 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
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17347$as_echo "just compiled" >&6; }
e8b05380
PB
17348 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17349 # We already found the complete path
172e41aa 17350 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17352$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17353 elif test "x$target" = "x$host"; then
17354 # We can use an host tool
17355 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17357$as_echo "host tool" >&6; }
2abefe3d
PB
17358 else
17359 # We need a cross tool
5213506e
RW
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17361$as_echo "pre-installed" >&6; }
2abefe3d
PB
17362 fi
17363fi
0b0dc272 17364
5213506e
RW
17365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17366$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 17367if test "x${build}" != "x${host}" ; then
e8b05380
PB
17368 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17369 # We already found the complete path
172e41aa 17370 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17372$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17373 else
17374 # Canadian cross, just use what we found
5213506e
RW
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17376$as_echo "pre-installed" >&6; }
e8b05380 17377 fi
2abefe3d
PB
17378else
17379 ok=yes
17380 case " ${configdirs} " in
17381 *" gcc "*) ;;
17382 *) ok=no ;;
17383 esac
17384 case ,${enable_languages}, in
17385 *,c++,*) ;;
17386 *) ok=no ;;
17387 esac
17388 if test $ok = yes; then
17389 # An in-tree tool is available and we can use it
2077db1b 17390 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
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17392$as_echo "just compiled" >&6; }
e8b05380
PB
17393 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17394 # We already found the complete path
172e41aa 17395 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17397$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17398 elif test "x$target" = "x$host"; then
17399 # We can use an host tool
17400 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17402$as_echo "host tool" >&6; }
2abefe3d
PB
17403 else
17404 # We need a cross tool
5213506e
RW
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17406$as_echo "pre-installed" >&6; }
2abefe3d
PB
17407 fi
17408fi
0b0dc272 17409
5213506e
RW
17410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17411$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 17412if test "x${build}" != "x${host}" ; then
e8b05380
PB
17413 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17414 # We already found the complete path
172e41aa 17415 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17417$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17418 else
17419 # Canadian cross, just use what we found
5213506e
RW
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17421$as_echo "pre-installed" >&6; }
e8b05380 17422 fi
2abefe3d
PB
17423else
17424 ok=yes
17425 case " ${configdirs} " in
17426 *" binutils "*) ;;
17427 *) ok=no ;;
17428 esac
1c710c3c 17429
2abefe3d
PB
17430 if test $ok = yes; then
17431 # An in-tree tool is available and we can use it
17432 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17434$as_echo "just compiled" >&6; }
e8b05380
PB
17435 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17436 # We already found the complete path
172e41aa 17437 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17439$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17440 elif test "x$target" = "x$host"; then
17441 # We can use an host tool
17442 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17444$as_echo "host tool" >&6; }
2abefe3d
PB
17445 else
17446 # We need a cross tool
5213506e
RW
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17448$as_echo "pre-installed" >&6; }
2abefe3d
PB
17449 fi
17450fi
0b0dc272 17451
3b5e8ee4
IS
17452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17453$as_echo_n "checking where to find the target dsymutil... " >&6; }
17454if test "x${build}" != "x${host}" ; then
17455 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17456 # We already found the complete path
17457 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17459$as_echo "pre-installed in $ac_dir" >&6; }
17460 else
17461 # Canadian cross, just use what we found
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17463$as_echo "pre-installed" >&6; }
17464 fi
17465else
17466 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17467 # We already found the complete path
17468 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17470$as_echo "pre-installed in $ac_dir" >&6; }
17471 elif test "x$target" = "x$host"; then
17472 # We can use an host tool
17473 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17475$as_echo "host tool" >&6; }
17476 else
17477 # We need a cross tool
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17479$as_echo "pre-installed" >&6; }
17480 fi
17481fi
17482
5213506e
RW
17483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17484$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 17485if test "x${build}" != "x${host}" ; then
e8b05380
PB
17486 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17487 # We already found the complete path
172e41aa 17488 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17490$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17491 else
17492 # Canadian cross, just use what we found
5213506e
RW
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17494$as_echo "pre-installed" >&6; }
e8b05380 17495 fi
2abefe3d
PB
17496else
17497 ok=yes
17498 case " ${configdirs} " in
17499 *" gcc "*) ;;
17500 *) ok=no ;;
17501 esac
1c710c3c 17502
2abefe3d
PB
17503 if test $ok = yes; then
17504 # An in-tree tool is available and we can use it
17505 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17507$as_echo "just compiled" >&6; }
e8b05380
PB
17508 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17509 # We already found the complete path
172e41aa 17510 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17512$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17513 elif test "x$target" = "x$host"; then
17514 # We can use an host tool
17515 GCC_FOR_TARGET='$()'
5213506e
RW
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17517$as_echo "host tool" >&6; }
2abefe3d
PB
17518 else
17519 # We need a cross tool
5213506e
RW
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17521$as_echo "pre-installed" >&6; }
2abefe3d
PB
17522 fi
17523fi
0b0dc272 17524
5213506e
RW
17525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17526$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 17527if test "x${build}" != "x${host}" ; then
e8b05380
PB
17528 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17529 # We already found the complete path
172e41aa 17530 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17532$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17533 else
17534 # Canadian cross, just use what we found
5213506e
RW
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17536$as_echo "pre-installed" >&6; }
e8b05380 17537 fi
2abefe3d
PB
17538else
17539 ok=yes
17540 case " ${configdirs} " in
17541 *" gcc "*) ;;
17542 *) ok=no ;;
17543 esac
17544 case ,${enable_languages}, in
17545 *,fortran,*) ;;
17546 *) ok=no ;;
17547 esac
17548 if test $ok = yes; then
17549 # An in-tree tool is available and we can use it
17550 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17552$as_echo "just compiled" >&6; }
e8b05380
PB
17553 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17554 # We already found the complete path
172e41aa 17555 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17557$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17558 elif test "x$target" = "x$host"; then
17559 # We can use an host tool
17560 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17562$as_echo "host tool" >&6; }
2abefe3d
PB
17563 else
17564 # We need a cross tool
5213506e
RW
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17566$as_echo "pre-installed" >&6; }
2abefe3d
PB
17567 fi
17568fi
0b0dc272 17569
632e2a07
ILT
17570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17571$as_echo_n "checking where to find the target gccgo... " >&6; }
17572if test "x${build}" != "x${host}" ; then
17573 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17574 # We already found the complete path
17575 ac_dir=`dirname $GOC_FOR_TARGET`
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17577$as_echo "pre-installed in $ac_dir" >&6; }
17578 else
17579 # Canadian cross, just use what we found
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17581$as_echo "pre-installed" >&6; }
17582 fi
17583else
17584 ok=yes
17585 case " ${configdirs} " in
17586 *" gcc "*) ;;
17587 *) ok=no ;;
17588 esac
17589 case ,${enable_languages}, in
17590 *,go,*) ;;
17591 *) ok=no ;;
17592 esac
17593 if test $ok = yes; then
17594 # An in-tree tool is available and we can use it
17595 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17597$as_echo "just compiled" >&6; }
17598 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17599 # We already found the complete path
17600 ac_dir=`dirname $GOC_FOR_TARGET`
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17602$as_echo "pre-installed in $ac_dir" >&6; }
17603 elif test "x$target" = "x$host"; then
17604 # We can use an host tool
17605 GOC_FOR_TARGET='$(GOC)'
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17607$as_echo "host tool" >&6; }
17608 else
17609 # We need a cross tool
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17611$as_echo "pre-installed" >&6; }
17612 fi
17613fi
17614
b4c522fa
IB
17615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17616$as_echo_n "checking where to find the target gdc... " >&6; }
17617if test "x${build}" != "x${host}" ; then
17618 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17619 # We already found the complete path
17620 ac_dir=`dirname $GDC_FOR_TARGET`
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17622$as_echo "pre-installed in $ac_dir" >&6; }
17623 else
17624 # Canadian cross, just use what we found
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17626$as_echo "pre-installed" >&6; }
17627 fi
17628else
17629 ok=yes
17630 case " ${configdirs} " in
17631 *" gcc "*) ;;
17632 *) ok=no ;;
17633 esac
17634 case ,${enable_languages}, in
17635 *,d,*) ;;
17636 *) ok=no ;;
17637 esac
17638 if test $ok = yes; then
17639 # An in-tree tool is available and we can use it
17640 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17642$as_echo "just compiled" >&6; }
17643 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17644 # We already found the complete path
17645 ac_dir=`dirname $GDC_FOR_TARGET`
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17647$as_echo "pre-installed in $ac_dir" >&6; }
17648 elif test "x$target" = "x$host"; then
17649 # We can use an host tool
17650 GDC_FOR_TARGET='$(GDC)'
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17652$as_echo "host tool" >&6; }
17653 else
17654 # We need a cross tool
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17656$as_echo "pre-installed" >&6; }
17657 fi
17658fi
17659
5213506e
RW
17660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17661$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 17662if test "x${build}" != "x${host}" ; then
e8b05380
PB
17663 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17664 # We already found the complete path
172e41aa 17665 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17667$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17668 else
17669 # Canadian cross, just use what we found
5213506e
RW
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17671$as_echo "pre-installed" >&6; }
e8b05380 17672 fi
2abefe3d
PB
17673else
17674 ok=yes
17675 case " ${configdirs} " in
17676 *" ld "*) ;;
17677 *) ok=no ;;
17678 esac
1c710c3c 17679
2abefe3d
PB
17680 if test $ok = yes; then
17681 # An in-tree tool is available and we can use it
17682 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17684$as_echo "just compiled" >&6; }
e8b05380
PB
17685 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17686 # We already found the complete path
172e41aa 17687 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17689$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17690 elif test "x$target" = "x$host"; then
17691 # We can use an host tool
17692 LD_FOR_TARGET='$(LD)'
5213506e
RW
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17694$as_echo "host tool" >&6; }
2abefe3d
PB
17695 else
17696 # We need a cross tool
5213506e
RW
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17698$as_echo "pre-installed" >&6; }
2abefe3d
PB
17699 fi
17700fi
0b0dc272 17701
5213506e
RW
17702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17703$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 17704if test "x${build}" != "x${host}" ; then
e8b05380
PB
17705 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17706 # We already found the complete path
172e41aa 17707 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17709$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17710 else
17711 # Canadian cross, just use what we found
5213506e
RW
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17713$as_echo "pre-installed" >&6; }
e8b05380 17714 fi
2abefe3d 17715else
e8b05380
PB
17716 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17717 # We already found the complete path
172e41aa 17718 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17720$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 17721 elif test "x$target" = "x$host"; then
2abefe3d
PB
17722 # We can use an host tool
17723 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17725$as_echo "host tool" >&6; }
2abefe3d
PB
17726 else
17727 # We need a cross tool
5213506e
RW
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17729$as_echo "pre-installed" >&6; }
2abefe3d
PB
17730 fi
17731fi
0b0dc272 17732
5213506e
RW
17733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17734$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 17735if test "x${build}" != "x${host}" ; then
e8b05380
PB
17736 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17737 # We already found the complete path
172e41aa 17738 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17740$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17741 else
17742 # Canadian cross, just use what we found
5213506e
RW
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17744$as_echo "pre-installed" >&6; }
e8b05380 17745 fi
2abefe3d
PB
17746else
17747 ok=yes
17748 case " ${configdirs} " in
17749 *" binutils "*) ;;
17750 *) ok=no ;;
17751 esac
1c710c3c 17752
2abefe3d
PB
17753 if test $ok = yes; then
17754 # An in-tree tool is available and we can use it
17755 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17757$as_echo "just compiled" >&6; }
e8b05380
PB
17758 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17759 # We already found the complete path
172e41aa 17760 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17762$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17763 elif test "x$target" = "x$host"; then
17764 # We can use an host tool
17765 NM_FOR_TARGET='$(NM)'
5213506e
RW
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17767$as_echo "host tool" >&6; }
2abefe3d
PB
17768 else
17769 # We need a cross tool
5213506e
RW
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17771$as_echo "pre-installed" >&6; }
2abefe3d
PB
17772 fi
17773fi
0b0dc272 17774
9bccfdf5
AP
17775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17776$as_echo_n "checking where to find the target objcopy... " >&6; }
17777if test "x${build}" != "x${host}" ; then
17778 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17779 # We already found the complete path
17780 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17782$as_echo "pre-installed in $ac_dir" >&6; }
17783 else
17784 # Canadian cross, just use what we found
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17786$as_echo "pre-installed" >&6; }
17787 fi
17788else
17789 ok=yes
17790 case " ${configdirs} " in
17791 *" binutils "*) ;;
17792 *) ok=no ;;
17793 esac
17794
17795 if test $ok = yes; then
17796 # An in-tree tool is available and we can use it
17797 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17799$as_echo "just compiled" >&6; }
17800 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17801 # We already found the complete path
17802 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17804$as_echo "pre-installed in $ac_dir" >&6; }
17805 elif test "x$target" = "x$host"; then
17806 # We can use an host tool
ec8fd1c0 17807 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17809$as_echo "host tool" >&6; }
17810 else
17811 # We need a cross tool
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17813$as_echo "pre-installed" >&6; }
17814 fi
17815fi
17816
5213506e
RW
17817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17818$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 17819if test "x${build}" != "x${host}" ; then
e8b05380
PB
17820 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17821 # We already found the complete path
172e41aa 17822 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17824$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17825 else
17826 # Canadian cross, just use what we found
5213506e
RW
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17828$as_echo "pre-installed" >&6; }
e8b05380 17829 fi
2abefe3d
PB
17830else
17831 ok=yes
17832 case " ${configdirs} " in
17833 *" binutils "*) ;;
17834 *) ok=no ;;
17835 esac
1c710c3c 17836
2abefe3d
PB
17837 if test $ok = yes; then
17838 # An in-tree tool is available and we can use it
17839 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17841$as_echo "just compiled" >&6; }
e8b05380
PB
17842 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17843 # We already found the complete path
172e41aa 17844 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17846$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17847 elif test "x$target" = "x$host"; then
17848 # We can use an host tool
17849 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17851$as_echo "host tool" >&6; }
2abefe3d
PB
17852 else
17853 # We need a cross tool
5213506e
RW
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17855$as_echo "pre-installed" >&6; }
2abefe3d
PB
17856 fi
17857fi
0b0dc272 17858
e4a9a572
IS
17859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17860$as_echo_n "checking where to find the target otool... " >&6; }
17861if test "x${build}" != "x${host}" ; then
17862 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17863 # We already found the complete path
17864 ac_dir=`dirname $OTOOL_FOR_TARGET`
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17866$as_echo "pre-installed in $ac_dir" >&6; }
17867 else
17868 # Canadian cross, just use what we found
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17870$as_echo "pre-installed" >&6; }
17871 fi
17872else
17873 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17874 # We already found the complete path
17875 ac_dir=`dirname $OTOOL_FOR_TARGET`
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17877$as_echo "pre-installed in $ac_dir" >&6; }
17878 elif test "x$target" = "x$host"; then
17879 # We can use an host tool
17880 OTOOL_FOR_TARGET='$(OTOOL)'
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17882$as_echo "host tool" >&6; }
17883 else
17884 # We need a cross tool
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17886$as_echo "pre-installed" >&6; }
17887 fi
17888fi
17889
5213506e
RW
17890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17891$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 17892if test "x${build}" != "x${host}" ; then
e8b05380
PB
17893 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17894 # We already found the complete path
172e41aa 17895 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17897$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17898 else
17899 # Canadian cross, just use what we found
5213506e
RW
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17901$as_echo "pre-installed" >&6; }
e8b05380 17902 fi
2abefe3d
PB
17903else
17904 ok=yes
17905 case " ${configdirs} " in
17906 *" binutils "*) ;;
17907 *) ok=no ;;
17908 esac
1c710c3c 17909
2abefe3d
PB
17910 if test $ok = yes; then
17911 # An in-tree tool is available and we can use it
17912 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17914$as_echo "just compiled" >&6; }
e8b05380
PB
17915 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17916 # We already found the complete path
172e41aa 17917 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17919$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17920 elif test "x$target" = "x$host"; then
17921 # We can use an host tool
17922 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17924$as_echo "host tool" >&6; }
2abefe3d
PB
17925 else
17926 # We need a cross tool
5213506e
RW
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17928$as_echo "pre-installed" >&6; }
2abefe3d
PB
17929 fi
17930fi
0b0dc272 17931
e7a82751
RM
17932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17933$as_echo_n "checking where to find the target readelf... " >&6; }
17934if test "x${build}" != "x${host}" ; then
17935 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17936 # We already found the complete path
17937 ac_dir=`dirname $READELF_FOR_TARGET`
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17939$as_echo "pre-installed in $ac_dir" >&6; }
17940 else
17941 # Canadian cross, just use what we found
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17943$as_echo "pre-installed" >&6; }
17944 fi
17945else
17946 ok=yes
17947 case " ${configdirs} " in
17948 *" binutils "*) ;;
17949 *) ok=no ;;
17950 esac
17951
17952 if test $ok = yes; then
17953 # An in-tree tool is available and we can use it
17954 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17956$as_echo "just compiled" >&6; }
17957 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17958 # We already found the complete path
17959 ac_dir=`dirname $READELF_FOR_TARGET`
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17961$as_echo "pre-installed in $ac_dir" >&6; }
17962 elif test "x$target" = "x$host"; then
17963 # We can use an host tool
17964 READELF_FOR_TARGET='$(READELF)'
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17966$as_echo "host tool" >&6; }
17967 else
17968 # We need a cross tool
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17970$as_echo "pre-installed" >&6; }
17971 fi
17972fi
17973
5213506e
RW
17974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
17975$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 17976if test "x${build}" != "x${host}" ; then
e8b05380
PB
17977 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17978 # We already found the complete path
172e41aa 17979 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17981$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17982 else
17983 # Canadian cross, just use what we found
5213506e
RW
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17985$as_echo "pre-installed" >&6; }
e8b05380 17986 fi
2abefe3d
PB
17987else
17988 ok=yes
17989 case " ${configdirs} " in
17990 *" binutils "*) ;;
17991 *) ok=no ;;
17992 esac
1c710c3c 17993
2abefe3d
PB
17994 if test $ok = yes; then
17995 # An in-tree tool is available and we can use it
455c8f48 17996 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17998$as_echo "just compiled" >&6; }
e8b05380
PB
17999 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18000 # We already found the complete path
172e41aa 18001 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18003$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18004 elif test "x$target" = "x$host"; then
18005 # We can use an host tool
18006 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18008$as_echo "host tool" >&6; }
2abefe3d
PB
18009 else
18010 # We need a cross tool
5213506e
RW
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18012$as_echo "pre-installed" >&6; }
2abefe3d
PB
18013 fi
18014fi
0b0dc272 18015
5213506e
RW
18016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18017$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 18018if test "x${build}" != "x${host}" ; then
e8b05380
PB
18019 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18020 # We already found the complete path
172e41aa 18021 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18023$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18024 else
18025 # Canadian cross, just use what we found
5213506e
RW
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18027$as_echo "pre-installed" >&6; }
e8b05380 18028 fi
2abefe3d
PB
18029else
18030 ok=yes
18031 case " ${configdirs} " in
18032 *" binutils "*) ;;
18033 *) ok=no ;;
18034 esac
1c710c3c 18035
2abefe3d
PB
18036 if test $ok = yes; then
18037 # An in-tree tool is available and we can use it
18038 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18040$as_echo "just compiled" >&6; }
e8b05380
PB
18041 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18042 # We already found the complete path
172e41aa 18043 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18045$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18046 elif test "x$target" = "x$host"; then
18047 # We can use an host tool
18048 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18050$as_echo "host tool" >&6; }
2abefe3d
PB
18051 else
18052 # We need a cross tool
5213506e
RW
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18054$as_echo "pre-installed" >&6; }
2abefe3d 18055 fi
671aa708 18056fi
be912515 18057
5213506e
RW
18058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18059$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
18060if test "x${build}" != "x${host}" ; then
18061 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18062 # We already found the complete path
18063 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18065$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
18066 else
18067 # Canadian cross, just use what we found
5213506e
RW
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18069$as_echo "pre-installed" >&6; }
901119ae
KT
18070 fi
18071else
18072 ok=yes
18073 case " ${configdirs} " in
18074 *" binutils "*) ;;
18075 *) ok=no ;;
18076 esac
18077
18078 if test $ok = yes; then
18079 # An in-tree tool is available and we can use it
18080 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18082$as_echo "just compiled" >&6; }
901119ae
KT
18083 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18084 # We already found the complete path
18085 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18087$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
18088 elif test "x$target" = "x$host"; then
18089 # We can use an host tool
18090 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18092$as_echo "host tool" >&6; }
901119ae
KT
18093 else
18094 # We need a cross tool
5213506e
RW
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18096$as_echo "pre-installed" >&6; }
901119ae
KT
18097 fi
18098fi
18099
be912515
NN
18100
18101
2abefe3d 18102
0b0dc272 18103
671aa708
NN
18104# Certain tools may need extra flags.
18105AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18106RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18107NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18108
2abefe3d
PB
18109# When building target libraries, except in a Canadian cross, we use
18110# the same toolchain as the compiler we just built.
18111COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18112COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18113COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18114if test $host = $build; then
18115 case " $configdirs " in
18116 *" gcc "*)
18117 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18118 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18119 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18120 ;;
18121 esac
18122fi
18123
18124
18125
18126
18127
5213506e
RW
18128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18129$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18130# Check whether --enable-maintainer-mode was given.
18131if test "${enable_maintainer_mode+set}" = set; then :
18132 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
18133else
18134 USE_MAINTAINER_MODE=no
5213506e
RW
18135fi
18136
18137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18138$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
18139
18140
18141if test "$USE_MAINTAINER_MODE" = yes; then
18142 MAINTAINER_MODE_TRUE=
18143 MAINTAINER_MODE_FALSE='#'
18144else
18145 MAINTAINER_MODE_TRUE='#'
18146 MAINTAINER_MODE_FALSE=
1c710c3c 18147fi
ee03dc5e
AO
18148MAINT=$MAINTAINER_MODE_TRUE
18149
2805b53a
NN
18150# ---------------------
18151# GCC bootstrap support
18152# ---------------------
18153
18154# Stage specific cflags for build.
18155stage1_cflags="-g"
18156case $build in
18157 vax-*-*)
18158 case ${GCC} in
18159 yes) stage1_cflags="-g -Wa,-J" ;;
18160 *) stage1_cflags="-g -J" ;;
18161 esac ;;
2805b53a
NN
18162esac
18163
0b50988a 18164
2805b53a 18165
8efea775 18166# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
18167# Check whether --enable-stage1-checking was given.
18168if test "${enable_stage1_checking+set}" = set; then :
18169 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 18170else
e643dc23 18171 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
18172 # For --disable-checking or implicit --enable-checking=release, avoid
18173 # setting --enable-checking=gc in the default stage1 checking for LTO
18174 # bootstraps. See PR62077.
c10b5ea0
JJ
18175 case $BUILD_CONFIG in
18176 *lto*)
7db11a5a
JJ
18177 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18178 *)
18179 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 18180 esac
7db11a5a
JJ
18181 if test "x$enable_checking" = x && \
18182 test -d ${srcdir}/gcc && \
18183 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 18184 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 18185 fi
8efea775 18186else
e643dc23 18187 stage1_checking=--enable-checking=$enable_checking,types
8efea775 18188fi
5213506e 18189fi
8efea775
PB
18190
18191
2aeb72e9 18192
5213506e
RW
18193# Enable -Werror in bootstrap stage2 and later.
18194# Check whether --enable-werror was given.
18195if test "${enable_werror+set}" = set; then :
18196 enableval=$enable_werror;
09a9c095
NN
18197case ${enable_werror} in
18198 yes) stage2_werror_flag="--enable-werror-always" ;;
18199 *) stage2_werror_flag="" ;;
2805b53a
NN
18200esac
18201
afd88efc
ML
18202else
18203
01c712cb
ML
18204if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18205 case $BUILD_CONFIG in
18206 bootstrap-debug)
18207 stage2_werror_flag="--enable-werror-always" ;;
18208 "")
18209 stage2_werror_flag="--enable-werror-always" ;;
18210 esac
18211fi
18212
afd88efc
ML
18213fi
18214
18215
01c712cb 18216
2805b53a 18217
f2689b09
SE
18218# Specify what files to not compare during bootstrap.
18219
18220compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18221case "$target" in
18222 hppa*64*-*-hpux*) ;;
4f943869
MK
18223 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18224 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
f2689b09
SE
18225esac
18226
18227
5213506e
RW
18228ac_config_files="$ac_config_files Makefile"
18229
1c710c3c 18230cat >confcache <<\_ACEOF
671aa708
NN
18231# This file is a shell script that caches the results of configure
18232# tests run on this system so they can be shared between configure
1c710c3c
DJ
18233# scripts and configure runs, see configure's option --config-cache.
18234# It is not useful on other systems. If it contains results you don't
18235# want to keep, you may remove or edit it.
671aa708 18236#
1c710c3c
DJ
18237# config.status only pays attention to the cache file if you give it
18238# the --recheck option to rerun configure.
671aa708 18239#
1c710c3c
DJ
18240# `ac_cv_env_foo' variables (set or unset) will be overridden when
18241# loading this file, other *unset* `ac_cv_foo' will be assigned the
18242# following values.
18243
18244_ACEOF
18245
671aa708
NN
18246# The following way of writing the cache mishandles newlines in values,
18247# but we know of no workaround that is simple, portable, and efficient.
5213506e 18248# So, we kill variables containing newlines.
671aa708
NN
18249# Ultrix sh set writes to stderr and can't be redirected directly,
18250# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
18251(
18252 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18253 eval ac_val=\$$ac_var
18254 case $ac_val in #(
18255 *${as_nl}*)
18256 case $ac_var in #(
18257 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18258$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18259 esac
18260 case $ac_var in #(
18261 _ | IFS | as_nl) ;; #(
18262 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18263 *) { eval $ac_var=; unset $ac_var;} ;;
18264 esac ;;
18265 esac
18266 done
18267
1c710c3c 18268 (set) 2>&1 |
5213506e
RW
18269 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18270 *${as_nl}ac_space=\ *)
18271 # `set' does not quote correctly, so add quotes: double-quote
18272 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
18273 sed -n \
18274 "s/'/'\\\\''/g;
18275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 18276 ;; #(
1c710c3c
DJ
18277 *)
18278 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 18279 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 18280 ;;
5213506e
RW
18281 esac |
18282 sort
18283) |
1c710c3c 18284 sed '
5213506e 18285 /^ac_cv_env_/b end
1c710c3c 18286 t clear
5213506e 18287 :clear
1c710c3c
DJ
18288 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18289 t end
5213506e
RW
18290 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18291 :end' >>confcache
18292if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18293 if test -w "$cache_file"; then
22e05272 18294 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18296$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
18297 if test ! -f "$cache_file" || test -h "$cache_file"; then
18298 cat confcache >"$cache_file"
18299 else
18300 case $cache_file in #(
18301 */* | ?:*)
18302 mv -f confcache "$cache_file"$$ &&
18303 mv -f "$cache_file"$$ "$cache_file" ;; #(
18304 *)
18305 mv -f confcache "$cache_file" ;;
18306 esac
18307 fi
18308 fi
671aa708 18309 else
5213506e
RW
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18311$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 18312 fi
4977bab6 18313fi
671aa708 18314rm -f confcache
79c06341 18315
671aa708
NN
18316test "x$prefix" = xNONE && prefix=$ac_default_prefix
18317# Let make expand exec_prefix.
18318test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 18319
671aa708
NN
18320# Transform confdefs.h into DEFS.
18321# Protect against shell expansion while executing Makefile rules.
18322# Protect against Makefile macro expansion.
1c710c3c
DJ
18323#
18324# If the first sed substitution is executed (which looks for macros that
5213506e 18325# take arguments), then branch to the quote section. Otherwise,
1c710c3c 18326# look for a macro that doesn't take arguments.
5213506e
RW
18327ac_script='
18328:mline
18329/\\$/{
18330 N
18331 s,\\\n,,
18332 b mline
18333}
1c710c3c 18334t clear
5213506e
RW
18335:clear
18336s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18337t quote
5213506e 18338s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18339t quote
5213506e
RW
18340b any
18341:quote
18342s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18343s/\[/\\&/g
18344s/\]/\\&/g
18345s/\$/$$/g
18346H
18347:any
18348${
18349 g
18350 s/^\n//
18351 s/\n/ /g
18352 p
18353}
18354'
18355DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
18356
18357
18358ac_libobjs=
18359ac_ltlibobjs=
22e05272 18360U=
1c710c3c
DJ
18361for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18362 # 1. Remove the extension, and $U if already installed.
5213506e
RW
18363 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18364 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18365 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18366 # will be set to the directory where LIBOBJS objects are built.
18367 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18368 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
18369done
18370LIBOBJS=$ac_libobjs
fb0103e5 18371
1c710c3c 18372LTLIBOBJS=$ac_ltlibobjs
0b0dc272 18373
af71363e 18374
1c710c3c 18375
22e05272 18376: "${CONFIG_STATUS=./config.status}"
5213506e 18377ac_write_fail=0
1c710c3c
DJ
18378ac_clean_files_save=$ac_clean_files
18379ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
18380{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18381$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18382as_write_fail=0
18383cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
18384#! $SHELL
18385# Generated by $as_me.
671aa708 18386# Run this file to recreate the current configuration.
671aa708 18387# Compiler output produced by configure, useful for debugging
1c710c3c 18388# configure, is in config.log if it exists.
0b0dc272 18389
1c710c3c
DJ
18390debug=false
18391ac_cs_recheck=false
18392ac_cs_silent=false
1c710c3c 18393
5213506e
RW
18394SHELL=\${CONFIG_SHELL-$SHELL}
18395export SHELL
18396_ASEOF
18397cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18398## -------------------- ##
18399## M4sh Initialization. ##
18400## -------------------- ##
18401
18402# Be more Bourne compatible
18403DUALCASE=1; export DUALCASE # for MKS sh
18404if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18405 emulate sh
18406 NULLCMD=:
5213506e 18407 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
18408 # is contrary to our usage. Disable this feature.
18409 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
18410 setopt NO_GLOB_SUBST
18411else
18412 case `(set -o) 2>/dev/null` in #(
18413 *posix*) :
18414 set -o posix ;; #(
18415 *) :
18416 ;;
18417esac
1c710c3c 18418fi
1c710c3c 18419
5213506e
RW
18420
18421as_nl='
18422'
18423export as_nl
18424# Printing a long string crashes Solaris 7 /usr/bin/printf.
18425as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18426as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18427as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18428# Prefer a ksh shell builtin over an external printf program on Solaris,
18429# but without wasting forks for bash or zsh.
18430if test -z "$BASH_VERSION$ZSH_VERSION" \
18431 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18432 as_echo='print -r --'
18433 as_echo_n='print -rn --'
18434elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18435 as_echo='printf %s\n'
18436 as_echo_n='printf %s'
18437else
18438 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18439 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18440 as_echo_n='/usr/ucb/echo -n'
18441 else
18442 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18443 as_echo_n_body='eval
18444 arg=$1;
18445 case $arg in #(
18446 *"$as_nl"*)
18447 expr "X$arg" : "X\\(.*\\)$as_nl";
18448 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18449 esac;
18450 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18451 '
18452 export as_echo_n_body
18453 as_echo_n='sh -c $as_echo_n_body as_echo'
18454 fi
18455 export as_echo_body
18456 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
18457fi
18458
5213506e
RW
18459# The user is always right.
18460if test "${PATH_SEPARATOR+set}" != set; then
18461 PATH_SEPARATOR=:
18462 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18463 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18464 PATH_SEPARATOR=';'
18465 }
18466fi
18467
18468
18469# IFS
18470# We need space, tab and new line, in precisely that order. Quoting is
18471# there to prevent editors from complaining about space-tab.
18472# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18473# splitting by setting IFS to empty value.)
18474IFS=" "" $as_nl"
18475
18476# Find who we are. Look in the path if we contain no directory separator.
22e05272 18477as_myself=
5213506e
RW
18478case $0 in #((
18479 *[\\/]* ) as_myself=$0 ;;
18480 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18481for as_dir in $PATH
18482do
18483 IFS=$as_save_IFS
18484 test -z "$as_dir" && as_dir=.
18485 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18486 done
18487IFS=$as_save_IFS
18488
18489 ;;
18490esac
18491# We did not find ourselves, most probably we were run as `sh COMMAND'
18492# in which case we are not to be found in the path.
18493if test "x$as_myself" = x; then
18494 as_myself=$0
18495fi
18496if test ! -f "$as_myself"; then
18497 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18498 exit 1
18499fi
1c710c3c 18500
5213506e
RW
18501# Unset variables that we do not need and which cause bugs (e.g. in
18502# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18503# suppresses any "Segmentation fault" message there. '((' could
18504# trigger a bug in pdksh 5.2.14.
18505for as_var in BASH_ENV ENV MAIL MAILPATH
18506do eval test x\${$as_var+set} = xset \
18507 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18508done
1c710c3c
DJ
18509PS1='$ '
18510PS2='> '
18511PS4='+ '
18512
18513# NLS nuisances.
5213506e
RW
18514LC_ALL=C
18515export LC_ALL
18516LANGUAGE=C
18517export LANGUAGE
18518
18519# CDPATH.
18520(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18521
18522
22e05272
JM
18523# as_fn_error STATUS ERROR [LINENO LOG_FD]
18524# ----------------------------------------
5213506e
RW
18525# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18526# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 18527# script with STATUS, using 1 if that was 0.
5213506e
RW
18528as_fn_error ()
18529{
22e05272
JM
18530 as_status=$1; test $as_status -eq 0 && as_status=1
18531 if test "$4"; then
18532 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18533 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1c710c3c 18534 fi
22e05272 18535 $as_echo "$as_me: error: $2" >&2
5213506e
RW
18536 as_fn_exit $as_status
18537} # as_fn_error
18538
18539
18540# as_fn_set_status STATUS
18541# -----------------------
18542# Set $? to STATUS, without forking.
18543as_fn_set_status ()
18544{
18545 return $1
18546} # as_fn_set_status
18547
18548# as_fn_exit STATUS
18549# -----------------
18550# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18551as_fn_exit ()
18552{
18553 set +e
18554 as_fn_set_status $1
18555 exit $1
18556} # as_fn_exit
18557
18558# as_fn_unset VAR
18559# ---------------
18560# Portably unset VAR.
18561as_fn_unset ()
18562{
18563 { eval $1=; unset $1;}
18564}
18565as_unset=as_fn_unset
18566# as_fn_append VAR VALUE
18567# ----------------------
18568# Append the text in VALUE to the end of the definition contained in VAR. Take
18569# advantage of any shell optimizations that allow amortized linear growth over
18570# repeated appends, instead of the typical quadratic growth present in naive
18571# implementations.
18572if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18573 eval 'as_fn_append ()
18574 {
18575 eval $1+=\$2
18576 }'
18577else
18578 as_fn_append ()
18579 {
18580 eval $1=\$$1\$2
18581 }
18582fi # as_fn_append
18583
18584# as_fn_arith ARG...
18585# ------------------
18586# Perform arithmetic evaluation on the ARGs, and store the result in the
18587# global $as_val. Take advantage of shells that can avoid forks. The arguments
18588# must be portable across $(()) and expr.
18589if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18590 eval 'as_fn_arith ()
18591 {
18592 as_val=$(( $* ))
18593 }'
18594else
18595 as_fn_arith ()
18596 {
18597 as_val=`expr "$@" || test $? -eq 1`
18598 }
18599fi # as_fn_arith
18600
1c710c3c 18601
5213506e
RW
18602if expr a : '\(a\)' >/dev/null 2>&1 &&
18603 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
18604 as_expr=expr
18605else
18606 as_expr=false
18607fi
18608
5213506e 18609if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
18610 as_basename=basename
18611else
18612 as_basename=false
18613fi
18614
5213506e
RW
18615if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18616 as_dirname=dirname
18617else
18618 as_dirname=false
18619fi
1c710c3c 18620
5213506e 18621as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
18622$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18623 X"$0" : 'X\(//\)$' \| \
5213506e
RW
18624 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18625$as_echo X/"$0" |
18626 sed '/^.*\/\([^/][^/]*\)\/*$/{
18627 s//\1/
18628 q
18629 }
18630 /^X\/\(\/\/\)$/{
18631 s//\1/
18632 q
18633 }
18634 /^X\/\(\/\).*/{
18635 s//\1/
18636 q
18637 }
18638 s/.*/./; q'`
2aeb72e9 18639
2aeb72e9
DD
18640# Avoid depending upon Character Ranges.
18641as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18642as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18643as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18644as_cr_digits='0123456789'
18645as_cr_alnum=$as_cr_Letters$as_cr_digits
18646
5213506e
RW
18647ECHO_C= ECHO_N= ECHO_T=
18648case `echo -n x` in #(((((
18649-n*)
18650 case `echo 'xy\c'` in
18651 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18652 xy) ECHO_C='\c';;
18653 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18654 ECHO_T=' ';;
18655 esac;;
18656*)
18657 ECHO_N='-n';;
1c710c3c
DJ
18658esac
18659
5213506e
RW
18660rm -f conf$$ conf$$.exe conf$$.file
18661if test -d conf$$.dir; then
18662 rm -f conf$$.dir/conf$$.file
1c710c3c 18663else
5213506e
RW
18664 rm -f conf$$.dir
18665 mkdir conf$$.dir 2>/dev/null
1c710c3c 18666fi
5213506e
RW
18667if (echo >conf$$.file) 2>/dev/null; then
18668 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 18669 as_ln_s='ln -s'
5213506e
RW
18670 # ... but there are two gotchas:
18671 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18672 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 18673 # In both cases, we have to default to `cp -pR'.
5213506e 18674 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 18675 as_ln_s='cp -pR'
5213506e
RW
18676 elif ln conf$$.file conf$$ 2>/dev/null; then
18677 as_ln_s=ln
18678 else
22e05272 18679 as_ln_s='cp -pR'
2aeb72e9 18680 fi
1c710c3c 18681else
22e05272 18682 as_ln_s='cp -pR'
1c710c3c 18683fi
5213506e
RW
18684rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18685rmdir conf$$.dir 2>/dev/null
18686
18687
18688# as_fn_mkdir_p
18689# -------------
18690# Create "$as_dir" as a directory, including parents if necessary.
18691as_fn_mkdir_p ()
18692{
18693
18694 case $as_dir in #(
18695 -*) as_dir=./$as_dir;;
18696 esac
18697 test -d "$as_dir" || eval $as_mkdir_p || {
18698 as_dirs=
18699 while :; do
18700 case $as_dir in #(
18701 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18702 *) as_qdir=$as_dir;;
18703 esac
18704 as_dirs="'$as_qdir' $as_dirs"
18705 as_dir=`$as_dirname -- "$as_dir" ||
18706$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18707 X"$as_dir" : 'X\(//\)[^/]' \| \
18708 X"$as_dir" : 'X\(//\)$' \| \
18709 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18710$as_echo X"$as_dir" |
18711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18712 s//\1/
18713 q
18714 }
18715 /^X\(\/\/\)[^/].*/{
18716 s//\1/
18717 q
18718 }
18719 /^X\(\/\/\)$/{
18720 s//\1/
18721 q
18722 }
18723 /^X\(\/\).*/{
18724 s//\1/
18725 q
18726 }
18727 s/.*/./; q'`
18728 test -d "$as_dir" && break
18729 done
18730 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 18731 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 18732
1c710c3c 18733
5213506e 18734} # as_fn_mkdir_p
1c710c3c 18735if mkdir -p . 2>/dev/null; then
5213506e 18736 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
18737else
18738 test -d ./-p && rmdir ./-p
18739 as_mkdir_p=false
18740fi
18741
22e05272
JM
18742
18743# as_fn_executable_p FILE
18744# -----------------------
18745# Test if FILE is an executable regular file.
18746as_fn_executable_p ()
18747{
18748 test -f "$1" && test -x "$1"
18749} # as_fn_executable_p
18750as_test_x='test -x'
18751as_executable_p=as_fn_executable_p
1c710c3c
DJ
18752
18753# Sed expression to map a string onto a valid CPP name.
18754as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18755
18756# Sed expression to map a string onto a valid variable name.
18757as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18758
18759
1c710c3c 18760exec 6>&1
5213506e
RW
18761## ----------------------------------- ##
18762## Main body of $CONFIG_STATUS script. ##
18763## ----------------------------------- ##
18764_ASEOF
18765test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18766
18767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18768# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 18769# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
18770# values after options handling.
18771ac_log="
1c710c3c 18772This file was extended by $as_me, which was
22e05272 18773generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
18774
18775 CONFIG_FILES = $CONFIG_FILES
18776 CONFIG_HEADERS = $CONFIG_HEADERS
18777 CONFIG_LINKS = $CONFIG_LINKS
18778 CONFIG_COMMANDS = $CONFIG_COMMANDS
18779 $ $0 $@
18780
5213506e
RW
18781on `(hostname || uname -n) 2>/dev/null | sed 1q`
18782"
18783
1c710c3c
DJ
18784_ACEOF
18785
5213506e
RW
18786case $ac_config_files in *"
18787"*) set x $ac_config_files; shift; ac_config_files=$*;;
18788esac
1c710c3c 18789
2aeb72e9 18790
2aeb72e9 18791
5213506e
RW
18792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18793# Files that config.status was made for.
18794config_files="$ac_config_files"
1c710c3c 18795
5213506e 18796_ACEOF
2aeb72e9 18797
5213506e 18798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 18799ac_cs_usage="\
5213506e
RW
18800\`$as_me' instantiates files and other configuration actions
18801from templates according to the current configuration. Unless the files
18802and actions are specified as TAGs, all are instantiated by default.
1c710c3c 18803
5213506e 18804Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
18805
18806 -h, --help print this help, then exit
5213506e 18807 -V, --version print version number and configuration settings, then exit
22e05272 18808 --config print configuration, then exit
5213506e
RW
18809 -q, --quiet, --silent
18810 do not print progress messages
1c710c3c
DJ
18811 -d, --debug don't remove temporary files
18812 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
18813 --file=FILE[:TEMPLATE]
18814 instantiate the configuration file FILE
1c710c3c
DJ
18815
18816Configuration files:
18817$config_files
18818
5213506e 18819Report bugs to the package provider."
2aeb72e9 18820
5213506e
RW
18821_ACEOF
18822cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 18823ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1c710c3c
DJ
18824ac_cs_version="\\
18825config.status
22e05272
JM
18826configured by $0, generated by GNU Autoconf 2.69,
18827 with options \\"\$ac_cs_config\\"
1c710c3c 18828
22e05272 18829Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
18830This config.status script is free software; the Free Software Foundation
18831gives unlimited permission to copy, distribute and modify it."
5213506e
RW
18832
18833ac_pwd='$ac_pwd'
18834srcdir='$srcdir'
18835INSTALL='$INSTALL'
87264276 18836AWK='$AWK'
5213506e 18837test -n "\$AWK" || AWK=awk
1c710c3c
DJ
18838_ACEOF
18839
5213506e
RW
18840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18841# The default lists apply if the user does not specify any file.
1c710c3c
DJ
18842ac_need_defaults=:
18843while test $# != 0
a4b9e93e 18844do
1c710c3c 18845 case $1 in
22e05272 18846 --*=?*)
5213506e
RW
18847 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18848 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
18849 ac_shift=:
18850 ;;
22e05272
JM
18851 --*=)
18852 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18853 ac_optarg=
18854 ac_shift=:
18855 ;;
5213506e 18856 *)
1c710c3c
DJ
18857 ac_option=$1
18858 ac_optarg=$2
18859 ac_shift=shift
18860 ;;
1c710c3c
DJ
18861 esac
18862
18863 case $ac_option in
18864 # Handling of the options.
671aa708 18865 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 18866 ac_cs_recheck=: ;;
5213506e
RW
18867 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18868 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
18869 --config | --confi | --conf | --con | --co | --c )
18870 $as_echo "$ac_cs_config"; exit ;;
5213506e 18871 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
18872 debug=: ;;
18873 --file | --fil | --fi | --f )
18874 $ac_shift
5213506e
RW
18875 case $ac_optarg in
18876 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 18877 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
18878 esac
18879 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 18880 ac_need_defaults=false;;
5213506e
RW
18881 --he | --h | --help | --hel | -h )
18882 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
18883 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18884 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18885 ac_cs_silent=: ;;
18886
18887 # This is an error.
22e05272 18888 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 18889Try \`$0 --help' for more information." ;;
1c710c3c 18890
5213506e
RW
18891 *) as_fn_append ac_config_targets " $1"
18892 ac_need_defaults=false ;;
1c710c3c 18893
0b0dc272 18894 esac
1c710c3c 18895 shift
0b0dc272
AM
18896done
18897
1c710c3c 18898ac_configure_extra_args=
0b0dc272 18899
1c710c3c
DJ
18900if $ac_cs_silent; then
18901 exec 6>/dev/null
18902 ac_configure_extra_args="$ac_configure_extra_args --silent"
18903fi
0b0dc272 18904
1c710c3c 18905_ACEOF
5213506e 18906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 18907if \$ac_cs_recheck; then
22e05272 18908 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
18909 shift
18910 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18911 CONFIG_SHELL='$SHELL'
18912 export CONFIG_SHELL
18913 exec "\$@"
1c710c3c
DJ
18914fi
18915
18916_ACEOF
5213506e
RW
18917cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18918exec 5>>config.log
18919{
18920 echo
18921 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18922## Running $as_me. ##
18923_ASBOX
18924 $as_echo "$ac_log"
18925} >&5
1c710c3c 18926
5213506e
RW
18927_ACEOF
18928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
18929#
18930# INIT-COMMANDS
18931#
18932extrasub_build="$extrasub_build"
18933 extrasub_host="$extrasub_host"
18934 extrasub_target="$extrasub_target"
18935
5213506e 18936_ACEOF
1c710c3c 18937
5213506e 18938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 18939
5213506e 18940# Handling of arguments.
1c710c3c
DJ
18941for ac_config_target in $ac_config_targets
18942do
5213506e
RW
18943 case $ac_config_target in
18944 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18945
22e05272 18946 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
18947 esac
18948done
18949
5213506e 18950
1c710c3c
DJ
18951# If the user did not use the arguments to specify the items to instantiate,
18952# then the envvar interface is used. Set only those that are not.
18953# We use the long form for the default assignment because of an extremely
18954# bizarre bug on SunOS 4.1.3.
18955if $ac_need_defaults; then
18956 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18957fi
18958
18959# Have a temporary directory for convenience. Make it in the build tree
5213506e 18960# simply because there is no reason against having it here, and in addition,
1c710c3c 18961# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
18962# Hook for its removal unless debugging.
18963# Note that there is a small window in which the directory will not be cleaned:
18964# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
18965$debug ||
18966{
22e05272 18967 tmp= ac_tmp=
5213506e 18968 trap 'exit_status=$?
22e05272
JM
18969 : "${ac_tmp:=$tmp}"
18970 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
18971' 0
18972 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 18973}
1c710c3c
DJ
18974# Create a (secure) tmp directory for tmp files.
18975
18976{
5213506e 18977 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 18978 test -d "$tmp"
1c710c3c
DJ
18979} ||
18980{
5213506e
RW
18981 tmp=./conf$$-$RANDOM
18982 (umask 077 && mkdir "$tmp")
22e05272
JM
18983} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18984ac_tmp=$tmp
5213506e
RW
18985
18986# Set up the scripts for CONFIG_FILES section.
18987# No need to generate them if there are no CONFIG_FILES.
18988# This happens for instance with `./config.status config.h'.
18989if test -n "$CONFIG_FILES"; then
18990
18991if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18992 ac_cs_awk_getline=:
18993 ac_cs_awk_pipe_init=
18994 ac_cs_awk_read_file='
18995 while ((getline aline < (F[key])) > 0)
18996 print(aline)
18997 close(F[key])'
18998 ac_cs_awk_pipe_fini=
18999else
19000 ac_cs_awk_getline=false
19001 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19002 ac_cs_awk_read_file='
19003 print "|#_!!_#|"
19004 print "cat " F[key] " &&"
19005 '$ac_cs_awk_pipe_init
19006 # The final `:' finishes the AND list.
19007 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19008fi
19009ac_cr=`echo X | tr X '\015'`
19010# On cygwin, bash can eat \r inside `` if the user requested igncr.
19011# But we know of no other shell where ac_cr would be empty at this
19012# point, so we can use a bashism as a fallback.
19013if test "x$ac_cr" = x; then
19014 eval ac_cr=\$\'\\r\'
19015fi
19016ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19017if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 19018 ac_cs_awk_cr='\\r'
5213506e
RW
19019else
19020 ac_cs_awk_cr=$ac_cr
19021fi
19022
22e05272 19023echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
19024_ACEOF
19025
19026# Create commands to substitute file output variables.
1c710c3c 19027{
5213506e 19028 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22e05272 19029 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
5213506e
RW
19030 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19031 echo "_ACAWK" &&
19032 echo "_ACEOF"
19033} >conf$$files.sh &&
19034. ./conf$$files.sh ||
22e05272 19035 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e 19036rm -f conf$$files.sh
1c710c3c 19037
5213506e
RW
19038{
19039 echo "cat >conf$$subs.awk <<_ACEOF" &&
19040 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19041 echo "_ACEOF"
19042} >conf$$subs.sh ||
22e05272
JM
19043 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19044ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
19045ac_delim='%!_!# '
19046for ac_last_try in false false false false false :; do
19047 . ./conf$$subs.sh ||
22e05272 19048 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
19049
19050 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19051 if test $ac_delim_n = $ac_delim_num; then
19052 break
19053 elif $ac_last_try; then
22e05272 19054 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
19055 else
19056 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19057 fi
19058done
19059rm -f conf$$subs.sh
19060
19061cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 19062cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 19063_ACEOF
5213506e
RW
19064sed -n '
19065h
19066s/^/S["/; s/!.*/"]=/
19067p
19068g
19069s/^[^!]*!//
19070:repl
19071t repl
19072s/'"$ac_delim"'$//
19073t delim
19074:nl
19075h
22e05272 19076s/\(.\{148\}\)..*/\1/
5213506e
RW
19077t more1
19078s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19079p
19080n
19081b repl
19082:more1
19083s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19084p
19085g
19086s/.\{148\}//
19087t nl
19088:delim
19089h
22e05272 19090s/\(.\{148\}\)..*/\1/
5213506e
RW
19091t more2
19092s/["\\]/\\&/g; s/^/"/; s/$/"/
19093p
19094b
19095:more2
19096s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19097p
19098g
19099s/.\{148\}//
19100t delim
19101' <conf$$subs.awk | sed '
19102/^[^""]/{
19103 N
19104 s/\n//
19105}
19106' >>$CONFIG_STATUS || ac_write_fail=1
19107rm -f conf$$subs.awk
19108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19109_ACAWK
22e05272 19110cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
19111 for (key in S) S_is_set[key] = 1
19112 FS = "\a"
19113 \$ac_cs_awk_pipe_init
19114}
19115{
19116 line = $ 0
19117 nfields = split(line, field, "@")
19118 substed = 0
19119 len = length(field[1])
19120 for (i = 2; i < nfields; i++) {
19121 key = field[i]
19122 keylen = length(key)
19123 if (S_is_set[key]) {
19124 value = S[key]
19125 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19126 len += length(value) + length(field[++i])
19127 substed = 1
19128 } else
19129 len += 1 + keylen
19130 }
19131 if (nfields == 3 && !substed) {
19132 key = field[2]
19133 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19134 \$ac_cs_awk_read_file
19135 next
19136 }
19137 }
19138 print line
19139}
19140\$ac_cs_awk_pipe_fini
19141_ACAWK
19142_ACEOF
19143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19144if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19145 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19146else
19147 cat
22e05272
JM
19148fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19149 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
19150_ACEOF
19151
22e05272
JM
19152# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19153# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
19154# trailing colons and then remove the whole line if VPATH becomes empty
19155# (actually we leave an empty line to preserve line numbers).
19156if test "x$srcdir" = x.; then
22e05272
JM
19157 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19158h
19159s///
19160s/^/:/
19161s/[ ]*$/:/
19162s/:\$(srcdir):/:/g
19163s/:\${srcdir}:/:/g
19164s/:@srcdir@:/:/g
19165s/^:*//
5213506e 19166s/:*$//
22e05272
JM
19167x
19168s/\(=[ ]*\).*/\1/
19169G
19170s/\n//
5213506e
RW
19171s/^[^=]*=[ ]*$//
19172}'
19173fi
2aeb72e9 19174
5213506e
RW
19175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19176fi # test -n "$CONFIG_FILES"
2aeb72e9 19177
1c710c3c 19178
5213506e
RW
19179eval set X " :F $CONFIG_FILES "
19180shift
19181for ac_tag
19182do
19183 case $ac_tag in
19184 :[FHLC]) ac_mode=$ac_tag; continue;;
19185 esac
19186 case $ac_mode$ac_tag in
19187 :[FHL]*:*);;
22e05272 19188 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
19189 :[FH]-) ac_tag=-:-;;
19190 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19191 esac
19192 ac_save_IFS=$IFS
19193 IFS=:
19194 set x $ac_tag
19195 IFS=$ac_save_IFS
19196 shift
19197 ac_file=$1
19198 shift
79c06341 19199
5213506e
RW
19200 case $ac_mode in
19201 :L) ac_source=$1;;
19202 :[FH])
19203 ac_file_inputs=
19204 for ac_f
19205 do
19206 case $ac_f in
22e05272 19207 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
19208 *) # Look for the file first in the build tree, then in the source tree
19209 # (if the path is not absolute). The absolute path cannot be DOS-style,
19210 # because $ac_f cannot contain `:'.
19211 test -f "$ac_f" ||
19212 case $ac_f in
19213 [\\/$]*) false;;
19214 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19215 esac ||
22e05272 19216 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
19217 esac
19218 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19219 as_fn_append ac_file_inputs " '$ac_f'"
19220 done
1c710c3c 19221
5213506e
RW
19222 # Let's still pretend it is `configure' which instantiates (i.e., don't
19223 # use $as_me), people would be surprised to read:
19224 # /* config.h. Generated by config.status. */
19225 configure_input='Generated from '`
19226 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19227 `' by configure.'
19228 if test x"$ac_file" != x-; then
19229 configure_input="$ac_file. $configure_input"
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19231$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 19232 fi
5213506e
RW
19233 # Neutralize special characters interpreted by sed in replacement strings.
19234 case $configure_input in #(
19235 *\&* | *\|* | *\\* )
19236 ac_sed_conf_input=`$as_echo "$configure_input" |
19237 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19238 *) ac_sed_conf_input=$configure_input;;
19239 esac
11a67599 19240
5213506e 19241 case $ac_tag in
22e05272
JM
19242 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
19244 esac
19245 ;;
11a67599
ZW
19246 esac
19247
5213506e 19248 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
19249$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19250 X"$ac_file" : 'X\(//\)[^/]' \| \
19251 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
19252 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19253$as_echo X"$ac_file" |
19254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19255 s//\1/
19256 q
19257 }
19258 /^X\(\/\/\)[^/].*/{
19259 s//\1/
19260 q
19261 }
19262 /^X\(\/\/\)$/{
19263 s//\1/
19264 q
19265 }
19266 /^X\(\/\).*/{
19267 s//\1/
19268 q
19269 }
19270 s/.*/./; q'`
19271 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 19272 ac_builddir=.
0b0dc272 19273
5213506e
RW
19274case "$ac_dir" in
19275.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19276*)
19277 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19278 # A ".." for each directory in $ac_dir_suffix.
19279 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19280 case $ac_top_builddir_sub in
19281 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19282 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19283 esac ;;
19284esac
19285ac_abs_top_builddir=$ac_pwd
19286ac_abs_builddir=$ac_pwd$ac_dir_suffix
19287# for backward compatibility:
19288ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
19289
19290case $srcdir in
5213506e 19291 .) # We are building in place.
1c710c3c 19292 ac_srcdir=.
5213506e
RW
19293 ac_top_srcdir=$ac_top_builddir_sub
19294 ac_abs_top_srcdir=$ac_pwd ;;
19295 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 19296 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
19297 ac_top_srcdir=$srcdir
19298 ac_abs_top_srcdir=$srcdir ;;
19299 *) # Relative name.
19300 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19301 ac_top_srcdir=$ac_top_build_prefix$srcdir
19302 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 19303esac
5213506e 19304ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 19305
0b0dc272 19306
5213506e
RW
19307 case $ac_mode in
19308 :F)
19309 #
19310 # CONFIG_FILE
19311 #
1c710c3c
DJ
19312
19313 case $INSTALL in
19314 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 19315 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 19316 esac
5213506e 19317_ACEOF
11a67599 19318
5213506e
RW
19319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19320# If the template does not know about datarootdir, expand it.
19321# FIXME: This hack should be removed a few years after 2.60.
19322ac_datarootdir_hack=; ac_datarootdir_seen=
19323ac_sed_dataroot='
19324/datarootdir/ {
19325 p
19326 q
19327}
19328/@datadir@/p
19329/@docdir@/p
19330/@infodir@/p
19331/@localedir@/p
19332/@mandir@/p'
19333case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19334*datarootdir*) ac_datarootdir_seen=yes;;
19335*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19337$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 19338_ACEOF
5213506e
RW
19339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19340 ac_datarootdir_hack='
19341 s&@datadir@&$datadir&g
19342 s&@docdir@&$docdir&g
19343 s&@infodir@&$infodir&g
19344 s&@localedir@&$localedir&g
19345 s&@mandir@&$mandir&g
19346 s&\\\${datarootdir}&$datarootdir&g' ;;
19347esac
19348_ACEOF
19349
19350# Neutralize VPATH when `$srcdir' = `.'.
19351# Shell code in configure.ac might set extrasub.
19352# FIXME: do we really want to maintain this feature?
19353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19354ac_sed_extra="$ac_vpsub
1c710c3c
DJ
19355$extrasub
19356_ACEOF
5213506e 19357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
19358:t
19359/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
19360s|@configure_input@|$ac_sed_conf_input|;t t
19361s&@top_builddir@&$ac_top_builddir_sub&;t t
19362s&@top_build_prefix@&$ac_top_build_prefix&;t t
19363s&@srcdir@&$ac_srcdir&;t t
19364s&@abs_srcdir@&$ac_abs_srcdir&;t t
19365s&@top_srcdir@&$ac_top_srcdir&;t t
19366s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19367s&@builddir@&$ac_builddir&;t t
19368s&@abs_builddir@&$ac_abs_builddir&;t t
19369s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19370s&@INSTALL@&$ac_INSTALL&;t t
19371$ac_datarootdir_hack
19372"
19373eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19374if $ac_cs_awk_getline; then
22e05272 19375 $AWK -f "$ac_tmp/subs.awk"
5213506e 19376else
22e05272
JM
19377 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19378fi \
19379 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
19380
19381test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
19382 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19383 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19384 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 19385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19386which seems to be undefined. Please make sure it is defined" >&5
5213506e 19387$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19388which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 19389
22e05272 19390 rm -f "$ac_tmp/stdin"
5213506e 19391 case $ac_file in
22e05272
JM
19392 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19393 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 19394 esac \
22e05272 19395 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 19396 ;;
11a67599 19397
11a67599 19398
79c06341 19399
5213506e
RW
19400 esac
19401
3e54529c
RW
19402
19403 case $ac_file$ac_mode in
19404 "Makefile":F) sed "$extrasub_build" Makefile |
19405 sed "$extrasub_host" |
19406 sed "$extrasub_target" > mf$$
19407 mv -f mf$$ Makefile ;;
19408
19409 esac
5213506e
RW
19410done # for ac_tag
19411
19412
19413as_fn_exit 0
1c710c3c 19414_ACEOF
1c710c3c
DJ
19415ac_clean_files=$ac_clean_files_save
19416
5213506e 19417test $ac_write_fail = 0 ||
22e05272 19418 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 19419
1c710c3c
DJ
19420
19421# configure is writing to config.log, and then calls config.status.
19422# config.status does its own redirection, appending to config.log.
19423# Unfortunately, on DOS this fails, as config.log is still kept open
19424# by configure, so config.status won't be able to write to it; its
19425# output is simply discarded. So we exec the FD to /dev/null,
19426# effectively closing config.log, so it can be properly (re)opened and
19427# appended to by config.status. When coming back to configure, we
19428# need to make the FD available again.
19429if test "$no_create" != yes; then
19430 ac_cs_success=:
19431 ac_config_status_args=
19432 test "$silent" = yes &&
19433 ac_config_status_args="$ac_config_status_args --quiet"
19434 exec 5>/dev/null
19435 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19436 exec 5>>config.log
19437 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19438 # would make configure fail if this is the last instruction.
22e05272 19439 $ac_cs_success || as_fn_exit 1
5213506e
RW
19440fi
19441if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19443$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 19444fi
79c06341 19445