]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
d0ac1c44
SM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
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 :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
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 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
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.
d0ac1c44 90as_myself=
81ecdfbb
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
c6b750e1
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d0ac1c44
SM
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;}
81ecdfbb
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
d0ac1c44
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
81ecdfbb
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'\" &&
8e957354
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"
81ecdfbb
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
c6b750e1 211do
81ecdfbb
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 :
d0ac1c44
SM
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
81ecdfbb
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."
c6b750e1 266 else
81ecdfbb
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."
c6b750e1 271 fi
81ecdfbb
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
c6b750e1 301
81ecdfbb
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"
d0ac1c44 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
356
357
358} # as_fn_mkdir_p
d0ac1c44
SM
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
81ecdfbb
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
d0ac1c44
SM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
81ecdfbb
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
d0ac1c44 407# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
408as_fn_error ()
409{
d0ac1c44
SM
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
81ecdfbb 414 fi
d0ac1c44 415 $as_echo "$as_me: error: $2" >&2
81ecdfbb
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
c6b750e1
DJ
421 as_expr=expr
422else
423 as_expr=false
424fi
425
81ecdfbb 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
427 as_basename=basename
428else
429 as_basename=false
430fi
431
81ecdfbb
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
c6b750e1 437
81ecdfbb 438as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
81ecdfbb
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'`
c6b750e1 456
c6b750e1
DJ
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
463
c6b750e1 464
81ecdfbb
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 |
c6b750e1 474 sed '
81ecdfbb
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
c6b750e1 479 N
81ecdfbb
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 482 t loop
81ecdfbb 483 s/-\n.*//
c6b750e1 484 ' >$as_me.lineno &&
81ecdfbb
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; }
c6b750e1 487
d0ac1c44
SM
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
c6b750e1
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
81ecdfbb
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
c6b750e1
DJ
496 # Exit status is that of the last command.
497 exit
498}
499
81ecdfbb
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';;
c6b750e1
DJ
511esac
512
81ecdfbb
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
c6b750e1 516else
81ecdfbb
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
c6b750e1 519fi
81ecdfbb
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 522 as_ln_s='ln -s'
81ecdfbb
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.
d0ac1c44 526 # In both cases, we have to default to `cp -pR'.
81ecdfbb 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 528 as_ln_s='cp -pR'
81ecdfbb
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
d0ac1c44 532 as_ln_s='cp -pR'
c6b750e1 533 fi
c6b750e1 534else
d0ac1c44 535 as_ln_s='cp -pR'
c6b750e1 536fi
81ecdfbb
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
539
540if mkdir -p . 2>/dev/null; then
81ecdfbb 541 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
d0ac1c44
SM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
c6b750e1
DJ
549
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
d0ac1c44
SM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
a0da8069 559
c6b750e1 560# Name of the host.
d0ac1c44 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
c6b750e1
DJ
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
c6b750e1
DJ
565#
566# Initializations.
567#
a0da8069 568ac_default_prefix=/usr/local
81ecdfbb 569ac_clean_files=
c6b750e1 570ac_config_libobj_dir=.
81ecdfbb 571LIBOBJS=
c6b750e1
DJ
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
c6b750e1
DJ
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
81ecdfbb 583PACKAGE_URL=
c6b750e1
DJ
584
585ac_unique_file="move-if-change"
81ecdfbb
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
b121d7d4 604READELF_FOR_TARGET
81ecdfbb 605RANLIB_FOR_TARGET
228cf97d 606OTOOL_FOR_TARGET
81ecdfbb 607OBJDUMP_FOR_TARGET
6b91c541 608OBJCOPY_FOR_TARGET
81ecdfbb
RW
609NM_FOR_TARGET
610LIPO_FOR_TARGET
611LD_FOR_TARGET
228cf97d 612DSYMUTIL_FOR_TARGET
81ecdfbb
RW
613DLLTOOL_FOR_TARGET
614AS_FOR_TARGET
615AR_FOR_TARGET
6a6859cb 616GM2_FOR_TARGET
228cf97d 617GDC_FOR_TARGET
e552509b 618GOC_FOR_TARGET
81ecdfbb 619GFORTRAN_FOR_TARGET
81ecdfbb
RW
620GCC_FOR_TARGET
621CXX_FOR_TARGET
622CC_FOR_TARGET
50ad1254
L
623RANLIB_PLUGIN_OPTION
624AR_PLUGIN_OPTION
9e65489a 625PKG_CONFIG_PATH
228cf97d 626GDCFLAGS
b121d7d4 627READELF
228cf97d 628OTOOL
81ecdfbb
RW
629OBJDUMP
630OBJCOPY
631WINDMC
632WINDRES
633STRIP
634RANLIB
635NM
636LIPO
637LD
228cf97d 638DSYMUTIL
81ecdfbb
RW
639DLLTOOL
640AS
641AR
642RUNTEST
643EXPECT
644MAKEINFO
645FLEX
646LEX
647M4
648BISON
649YACC
81ecdfbb
RW
650WINDRES_FOR_BUILD
651WINDMC_FOR_BUILD
652RANLIB_FOR_BUILD
653NM_FOR_BUILD
654LD_FOR_BUILD
655LDFLAGS_FOR_BUILD
228cf97d 656GDC_FOR_BUILD
e552509b 657GOC_FOR_BUILD
81ecdfbb 658GFORTRAN_FOR_BUILD
228cf97d 659DSYMUTIL_FOR_BUILD
81ecdfbb
RW
660DLLTOOL_FOR_BUILD
661CXX_FOR_BUILD
662CXXFLAGS_FOR_BUILD
e472ec9f 663CPPFLAGS_FOR_BUILD
228cf97d 664CPP_FOR_BUILD
81ecdfbb
RW
665CFLAGS_FOR_BUILD
666CC_FOR_BUILD
667AS_FOR_BUILD
668AR_FOR_BUILD
911e63d0 669target_configdirs
81ecdfbb 670configdirs
81ecdfbb 671build_configdirs
81ecdfbb
RW
672INSTALL_GDB_TK
673GDB_TK
674CONFIGURE_GDB_TK
675build_tooldir
676tooldir
677GCC_SHLIB_SUBDIR
678RPATH_ENVVAR
4074d5f2
RW
679target_configargs
680host_configargs
681build_configargs
96655cc4 682BUILD_CONFIG
91c1f14c 683LDFLAGS_FOR_TARGET
81ecdfbb
RW
684CXXFLAGS_FOR_TARGET
685CFLAGS_FOR_TARGET
686DEBUG_PREFIX_CFLAGS_FOR_TARGET
687SYSROOT_CFLAGS_FOR_TARGET
bf41f30d 688get_gcc_base_ver
e81d5d05 689extra_host_zlib_configure_flags
700d40ca 690extra_host_libiberty_configure_flags
1b6c0831 691stage1_languages
6a6859cb
AM
692host_libs_picflag
693PICFLAG
bf41f30d 694host_shared
6a6859cb
AM
695gcc_host_pie
696host_pie
1b6c0831
L
697extra_linker_plugin_flags
698extra_linker_plugin_configure_flags
7ec59b9e 699islinc
1b6c0831 700isllibs
81ecdfbb 701poststage1_ldflags
143754cd 702poststage1_libs
81ecdfbb 703stage1_ldflags
b3676d82 704stage1_libs
7ec59b9e 705extra_isl_gmp_configure_flags
81ecdfbb
RW
706extra_mpc_mpfr_configure_flags
707extra_mpc_gmp_configure_flags
708extra_mpfr_configure_flags
709gmpinc
710gmplibs
af019bfd
L
711PGO_BUILD_LTO_CFLAGS
712PGO_BUILD_USE_CFLAGS
713PGO_BUILD_GEN_CFLAGS
228cf97d
AM
714HAVE_CXX11_FOR_BUILD
715HAVE_CXX11
81ecdfbb 716do_compare
b95bb526 717GDC
81ecdfbb
RW
718GNATMAKE
719GNATBIND
720ac_ct_CXX
721CXXFLAGS
722CXX
723OBJEXT
724EXEEXT
725ac_ct_CC
726CPPFLAGS
727LDFLAGS
728CFLAGS
729CC
730target_subdir
731host_subdir
732build_subdir
733build_libsubdir
8e957354
PB
734AWK
735SED
81ecdfbb
RW
736LN_S
737LN
738INSTALL_DATA
739INSTALL_SCRIPT
740INSTALL_PROGRAM
741target_os
742target_vendor
743target_cpu
744target
745host_os
746host_vendor
747host_cpu
748host
749target_noncanonical
750host_noncanonical
751build_noncanonical
752build_os
753build_vendor
754build_cpu
755build
756TOPLEVEL_CONFIGURE_ARGUMENTS
757target_alias
758host_alias
759build_alias
760LIBS
761ECHO_T
762ECHO_N
763ECHO_C
764DEFS
765mandir
766localedir
767libdir
768psdir
769pdfdir
770dvidir
771htmldir
772infodir
773docdir
774oldincludedir
775includedir
776localstatedir
777sharedstatedir
778sysconfdir
779datadir
780datarootdir
781libexecdir
782sbindir
783bindir
784program_transform_name
785prefix
786exec_prefix
787PACKAGE_URL
788PACKAGE_BUGREPORT
789PACKAGE_STRING
790PACKAGE_VERSION
791PACKAGE_TARNAME
792PACKAGE_NAME
793PATH_SEPARATOR
794SHELL'
795ac_subst_files='serialization_dependencies
796host_makefile_frag
797target_makefile_frag
798alphaieee_frag
799ospace_frag'
800ac_user_opts='
801enable_option_checking
802with_build_libsubdir
cf39cfc5 803with_system_zlib
2cac01e3 804with_zstd
1b6c0831
L
805enable_as_accelerator_for
806enable_offload_targets
228cf97d 807enable_offload_defaulted
81ecdfbb 808enable_gold
c7791212 809enable_ld
bb368aad 810enable_gprofng
edeefb67 811enable_compressed_debug_sections
b0c295e1 812enable_default_compressed_debug_sections_algorithm
e5f2f7d9 813enable_year2038
89a1e9c3
PB
814enable_libquadmath
815enable_libquadmath_support
81ecdfbb 816enable_libada
6a6859cb 817enable_libgm2
81ecdfbb 818enable_libssp
f66a9a70 819enable_libstdcxx
ffdd6afc 820enable_bootstrap
af019bfd 821enable_pgo_build
81ecdfbb
RW
822with_mpc
823with_mpc_include
824with_mpc_lib
81ecdfbb
RW
825with_mpfr
826with_mpfr_include
827with_mpfr_lib
81ecdfbb
RW
828with_gmp
829with_gmp_include
830with_gmp_lib
81ecdfbb 831with_stage1_libs
c1a5d03a 832with_static_standard_libraries
b3676d82 833with_stage1_ldflags
81ecdfbb 834with_boot_libs
143754cd 835with_boot_ldflags
7ec59b9e
L
836with_isl
837with_isl_include
838with_isl_lib
839enable_isl_version_check
700d40ca 840enable_lto
1b6c0831
L
841enable_linker_plugin_configure_flags
842enable_linker_plugin_flags
6a6859cb 843enable_host_pie
bf41f30d 844enable_host_shared
81ecdfbb
RW
845enable_stage1_languages
846enable_objc_gc
05a13254
NC
847with_target_bdw_gc
848with_target_bdw_gc_include
849with_target_bdw_gc_lib
bf41f30d 850with_gcc_major_version_only
81ecdfbb
RW
851with_build_sysroot
852with_debug_prefix_map
96655cc4 853with_build_config
730af8ee 854enable_vtable_verify
81ecdfbb
RW
855enable_serial_configure
856with_build_time_tools
857enable_maintainer_mode
858enable_stage1_checking
859enable_werror
81ecdfbb
RW
860'
861 ac_precious_vars='build_alias
862host_alias
863target_alias
864CC
865CFLAGS
866LDFLAGS
867LIBS
868CPPFLAGS
869CXX
870CXXFLAGS
871CCC
4074d5f2
RW
872build_configargs
873host_configargs
874target_configargs
81ecdfbb
RW
875AR
876AS
877DLLTOOL
228cf97d 878DSYMUTIL
81ecdfbb
RW
879LD
880LIPO
881NM
882RANLIB
883STRIP
884WINDRES
885WINDMC
886OBJCOPY
887OBJDUMP
228cf97d 888OTOOL
b121d7d4 889READELF
81ecdfbb
RW
890CC_FOR_TARGET
891CXX_FOR_TARGET
892GCC_FOR_TARGET
81ecdfbb 893GFORTRAN_FOR_TARGET
e552509b 894GOC_FOR_TARGET
228cf97d 895GDC_FOR_TARGET
6a6859cb 896GM2_FOR_TARGET
81ecdfbb
RW
897AR_FOR_TARGET
898AS_FOR_TARGET
899DLLTOOL_FOR_TARGET
228cf97d 900DSYMUTIL_FOR_TARGET
81ecdfbb
RW
901LD_FOR_TARGET
902LIPO_FOR_TARGET
903NM_FOR_TARGET
6b91c541 904OBJCOPY_FOR_TARGET
81ecdfbb 905OBJDUMP_FOR_TARGET
228cf97d 906OTOOL_FOR_TARGET
81ecdfbb 907RANLIB_FOR_TARGET
b121d7d4 908READELF_FOR_TARGET
81ecdfbb
RW
909STRIP_FOR_TARGET
910WINDRES_FOR_TARGET
911WINDMC_FOR_TARGET'
912
a0da8069
NN
913
914# Initialize some variables set by options.
c6b750e1
DJ
915ac_init_help=
916ac_init_version=false
81ecdfbb
RW
917ac_unrecognized_opts=
918ac_unrecognized_sep=
a0da8069
NN
919# The variables have the same names as the options, with
920# dashes changed to underlines.
c6b750e1 921cache_file=/dev/null
a0da8069 922exec_prefix=NONE
a0da8069 923no_create=
a0da8069
NN
924no_recursion=
925prefix=NONE
926program_prefix=NONE
927program_suffix=NONE
928program_transform_name=s,x,x,
929silent=
930site=
931srcdir=
a0da8069
NN
932verbose=
933x_includes=NONE
934x_libraries=NONE
c6b750e1
DJ
935
936# Installation directory options.
937# These are left unexpanded so users can "make install exec_prefix=/foo"
938# and all the variables that are supposed to be based on exec_prefix
939# by default will actually change.
940# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 941# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
942bindir='${exec_prefix}/bin'
943sbindir='${exec_prefix}/sbin'
944libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
945datarootdir='${prefix}/share'
946datadir='${datarootdir}'
a0da8069
NN
947sysconfdir='${prefix}/etc'
948sharedstatedir='${prefix}/com'
949localstatedir='${prefix}/var'
a0da8069
NN
950includedir='${prefix}/include'
951oldincludedir='/usr/include'
81ecdfbb
RW
952docdir='${datarootdir}/doc/${PACKAGE}'
953infodir='${datarootdir}/info'
954htmldir='${docdir}'
955dvidir='${docdir}'
956pdfdir='${docdir}'
957psdir='${docdir}'
958libdir='${exec_prefix}/lib'
959localedir='${datarootdir}/locale'
960mandir='${datarootdir}/man'
252b5132 961
a0da8069 962ac_prev=
81ecdfbb 963ac_dashdash=
a0da8069
NN
964for ac_option
965do
a0da8069
NN
966 # If the previous option needs an argument, assign it.
967 if test -n "$ac_prev"; then
81ecdfbb 968 eval $ac_prev=\$ac_option
a0da8069
NN
969 ac_prev=
970 continue
971 fi
252b5132 972
81ecdfbb 973 case $ac_option in
d0ac1c44
SM
974 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 *=) ac_optarg= ;;
976 *) ac_optarg=yes ;;
81ecdfbb 977 esac
a0da8069
NN
978
979 # Accept the important Cygnus configure options, so we can diagnose typos.
980
81ecdfbb
RW
981 case $ac_dashdash$ac_option in
982 --)
983 ac_dashdash=yes ;;
a0da8069
NN
984
985 -bindir | --bindir | --bindi | --bind | --bin | --bi)
986 ac_prev=bindir ;;
987 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 988 bindir=$ac_optarg ;;
a0da8069
NN
989
990 -build | --build | --buil | --bui | --bu)
c6b750e1 991 ac_prev=build_alias ;;
a0da8069 992 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 993 build_alias=$ac_optarg ;;
a0da8069
NN
994
995 -cache-file | --cache-file | --cache-fil | --cache-fi \
996 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
997 ac_prev=cache_file ;;
998 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
999 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
1000 cache_file=$ac_optarg ;;
1001
1002 --config-cache | -C)
1003 cache_file=config.cache ;;
a0da8069 1004
81ecdfbb 1005 -datadir | --datadir | --datadi | --datad)
a0da8069 1006 ac_prev=datadir ;;
81ecdfbb 1007 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 1008 datadir=$ac_optarg ;;
a0da8069 1009
81ecdfbb
RW
1010 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1011 | --dataroo | --dataro | --datar)
1012 ac_prev=datarootdir ;;
1013 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1014 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1015 datarootdir=$ac_optarg ;;
1016
a0da8069 1017 -disable-* | --disable-*)
81ecdfbb 1018 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 1019 # Reject names that are not valid shell variable names.
81ecdfbb 1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1021 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1025 *"
1026"enable_$ac_useropt"
1027"*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=no ;;
1032
1033 -docdir | --docdir | --docdi | --doc | --do)
1034 ac_prev=docdir ;;
1035 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036 docdir=$ac_optarg ;;
1037
1038 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039 ac_prev=dvidir ;;
1040 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041 dvidir=$ac_optarg ;;
a0da8069
NN
1042
1043 -enable-* | --enable-*)
81ecdfbb 1044 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 1045 # Reject names that are not valid shell variable names.
81ecdfbb 1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1047 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052"enable_$ac_useropt"
1053"*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
a0da8069 1056 esac
81ecdfbb 1057 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1058
1059 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1060 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1061 | --exec | --exe | --ex)
1062 ac_prev=exec_prefix ;;
1063 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1064 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1065 | --exec=* | --exe=* | --ex=*)
c6b750e1 1066 exec_prefix=$ac_optarg ;;
a0da8069
NN
1067
1068 -gas | --gas | --ga | --g)
1069 # Obsolete; use --with-gas.
1070 with_gas=yes ;;
1071
c6b750e1
DJ
1072 -help | --help | --hel | --he | -h)
1073 ac_init_help=long ;;
1074 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1075 ac_init_help=recursive ;;
1076 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1077 ac_init_help=short ;;
a0da8069
NN
1078
1079 -host | --host | --hos | --ho)
c6b750e1 1080 ac_prev=host_alias ;;
a0da8069 1081 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1082 host_alias=$ac_optarg ;;
a0da8069 1083
81ecdfbb
RW
1084 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1085 ac_prev=htmldir ;;
1086 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1087 | --ht=*)
1088 htmldir=$ac_optarg ;;
1089
a0da8069
NN
1090 -includedir | --includedir | --includedi | --included | --include \
1091 | --includ | --inclu | --incl | --inc)
1092 ac_prev=includedir ;;
1093 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1094 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1095 includedir=$ac_optarg ;;
a0da8069
NN
1096
1097 -infodir | --infodir | --infodi | --infod | --info | --inf)
1098 ac_prev=infodir ;;
1099 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1100 infodir=$ac_optarg ;;
a0da8069
NN
1101
1102 -libdir | --libdir | --libdi | --libd)
1103 ac_prev=libdir ;;
1104 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1105 libdir=$ac_optarg ;;
a0da8069
NN
1106
1107 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1108 | --libexe | --libex | --libe)
1109 ac_prev=libexecdir ;;
1110 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1111 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1112 libexecdir=$ac_optarg ;;
a0da8069 1113
81ecdfbb
RW
1114 -localedir | --localedir | --localedi | --localed | --locale)
1115 ac_prev=localedir ;;
1116 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1117 localedir=$ac_optarg ;;
1118
a0da8069 1119 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1120 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1121 ac_prev=localstatedir ;;
1122 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1123 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1124 localstatedir=$ac_optarg ;;
a0da8069
NN
1125
1126 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1127 ac_prev=mandir ;;
1128 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1129 mandir=$ac_optarg ;;
a0da8069
NN
1130
1131 -nfp | --nfp | --nf)
1132 # Obsolete; use --without-fp.
1133 with_fp=no ;;
1134
1135 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1136 | --no-cr | --no-c | -n)
a0da8069
NN
1137 no_create=yes ;;
1138
1139 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1140 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1141 no_recursion=yes ;;
1142
1143 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1144 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1145 | --oldin | --oldi | --old | --ol | --o)
1146 ac_prev=oldincludedir ;;
1147 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1148 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1149 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1150 oldincludedir=$ac_optarg ;;
a0da8069
NN
1151
1152 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1153 ac_prev=prefix ;;
1154 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1155 prefix=$ac_optarg ;;
a0da8069
NN
1156
1157 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1158 | --program-pre | --program-pr | --program-p)
1159 ac_prev=program_prefix ;;
1160 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1161 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1162 program_prefix=$ac_optarg ;;
a0da8069
NN
1163
1164 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1165 | --program-suf | --program-su | --program-s)
1166 ac_prev=program_suffix ;;
1167 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1168 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1169 program_suffix=$ac_optarg ;;
a0da8069
NN
1170
1171 -program-transform-name | --program-transform-name \
1172 | --program-transform-nam | --program-transform-na \
1173 | --program-transform-n | --program-transform- \
1174 | --program-transform | --program-transfor \
1175 | --program-transfo | --program-transf \
1176 | --program-trans | --program-tran \
1177 | --progr-tra | --program-tr | --program-t)
1178 ac_prev=program_transform_name ;;
1179 -program-transform-name=* | --program-transform-name=* \
1180 | --program-transform-nam=* | --program-transform-na=* \
1181 | --program-transform-n=* | --program-transform-=* \
1182 | --program-transform=* | --program-transfor=* \
1183 | --program-transfo=* | --program-transf=* \
1184 | --program-trans=* | --program-tran=* \
1185 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1186 program_transform_name=$ac_optarg ;;
a0da8069 1187
81ecdfbb
RW
1188 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1189 ac_prev=pdfdir ;;
1190 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1191 pdfdir=$ac_optarg ;;
1192
1193 -psdir | --psdir | --psdi | --psd | --ps)
1194 ac_prev=psdir ;;
1195 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1196 psdir=$ac_optarg ;;
1197
a0da8069
NN
1198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1199 | -silent | --silent | --silen | --sile | --sil)
1200 silent=yes ;;
1201
1202 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1203 ac_prev=sbindir ;;
1204 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1205 | --sbi=* | --sb=*)
c6b750e1 1206 sbindir=$ac_optarg ;;
a0da8069
NN
1207
1208 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1209 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1210 | --sharedst | --shareds | --shared | --share | --shar \
1211 | --sha | --sh)
1212 ac_prev=sharedstatedir ;;
1213 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1214 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1215 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1216 | --sha=* | --sh=*)
c6b750e1 1217 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1218
1219 -site | --site | --sit)
1220 ac_prev=site ;;
1221 -site=* | --site=* | --sit=*)
c6b750e1 1222 site=$ac_optarg ;;
a0da8069
NN
1223
1224 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1225 ac_prev=srcdir ;;
1226 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1227 srcdir=$ac_optarg ;;
a0da8069
NN
1228
1229 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1230 | --syscon | --sysco | --sysc | --sys | --sy)
1231 ac_prev=sysconfdir ;;
1232 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1233 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1234 sysconfdir=$ac_optarg ;;
a0da8069
NN
1235
1236 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1237 ac_prev=target_alias ;;
a0da8069 1238 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1239 target_alias=$ac_optarg ;;
a0da8069
NN
1240
1241 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1242 verbose=yes ;;
1243
c6b750e1
DJ
1244 -version | --version | --versio | --versi | --vers | -V)
1245 ac_init_version=: ;;
a0da8069
NN
1246
1247 -with-* | --with-*)
81ecdfbb 1248 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1249 # Reject names that are not valid shell variable names.
81ecdfbb 1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1251 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1255 *"
1256"with_$ac_useropt"
1257"*) ;;
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
a0da8069 1260 esac
81ecdfbb 1261 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1262
1263 -without-* | --without-*)
81ecdfbb 1264 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1265 # Reject names that are not valid shell variable names.
81ecdfbb 1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1267 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1271 *"
1272"with_$ac_useropt"
1273"*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=no ;;
a0da8069
NN
1278
1279 --x)
1280 # Obsolete; use --with-x.
1281 with_x=yes ;;
1282
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1288 x_includes=$ac_optarg ;;
a0da8069
NN
1289
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1295 x_libraries=$ac_optarg ;;
a0da8069 1296
d0ac1c44
SM
1297 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1298Try \`$0 --help' for more information"
a0da8069
NN
1299 ;;
1300
c6b750e1
DJ
1301 *=*)
1302 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1304 case $ac_envvar in #(
1305 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1306 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1307 esac
1308 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1309 export $ac_envvar ;;
1310
a0da8069 1311 *)
c6b750e1 1312 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1313 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1315 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1316 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
a0da8069
NN
1317 ;;
1318
1319 esac
1320done
1321
1322if test -n "$ac_prev"; then
c6b750e1 1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1324 as_fn_error $? "missing argument to $ac_option"
a0da8069 1325fi
a0da8069 1326
81ecdfbb
RW
1327if test -n "$ac_unrecognized_opts"; then
1328 case $enable_option_checking in
1329 no) ;;
d0ac1c44 1330 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1331 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1332 esac
81ecdfbb 1333fi
a0da8069 1334
81ecdfbb
RW
1335# Check all directory arguments for consistency.
1336for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir
a0da8069 1340do
81ecdfbb
RW
1341 eval ac_val=\$$ac_var
1342 # Remove trailing slashes.
1343 case $ac_val in
1344 */ )
1345 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346 eval $ac_var=\$ac_val;;
1347 esac
1348 # Be sure to have absolute directory names.
c6b750e1 1349 case $ac_val in
81ecdfbb
RW
1350 [\\/$]* | ?:[\\/]* ) continue;;
1351 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1352 esac
d0ac1c44 1353 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1354done
1355
c6b750e1
DJ
1356# There might be people who depend on the old broken behavior: `$host'
1357# used to hold the argument of --host etc.
1358# FIXME: To remove some day.
1359build=$build_alias
1360host=$host_alias
1361target=$target_alias
376a0e54 1362
c6b750e1
DJ
1363# FIXME: To remove some day.
1364if test "x$host_alias" != x; then
1365 if test "x$build_alias" = x; then
1366 cross_compiling=maybe
c6b750e1
DJ
1367 elif test "x$build_alias" != "x$host_alias"; then
1368 cross_compiling=yes
1369 fi
1370fi
1371
1372ac_tool_prefix=
1373test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374
1375test "$silent" = yes && exec 6>/dev/null
a0da8069 1376
a0da8069 1377
81ecdfbb
RW
1378ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379ac_ls_di=`ls -di .` &&
1380ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1381 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1382test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1383 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1384
1385
a0da8069
NN
1386# Find the source files, if location was not specified.
1387if test -z "$srcdir"; then
1388 ac_srcdir_defaulted=yes
81ecdfbb
RW
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir=`$as_dirname -- "$as_myself" ||
1391$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$as_myself" : 'X\(//\)[^/]' \| \
1393 X"$as_myself" : 'X\(//\)$' \| \
1394 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395$as_echo X"$as_myself" |
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\/\)[^/].*/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\/\)$/{
1405 s//\1/
1406 q
1407 }
1408 /^X\(\/\).*/{
1409 s//\1/
1410 q
1411 }
1412 s/.*/./; q'`
a0da8069 1413 srcdir=$ac_confdir
81ecdfbb 1414 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1415 srcdir=..
1416 fi
1417else
1418 ac_srcdir_defaulted=no
1419fi
81ecdfbb
RW
1420if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1422 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1423fi
1424ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425ac_abs_confdir=`(
d0ac1c44 1426 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1427 pwd)`
1428# When building in place, set srcdir=.
1429if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 srcdir=.
1431fi
1432# Remove unnecessary trailing slashes from srcdir.
1433# Double slashes in file names in object file debugging info
1434# mess up M-x gdb in Emacs.
1435case $srcdir in
1436*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437esac
6d0cd39e
AM
1438case $srcdir in
1439 *" "*)
d0ac1c44 1440 as_fn_error $? "path to source, $srcdir, contains spaces"
6d0cd39e
AM
1441 ;;
1442esac
9cc8ae67
PB
1443ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1444
81ecdfbb
RW
1445for ac_var in $ac_precious_vars; do
1446 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_${ac_var}_value=\$${ac_var}
1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450done
c6b750e1
DJ
1451
1452#
1453# Report the --help message.
1454#
1455if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1458 cat <<_ACEOF
1459\`configure' configures this package to adapt to many kinds of systems.
1460
1461Usage: $0 [OPTION]... [VAR=VALUE]...
1462
1463To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464VAR=VALUE. See below for descriptions of some of the useful variables.
1465
1466Defaults for the options are specified in brackets.
1467
1468Configuration:
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
d0ac1c44 1473 -q, --quiet, --silent do not print \`checking ...' messages
c6b750e1
DJ
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478
c6b750e1
DJ
1479Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1481 [$ac_default_prefix]
c6b750e1 1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1483 [PREFIX]
c6b750e1
DJ
1484
1485By default, \`make install' will install all the files in
1486\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488for instance \`--prefix=\$HOME'.
1489
1490For better control, use the options below.
1491
1492Fine tuning of the installation directories:
81ecdfbb
RW
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1512_ACEOF
1513
1514 cat <<\_ACEOF
1515
1516Program names:
1517 --program-prefix=PREFIX prepend PREFIX to installed program names
1518 --program-suffix=SUFFIX append SUFFIX to installed program names
1519 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1520
1521System types:
1522 --build=BUILD configure for building on BUILD [guessed]
1523 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1524 --target=TARGET configure for building compilers for TARGET [HOST]
1525_ACEOF
a0da8069 1526fi
a0da8069 1527
c6b750e1
DJ
1528if test -n "$ac_init_help"; then
1529
1530 cat <<\_ACEOF
1531
1532Optional Features:
81ecdfbb 1533 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1b6c0831
L
1536 --enable-as-accelerator-for=ARG
1537 build as offload target compiler. Specify offload
1538 host triple by ARG
1539 --enable-offload-targets=LIST
1540 enable offloading to devices from comma-separated
1541 LIST of TARGET[=DIR]. Use optional path to find
1542 offload target compiler during the build
228cf97d
AM
1543 --enable-offload-defaulted
1544 If enabled, configured but not installed offload compilers and
1545 libgomp plugins are silently ignored. Useful for distribution
1546 compilers where those are in separate optional packages.
1547
c7791212 1548 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1549 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
bb368aad 1550 --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
6c3bc0f8 1551 --enable-compressed-debug-sections={all,gas,gold,ld,none}
edeefb67
L
1552 Enable compressed debug sections for gas, gold or ld
1553 by default
b0c295e1
ML
1554 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1555 Default compression algorithm for
1556 --enable-compressed-debug-sections.
e5f2f7d9 1557 --enable-year2038 enable support for timestamps past the year 2038
89a1e9c3
PB
1558 --disable-libquadmath do not build libquadmath directory
1559 --disable-libquadmath-support
1560 disable libquadmath support for Fortran
521ec477 1561 --enable-libada build libada directory
6a6859cb 1562 --enable-libgm2 build libgm2 directory
521ec477 1563 --enable-libssp build libssp directory
f66a9a70 1564 --disable-libstdcxx do not build libstdc++-v3 directory
ffdd6afc 1565 --enable-bootstrap enable bootstrapping [yes if native build]
af019bfd
L
1566 --enable-pgo-build[=lto]
1567 enable the PGO build
7ec59b9e 1568 --disable-isl-version-check
4849dfd8 1569 disable check for isl version
700d40ca 1570 --enable-lto enable link time optimization support
1b6c0831
L
1571 --enable-linker-plugin-configure-flags=FLAGS
1572 additional flags for configuring linker plugins
1573 [none]
1574 --enable-linker-plugin-flags=FLAGS
1575 additional flags for configuring and building linker
1576 plugins [none]
6a6859cb 1577 --enable-host-pie build position independent host executables
bf41f30d 1578 --enable-host-shared build host code as shared libraries
7837304f
AS
1579 --enable-stage1-languages[=all]
1580 choose additional languages to build during stage1.
1581 Mostly useful for compiler development
1582 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1583 Objective-C runtime
ce6c656d 1584 --enable-vtable-verify Enable vtable verification feature
521ec477 1585 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1586 force sequential configuration of sub-packages for
1587 the host, target or build machine, or all
1588 sub-packages
1589 --enable-maintainer-mode
1590 enable make rules and dependencies not useful (and
1591 sometimes confusing) to the casual installer
1592 --enable-stage1-checking[=all]
1593 choose additional checking for stage1 of the
1594 compiler
c6b750e1
DJ
1595 --enable-werror enable -Werror in bootstrap stage2 and later
1596
1597Optional Packages:
1598 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1599 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1600 --with-build-libsubdir=DIR Directory where to find libraries for build system
cf39cfc5 1601 --with-system-zlib use installed libz
2cac01e3
FS
1602 --with-zstd Support zstd compressed debug sections
1603 (default=auto)
7837304f
AS
1604 --with-mpc=PATH specify prefix directory for installed MPC package.
1605 Equivalent to --with-mpc-include=PATH/include plus
1606 --with-mpc-lib=PATH/lib
1607 --with-mpc-include=PATH specify directory for installed MPC include files
1608 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477 1609 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1610 Equivalent to --with-mpfr-include=PATH/include plus
1611 --with-mpfr-lib=PATH/lib
c6b750e1 1612 --with-mpfr-include=PATH
521ec477
DD
1613 specify directory for installed MPFR include files
1614 --with-mpfr-lib=PATH specify directory for the installed MPFR library
7837304f
AS
1615 --with-gmp=PATH specify prefix directory for the installed GMP
1616 package. Equivalent to
1617 --with-gmp-include=PATH/include plus
1618 --with-gmp-lib=PATH/lib
521ec477
DD
1619 --with-gmp-include=PATH specify directory for installed GMP include files
1620 --with-gmp-lib=PATH specify directory for the installed GMP library
b3676d82 1621 --with-stage1-libs=LIBS libraries for stage1
c1a5d03a
TT
1622 --with-static-standard-libraries
1623 use -static-libstdc++ and -static-libgcc
1624 (default=auto)
7837304f
AS
1625 --with-stage1-ldflags=FLAGS
1626 linker flags for stage1
7837304f
AS
1627 --with-boot-libs=LIBS libraries for stage2 and later
1628 --with-boot-ldflags=FLAGS
1629 linker flags for stage2 and later
4849dfd8 1630 --with-isl=PATH Specify prefix directory for the installed isl
7837304f 1631 package. Equivalent to
7ec59b9e
L
1632 --with-isl-include=PATH/include plus
1633 --with-isl-lib=PATH/lib
4849dfd8
NC
1634 --with-isl-include=PATH Specify directory for installed isl include files
1635 --with-isl-lib=PATH Specify the directory for the installed isl library
05a13254
NC
1636 --with-target-bdw-gc=PATHLIST
1637 specify prefix directory for installed bdw-gc
1638 package. Equivalent to
1639 --with-target-bdw-gc-include=PATH/include plus
1640 --with-target-bdw-gc-lib=PATH/lib
1641 --with-target-bdw-gc-include=PATHLIST
1642 specify directories for installed bdw-gc include
1643 files
1644 --with-target-bdw-gc-lib=PATHLIST
1645 specify directories for installed bdw-gc library
bf41f30d
NC
1646 --with-gcc-major-version-only
1647 use only GCC major number in filesystem paths
521ec477 1648 --with-build-sysroot=SYSROOT
c6b750e1 1649 use sysroot as the system root during the build
8a6ee3ab 1650 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1651 map A to B, C to D ... in debug information
1652 --with-build-config='NAME NAME2...'
1653 use config/NAME.mk build configuration
521ec477 1654 --with-build-time-tools=PATH
c6b750e1 1655 use given path to find target tools during the build
c6b750e1
DJ
1656
1657Some influential environment variables:
1658 CC C compiler command
1659 CFLAGS C compiler flags
1660 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1661 nonstandard directory <lib dir>
81ecdfbb 1662 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1663 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1664 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1665 CXX C++ compiler command
1666 CXXFLAGS C++ compiler flags
4074d5f2
RW
1667 build_configargs
1668 additional configure arguments for build directories
1669 host_configargs
1670 additional configure arguments for host directories
1671 target_configargs
1672 additional configure arguments for target directories
9a819804
AO
1673 AR AR for the host
1674 AS AS for the host
1675 DLLTOOL DLLTOOL for the host
228cf97d 1676 DSYMUTIL DSYMUTIL for the host
9a819804
AO
1677 LD LD for the host
1678 LIPO LIPO for the host
1679 NM NM for the host
1680 RANLIB RANLIB for the host
1681 STRIP STRIP for the host
1682 WINDRES WINDRES for the host
0c24b341 1683 WINDMC WINDMC for the host
9a819804
AO
1684 OBJCOPY OBJCOPY for the host
1685 OBJDUMP OBJDUMP for the host
228cf97d 1686 OTOOL OTOOL for the host
b121d7d4 1687 READELF READELF for the host
9a819804
AO
1688 CC_FOR_TARGET
1689 CC for the target
1690 CXX_FOR_TARGET
1691 CXX for the target
1692 GCC_FOR_TARGET
1693 GCC for the target
9a819804
AO
1694 GFORTRAN_FOR_TARGET
1695 GFORTRAN for the target
e552509b
ILT
1696 GOC_FOR_TARGET
1697 GOC for the target
228cf97d
AM
1698 GDC_FOR_TARGET
1699 GDC for the target
6a6859cb
AM
1700 GM2_FOR_TARGET
1701 GM2 for the target
9a819804
AO
1702 AR_FOR_TARGET
1703 AR for the target
1704 AS_FOR_TARGET
1705 AS for the target
1706 DLLTOOL_FOR_TARGET
1707 DLLTOOL for the target
228cf97d
AM
1708 DSYMUTIL_FOR_TARGET
1709 DSYMUTIL for the target
9a819804
AO
1710 LD_FOR_TARGET
1711 LD for the target
1712 LIPO_FOR_TARGET
1713 LIPO for the target
1714 NM_FOR_TARGET
1715 NM for the target
6b91c541
AP
1716 OBJCOPY_FOR_TARGET
1717 OBJCOPY for the target
9a819804
AO
1718 OBJDUMP_FOR_TARGET
1719 OBJDUMP for the target
228cf97d
AM
1720 OTOOL_FOR_TARGET
1721 OTOOL for the target
9a819804
AO
1722 RANLIB_FOR_TARGET
1723 RANLIB for the target
b121d7d4
DD
1724 READELF_FOR_TARGET
1725 READELF for the target
9a819804
AO
1726 STRIP_FOR_TARGET
1727 STRIP for the target
1728 WINDRES_FOR_TARGET
1729 WINDRES for the target
0c24b341
NC
1730 WINDMC_FOR_TARGET
1731 WINDMC for the target
c6b750e1
DJ
1732
1733Use these variables to override the choices made by `configure' or to help
1734it to find libraries and programs with nonstandard names/locations.
1735
81ecdfbb 1736Report bugs to the package provider.
c6b750e1 1737_ACEOF
81ecdfbb 1738ac_status=$?
c6b750e1
DJ
1739fi
1740
1741if test "$ac_init_help" = "recursive"; then
1742 # If there are subdirs, report their specific --help.
c6b750e1 1743 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1744 test -d "$ac_dir" ||
1745 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1746 continue
c6b750e1
DJ
1747 ac_builddir=.
1748
81ecdfbb
RW
1749case "$ac_dir" in
1750.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1751*)
1752 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1753 # A ".." for each directory in $ac_dir_suffix.
1754 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1755 case $ac_top_builddir_sub in
1756 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1757 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1758 esac ;;
1759esac
1760ac_abs_top_builddir=$ac_pwd
1761ac_abs_builddir=$ac_pwd$ac_dir_suffix
1762# for backward compatibility:
1763ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1764
1765case $srcdir in
81ecdfbb 1766 .) # We are building in place.
c6b750e1 1767 ac_srcdir=.
81ecdfbb
RW
1768 ac_top_srcdir=$ac_top_builddir_sub
1769 ac_abs_top_srcdir=$ac_pwd ;;
1770 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1771 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1772 ac_top_srcdir=$srcdir
1773 ac_abs_top_srcdir=$srcdir ;;
1774 *) # Relative name.
1775 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1776 ac_top_srcdir=$ac_top_build_prefix$srcdir
1777 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1778esac
81ecdfbb
RW
1779ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1780
1781 cd "$ac_dir" || { ac_status=$?; continue; }
1782 # Check for guested configure.
1783 if test -f "$ac_srcdir/configure.gnu"; then
1784 echo &&
1785 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1786 elif test -f "$ac_srcdir/configure"; then
1787 echo &&
1788 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1789 else
81ecdfbb
RW
1790 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1791 fi || ac_status=$?
1792 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1793 done
1794fi
1795
81ecdfbb 1796test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1797if $ac_init_version; then
1798 cat <<\_ACEOF
81ecdfbb 1799configure
d0ac1c44 1800generated by GNU Autoconf 2.69
c6b750e1 1801
d0ac1c44 1802Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
1803This configure script is free software; the Free Software Foundation
1804gives unlimited permission to copy, distribute and modify it.
1805_ACEOF
81ecdfbb 1806 exit
c6b750e1 1807fi
81ecdfbb
RW
1808
1809## ------------------------ ##
1810## Autoconf initialization. ##
1811## ------------------------ ##
1812
1813# ac_fn_c_try_compile LINENO
1814# --------------------------
1815# Try to compile conftest.$ac_ext, and return whether this succeeded.
1816ac_fn_c_try_compile ()
1817{
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 rm -f conftest.$ac_objext
1820 if { { ac_try="$ac_compile"
1821case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_compile") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1833 fi
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && {
1836 test -z "$ac_c_werror_flag" ||
1837 test ! -s conftest.err
1838 } && test -s conftest.$ac_objext; then :
1839 ac_retval=0
1840else
1841 $as_echo "$as_me: failed program was:" >&5
1842sed 's/^/| /' conftest.$ac_ext >&5
1843
1844 ac_retval=1
1845fi
d0ac1c44
SM
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
81ecdfbb
RW
1848
1849} # ac_fn_c_try_compile
1850
1851# ac_fn_cxx_try_compile LINENO
1852# ----------------------------
1853# Try to compile conftest.$ac_ext, and return whether this succeeded.
1854ac_fn_cxx_try_compile ()
1855{
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 rm -f conftest.$ac_objext
1858 if { { ac_try="$ac_compile"
1859case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862esac
1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864$as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_compile") 2>conftest.err
1866 ac_status=$?
1867 if test -s conftest.err; then
1868 grep -v '^ *+' conftest.err >conftest.er1
1869 cat conftest.er1 >&5
1870 mv -f conftest.er1 conftest.err
1871 fi
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } && {
1874 test -z "$ac_cxx_werror_flag" ||
1875 test ! -s conftest.err
1876 } && test -s conftest.$ac_objext; then :
1877 ac_retval=0
1878else
1879 $as_echo "$as_me: failed program was:" >&5
1880sed 's/^/| /' conftest.$ac_ext >&5
1881
1882 ac_retval=1
1883fi
d0ac1c44
SM
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 as_fn_set_status $ac_retval
81ecdfbb
RW
1886
1887} # ac_fn_cxx_try_compile
1888
b3676d82
EB
1889# ac_fn_cxx_try_link LINENO
1890# -------------------------
1891# Try to link conftest.$ac_ext, and return whether this succeeded.
1892ac_fn_cxx_try_link ()
1893{
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 rm -f conftest.$ac_objext conftest$ac_exeext
1896 if { { ac_try="$ac_link"
1897case "(($ac_try" in
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1900esac
1901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902$as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_link") 2>conftest.err
1904 ac_status=$?
1905 if test -s conftest.err; then
1906 grep -v '^ *+' conftest.err >conftest.er1
1907 cat conftest.er1 >&5
1908 mv -f conftest.er1 conftest.err
1909 fi
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; } && {
1912 test -z "$ac_cxx_werror_flag" ||
1913 test ! -s conftest.err
1914 } && test -s conftest$ac_exeext && {
1915 test "$cross_compiling" = yes ||
d0ac1c44 1916 test -x conftest$ac_exeext
b3676d82
EB
1917 }; then :
1918 ac_retval=0
1919else
1920 $as_echo "$as_me: failed program was:" >&5
1921sed 's/^/| /' conftest.$ac_ext >&5
1922
1923 ac_retval=1
1924fi
1925 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1926 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1927 # interfere with the next link command; also delete a directory that is
1928 # left behind by Apple's compiler. We do this before executing the actions.
1929 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 as_fn_set_status $ac_retval
b3676d82
EB
1932
1933} # ac_fn_cxx_try_link
1934
81ecdfbb
RW
1935# ac_fn_c_try_link LINENO
1936# -----------------------
1937# Try to link conftest.$ac_ext, and return whether this succeeded.
1938ac_fn_c_try_link ()
1939{
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 rm -f conftest.$ac_objext conftest$ac_exeext
1942 if { { ac_try="$ac_link"
1943case "(($ac_try" in
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1946esac
1947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948$as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_link") 2>conftest.err
1950 ac_status=$?
1951 if test -s conftest.err; then
1952 grep -v '^ *+' conftest.err >conftest.er1
1953 cat conftest.er1 >&5
1954 mv -f conftest.er1 conftest.err
1955 fi
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; } && {
1958 test -z "$ac_c_werror_flag" ||
1959 test ! -s conftest.err
1960 } && test -s conftest$ac_exeext && {
1961 test "$cross_compiling" = yes ||
d0ac1c44 1962 test -x conftest$ac_exeext
81ecdfbb
RW
1963 }; then :
1964 ac_retval=0
1965else
1966 $as_echo "$as_me: failed program was:" >&5
1967sed 's/^/| /' conftest.$ac_ext >&5
1968
1969 ac_retval=1
1970fi
1971 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1972 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1973 # interfere with the next link command; also delete a directory that is
1974 # left behind by Apple's compiler. We do this before executing the actions.
1975 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status $ac_retval
81ecdfbb
RW
1978
1979} # ac_fn_c_try_link
1980cat >config.log <<_ACEOF
c6b750e1
DJ
1981This file contains any messages produced by compilers while
1982running configure, to aid debugging if configure makes a mistake.
1983
1984It was created by $as_me, which was
d0ac1c44 1985generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
1986
1987 $ $0 $@
1988
1989_ACEOF
81ecdfbb 1990exec 5>>config.log
c6b750e1
DJ
1991{
1992cat <<_ASUNAME
1993## --------- ##
1994## Platform. ##
1995## --------- ##
1996
1997hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1998uname -m = `(uname -m) 2>/dev/null || echo unknown`
1999uname -r = `(uname -r) 2>/dev/null || echo unknown`
2000uname -s = `(uname -s) 2>/dev/null || echo unknown`
2001uname -v = `(uname -v) 2>/dev/null || echo unknown`
2002
2003/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2004/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2005
2006/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2007/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2008/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 2009/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
2010/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2011/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2012/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2013
2014_ASUNAME
2015
2016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017for as_dir in $PATH
2018do
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2021 $as_echo "PATH: $as_dir"
2022 done
2023IFS=$as_save_IFS
c6b750e1
DJ
2024
2025} >&5
2026
2027cat >&5 <<_ACEOF
2028
2029
2030## ----------- ##
2031## Core tests. ##
2032## ----------- ##
2033
2034_ACEOF
2035
2036
2037# Keep a trace of the command line.
2038# Strip out --no-create and --no-recursion so they do not pile up.
2039# Strip out --silent because we don't want to record it for future runs.
2040# Also quote any args containing shell meta-characters.
2041# Make two passes to allow for proper duplicate-argument suppression.
2042ac_configure_args=
2043ac_configure_args0=
2044ac_configure_args1=
c6b750e1
DJ
2045ac_must_keep_next=false
2046for ac_pass in 1 2
2047do
2048 for ac_arg
2049 do
2050 case $ac_arg in
2051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2053 | -silent | --silent | --silen | --sile | --sil)
2054 continue ;;
81ecdfbb
RW
2055 *\'*)
2056 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2057 esac
2058 case $ac_pass in
81ecdfbb 2059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 2060 2)
81ecdfbb 2061 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
2062 if test $ac_must_keep_next = true; then
2063 ac_must_keep_next=false # Got value, back to normal.
2064 else
2065 case $ac_arg in
2066 *=* | --config-cache | -C | -disable-* | --disable-* \
2067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2069 | -with-* | --with-* | -without-* | --without-* | --x)
2070 case "$ac_configure_args0 " in
2071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2072 esac
2073 ;;
2074 -* ) ac_must_keep_next=true ;;
2075 esac
2076 fi
81ecdfbb 2077 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
2078 ;;
2079 esac
2080 done
2081done
81ecdfbb
RW
2082{ ac_configure_args0=; unset ac_configure_args0;}
2083{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
2084
2085# When interrupted or exit'd, cleanup temporary files, and complete
2086# config.log. We remove comments because anyway the quotes in there
2087# would cause problems or look ugly.
81ecdfbb
RW
2088# WARNING: Use '\'' to represent an apostrophe within the trap.
2089# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
2090trap 'exit_status=$?
2091 # Save into config.log some information that might help in debugging.
2092 {
2093 echo
2094
d0ac1c44 2095 $as_echo "## ---------------- ##
c6b750e1 2096## Cache variables. ##
d0ac1c44 2097## ---------------- ##"
c6b750e1
DJ
2098 echo
2099 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2100(
2101 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2102 eval ac_val=\$$ac_var
2103 case $ac_val in #(
2104 *${as_nl}*)
2105 case $ac_var in #(
2106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2107$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2108 esac
2109 case $ac_var in #(
2110 _ | IFS | as_nl) ;; #(
2111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2112 *) { eval $ac_var=; unset $ac_var;} ;;
2113 esac ;;
2114 esac
2115 done
c6b750e1 2116 (set) 2>&1 |
81ecdfbb
RW
2117 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2118 *${as_nl}ac_space=\ *)
c6b750e1 2119 sed -n \
81ecdfbb
RW
2120 "s/'\''/'\''\\\\'\'''\''/g;
2121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2122 ;; #(
c6b750e1 2123 *)
81ecdfbb 2124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2125 ;;
81ecdfbb
RW
2126 esac |
2127 sort
2128)
c6b750e1
DJ
2129 echo
2130
d0ac1c44 2131 $as_echo "## ----------------- ##
c6b750e1 2132## Output variables. ##
d0ac1c44 2133## ----------------- ##"
c6b750e1
DJ
2134 echo
2135 for ac_var in $ac_subst_vars
2136 do
81ecdfbb
RW
2137 eval ac_val=\$$ac_var
2138 case $ac_val in
2139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140 esac
2141 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2142 done | sort
2143 echo
2144
2145 if test -n "$ac_subst_files"; then
d0ac1c44 2146 $as_echo "## ------------------- ##
81ecdfbb 2147## File substitutions. ##
d0ac1c44 2148## ------------------- ##"
c6b750e1
DJ
2149 echo
2150 for ac_var in $ac_subst_files
2151 do
81ecdfbb
RW
2152 eval ac_val=\$$ac_var
2153 case $ac_val in
2154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155 esac
2156 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2157 done | sort
2158 echo
2159 fi
2160
2161 if test -s confdefs.h; then
d0ac1c44 2162 $as_echo "## ----------- ##
c6b750e1 2163## confdefs.h. ##
d0ac1c44 2164## ----------- ##"
c6b750e1 2165 echo
81ecdfbb 2166 cat confdefs.h
c6b750e1
DJ
2167 echo
2168 fi
2169 test "$ac_signal" != 0 &&
81ecdfbb
RW
2170 $as_echo "$as_me: caught signal $ac_signal"
2171 $as_echo "$as_me: exit $exit_status"
c6b750e1 2172 } >&5
81ecdfbb
RW
2173 rm -f core *.core core.conftest.* &&
2174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2175 exit $exit_status
81ecdfbb 2176' 0
c6b750e1 2177for ac_signal in 1 2 13 15; do
81ecdfbb 2178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2179done
2180ac_signal=0
2181
2182# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2183rm -f -r conftest* confdefs.h
2184
2185$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2186
2187# Predefined preprocessor variables.
2188
2189cat >>confdefs.h <<_ACEOF
2190#define PACKAGE_NAME "$PACKAGE_NAME"
2191_ACEOF
2192
c6b750e1
DJ
2193cat >>confdefs.h <<_ACEOF
2194#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2195_ACEOF
2196
c6b750e1
DJ
2197cat >>confdefs.h <<_ACEOF
2198#define PACKAGE_VERSION "$PACKAGE_VERSION"
2199_ACEOF
2200
c6b750e1
DJ
2201cat >>confdefs.h <<_ACEOF
2202#define PACKAGE_STRING "$PACKAGE_STRING"
2203_ACEOF
2204
c6b750e1
DJ
2205cat >>confdefs.h <<_ACEOF
2206#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2207_ACEOF
2208
81ecdfbb
RW
2209cat >>confdefs.h <<_ACEOF
2210#define PACKAGE_URL "$PACKAGE_URL"
2211_ACEOF
2212
c6b750e1
DJ
2213
2214# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2215# Prefer an explicitly selected file to automatically selected ones.
2216ac_site_file1=NONE
2217ac_site_file2=NONE
2218if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2219 # We do not want a PATH search for config.site.
2220 case $CONFIG_SITE in #((
2221 -*) ac_site_file1=./$CONFIG_SITE;;
2222 */*) ac_site_file1=$CONFIG_SITE;;
2223 *) ac_site_file1=./$CONFIG_SITE;;
2224 esac
81ecdfbb
RW
2225elif test "x$prefix" != xNONE; then
2226 ac_site_file1=$prefix/share/config.site
2227 ac_site_file2=$prefix/etc/config.site
2228else
2229 ac_site_file1=$ac_default_prefix/share/config.site
2230 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2231fi
81ecdfbb
RW
2232for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2233do
2234 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2235 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2237$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2238 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2239 . "$ac_site_file" \
2240 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242as_fn_error $? "failed to load site script $ac_site_file
2243See \`config.log' for more details" "$LINENO" 5; }
a0da8069
NN
2244 fi
2245done
2246
2247if test -r "$cache_file"; then
d0ac1c44
SM
2248 # Some versions of bash will fail to source /dev/null (special files
2249 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2250 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2252$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2253 case $cache_file in
81ecdfbb
RW
2254 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2255 *) . "./$cache_file";;
c6b750e1
DJ
2256 esac
2257 fi
a0da8069 2258else
81ecdfbb
RW
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2260$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2261 >$cache_file
2262fi
2263
2264# Check that the precious variables saved in the cache have kept the same
2265# value.
2266ac_cache_corrupted=false
81ecdfbb 2267for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2269 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2270 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2271 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2272 case $ac_old_set,$ac_new_set in
2273 set,)
81ecdfbb
RW
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2275$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2276 ac_cache_corrupted=: ;;
2277 ,set)
81ecdfbb
RW
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2279$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2280 ac_cache_corrupted=: ;;
2281 ,);;
2282 *)
2283 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2284 # differences in whitespace do not lead to failure.
2285 ac_old_val_w=`echo x $ac_old_val`
2286 ac_new_val_w=`echo x $ac_new_val`
2287 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2289$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2290 ac_cache_corrupted=:
2291 else
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2293$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2294 eval $ac_var=\$ac_old_val
2295 fi
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2297$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2299$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2300 fi;;
2301 esac
2302 # Pass precious variables to config.status.
2303 if test "$ac_new_set" = set; then
2304 case $ac_new_val in
81ecdfbb 2305 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2306 *) ac_arg=$ac_var=$ac_new_val ;;
2307 esac
2308 case " $ac_configure_args " in
2309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2310 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2311 esac
2312 fi
2313done
2314if $ac_cache_corrupted; then
81ecdfbb
RW
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2318$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2319 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2320fi
81ecdfbb
RW
2321## -------------------- ##
2322## Main body of script. ##
2323## -------------------- ##
a0da8069
NN
2324
2325ac_ext=c
a0da8069 2326ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2329ac_compiler_gnu=$ac_cv_c_compiler_gnu
2330
2331
2332
2333
c6b750e1
DJ
2334
2335
34a0f3cf 2336
c6b750e1 2337
5b553f7e
RW
2338progname=$0
2339# if PWD already has a value, it is probably wrong.
2340if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2341
2342# Export original configure arguments for use by sub-configures.
2343# Quote arguments with shell meta charatcers.
2344TOPLEVEL_CONFIGURE_ARGUMENTS=
2345set -- "$progname" "$@"
2346for ac_arg
2347do
2348 case "$ac_arg" in
2349 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2350 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2351 # if the argument is of the form -foo=baz, quote the baz part only
2352 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2353 *) ;;
2354 esac
2355 # Add the quoted argument to the list.
2356 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2357done
2358if test "$silent" = yes; then
2359 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2360fi
2361# Remove the initial space we just introduced and, as these will be
2362# expanded by make, quote '$'.
2363TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2364
c6b750e1
DJ
2365
2366# Find the build, host, and target systems.
a0da8069 2367ac_aux_dir=
81ecdfbb 2368for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2369 if test -f "$ac_dir/install-sh"; then
2370 ac_aux_dir=$ac_dir
2371 ac_install_sh="$ac_aux_dir/install-sh -c"
2372 break
2373 elif test -f "$ac_dir/install.sh"; then
2374 ac_aux_dir=$ac_dir
2375 ac_install_sh="$ac_aux_dir/install.sh -c"
2376 break
2377 elif test -f "$ac_dir/shtool"; then
2378 ac_aux_dir=$ac_dir
2379 ac_install_sh="$ac_aux_dir/shtool install -c"
2380 break
2381 fi
a0da8069
NN
2382done
2383if test -z "$ac_aux_dir"; then
d0ac1c44 2384 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2385fi
81ecdfbb
RW
2386
2387# These three variables are undocumented and unsupported,
2388# and are intended to be withdrawn in a future Autoconf release.
2389# They can cause serious problems if a builder's source tree is in a directory
2390# whose full name contains unusual characters.
2391ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2392ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2393ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2394
a0da8069 2395
c6b750e1 2396# Make sure we can run config.sub.
81ecdfbb 2397$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2398 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2399
2400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2401$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2402if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2403 $as_echo_n "(cached) " >&6
2404else
2405 ac_build_alias=$build_alias
2406test "x$ac_build_alias" = x &&
2407 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2408test "x$ac_build_alias" = x &&
d0ac1c44 2409 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2410ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2411 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2412
2413fi
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2415$as_echo "$ac_cv_build" >&6; }
2416case $ac_cv_build in
2417*-*-*) ;;
d0ac1c44 2418*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2419esac
c6b750e1 2420build=$ac_cv_build
81ecdfbb
RW
2421ac_save_IFS=$IFS; IFS='-'
2422set x $ac_cv_build
2423shift
2424build_cpu=$1
2425build_vendor=$2
2426shift; shift
2427# Remember, the first character of IFS is used to create $*,
2428# except with old shells:
2429build_os=$*
2430IFS=$ac_save_IFS
2431case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2432
a0da8069 2433
c6b750e1
DJ
2434 case ${build_alias} in
2435 "") build_noncanonical=${build} ;;
2436 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2437esac
2438
2439
cac3d6c4 2440
c6b750e1
DJ
2441 case ${host_alias} in
2442 "") host_noncanonical=${build_noncanonical} ;;
2443 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2444esac
2445
cac3d6c4 2446
c6b750e1
DJ
2447
2448 case ${target_alias} in
2449 "") target_noncanonical=${host_noncanonical} ;;
2450 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2451esac
2452
cac3d6c4 2453
c6b750e1
DJ
2454
2455
2456test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2457 test "$program_prefix$program_suffix$program_transform_name" = \
2458 NONENONEs,x,x, &&
c6b750e1 2459 program_transform_name=s,y,y,
cac3d6c4 2460
81ecdfbb
RW
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2462$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2463if ${ac_cv_host+:} false; then :
81ecdfbb 2464 $as_echo_n "(cached) " >&6
cac3d6c4 2465else
81ecdfbb
RW
2466 if test "x$host_alias" = x; then
2467 ac_cv_host=$ac_cv_build
2468else
2469 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2470 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2471fi
c6b750e1
DJ
2472
2473fi
81ecdfbb
RW
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2475$as_echo "$ac_cv_host" >&6; }
2476case $ac_cv_host in
2477*-*-*) ;;
d0ac1c44 2478*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2479esac
c6b750e1 2480host=$ac_cv_host
81ecdfbb
RW
2481ac_save_IFS=$IFS; IFS='-'
2482set x $ac_cv_host
2483shift
2484host_cpu=$1
2485host_vendor=$2
2486shift; shift
2487# Remember, the first character of IFS is used to create $*,
2488# except with old shells:
2489host_os=$*
2490IFS=$ac_save_IFS
2491case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2492
2493
81ecdfbb
RW
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2495$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2496if ${ac_cv_target+:} false; then :
81ecdfbb 2497 $as_echo_n "(cached) " >&6
c6b750e1 2498else
81ecdfbb
RW
2499 if test "x$target_alias" = x; then
2500 ac_cv_target=$ac_cv_host
2501else
2502 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2503 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2504fi
c6b750e1 2505
cac3d6c4 2506fi
81ecdfbb
RW
2507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2508$as_echo "$ac_cv_target" >&6; }
2509case $ac_cv_target in
2510*-*-*) ;;
d0ac1c44 2511*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2512esac
c6b750e1 2513target=$ac_cv_target
81ecdfbb
RW
2514ac_save_IFS=$IFS; IFS='-'
2515set x $ac_cv_target
2516shift
2517target_cpu=$1
2518target_vendor=$2
2519shift; shift
2520# Remember, the first character of IFS is used to create $*,
2521# except with old shells:
2522target_os=$*
2523IFS=$ac_save_IFS
2524case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2525
2526
2527# The aliases save the names the user supplied, while $host etc.
2528# will get canonicalized.
2529test -n "$target_alias" &&
2530 test "$program_prefix$program_suffix$program_transform_name" = \
2531 NONENONEs,x,x, &&
2532 program_prefix=${target_alias}-
81ecdfbb 2533
a0da8069 2534test "$program_prefix" != NONE &&
81ecdfbb 2535 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2536# Use a double $ so make ignores it.
2537test "$program_suffix" != NONE &&
81ecdfbb
RW
2538 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2539# Double any \ or $.
c6b750e1 2540# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2541ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2542program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2543
a0da8069
NN
2544
2545
e5c3f801
NN
2546# Get 'install' or 'install-sh' and its variants.
2547# Find a good install program. We prefer a C program (faster),
2548# so one script is as good as another. But avoid the broken or
2549# incompatible versions:
2550# SysV /etc/install, /usr/sbin/install
2551# SunOS /usr/etc/install
2552# IRIX /sbin/install
2553# AIX /bin/install
c6b750e1 2554# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2555# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2556# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2557# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2558# OS/2's system install, which has a completely different semantic
e5c3f801 2559# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2560# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2562$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2563if test -z "$INSTALL"; then
d0ac1c44 2564if ${ac_cv_path_install+:} false; then :
81ecdfbb 2565 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2566else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568for as_dir in $PATH
2569do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2572 # Account for people who put trailing slashes in PATH elements.
2573case $as_dir/ in #((
2574 ./ | .// | /[cC]/* | \
c6b750e1 2575 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2576 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2577 /usr/ucb/* ) ;;
2578 *)
2579 # OSF1 and SCO ODT 3.0 have their own names for install.
2580 # Don't use installbsd from OSF since it installs stuff as root
2581 # by default.
2582 for ac_prog in ginstall scoinst install; do
2583 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2584 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 2585 if test $ac_prog = install &&
c6b750e1 2586 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2587 # AIX install. It has an incompatible calling convention.
2588 :
c6b750e1
DJ
2589 elif test $ac_prog = install &&
2590 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2591 # program-specific install script used by HP pwplus--don't use.
2592 :
e5c3f801 2593 else
58c85be7
RW
2594 rm -rf conftest.one conftest.two conftest.dir
2595 echo one > conftest.one
2596 echo two > conftest.two
2597 mkdir conftest.dir
2598 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2599 test -s conftest.one && test -s conftest.two &&
2600 test -s conftest.dir/conftest.one &&
2601 test -s conftest.dir/conftest.two
2602 then
2603 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2604 break 3
2605 fi
e5c3f801
NN
2606 fi
2607 fi
2608 done
c6b750e1
DJ
2609 done
2610 ;;
2611esac
81ecdfbb
RW
2612
2613 done
2614IFS=$as_save_IFS
c6b750e1 2615
58c85be7 2616rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2617
2618fi
2619 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2620 INSTALL=$ac_cv_path_install
e5c3f801 2621 else
58c85be7
RW
2622 # As a last resort, use the slow shell script. Don't cache a
2623 # value for INSTALL within a source directory, because that will
e5c3f801 2624 # break other packages using the cache if that directory is
58c85be7 2625 # removed, or if the value is a relative name.
c6b750e1 2626 INSTALL=$ac_install_sh
e5c3f801
NN
2627 fi
2628fi
81ecdfbb
RW
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2630$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2631
2632# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2633# It thinks the first close brace ends the variable substitution.
2634test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2635
c6b750e1 2636test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2637
2638test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2639
81ecdfbb
RW
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2641$as_echo_n "checking whether ln works... " >&6; }
d0ac1c44 2642if ${acx_cv_prog_LN+:} false; then :
81ecdfbb 2643 $as_echo_n "(cached) " >&6
656fdd47
PB
2644else
2645 rm -f conftestdata_t
2646echo >conftestdata_f
2647if ln conftestdata_f conftestdata_t 2>/dev/null
2648then
2649 acx_cv_prog_LN=ln
2650else
2651 acx_cv_prog_LN=no
2652fi
2653rm -f conftestdata_f conftestdata_t
2654
2655fi
2656if test $acx_cv_prog_LN = no; then
2657 LN="cp"
81ecdfbb
RW
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2659$as_echo "no, using $LN" >&6; }
656fdd47
PB
2660else
2661 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663$as_echo "yes" >&6; }
656fdd47
PB
2664fi
2665
81ecdfbb
RW
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2667$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2668LN_S=$as_ln_s
2669if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2671$as_echo "yes" >&6; }
cac3d6c4 2672else
81ecdfbb
RW
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2674$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2675fi
2676
8e957354
PB
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2678$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 2679if ${ac_cv_path_SED+:} false; then :
8e957354
PB
2680 $as_echo_n "(cached) " >&6
2681else
2682 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2683 for ac_i in 1 2 3 4 5 6 7; do
2684 ac_script="$ac_script$as_nl$ac_script"
2685 done
2686 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2687 { ac_script=; unset ac_script;}
2688 if test -z "$SED"; then
2689 ac_path_SED_found=false
2690 # Loop through the user's path and test for each of PROGNAME-LIST
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_prog in sed gsed; do
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 2699 as_fn_executable_p "$ac_path_SED" || continue
8e957354
PB
2700# Check for GNU ac_path_SED and select it if it is found.
2701 # Check for GNU $ac_path_SED
2702case `"$ac_path_SED" --version 2>&1` in
2703*GNU*)
2704 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2705*)
2706 ac_count=0
2707 $as_echo_n 0123456789 >"conftest.in"
2708 while :
2709 do
2710 cat "conftest.in" "conftest.in" >"conftest.tmp"
2711 mv "conftest.tmp" "conftest.in"
2712 cp "conftest.in" "conftest.nl"
2713 $as_echo '' >> "conftest.nl"
2714 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2715 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2716 as_fn_arith $ac_count + 1 && ac_count=$as_val
2717 if test $ac_count -gt ${ac_path_SED_max-0}; then
2718 # Best one so far, save it but keep looking for a better one
2719 ac_cv_path_SED="$ac_path_SED"
2720 ac_path_SED_max=$ac_count
2721 fi
2722 # 10*(2^10) chars as input seems more than enough
2723 test $ac_count -gt 10 && break
2724 done
2725 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2726esac
2727
2728 $ac_path_SED_found && break 3
2729 done
2730 done
2731 done
2732IFS=$as_save_IFS
2733 if test -z "$ac_cv_path_SED"; then
d0ac1c44 2734 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8e957354
PB
2735 fi
2736else
2737 ac_cv_path_SED=$SED
2738fi
2739
2740fi
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2742$as_echo "$ac_cv_path_SED" >&6; }
2743 SED="$ac_cv_path_SED"
2744 rm -f conftest.sed
2745
2746for ac_prog in gawk mawk nawk awk
2747do
2748 # Extract the first word of "$ac_prog", so it can be a program name with args.
2749set dummy $ac_prog; ac_word=$2
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2752if ${ac_cv_prog_AWK+:} false; then :
8e957354
PB
2753 $as_echo_n "(cached) " >&6
2754else
2755 if test -n "$AWK"; then
2756 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2757else
2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759for as_dir in $PATH
2760do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8e957354
PB
2765 ac_cv_prog_AWK="$ac_prog"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2768 fi
2769done
2770 done
2771IFS=$as_save_IFS
2772
2773fi
2774fi
2775AWK=$ac_cv_prog_AWK
2776if test -n "$AWK"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2778$as_echo "$AWK" >&6; }
2779else
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781$as_echo "no" >&6; }
2782fi
2783
2784
2785 test -n "$AWK" && break
2786done
2787
e5c3f801 2788
0fdbe983
DJ
2789srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2790
2791# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2792# a relative path.
2793if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2794 INSTALL="${srcpwd}/install-sh -c"
2795fi
2796
a0da8069
NN
2797# Set srcdir to "." if that's what it is.
2798# This is important for multilib support.
2799pwd=`${PWDCMD-pwd}`
a0da8069
NN
2800if test "${pwd}" = "${srcpwd}" ; then
2801 srcdir=.
252b5132
RH
2802fi
2803
a0da8069 2804topsrcdir=$srcpwd
252b5132 2805
a0da8069 2806extra_host_args=
afefada0 2807
a0da8069
NN
2808### To add a new directory to the tree, first choose whether it is a target
2809### or a host dependent tool. Then put it into the appropriate list
2810### (library or tools, host or target), doing a dependency sort.
252b5132 2811
c6b750e1 2812# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2813# configdirs, or target_configdirs; see the serialization section below.
252b5132 2814
c6b750e1
DJ
2815# Dependency sorting is only needed when *configuration* must be done in
2816# a particular order. In all cases a dependency should be specified in
a0da8069 2817# the Makefile, whether or not it's implicitly specified here.
252b5132 2818
a0da8069
NN
2819# Double entries in build_configdirs, configdirs, or target_configdirs may
2820# cause circular dependencies and break everything horribly.
252b5132 2821
6a9cf61e
PB
2822# these library is used by various programs built for the build
2823# environment
2824#
1b6c0831 2825build_libs="build-libiberty build-libcpp"
6a9cf61e
PB
2826
2827# these tools are built for the build environment
a90ef4bf 2828build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2829
a0da8069 2830# these libraries are used by various programs built for the host environment
1b6c0831 2831#f
2967219a 2832host_libs="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust "
a0da8069 2833
a0da8069
NN
2834# these tools are built for the host environment
2835# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2836# know that we are building the simulator.
2837# binutils, gas and ld appear in that order because it makes sense to run
2838# "make check" in that particular order.
e6de499b 2839# If --enable-gold is used, "gold" may replace "ld".
6a6859cb 2840host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gm2tools gotools c++tools"
a0da8069 2841
a0da8069
NN
2842# these libraries are built for the target environment, and are built after
2843# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2844# Note that libiberty is not a target library.
b1299c4e 2845target_libraries="target-libgcc \
2bf680c4 2846 target-libbacktrace \
a0da8069
NN
2847 target-libgloss \
2848 target-newlib \
cff87f51 2849 target-libgomp \
7ec59b9e 2850 target-libatomic \
d32e2926 2851 target-libitm \
b9459e83 2852 target-libstdc++-v3 \
5286fdef 2853 target-libsanitizer \
95e43135 2854 target-libvtv \
bb780410 2855 target-libssp \
e552509b 2856 target-libquadmath \
4b1cb4fe 2857 target-libgfortran \
05a13254 2858 target-libffi \
a2592b1b 2859 target-libobjc \
e552509b 2860 target-libada \
6a6859cb 2861 target-libgm2 \
228cf97d 2862 target-libgo \
2967219a 2863 target-libgrust \
228cf97d
AM
2864 target-libphobos \
2865 target-zlib"
a0da8069 2866
9c14acb8
NN
2867# these tools are built using the target libraries, and are intended to
2868# run only in the target environment
a0da8069 2869#
9c14acb8 2870# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2871# list belongs in this list.
a0da8069 2872#
a90ef4bf 2873target_tools="target-rda"
252b5132 2874
a0da8069 2875################################################################################
252b5132 2876
a0da8069
NN
2877## All tools belong in one of the four categories, and are assigned above
2878## We assign ${configdirs} this way to remove all embedded newlines. This
2879## is important because configure will choke if they ever get through.
2880## ${configdirs} is directories we build using the host tools.
2881## ${target_configdirs} is directories we build using the target tools.
a0da8069 2882configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2883target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2884build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2885
9cc8ae67
PB
2886
2887
a0da8069 2888################################################################################
252b5132 2889
a0da8069 2890srcname="gnu development package"
252b5132 2891
a0da8069
NN
2892# This gets set non-empty for some net releases of packages.
2893appdirs=""
252b5132 2894
a0da8069
NN
2895# Define is_cross_compiler to save on calls to 'test'.
2896is_cross_compiler=
2897if test x"${host}" = x"${target}" ; then
2898 is_cross_compiler=no
252b5132 2899else
a0da8069 2900 is_cross_compiler=yes
c6b750e1 2901fi
252b5132 2902
9175bfc0 2903# Find the build and target subdir names.
dd12c3a8 2904
66a79c16
DJ
2905# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2906# have matching libraries, they should use host libraries: Makefile.tpl
2907# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2908# However, they still use the build modules, because the corresponding
2909# host modules (e.g. bison) are only built for the host when bootstrap
2910# finishes. So:
2911# - build_subdir is where we find build modules, and never changes.
2912# - build_libsubdir is where we find build libraries, and can be overridden.
2913
2914# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2915build_subdir="build-${build_noncanonical}"
c6b750e1 2916
81ecdfbb
RW
2917# Check whether --with-build-libsubdir was given.
2918if test "${with_build_libsubdir+set}" = set; then :
2919 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2920else
2921 build_libsubdir="$build_subdir"
81ecdfbb
RW
2922fi
2923
b00612cc
PB
2924# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2925if ( test $srcdir = . && test -d gcc ) \
2926 || test -d $srcdir/../host-${host_noncanonical}; then
2927 host_subdir="host-${host_noncanonical}"
2928else
2929 host_subdir=.
2930fi
dd12c3a8
NN
2931# No prefix.
2932target_subdir=${target_noncanonical}
c6b750e1 2933
2fd0b40b
RW
2934# Be sure to cover against remnants of an in-tree build.
2935if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
d0ac1c44 2936 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2fd0b40b
RW
2937Use a pristine source tree when building in a separate tree" "$LINENO" 5
2938fi
252b5132 2939
a0da8069
NN
2940# Skipdirs are removed silently.
2941skipdirs=
2942# Noconfigdirs are removed loudly.
2943noconfigdirs=""
252b5132 2944
a0da8069
NN
2945use_gnu_ld=
2946# Make sure we don't let GNU ld be added if we didn't want it.
2947if test x$with_gnu_ld = xno ; then
2948 use_gnu_ld=no
93f9b408 2949 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2950fi
2951
a0da8069
NN
2952use_gnu_as=
2953# Make sure we don't let GNU as be added if we didn't want it.
2954if test x$with_gnu_as = xno ; then
2955 use_gnu_as=no
2956 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2957fi
2958
700d40ca 2959use_included_zlib=
cf39cfc5
L
2960
2961# Check whether --with-system-zlib was given.
2962if test "${with_system_zlib+set}" = set; then :
2963 withval=$with_system_zlib;
2964fi
2965
700d40ca
ILT
2966# Make sure we don't let ZLIB be added if we didn't want it.
2967if test x$with_system_zlib = xyes ; then
2968 use_included_zlib=no
2969 noconfigdirs="$noconfigdirs zlib"
2970fi
2971
1c232ab0
ДП
2972# Don't compile the bundled readline/libreadline.a if --with-system-readline
2973# is provided.
2974if test x$with_system_readline = xyes ; then
2975 noconfigdirs="$noconfigdirs readline"
2976fi
2977
2cac01e3
FS
2978
2979# Check whether --with-zstd was given.
2980if test "${with_zstd+set}" = set; then :
2981 withval=$with_zstd;
2982fi
2983
2984
c6b750e1 2985# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2986# it's not even worth trying to configure, much less build, that tool.
252b5132 2987
a0da8069
NN
2988case ${with_x} in
2989 yes | "") ;; # the default value for this tree is that X11 is available
2990 no)
675c6968 2991 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2992 # We won't be able to build gdbtk without X.
c6b750e1 2993 enable_gdbtk=no
a0da8069
NN
2994 ;;
2995 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2996esac
252b5132 2997
0377a422 2998# Some are only suitable for cross toolchains.
a0da8069
NN
2999# Remove these if host=target.
3000cross_only="target-libgloss target-newlib target-opcodes"
3001
3002case $is_cross_compiler in
3003 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 3004esac
252b5132 3005
a0da8069
NN
3006# If both --with-headers and --with-libs are specified, default to
3007# --without-newlib.
32be62b5
RS
3008if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3009 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
3010 if test x"${with_newlib}" = x ; then
3011 with_newlib=no
3012 fi
252b5132
RH
3013fi
3014
a0da8069
NN
3015# Recognize --with-newlib/--without-newlib.
3016case ${with_newlib} in
3017 no) skipdirs="${skipdirs} target-newlib" ;;
3018 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3019esac
252b5132 3020
1b6c0831
L
3021# Check whether --enable-as-accelerator-for was given.
3022if test "${enable_as_accelerator_for+set}" = set; then :
3023 enableval=$enable_as_accelerator_for;
3024fi
3025
3026
3027# Check whether --enable-offload-targets was given.
3028if test "${enable_offload_targets+set}" = set; then :
3029 enableval=$enable_offload_targets;
3030 if test x"$enable_offload_targets" = x; then
d0ac1c44 3031 as_fn_error $? "no offload targets specified" "$LINENO" 5
1b6c0831
L
3032 fi
3033
3034else
3035 enable_offload_targets=
3036fi
3037
3038
228cf97d
AM
3039# Check whether --enable-offload-defaulted was given.
3040if test "${enable_offload_defaulted+set}" = set; then :
3041 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3042else
3043 enable_offload_defaulted=
3044fi
3045
3046
c7791212
NC
3047# Handle --enable-gold, --enable-ld.
3048# --disable-gold [--enable-ld]
3049# Build only ld. Default option.
d3b50760
L
3050# --enable-gold [--enable-ld]
3051# Build both gold and ld. Install gold as "ld.gold", install ld
3052# as "ld.bfd" and "ld".
3053# --enable-gold=default [--enable-ld]
c7791212
NC
3054# Build both gold and ld. Install gold as "ld.gold" and "ld",
3055# install ld as "ld.bfd".
3056# --enable-gold[=default] --disable-ld
3057# Build only gold, which is then installed as both "ld.gold" and "ld".
3058# --enable-gold --enable-ld=default
d3b50760
L
3059# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3060# and ld.bfd).
c7791212
NC
3061# In other words, ld is default
3062# --enable-gold=default --enable-ld=default
3063# Error.
3064
3065default_ld=
81ecdfbb
RW
3066# Check whether --enable-gold was given.
3067if test "${enable_gold+set}" = set; then :
3068 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
3069else
3070 ENABLE_GOLD=no
81ecdfbb
RW
3071fi
3072
c7791212
NC
3073case "${ENABLE_GOLD}" in
3074 yes|default)
e6de499b
NC
3075 # Check for ELF target.
3076 is_elf=no
3077 case "${target}" in
3078 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2344b8da 3079 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 3080 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
6a6859cb 3081 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
e6de499b
NC
3082 case "${target}" in
3083 *-*-linux*aout* | *-*-linux*oldld*)
3084 ;;
3085 *)
3086 is_elf=yes
3087 ;;
3088 esac
3089 esac
3090
3091 if test "$is_elf" = "yes"; then
3092 # Check for target supported by gold.
93f9b408 3093 case "${target}" in
6d26190c 3094 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
228cf97d 3095 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
c7791212
NC
3096 configdirs="$configdirs gold"
3097 if test x${ENABLE_GOLD} = xdefault; then
3098 default_ld=gold
3099 fi
e6de499b 3100 ENABLE_GOLD=yes
93f9b408
ILT
3101 ;;
3102 esac
e6de499b
NC
3103 fi
3104 ;;
3105 no)
3106 ;;
3107 *)
d0ac1c44 3108 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
e6de499b 3109 ;;
c7791212
NC
3110esac
3111
3112# Check whether --enable-ld was given.
3113if test "${enable_ld+set}" = set; then :
3114 enableval=$enable_ld; ENABLE_LD=$enableval
3115else
3116 ENABLE_LD=yes
3117fi
3118
3119
3120case "${ENABLE_LD}" in
3121 default)
d3b50760 3122 if test x${default_ld} != x; then
d0ac1c44 3123 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
c7791212
NC
3124 fi
3125 ;;
3126 yes)
3127 ;;
3128 no)
3129 if test x${ENABLE_GOLD} != xyes; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3131$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3132 fi
3133 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3134 ;;
3135 *)
d0ac1c44 3136 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
c7791212
NC
3137 ;;
3138esac
93f9b408 3139
bb368aad
VM
3140# Check whether --enable-gprofng was given.
3141if test "${enable_gprofng+set}" = set; then :
3142 enableval=$enable_gprofng; enable_gprofng=$enableval
3143else
3144 enable_gprofng=yes
3145fi
3146
3147if test "$enable_gprofng" = "yes"; then
3148 case "${target}" in
3149 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3150 configdirs="$configdirs gprofng"
3151 ;;
3152 esac
3153fi
3154
3155
edeefb67
L
3156# PR gas/19109
3157# Decide the default method for compressing debug sections.
3158# Provide a configure time option to override our default.
3159# Check whether --enable-compressed_debug_sections was given.
3160if test "${enable_compressed_debug_sections+set}" = set; then :
3161 enableval=$enable_compressed_debug_sections;
3162 if test x"$enable_compressed_debug_sections" = xyes; then
d0ac1c44 3163 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
edeefb67
L
3164 fi
3165
3166else
3167 enable_compressed_debug_sections=
3168fi
3169
3170
b0c295e1
ML
3171# Select default compression algorithm.
3172# Check whether --enable-default_compressed_debug_sections_algorithm was given.
3173if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3174 enableval=$enable_default_compressed_debug_sections_algorithm;
3175else
3176 default_compressed_debug_sections_algorithm=
3177fi
3178
3179
a0da8069 3180# Configure extra directories which are host specific
252b5132 3181
a0da8069
NN
3182case "${host}" in
3183 *-cygwin*)
3184 configdirs="$configdirs libtermcap" ;;
3185esac
252b5132 3186
59f7ec45
HPN
3187# A target can indicate whether a language isn't supported for some reason.
3188# Only spaces may be used in this macro; not newlines or tabs.
3189unsupported_languages=
3190
c6b750e1 3191# Remove more programs from consideration, based on the host or
a0da8069
NN
3192# target this usually means that a port of the program doesn't
3193# exist yet.
252b5132 3194
a0da8069 3195case "${host}" in
3516a403 3196 i[3456789]86-*-msdosdjgpp*)
6a608608 3197 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3198 ;;
a0da8069 3199esac
252b5132 3200
e5f2f7d9
LM
3201# Default to --disable-year2038 until we can handle differences between
3202# projects that use gnulib (which understands year 2038) and projects that
3203# do not (like BFD).
3204# Check whether --enable-year2038 was given.
3205if test "${enable_year2038+set}" = set; then :
3206 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3207else
3208 ENABLE_YEAR2038=no
3209fi
3210
3211enable_year2038=
3212if test "${ENABLE_YEAR2038}" = "no" ; then
3213 enable_year2038=no
3214fi
4b1cb4fe 3215
89a1e9c3
PB
3216# Check whether --enable-libquadmath was given.
3217if test "${enable_libquadmath+set}" = set; then :
3218 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3219else
3220 ENABLE_LIBQUADMATH=yes
3221fi
3222
3223if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3224 noconfigdirs="$noconfigdirs target-libquadmath"
3225fi
3226
3227
3228# Check whether --enable-libquadmath-support was given.
3229if test "${enable_libquadmath_support+set}" = set; then :
3230 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3231else
3232 ENABLE_LIBQUADMATH_SUPPORT=yes
3233fi
3234
3235enable_libquadmath_support=
3236if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3237 enable_libquadmath_support=no
3238fi
3239
3240
81ecdfbb
RW
3241# Check whether --enable-libada was given.
3242if test "${enable_libada+set}" = set; then :
3243 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3244else
3245 ENABLE_LIBADA=yes
81ecdfbb
RW
3246fi
3247
a2592b1b 3248if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3249 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3250fi
3251
6a6859cb
AM
3252# Check whether --enable-libgm2 was given.
3253if test "${enable_libgm2+set}" = set; then :
3254 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3255else
3256 ENABLE_LIBGM2=no
3257fi
3258
3259if test "${ENABLE_LIBGM2}" != "yes" ; then
3260 noconfigdirs="$noconfigdirs gm2tools"
3261fi
3262
81ecdfbb
RW
3263# Check whether --enable-libssp was given.
3264if test "${enable_libssp+set}" = set; then :
3265 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3266else
3267 ENABLE_LIBSSP=yes
81ecdfbb
RW
3268fi
3269
5f128533 3270
f66a9a70
L
3271# Check whether --enable-libstdcxx was given.
3272if test "${enable_libstdcxx+set}" = set; then :
3273 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3274else
3275 ENABLE_LIBSTDCXX=default
3276fi
3277
3278if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1b6c0831
L
3279 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3280fi
3281
68996839 3282# Enable libgomp by default on hosted POSIX systems, and a few others.
a6df5a19 3283if test x$enable_libgomp = x ; then
b3ded179 3284 case "${target}" in
29383458 3285 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3286 ;;
5b806d27 3287 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3288 ;;
2479f722 3289 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3290 ;;
3291 *-*-darwin* | *-*-aix*)
3292 ;;
228cf97d 3293 nvptx*-*-* | amdgcn*-*-*)
68996839 3294 ;;
b3ded179
PB
3295 *)
3296 noconfigdirs="$noconfigdirs target-libgomp"
3297 ;;
3298 esac
a6df5a19 3299fi
b3ded179 3300
7ec59b9e
L
3301# Disable libatomic on unsupported systems.
3302if test -d ${srcdir}/libatomic; then
3303 if test x$enable_libatomic = x; then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3305$as_echo_n "checking for libatomic support... " >&6; }
3306 if (srcdir=${srcdir}/libatomic; \
3307 . ${srcdir}/configure.tgt; \
3308 test -n "$UNSUPPORTED")
3309 then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311$as_echo "no" >&6; }
3312 noconfigdirs="$noconfigdirs target-libatomic"
3313 else
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3315$as_echo "yes" >&6; }
3316 fi
3317 fi
3318fi
3319
d32e2926
RH
3320# Disable libitm on unsupported systems.
3321if test -d ${srcdir}/libitm; then
3322 if test x$enable_libitm = x; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3324$as_echo_n "checking for libitm support... " >&6; }
3325 if (srcdir=${srcdir}/libitm; \
3326 . ${srcdir}/configure.tgt; \
3327 test -n "$UNSUPPORTED")
3328 then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330$as_echo "no" >&6; }
3331 noconfigdirs="$noconfigdirs target-libitm"
3332 else
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3334$as_echo "yes" >&6; }
3335 fi
3336 fi
3337fi
3338
5286fdef
L
3339# Disable libsanitizer on unsupported systems.
3340if test -d ${srcdir}/libsanitizer; then
3341 if test x$enable_libsanitizer = x; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3343$as_echo_n "checking for libsanitizer support... " >&6; }
3344 if (srcdir=${srcdir}/libsanitizer; \
3345 . ${srcdir}/configure.tgt; \
3346 test -n "$UNSUPPORTED")
3347 then
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349$as_echo "no" >&6; }
3350 noconfigdirs="$noconfigdirs target-libsanitizer"
3351 else
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3353$as_echo "yes" >&6; }
3354 fi
3355 fi
3356fi
3357
95e43135
JBG
3358# Disable libvtv on unsupported systems.
3359if test -d ${srcdir}/libvtv; then
3360 if test x$enable_libvtv = x; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3362$as_echo_n "checking for libvtv support... " >&6; }
3363 if (srcdir=${srcdir}/libvtv; \
3364 . ${srcdir}/configure.tgt; \
3365 test "$VTV_SUPPORTED" != "yes")
3366 then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368$as_echo "no" >&6; }
3369 noconfigdirs="$noconfigdirs target-libvtv"
3370 else
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3372$as_echo "yes" >&6; }
3373 fi
3374 fi
3375fi
3376
1488e230
DE
3377# Disable libquadmath for some systems.
3378case "${target}" in
5286fdef
L
3379 avr-*-*)
3380 noconfigdirs="$noconfigdirs target-libquadmath"
3381 ;;
1488e230
DE
3382 # libquadmath is unused on AIX and libquadmath build process use of
3383 # LD_LIBRARY_PATH can break AIX bootstrap.
3384 powerpc-*-aix* | rs6000-*-aix*)
3385 noconfigdirs="$noconfigdirs target-libquadmath"
3386 ;;
3387esac
3388
065a5627
JM
3389# Disable libssp for some systems.
3390case "${target}" in
3391 avr-*-*)
c5f5c3c2 3392 # No hosted I/O support.
065a5627
JM
3393 noconfigdirs="$noconfigdirs target-libssp"
3394 ;;
228cf97d
AM
3395 bpf-*-*)
3396 noconfigdirs="$noconfigdirs target-libssp"
3397 ;;
065a5627
JM
3398 powerpc-*-aix* | rs6000-*-aix*)
3399 noconfigdirs="$noconfigdirs target-libssp"
3400 ;;
228cf97d
AM
3401 pru-*-*)
3402 # No hosted I/O support.
3403 noconfigdirs="$noconfigdirs target-libssp"
3404 ;;
99c513f6 3405 rl78-*-*)
202e2356
NC
3406 # libssp uses a misaligned load to trigger a fault, but the RL78
3407 # doesn't fault for those - instead, it gives a build-time error
3408 # for explicit misaligned loads.
99c513f6
DD
3409 noconfigdirs="$noconfigdirs target-libssp"
3410 ;;
1b6c0831
L
3411 visium-*-*)
3412 # No hosted I/O support.
3413 noconfigdirs="$noconfigdirs target-libssp"
3414 ;;
065a5627
JM
3415esac
3416
065a5627 3417# Disable libstdc++-v3 for some systems.
228cf97d 3418# Allow user to override this if they pass --enable-libstdcxx
f66a9a70
L
3419if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3420 case "${target}" in
3421 *-*-vxworks*)
3422 # VxWorks uses the Dinkumware C++ library.
3423 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3424 ;;
228cf97d
AM
3425 amdgcn*-*-*)
3426 # Not ported/fails to build when using newlib.
3427 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3428 ;;
f66a9a70
L
3429 arm*-wince-pe*)
3430 # the C++ libraries don't build on top of CE's C libraries
3431 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3432 ;;
3433 avr-*-*)
3434 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3435 ;;
228cf97d
AM
3436 bpf-*-*)
3437 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3438 ;;
969b1713
L
3439 ft32-*-*)
3440 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3441 ;;
f66a9a70
L
3442 esac
3443fi
065a5627 3444
228cf97d
AM
3445# Disable C++ on systems where it is known to not work.
3446# For testing, you can override this with --enable-languages=c++.
3447case ,${enable_languages}, in
3448 *,c++,*)
3449 ;;
3450 *)
3451 case "${target}" in
3452 bpf-*-*)
3453 unsupported_languages="$unsupported_languages c++"
3454 ;;
3455 esac
3456 ;;
3457esac
3458
3459# Disable Objc on systems where it is known to not work.
3460# For testing, you can override this with --enable-languages=objc.
3461case ,${enable_languages}, in
3462 *,objc,*)
3463 ;;
3464 *)
3465 case "${target}" in
3466 bpf-*-*)
3467 unsupported_languages="$unsupported_languages objc"
3468 ;;
3469 esac
3470 ;;
3471esac
3472
3473# Disable D on systems where it is known to not work.
3474# For testing, you can override this with --enable-languages=d.
3475case ,${enable_languages}, in
3476 *,d,*)
3477 ;;
3478 *)
3479 case "${target}" in
3480 bpf-*-*)
3481 unsupported_languages="$unsupported_languages d"
3482 ;;
3483 esac
3484 ;;
3485esac
3486
3487# Disable libphobos on unsupported systems.
3488# For testing, you can override this with --enable-libphobos.
3489if test -d ${srcdir}/libphobos; then
3490 if test x$enable_libphobos = x; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3492$as_echo_n "checking for libphobos support... " >&6; }
3493 if (srcdir=${srcdir}/libphobos; \
3494 . ${srcdir}/configure.tgt; \
3495 test "$LIBPHOBOS_SUPPORTED" != "yes")
3496 then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498$as_echo "no" >&6; }
3499 noconfigdirs="$noconfigdirs target-libphobos"
3500 else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3502$as_echo "yes" >&6; }
3503 fi
3504 fi
3505fi
3506
065a5627
JM
3507# Disable Fortran for some systems.
3508case "${target}" in
3509 mmix-*-*)
3510 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3511 unsupported_languages="$unsupported_languages fortran"
3512 ;;
228cf97d
AM
3513 bpf-*-*)
3514 unsupported_languages="$unsupported_languages fortran"
3515 ;;
065a5627
JM
3516esac
3517
05a13254 3518# Disable libffi for some systems.
0827f9a6 3519case "${target}" in
9863d716
JM
3520 powerpc-*-darwin*)
3521 ;;
3522 i[3456789]86-*-darwin*)
3523 ;;
3524 x86_64-*-darwin[912]*)
3525 ;;
3526 *-*-darwin*)
05a13254 3527 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3528 ;;
9863d716 3529 *-*-netware*)
05a13254
NC
3530 noconfigdirs="$noconfigdirs target-libffi"
3531 ;;
3532 *-*-phoenix*)
3533 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3534 ;;
3535 *-*-rtems*)
05a13254 3536 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3537 ;;
3538 *-*-tpf*)
05a13254 3539 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3540 ;;
3541 *-*-uclinux*)
05a13254 3542 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3543 ;;
3544 *-*-vxworks*)
05a13254
NC
3545 noconfigdirs="$noconfigdirs target-libffi"
3546 ;;
3547 aarch64*-*-freebsd*)
3548 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3549 ;;
9863d716 3550 alpha*-*-*vms*)
05a13254 3551 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3552 ;;
1b6c0831 3553 arm*-*-freebsd*)
05a13254 3554 noconfigdirs="$noconfigdirs target-libffi"
1b6c0831 3555 ;;
0827f9a6 3556 arm-wince-pe)
05a13254 3557 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3558 ;;
228cf97d
AM
3559 arm*-*-symbianelf*)
3560 noconfigdirs="$noconfigdirs target-libffi"
3561 ;;
3562 bpf-*-*)
3563 noconfigdirs="$noconfigdirs target-libffi"
3564 ;;
9863d716 3565 cris-*-* | crisv32-*-*)
9863d716
JM
3566 case "${target}" in
3567 *-*-linux*)
3568 ;;
3569 *) # See PR46792 regarding target-libffi.
05a13254 3570 noconfigdirs="$noconfigdirs target-libffi";;
9863d716
JM
3571 esac
3572 ;;
82ae827f 3573 hppa*64*-*-hpux*)
05a13254 3574 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3575 ;;
3576 hppa*-hp-hpux11*)
3577 ;;
82ae827f 3578 hppa*-*-hpux*)
05a13254 3579 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3580 ;;
9863d716 3581 ia64*-*-*vms*)
05a13254 3582 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3583 ;;
9863d716 3584 i[3456789]86-w64-mingw*)
05a13254 3585 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3586 ;;
3587 i[3456789]86-*-mingw*)
05a13254 3588 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3589 ;;
3590 x86_64-*-mingw*)
05a13254 3591 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3592 ;;
9863d716 3593 mmix-*-*)
05a13254 3594 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3595 ;;
3596 powerpc-*-aix*)
9863d716 3597 ;;
9863d716 3598 rs6000-*-aix*)
9863d716 3599 ;;
3f8107ab 3600 ft32-*-*)
05a13254 3601 noconfigdirs="$noconfigdirs target-libffi"
3f8107ab 3602 ;;
9863d716 3603 *-*-lynxos*)
05a13254 3604 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3605 ;;
9863d716
JM
3606esac
3607
1b6c0831
L
3608# Disable the go frontend on systems where it is known to not work. Please keep
3609# this in sync with contrib/config-list.mk.
3610case "${target}" in
228cf97d 3611*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
1b6c0831
L
3612 unsupported_languages="$unsupported_languages go"
3613 ;;
3614esac
3615
919adfe8
TT
3616# Only allow gdbserver on some systems.
3617if test -d ${srcdir}/gdbserver; then
3618 if test x$enable_gdbserver = x; then
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3620$as_echo_n "checking for gdbserver support... " >&6; }
3621 if (srcdir=${srcdir}/gdbserver; \
3622 . ${srcdir}/configure.srv; \
3623 test -n "$UNSUPPORTED")
3624 then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3626$as_echo "no" >&6; }
3627 noconfigdirs="$noconfigdirs gdbserver"
3628 else
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3630$as_echo "yes" >&6; }
3631 fi
3632 fi
3633fi
3634
a413f71a
ILT
3635# Disable libgo for some systems where it is known to not work.
3636# For testing, you can easily override this with --enable-libgo.
3637if test x$enable_libgo = x; then
3638 case "${target}" in
3639 *-*-darwin*)
3640 # PR 46986
3641 noconfigdirs="$noconfigdirs target-libgo"
3642 ;;
3643 *-*-cygwin* | *-*-mingw*)
3644 noconfigdirs="$noconfigdirs target-libgo"
3645 ;;
228cf97d
AM
3646 bpf-*-*)
3647 noconfigdirs="$noconfigdirs target-libgo"
3648 ;;
a413f71a
ILT
3649 esac
3650fi
3651
691bb5a1
DD
3652# Default libgloss CPU subdirectory.
3653libgloss_dir="$target_cpu"
4b1cb4fe 3654
ff46fb8f
JM
3655case "${target}" in
3656 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3657 libgloss_dir=wince
3658 ;;
f1dd87fc
YZ
3659 aarch64*-*-* )
3660 libgloss_dir=aarch64
3661 ;;
ff46fb8f
JM
3662 arm*-*-*)
3663 libgloss_dir=arm
3664 ;;
3665 cris-*-* | crisv32-*-*)
3666 libgloss_dir=cris
3667 ;;
6e712424
PI
3668 kvx-*-elf)
3669 libgloss_dir=kvx-elf
3670 ;;
3671 kvx-*-mbr)
3672 libgloss_dir=kvx-mbr
3673 ;;
3674 kvx-*-cos)
3675 libgloss_dir=kvx-cos
3676 ;;
ff46fb8f
JM
3677 hppa*-*-*)
3678 libgloss_dir=pa
3679 ;;
3680 i[3456789]86-*-*)
3681 libgloss_dir=i386
3682 ;;
228cf97d
AM
3683 loongarch*-*-*)
3684 libgloss_dir=loongarch
3685 ;;
ff46fb8f
JM
3686 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3687 libgloss_dir=m68hc11
3688 ;;
3689 m68*-*-* | fido-*-*)
3690 libgloss_dir=m68k
3691 ;;
3692 mips*-*-*)
3693 libgloss_dir=mips
3694 ;;
3695 powerpc*-*-*)
3696 libgloss_dir=rs6000
3697 ;;
228cf97d
AM
3698 pru-*-*)
3699 libgloss_dir=pru
3700 ;;
ff46fb8f
JM
3701 sparc*-*-*)
3702 libgloss_dir=sparc
3703 ;;
3704esac
3705
c7e4b184 3706# Disable newlib and libgloss for various target OSes.
a0da8069 3707case "${target}" in
c7e4b184
JM
3708 alpha*-dec-osf*)
3709 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3710 ;;
3711 i[3456789]86-*-linux*)
3712 # This section makes it possible to build newlib natively on linux.
3713 # If we are using a cross compiler then don't configure newlib.
3714 if test x${is_cross_compiler} != xno ; then
3715 noconfigdirs="$noconfigdirs target-newlib"
3716 fi
3717 noconfigdirs="$noconfigdirs target-libgloss"
3718 # If we are not using a cross compiler, do configure newlib.
3719 # Note however, that newlib will only be configured in this situation
3720 # if the --with-newlib option has been given, because otherwise
3721 # 'target-newlib' will appear in skipdirs.
3722 ;;
3723 i[3456789]86-*-rdos*)
3724 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725 ;;
3726 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3727 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728 ;;
3729 sparc-*-sunos4*)
3730 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3731 ;;
228cf97d
AM
3732 bpf-*-*)
3733 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3734 ;;
c7e4b184
JM
3735 *-*-aix*)
3736 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3737 ;;
3738 *-*-beos*)
3739 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3740 ;;
a0da8069 3741 *-*-chorusos)
b2f14e4a 3742 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3743 ;;
c7e4b184
JM
3744 *-*-dragonfly*)
3745 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3746 ;;
3747 *-*-freebsd*)
3748 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3749 ;;
3750 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3751 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3752 ;;
3753 *-*-lynxos*)
3754 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3755 ;;
3756 *-*-mingw*)
3757 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3758 ;;
3759 *-*-netbsd*)
3760 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3761 ;;
3762 *-*-netware*)
3763 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3764 ;;
3765 *-*-tpf*)
3766 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3767 ;;
3768 *-*-uclinux*)
3769 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3770 ;;
3771 *-*-vxworks*)
3772 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3773 ;;
3774esac
3775
3776case "${target}" in
3777 *-*-chorusos)
3778 ;;
f075eb5e
TG
3779 aarch64-*-darwin*)
3780 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3781 noconfigdirs="$noconfigdirs sim target-rda"
3782 ;;
228cf97d
AM
3783 amdgcn*-*-*)
3784 ;;
f075eb5e
TG
3785 arm-*-darwin*)
3786 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3787 noconfigdirs="$noconfigdirs sim target-rda"
3788 ;;
24741ab2 3789 powerpc-*-darwin*)
9d39db92 3790 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3791 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3792 ;;
85bd1942
TG
3793 i[3456789]86-*-darwin*)
3794 noconfigdirs="$noconfigdirs ld gprof"
3795 noconfigdirs="$noconfigdirs sim target-rda"
3796 ;;
e8a5fa9c 3797 x86_64-*-darwin[912]*)
652dec25
TG
3798 noconfigdirs="$noconfigdirs ld gas gprof"
3799 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3800 ;;
04d1ab34 3801 *-*-darwin*)
d320aacb 3802 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3803 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3804 ;;
5b806d27 3805 *-*-dragonfly*)
5b806d27 3806 ;;
de0b4a87 3807 *-*-freebsd*)
228cf97d
AM
3808 if test "x$with_gmp" = x \
3809 && ! test -d ${srcdir}/gmp \
4b1cb4fe
DD
3810 && test -f /usr/local/include/gmp.h; then
3811 with_gmp=/usr/local
3812 fi
4b1cb4fe 3813 ;;
f8a495c8
NC
3814 *-*-kaos*)
3815 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3816 noconfigdirs="$noconfigdirs target-libgloss"
3817 ;;
a0da8069 3818 *-*-netbsd*)
a0da8069 3819 ;;
2a3124ca 3820 *-*-netware*)
a0da8069 3821 ;;
05a13254
NC
3822 *-*-phoenix*)
3823 noconfigdirs="$noconfigdirs target-libgloss"
3824 ;;
a0da8069 3825 *-*-rtems*)
9863d716 3826 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3827 ;;
1587117a
EC
3828 # The tpf target doesn't support gdb yet.
3829 *-*-tpf*)
c7e4b184 3830 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3831 ;;
c1968181 3832 *-*-uclinux*)
c7e4b184 3833 noconfigdirs="$noconfigdirs target-rda"
c1968181 3834 ;;
a0da8069 3835 *-*-vxworks*)
a0da8069
NN
3836 ;;
3837 alpha*-dec-osf*)
3838 # ld works, but does not support shared libraries.
a0da8069 3839 # gas doesn't generate exception information.
c7e4b184 3840 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3841 ;;
3842 alpha*-*-*vms*)
9863d716 3843 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3844 ;;
a0da8069
NN
3845 alpha*-*-*)
3846 # newlib is not 64 bit ready
9863d716 3847 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3848 ;;
228cf97d
AM
3849 bpf-*-*)
3850 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3851 ;;
a0da8069 3852 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3853 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3854 ;;
05a13254
NC
3855 arc*-*-*)
3856 noconfigdirs="$noconfigdirs sim"
a0da8069 3857 ;;
a0da8069 3858 arm-*-pe*)
9863d716 3859 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3860 ;;
a0da8069 3861 arm-*-riscix*)
b2f14e4a 3862 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3863 ;;
8e71395b
L
3864 avr-*-*)
3865 if test x${with_avrlibc} != xno; then
3866 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3867 fi
3868 ;;
a0da8069 3869 c4x-*-* | tic4x-*-*)
b2f14e4a 3870 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3871 ;;
b2f14e4a
JM
3872 tic54x-*-*)
3873 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3874 ;;
a0da8069 3875 d10v-*-*)
b2f14e4a 3876 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3877 ;;
3878 d30v-*-*)
b2f14e4a 3879 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3880 ;;
3881 fr30-*-elf*)
9863d716 3882 noconfigdirs="$noconfigdirs gdb"
a0da8069 3883 ;;
3f8107ab
AM
3884 ft32-*-*)
3885 noconfigdirs="$noconfigdirs target-rda gprof"
3886 ;;
20135e4c 3887 moxie-*-*)
10b8fe5e 3888 noconfigdirs="$noconfigdirs"
20135e4c 3889 ;;
a0da8069 3890 h8300*-*-*)
9863d716 3891 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3892 ;;
3893 h8500-*-*)
b2f14e4a 3894 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3895 ;;
caeba88f 3896 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3897 ;;
5569a85f
JDA
3898 hppa*64*-*-hpux*)
3899 noconfigdirs="$noconfigdirs gdb"
3900 ;;
3901 hppa*-*-hpux11*)
3902 noconfigdirs="$noconfigdirs gdb ld"
3903 ;;
93cc359e 3904 hppa*64*-*-linux*)
a0da8069 3905 ;;
f0ff0f90 3906 hppa*-*-linux*)
5dcac624 3907 ;;
a0da8069 3908 hppa*-*-*elf* | \
a0da8069
NN
3909 hppa*-*-lites* | \
3910 hppa*-*-openbsd* | \
3911 hppa*64*-*-*)
4f0ef2d8 3912 ;;
691bb5a1 3913 hppa*-*-pro*)
691bb5a1 3914 ;;
a0da8069 3915 hppa*-*-*)
9863d716 3916 noconfigdirs="$noconfigdirs ld"
a0da8069 3917 ;;
b07c2aad 3918 i960-*-*)
b2f14e4a 3919 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3920 ;;
a0da8069
NN
3921 ia64*-*-elf*)
3922 # No gdb support yet.
0377a422 3923 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3924 ;;
3925 ia64*-**-hpux*)
92c9a463 3926 # No ld support yet.
5569a85f 3927 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
a0da8069 3928 ;;
19e99079 3929 ia64*-*-*vms*)
7ec59b9e
L
3930 # No ld support yet.
3931 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3932 ;;
1f53ca9a 3933 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3934 ;;
3935 i[3456789]86-*-mingw*)
45055374 3936 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3937 ;;
a0da8069
NN
3938 *-*-cygwin*)
3939 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3940 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3941 # always build newlib if winsup directory is present.
45055374 3942 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3943 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3944 elif test -d "$srcdir/newlib"; then
45055374 3945 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3946 fi
c6b750e1 3947 ;;
ec11bdc6 3948 i[3456789]86-*-pe)
782cb41f 3949 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3950 ;;
ec11bdc6 3951 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3952 # The linker does not yet know about weak symbols in COFF,
3953 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3954 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3955 ;;
ec11bdc6 3956 i[3456789]86-*-sco*)
b2f14e4a 3957 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3958 ;;
cff32a7c 3959 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3960 noconfigdirs="$noconfigdirs target-libgloss"
3961 ;;
ec11bdc6 3962 i[3456789]86-*-sysv4*)
b2f14e4a 3963 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3964 ;;
ec11bdc6 3965 i[3456789]86-*-beos*)
c7e4b184 3966 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3967 ;;
b59bea8a 3968 i[3456789]86-*-rdos*)
c7e4b184 3969 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3970 ;;
6e712424 3971 kvx-*-*)
05fbbeac 3972 noconfigdirs="$noconfigdirs gdb gdbserver sim"
6e712424 3973 ;;
a0da8069 3974 mmix-*-*)
9863d716 3975 noconfigdirs="$noconfigdirs gdb"
a0da8069 3976 ;;
4970f871 3977 mt-*-*)
cdb9b172
AH
3978 noconfigdirs="$noconfigdirs sim"
3979 ;;
1063beb5
FT
3980 nfp-*-*)
3981 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3982 noconfigdirs="$noconfigdirs $target_libraries"
3983 ;;
11104e42
SC
3984 pdp11-*-*)
3985 noconfigdirs="$noconfigdirs gdb gprof"
3986 ;;
a0da8069
NN
3987 powerpc-*-aix*)
3988 # copied from rs6000-*-* entry
c7e4b184 3989 noconfigdirs="$noconfigdirs gprof"
a0da8069 3990 ;;
93cc359e 3991 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3992 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3993 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3994 # always build newlib.
3995 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3996 ;;
3997 # This is temporary until we can link against shared libraries
3998 powerpcle-*-solaris*)
b2f14e4a 3999 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
4000 ;;
4001 powerpc-*-beos*)
c7e4b184 4002 noconfigdirs="$noconfigdirs gdb"
a0da8069 4003 ;;
a0da8069 4004 rs6000-*-lynxos*)
c7e4b184 4005 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
4006 ;;
4007 rs6000-*-aix*)
c7e4b184 4008 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
4009 ;;
4010 rs6000-*-*)
9863d716 4011 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
4012 ;;
4013 m68k-apollo-*)
b2f14e4a 4014 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 4015 ;;
25a07265 4016 microblaze*)
9863d716 4017 noconfigdirs="$noconfigdirs gprof"
25a07265 4018 ;;
a9d58c06 4019 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
5bd8be13
RS
4020 if test x$with_newlib = xyes; then
4021 noconfigdirs="$noconfigdirs gprof"
4022 fi
5bd8be13 4023 ;;
a0da8069 4024 mips*-*-irix5*)
b2f14e4a 4025 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
4026 ;;
4027 mips*-*-irix6*)
9863d716 4028 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 4029 ;;
a0da8069 4030 mips*-*-bsd*)
e8044f35 4031 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 4032 ;;
a0da8069 4033 mips*-*-linux*)
a0da8069 4034 ;;
e8044f35
RS
4035 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4036 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4037 noconfigdirs="$noconfigdirs ld gas gprof"
4038 ;;
a0da8069 4039 mips*-*-*)
9863d716 4040 noconfigdirs="$noconfigdirs gprof"
a0da8069 4041 ;;
1b6c0831 4042 nvptx*-*-*)
1b6c0831
L
4043 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4044 ;;
05a13254 4045 sh-*-*)
e8a5fa9c
RW
4046 case "${target}" in
4047 sh*-*-elf)
9863d716 4048 ;;
e8a5fa9c 4049 *)
9863d716 4050 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 4051 esac
a0da8069 4052 ;;
a0da8069 4053 sparc-*-sunos4*)
c7e4b184 4054 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
4055 use_gnu_ld=no
4056 fi
4057 ;;
619a3713 4058 tic6x-*-*)
40ae9136 4059 noconfigdirs="$noconfigdirs sim"
619a3713 4060 ;;
05a13254 4061 tilepro*-*-* | tilegx*-*-*)
eb4b2452
NC
4062 noconfigdirs="$noconfigdirs sim"
4063 ;;
a0da8069 4064 v810-*-*)
b2f14e4a 4065 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
4066 ;;
4067 vax-*-*)
9863d716 4068 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 4069 ;;
b29d2641
MR
4070 wasm32-*-*)
4071 noconfigdirs="$noconfigdirs ld"
4072 ;;
228cf97d
AM
4073 loongarch*-*-linux*)
4074 ;;
4075 loongarch*-*-*)
4076 noconfigdirs="$noconfigdirs gprof"
4077 ;;
a0da8069 4078esac
252b5132 4079
a0da8069
NN
4080# If we aren't building newlib, then don't build libgloss, since libgloss
4081# depends upon some newlib header files.
4082case "${noconfigdirs}" in
4083 *target-libgloss*) ;;
4084 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4085esac
4086
a0da8069 4087# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
4088host_makefile_frag=/dev/null
4089if test -d ${srcdir}/config ; then
4090case "${host}" in
ec11bdc6 4091 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
4092 host_makefile_frag="config/mh-djgpp"
4093 ;;
4094 *-cygwin*)
e33b51a6 4095
81ecdfbb
RW
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4097$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 4098echo a >cygwin-cat-check
1f53ca9a 4099if test `cat cygwin-cat-check` = a ; then
8ade07e9 4100 rm cygwin-cat-check
81ecdfbb
RW
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4102$as_echo "yes" >&6; }
e33b51a6 4103else
8ade07e9 4104 rm cygwin-cat-check
81ecdfbb
RW
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106$as_echo "no" >&6; }
d0ac1c44 4107 as_fn_error $? "The cat command does not ignore carriage return characters.
e33b51a6
NC
4108 Please either mount the build directory in binary mode or run the following
4109 commands before running any configure script:
4110set -o igncr
4111export SHELLOPTS
81ecdfbb 4112 " "$LINENO" 5
e33b51a6 4113fi
e33b51a6 4114
a0da8069
NN
4115 host_makefile_frag="config/mh-cygwin"
4116 ;;
8a1599ab 4117 *-mingw*)
84e7906e 4118 host_makefile_frag="config/mh-mingw"
2d1e8239 4119 ;;
ce6c656d
L
4120 alpha*-linux*)
4121 host_makefile_frag="config/mh-alpha-linux"
4122 ;;
3516a403 4123 hppa*-hp-hpux*)
da888c87
PB
4124 host_makefile_frag="config/mh-pa"
4125 ;;
4126 hppa*-*)
4127 host_makefile_frag="config/mh-pa"
4128 ;;
228cf97d 4129 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
e552509b 4130 host_makefile_frag="config/mh-darwin"
0df3d27f 4131 ;;
f6d183c0
PB
4132 powerpc-*-aix*)
4133 host_makefile_frag="config/mh-ppc-aix"
4134 ;;
4135 rs6000-*-aix*)
4136 host_makefile_frag="config/mh-ppc-aix"
4137 ;;
a0da8069
NN
4138esac
4139fi
4140
9e07f89d 4141if test "${build}" != "${host}" ; then
1576798e
PB
4142 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4143 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 4144 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
228cf97d 4145 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
1576798e 4146 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
228cf97d 4147 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
1576798e 4148 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 4149 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
228cf97d 4150 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
1576798e
PB
4151 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4152 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4153 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4154 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4155 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4156 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4157else
4158 AR_FOR_BUILD="\$(AR)"
4159 AS_FOR_BUILD="\$(AS)"
512b7dfb 4160 CC_FOR_BUILD="\$(CC)"
1576798e 4161 CXX_FOR_BUILD="\$(CXX)"
228cf97d 4162 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
1576798e 4163 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 4164 GOC_FOR_BUILD="\$(GOC)"
228cf97d 4165 GDC_FOR_BUILD="\$(GDC)"
1576798e
PB
4166 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4167 LD_FOR_BUILD="\$(LD)"
4168 NM_FOR_BUILD="\$(NM)"
4169 RANLIB_FOR_BUILD="\$(RANLIB)"
4170 WINDRES_FOR_BUILD="\$(WINDRES)"
4171 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
4172fi
4173
4174ac_ext=c
c6b750e1
DJ
4175ac_cpp='$CPP $CPPFLAGS'
4176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179if test -n "$ac_tool_prefix"; then
4180 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4181set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4184if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4185 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4186else
4187 if test -n "$CC"; then
4188 ac_cv_prog_CC="$CC" # Let the user override the test.
4189else
4190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191for as_dir in $PATH
4192do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
81ecdfbb 4195 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4197 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4199 break 2
4200 fi
4201done
81ecdfbb
RW
4202 done
4203IFS=$as_save_IFS
c6b750e1
DJ
4204
4205fi
4206fi
4207CC=$ac_cv_prog_CC
4208if test -n "$CC"; then
81ecdfbb
RW
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4210$as_echo "$CC" >&6; }
c6b750e1 4211else
81ecdfbb
RW
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213$as_echo "no" >&6; }
c6b750e1
DJ
4214fi
4215
81ecdfbb 4216
c6b750e1
DJ
4217fi
4218if test -z "$ac_cv_prog_CC"; then
4219 ac_ct_CC=$CC
6a9cf61e 4220 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 4221set dummy gcc; ac_word=$2
81ecdfbb
RW
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4224if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4225 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4226else
4227 if test -n "$ac_ct_CC"; then
4228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4229else
4230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH
4232do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
81ecdfbb 4235 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4237 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4239 break 2
4240 fi
4241done
81ecdfbb
RW
4242 done
4243IFS=$as_save_IFS
c6b750e1
DJ
4244
4245fi
4246fi
4247ac_ct_CC=$ac_cv_prog_ac_ct_CC
4248if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4250$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4251else
81ecdfbb
RW
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253$as_echo "no" >&6; }
c6b750e1
DJ
4254fi
4255
81ecdfbb
RW
4256 if test "x$ac_ct_CC" = x; then
4257 CC=""
4258 else
4259 case $cross_compiling:$ac_tool_warned in
4260yes:)
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4263ac_tool_warned=yes ;;
4264esac
4265 CC=$ac_ct_CC
4266 fi
c6b750e1
DJ
4267else
4268 CC="$ac_cv_prog_CC"
4269fi
4270
4271if test -z "$CC"; then
81ecdfbb
RW
4272 if test -n "$ac_tool_prefix"; then
4273 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4274set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4277if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4278 $as_echo_n "(cached) " >&6
9e07f89d
NN
4279else
4280 if test -n "$CC"; then
4281 ac_cv_prog_CC="$CC" # Let the user override the test.
4282else
c6b750e1
DJ
4283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284for as_dir in $PATH
4285do
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
81ecdfbb 4288 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4290 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4292 break 2
4293 fi
4294done
81ecdfbb
RW
4295 done
4296IFS=$as_save_IFS
c6b750e1 4297
9e07f89d
NN
4298fi
4299fi
c6b750e1 4300CC=$ac_cv_prog_CC
9e07f89d 4301if test -n "$CC"; then
81ecdfbb
RW
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4303$as_echo "$CC" >&6; }
c6b750e1 4304else
81ecdfbb
RW
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306$as_echo "no" >&6; }
c6b750e1
DJ
4307fi
4308
c6b750e1 4309
81ecdfbb 4310 fi
c6b750e1 4311fi
9e07f89d
NN
4312if test -z "$CC"; then
4313 # Extract the first word of "cc", so it can be a program name with args.
4314set dummy cc; ac_word=$2
81ecdfbb
RW
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4316$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4317if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4318 $as_echo_n "(cached) " >&6
9e07f89d
NN
4319else
4320 if test -n "$CC"; then
4321 ac_cv_prog_CC="$CC" # Let the user override the test.
4322else
9e07f89d 4323 ac_prog_rejected=no
c6b750e1
DJ
4324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325for as_dir in $PATH
4326do
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
81ecdfbb 4329 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1
DJ
4331 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4332 ac_prog_rejected=yes
4333 continue
4334 fi
4335 ac_cv_prog_CC="cc"
81ecdfbb 4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4337 break 2
4338 fi
4339done
81ecdfbb
RW
4340 done
4341IFS=$as_save_IFS
c6b750e1 4342
9e07f89d
NN
4343if test $ac_prog_rejected = yes; then
4344 # We found a bogon in the path, so make sure we never use it.
4345 set dummy $ac_cv_prog_CC
4346 shift
c6b750e1 4347 if test $# != 0; then
9e07f89d
NN
4348 # We chose a different compiler from the bogus one.
4349 # However, it has the same basename, so the bogon will be chosen
4350 # first if we set CC to just the basename; use the full file name.
4351 shift
c6b750e1 4352 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4353 fi
4354fi
4355fi
4356fi
c6b750e1 4357CC=$ac_cv_prog_CC
9e07f89d 4358if test -n "$CC"; then
81ecdfbb
RW
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4360$as_echo "$CC" >&6; }
9e07f89d 4361else
81ecdfbb
RW
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363$as_echo "no" >&6; }
9e07f89d
NN
4364fi
4365
81ecdfbb 4366
c6b750e1
DJ
4367fi
4368if test -z "$CC"; then
4369 if test -n "$ac_tool_prefix"; then
81ecdfbb 4370 for ac_prog in cl.exe
c6b750e1
DJ
4371 do
4372 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4373set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4375$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4376if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4377 $as_echo_n "(cached) " >&6
9e07f89d
NN
4378else
4379 if test -n "$CC"; then
4380 ac_cv_prog_CC="$CC" # Let the user override the test.
4381else
c6b750e1
DJ
4382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383for as_dir in $PATH
4384do
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
81ecdfbb 4387 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4389 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4391 break 2
376a0e54 4392 fi
c6b750e1 4393done
81ecdfbb
RW
4394 done
4395IFS=$as_save_IFS
cac3d6c4 4396
c6b750e1
DJ
4397fi
4398fi
4399CC=$ac_cv_prog_CC
4400if test -n "$CC"; then
81ecdfbb
RW
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4402$as_echo "$CC" >&6; }
cac3d6c4 4403else
81ecdfbb
RW
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405$as_echo "no" >&6; }
9e07f89d 4406fi
cac3d6c4 4407
81ecdfbb 4408
c6b750e1
DJ
4409 test -n "$CC" && break
4410 done
cac3d6c4 4411fi
c6b750e1
DJ
4412if test -z "$CC"; then
4413 ac_ct_CC=$CC
81ecdfbb 4414 for ac_prog in cl.exe
c6b750e1
DJ
4415do
4416 # Extract the first word of "$ac_prog", so it can be a program name with args.
4417set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4420if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4421 $as_echo_n "(cached) " >&6
cac3d6c4 4422else
c6b750e1
DJ
4423 if test -n "$ac_ct_CC"; then
4424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4425else
c6b750e1
DJ
4426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427for as_dir in $PATH
4428do
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
81ecdfbb 4431 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4433 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4435 break 2
4436 fi
4437done
81ecdfbb
RW
4438 done
4439IFS=$as_save_IFS
c6b750e1 4440
cac3d6c4
CM
4441fi
4442fi
c6b750e1
DJ
4443ac_ct_CC=$ac_cv_prog_ac_ct_CC
4444if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4446$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4447else
81ecdfbb
RW
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449$as_echo "no" >&6; }
cac3d6c4 4450fi
376a0e54 4451
81ecdfbb 4452
c6b750e1
DJ
4453 test -n "$ac_ct_CC" && break
4454done
4455
81ecdfbb
RW
4456 if test "x$ac_ct_CC" = x; then
4457 CC=""
4458 else
4459 case $cross_compiling:$ac_tool_warned in
4460yes:)
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4463ac_tool_warned=yes ;;
4464esac
4465 CC=$ac_ct_CC
4466 fi
c6b750e1
DJ
4467fi
4468
4469fi
4470
4471
81ecdfbb
RW
4472test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4474as_fn_error $? "no acceptable C compiler found in \$PATH
4475See \`config.log' for more details" "$LINENO" 5; }
c6b750e1
DJ
4476
4477# Provide some information about the compiler.
81ecdfbb
RW
4478$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4479set X $ac_compile
4480ac_compiler=$2
4481for ac_option in --version -v -V -qversion; do
4482 { { ac_try="$ac_compiler $ac_option >&5"
4483case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486esac
4487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4488$as_echo "$ac_try_echo"; } >&5
4489 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4490 ac_status=$?
81ecdfbb
RW
4491 if test -s conftest.err; then
4492 sed '10a\
4493... rest of stderr output deleted ...
4494 10q' conftest.err >conftest.er1
4495 cat conftest.er1 >&5
81ecdfbb 4496 fi
d0ac1c44 4497 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4499 test $ac_status = 0; }
4500done
c6b750e1 4501
81ecdfbb 4502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4503/* end confdefs.h. */
4504
4505int
4506main ()
4507{
4508
4509 ;
4510 return 0;
4511}
4512_ACEOF
4513ac_clean_files_save=$ac_clean_files
d0ac1c44 4514ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
c6b750e1
DJ
4515# Try to create an executable without -o first, disregard a.out.
4516# It will help us diagnose broken compilers, and finding out an intuition
4517# of exeext.
d0ac1c44
SM
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4519$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
4520ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4521
4522# The possible output files:
4523ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4524
4525ac_rmfiles=
4526for ac_file in $ac_files
4527do
4528 case $ac_file in
4529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4530 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4531 esac
4532done
4533rm -f $ac_rmfiles
4534
4535if { { ac_try="$ac_link_default"
4536case "(($ac_try" in
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4539esac
4540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4541$as_echo "$ac_try_echo"; } >&5
4542 (eval "$ac_link_default") 2>&5
c6b750e1 4543 ac_status=$?
81ecdfbb
RW
4544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4545 test $ac_status = 0; }; then :
4546 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4547# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4548# in a Makefile. We should not override ac_cv_exeext if it was cached,
4549# so that the user can short-circuit this test for compilers unknown to
4550# Autoconf.
4551for ac_file in $ac_files ''
c6b750e1
DJ
4552do
4553 test -f "$ac_file" || continue
4554 case $ac_file in
81ecdfbb 4555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4556 ;;
4557 [ab].out )
4558 # We found the default executable, but exeext='' is most
4559 # certainly right.
4560 break;;
4561 *.* )
81ecdfbb
RW
4562 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4563 then :; else
4564 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4565 fi
4566 # We set ac_cv_exeext here because the later test for it is not
4567 # safe: cross compilers may not add the suffix if given an `-o'
4568 # argument, so we may need to know it at that point already.
4569 # Even if this section looks crufty: it has the advantage of
4570 # actually working.
c6b750e1
DJ
4571 break;;
4572 * )
4573 break;;
4574 esac
4575done
81ecdfbb
RW
4576test "$ac_cv_exeext" = no && ac_cv_exeext=
4577
c6b750e1 4578else
81ecdfbb
RW
4579 ac_file=''
4580fi
81ecdfbb 4581if test -z "$ac_file"; then :
d0ac1c44
SM
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583$as_echo "no" >&6; }
4584$as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4585sed 's/^/| /' conftest.$ac_ext >&5
4586
81ecdfbb
RW
4587{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4589as_fn_error 77 "C compiler cannot create executables
4590See \`config.log' for more details" "$LINENO" 5; }
4591else
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4593$as_echo "yes" >&6; }
c6b750e1 4594fi
d0ac1c44
SM
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4596$as_echo_n "checking for C compiler default output file name... " >&6; }
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4598$as_echo "$ac_file" >&6; }
c6b750e1 4599ac_exeext=$ac_cv_exeext
c6b750e1 4600
d0ac1c44 4601rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
c6b750e1 4602ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4604$as_echo_n "checking for suffix of executables... " >&6; }
4605if { { ac_try="$ac_link"
4606case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4609esac
4610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4611$as_echo "$ac_try_echo"; } >&5
4612 (eval "$ac_link") 2>&5
c6b750e1 4613 ac_status=$?
81ecdfbb
RW
4614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4615 test $ac_status = 0; }; then :
c6b750e1
DJ
4616 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4617# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4618# work properly (i.e., refer to `conftest.exe'), while it won't with
4619# `rm'.
4620for ac_file in conftest.exe conftest conftest.*; do
4621 test -f "$ac_file" || continue
4622 case $ac_file in
81ecdfbb 4623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4624 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4625 break;;
4626 * ) break;;
4627 esac
4628done
4629else
81ecdfbb
RW
4630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4632as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4633See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4634fi
d0ac1c44 4635rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4637$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4638
4639rm -f conftest.$ac_ext
4640EXEEXT=$ac_cv_exeext
4641ac_exeext=$EXEEXT
d0ac1c44
SM
4642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643/* end confdefs.h. */
4644#include <stdio.h>
4645int
4646main ()
4647{
4648FILE *f = fopen ("conftest.out", "w");
4649 return ferror (f) || fclose (f) != 0;
4650
4651 ;
4652 return 0;
4653}
4654_ACEOF
4655ac_clean_files="$ac_clean_files conftest.out"
4656# Check that the compiler produces executables we can run. If not, either
4657# the compiler is broken, or we cross compile.
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4659$as_echo_n "checking whether we are cross compiling... " >&6; }
4660if test "$cross_compiling" != yes; then
4661 { { ac_try="$ac_link"
4662case "(($ac_try" in
4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664 *) ac_try_echo=$ac_try;;
4665esac
4666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4667$as_echo "$ac_try_echo"; } >&5
4668 (eval "$ac_link") 2>&5
4669 ac_status=$?
4670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4671 test $ac_status = 0; }
4672 if { ac_try='./conftest$ac_cv_exeext'
4673 { { case "(($ac_try" in
4674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675 *) ac_try_echo=$ac_try;;
4676esac
4677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4678$as_echo "$ac_try_echo"; } >&5
4679 (eval "$ac_try") 2>&5
4680 ac_status=$?
4681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4682 test $ac_status = 0; }; }; then
4683 cross_compiling=no
4684 else
4685 if test "$cross_compiling" = maybe; then
4686 cross_compiling=yes
4687 else
4688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4690as_fn_error $? "cannot run C compiled programs.
4691If you meant to cross compile, use \`--host'.
4692See \`config.log' for more details" "$LINENO" 5; }
4693 fi
4694 fi
4695fi
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4697$as_echo "$cross_compiling" >&6; }
4698
4699rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4700ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4702$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 4703if ${ac_cv_objext+:} false; then :
81ecdfbb 4704 $as_echo_n "(cached) " >&6
c6b750e1 4705else
81ecdfbb 4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4707/* end confdefs.h. */
4708
4709int
4710main ()
4711{
4712
4713 ;
4714 return 0;
4715}
4716_ACEOF
4717rm -f conftest.o conftest.obj
81ecdfbb
RW
4718if { { ac_try="$ac_compile"
4719case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4722esac
4723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4724$as_echo "$ac_try_echo"; } >&5
4725 (eval "$ac_compile") 2>&5
c6b750e1 4726 ac_status=$?
81ecdfbb
RW
4727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4728 test $ac_status = 0; }; then :
4729 for ac_file in conftest.o conftest.obj conftest.*; do
4730 test -f "$ac_file" || continue;
c6b750e1 4731 case $ac_file in
81ecdfbb 4732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4733 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4734 break;;
4735 esac
4736done
cac3d6c4 4737else
81ecdfbb 4738 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4739sed 's/^/| /' conftest.$ac_ext >&5
4740
81ecdfbb
RW
4741{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4743as_fn_error $? "cannot compute suffix of object files: cannot compile
4744See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4745fi
c6b750e1
DJ
4746rm -f conftest.$ac_cv_objext conftest.$ac_ext
4747fi
81ecdfbb
RW
4748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4749$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4750OBJEXT=$ac_cv_objext
4751ac_objext=$OBJEXT
81ecdfbb
RW
4752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4753$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4754if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 4755 $as_echo_n "(cached) " >&6
c6b750e1 4756else
81ecdfbb 4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4758/* end confdefs.h. */
4759
4760int
4761main ()
4762{
4763#ifndef __GNUC__
4764 choke me
4765#endif
4766
4767 ;
4768 return 0;
4769}
4770_ACEOF
81ecdfbb 4771if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4772 ac_compiler_gnu=yes
4773else
81ecdfbb 4774 ac_compiler_gnu=no
c6b750e1 4775fi
81ecdfbb 4776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4777ac_cv_c_compiler_gnu=$ac_compiler_gnu
4778
4779fi
81ecdfbb
RW
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4781$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4782if test $ac_compiler_gnu = yes; then
4783 GCC=yes
4784else
4785 GCC=
4786fi
c6b750e1
DJ
4787ac_test_CFLAGS=${CFLAGS+set}
4788ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4790$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4791if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
4792 $as_echo_n "(cached) " >&6
4793else
4794 ac_save_c_werror_flag=$ac_c_werror_flag
4795 ac_c_werror_flag=yes
4796 ac_cv_prog_cc_g=no
4797 CFLAGS="-g"
4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4799/* end confdefs.h. */
4800
4801int
4802main ()
4803{
4804
4805 ;
4806 return 0;
4807}
4808_ACEOF
81ecdfbb 4809if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4810 ac_cv_prog_cc_g=yes
4811else
81ecdfbb
RW
4812 CFLAGS=""
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814/* end confdefs.h. */
4815
4816int
4817main ()
4818{
4819
4820 ;
4821 return 0;
4822}
4823_ACEOF
4824if ac_fn_c_try_compile "$LINENO"; then :
4825
4826else
4827 ac_c_werror_flag=$ac_save_c_werror_flag
4828 CFLAGS="-g"
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830/* end confdefs.h. */
cac3d6c4 4831
81ecdfbb
RW
4832int
4833main ()
4834{
4835
4836 ;
4837 return 0;
4838}
4839_ACEOF
4840if ac_fn_c_try_compile "$LINENO"; then :
4841 ac_cv_prog_cc_g=yes
4842fi
4843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4844fi
81ecdfbb 4845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4846fi
81ecdfbb
RW
4847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848 ac_c_werror_flag=$ac_save_c_werror_flag
4849fi
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4851$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4852if test "$ac_test_CFLAGS" = set; then
c6b750e1 4853 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4854elif test $ac_cv_prog_cc_g = yes; then
4855 if test "$GCC" = yes; then
4856 CFLAGS="-g -O2"
4857 else
4858 CFLAGS="-g"
4859 fi
4860else
4861 if test "$GCC" = yes; then
4862 CFLAGS="-O2"
4863 else
4864 CFLAGS=
4865 fi
4866fi
81ecdfbb
RW
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4868$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4869if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 4870 $as_echo_n "(cached) " >&6
c6b750e1 4871else
81ecdfbb 4872 ac_cv_prog_cc_c89=no
c6b750e1 4873ac_save_CC=$CC
81ecdfbb 4874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4875/* end confdefs.h. */
4876#include <stdarg.h>
4877#include <stdio.h>
d0ac1c44 4878struct stat;
c6b750e1
DJ
4879/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4880struct buf { int x; };
4881FILE * (*rcsopen) (struct buf *, struct stat *, int);
4882static char *e (p, i)
4883 char **p;
4884 int i;
4885{
4886 return p[i];
4887}
4888static char *f (char * (*g) (char **, int), char **p, ...)
4889{
4890 char *s;
4891 va_list v;
4892 va_start (v,p);
4893 s = g (p, va_arg (v,int));
4894 va_end (v);
4895 return s;
4896}
4897
4898/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4899 function prototypes and stuff, but not '\xHH' hex character constants.
4900 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4901 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4902 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4903 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4904 that's true only with -std. */
c6b750e1
DJ
4905int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4906
81ecdfbb
RW
4907/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4908 inside strings and character constants. */
4909#define FOO(x) 'x'
4910int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4911
c6b750e1
DJ
4912int test (int i, double x);
4913struct s1 {int (*f) (int a);};
4914struct s2 {int (*f) (double a);};
4915int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4916int argc;
4917char **argv;
4918int
4919main ()
4920{
4921return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4922 ;
4923 return 0;
4924}
4925_ACEOF
81ecdfbb
RW
4926for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4927 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4928do
4929 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4930 if ac_fn_c_try_compile "$LINENO"; then :
4931 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4932fi
81ecdfbb
RW
4933rm -f core conftest.err conftest.$ac_objext
4934 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4935done
81ecdfbb 4936rm -f conftest.$ac_ext
c6b750e1
DJ
4937CC=$ac_save_CC
4938
4939fi
81ecdfbb
RW
4940# AC_CACHE_VAL
4941case "x$ac_cv_prog_cc_c89" in
4942 x)
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4944$as_echo "none needed" >&6; } ;;
4945 xno)
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4947$as_echo "unsupported" >&6; } ;;
c6b750e1 4948 *)
81ecdfbb
RW
4949 CC="$CC $ac_cv_prog_cc_c89"
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4951$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4952esac
81ecdfbb 4953if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4954
c6b750e1
DJ
4955fi
4956
c6b750e1
DJ
4957ac_ext=c
4958ac_cpp='$CPP $CPPFLAGS'
4959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4962
a8d6316b
NC
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4964$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4965if ${ac_cv_prog_cc_c99+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967else
4968 ac_cv_prog_cc_c99=no
4969ac_save_CC=$CC
4970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971/* end confdefs.h. */
4972#include <stdarg.h>
4973#include <stdbool.h>
4974#include <stdlib.h>
4975#include <wchar.h>
4976#include <stdio.h>
4977
4978// Check varargs macros. These examples are taken from C99 6.10.3.5.
4979#define debug(...) fprintf (stderr, __VA_ARGS__)
4980#define showlist(...) puts (#__VA_ARGS__)
4981#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4982static void
4983test_varargs_macros (void)
4984{
4985 int x = 1234;
4986 int y = 5678;
4987 debug ("Flag");
4988 debug ("X = %d\n", x);
4989 showlist (The first, second, and third items.);
4990 report (x>y, "x is %d but y is %d", x, y);
4991}
4992
4993// Check long long types.
4994#define BIG64 18446744073709551615ull
4995#define BIG32 4294967295ul
4996#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4997#if !BIG_OK
4998 your preprocessor is broken;
4999#endif
5000#if BIG_OK
5001#else
5002 your preprocessor is broken;
5003#endif
5004static long long int bignum = -9223372036854775807LL;
5005static unsigned long long int ubignum = BIG64;
5006
5007struct incomplete_array
5008{
5009 int datasize;
5010 double data[];
5011};
5012
5013struct named_init {
5014 int number;
5015 const wchar_t *name;
5016 double average;
5017};
5018
5019typedef const char *ccp;
5020
5021static inline int
5022test_restrict (ccp restrict text)
5023{
5024 // See if C++-style comments work.
5025 // Iterate through items via the restricted pointer.
5026 // Also check for declarations in for loops.
5027 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5028 continue;
5029 return 0;
5030}
5031
5032// Check varargs and va_copy.
5033static void
5034test_varargs (const char *format, ...)
5035{
5036 va_list args;
5037 va_start (args, format);
5038 va_list args_copy;
5039 va_copy (args_copy, args);
5040
5041 const char *str;
5042 int number;
5043 float fnumber;
5044
5045 while (*format)
5046 {
5047 switch (*format++)
5048 {
5049 case 's': // string
5050 str = va_arg (args_copy, const char *);
5051 break;
5052 case 'd': // int
5053 number = va_arg (args_copy, int);
5054 break;
5055 case 'f': // float
5056 fnumber = va_arg (args_copy, double);
5057 break;
5058 default:
5059 break;
5060 }
5061 }
5062 va_end (args_copy);
5063 va_end (args);
5064}
5065
5066int
5067main ()
5068{
5069
5070 // Check bool.
5071 _Bool success = false;
5072
5073 // Check restrict.
5074 if (test_restrict ("String literal") == 0)
5075 success = true;
5076 char *restrict newvar = "Another string";
5077
5078 // Check varargs.
5079 test_varargs ("s, d' f .", "string", 65, 34.234);
5080 test_varargs_macros ();
5081
5082 // Check flexible array members.
5083 struct incomplete_array *ia =
5084 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5085 ia->datasize = 10;
5086 for (int i = 0; i < ia->datasize; ++i)
5087 ia->data[i] = i * 1.234;
5088
5089 // Check named initializers.
5090 struct named_init ni = {
5091 .number = 34,
5092 .name = L"Test wide string",
5093 .average = 543.34343,
5094 };
5095
5096 ni.number = 58;
5097
5098 int dynamic_array[ni.number];
5099 dynamic_array[ni.number - 1] = 543;
5100
5101 // work around unused variable warnings
5102 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5103 || dynamic_array[ni.number - 1] != 543);
5104
5105 ;
5106 return 0;
5107}
5108_ACEOF
5109for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5110do
5111 CC="$ac_save_CC $ac_arg"
5112 if ac_fn_c_try_compile "$LINENO"; then :
5113 ac_cv_prog_cc_c99=$ac_arg
5114fi
5115rm -f core conftest.err conftest.$ac_objext
5116 test "x$ac_cv_prog_cc_c99" != "xno" && break
5117done
5118rm -f conftest.$ac_ext
5119CC=$ac_save_CC
5120
5121fi
5122# AC_CACHE_VAL
5123case "x$ac_cv_prog_cc_c99" in
5124 x)
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5126$as_echo "none needed" >&6; } ;;
5127 xno)
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5129$as_echo "unsupported" >&6; } ;;
5130 *)
5131 CC="$CC $ac_cv_prog_cc_c99"
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5133$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5134esac
5135if test "x$ac_cv_prog_cc_c99" != xno; then :
5136
5137fi
5138
5139
81ecdfbb 5140ac_ext=cpp
18f6b6ee
PB
5141ac_cpp='$CXXCPP $CPPFLAGS'
5142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
5145if test -z "$CXX"; then
5146 if test -n "$CCC"; then
5147 CXX=$CCC
5148 else
5149 if test -n "$ac_tool_prefix"; then
5150 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
5151 do
5152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5153set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5156if ${ac_cv_prog_CXX+:} false; then :
81ecdfbb 5157 $as_echo_n "(cached) " >&6
18f6b6ee
PB
5158else
5159 if test -n "$CXX"; then
5160 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5161else
5162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163for as_dir in $PATH
5164do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
81ecdfbb 5167 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 5169 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 5170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
5171 break 2
5172 fi
5173done
81ecdfbb
RW
5174 done
5175IFS=$as_save_IFS
512b7dfb 5176
18f6b6ee
PB
5177fi
5178fi
5179CXX=$ac_cv_prog_CXX
5180if test -n "$CXX"; then
81ecdfbb
RW
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5182$as_echo "$CXX" >&6; }
18f6b6ee 5183else
81ecdfbb
RW
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185$as_echo "no" >&6; }
18f6b6ee
PB
5186fi
5187
81ecdfbb 5188
18f6b6ee
PB
5189 test -n "$CXX" && break
5190 done
5191fi
5192if test -z "$CXX"; then
5193 ac_ct_CXX=$CXX
81ecdfbb 5194 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
5195do
5196 # Extract the first word of "$ac_prog", so it can be a program name with args.
5197set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5200if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 5201 $as_echo_n "(cached) " >&6
18f6b6ee
PB
5202else
5203 if test -n "$ac_ct_CXX"; then
5204 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5205else
5206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207for as_dir in $PATH
5208do
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
81ecdfbb 5211 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 5213 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 5214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 5215 break 2
512b7dfb 5216 fi
18f6b6ee 5217done
81ecdfbb
RW
5218 done
5219IFS=$as_save_IFS
512b7dfb 5220
18f6b6ee
PB
5221fi
5222fi
5223ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5224if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5226$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 5227else
81ecdfbb
RW
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229$as_echo "no" >&6; }
18f6b6ee
PB
5230fi
5231
81ecdfbb 5232
18f6b6ee
PB
5233 test -n "$ac_ct_CXX" && break
5234done
18f6b6ee 5235
81ecdfbb
RW
5236 if test "x$ac_ct_CXX" = x; then
5237 CXX="g++"
5238 else
5239 case $cross_compiling:$ac_tool_warned in
5240yes:)
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5243ac_tool_warned=yes ;;
5244esac
5245 CXX=$ac_ct_CXX
5246 fi
18f6b6ee
PB
5247fi
5248
81ecdfbb
RW
5249 fi
5250fi
18f6b6ee 5251# Provide some information about the compiler.
81ecdfbb
RW
5252$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5253set X $ac_compile
5254ac_compiler=$2
5255for ac_option in --version -v -V -qversion; do
5256 { { ac_try="$ac_compiler $ac_option >&5"
5257case "(($ac_try" in
5258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259 *) ac_try_echo=$ac_try;;
5260esac
5261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5262$as_echo "$ac_try_echo"; } >&5
5263 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 5264 ac_status=$?
81ecdfbb
RW
5265 if test -s conftest.err; then
5266 sed '10a\
5267... rest of stderr output deleted ...
5268 10q' conftest.err >conftest.er1
5269 cat conftest.er1 >&5
81ecdfbb 5270 fi
d0ac1c44 5271 rm -f conftest.er1 conftest.err
81ecdfbb
RW
5272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5273 test $ac_status = 0; }
5274done
18f6b6ee 5275
81ecdfbb
RW
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5277$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 5278if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 5279 $as_echo_n "(cached) " >&6
18f6b6ee 5280else
81ecdfbb 5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
5282/* end confdefs.h. */
5283
5284int
5285main ()
5286{
5287#ifndef __GNUC__
5288 choke me
5289#endif
5290
5291 ;
5292 return 0;
5293}
5294_ACEOF
81ecdfbb 5295if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
5296 ac_compiler_gnu=yes
5297else
81ecdfbb 5298 ac_compiler_gnu=no
18f6b6ee 5299fi
81ecdfbb 5300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
5301ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5302
5303fi
81ecdfbb
RW
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5305$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5306if test $ac_compiler_gnu = yes; then
5307 GXX=yes
5308else
5309 GXX=
5310fi
18f6b6ee
PB
5311ac_test_CXXFLAGS=${CXXFLAGS+set}
5312ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5314$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 5315if ${ac_cv_prog_cxx_g+:} false; then :
81ecdfbb
RW
5316 $as_echo_n "(cached) " >&6
5317else
5318 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5319 ac_cxx_werror_flag=yes
5320 ac_cv_prog_cxx_g=no
5321 CXXFLAGS="-g"
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
5323/* end confdefs.h. */
5324
5325int
5326main ()
5327{
5328
5329 ;
5330 return 0;
5331}
5332_ACEOF
81ecdfbb 5333if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
5334 ac_cv_prog_cxx_g=yes
5335else
81ecdfbb
RW
5336 CXXFLAGS=""
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5338/* end confdefs.h. */
81ecdfbb 5339
18f6b6ee
PB
5340int
5341main ()
5342{
81ecdfbb 5343
18f6b6ee
PB
5344 ;
5345 return 0;
5346}
5347_ACEOF
81ecdfbb 5348if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 5349
81ecdfbb
RW
5350else
5351 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5352 CXXFLAGS="-g"
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5354/* end confdefs.h. */
81ecdfbb 5355
18f6b6ee
PB
5356int
5357main ()
5358{
81ecdfbb 5359
18f6b6ee
PB
5360 ;
5361 return 0;
5362}
5363_ACEOF
81ecdfbb
RW
5364if ac_fn_cxx_try_compile "$LINENO"; then :
5365 ac_cv_prog_cxx_g=yes
18f6b6ee 5366fi
81ecdfbb
RW
5367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5368fi
5369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5370fi
5371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5373fi
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5375$as_echo "$ac_cv_prog_cxx_g" >&6; }
5376if test "$ac_test_CXXFLAGS" = set; then
5377 CXXFLAGS=$ac_save_CXXFLAGS
5378elif test $ac_cv_prog_cxx_g = yes; then
5379 if test "$GXX" = yes; then
5380 CXXFLAGS="-g -O2"
5381 else
5382 CXXFLAGS="-g"
5383 fi
5384else
5385 if test "$GXX" = yes; then
5386 CXXFLAGS="-O2"
5387 else
5388 CXXFLAGS=
5389 fi
18f6b6ee 5390fi
18f6b6ee
PB
5391ac_ext=c
5392ac_cpp='$CPP $CPPFLAGS'
5393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395ac_compiler_gnu=$ac_cv_c_compiler_gnu
5396
5397
5398# We must set the default linker to the linker used by gcc for the correct
5399# operation of libtool. If LD is not defined and we are using gcc, try to
5400# set the LD default to the ld used by gcc.
5401if test -z "$LD"; then
5402 if test "$GCC" = yes; then
5403 case $build in
5404 *-*-mingw*)
5405 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5406 *)
5407 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5408 esac
5409 case $gcc_prog_ld in
5410 # Accept absolute paths.
5411 [\\/]* | [A-Za-z]:[\\/]*)
5412 LD="$gcc_prog_ld" ;;
5413 esac
5414 fi
512b7dfb
PB
5415fi
5416
b3676d82
EB
5417# Check whether -static-libstdc++ -static-libgcc is supported.
5418have_static_libs=no
5419if test "$GCC" = yes; then
5420 saved_LDFLAGS="$LDFLAGS"
5421
5422 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5424$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5425 ac_ext=cpp
5426ac_cpp='$CXXCPP $CPPFLAGS'
5427ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5428ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5429ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5430
5431
5432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433/* end confdefs.h. */
a882be68
EB
5434
5435#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5436#error -static-libstdc++ not implemented
5437#endif
b3676d82
EB
5438int main() {}
5439_ACEOF
5440if ac_fn_cxx_try_link "$LINENO"; then :
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5442$as_echo "yes" >&6; }; have_static_libs=yes
5443else
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445$as_echo "no" >&6; }
5446fi
5447rm -f core conftest.err conftest.$ac_objext \
5448 conftest$ac_exeext conftest.$ac_ext
5449 ac_ext=c
5450ac_cpp='$CPP $CPPFLAGS'
5451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5453ac_compiler_gnu=$ac_cv_c_compiler_gnu
5454
5455
5456 LDFLAGS="$saved_LDFLAGS"
5457fi
5458
512b7dfb
PB
5459
5460
5461
c6b750e1 5462if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5463 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5464set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5467if ${ac_cv_prog_GNATBIND+:} false; then :
81ecdfbb 5468 $as_echo_n "(cached) " >&6
9e07f89d 5469else
512b7dfb
PB
5470 if test -n "$GNATBIND"; then
5471 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5472else
c6b750e1
DJ
5473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474for as_dir in $PATH
5475do
5476 IFS=$as_save_IFS
5477 test -z "$as_dir" && as_dir=.
81ecdfbb 5478 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5480 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5482 break 2
5483 fi
5484done
81ecdfbb
RW
5485 done
5486IFS=$as_save_IFS
c6b750e1 5487
9e07f89d
NN
5488fi
5489fi
512b7dfb
PB
5490GNATBIND=$ac_cv_prog_GNATBIND
5491if test -n "$GNATBIND"; then
81ecdfbb
RW
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5493$as_echo "$GNATBIND" >&6; }
9e07f89d 5494else
81ecdfbb
RW
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496$as_echo "no" >&6; }
9e07f89d
NN
5497fi
5498
81ecdfbb 5499
c6b750e1 5500fi
512b7dfb
PB
5501if test -z "$ac_cv_prog_GNATBIND"; then
5502 ac_ct_GNATBIND=$GNATBIND
5503 # Extract the first word of "gnatbind", so it can be a program name with args.
5504set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5507if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
81ecdfbb 5508 $as_echo_n "(cached) " >&6
9e07f89d 5509else
512b7dfb
PB
5510 if test -n "$ac_ct_GNATBIND"; then
5511 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5512else
c6b750e1
DJ
5513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514for as_dir in $PATH
5515do
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
81ecdfbb 5518 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5520 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5522 break 2
5523 fi
5524done
81ecdfbb
RW
5525 done
5526IFS=$as_save_IFS
c6b750e1 5527
9e07f89d
NN
5528fi
5529fi
512b7dfb
PB
5530ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5531if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5533$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5534else
81ecdfbb
RW
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536$as_echo "no" >&6; }
9e07f89d
NN
5537fi
5538
81ecdfbb
RW
5539 if test "x$ac_ct_GNATBIND" = x; then
5540 GNATBIND="no"
5541 else
5542 case $cross_compiling:$ac_tool_warned in
5543yes:)
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5546ac_tool_warned=yes ;;
5547esac
5548 GNATBIND=$ac_ct_GNATBIND
5549 fi
24ff9987 5550else
512b7dfb 5551 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5552fi
5553
7df2cd5d 5554if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5555 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5556set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5559if ${ac_cv_prog_GNATMAKE+:} false; then :
81ecdfbb 5560 $as_echo_n "(cached) " >&6
7df2cd5d 5561else
512b7dfb
PB
5562 if test -n "$GNATMAKE"; then
5563 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5564else
5565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566for as_dir in $PATH
5567do
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
81ecdfbb 5570 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5572 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5574 break 2
5575 fi
5576done
81ecdfbb
RW
5577 done
5578IFS=$as_save_IFS
7df2cd5d
PB
5579
5580fi
5581fi
512b7dfb
PB
5582GNATMAKE=$ac_cv_prog_GNATMAKE
5583if test -n "$GNATMAKE"; then
81ecdfbb
RW
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5585$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5586else
81ecdfbb
RW
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588$as_echo "no" >&6; }
7df2cd5d
PB
5589fi
5590
81ecdfbb 5591
7df2cd5d 5592fi
512b7dfb
PB
5593if test -z "$ac_cv_prog_GNATMAKE"; then
5594 ac_ct_GNATMAKE=$GNATMAKE
5595 # Extract the first word of "gnatmake", so it can be a program name with args.
5596set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5598$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5599if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
81ecdfbb 5600 $as_echo_n "(cached) " >&6
7df2cd5d 5601else
512b7dfb
PB
5602 if test -n "$ac_ct_GNATMAKE"; then
5603 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5604else
5605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606for as_dir in $PATH
5607do
5608 IFS=$as_save_IFS
5609 test -z "$as_dir" && as_dir=.
81ecdfbb 5610 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5612 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5614 break 2
5615 fi
5616done
81ecdfbb
RW
5617 done
5618IFS=$as_save_IFS
7df2cd5d 5619
7df2cd5d
PB
5620fi
5621fi
512b7dfb
PB
5622ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5623if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5625$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5626else
81ecdfbb
RW
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5628$as_echo "no" >&6; }
7df2cd5d
PB
5629fi
5630
81ecdfbb
RW
5631 if test "x$ac_ct_GNATMAKE" = x; then
5632 GNATMAKE="no"
5633 else
5634 case $cross_compiling:$ac_tool_warned in
5635yes:)
5636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5638ac_tool_warned=yes ;;
5639esac
5640 GNATMAKE=$ac_ct_GNATMAKE
5641 fi
7df2cd5d 5642else
512b7dfb 5643 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5644fi
5645
b95bb526
AM
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5647$as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
d0ac1c44 5648if ${acx_cv_cc_gcc_supports_ada+:} false; then :
81ecdfbb 5649 $as_echo_n "(cached) " >&6
9e07f89d
NN
5650else
5651 cat >conftest.adb <<EOF
b95bb526
AM
5652pragma Warnings (Off);
5653with System.CRTL;
5654pragma Warnings (On);
5655use type System.CRTL.int64;
9e07f89d
NN
5656procedure conftest is begin null; end conftest;
5657EOF
5658acx_cv_cc_gcc_supports_ada=no
5659# There is a bug in old released versions of GCC which causes the
5660# driver to exit successfully when the appropriate language module
5661# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5662# Therefore we must check for the error message as well as an
5663# unsuccessful exit.
b8908782
DD
5664# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5665# given a .adb file, but produce no object file. So we must check
5666# if an object file was really produced to guard against this.
9e07f89d 5667errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5668if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5669 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5670fi
5671rm -f conftest.*
5672fi
81ecdfbb
RW
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5674$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5675
64b986c0 5676if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5677 have_gnat=yes
5678else
5679 have_gnat=no
5680fi
5681
b95bb526
AM
5682
5683
5684if test -n "$ac_tool_prefix"; then
5685 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5686set dummy ${ac_tool_prefix}gdc; ac_word=$2
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688$as_echo_n "checking for $ac_word... " >&6; }
5689if ${ac_cv_prog_GDC+:} false; then :
5690 $as_echo_n "(cached) " >&6
5691else
5692 if test -n "$GDC"; then
5693 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5705 fi
5706done
5707 done
5708IFS=$as_save_IFS
5709
5710fi
5711fi
5712GDC=$ac_cv_prog_GDC
5713if test -n "$GDC"; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5715$as_echo "$GDC" >&6; }
5716else
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718$as_echo "no" >&6; }
5719fi
5720
5721
5722fi
5723if test -z "$ac_cv_prog_GDC"; then
5724 ac_ct_GDC=$GDC
5725 # Extract the first word of "gdc", so it can be a program name with args.
5726set dummy gdc; ac_word=$2
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5728$as_echo_n "checking for $ac_word... " >&6; }
5729if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5730 $as_echo_n "(cached) " >&6
5731else
5732 if test -n "$ac_ct_GDC"; then
5733 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5734else
5735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736for as_dir in $PATH
5737do
5738 IFS=$as_save_IFS
5739 test -z "$as_dir" && as_dir=.
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742 ac_cv_prog_ac_ct_GDC="gdc"
5743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744 break 2
5745 fi
5746done
5747 done
5748IFS=$as_save_IFS
5749
5750fi
5751fi
5752ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5753if test -n "$ac_ct_GDC"; then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5755$as_echo "$ac_ct_GDC" >&6; }
5756else
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758$as_echo "no" >&6; }
5759fi
5760
5761 if test "x$ac_ct_GDC" = x; then
5762 GDC="no"
5763 else
5764 case $cross_compiling:$ac_tool_warned in
5765yes:)
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5768ac_tool_warned=yes ;;
5769esac
5770 GDC=$ac_ct_GDC
5771 fi
5772else
5773 GDC="$ac_cv_prog_GDC"
5774fi
5775
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5777$as_echo_n "checking whether the D compiler works... " >&6; }
5778if ${acx_cv_d_compiler_works+:} false; then :
5779 $as_echo_n "(cached) " >&6
5780else
5781 cat >conftest.d <<EOF
5782module conftest; int main() { return 0; }
5783EOF
5784acx_cv_d_compiler_works=no
5785if test "x$GDC" != xno; then
5786 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5787 if test x"$errors" = x && test -f conftest.$ac_objext; then
5788 acx_cv_d_compiler_works=yes
5789 fi
5790 rm -f conftest.*
5791fi
5792fi
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5794$as_echo "$acx_cv_d_compiler_works" >&6; }
5795if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5796 have_gdc=yes
5797else
5798 have_gdc=no
5799fi
5800
81ecdfbb
RW
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5802$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
d0ac1c44 5803if ${gcc_cv_prog_cmp_skip+:} false; then :
81ecdfbb 5804 $as_echo_n "(cached) " >&6
b8908782
DD
5805else
5806 echo abfoo >t1
5807 echo cdfoo >t2
da17fe9d 5808 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5809 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5810 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5811 :
5812 else
5813 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5814 fi
5815 fi
b8908782
DD
5816 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5817 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5818 :
b8908782
DD
5819 else
5820 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5821 fi
5822 fi
5823 rm t1 t2
5824
5825fi
81ecdfbb
RW
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5827$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5828do_compare="$gcc_cv_prog_cmp_skip"
5829
5830
9e07f89d 5831
ffdd6afc
ILT
5832# Check whether --enable-bootstrap was given.
5833if test "${enable_bootstrap+set}" = set; then :
5834 enableval=$enable_bootstrap;
5835else
5836 enable_bootstrap=default
5837fi
5838
5839
5840# Issue errors and warnings for invalid/strange bootstrap combinations.
5841if test -r $srcdir/gcc/configure; then
5842 have_compiler=yes
5843else
5844 have_compiler=no
5845fi
5846
5847case "$have_compiler:$host:$target:$enable_bootstrap" in
5848 *:*:*:no) ;;
5849
5850 # Default behavior. Enable bootstrap if we have a compiler
5851 # and we are in a native configuration.
5852 yes:$build:$build:default)
5853 enable_bootstrap=yes ;;
5854
5855 *:*:*:default)
5856 enable_bootstrap=no ;;
5857
5858 # We have a compiler and we are in a native configuration, bootstrap is ok
5859 yes:$build:$build:yes)
5860 ;;
5861
5862 # Other configurations, but we have a compiler. Assume the user knows
5863 # what he's doing.
5864 yes:*:*:yes)
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5866$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5867 ;;
5868
5869 # No compiler: if they passed --enable-bootstrap explicitly, fail
5870 no:*:*:yes)
d0ac1c44 5871 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ffdd6afc
ILT
5872
5873 # Fail if wrong command line
5874 *)
d0ac1c44 5875 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ffdd6afc
ILT
5876 ;;
5877esac
5878
228cf97d
AM
5879# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5880# C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5881# require C++11 (or higher).
ce6c656d 5882if test "$enable_bootstrap:$GXX" = "yes:yes"; then
228cf97d
AM
5883 CXX="$CXX -std=c++11"
5884elif test "$have_compiler" = yes; then
5885 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5886 ac_ext=cpp
5887ac_cpp='$CXXCPP $CPPFLAGS'
5888ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5889ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5890ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5891 ac_success=no
ce6c656d 5892
228cf97d
AM
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5894$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5895if ${ax_cv_cxx_compile_cxx11+:} false; then :
5896 $as_echo_n "(cached) " >&6
af019bfd 5897else
228cf97d
AM
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899/* end confdefs.h. */
af019bfd
L
5900
5901
228cf97d
AM
5902// If the compiler admits that it is not ready for C++11, why torture it?
5903// Hopefully, this will speed up the test.
af019bfd 5904
228cf97d 5905#ifndef __cplusplus
af019bfd 5906
228cf97d 5907#error "This is not a C++ compiler"
af019bfd 5908
228cf97d 5909#elif __cplusplus < 201103L
af019bfd 5910
228cf97d 5911#error "This is not a C++11 compiler"
af019bfd 5912
228cf97d 5913#else
af019bfd 5914
228cf97d
AM
5915namespace cxx11
5916{
af019bfd 5917
228cf97d
AM
5918 namespace test_static_assert
5919 {
af019bfd 5920
228cf97d
AM
5921 template <typename T>
5922 struct check
5923 {
5924 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5925 };
af019bfd 5926
228cf97d 5927 }
af019bfd 5928
228cf97d
AM
5929 namespace test_final_override
5930 {
af019bfd 5931
228cf97d
AM
5932 struct Base
5933 {
5934 virtual ~Base() {}
5935 virtual void f() {}
5936 };
af019bfd 5937
228cf97d
AM
5938 struct Derived : public Base
5939 {
5940 virtual ~Derived() override {}
5941 virtual void f() override {}
5942 };
d5f2ee2e 5943
228cf97d 5944 }
d5f2ee2e 5945
228cf97d
AM
5946 namespace test_double_right_angle_brackets
5947 {
d5f2ee2e 5948
228cf97d
AM
5949 template < typename T >
5950 struct check {};
d5f2ee2e 5951
228cf97d
AM
5952 typedef check<void> single_type;
5953 typedef check<check<void>> double_type;
5954 typedef check<check<check<void>>> triple_type;
5955 typedef check<check<check<check<void>>>> quadruple_type;
d5f2ee2e 5956
228cf97d 5957 }
d5f2ee2e 5958
228cf97d
AM
5959 namespace test_decltype
5960 {
d5f2ee2e 5961
228cf97d
AM
5962 int
5963 f()
5964 {
5965 int a = 1;
5966 decltype(a) b = 2;
5967 return a + b;
5968 }
d5f2ee2e 5969
228cf97d 5970 }
e8a5fa9c 5971
228cf97d
AM
5972 namespace test_type_deduction
5973 {
e8a5fa9c 5974
228cf97d
AM
5975 template < typename T1, typename T2 >
5976 struct is_same
5977 {
5978 static const bool value = false;
5979 };
e8a5fa9c 5980
228cf97d
AM
5981 template < typename T >
5982 struct is_same<T, T>
5983 {
5984 static const bool value = true;
5985 };
e8a5fa9c 5986
228cf97d
AM
5987 template < typename T1, typename T2 >
5988 auto
5989 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5990 {
5991 return a1 + a2;
5992 }
e8a5fa9c 5993
228cf97d
AM
5994 int
5995 test(const int c, volatile int v)
5996 {
5997 static_assert(is_same<int, decltype(0)>::value == true, "");
5998 static_assert(is_same<int, decltype(c)>::value == false, "");
5999 static_assert(is_same<int, decltype(v)>::value == false, "");
6000 auto ac = c;
6001 auto av = v;
6002 auto sumi = ac + av + 'x';
6003 auto sumf = ac + av + 1.0;
6004 static_assert(is_same<int, decltype(ac)>::value == true, "");
6005 static_assert(is_same<int, decltype(av)>::value == true, "");
6006 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6007 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6008 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6009 return (sumf > 0.0) ? sumi : add(c, v);
6010 }
e8a5fa9c 6011
228cf97d 6012 }
e8a5fa9c 6013
228cf97d
AM
6014 namespace test_noexcept
6015 {
e8a5fa9c 6016
228cf97d
AM
6017 int f() { return 0; }
6018 int g() noexcept { return 0; }
4b900473 6019
228cf97d
AM
6020 static_assert(noexcept(f()) == false, "");
6021 static_assert(noexcept(g()) == true, "");
c6b750e1 6022
228cf97d 6023 }
81ecdfbb 6024
228cf97d
AM
6025 namespace test_constexpr
6026 {
11b04d1f 6027
228cf97d
AM
6028 template < typename CharT >
6029 unsigned long constexpr
6030 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6031 {
6032 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6033 }
11b04d1f 6034
228cf97d
AM
6035 template < typename CharT >
6036 unsigned long constexpr
6037 strlen_c(const CharT *const s) noexcept
6038 {
6039 return strlen_c_r(s, 0UL);
6040 }
6041
6042 static_assert(strlen_c("") == 0UL, "");
6043 static_assert(strlen_c("1") == 1UL, "");
6044 static_assert(strlen_c("example") == 7UL, "");
6045 static_assert(strlen_c("another\0example") == 7UL, "");
6046
6047 }
6048
6049 namespace test_rvalue_references
6050 {
6051
6052 template < int N >
6053 struct answer
6054 {
6055 static constexpr int value = N;
6056 };
6057
6058 answer<1> f(int&) { return answer<1>(); }
6059 answer<2> f(const int&) { return answer<2>(); }
6060 answer<3> f(int&&) { return answer<3>(); }
6061
6062 void
6063 test()
6064 {
6065 int i = 0;
6066 const int c = 0;
6067 static_assert(decltype(f(i))::value == 1, "");
6068 static_assert(decltype(f(c))::value == 2, "");
6069 static_assert(decltype(f(0))::value == 3, "");
6070 }
6071
6072 }
6073
6074 namespace test_uniform_initialization
6075 {
6076
6077 struct test
6078 {
6079 static const int zero {};
6080 static const int one {1};
6081 };
6082
6083 static_assert(test::zero == 0, "");
6084 static_assert(test::one == 1, "");
6085
6086 }
6087
6088 namespace test_lambdas
6089 {
6090
6091 void
6092 test1()
6093 {
6094 auto lambda1 = [](){};
6095 auto lambda2 = lambda1;
6096 lambda1();
6097 lambda2();
6098 }
6099
6100 int
6101 test2()
6102 {
6103 auto a = [](int i, int j){ return i + j; }(1, 2);
6104 auto b = []() -> int { return '0'; }();
6105 auto c = [=](){ return a + b; }();
6106 auto d = [&](){ return c; }();
6107 auto e = [a, &b](int x) mutable {
6108 const auto identity = [](int y){ return y; };
6109 for (auto i = 0; i < a; ++i)
6110 a += b--;
6111 return x + identity(a + b);
6112 }(0);
6113 return a + b + c + d + e;
6114 }
6115
6116 int
6117 test3()
6118 {
6119 const auto nullary = [](){ return 0; };
6120 const auto unary = [](int x){ return x; };
6121 using nullary_t = decltype(nullary);
6122 using unary_t = decltype(unary);
6123 const auto higher1st = [](nullary_t f){ return f(); };
6124 const auto higher2nd = [unary](nullary_t f1){
6125 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6126 };
6127 return higher1st(nullary) + higher2nd(nullary)(unary);
6128 }
6129
6130 }
6131
6132 namespace test_variadic_templates
6133 {
6134
6135 template <int...>
6136 struct sum;
6137
6138 template <int N0, int... N1toN>
6139 struct sum<N0, N1toN...>
6140 {
6141 static constexpr auto value = N0 + sum<N1toN...>::value;
6142 };
6143
6144 template <>
6145 struct sum<>
6146 {
6147 static constexpr auto value = 0;
6148 };
6149
6150 static_assert(sum<>::value == 0, "");
6151 static_assert(sum<1>::value == 1, "");
6152 static_assert(sum<23>::value == 23, "");
6153 static_assert(sum<1, 2>::value == 3, "");
6154 static_assert(sum<5, 5, 11>::value == 21, "");
6155 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6156
6157 }
6158
6159 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6160 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6161 // because of this.
6162 namespace test_template_alias_sfinae
6163 {
6164
6165 struct foo {};
6166
6167 template<typename T>
6168 using member = typename T::member_type;
6169
6170 template<typename T>
6171 void func(...) {}
6172
6173 template<typename T>
6174 void func(member<T>*) {}
6175
6176 void test();
6177
6178 void test() { func<foo>(0); }
6179
6180 }
6181
6182} // namespace cxx11
6183
6184#endif // __cplusplus >= 201103L
6185
6186
6187
6188_ACEOF
6189if ac_fn_cxx_try_compile "$LINENO"; then :
6190 ax_cv_cxx_compile_cxx11=yes
6191else
6192 ax_cv_cxx_compile_cxx11=no
6193fi
6194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195fi
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6197$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6198 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6199 ac_success=yes
6200 fi
6201
6202 if test x$ac_success = xno; then
6203 for alternative in ${ax_cxx_compile_alternatives}; do
6204 switch="-std=gnu++${alternative}"
6205 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6207$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6208if eval \${$cachevar+:} false; then :
6209 $as_echo_n "(cached) " >&6
6210else
6211 ac_save_CXX="$CXX"
6212 CXX="$CXX $switch"
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214/* end confdefs.h. */
6215
6216
6217// If the compiler admits that it is not ready for C++11, why torture it?
6218// Hopefully, this will speed up the test.
6219
6220#ifndef __cplusplus
6221
6222#error "This is not a C++ compiler"
6223
6224#elif __cplusplus < 201103L
6225
6226#error "This is not a C++11 compiler"
6227
6228#else
6229
6230namespace cxx11
6231{
6232
6233 namespace test_static_assert
6234 {
6235
6236 template <typename T>
6237 struct check
6238 {
6239 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6240 };
6241
6242 }
6243
6244 namespace test_final_override
6245 {
6246
6247 struct Base
6248 {
6249 virtual ~Base() {}
6250 virtual void f() {}
6251 };
6252
6253 struct Derived : public Base
6254 {
6255 virtual ~Derived() override {}
6256 virtual void f() override {}
6257 };
6258
6259 }
6260
6261 namespace test_double_right_angle_brackets
6262 {
6263
6264 template < typename T >
6265 struct check {};
6266
6267 typedef check<void> single_type;
6268 typedef check<check<void>> double_type;
6269 typedef check<check<check<void>>> triple_type;
6270 typedef check<check<check<check<void>>>> quadruple_type;
6271
6272 }
6273
6274 namespace test_decltype
6275 {
6276
6277 int
6278 f()
6279 {
6280 int a = 1;
6281 decltype(a) b = 2;
6282 return a + b;
6283 }
6284
6285 }
6286
6287 namespace test_type_deduction
6288 {
6289
6290 template < typename T1, typename T2 >
6291 struct is_same
6292 {
6293 static const bool value = false;
6294 };
6295
6296 template < typename T >
6297 struct is_same<T, T>
6298 {
6299 static const bool value = true;
6300 };
6301
6302 template < typename T1, typename T2 >
6303 auto
6304 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6305 {
6306 return a1 + a2;
6307 }
6308
6309 int
6310 test(const int c, volatile int v)
6311 {
6312 static_assert(is_same<int, decltype(0)>::value == true, "");
6313 static_assert(is_same<int, decltype(c)>::value == false, "");
6314 static_assert(is_same<int, decltype(v)>::value == false, "");
6315 auto ac = c;
6316 auto av = v;
6317 auto sumi = ac + av + 'x';
6318 auto sumf = ac + av + 1.0;
6319 static_assert(is_same<int, decltype(ac)>::value == true, "");
6320 static_assert(is_same<int, decltype(av)>::value == true, "");
6321 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6322 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6323 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6324 return (sumf > 0.0) ? sumi : add(c, v);
6325 }
6326
6327 }
6328
6329 namespace test_noexcept
6330 {
6331
6332 int f() { return 0; }
6333 int g() noexcept { return 0; }
6334
6335 static_assert(noexcept(f()) == false, "");
6336 static_assert(noexcept(g()) == true, "");
6337
6338 }
6339
6340 namespace test_constexpr
6341 {
6342
6343 template < typename CharT >
6344 unsigned long constexpr
6345 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6346 {
6347 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6348 }
6349
6350 template < typename CharT >
6351 unsigned long constexpr
6352 strlen_c(const CharT *const s) noexcept
6353 {
6354 return strlen_c_r(s, 0UL);
6355 }
6356
6357 static_assert(strlen_c("") == 0UL, "");
6358 static_assert(strlen_c("1") == 1UL, "");
6359 static_assert(strlen_c("example") == 7UL, "");
6360 static_assert(strlen_c("another\0example") == 7UL, "");
6361
6362 }
6363
6364 namespace test_rvalue_references
6365 {
6366
6367 template < int N >
6368 struct answer
6369 {
6370 static constexpr int value = N;
6371 };
6372
6373 answer<1> f(int&) { return answer<1>(); }
6374 answer<2> f(const int&) { return answer<2>(); }
6375 answer<3> f(int&&) { return answer<3>(); }
6376
6377 void
6378 test()
6379 {
6380 int i = 0;
6381 const int c = 0;
6382 static_assert(decltype(f(i))::value == 1, "");
6383 static_assert(decltype(f(c))::value == 2, "");
6384 static_assert(decltype(f(0))::value == 3, "");
6385 }
6386
6387 }
6388
6389 namespace test_uniform_initialization
6390 {
6391
6392 struct test
6393 {
6394 static const int zero {};
6395 static const int one {1};
6396 };
6397
6398 static_assert(test::zero == 0, "");
6399 static_assert(test::one == 1, "");
6400
6401 }
6402
6403 namespace test_lambdas
6404 {
6405
6406 void
6407 test1()
6408 {
6409 auto lambda1 = [](){};
6410 auto lambda2 = lambda1;
6411 lambda1();
6412 lambda2();
6413 }
6414
6415 int
6416 test2()
6417 {
6418 auto a = [](int i, int j){ return i + j; }(1, 2);
6419 auto b = []() -> int { return '0'; }();
6420 auto c = [=](){ return a + b; }();
6421 auto d = [&](){ return c; }();
6422 auto e = [a, &b](int x) mutable {
6423 const auto identity = [](int y){ return y; };
6424 for (auto i = 0; i < a; ++i)
6425 a += b--;
6426 return x + identity(a + b);
6427 }(0);
6428 return a + b + c + d + e;
6429 }
6430
6431 int
6432 test3()
6433 {
6434 const auto nullary = [](){ return 0; };
6435 const auto unary = [](int x){ return x; };
6436 using nullary_t = decltype(nullary);
6437 using unary_t = decltype(unary);
6438 const auto higher1st = [](nullary_t f){ return f(); };
6439 const auto higher2nd = [unary](nullary_t f1){
6440 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6441 };
6442 return higher1st(nullary) + higher2nd(nullary)(unary);
6443 }
6444
6445 }
6446
6447 namespace test_variadic_templates
6448 {
6449
6450 template <int...>
6451 struct sum;
6452
6453 template <int N0, int... N1toN>
6454 struct sum<N0, N1toN...>
6455 {
6456 static constexpr auto value = N0 + sum<N1toN...>::value;
6457 };
6458
6459 template <>
6460 struct sum<>
6461 {
6462 static constexpr auto value = 0;
6463 };
6464
6465 static_assert(sum<>::value == 0, "");
6466 static_assert(sum<1>::value == 1, "");
6467 static_assert(sum<23>::value == 23, "");
6468 static_assert(sum<1, 2>::value == 3, "");
6469 static_assert(sum<5, 5, 11>::value == 21, "");
6470 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6471
6472 }
6473
6474 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6475 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6476 // because of this.
6477 namespace test_template_alias_sfinae
6478 {
6479
6480 struct foo {};
6481
6482 template<typename T>
6483 using member = typename T::member_type;
6484
6485 template<typename T>
6486 void func(...) {}
6487
6488 template<typename T>
6489 void func(member<T>*) {}
6490
6491 void test();
6492
6493 void test() { func<foo>(0); }
6494
6495 }
6496
6497} // namespace cxx11
6498
6499#endif // __cplusplus >= 201103L
6500
6501
6502
6503_ACEOF
6504if ac_fn_cxx_try_compile "$LINENO"; then :
6505 eval $cachevar=yes
6506else
6507 eval $cachevar=no
6508fi
6509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6510 CXX="$ac_save_CXX"
6511fi
6512eval ac_res=\$$cachevar
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6514$as_echo "$ac_res" >&6; }
6515 if eval test x\$$cachevar = xyes; then
6516 CXX="$CXX $switch"
6517 if test -n "$CXXCPP" ; then
6518 CXXCPP="$CXXCPP $switch"
6519 fi
6520 ac_success=yes
6521 break
6522 fi
6523 done
6524 fi
6525
6526 if test x$ac_success = xno; then
6527 for alternative in ${ax_cxx_compile_alternatives}; do
6528 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6529 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6531$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6532if eval \${$cachevar+:} false; then :
6533 $as_echo_n "(cached) " >&6
6534else
6535 ac_save_CXX="$CXX"
6536 CXX="$CXX $switch"
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538/* end confdefs.h. */
6539
6540
6541// If the compiler admits that it is not ready for C++11, why torture it?
6542// Hopefully, this will speed up the test.
6543
6544#ifndef __cplusplus
6545
6546#error "This is not a C++ compiler"
6547
6548#elif __cplusplus < 201103L
6549
6550#error "This is not a C++11 compiler"
6551
6552#else
6553
6554namespace cxx11
6555{
6556
6557 namespace test_static_assert
6558 {
6559
6560 template <typename T>
6561 struct check
6562 {
6563 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6564 };
6565
6566 }
6567
6568 namespace test_final_override
6569 {
6570
6571 struct Base
6572 {
6573 virtual ~Base() {}
6574 virtual void f() {}
6575 };
6576
6577 struct Derived : public Base
6578 {
6579 virtual ~Derived() override {}
6580 virtual void f() override {}
6581 };
6582
6583 }
6584
6585 namespace test_double_right_angle_brackets
6586 {
6587
6588 template < typename T >
6589 struct check {};
6590
6591 typedef check<void> single_type;
6592 typedef check<check<void>> double_type;
6593 typedef check<check<check<void>>> triple_type;
6594 typedef check<check<check<check<void>>>> quadruple_type;
6595
6596 }
6597
6598 namespace test_decltype
6599 {
6600
6601 int
6602 f()
6603 {
6604 int a = 1;
6605 decltype(a) b = 2;
6606 return a + b;
6607 }
6608
6609 }
6610
6611 namespace test_type_deduction
6612 {
6613
6614 template < typename T1, typename T2 >
6615 struct is_same
6616 {
6617 static const bool value = false;
6618 };
6619
6620 template < typename T >
6621 struct is_same<T, T>
6622 {
6623 static const bool value = true;
6624 };
6625
6626 template < typename T1, typename T2 >
6627 auto
6628 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6629 {
6630 return a1 + a2;
6631 }
6632
6633 int
6634 test(const int c, volatile int v)
6635 {
6636 static_assert(is_same<int, decltype(0)>::value == true, "");
6637 static_assert(is_same<int, decltype(c)>::value == false, "");
6638 static_assert(is_same<int, decltype(v)>::value == false, "");
6639 auto ac = c;
6640 auto av = v;
6641 auto sumi = ac + av + 'x';
6642 auto sumf = ac + av + 1.0;
6643 static_assert(is_same<int, decltype(ac)>::value == true, "");
6644 static_assert(is_same<int, decltype(av)>::value == true, "");
6645 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6646 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6647 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6648 return (sumf > 0.0) ? sumi : add(c, v);
6649 }
6650
6651 }
6652
6653 namespace test_noexcept
6654 {
6655
6656 int f() { return 0; }
6657 int g() noexcept { return 0; }
6658
6659 static_assert(noexcept(f()) == false, "");
6660 static_assert(noexcept(g()) == true, "");
6661
6662 }
6663
6664 namespace test_constexpr
6665 {
6666
6667 template < typename CharT >
6668 unsigned long constexpr
6669 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6670 {
6671 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6672 }
6673
6674 template < typename CharT >
6675 unsigned long constexpr
6676 strlen_c(const CharT *const s) noexcept
6677 {
6678 return strlen_c_r(s, 0UL);
6679 }
6680
6681 static_assert(strlen_c("") == 0UL, "");
6682 static_assert(strlen_c("1") == 1UL, "");
6683 static_assert(strlen_c("example") == 7UL, "");
6684 static_assert(strlen_c("another\0example") == 7UL, "");
6685
6686 }
6687
6688 namespace test_rvalue_references
6689 {
6690
6691 template < int N >
6692 struct answer
6693 {
6694 static constexpr int value = N;
6695 };
6696
6697 answer<1> f(int&) { return answer<1>(); }
6698 answer<2> f(const int&) { return answer<2>(); }
6699 answer<3> f(int&&) { return answer<3>(); }
6700
6701 void
6702 test()
6703 {
6704 int i = 0;
6705 const int c = 0;
6706 static_assert(decltype(f(i))::value == 1, "");
6707 static_assert(decltype(f(c))::value == 2, "");
6708 static_assert(decltype(f(0))::value == 3, "");
6709 }
6710
6711 }
6712
6713 namespace test_uniform_initialization
6714 {
6715
6716 struct test
6717 {
6718 static const int zero {};
6719 static const int one {1};
6720 };
6721
6722 static_assert(test::zero == 0, "");
6723 static_assert(test::one == 1, "");
6724
6725 }
6726
6727 namespace test_lambdas
6728 {
6729
6730 void
6731 test1()
6732 {
6733 auto lambda1 = [](){};
6734 auto lambda2 = lambda1;
6735 lambda1();
6736 lambda2();
6737 }
6738
6739 int
6740 test2()
6741 {
6742 auto a = [](int i, int j){ return i + j; }(1, 2);
6743 auto b = []() -> int { return '0'; }();
6744 auto c = [=](){ return a + b; }();
6745 auto d = [&](){ return c; }();
6746 auto e = [a, &b](int x) mutable {
6747 const auto identity = [](int y){ return y; };
6748 for (auto i = 0; i < a; ++i)
6749 a += b--;
6750 return x + identity(a + b);
6751 }(0);
6752 return a + b + c + d + e;
6753 }
6754
6755 int
6756 test3()
6757 {
6758 const auto nullary = [](){ return 0; };
6759 const auto unary = [](int x){ return x; };
6760 using nullary_t = decltype(nullary);
6761 using unary_t = decltype(unary);
6762 const auto higher1st = [](nullary_t f){ return f(); };
6763 const auto higher2nd = [unary](nullary_t f1){
6764 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6765 };
6766 return higher1st(nullary) + higher2nd(nullary)(unary);
6767 }
6768
6769 }
6770
6771 namespace test_variadic_templates
6772 {
6773
6774 template <int...>
6775 struct sum;
6776
6777 template <int N0, int... N1toN>
6778 struct sum<N0, N1toN...>
6779 {
6780 static constexpr auto value = N0 + sum<N1toN...>::value;
6781 };
6782
6783 template <>
6784 struct sum<>
6785 {
6786 static constexpr auto value = 0;
6787 };
6788
6789 static_assert(sum<>::value == 0, "");
6790 static_assert(sum<1>::value == 1, "");
6791 static_assert(sum<23>::value == 23, "");
6792 static_assert(sum<1, 2>::value == 3, "");
6793 static_assert(sum<5, 5, 11>::value == 21, "");
6794 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6795
6796 }
6797
6798 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6799 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6800 // because of this.
6801 namespace test_template_alias_sfinae
6802 {
6803
6804 struct foo {};
6805
6806 template<typename T>
6807 using member = typename T::member_type;
6808
6809 template<typename T>
6810 void func(...) {}
6811
6812 template<typename T>
6813 void func(member<T>*) {}
6814
6815 void test();
6816
6817 void test() { func<foo>(0); }
6818
6819 }
6820
6821} // namespace cxx11
6822
6823#endif // __cplusplus >= 201103L
6824
6825
6826
6827_ACEOF
6828if ac_fn_cxx_try_compile "$LINENO"; then :
6829 eval $cachevar=yes
6830else
6831 eval $cachevar=no
6832fi
6833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6834 CXX="$ac_save_CXX"
6835fi
6836eval ac_res=\$$cachevar
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6838$as_echo "$ac_res" >&6; }
6839 if eval test x\$$cachevar = xyes; then
6840 CXX="$CXX $switch"
6841 if test -n "$CXXCPP" ; then
6842 CXXCPP="$CXXCPP $switch"
6843 fi
6844 ac_success=yes
6845 break
6846 fi
6847 done
6848 if test x$ac_success = xyes; then
6849 break
6850 fi
6851 done
6852 fi
6853
6854 ac_ext=c
6855ac_cpp='$CPP $CPPFLAGS'
6856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6858ac_compiler_gnu=$ac_cv_c_compiler_gnu
6859
6860 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6861 if test x$ac_success = xno; then
6862 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6863 fi
6864 fi
6865 if test x$ac_success = xno; then
6866 HAVE_CXX11=0
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6868$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6869 else
6870 HAVE_CXX11=1
6871
6872$as_echo "#define HAVE_CXX11 1" >>confdefs.h
6873
6874 fi
6875
6876
6877
6878 if test "${build}" != "${host}"; then
6879 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6880 ac_ext=cpp
6881ac_cpp='$CXXCPP $CPPFLAGS'
6882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6885 ac_success=no
6886 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6887 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6888 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6889 CXX="$CXX_FOR_BUILD"
6890 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6891 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6893$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6894if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6895 $as_echo_n "(cached) " >&6
6896else
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898/* end confdefs.h. */
6899
6900
6901// If the compiler admits that it is not ready for C++11, why torture it?
6902// Hopefully, this will speed up the test.
6903
6904#ifndef __cplusplus
6905
6906#error "This is not a C++ compiler"
6907
6908#elif __cplusplus < 201103L
6909
6910#error "This is not a C++11 compiler"
6911
6912#else
6913
6914namespace cxx11
6915{
6916
6917 namespace test_static_assert
6918 {
6919
6920 template <typename T>
6921 struct check
6922 {
6923 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6924 };
6925
6926 }
6927
6928 namespace test_final_override
6929 {
6930
6931 struct Base
6932 {
6933 virtual ~Base() {}
6934 virtual void f() {}
6935 };
6936
6937 struct Derived : public Base
6938 {
6939 virtual ~Derived() override {}
6940 virtual void f() override {}
6941 };
6942
6943 }
6944
6945 namespace test_double_right_angle_brackets
6946 {
6947
6948 template < typename T >
6949 struct check {};
6950
6951 typedef check<void> single_type;
6952 typedef check<check<void>> double_type;
6953 typedef check<check<check<void>>> triple_type;
6954 typedef check<check<check<check<void>>>> quadruple_type;
6955
6956 }
6957
6958 namespace test_decltype
6959 {
6960
6961 int
6962 f()
6963 {
6964 int a = 1;
6965 decltype(a) b = 2;
6966 return a + b;
6967 }
6968
6969 }
6970
6971 namespace test_type_deduction
6972 {
6973
6974 template < typename T1, typename T2 >
6975 struct is_same
6976 {
6977 static const bool value = false;
6978 };
6979
6980 template < typename T >
6981 struct is_same<T, T>
6982 {
6983 static const bool value = true;
6984 };
6985
6986 template < typename T1, typename T2 >
6987 auto
6988 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6989 {
6990 return a1 + a2;
6991 }
6992
6993 int
6994 test(const int c, volatile int v)
6995 {
6996 static_assert(is_same<int, decltype(0)>::value == true, "");
6997 static_assert(is_same<int, decltype(c)>::value == false, "");
6998 static_assert(is_same<int, decltype(v)>::value == false, "");
6999 auto ac = c;
7000 auto av = v;
7001 auto sumi = ac + av + 'x';
7002 auto sumf = ac + av + 1.0;
7003 static_assert(is_same<int, decltype(ac)>::value == true, "");
7004 static_assert(is_same<int, decltype(av)>::value == true, "");
7005 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7006 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7007 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7008 return (sumf > 0.0) ? sumi : add(c, v);
7009 }
7010
7011 }
7012
7013 namespace test_noexcept
7014 {
7015
7016 int f() { return 0; }
7017 int g() noexcept { return 0; }
7018
7019 static_assert(noexcept(f()) == false, "");
7020 static_assert(noexcept(g()) == true, "");
7021
7022 }
7023
7024 namespace test_constexpr
7025 {
7026
7027 template < typename CharT >
7028 unsigned long constexpr
7029 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7030 {
7031 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7032 }
7033
7034 template < typename CharT >
7035 unsigned long constexpr
7036 strlen_c(const CharT *const s) noexcept
7037 {
7038 return strlen_c_r(s, 0UL);
7039 }
7040
7041 static_assert(strlen_c("") == 0UL, "");
7042 static_assert(strlen_c("1") == 1UL, "");
7043 static_assert(strlen_c("example") == 7UL, "");
7044 static_assert(strlen_c("another\0example") == 7UL, "");
7045
7046 }
7047
7048 namespace test_rvalue_references
7049 {
7050
7051 template < int N >
7052 struct answer
7053 {
7054 static constexpr int value = N;
7055 };
7056
7057 answer<1> f(int&) { return answer<1>(); }
7058 answer<2> f(const int&) { return answer<2>(); }
7059 answer<3> f(int&&) { return answer<3>(); }
7060
7061 void
7062 test()
7063 {
7064 int i = 0;
7065 const int c = 0;
7066 static_assert(decltype(f(i))::value == 1, "");
7067 static_assert(decltype(f(c))::value == 2, "");
7068 static_assert(decltype(f(0))::value == 3, "");
7069 }
7070
7071 }
7072
7073 namespace test_uniform_initialization
7074 {
7075
7076 struct test
7077 {
7078 static const int zero {};
7079 static const int one {1};
7080 };
7081
7082 static_assert(test::zero == 0, "");
7083 static_assert(test::one == 1, "");
7084
7085 }
7086
7087 namespace test_lambdas
7088 {
7089
7090 void
7091 test1()
7092 {
7093 auto lambda1 = [](){};
7094 auto lambda2 = lambda1;
7095 lambda1();
7096 lambda2();
7097 }
7098
7099 int
7100 test2()
7101 {
7102 auto a = [](int i, int j){ return i + j; }(1, 2);
7103 auto b = []() -> int { return '0'; }();
7104 auto c = [=](){ return a + b; }();
7105 auto d = [&](){ return c; }();
7106 auto e = [a, &b](int x) mutable {
7107 const auto identity = [](int y){ return y; };
7108 for (auto i = 0; i < a; ++i)
7109 a += b--;
7110 return x + identity(a + b);
7111 }(0);
7112 return a + b + c + d + e;
7113 }
7114
7115 int
7116 test3()
7117 {
7118 const auto nullary = [](){ return 0; };
7119 const auto unary = [](int x){ return x; };
7120 using nullary_t = decltype(nullary);
7121 using unary_t = decltype(unary);
7122 const auto higher1st = [](nullary_t f){ return f(); };
7123 const auto higher2nd = [unary](nullary_t f1){
7124 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7125 };
7126 return higher1st(nullary) + higher2nd(nullary)(unary);
7127 }
7128
7129 }
7130
7131 namespace test_variadic_templates
7132 {
7133
7134 template <int...>
7135 struct sum;
7136
7137 template <int N0, int... N1toN>
7138 struct sum<N0, N1toN...>
7139 {
7140 static constexpr auto value = N0 + sum<N1toN...>::value;
7141 };
7142
7143 template <>
7144 struct sum<>
7145 {
7146 static constexpr auto value = 0;
7147 };
7148
7149 static_assert(sum<>::value == 0, "");
7150 static_assert(sum<1>::value == 1, "");
7151 static_assert(sum<23>::value == 23, "");
7152 static_assert(sum<1, 2>::value == 3, "");
7153 static_assert(sum<5, 5, 11>::value == 21, "");
7154 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7155
7156 }
7157
7158 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7159 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7160 // because of this.
7161 namespace test_template_alias_sfinae
7162 {
7163
7164 struct foo {};
7165
7166 template<typename T>
7167 using member = typename T::member_type;
7168
7169 template<typename T>
7170 void func(...) {}
7171
7172 template<typename T>
7173 void func(member<T>*) {}
7174
7175 void test();
7176
7177 void test() { func<foo>(0); }
7178
7179 }
7180
7181} // namespace cxx11
7182
7183#endif // __cplusplus >= 201103L
7184
7185
7186
7187_ACEOF
7188if ac_fn_cxx_try_compile "$LINENO"; then :
7189 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7190else
7191 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7192fi
7193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194fi
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7196$as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7197 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7198 ac_success=yes
7199 fi
7200
7201 if test x$ac_success = xno; then
7202 for alternative in ${ax_cxx_compile_alternatives}; do
7203 switch="-std=gnu++${alternative}"
7204 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7206$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7207if eval \${$cachevar+:} false; then :
7208 $as_echo_n "(cached) " >&6
7209else
7210 ac_save_CXX="$CXX"
7211 CXX="$CXX $switch"
7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213/* end confdefs.h. */
7214
7215
7216// If the compiler admits that it is not ready for C++11, why torture it?
7217// Hopefully, this will speed up the test.
7218
7219#ifndef __cplusplus
7220
7221#error "This is not a C++ compiler"
7222
7223#elif __cplusplus < 201103L
7224
7225#error "This is not a C++11 compiler"
7226
7227#else
7228
7229namespace cxx11
7230{
7231
7232 namespace test_static_assert
7233 {
7234
7235 template <typename T>
7236 struct check
7237 {
7238 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7239 };
7240
7241 }
7242
7243 namespace test_final_override
7244 {
7245
7246 struct Base
7247 {
7248 virtual ~Base() {}
7249 virtual void f() {}
7250 };
7251
7252 struct Derived : public Base
7253 {
7254 virtual ~Derived() override {}
7255 virtual void f() override {}
7256 };
7257
7258 }
7259
7260 namespace test_double_right_angle_brackets
7261 {
7262
7263 template < typename T >
7264 struct check {};
7265
7266 typedef check<void> single_type;
7267 typedef check<check<void>> double_type;
7268 typedef check<check<check<void>>> triple_type;
7269 typedef check<check<check<check<void>>>> quadruple_type;
7270
7271 }
7272
7273 namespace test_decltype
7274 {
7275
7276 int
7277 f()
7278 {
7279 int a = 1;
7280 decltype(a) b = 2;
7281 return a + b;
7282 }
7283
7284 }
7285
7286 namespace test_type_deduction
7287 {
7288
7289 template < typename T1, typename T2 >
7290 struct is_same
7291 {
7292 static const bool value = false;
7293 };
7294
7295 template < typename T >
7296 struct is_same<T, T>
7297 {
7298 static const bool value = true;
7299 };
7300
7301 template < typename T1, typename T2 >
7302 auto
7303 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7304 {
7305 return a1 + a2;
7306 }
7307
7308 int
7309 test(const int c, volatile int v)
7310 {
7311 static_assert(is_same<int, decltype(0)>::value == true, "");
7312 static_assert(is_same<int, decltype(c)>::value == false, "");
7313 static_assert(is_same<int, decltype(v)>::value == false, "");
7314 auto ac = c;
7315 auto av = v;
7316 auto sumi = ac + av + 'x';
7317 auto sumf = ac + av + 1.0;
7318 static_assert(is_same<int, decltype(ac)>::value == true, "");
7319 static_assert(is_same<int, decltype(av)>::value == true, "");
7320 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7321 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7322 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7323 return (sumf > 0.0) ? sumi : add(c, v);
7324 }
7325
7326 }
7327
7328 namespace test_noexcept
7329 {
7330
7331 int f() { return 0; }
7332 int g() noexcept { return 0; }
7333
7334 static_assert(noexcept(f()) == false, "");
7335 static_assert(noexcept(g()) == true, "");
7336
7337 }
7338
7339 namespace test_constexpr
7340 {
7341
7342 template < typename CharT >
7343 unsigned long constexpr
7344 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7345 {
7346 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7347 }
7348
7349 template < typename CharT >
7350 unsigned long constexpr
7351 strlen_c(const CharT *const s) noexcept
7352 {
7353 return strlen_c_r(s, 0UL);
7354 }
7355
7356 static_assert(strlen_c("") == 0UL, "");
7357 static_assert(strlen_c("1") == 1UL, "");
7358 static_assert(strlen_c("example") == 7UL, "");
7359 static_assert(strlen_c("another\0example") == 7UL, "");
7360
7361 }
7362
7363 namespace test_rvalue_references
7364 {
7365
7366 template < int N >
7367 struct answer
7368 {
7369 static constexpr int value = N;
7370 };
7371
7372 answer<1> f(int&) { return answer<1>(); }
7373 answer<2> f(const int&) { return answer<2>(); }
7374 answer<3> f(int&&) { return answer<3>(); }
7375
7376 void
7377 test()
7378 {
7379 int i = 0;
7380 const int c = 0;
7381 static_assert(decltype(f(i))::value == 1, "");
7382 static_assert(decltype(f(c))::value == 2, "");
7383 static_assert(decltype(f(0))::value == 3, "");
7384 }
7385
7386 }
7387
7388 namespace test_uniform_initialization
7389 {
7390
7391 struct test
7392 {
7393 static const int zero {};
7394 static const int one {1};
7395 };
7396
7397 static_assert(test::zero == 0, "");
7398 static_assert(test::one == 1, "");
7399
7400 }
7401
7402 namespace test_lambdas
7403 {
7404
7405 void
7406 test1()
7407 {
7408 auto lambda1 = [](){};
7409 auto lambda2 = lambda1;
7410 lambda1();
7411 lambda2();
7412 }
7413
7414 int
7415 test2()
7416 {
7417 auto a = [](int i, int j){ return i + j; }(1, 2);
7418 auto b = []() -> int { return '0'; }();
7419 auto c = [=](){ return a + b; }();
7420 auto d = [&](){ return c; }();
7421 auto e = [a, &b](int x) mutable {
7422 const auto identity = [](int y){ return y; };
7423 for (auto i = 0; i < a; ++i)
7424 a += b--;
7425 return x + identity(a + b);
7426 }(0);
7427 return a + b + c + d + e;
7428 }
7429
7430 int
7431 test3()
7432 {
7433 const auto nullary = [](){ return 0; };
7434 const auto unary = [](int x){ return x; };
7435 using nullary_t = decltype(nullary);
7436 using unary_t = decltype(unary);
7437 const auto higher1st = [](nullary_t f){ return f(); };
7438 const auto higher2nd = [unary](nullary_t f1){
7439 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7440 };
7441 return higher1st(nullary) + higher2nd(nullary)(unary);
7442 }
7443
7444 }
7445
7446 namespace test_variadic_templates
7447 {
7448
7449 template <int...>
7450 struct sum;
7451
7452 template <int N0, int... N1toN>
7453 struct sum<N0, N1toN...>
7454 {
7455 static constexpr auto value = N0 + sum<N1toN...>::value;
7456 };
7457
7458 template <>
7459 struct sum<>
7460 {
7461 static constexpr auto value = 0;
7462 };
7463
7464 static_assert(sum<>::value == 0, "");
7465 static_assert(sum<1>::value == 1, "");
7466 static_assert(sum<23>::value == 23, "");
7467 static_assert(sum<1, 2>::value == 3, "");
7468 static_assert(sum<5, 5, 11>::value == 21, "");
7469 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7470
7471 }
7472
7473 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7474 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7475 // because of this.
7476 namespace test_template_alias_sfinae
7477 {
7478
7479 struct foo {};
7480
7481 template<typename T>
7482 using member = typename T::member_type;
7483
7484 template<typename T>
7485 void func(...) {}
7486
7487 template<typename T>
7488 void func(member<T>*) {}
7489
7490 void test();
7491
7492 void test() { func<foo>(0); }
7493
7494 }
7495
7496} // namespace cxx11
7497
7498#endif // __cplusplus >= 201103L
7499
7500
7501
7502_ACEOF
7503if ac_fn_cxx_try_compile "$LINENO"; then :
7504 eval $cachevar=yes
7505else
7506 eval $cachevar=no
7507fi
7508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7509 CXX="$ac_save_CXX"
7510fi
7511eval ac_res=\$$cachevar
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7513$as_echo "$ac_res" >&6; }
7514 if eval test x\$$cachevar = xyes; then
7515 CXX="$CXX $switch"
7516 if test -n "$CXXCPP" ; then
7517 CXXCPP="$CXXCPP $switch"
7518 fi
7519 ac_success=yes
7520 break
7521 fi
7522 done
7523 fi
7524
7525 if test x$ac_success = xno; then
7526 for alternative in ${ax_cxx_compile_alternatives}; do
7527 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7528 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7530$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7531if eval \${$cachevar+:} false; then :
7532 $as_echo_n "(cached) " >&6
7533else
7534 ac_save_CXX="$CXX"
7535 CXX="$CXX $switch"
7536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537/* end confdefs.h. */
7538
7539
7540// If the compiler admits that it is not ready for C++11, why torture it?
7541// Hopefully, this will speed up the test.
7542
7543#ifndef __cplusplus
7544
7545#error "This is not a C++ compiler"
7546
7547#elif __cplusplus < 201103L
7548
7549#error "This is not a C++11 compiler"
7550
7551#else
7552
7553namespace cxx11
7554{
7555
7556 namespace test_static_assert
7557 {
7558
7559 template <typename T>
7560 struct check
7561 {
7562 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7563 };
7564
7565 }
7566
7567 namespace test_final_override
7568 {
7569
7570 struct Base
7571 {
7572 virtual ~Base() {}
7573 virtual void f() {}
7574 };
7575
7576 struct Derived : public Base
7577 {
7578 virtual ~Derived() override {}
7579 virtual void f() override {}
7580 };
7581
7582 }
7583
7584 namespace test_double_right_angle_brackets
7585 {
7586
7587 template < typename T >
7588 struct check {};
7589
7590 typedef check<void> single_type;
7591 typedef check<check<void>> double_type;
7592 typedef check<check<check<void>>> triple_type;
7593 typedef check<check<check<check<void>>>> quadruple_type;
7594
7595 }
7596
7597 namespace test_decltype
7598 {
7599
7600 int
7601 f()
7602 {
7603 int a = 1;
7604 decltype(a) b = 2;
7605 return a + b;
7606 }
7607
7608 }
7609
7610 namespace test_type_deduction
7611 {
7612
7613 template < typename T1, typename T2 >
7614 struct is_same
7615 {
7616 static const bool value = false;
7617 };
7618
7619 template < typename T >
7620 struct is_same<T, T>
7621 {
7622 static const bool value = true;
7623 };
7624
7625 template < typename T1, typename T2 >
7626 auto
7627 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7628 {
7629 return a1 + a2;
7630 }
7631
7632 int
7633 test(const int c, volatile int v)
7634 {
7635 static_assert(is_same<int, decltype(0)>::value == true, "");
7636 static_assert(is_same<int, decltype(c)>::value == false, "");
7637 static_assert(is_same<int, decltype(v)>::value == false, "");
7638 auto ac = c;
7639 auto av = v;
7640 auto sumi = ac + av + 'x';
7641 auto sumf = ac + av + 1.0;
7642 static_assert(is_same<int, decltype(ac)>::value == true, "");
7643 static_assert(is_same<int, decltype(av)>::value == true, "");
7644 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7645 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7646 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7647 return (sumf > 0.0) ? sumi : add(c, v);
7648 }
7649
7650 }
7651
7652 namespace test_noexcept
7653 {
7654
7655 int f() { return 0; }
7656 int g() noexcept { return 0; }
7657
7658 static_assert(noexcept(f()) == false, "");
7659 static_assert(noexcept(g()) == true, "");
7660
7661 }
7662
7663 namespace test_constexpr
7664 {
7665
7666 template < typename CharT >
7667 unsigned long constexpr
7668 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7669 {
7670 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7671 }
7672
7673 template < typename CharT >
7674 unsigned long constexpr
7675 strlen_c(const CharT *const s) noexcept
7676 {
7677 return strlen_c_r(s, 0UL);
7678 }
7679
7680 static_assert(strlen_c("") == 0UL, "");
7681 static_assert(strlen_c("1") == 1UL, "");
7682 static_assert(strlen_c("example") == 7UL, "");
7683 static_assert(strlen_c("another\0example") == 7UL, "");
7684
7685 }
7686
7687 namespace test_rvalue_references
7688 {
7689
7690 template < int N >
7691 struct answer
7692 {
7693 static constexpr int value = N;
7694 };
7695
7696 answer<1> f(int&) { return answer<1>(); }
7697 answer<2> f(const int&) { return answer<2>(); }
7698 answer<3> f(int&&) { return answer<3>(); }
7699
7700 void
7701 test()
7702 {
7703 int i = 0;
7704 const int c = 0;
7705 static_assert(decltype(f(i))::value == 1, "");
7706 static_assert(decltype(f(c))::value == 2, "");
7707 static_assert(decltype(f(0))::value == 3, "");
7708 }
7709
7710 }
7711
7712 namespace test_uniform_initialization
7713 {
7714
7715 struct test
7716 {
7717 static const int zero {};
7718 static const int one {1};
7719 };
7720
7721 static_assert(test::zero == 0, "");
7722 static_assert(test::one == 1, "");
7723
7724 }
7725
7726 namespace test_lambdas
7727 {
7728
7729 void
7730 test1()
7731 {
7732 auto lambda1 = [](){};
7733 auto lambda2 = lambda1;
7734 lambda1();
7735 lambda2();
7736 }
7737
7738 int
7739 test2()
7740 {
7741 auto a = [](int i, int j){ return i + j; }(1, 2);
7742 auto b = []() -> int { return '0'; }();
7743 auto c = [=](){ return a + b; }();
7744 auto d = [&](){ return c; }();
7745 auto e = [a, &b](int x) mutable {
7746 const auto identity = [](int y){ return y; };
7747 for (auto i = 0; i < a; ++i)
7748 a += b--;
7749 return x + identity(a + b);
7750 }(0);
7751 return a + b + c + d + e;
7752 }
7753
7754 int
7755 test3()
7756 {
7757 const auto nullary = [](){ return 0; };
7758 const auto unary = [](int x){ return x; };
7759 using nullary_t = decltype(nullary);
7760 using unary_t = decltype(unary);
7761 const auto higher1st = [](nullary_t f){ return f(); };
7762 const auto higher2nd = [unary](nullary_t f1){
7763 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7764 };
7765 return higher1st(nullary) + higher2nd(nullary)(unary);
7766 }
7767
7768 }
7769
7770 namespace test_variadic_templates
7771 {
7772
7773 template <int...>
7774 struct sum;
7775
7776 template <int N0, int... N1toN>
7777 struct sum<N0, N1toN...>
7778 {
7779 static constexpr auto value = N0 + sum<N1toN...>::value;
7780 };
7781
7782 template <>
7783 struct sum<>
7784 {
7785 static constexpr auto value = 0;
7786 };
7787
7788 static_assert(sum<>::value == 0, "");
7789 static_assert(sum<1>::value == 1, "");
7790 static_assert(sum<23>::value == 23, "");
7791 static_assert(sum<1, 2>::value == 3, "");
7792 static_assert(sum<5, 5, 11>::value == 21, "");
7793 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7794
7795 }
7796
7797 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7798 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7799 // because of this.
7800 namespace test_template_alias_sfinae
7801 {
7802
7803 struct foo {};
7804
7805 template<typename T>
7806 using member = typename T::member_type;
7807
7808 template<typename T>
7809 void func(...) {}
7810
7811 template<typename T>
7812 void func(member<T>*) {}
7813
7814 void test();
7815
7816 void test() { func<foo>(0); }
7817
7818 }
7819
7820} // namespace cxx11
7821
7822#endif // __cplusplus >= 201103L
7823
7824
7825
7826_ACEOF
7827if ac_fn_cxx_try_compile "$LINENO"; then :
7828 eval $cachevar=yes
7829else
7830 eval $cachevar=no
7831fi
7832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7833 CXX="$ac_save_CXX"
7834fi
7835eval ac_res=\$$cachevar
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7837$as_echo "$ac_res" >&6; }
7838 if eval test x\$$cachevar = xyes; then
7839 CXX="$CXX $switch"
7840 if test -n "$CXXCPP" ; then
7841 CXXCPP="$CXXCPP $switch"
7842 fi
7843 ac_success=yes
7844 break
7845 fi
7846 done
7847 if test x$ac_success = xyes; then
7848 break
7849 fi
7850 done
7851 fi
7852 CXX_FOR_BUILD="$CXX"
7853 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7854 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7855 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7856 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7857 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7858 ac_ext=c
7859ac_cpp='$CPP $CPPFLAGS'
7860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7862ac_compiler_gnu=$ac_cv_c_compiler_gnu
7863
7864 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7865 if test x$ac_success = xno; then
7866 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7867 fi
7868 fi
7869 if test x$ac_success = xno; then
7870 HAVE_CXX11_FOR_BUILD=0
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7872$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7873 else
7874 HAVE_CXX11_FOR_BUILD=1
7875
7876$as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7877
7878 fi
7879
7880
7881 fi
7882fi
7883
7884# Check whether --enable-pgo-build was given.
7885if test "${enable_pgo_build+set}" = set; then :
7886 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7887else
7888 enable_pgo_build=no
7889fi
7890
7891
7892# Issue errors and warnings for invalid/strange PGO build combinations.
7893case "$have_compiler:$host:$target:$enable_pgo_build" in
7894 *:*:*:no) ;;
7895
7896 # Allow the PGO build only if we aren't building a compiler and
7897 # we are in a native configuration.
7898 no:$build:$build:yes | no:$build:$build:lto) ;;
7899
7900 # Disallow the PGO bootstrap if we are building a compiler.
7901 yes:*:*:yes | yes:*:*:lto)
7902 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7903
7904 *)
7905 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7906 ;;
7907esac
7908
7909if test "$enable_pgo_build" != "no"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7911$as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7912 old_CFLAGS="$CFLAGS"
7913 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7914 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7915
7916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917/* end confdefs.h. */
7918int foo;
7919_ACEOF
7920if ac_fn_c_try_compile "$LINENO"; then :
7921
7922else
7923 PGO_BUILD_GEN_CFLAGS=
7924fi
7925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7926 CFLAGS="$old_CFLAGS"
7927 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7929$as_echo "yes" >&6; }
7930 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7931 else
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933$as_echo "no" >&6; }
7934 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7935 fi
7936
7937 if test "$enable_pgo_build" = "lto"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7939$as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7940 old_CFLAGS="$CFLAGS"
7941 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7942 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944/* end confdefs.h. */
7945int foo;
7946_ACEOF
7947if ac_fn_c_try_compile "$LINENO"; then :
7948
7949else
7950 PGO_BUILD_LTO_CFLAGS=
7951fi
7952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7953 CFLAGS="$old_CFLAGS"
7954 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7956$as_echo "yes" >&6; }
7957 else
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959$as_echo "no" >&6; }
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7961$as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7962 fi
7963 fi
7964fi
7965
7966
7967
7968
7969# Used for setting $lt_cv_objdir
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7971$as_echo_n "checking for objdir... " >&6; }
7972if ${lt_cv_objdir+:} false; then :
7973 $as_echo_n "(cached) " >&6
7974else
7975 rm -f .libs 2>/dev/null
7976mkdir .libs 2>/dev/null
7977if test -d .libs; then
7978 lt_cv_objdir=.libs
7979else
7980 # MS-DOS does not allow filenames that begin with a dot.
7981 lt_cv_objdir=_libs
7982fi
7983rmdir .libs 2>/dev/null
7984fi
7985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7986$as_echo "$lt_cv_objdir" >&6; }
7987objdir=$lt_cv_objdir
7988
7989
7990
7991
7992
7993cat >>confdefs.h <<_ACEOF
7994#define LT_OBJDIR "$lt_cv_objdir/"
7995_ACEOF
7996
7997
7998
7999# Check for GMP, MPFR and MPC
99118062
AP
8000require_gmp=no
8001require_mpc=no
8002if test -d ${srcdir}/gcc ; then
8003 require_gmp=yes
8004 require_mpc=yes
8005fi
8006if test -d ${srcdir}/gdb ; then
5fb0e308
CC
8007 if test "x$enable_gdb" != xno; then
8008 require_gmp=yes
8009 fi
99118062
AP
8010fi
8011
8012gmplibs="-lmpfr -lgmp"
8013if test x"$require_mpc" = "xyes" ; then
8014 gmplibs="-lmpc $gmplibs"
8015fi
228cf97d
AM
8016gmpinc=
8017have_gmp=no
8018
8019# Specify a location for mpc
8020# check for this first so it ends up on the link line before mpfr.
8021
8022# Check whether --with-mpc was given.
8023if test "${with_mpc+set}" = set; then :
8024 withval=$with_mpc;
8025fi
8026
8027
8028# Check whether --with-mpc-include was given.
8029if test "${with_mpc_include+set}" = set; then :
8030 withval=$with_mpc_include;
8031fi
8032
8033
8034# Check whether --with-mpc-lib was given.
8035if test "${with_mpc_lib+set}" = set; then :
8036 withval=$with_mpc_lib;
8037fi
8038
8039
8040if test "x$with_mpc" != x; then
8041 gmplibs="-L$with_mpc/lib $gmplibs"
8042 gmpinc="-I$with_mpc/include $gmpinc"
8043fi
8044if test "x$with_mpc_include" != x; then
8045 gmpinc="-I$with_mpc_include $gmpinc"
8046fi
8047if test "x$with_mpc_lib" != x; then
8048 gmplibs="-L$with_mpc_lib $gmplibs"
8049fi
8050if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
8051 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8052 gmpinc='-I$$s/mpc/src '"$gmpinc"
8053 # Do not test the mpc version. Assume that it is sufficient, since
8054 # it is in the source tree, and the library has not been built yet
8055 # but it would be included on the link line in the version check below
8056 # hence making the test fail.
8057 have_gmp=yes
8058fi
8059
8060# Specify a location for mpfr
8061# check for this first so it ends up on the link line before gmp.
8062
8063# Check whether --with-mpfr was given.
8064if test "${with_mpfr+set}" = set; then :
8065 withval=$with_mpfr;
8066fi
c6b750e1 8067
11b04d1f 8068
e552509b 8069# Check whether --with-mpfr-include was given.
81ecdfbb
RW
8070if test "${with_mpfr_include+set}" = set; then :
8071 withval=$with_mpfr_include;
8072fi
c6b750e1 8073
8a0d8a5c 8074
e552509b 8075# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
8076if test "${with_mpfr_lib+set}" = set; then :
8077 withval=$with_mpfr_lib;
8078fi
8a0d8a5c 8079
11b04d1f
DD
8080
8081if test "x$with_mpfr" != x; then
8082 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 8083 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 8084fi
8a0d8a5c 8085if test "x$with_mpfr_include" != x; then
d9b76ff9 8086 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
8087fi
8088if test "x$with_mpfr_lib" != x; then
8089 gmplibs="-L$with_mpfr_lib $gmplibs"
8090fi
4b900473 8091if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21 8092 # MPFR v3.1.0 moved the sources into a src sub-directory.
05a13254 8093 if ! test -d ${srcdir}/mpfr/src; then
d0ac1c44 8094 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
58b1dd21 8095 fi
05a13254
NC
8096 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8097 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8098 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
4b900473
PB
8099 # Do not test the mpfr version. Assume that it is sufficient, since
8100 # it is in the source tree, and the library has not been built yet
8101 # but it would be included on the link line in the version check below
8102 # hence making the test fail.
8103 have_gmp=yes
8104fi
11b04d1f 8105
4b1cb4fe 8106# Specify a location for gmp
c6b750e1 8107
81ecdfbb
RW
8108# Check whether --with-gmp was given.
8109if test "${with_gmp+set}" = set; then :
8110 withval=$with_gmp;
8111fi
c6b750e1 8112
4b1cb4fe 8113
e552509b 8114# Check whether --with-gmp-include was given.
81ecdfbb
RW
8115if test "${with_gmp_include+set}" = set; then :
8116 withval=$with_gmp_include;
8117fi
c6b750e1 8118
8a0d8a5c 8119
e552509b 8120# Check whether --with-gmp-lib was given.
81ecdfbb
RW
8121if test "${with_gmp_lib+set}" = set; then :
8122 withval=$with_gmp_lib;
8123fi
8a0d8a5c
PB
8124
8125
4b1cb4fe 8126
11b04d1f
DD
8127if test "x$with_gmp" != x; then
8128 gmplibs="-L$with_gmp/lib $gmplibs"
8129 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 8130fi
8a0d8a5c
PB
8131if test "x$with_gmp_include" != x; then
8132 gmpinc="-I$with_gmp_include $gmpinc"
8133fi
8134if test "x$with_gmp_lib" != x; then
8135 gmplibs="-L$with_gmp_lib $gmplibs"
8136fi
4b900473 8137if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 8138 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 8139 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 8140 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 8141 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 8142 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
8143 # Do not test the gmp version. Assume that it is sufficient, since
8144 # it is in the source tree, and the library has not been built yet
8145 # but it would be included on the link line in the version check below
8146 # hence making the test fail.
8147 have_gmp=yes
8148fi
4b1cb4fe 8149
99118062 8150if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
4b900473
PB
8151 have_gmp=yes
8152 saved_CFLAGS="$CFLAGS"
8153 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
8154 # Check for the recommended and required versions of GMP.
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8156$as_echo_n "checking for the correct version of gmp.h... " >&6; }
af019bfd 8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
8158/* end confdefs.h. */
8159#include "gmp.h"
8160int
8161main ()
8162{
8163
8164 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8165 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 8166 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
8167 choke me
8168 #endif
8169
8170 ;
8171 return 0;
8172}
8173_ACEOF
8174if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 8175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 8176/* end confdefs.h. */
a6b5846e 8177#include <gmp.h>
c6b750e1
DJ
8178int
8179main ()
8180{
4b1cb4fe 8181
a6b5846e
KG
8182 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8183 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8184 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
8185 choke me
8186 #endif
c6b750e1
DJ
8187
8188 ;
8189 return 0;
8190}
8191_ACEOF
81ecdfbb
RW
8192if ac_fn_c_try_compile "$LINENO"; then :
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8194$as_echo "yes" >&6; }
a6b5846e
KG
8195else
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8197$as_echo "buggy but acceptable" >&6; }
8198fi
8199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 8200else
81ecdfbb
RW
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202$as_echo "no" >&6; }; have_gmp=no
c6b750e1 8203fi
81ecdfbb 8204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 8205
e8a5fa9c 8206 # If we have GMP, check the MPFR version.
4b900473 8207 if test x"$have_gmp" = xyes; then
a6b5846e
KG
8208 # Check for the recommended and required versions of MPFR.
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8210$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 8211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 8212/* end confdefs.h. */
9b134994 8213#include <gmp.h>
4b900473 8214 #include <mpfr.h>
c6b750e1
DJ
8215int
8216main ()
8217{
9b134994 8218
228cf97d 8219 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
4b900473
PB
8220 choke me
8221 #endif
c6b750e1
DJ
8222
8223 ;
8224 return 0;
8225}
8226_ACEOF
81ecdfbb
RW
8227if ac_fn_c_try_compile "$LINENO"; then :
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 8229/* end confdefs.h. */
4b1cb4fe 8230#include <gmp.h>
4b900473 8231 #include <mpfr.h>
c6b750e1
DJ
8232int
8233main ()
8234{
9dbaa842 8235
228cf97d 8236 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
4b900473
PB
8237 choke me
8238 #endif
e8a5fa9c
RW
8239
8240 ;
8241 return 0;
8242}
8243_ACEOF
81ecdfbb
RW
8244if ac_fn_c_try_compile "$LINENO"; then :
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8246$as_echo "yes" >&6; }
e8a5fa9c 8247else
81ecdfbb
RW
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8249$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 8250fi
81ecdfbb 8251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 8252else
81ecdfbb
RW
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8254$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 8255fi
81ecdfbb 8256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
8257 fi
8258
8259 # Check for the MPC header version.
99118062 8260 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
a6b5846e 8261 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8263$as_echo_n "checking for the correct version of mpc.h... " >&6; }
8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
8265/* end confdefs.h. */
8266#include <mpc.h>
8267int
8268main ()
8269{
8270
a6b5846e
KG
8271 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8272 choke me
8273 #endif
8274
8275 ;
8276 return 0;
8277}
8278_ACEOF
8279if ac_fn_c_try_compile "$LINENO"; then :
8280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281/* end confdefs.h. */
8282#include <mpc.h>
8283int
8284main ()
8285{
8286
8287 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
8288 choke me
8289 #endif
8290
8291 ;
8292 return 0;
8293}
8294_ACEOF
81ecdfbb
RW
8295if ac_fn_c_try_compile "$LINENO"; then :
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 8297$as_echo "yes" >&6; }
a6b5846e
KG
8298else
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8300$as_echo "buggy but acceptable" >&6; }
8301fi
8302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 8303else
81ecdfbb 8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 8305$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 8306fi
81ecdfbb 8307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
8308 fi
8309
8310 # Now check the MPFR library.
8311 if test x"$have_gmp" = xyes; then
8312 saved_LIBS="$LIBS"
8313 LIBS="$LIBS $gmplibs"
99118062
AP
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8315$as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
81ecdfbb 8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 8317/* end confdefs.h. */
99118062 8318#include <mpfr.h>
e8a5fa9c
RW
8319int
8320main ()
8321{
8322
8323 mpfr_t n;
8324 mpfr_t x;
8325 int t;
8326 mpfr_init (n);
8327 mpfr_init (x);
228cf97d
AM
8328 mpfr_atan2 (n, n, x, MPFR_RNDN);
8329 mpfr_erfc (n, x, MPFR_RNDN);
8330 mpfr_subnormalize (x, t, MPFR_RNDN);
d9b76ff9
KG
8331 mpfr_clear(n);
8332 mpfr_clear(x);
99118062
AP
8333
8334 ;
8335 return 0;
8336}
8337_ACEOF
8338if ac_fn_c_try_link "$LINENO"; then :
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8340$as_echo "yes" >&6; }
8341else
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343$as_echo "no" >&6; }; have_gmp=no
8344fi
8345rm -f core conftest.err conftest.$ac_objext \
8346 conftest$ac_exeext conftest.$ac_ext
8347 LIBS="$saved_LIBS"
8348 fi
8349
8350 # Now check the MPC library
8351 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
8352 saved_LIBS="$LIBS"
8353 LIBS="$LIBS $gmplibs"
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8355$as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357/* end confdefs.h. */
8358#include <mpc.h>
8359int
8360main ()
8361{
8362
8363 mpc_t c;
d9b76ff9
KG
8364 mpc_init2 (c, 53);
8365 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8366 mpc_cosh (c, c, MPC_RNDNN);
8367 mpc_pow (c, c, c, MPC_RNDNN);
8368 mpc_acosh (c, c, MPC_RNDNN);
8369 mpc_clear (c);
c6b750e1
DJ
8370
8371 ;
8372 return 0;
8373}
8374_ACEOF
81ecdfbb
RW
8375if ac_fn_c_try_link "$LINENO"; then :
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8377$as_echo "yes" >&6; }
c6b750e1 8378else
81ecdfbb
RW
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380$as_echo "no" >&6; }; have_gmp=no
c6b750e1 8381fi
81ecdfbb
RW
8382rm -f core conftest.err conftest.$ac_objext \
8383 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
8384 LIBS="$saved_LIBS"
8385 fi
8386
4b900473 8387 CFLAGS="$saved_CFLAGS"
4b1cb4fe 8388
a6b5846e
KG
8389# The library versions listed in the error message below should match
8390# the HARD-minimums enforced above.
4b900473 8391 if test x$have_gmp != xyes; then
99118062
AP
8392 if test -d ${srcdir}/gcc ; then
8393 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
d9b76ff9
KG
8394Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8395their locations. Source code for these libraries can be found at
8396their respective hosting sites as well as at
228cf97d 8397https://gcc.gnu.org/pub/gcc/infrastructure/. See also
d9b76ff9
KG
8398http://gcc.gnu.org/install/prerequisites.html for additional info. If
8399you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8400make sure that you have installed both the libraries and the header
8401files. They may be located in separate packages." "$LINENO" 5
99118062
AP
8402 else
8403 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8404Try the --with-gmp and/or --with-mpfr options to specify
8405their locations. If you obtained GMP and/or MPFR from a vendor
8406distribution package, make sure that you have installed both the libraries
8407and the header files. They may be located in separate packages." "$LINENO" 5
8408 fi
4b900473 8409 fi
9dbaa842
DD
8410fi
8411
e8a5fa9c
RW
8412# Flags needed for both GMP, MPFR and/or MPC.
8413
8414
8415
4b1cb4fe
DD
8416
8417
8418
7ec59b9e 8419
b3676d82 8420# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 8421
b3676d82
EB
8422# Check whether --with-stage1-libs was given.
8423if test "${with_stage1_libs+set}" = set; then :
8424 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8425 stage1_libs=
e8a5fa9c 8426 else
b3676d82 8427 stage1_libs=$withval
e8a5fa9c
RW
8428 fi
8429else
68996839 8430 stage1_libs=
81ecdfbb
RW
8431fi
8432
e8a5fa9c
RW
8433
8434
c1a5d03a
TT
8435# Whether or not to use -static-libstdc++ and -static-libgcc. The
8436# default is yes if gcc is being built; no otherwise. The reason for
8437# this default is that gdb is sometimes linked against GNU Source
8438# Highlight, which is a shared library that uses C++ exceptions. In
8439# this case, -static-libstdc++ will cause crashes.
8440
8441# Check whether --with-static-standard-libraries was given.
8442if test "${with_static_standard_libraries+set}" = set; then :
8443 withval=$with_static_standard_libraries;
8444else
8445 with_static_standard_libraries=auto
8446fi
8447
8448if test "$with_static_standard_libraries" = auto; then
8449 with_static_standard_libraries=$have_compiler
8450fi
8451
b3676d82 8452# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 8453
b3676d82
EB
8454# Check whether --with-stage1-ldflags was given.
8455if test "${with_stage1_ldflags+set}" = set; then :
8456 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8457 stage1_ldflags=
e8a5fa9c 8458 else
b3676d82 8459 stage1_ldflags=$withval
e8a5fa9c
RW
8460 fi
8461else
b3676d82
EB
8462 stage1_ldflags=
8463 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8464 # if supported. But if the user explicitly specified the libraries to use,
8465 # trust that they are doing what they want.
c1a5d03a
TT
8466 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8467 -a "$have_static_libs" = yes; then
b3676d82
EB
8468 stage1_ldflags="-static-libstdc++ -static-libgcc"
8469 fi
81ecdfbb
RW
8470fi
8471
e8a5fa9c
RW
8472
8473
68996839 8474# Libraries to use for stage2 and later builds.
e8a5fa9c 8475
81ecdfbb
RW
8476# Check whether --with-boot-libs was given.
8477if test "${with_boot_libs+set}" = set; then :
8478 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
8479 poststage1_libs=
8480 else
8481 poststage1_libs=$withval
8482 fi
8483else
68996839 8484 poststage1_libs=
81ecdfbb
RW
8485fi
8486
e8a5fa9c
RW
8487
8488
143754cd
NC
8489# Linker flags to use for stage2 and later builds.
8490
8491# Check whether --with-boot-ldflags was given.
8492if test "${with_boot_ldflags+set}" = set; then :
8493 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8494 poststage1_ldflags=
8495 else
8496 poststage1_ldflags=$withval
8497 fi
8498else
8499 poststage1_ldflags=
4f11b223
ILT
8500 # In stages 2 and 3, default to linking libstdc++ and libgcc
8501 # statically. But if the user explicitly specified the libraries to
8502 # use, trust that they are doing what they want.
8503 if test "$poststage1_libs" = ""; then
143754cd
NC
8504 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8505 fi
8506fi
8507
2967219a
NC
8508case $target in
8509 *-darwin2* | *-darwin1[56789]*)
8510 # For these versions, we default to using embedded rpaths.
8511 if test "x$enable_darwin_at_rpath" != "xno"; then
8512 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
8513 fi
8514 ;;
8515 *-darwin*)
8516 # For these versions, we only use embedded rpaths on demand.
8517 if test "x$enable_darwin_at_rpath" = "xyes"; then
8518 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
8519 fi
8520 ;;
8521esac
143754cd
NC
8522
8523
4849dfd8 8524# GCC GRAPHITE dependency isl.
1b6c0831 8525# Basic setup is inlined here, actual checks are in config/isl.m4
e28c595f
JM
8526
8527
7ec59b9e
L
8528# Check whether --with-isl was given.
8529if test "${with_isl+set}" = set; then :
8530 withval=$with_isl;
81ecdfbb 8531fi
e28c595f 8532
e28c595f 8533
1b6c0831 8534# Treat --without-isl as a request to disable
8e71395b 8535# GRAPHITE support and skip all following checks.
1b6c0831 8536if test "x$with_isl" != "xno"; then
4849dfd8 8537 # Check for isl
8e71395b
L
8538
8539
7ec59b9e
L
8540# Check whether --with-isl-include was given.
8541if test "${with_isl_include+set}" = set; then :
8542 withval=$with_isl_include;
81ecdfbb
RW
8543fi
8544
e28c595f 8545
7ec59b9e
L
8546# Check whether --with-isl-lib was given.
8547if test "${with_isl_lib+set}" = set; then :
8548 withval=$with_isl_lib;
81ecdfbb 8549fi
e28c595f 8550
e28c595f 8551
7ec59b9e
L
8552 # Check whether --enable-isl-version-check was given.
8553if test "${enable_isl_version_check+set}" = set; then :
8554 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8555else
8556 ENABLE_ISL_CHECK=yes
b123da99
SP
8557fi
8558
8559
7ec59b9e
L
8560 # Initialize isllibs and islinc.
8561 case $with_isl in
8562 no)
8563 isllibs=
8564 islinc=
8565 ;;
8566 "" | yes)
8567 ;;
8568 *)
8569 isllibs="-L$with_isl/lib"
8570 islinc="-I$with_isl/include"
8571 ;;
8572 esac
8573 if test "x${with_isl_include}" != x ; then
8574 islinc="-I$with_isl_include"
8575 fi
8576 if test "x${with_isl_lib}" != x; then
8577 isllibs="-L$with_isl_lib"
8578 fi
8579 if test "x${islinc}" = x && test "x${isllibs}" = x \
8580 && test -d ${srcdir}/isl; then
8581 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8582 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8583 ENABLE_ISL_CHECK=no
4849dfd8
NC
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8585$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
7ec59b9e 8586 fi
b123da99 8587
1b6c0831 8588 isllibs="${isllibs} -lisl"
b123da99 8589
e28c595f 8590
b3fc79f8
JBG
8591
8592 if test "${ENABLE_ISL_CHECK}" = yes ; then
8593 _isl_saved_CFLAGS=$CFLAGS
8594 _isl_saved_LDFLAGS=$LDFLAGS
8595 _isl_saved_LIBS=$LIBS
8596
8597 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
4849dfd8
NC
8598 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8599 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
b3fc79f8 8600
bf41f30d
NC
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8602$as_echo_n "checking for isl 0.15 or later... " >&6; }
1b6c0831 8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3fc79f8 8604/* end confdefs.h. */
bf41f30d 8605#include <isl/schedule.h>
b3fc79f8
JBG
8606int
8607main ()
8608{
bf41f30d 8609isl_options_set_schedule_serialize_sccs (NULL, 0);
b3fc79f8
JBG
8610 ;
8611 return 0;
8612}
8613_ACEOF
1b6c0831 8614if ac_fn_c_try_link "$LINENO"; then :
b3fc79f8
JBG
8615 gcc_cv_isl=yes
8616else
8617 gcc_cv_isl=no
8618fi
1b6c0831
L
8619rm -f core conftest.err conftest.$ac_objext \
8620 conftest$ac_exeext conftest.$ac_ext
b3fc79f8
JBG
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8622$as_echo "$gcc_cv_isl" >&6; }
8623
4849dfd8 8624 if test "${gcc_cv_isl}" = no ; then
bf41f30d
NC
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8626$as_echo "required isl version is 0.15 or later" >&6; }
4849dfd8
NC
8627 fi
8628
b3fc79f8
JBG
8629 CFLAGS=$_isl_saved_CFLAGS
8630 LDFLAGS=$_isl_saved_LDFLAGS
8631 LIBS=$_isl_saved_LIBS
8632 fi
8633
8634
e28c595f 8635
e28c595f 8636
7ec59b9e
L
8637
8638
7ec59b9e
L
8639 if test "x${with_isl}" = xno; then
8640 graphite_requested=no
8641 elif test "x${with_isl}" != x \
8642 || test "x${with_isl_include}" != x \
8643 || test "x${with_isl_lib}" != x ; then
8644 graphite_requested=yes
8645 else
8646 graphite_requested=no
b123da99 8647 fi
e28c595f 8648
e28c595f
JM
8649
8650
7ec59b9e
L
8651 if test "${gcc_cv_isl}" = no ; then
8652 isllibs=
8653 islinc=
8654 fi
e28c595f 8655
7ec59b9e
L
8656 if test "${graphite_requested}" = yes \
8657 && test "x${isllibs}" = x \
8658 && test "x${islinc}" = x ; then
e28c595f 8659
d0ac1c44 8660 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
7ec59b9e 8661 fi
e552509b 8662
e28c595f 8663
e552509b
ILT
8664fi
8665
4849dfd8 8666# If the isl check failed, disable builds of in-tree variant of isl
8e71395b 8667if test "x$with_isl" = xno ||
8e71395b 8668 test "x$gcc_cv_isl" = xno; then
1b6c0831 8669 noconfigdirs="$noconfigdirs isl"
8e71395b 8670 islinc=
7ec59b9e
L
8671fi
8672
8e71395b
L
8673
8674
8675
700d40ca
ILT
8676# Check for LTO support.
8677# Check whether --enable-lto was given.
8678if test "${enable_lto+set}" = set; then :
8679 enableval=$enable_lto; enable_lto=$enableval
8680else
8681 enable_lto=yes; default_enable_lto=yes
8682fi
8683
8684
143754cd 8685
e49e5c92
DK
8686
8687
8688target_elf=no
8689case $target in
8690 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 8691 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
1b6c0831
L
8692 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8693 nvptx-*-none)
e49e5c92
DK
8694 target_elf=no
8695 ;;
8696 *)
8697 target_elf=yes
8698 ;;
8699esac
8700
8701if test $target_elf = yes; then :
74cea91b
DK
8702 # ELF platforms build the lto-plugin always.
8703 build_lto_plugin=yes
e49e5c92 8704
e49e5c92
DK
8705else
8706 if test x"$default_enable_lto" = x"yes" ; then
29821356 8707 case $target in
bf41f30d 8708 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
74cea91b 8709 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
8710 *) enable_lto=no ;;
8711 esac
e49e5c92 8712 else
29821356
RW
8713 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8714 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
8715 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8716 # warn during gcc/ subconfigure; unless you're bootstrapping with
8717 # -flto it won't be needed until after installation anyway.
8718 case $target in
52cf9762 8719 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
e49e5c92 8720 *) if test x"$enable_lto" = x"yes"; then
d0ac1c44 8721 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
e49e5c92
DK
8722 fi
8723 ;;
8724 esac
8725 fi
a8eb3f0a 8726 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 8727 # Build it unless LTO was explicitly disabled.
a8eb3f0a 8728 case $target in
74cea91b 8729 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
8730 *) ;;
8731 esac
74cea91b 8732
e49e5c92
DK
8733fi
8734
700d40ca 8735
1b6c0831
L
8736# Check whether --enable-linker-plugin-configure-flags was given.
8737if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8738 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8739else
8740 extra_linker_plugin_configure_flags=
8741fi
8742
8743
8744# Check whether --enable-linker-plugin-flags was given.
8745if test "${enable_linker_plugin_flags+set}" = set; then :
8746 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8747else
8748 extra_linker_plugin_flags=
8749fi
8750
8751
8752
6a6859cb
AM
8753# Handle --enable-host-pie
8754# If host PIE executables are the default (or must be forced on) for some host,
8755# we must pass that configuration to the gcc directory.
8756gcc_host_pie=
8757# Check whether --enable-host-pie was given.
8758if test "${enable_host_pie+set}" = set; then :
8759 enableval=$enable_host_pie; host_pie=$enableval
8760 case $host in
8761 *-*-darwin2*)
8762 if test x$host_pie != xyes ; then
8763 # for Darwin20+ this is required.
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
8765$as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
8766 host_pie=yes
8767 gcc_host_pie=--enable-host-pie
8768 fi ;;
8769 *) ;;
8770 esac
8771else
8772 case $host in
8773 *-*-darwin2*)
8774 # Default to PIE (mandatory for aarch64).
8775 host_pie=yes
8776 gcc_host_pie=--enable-host-pie
8777 ;;
8778 *) host_pie=no ;;
8779 esac
8780fi
8781
8782
8783
8784
8785
bf41f30d
NC
8786# Enable --enable-host-shared.
8787# Checked early to determine whether jit is an 'all' language
8788# Check whether --enable-host-shared was given.
8789if test "${enable_host_shared+set}" = set; then :
8790 enableval=$enable_host_shared; host_shared=$enableval
228cf97d
AM
8791 case $host in
8792 x86_64-*-darwin* | aarch64-*-darwin*)
8793 if test x$host_shared != xyes ; then
8794 # PIC is the default, and actually cannot be switched off.
6a6859cb
AM
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
8796$as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
8797 host_shared=yes
8798 fi ;;
8799 *-*-darwin*)
8800 if test x$host_pie = xyes -a x$host_shared != xyes ; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
8802$as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
228cf97d
AM
8803 host_shared=yes
8804 fi ;;
8805 *) ;;
8806 esac
bf41f30d 8807else
228cf97d 8808 case $host in
6a6859cb 8809 # 64B x86_64 and Aarch64 Darwin default to PIC.
228cf97d 8810 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
6a6859cb
AM
8811 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
8812 *-*-darwin*) host_shared=$host_pie ;;
8813 *) host_shared=no;;
228cf97d 8814 esac
bf41f30d
NC
8815fi
8816
8817
e28c595f 8818
6a6859cb
AM
8819
8820if test x$host_shared = xyes; then
8821 case $host in
8822 *-*-darwin*)
8823 # Since host shared is the default for 64b Darwin, and also enabled for
8824 # host_pie, ensure that we present the PIE flag when host_pie is active.
8825 if test x$host_pie = xyes; then
8826 PICFLAG=-fPIE
8827 fi
8828 ;;
8829 *)
8830 PICFLAG=-fPIC
8831 ;;
8832 esac
8833elif test x$host_pie = xyes; then
8834 PICFLAG=-fPIE
8835else
8836 PICFLAG=
8837fi
8838
8839
8840
8841# If we are building PIC/PIE host executables, and we are building dependent
8842# libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8843# code.
8844host_libs_picflag=
8845if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
8846host_libs_picflag='--with-pic'
8847fi
8848
8849
7ec59b9e 8850# By default, C and C++ are the only stage 1 languages.
9b134994 8851stage1_languages=,c,
1d39f329 8852
e8a5fa9c 8853# Target libraries that we bootstrap.
2aa2364a 8854bootstrap_target_libs=,target-libgcc,
e8a5fa9c 8855
9e07f89d
NN
8856# Figure out what language subdirectories are present.
8857# Look if the user specified --enable-languages="..."; if not, use
8858# the environment variable $LANGUAGES if defined. $LANGUAGES might
8859# go away some day.
8860# NB: embedded tabs in this IF block -- do not untabify
8861if test -d ${srcdir}/gcc; then
8862 if test x"${enable_languages+set}" != xset; then
8863 if test x"${LANGUAGES+set}" = xset; then
8864 enable_languages="${LANGUAGES}"
136bb21f 8865 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9e07f89d 8866 else
bf41f30d 8867 enable_languages=default
9e07f89d
NN
8868 fi
8869 else
8870 if test x"${enable_languages}" = x ||
8871 test x"${enable_languages}" = xyes;
8872 then
136bb21f 8873 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9e07f89d
NN
8874 exit 1
8875 fi
8876 fi
8877 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8878
096f7d00
DE
8879 # 'f95' is the old name for the 'fortran' language. We issue a warning
8880 # and make the substitution.
8881 case ,${enable_languages}, in
8882 *,f95,*)
136bb21f 8883 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
096f7d00
DE
8884 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8885 ;;
8886 esac
8887
7ec59b9e
L
8888 # If bootstrapping, C++ must be enabled.
8889 case ",$enable_languages,:$enable_bootstrap" in
8890 *,c++,*:*) ;;
8891 *:yes)
ffdd6afc
ILT
8892 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8893 enable_languages="${enable_languages},c++"
8894 else
d0ac1c44 8895 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
8896 fi
8897 ;;
8898 esac
8899
9e07f89d
NN
8900 # First scan to see if an enabled language requires some other language.
8901 # We assume that a given config-lang.in will list all the language
8902 # front ends it requires, even if some are required indirectly.
8903 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8904 case ${lang_frag} in
8905 ..) ;;
8906 # The odd quoting in the next line works around
8907 # an apparent bug in bash 1.12 on linux.
8908 ${srcdir}/gcc/[*]/config-lang.in) ;;
8909 *)
e552509b
ILT
8910 # From the config-lang.in, get $language, $lang_requires, and
8911 # $lang_requires_boot_languages.
9e07f89d
NN
8912 language=
8913 lang_requires=
e552509b 8914 lang_requires_boot_languages=
bf41f30d
NC
8915 # set srcdir during sourcing lang_frag to the gcc dir.
8916 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8917 # polutes this shell
8918 saved_srcdir=${srcdir}
8919 srcdir=${srcdir}/gcc . ${lang_frag}
8920 srcdir=${saved_srcdir}
e552509b 8921 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
8922 case ,${enable_languages}, in
8923 *,$other,*) ;;
bf41f30d 8924 *,default,*) ;;
9e07f89d
NN
8925 *,all,*) ;;
8926 *,$language,*)
8927 echo " \`$other' language required by \`$language'; enabling" 1>&2
8928 enable_languages="${enable_languages},${other}"
8929 ;;
8930 esac
8931 done
e552509b
ILT
8932 for other in ${lang_requires_boot_languages} ; do
8933 if test "$other" != "c"; then
8934 case ,${enable_stage1_languages}, in
8935 *,$other,*) ;;
bf41f30d 8936 *,default,*) ;;
e552509b
ILT
8937 *,all,*) ;;
8938 *)
8939 case ,${enable_languages}, in
8940 *,$language,*)
8941 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8942 enable_stage1_languages="$enable_stage1_languages,${other}"
8943 ;;
8944 esac
8945 ;;
8946 esac
8947 fi
8948 done
9e07f89d
NN
8949 ;;
8950 esac
8951 done
8952
9b134994 8953 new_enable_languages=,c,
700d40ca
ILT
8954
8955 # If LTO is enabled, add the LTO front end.
700d40ca 8956 if test "$enable_lto" = "yes" ; then
6811fb56
RW
8957 case ,${enable_languages}, in
8958 *,lto,*) ;;
8959 *) enable_languages="${enable_languages},lto" ;;
8960 esac
a8eb3f0a 8961 if test "${build_lto_plugin}" = "yes" ; then
700d40ca 8962 configdirs="$configdirs lto-plugin"
700d40ca
ILT
8963 fi
8964 fi
8965
1b6c0831
L
8966 # If we're building an offloading compiler, add the LTO front end.
8967 if test x"$enable_as_accelerator_for" != x ; then
8968 case ,${enable_languages}, in
8969 *,lto,*) ;;
8970 *) enable_languages="${enable_languages},lto" ;;
8971 esac
8972 fi
700d40ca 8973
bf41f30d 8974 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9b134994 8975 potential_languages=,c,
9e07f89d 8976
9e1a94f4
ILT
8977 enabled_target_libs=
8978 disabled_target_libs=
8979
9e07f89d
NN
8980 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8981 case ${lang_frag} in
8982 ..) ;;
8983 # The odd quoting in the next line works around
8984 # an apparent bug in bash 1.12 on linux.
8985 ${srcdir}/gcc/[*]/config-lang.in) ;;
8986 *)
c6b750e1 8987 # From the config-lang.in, get $language, $target_libs,
1d39f329 8988 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
8989 language=
8990 target_libs=
8991 lang_dirs=
64ce424c 8992 subdir_requires=
9b134994
PB
8993 boot_language=no
8994 build_by_default=yes
bf41f30d
NC
8995 # set srcdir during sourcing. See above about save & restore
8996 saved_srcdir=${srcdir}
8997 srcdir=${srcdir}/gcc . ${lang_frag}
8998 srcdir=${saved_srcdir}
9b134994
PB
8999 if test x${language} = x; then
9000 echo "${lang_frag} doesn't set \$language." 1>&2
9001 exit 1
9002 fi
9003
ffdd6afc 9004 if test "$language" = "c++"; then
7ec59b9e 9005 boot_language=yes
e8a5fa9c
RW
9006 fi
9007
8e71395b 9008 add_this_lang=no
bf41f30d
NC
9009 # C is always enabled, so no need to add it again
9010 if test "$language" != "c"; then
9011 case ,${enable_languages}, in
9012 *,${language},*)
9013 # Language was explicitly selected; include it
7ec59b9e 9014 add_this_lang=yes
bf41f30d
NC
9015 ;;
9016 *,all,*)
9017 # All languages are enabled
9018 add_this_lang=all
9019 ;;
9020 *,default,*)
9021 # 'default' was selected, select it if it is a default language
8e71395b 9022 add_this_lang=${build_by_default}
bf41f30d
NC
9023 ;;
9024 esac
9025 fi
4b1cb4fe 9026
64ce424c 9027 # Disable languages that need other directories if these aren't available.
1f3f1bbf 9028 for i in $subdir_requires; do
3d3adb43 9029 test -f "$srcdir/gcc/$i/config-lang.in" && continue
bf41f30d
NC
9030 case ${add_this_lang} in
9031 yes)
64ce424c 9032 # Specifically requested language; tell them.
d0ac1c44 9033 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c 9034 ;;
bf41f30d
NC
9035 all)
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
9037$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
9038 add_this_lang=unsupported
9039 ;;
64ce424c
PB
9040 *)
9041 # Silently disable.
9b134994 9042 add_this_lang=unsupported
64ce424c
PB
9043 ;;
9044 esac
9045 done
9046
9b134994 9047 # Disable Ada if no preexisting GNAT is available.
bf41f30d
NC
9048 case ${add_this_lang}:${language}:${have_gnat} in
9049 yes:ada:no)
9b134994 9050 # Specifically requested language; tell them.
d0ac1c44 9051 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9b134994 9052 ;;
bf41f30d
NC
9053 all:ada:no)
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
9055$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
9056 add_this_lang=unsupported
9057 ;;
9b134994
PB
9058 *:ada:no)
9059 # Silently disable.
9060 add_this_lang=unsupported
9061 ;;
9062 esac
9063
228cf97d
AM
9064 # Disable D if no preexisting GDC is available.
9065 case ${add_this_lang}:${language}:${have_gdc} in
9066 yes:d:no)
9067 # Specifically requested language; tell them.
9068 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
9069 ;;
9070 all:d:no)
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
9072$as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
9073 add_this_lang=unsupported
9074 ;;
9075 *:d:no)
9076 # Silently disable.
9077 add_this_lang=unsupported
9078 ;;
9079 esac
9080
bf41f30d 9081 # Disable jit if -enable-host-shared not specified
228cf97d
AM
9082 # but not if building for Mingw. All code in Windows
9083 # is position independent code (PIC).
9084 case $target in
9085 *mingw*) ;;
9086 *)
9087 case ${add_this_lang}:${language}:${host_shared} in
9088 yes:jit:no)
9089 # PR jit/64780: explicitly specify --enable-host-shared
d0ac1c44 9090 as_fn_error $? "
bf41f30d
NC
9091Enabling language \"jit\" requires --enable-host-shared.
9092
9093--enable-host-shared typically slows the rest of the compiler down by
9094a few %, so you must explicitly enable it.
9095
9096If you want to build both the jit and the regular compiler, it is often
9097best to do this via two separate configure/builds, in separate
9098directories, to avoid imposing the performance cost of
9099--enable-host-shared on the regular compiler." "$LINENO" 5
228cf97d
AM
9100 ;;
9101 all:jit:no)
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
bf41f30d 9103$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
228cf97d
AM
9104 add_this_lang=unsupported
9105 ;;
9106 *:jit:no)
9107 # Silently disable.
9108 add_this_lang=unsupported
9109 ;;
9110 esac
9111 ;;
9112 esac
bf41f30d
NC
9113
9114 # Disable a language that is unsupported by the target.
9115 case "${add_this_lang}: $unsupported_languages " in
9116 no:*) ;;
9117 unsupported:*) ;;
9118 *:*" $language "*)
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9120$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9b134994 9121 add_this_lang=unsupported
59f7ec45
HPN
9122 ;;
9123 esac
9124
4b1cb4fe 9125 case $add_this_lang in
9b134994 9126 unsupported)
9e07f89d 9127 # Remove language-dependent dirs.
9e1a94f4
ILT
9128 disabled_target_libs="$disabled_target_libs $target_libs"
9129 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 9130 ;;
9b134994
PB
9131 no)
9132 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
9133 disabled_target_libs="$disabled_target_libs $target_libs"
9134 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
9135 potential_languages="${potential_languages}${language},"
9136 ;;
bf41f30d 9137 all|yes)
9b134994
PB
9138 new_enable_languages="${new_enable_languages}${language},"
9139 potential_languages="${potential_languages}${language},"
1d39f329 9140 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 9141 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
9142 case "${boot_language}:,$enable_stage1_languages," in
9143 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 9144 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
9145 case ",$stage1_languages," in
9146 *,$language,* | ,yes, | ,all,) ;;
9147 *) stage1_languages="${stage1_languages}${language}," ;;
9148 esac
e8a5fa9c 9149 # We need to bootstrap any supporting libraries.
228cf97d 9150 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
1d39f329
NN
9151 ;;
9152 esac
9153 ;;
9e07f89d
NN
9154 esac
9155 ;;
9156 esac
9157 done
9158
9e1a94f4
ILT
9159 # Add target libraries which are only needed for disabled languages
9160 # to noconfigdirs.
9161 if test -n "$disabled_target_libs"; then
9162 for dir in $disabled_target_libs; do
9163 case " $enabled_target_libs " in
9164 *" ${dir} "*) ;;
9165 *) noconfigdirs="$noconfigdirs $dir" ;;
9166 esac
9167 done
9168 fi
9169
81ecdfbb
RW
9170 # Check whether --enable-stage1-languages was given.
9171if test "${enable_stage1_languages+set}" = set; then :
9172 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
9173 ,no,|,,)
9174 # Set it to something that will have no effect in the loop below
9175 enable_stage1_languages=c ;;
9176 ,yes,)
9177 enable_stage1_languages=`echo $new_enable_languages | \
9178 sed -e "s/^,//" -e "s/,$//" ` ;;
9179 *,all,*)
9180 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9181 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9182 esac
9183
9184 # Add "good" languages from enable_stage1_languages to stage1_languages,
9185 # while "bad" languages go in missing_languages. Leave no duplicates.
9186 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9187 case $potential_languages in
9188 *,$i,*)
9189 case $stage1_languages in
9190 *,$i,*) ;;
9191 *) stage1_languages="$stage1_languages$i," ;;
9192 esac ;;
9193 *)
9194 case $missing_languages in
9195 *,$i,*) ;;
9196 *) missing_languages="$missing_languages$i," ;;
9197 esac ;;
9198 esac
9199 done
81ecdfbb
RW
9200fi
9201
9b134994
PB
9202
9203 # Remove leading/trailing commas that were added for simplicity
9204 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 9205 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
9206 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9207 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9208
9e07f89d 9209 if test "x$missing_languages" != x; then
d0ac1c44 9210 as_fn_error $? "
27258dd4 9211The following requested languages could not be built: ${missing_languages}
81ecdfbb 9212Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 9213 fi
9e07f89d
NN
9214 if test "x$new_enable_languages" != "x$enable_languages"; then
9215 echo The following languages will be built: ${new_enable_languages}
9b134994 9216 enable_languages="$new_enable_languages"
9e07f89d 9217 fi
9b134994 9218
c6b750e1 9219
81ec575a 9220 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
9221fi
9222
a6df5a19
PB
9223# Handle --disable-<component> generically.
9224for dir in $configdirs $build_configdirs $target_configdirs ; do
9225 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
9226 varname=`echo $dirname | sed -e s/+/_/g`
9227 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
9228 noconfigdirs="$noconfigdirs $dir"
9229 fi
9230done
9231
4f0ef2d8 9232# Check for Boehm's garbage collector
81ecdfbb
RW
9233# Check whether --enable-objc-gc was given.
9234if test "${enable_objc_gc+set}" = set; then :
05a13254 9235 enableval=$enable_objc_gc;
81ecdfbb
RW
9236fi
9237
4f0ef2d8 9238
05a13254
NC
9239# Check whether --with-target-bdw-gc was given.
9240if test "${with_target_bdw_gc+set}" = set; then :
9241 withval=$with_target_bdw_gc;
9242fi
9243
9244
9245# Check whether --with-target-bdw-gc-include was given.
9246if test "${with_target_bdw_gc_include+set}" = set; then :
9247 withval=$with_target_bdw_gc_include;
9248fi
9249
9250
9251# Check whether --with-target-bdw-gc-lib was given.
9252if test "${with_target_bdw_gc_lib+set}" = set; then :
9253 withval=$with_target_bdw_gc_lib;
9254fi
9255
9256
9257case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9259$as_echo_n "checking for bdw garbage collector... " >&6; }
9260 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9262$as_echo "using bdw-gc in default locations" >&6; }
9263 else
9264 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
d0ac1c44 9265 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
05a13254 9266 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
d0ac1c44 9267 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
05a13254
NC
9268 else
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9270$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
d42c4017 9271 fi
05a13254 9272 fi
4f0ef2d8
CD
9273esac
9274
6a6859cb 9275# Disable libitm, libsanitizer, libvtv if we're not building C++
7ec59b9e 9276case ,${enable_languages}, in
1b6c0831 9277 *,c++,*)
bf41f30d 9278 # Disable libitm, libsanitizer if we're not building libstdc++
1b6c0831
L
9279 case "${noconfigdirs}" in
9280 *target-libstdc++-v3*)
bf41f30d 9281 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1b6c0831
L
9282 ;;
9283 *) ;;
9284 esac
9285 ;;
7ec59b9e 9286 *)
6a6859cb 9287 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
9288 ;;
9289esac
9290
2967219a
NC
9291case ,${enable_languages}, in
9292 *,rust,*)
9293 case " ${noconfigdirs} " in
9294 *\ target-libstdc++-v3\ *)
9295 # Disable target libgrust if we're not building target libstdc++.
9296 noconfigdirs="$noconfigdirs target-libgrust"
9297 ;;
9298 esac
9299 ;;
9300esac
9301
d33228c9
AB
9302# If gcc/ is not in the source tree then we'll not be building a
9303# target compiler, assume in that case we don't want to build any
9304# target libraries or tools.
9305#
9306# This was added primarily for the benefit for binutils-gdb who reuse
9307# this configure script, but don't always have target tools available.
9308if test ! -d ${srcdir}/gcc; then
9309 skipdirs="${skipdirs} ${target_configdirs}"
9310fi
9311
caeba88f
AL
9312# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9313# $build_configdirs and $target_configdirs.
9e07f89d
NN
9314# If we have the source for $noconfigdirs entries, add them to $notsupp.
9315
9316notsupp=""
9317for dir in . $skipdirs $noconfigdirs ; do
caeba88f 9318 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
9319 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9320 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9321 if test -r $srcdir/$dirname/configure ; then
9322 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9323 true
9324 else
9325 notsupp="$notsupp $dir"
9326 fi
9327 fi
9328 fi
caeba88f
AL
9329 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9330 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9331 if test -r $srcdir/$dirname/configure ; then
9332 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9333 true
9334 else
9335 notsupp="$notsupp $dir"
9336 fi
9337 fi
9338 fi
9e07f89d
NN
9339 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9340 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9341 if test -r $srcdir/$dirname/configure ; then
9342 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9343 true
9344 else
9345 notsupp="$notsupp $dir"
9346 fi
9347 fi
9348 fi
9349done
9350
9e07f89d
NN
9351# Quietly strip out all directories which aren't configurable in this tree.
9352# This relies on all configurable subdirectories being autoconfiscated, which
9353# is now the case.
6a9cf61e
PB
9354build_configdirs_all="$build_configdirs"
9355build_configdirs=
9356for i in ${build_configdirs_all} ; do
c6b750e1 9357 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
9358 if test -f ${srcdir}/$j/configure ; then
9359 build_configdirs="${build_configdirs} $i"
9360 fi
9361done
9362
9e07f89d
NN
9363configdirs_all="$configdirs"
9364configdirs=
9365for i in ${configdirs_all} ; do
9366 if test -f ${srcdir}/$i/configure ; then
9367 configdirs="${configdirs} $i"
9368 fi
9369done
6a9cf61e 9370
9e07f89d
NN
9371target_configdirs_all="$target_configdirs"
9372target_configdirs=
9373for i in ${target_configdirs_all} ; do
c6b750e1 9374 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
9375 if test -f ${srcdir}/$j/configure ; then
9376 target_configdirs="${target_configdirs} $i"
9377 fi
9378done
9379
1b6c0831
L
9380# libiberty-linker-plugin is special: it doesn't have its own source directory,
9381# so we have to add it after the preceding checks.
9382if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9383then
9384 case " $configdirs " in
9385 *" libiberty "*)
9386 # If we can build libiberty, we can also build libiberty-linker-plugin.
9387 configdirs="$configdirs libiberty-linker-plugin"
9388 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9389 --with-libiberty=../libiberty-linker-plugin";;
9390 *)
d0ac1c44 9391 as_fn_error $? "libiberty missing" "$LINENO" 5;;
1b6c0831
L
9392 esac
9393fi
9394
9395# Sometimes we have special requirements for the host libiberty.
9396extra_host_libiberty_configure_flags=
9397case " $configdirs " in
a08bdb15 9398 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
1b6c0831
L
9399 # When these are to be built as shared libraries, the same applies to
9400 # libiberty.
9401 extra_host_libiberty_configure_flags=--enable-shared
9402 ;;
95127faf
TV
9403esac
9404
9405
9406# Sometimes we have special requirements for the host zlib.
9407extra_host_zlib_configure_flags=
9408case " $configdirs " in
e81d5d05
L
9409 *" bfd "*)
9410 # When bfd is to be built as a shared library, the same applies to
9411 # zlib.
9412 if test "$enable_shared" = "yes"; then
9413 extra_host_zlib_configure_flags=--enable-host-shared
9414 fi
9415 ;;
1b6c0831
L
9416esac
9417
9418
9e07f89d
NN
9419# Produce a warning message for the subdirs we can't configure.
9420# This isn't especially interesting in the Cygnus tree, but in the individual
9421# FSF releases, it's important to let people know when their machine isn't
9422# supported by the one or two programs in a package.
9423
9424if test -n "${notsupp}" && test -z "${norecursion}" ; then
9425 # If $appdirs is non-empty, at least one of those directories must still
9426 # be configured, or we error out. (E.g., if the gas release supports a
9427 # specified target in some subdirs but not the gas subdir, we shouldn't
9428 # pretend that all is well.)
9429 if test -n "$appdirs" ; then
9430 for dir in $appdirs ; do
9431 if test -r $dir/Makefile.in ; then
9432 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9433 appdirs=""
9434 break
9435 fi
6a9cf61e 9436 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
9437 appdirs=""
9438 break
9439 fi
9440 fi
9441 done
9442 if test -n "$appdirs" ; then
9443 echo "*** This configuration is not supported by this package." 1>&2
9444 exit 1
9445 fi
9446 fi
9447 # Okay, some application will build, or we don't care to check. Still
9448 # notify of subdirs not getting built.
9449 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9450 echo " ${notsupp}" 1>&2
9451 echo " (Any other directories should still work fine.)" 1>&2
9452fi
9453
9454case "$host" in
9455 *msdosdjgpp*)
9456 enable_gdbtk=no ;;
9457esac
9458
18f6b6ee
PB
9459# To find our prefix, in gcc_cv_tool_prefix.
9460
9461# The user is always right.
9462if test "${PATH_SEPARATOR+set}" != set; then
9463 echo "#! /bin/sh" >conf$$.sh
9464 echo "exit 0" >>conf$$.sh
9465 chmod +x conf$$.sh
9466 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9467 PATH_SEPARATOR=';'
9468 else
9469 PATH_SEPARATOR=:
9470 fi
9471 rm -f conf$$.sh
9472fi
9473
9474
bf41f30d
NC
9475 get_gcc_base_ver="cat"
9476
9477# Check whether --with-gcc-major-version-only was given.
9478if test "${with_gcc_major_version_only+set}" = set; then :
9479 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
37f980dc 9480 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
bf41f30d
NC
9481 fi
9482
9483fi
9484
9485
9486
9487
9488
18f6b6ee
PB
9489
9490if test "x$exec_prefix" = xNONE; then
9491 if test "x$prefix" = xNONE; then
9492 gcc_cv_tool_prefix=$ac_default_prefix
9493 else
9494 gcc_cv_tool_prefix=$prefix
9495 fi
9496else
9497 gcc_cv_tool_prefix=$exec_prefix
9498fi
9499
9500# If there is no compiler in the tree, use the PATH only. In any
9501# case, if there is no compiler in the tree nobody should use
9502# AS_FOR_TARGET and LD_FOR_TARGET.
9503if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
bf41f30d
NC
9504 if test x$with_gcc_major_version_only = xyes ; then
9505 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9506 else
9507 gcc_version=`cat $srcdir/gcc/BASE-VER`
9508 fi
18f6b6ee
PB
9509 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9510 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9511 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9512 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9513 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9514 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9515else
9516 gcc_cv_tool_dirs=
9517fi
9518
9519if test x$build = x$target && test -n "$md_exec_prefix"; then
9520 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9521fi
9522
9523
9524
9e07f89d
NN
9525copy_dirs=
9526
c6b750e1 9527
81ecdfbb
RW
9528# Check whether --with-build-sysroot was given.
9529if test "${with_build_sysroot+set}" = set; then :
9530 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
9531 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9532 fi
9533else
9534 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 9535fi
a19b6204
MM
9536
9537
8a6ee3ab 9538
81ecdfbb
RW
9539
9540# Check whether --with-debug-prefix-map was given.
9541if test "${with_debug_prefix_map+set}" = set; then :
9542 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
9543 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9544 for debug_map in $withval; do
9545 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9546 done
9547 fi
9548else
9549 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
9550fi
9551
8a6ee3ab
JM
9552
9553
7f6ef0c0
PB
9554# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9555# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9556# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9557# We want to ensure that TARGET libraries (which we know are built with
9558# gcc) are built with "-O2 -g", so include those options when setting
9559# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9560if test "x$CFLAGS_FOR_TARGET" = x; then
1b6c0831
L
9561 if test "x${is_cross_compiler}" = xyes; then
9562 CFLAGS_FOR_TARGET="-g -O2"
9563 else
9564 CFLAGS_FOR_TARGET=$CFLAGS
9565 case " $CFLAGS " in
9566 *" -O2 "*) ;;
9567 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9568 esac
9569 case " $CFLAGS " in
9570 *" -g "* | *" -g3 "*) ;;
9571 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9572 esac
9573 fi
7f6ef0c0
PB
9574fi
9575
9576
9577if test "x$CXXFLAGS_FOR_TARGET" = x; then
1b6c0831
L
9578 if test "x${is_cross_compiler}" = xyes; then
9579 CXXFLAGS_FOR_TARGET="-g -O2"
9580 else
9581 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9582 case " $CXXFLAGS " in
9583 *" -O2 "*) ;;
9584 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9585 esac
9586 case " $CXXFLAGS " in
9587 *" -g "* | *" -g3 "*) ;;
9588 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9589 esac
9590 fi
7f6ef0c0
PB
9591fi
9592
9593
91c1f14c
DK
9594
9595
9e07f89d
NN
9596# Handle --with-headers=XXX. If the value is not "yes", the contents of
9597# the named directory are copied to $(tooldir)/sys-include.
9598if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9599 if test x${is_cross_compiler} = xno ; then
9600 echo 1>&2 '***' --with-headers is only supported when cross compiling
9601 exit 1
9602 fi
9603 if test x"${with_headers}" != xyes ; then
18f6b6ee 9604 x=${gcc_cv_tool_prefix}
c6b750e1 9605 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
9606 fi
9607fi
9608
9609# Handle --with-libs=XXX. If the value is not "yes", the contents of
9610# the name directories are copied to $(tooldir)/lib. Multiple directories
9611# are permitted.
9612if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9613 if test x${is_cross_compiler} = xno ; then
9614 echo 1>&2 '***' --with-libs is only supported when cross compiling
9615 exit 1
9616 fi
9617 if test x"${with_libs}" != xyes ; then
9618 # Copy the libraries in reverse order, so that files in the first named
9619 # library override files in subsequent libraries.
18f6b6ee 9620 x=${gcc_cv_tool_prefix}
9e07f89d 9621 for l in ${with_libs}; do
c6b750e1 9622 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
9623 done
9624 fi
9625fi
9626
700d40ca 9627# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
9628#
9629# This is done by determining whether or not the appropriate directory
9630# is available, and by checking whether or not specific configurations
9631# have requested that this magic not happen.
c6b750e1
DJ
9632#
9633# The command line options always override the explicit settings in
136bb21f 9634# configure.ac, and the settings in configure.ac override this magic.
2429c060 9635#
c6b750e1 9636# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 9637# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
9638# --without-gnu-ld options for the configure script. Similarly, if
9639# the default is to use the included zlib and you don't want to do that,
9640# you should use the --with-system-zlib option for the configure script.
2429c060
PB
9641
9642if test x${use_gnu_as} = x &&
9643 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9644 with_gnu_as=yes
9645 extra_host_args="$extra_host_args --with-gnu-as"
9646fi
9647
9648if test x${use_gnu_ld} = x &&
93f9b408 9649 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
9650 with_gnu_ld=yes
9651 extra_host_args="$extra_host_args --with-gnu-ld"
9652fi
9653
700d40ca
ILT
9654if test x${use_included_zlib} = x &&
9655 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9656 :
9657else
9658 with_system_zlib=yes
9659 extra_host_args="$extra_host_args --with-system-zlib"
9660fi
9661
2429c060
PB
9662# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9663# can detect this case.
9664
9665if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9666 with_newlib=yes
9667 extra_host_args="$extra_host_args --with-newlib"
9668fi
9669
9e07f89d
NN
9670# Handle ${copy_dirs}
9671set fnord ${copy_dirs}
9672shift
9673while test $# != 0 ; do
9674 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9675 :
9676 else
9677 echo Copying $1 to $2
9678
9679 # Use the install script to create the directory and all required
9680 # parent directories.
9681 if test -d $2 ; then
9682 :
9683 else
9684 echo >config.temp
9685 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9686 fi
9687
9688 # Copy the directory, assuming we have tar.
9689 # FIXME: Should we use B in the second tar? Not all systems support it.
9690 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9691
9692 # It is the responsibility of the user to correctly adjust all
9693 # symlinks. If somebody can figure out how to handle them correctly
9694 # here, feel free to add the code.
9695
9696 echo $1 > $2/COPIED
9697 fi
9698 shift; shift
9699done
9700
2429c060
PB
9701# Determine a target-dependent exec_prefix that the installed
9702# gcc will search in. Keep this list sorted by triplet, with
9703# the *-*-osname triplets last.
9704md_exec_prefix=
9705case "${target}" in
521ec477 9706 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
9707 md_exec_prefix=/dev/env/DJDIR/bin
9708 ;;
2429c060 9709 *-*-hpux* | \
2429c060 9710 *-*-nto-qnx* | \
1f111696 9711 *-*-solaris2*)
2429c060
PB
9712 md_exec_prefix=/usr/ccs/bin
9713 ;;
9714esac
9715
a0da8069
NN
9716extra_arflags_for_target=
9717extra_nmflags_for_target=
9718extra_ranlibflags_for_target=
9719target_makefile_frag=/dev/null
9720case "${target}" in
77d7106f
AM
9721 spu-*-*)
9722 target_makefile_frag="config/mt-spu"
9723 ;;
2967219a
NC
9724 loongarch*-*linux* | loongarch*-*gnu*)
9725 target_makefile_frag="config/mt-loongarch-gnu"
9726 ;;
9727 loongarch*-*elf*)
9728 target_makefile_frag="config/mt-loongarch-elf"
9729 ;;
a9d58c06 9730 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
9731 target_makefile_frag="config/mt-sde"
9732 ;;
f3b1e08e
RS
9733 mipsisa*-*-elfoabi*)
9734 target_makefile_frag="config/mt-mips-elfoabi"
9735 ;;
e7c8859c
RS
9736 mips*-*-*linux* | mips*-*-gnu*)
9737 target_makefile_frag="config/mt-mips-gnu"
9738 ;;
d9e042ac
SL
9739 nios2-*-elf*)
9740 target_makefile_frag="config/mt-nios2-elf"
9741 ;;
bf41f30d
NC
9742 *-*-linux-android*)
9743 target_makefile_frag="config/mt-android"
9744 ;;
29383458 9745 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 9746 target_makefile_frag="config/mt-gnu"
a0da8069
NN
9747 ;;
9748 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 9749 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
9750 # commands to handle both 32-bit and 64-bit objects. These flags are
9751 # harmless if we're using GNU nm or ar.
9752 extra_arflags_for_target=" -X32_64"
9753 extra_nmflags_for_target=" -B -X32_64"
9754 ;;
a0da8069
NN
9755esac
9756
9757alphaieee_frag=/dev/null
9758case $target in
9759 alpha*-*-*)
9760 # This just makes sure to use the -mieee option to build target libs.
9761 # This should probably be set individually by each library.
9762 alphaieee_frag="config/mt-alphaieee"
9763 ;;
9764esac
9765
9766# If --enable-target-optspace always use -Os instead of -O2 to build
9767# the target libraries, similarly if it is not specified, use -Os
9768# on selected platforms.
9769ospace_frag=/dev/null
9770case "${enable_target_optspace}:${target}" in
9771 yes:*)
9772 ospace_frag="config/mt-ospace"
9773 ;;
9774 :d30v-*)
9775 ospace_frag="config/mt-d30v"
9776 ;;
16beab3d 9777 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
a0da8069
NN
9778 ospace_frag="config/mt-ospace"
9779 ;;
9780 no:* | :*)
9781 ;;
9782 *)
9783 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9784 ;;
9785esac
9786
a0da8069
NN
9787# Some systems (e.g., one of the i386-aix systems the gas testers are
9788# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 9789tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
9790build_tooldir=${tooldir}
9791
a0da8069
NN
9792# Create a .gdbinit file which runs the one in srcdir
9793# and tells GDB to look there for source files.
9794
9795if test -r ${srcdir}/.gdbinit ; then
9796 case ${srcdir} in
9797 .) ;;
9798 *) cat > ./.gdbinit <<EOF
9799# ${NO_EDIT}
9800dir ${srcdir}
9801dir .
9802source ${srcdir}/.gdbinit
9803EOF
9804 ;;
9805 esac
9806fi
9807
a0da8069
NN
9808# Make sure that the compiler is able to generate an executable. If it
9809# can't, we are probably in trouble. We don't care whether we can run the
9810# executable--we might be using a cross compiler--we only care whether it
9811# can be created. At this point the main configure script has set CC.
9812we_are_ok=no
9813echo "int main () { return 0; }" > conftest.c
9814${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9815if test $? = 0 ; then
9816 if test -s conftest || test -s conftest.exe ; then
9817 we_are_ok=yes
9818 fi
c6b750e1 9819fi
a0da8069
NN
9820case $we_are_ok in
9821 no)
9822 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9823 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9824 rm -f conftest*
9825 exit 1
9826 ;;
9827esac
9828rm -f conftest*
9829
3bbd2f8f 9830# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
9831case "${host}" in
9832 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 9833 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 9834 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
9835 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9836esac
9837
3bbd2f8f 9838# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
9839# gcc/ will put dynamic libraries into a subdirectory to avoid adding
9840# built executables to PATH.
3bbd2f8f
AL
9841if test "$RPATH_ENVVAR" = PATH; then
9842 GCC_SHLIB_SUBDIR=/shlib
9843else
9844 GCC_SHLIB_SUBDIR=
9845fi
9846
730af8ee 9847# Adjust the toplevel makefile according to whether bootstrap was selected.
9848case $enable_bootstrap in
9849 yes)
9850 bootstrap_suffix=bootstrap
9851 BUILD_CONFIG=bootstrap-debug
9852 ;;
9853 no)
9854 bootstrap_suffix=no-bootstrap
9855 BUILD_CONFIG=
9856 ;;
9857esac
9858
9859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9860$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9861
9862
9863# Check whether --with-build-config was given.
9864if test "${with_build_config+set}" = set; then :
9865 withval=$with_build_config; case $with_build_config in
9866 yes) with_build_config= ;;
9867 no) with_build_config= BUILD_CONFIG= ;;
9868 esac
9869fi
9870
9871
9872if test "x${with_build_config}" != x; then
9873 BUILD_CONFIG=$with_build_config
9874else
9875 case $BUILD_CONFIG in
9876 bootstrap-debug)
9877 if echo "int f (void) { return 0; }" > conftest.c &&
9878 ${CC} -c conftest.c &&
9879 mv conftest.o conftest.o.g0 &&
9880 ${CC} -c -g conftest.c &&
9881 mv conftest.o conftest.o.g &&
9882 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9883 :
9884 else
9885 BUILD_CONFIG=
9886 fi
9887 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9888 ;;
9889 esac
9890fi
9891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9892$as_echo "$BUILD_CONFIG" >&6; }
9893
9894
9895# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9897$as_echo_n "checking for --enable-vtable-verify... " >&6; }
9898# Check whether --enable-vtable-verify was given.
9899if test "${enable_vtable_verify+set}" = set; then :
9900 enableval=$enable_vtable_verify; case "$enableval" in
9901 yes) enable_vtable_verify=yes ;;
9902 no) enable_vtable_verify=no ;;
9903 *) enable_vtable_verify=no;;
9904 esac
9905else
9906 enable_vtable_verify=no
9907fi
9908
9909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9910$as_echo "$enable_vtable_verify" >&6; }
9911
a0da8069
NN
9912# Record target_configdirs and the configure arguments for target and
9913# build configuration in Makefile.
9914target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 9915build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 9916bootstrap_fixincludes=no
a0da8069 9917
2aa2364a
JR
9918# If we are building libgomp, bootstrap it.
9919if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9920 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9921fi
9922
730af8ee 9923# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9924# or bootstrap-ubsan, bootstrap it.
9925if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9926 case "$BUILD_CONFIG" in
228cf97d 9927 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
730af8ee 9928 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 9929 bootstrap_fixincludes=yes
730af8ee 9930 ;;
9931 esac
5eb08693
L
9932fi
9933
730af8ee 9934# If we are building libvtv and --enable-vtable-verify, bootstrap it.
9935if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9936 test "$enable_vtable_verify" != no; then
95e43135
JBG
9937 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9938fi
9939
228cf97d
AM
9940# If we are building libatomic and the list of enabled languages includes the
9941# D frontend, bootstrap it.
9942if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9943 case ,${enable_languages}, in
9944 *,d,*)
9945 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9946 ;;
9947 esac
9948fi
9949
a0da8069
NN
9950# Determine whether gdb needs tk/tcl or not.
9951# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9952# and in that case we want gdb to be built without tk. Ugh!
9953# In fact I believe gdb is the *only* package directly dependent on tk,
9954# so we should be able to put the 'maybe's in unconditionally and
9955# leave out the maybe dependencies when enable_gdbtk is false. I'm not
9956# 100% sure that that's safe though.
c180f501 9957
675c6968 9958gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
9959case "$enable_gdbtk" in
9960 no)
9961 GDB_TK="" ;;
c180f501
AC
9962 yes)
9963 GDB_TK="${gdb_tk}" ;;
a0da8069 9964 *)
c180f501
AC
9965 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9966 # distro. Eventually someone will fix this and move Insight, nee
9967 # gdbtk to a separate directory.
9968 if test -d ${srcdir}/gdb/gdbtk ; then
9969 GDB_TK="${gdb_tk}"
9970 else
9971 GDB_TK=""
9972 fi
9973 ;;
a0da8069 9974esac
907be67c
DJ
9975CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9976INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 9977
b6f9caee
TT
9978# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9979# else does, only include them if one of these is built. The Makefile
9980# provides the ordering, so it's enough here to add to the list.
9981case " ${configdirs} " in
9982 *\ gdb\ *)
9983 configdirs="${configdirs} gnulib gdbsupport"
9984 ;;
9985 *\ gdbserver\ *)
9986 configdirs="${configdirs} gnulib gdbsupport"
9987 ;;
5c9e84c2
MF
9988 *\ sim\ *)
9989 configdirs="${configdirs} gnulib"
9990 ;;
b6f9caee 9991esac
73cc7272 9992
6bd3dfaa 9993# Strip out unwanted targets.
dd12c3a8
NN
9994
9995# While at that, we remove Makefiles if we were started for recursive
9996# configuration, so that the top-level Makefile reconfigures them,
9997# like we used to do when configure itself was recursive.
dd12c3a8 9998
06a51eac
RW
9999# Loop over modules. We used to use the "$extrasub" feature from Autoconf
10000# but now we're fixing up the Makefile ourselves with the additional
10001# commands passed to AC_CONFIG_FILES. Use separate variables
10002# extrasub-{build,host,target} not because there is any reason to split
10003# the substitutions up that way, but only to remain below the limit of
10004# 99 commands in a script, for HP-UX sed.
4119873a
AO
10005
10006# Do not nest @if/@endif or @unless/@endunless pairs, because
10007# configure will not warn you at all.
dd12c3a8 10008
16b1ad29
RW
10009case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
10010 yes:yes:*\ gold\ *:*,c++,*) ;;
10011 yes:yes:*\ gold\ *:*)
d0ac1c44 10012 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
16b1ad29
RW
10013 ;;
10014esac
10015
06a51eac 10016extrasub_build=
6a9cf61e 10017for module in ${build_configdirs} ; do
498d4a71
CF
10018 if test -z "${no_recursion}" \
10019 && test -f ${build_subdir}/${module}/Makefile; then
10020 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
10021 rm -f ${build_subdir}/${module}/Makefile
10022 fi
06a51eac 10023 extrasub_build="$extrasub_build
498d4a71
CF
10024/^@if build-$module\$/d
10025/^@endif build-$module\$/d
4119873a 10026/^@unless build-$module\$/,/^@endunless build-$module\$/d
498d4a71 10027/^@if build-$module-$bootstrap_suffix\$/d
4119873a
AO
10028/^@endif build-$module-$bootstrap_suffix\$/d
10029/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
498d4a71 10030done
06a51eac 10031extrasub_host=
498d4a71 10032for module in ${configdirs} ; do
80911fe1 10033 if test -z "${no_recursion}"; then
8cf39b1b 10034 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
10035 if test -f ${file}; then
10036 echo 1>&2 "*** removing ${file} to force reconfigure"
10037 rm -f ${file}
10038 fi
10039 done
498d4a71 10040 fi
201f096f 10041 case ${module},${bootstrap_fixincludes} in
10042 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
10043 *) host_bootstrap_suffix=$bootstrap_suffix ;;
10044 esac
06a51eac 10045 extrasub_host="$extrasub_host
498d4a71
CF
10046/^@if $module\$/d
10047/^@endif $module\$/d
4119873a 10048/^@unless $module\$/,/^@endunless $module\$/d
201f096f 10049/^@if $module-$host_bootstrap_suffix\$/d
4119873a
AO
10050/^@endif $module-$host_bootstrap_suffix\$/d
10051/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
498d4a71 10052done
06a51eac 10053extrasub_target=
498d4a71
CF
10054for module in ${target_configdirs} ; do
10055 if test -z "${no_recursion}" \
10056 && test -f ${target_subdir}/${module}/Makefile; then
10057 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
10058 rm -f ${target_subdir}/${module}/Makefile
10059 fi
e8a5fa9c
RW
10060
10061 # We only bootstrap target libraries listed in bootstrap_target_libs.
10062 case $bootstrap_target_libs in
10063 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
10064 *) target_bootstrap_suffix=no-bootstrap ;;
10065 esac
10066
06a51eac 10067 extrasub_target="$extrasub_target
498d4a71
CF
10068/^@if target-$module\$/d
10069/^@endif target-$module\$/d
4119873a 10070/^@unless target-$module\$/,/^@endunless target-$module\$/d
e8a5fa9c 10071/^@if target-$module-$target_bootstrap_suffix\$/d
4119873a
AO
10072/^@endif target-$module-$target_bootstrap_suffix\$/d
10073/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
10074done
10075
06a51eac
RW
10076# Do the final fixup along with target modules.
10077extrasub_target="$extrasub_target
4119873a
AO
10078/^@if /,/^@endif /d
10079/^@unless /d
10080/^@endunless /d"
a0da8069 10081
af019bfd
L
10082if test "$enable_pgo_build" != "no"; then
10083 extrasub_build="$extrasub_build
10084/^@if pgo-build\$/d
10085/^@endif pgo-build\$/d"
10086fi
10087
a0da8069
NN
10088# Create the serialization dependencies. This uses a temporary file.
10089
81ecdfbb
RW
10090# Check whether --enable-serial-configure was given.
10091if test "${enable_serial_configure+set}" = set; then :
10092 enableval=$enable_serial_configure;
10093fi
e6bfb94a
AO
10094
10095
1047cb91
DD
10096case ${enable_serial_configure} in
10097 yes)
10098 enable_serial_build_configure=yes
10099 enable_serial_host_configure=yes
10100 enable_serial_target_configure=yes
10101 ;;
10102esac
10103
a0da8069
NN
10104# These force 'configure's to be done one at a time, to avoid problems
10105# with contention over a shared config.cache.
10106rm -f serdep.tmp
6a6859cb 10107if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
e6bfb94a 10108echo '# serdep.tmp' > serdep.tmp
6a6859cb 10109fi
a0da8069 10110olditem=
1047cb91 10111test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
10112for item in ${build_configdirs} ; do
10113 case ${olditem} in
10114 "") ;;
e6bfb94a 10115 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
10116 esac
10117 olditem=${item}
10118done
10119olditem=
1047cb91 10120test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
10121for item in ${configdirs} ; do
10122 case ${olditem} in
10123 "") ;;
e6bfb94a 10124 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
10125 esac
10126 olditem=${item}
10127done
10128olditem=
1047cb91 10129test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
10130for item in ${target_configdirs} ; do
10131 case ${olditem} in
10132 "") ;;
e6bfb94a 10133 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
10134 esac
10135 olditem=${item}
10136done
10137serialization_dependencies=serdep.tmp
10138
10139
e6bfb94a 10140# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 10141# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
10142# might not want to pass down to subconfigures. The exception being
10143# --cache-file=/dev/null, which is used to turn off the use of cache
10144# files altogether, and which should be passed on to subconfigures.
10145# Also strip program-prefix, program-suffix, and program-transform-name,
10146# so that we can pass down a consistent program-transform-name.
862776f2
AA
10147hbaseargs=
10148bbaseargs=
65b4571a 10149tbaseargs=
c6b750e1
DJ
10150keep_next=no
10151skip_next=no
10152eval "set -- $ac_configure_args"
18f6b6ee
PB
10153for ac_arg
10154do
c6b750e1
DJ
10155 if test X"$skip_next" = X"yes"; then
10156 skip_next=no
10157 continue
10158 fi
10159 if test X"$keep_next" = X"yes"; then
10160 case $ac_arg in
10161 *\'*)
10162 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10163 esac
862776f2
AA
10164 hbaseargs="$hbaseargs '$ac_arg'"
10165 bbaseargs="$bbaseargs '$ac_arg'"
65b4571a 10166 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
10167 keep_next=no
10168 continue
10169 fi
10170
10171 # Handle separated arguments. Based on the logic generated by
10172 # autoconf 2.59.
10173 case $ac_arg in
10174 *=* | --config-cache | -C | -disable-* | --disable-* \
10175 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10176 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10177 | -with-* | --with-* | -without-* | --without-* | --x)
10178 separate_arg=no
10179 ;;
10180 -*)
10181 separate_arg=yes
10182 ;;
10183 *)
10184 separate_arg=no
10185 ;;
10186 esac
10187
65b4571a 10188 skip_targ=no
862776f2 10189 skip_barg=no
65b4571a
AO
10190 case $ac_arg in
10191
10192 --with-* | --without-*)
10193 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10194
10195 case $libopt in
10196 *[-_]include)
10197 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10198 ;;
10199 *[-_]lib)
10200 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10201 ;;
862776f2
AA
10202 *[-_]prefix)
10203 lib=`echo "$libopt" | sed 's,[-_]prefix$,,'`
10204 ;;
10205 *[-_]type)
10206 lib=`echo "$libopt" | sed 's,[-_]type$,,'`
10207 ;;
65b4571a
AO
10208 *)
10209 lib=$libopt
10210 ;;
10211 esac
10212
10213
10214 case $lib in
1b6c0831 10215 mpc | mpfr | gmp | isl)
65b4571a
AO
10216 # If we're processing --with-$lib, --with-$lib-include or
10217 # --with-$lib-lib, for one of the libs above, and target is
10218 # different from host, don't pass the current argument to any
10219 # target library's configure.
10220 if test x$is_cross_compiler = xyes; then
10221 skip_targ=yes
10222 fi
10223 ;;
862776f2
AA
10224 libintl | libiconv)
10225 # We don't want libintl (and co.) in anything but the host arguments.
10226 skip_targ=yes
10227 skip_barg=yes
10228 ;;
65b4571a
AO
10229 esac
10230 ;;
10231 esac
10232
c6b750e1 10233 case "$ac_arg" in
30167e0a
NC
10234 --cache-file=/dev/null | \
10235 -cache-file=/dev/null )
10236 # Handled here to avoid the test to skip args below.
862776f2
AA
10237 hbaseargs="$hbaseargs '$ac_arg'"
10238 bbaseargs="$bbaseargs '$ac_arg'"
65b4571a 10239 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
10240 # Assert: $separate_arg should always be no.
10241 keep_next=$separate_arg
10242 ;;
c6b750e1
DJ
10243 --no*)
10244 continue
10245 ;;
10246 --c* | \
10247 --sr* | \
10248 --ho* | \
10249 --bu* | \
10250 --t* | \
10251 --program-* | \
10252 -cache_file* | \
10253 -srcdir* | \
10254 -host* | \
10255 -build* | \
10256 -target* | \
10257 -program-prefix* | \
10258 -program-suffix* | \
10259 -program-transform-name* )
10260 skip_next=$separate_arg
10261 continue
10262 ;;
10263 -*)
10264 # An option. Add it.
10265 case $ac_arg in
10266 *\'*)
10267 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10268 esac
862776f2
AA
10269 hbaseargs="$hbaseargs '$ac_arg'"
10270 if test X"$skip_barg" = Xno; then
10271 bbaseargs="$bbaseargs '$ac_arg'"
10272 fi
65b4571a
AO
10273 if test X"$skip_targ" = Xno; then
10274 tbaseargs="$tbaseargs '$ac_arg'"
10275 fi
c6b750e1
DJ
10276 keep_next=$separate_arg
10277 ;;
10278 *)
10279 # Either a variable assignment, or a nonopt (triplet). Don't
10280 # pass it down; let the Makefile handle this.
10281 continue
10282 ;;
10283 esac
10284done
10285# Remove the initial space we just introduced and, as these will be
10286# expanded by make, quote '$'.
862776f2
AA
10287hbaseargs=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10288bbaseargs=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 10289
f27d4f92
DJ
10290# Add in --program-transform-name, after --program-prefix and
10291# --program-suffix have been applied to it. Autoconf has already
10292# doubled dollar signs and backslashes in program_transform_name; we want
10293# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 10294# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
10295# Also, because we want to override the logic in subdir configure scripts to
10296# choose program_transform_name, replace any s,x,x, with s,y,y,.
10297sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10298${program_transform_name}
10299EOF_SED
10300gcc_transform_name=`cat conftestsed.out`
10301rm -f conftestsed.out
862776f2
AA
10302hbaseargs="$hbaseargs --program-transform-name='${gcc_transform_name}'"
10303bbaseargs="$bbaseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 10304tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b 10305if test "$silent" = yes; then
862776f2
AA
10306 bbaseargs="$bbaseargs --silent"
10307 hbaseargs="$hbaseargs --silent"
65b4571a 10308 tbaseargs="$tbaseargs --silent"
2444379b 10309fi
e5f2f7d9 10310
862776f2
AA
10311bbaseargs="$bbaseargs --disable-option-checking"
10312hbaseargs="$hbaseargs --disable-option-checking"
65b4571a 10313tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 10314
e5f2f7d9
LM
10315if test "$enable_year2038" = no; then
10316 baseargs="$baseargs --disable-year2038"
10317 tbaseargs="$tbaseargs --disable-year2038"
10318fi
10319
4074d5f2
RW
10320# Record and document user additions to sub configure arguments.
10321
10322
10323
10324
a0da8069
NN
10325# For the build-side libraries, we just need to pretend we're native,
10326# and not use the same cache file. Multilibs are neither needed nor
1b6c0831
L
10327# desired. We can't even use the same cache file for all build-side
10328# libraries, as they're compiled differently; some with C, some with
10329# C++ or with different feature-enabling options.
862776f2 10330build_configargs="$build_configargs --cache-file=./config.cache ${bbaseargs}"
a0da8069
NN
10331
10332# For host modules, accept cache file option, or specification as blank.
10333case "${cache_file}" in
10334"") # empty
10335 cache_file_option="" ;;
10336/* | [A-Za-z]:[\\/]* ) # absolute path
10337 cache_file_option="--cache-file=${cache_file}" ;;
10338*) # relative path
10339 cache_file_option="--cache-file=../${cache_file}" ;;
10340esac
10341
82252c06
NN
10342# Host dirs don't like to share a cache file either, horribly enough.
10343# This seems to be due to autoconf 2.5x stupidity.
862776f2 10344host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
a0da8069 10345
65b4571a 10346target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
10347
10348# Passing a --with-cross-host argument lets the target libraries know
10349# whether they are being built with a cross-compiler or being built
10350# native. However, it would be better to use other mechanisms to make the
10351# sorts of decisions they want to make on this basis. Please consider
10352# this option to be deprecated. FIXME.
10353if test x${is_cross_compiler} = xyes ; then
c6b750e1 10354 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
10355fi
10356
afc0578d 10357# Special user-friendly check for native x86_64-linux build, if
10358# multilib is not explicitly enabled.
10359case "$target:$have_compiler:$host:$target:$enable_multilib" in
10360 x86_64-*linux*:yes:$build:$build:)
ce6c656d 10361 # Make sure we have a development environment that handles 32-bit
afc0578d 10362 dev64=no
10363 echo "int main () { return 0; }" > conftest.c
10364 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10365 if test $? = 0 ; then
10366 if test -s conftest || test -s conftest.exe ; then
10367 dev64=yes
10368 fi
10369 fi
10370 rm -f conftest*
10371 if test x${dev64} != xyes ; then
d0ac1c44 10372 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
afc0578d 10373 fi
10374 ;;
10375esac
10376
938d2b74
RW
10377# Default to --enable-multilib.
10378if test x${enable_multilib} = x ; then
a0da8069 10379 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 10380fi
a0da8069
NN
10381
10382# Pass --with-newlib if appropriate. Note that target_configdirs has
10383# changed from the earlier setting of with_newlib.
10384if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10385 target_configargs="--with-newlib ${target_configargs}"
10386fi
10387
95036d20
NN
10388# Different target subdirs use different values of certain variables
10389# (notably CXX). Worse, multilibs use *lots* of different values.
10390# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10391# it doesn't automatically accept command-line overrides of them.
10392# This means it's not safe for target subdirs to share a cache file,
10393# which is disgusting, but there you have it. Hopefully this can be
10394# fixed in future. It's still worthwhile to use a cache file for each
10395# directory. I think.
10396
ae380b45
MS
10397# Pass the appropriate --build, --host, --target and --cache-file arguments.
10398# We need to pass --target, as newer autoconf's requires consistency
10399# for target_alias and gcc doesn't manage it consistently.
4b900473 10400target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 10401
a0da8069
NN
10402FLAGS_FOR_TARGET=
10403case " $target_configdirs " in
10404 *" newlib "*)
10405 case " $target_configargs " in
10406 *" --with-newlib "*)
10407 case "$target" in
1f53ca9a 10408 *-cygwin*)
6d94c122 10409 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 10410 ;;
a0da8069
NN
10411 esac
10412
10413 # If we're not building GCC, don't discard standard headers.
10414 if test -d ${srcdir}/gcc; then
10415 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10416
10417 if test "${build}" != "${host}"; then
10418 # On Canadian crosses, CC_FOR_TARGET will have already been set
10419 # by `configure', so we won't have an opportunity to add -Bgcc/
10420 # to it. This is right: we don't want to search that directory
10421 # for binaries, but we want the header files in there, so add
10422 # them explicitly.
e552509b 10423 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
10424
10425 # Someone might think of using the pre-installed headers on
10426 # Canadian crosses, in case the installed compiler is not fully
10427 # compatible with the compiler being built. In this case, it
10428 # would be better to flag an error than risking having
10429 # incompatible object files being constructed. We can't
10430 # guarantee that an error will be flagged, but let's hope the
10431 # compiler will do it, when presented with incompatible header
10432 # files.
10433 fi
10434 fi
10435
10436 case "${target}-${is_cross_compiler}" in
ec11bdc6 10437 i[3456789]86-*-linux*-no)
a0da8069
NN
10438 # Here host == target, so we don't need to build gcc,
10439 # so we don't want to discard standard headers.
10440 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10441 ;;
10442 *)
10443 # If we're building newlib, use its generic headers last, but search
10444 # for any libc-related directories first (so make it the last -B
10445 # switch).
10446 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
10447
10448 # If we're building libgloss, find the startup file, simulator library
10449 # and linker script.
10450 case " $target_configdirs " in
10451 *" libgloss "*)
10452 # Look for startup file, simulator library and maybe linker script.
10453 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10454 # Look for libnosys.a in case the target needs it.
10455 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10456 # Most targets have the linker script in the source directory.
10457 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10458 ;;
10459 esac
a0da8069
NN
10460 ;;
10461 esac
10462 ;;
10463 esac
10464 ;;
10465esac
1f53ca9a 10466
45055374 10467case "$target" in
1f53ca9a
AO
10468 x86_64-*mingw* | *-w64-mingw*)
10469 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10470 # however, use a symlink named 'mingw' in ${prefix} .
10471 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10472 ;;
10473 *-mingw*)
10474 # MinGW can't be handled as Cygwin above since it does not use newlib.
10475 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'
10476 ;;
45055374 10477esac
a0da8069 10478
5fbad20a
DD
10479# Allow the user to override the flags for
10480# our build compiler if desired.
c66487f8
NC
10481if test x"${build}" = x"${host}" ; then
10482 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
e472ec9f 10483 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
c66487f8
NC
10484 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10485 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10486fi
5fbad20a 10487
a0da8069
NN
10488# On Canadian crosses, we'll be searching the right directories for
10489# the previously-installed cross compiler, so don't bother to add
10490# flags for directories within the install tree of the compiler
10491# being built; programs in there won't even run.
10492if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10493 # Search for pre-installed headers if nothing else fits.
bba45b8b 10494 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
10495fi
10496
10497if test "x${use_gnu_ld}" = x &&
10498 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10499 # Arrange for us to find uninstalled linker scripts.
b00612cc 10500 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
10501fi
10502
a481dbb7
DD
10503# Search for other target-specific linker scripts and such.
10504case "${target}" in
4e206d7e
DB
10505 mep*)
10506 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10507 ;;
228cf97d
AM
10508 # The VxWorks support for shared libraries is getting in
10509 # incrementally. Make sure it doesn't get activated implicitly:
10510 *vxworks*)
10511 if test "${enable_shared-unset}" = unset ; then
10512 enable_shared=no
10513 # So the build of libraries knows ...
10514 target_configargs="${target_configargs} --disable-shared"
10515 # So gcc knows ...
10516 host_configargs="${host_configargs} --disable-shared"
10517 fi
10518 ;;
4e206d7e
DB
10519esac
10520
a0da8069 10521# Makefile fragments.
3e707e94
PB
10522for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10523do
10524 eval fragval=\$$frag
10525 if test $fragval != /dev/null; then
10526 eval $frag=${srcdir}/$fragval
10527 fi
10528done
a0da8069
NN
10529
10530
10531
10532
10533
10534# Miscellanea: directories, flags, etc.
10535
10536
10537
10538
10539
10540
10541
3bbd2f8f 10542
6a9cf61e 10543# Build module lists & subconfigure args.
a0da8069
NN
10544
10545
10546
be01d343
PB
10547# Host module lists & subconfigure args.
10548
10549
10550
911e63d0 10551
be01d343
PB
10552# Target module lists & subconfigure args.
10553
10554
10555
10556# Build tools.
10557
10558
10559
1576798e
PB
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
e472ec9f 10573
228cf97d
AM
10574
10575
10576
be01d343
PB
10577# Generate default definitions for YACC, M4, LEX and other programs that run
10578# on the build machine. These are used if the Makefile can't locate these
10579# programs in objdir.
10580MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10581
10582for ac_prog in 'bison -y' byacc yacc
10583do
c6b750e1 10584 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10585set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10587$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10588if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 10589 $as_echo_n "(cached) " >&6
be01d343
PB
10590else
10591 if test -n "$YACC"; then
10592 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10593else
c6b750e1
DJ
10594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10595for as_dir in $PATH
10596do
10597 IFS=$as_save_IFS
10598 test -z "$as_dir" && as_dir=.
81ecdfbb 10599 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10601 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 10602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10603 break 2
10604 fi
10605done
81ecdfbb
RW
10606 done
10607IFS=$as_save_IFS
c6b750e1 10608
be01d343
PB
10609fi
10610fi
c6b750e1 10611YACC=$ac_cv_prog_YACC
be01d343 10612if test -n "$YACC"; then
81ecdfbb
RW
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10614$as_echo "$YACC" >&6; }
be01d343 10615else
81ecdfbb
RW
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10617$as_echo "no" >&6; }
be01d343
PB
10618fi
10619
81ecdfbb 10620
c6b750e1 10621 test -n "$YACC" && break
be01d343
PB
10622done
10623test -n "$YACC" || YACC="$MISSING bison -y"
10624
10625case " $build_configdirs " in
10626 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
10627esac
10628
10629for ac_prog in bison
10630do
c6b750e1 10631 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10632set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10635if ${ac_cv_prog_BISON+:} false; then :
81ecdfbb 10636 $as_echo_n "(cached) " >&6
be01d343
PB
10637else
10638 if test -n "$BISON"; then
10639 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10640else
c6b750e1
DJ
10641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10642for as_dir in $PATH
10643do
10644 IFS=$as_save_IFS
10645 test -z "$as_dir" && as_dir=.
81ecdfbb 10646 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10648 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 10649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10650 break 2
10651 fi
10652done
81ecdfbb
RW
10653 done
10654IFS=$as_save_IFS
c6b750e1 10655
be01d343
PB
10656fi
10657fi
c6b750e1 10658BISON=$ac_cv_prog_BISON
be01d343 10659if test -n "$BISON"; then
81ecdfbb
RW
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10661$as_echo "$BISON" >&6; }
be01d343 10662else
81ecdfbb
RW
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664$as_echo "no" >&6; }
be01d343
PB
10665fi
10666
81ecdfbb 10667
c6b750e1 10668 test -n "$BISON" && break
be01d343
PB
10669done
10670test -n "$BISON" || BISON="$MISSING bison"
10671
10672case " $build_configdirs " in
10673 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10674esac
10675
10676for ac_prog in gm4 gnum4 m4
10677do
c6b750e1 10678 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10679set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10681$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10682if ${ac_cv_prog_M4+:} false; then :
81ecdfbb 10683 $as_echo_n "(cached) " >&6
be01d343
PB
10684else
10685 if test -n "$M4"; then
10686 ac_cv_prog_M4="$M4" # Let the user override the test.
10687else
c6b750e1
DJ
10688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10689for as_dir in $PATH
10690do
10691 IFS=$as_save_IFS
10692 test -z "$as_dir" && as_dir=.
81ecdfbb 10693 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10695 ac_cv_prog_M4="$ac_prog"
81ecdfbb 10696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10697 break 2
10698 fi
10699done
81ecdfbb
RW
10700 done
10701IFS=$as_save_IFS
c6b750e1 10702
be01d343
PB
10703fi
10704fi
c6b750e1 10705M4=$ac_cv_prog_M4
be01d343 10706if test -n "$M4"; then
81ecdfbb
RW
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10708$as_echo "$M4" >&6; }
be01d343 10709else
81ecdfbb
RW
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711$as_echo "no" >&6; }
be01d343
PB
10712fi
10713
81ecdfbb 10714
c6b750e1 10715 test -n "$M4" && break
be01d343
PB
10716done
10717test -n "$M4" || M4="$MISSING m4"
10718
10719case " $build_configdirs " in
10720 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10721esac
10722
10723for ac_prog in flex lex
10724do
c6b750e1 10725 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10726set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10728$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10729if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 10730 $as_echo_n "(cached) " >&6
be01d343
PB
10731else
10732 if test -n "$LEX"; then
10733 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10734else
c6b750e1
DJ
10735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10736for as_dir in $PATH
10737do
10738 IFS=$as_save_IFS
10739 test -z "$as_dir" && as_dir=.
81ecdfbb 10740 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10742 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 10743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10744 break 2
10745 fi
10746done
81ecdfbb
RW
10747 done
10748IFS=$as_save_IFS
c6b750e1 10749
be01d343
PB
10750fi
10751fi
c6b750e1 10752LEX=$ac_cv_prog_LEX
be01d343 10753if test -n "$LEX"; then
81ecdfbb
RW
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10755$as_echo "$LEX" >&6; }
be01d343 10756else
81ecdfbb
RW
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10758$as_echo "no" >&6; }
be01d343
PB
10759fi
10760
81ecdfbb 10761
c6b750e1 10762 test -n "$LEX" && break
be01d343
PB
10763done
10764test -n "$LEX" || LEX="$MISSING flex"
10765
10766case " $build_configdirs " in
10767 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10768 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10769esac
10770
10771for ac_prog in flex
10772do
c6b750e1 10773 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10774set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10776$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10777if ${ac_cv_prog_FLEX+:} false; then :
81ecdfbb 10778 $as_echo_n "(cached) " >&6
be01d343
PB
10779else
10780 if test -n "$FLEX"; then
10781 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10782else
c6b750e1
DJ
10783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10784for as_dir in $PATH
10785do
10786 IFS=$as_save_IFS
10787 test -z "$as_dir" && as_dir=.
81ecdfbb 10788 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10790 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 10791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10792 break 2
10793 fi
10794done
81ecdfbb
RW
10795 done
10796IFS=$as_save_IFS
c6b750e1 10797
be01d343
PB
10798fi
10799fi
c6b750e1 10800FLEX=$ac_cv_prog_FLEX
be01d343 10801if test -n "$FLEX"; then
81ecdfbb
RW
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10803$as_echo "$FLEX" >&6; }
be01d343 10804else
81ecdfbb
RW
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10806$as_echo "no" >&6; }
be01d343
PB
10807fi
10808
81ecdfbb 10809
c6b750e1 10810 test -n "$FLEX" && break
be01d343
PB
10811done
10812test -n "$FLEX" || FLEX="$MISSING flex"
10813
10814case " $build_configdirs " in
10815 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10816esac
10817
10818for ac_prog in makeinfo
10819do
c6b750e1 10820 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10821set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10823$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10824if ${ac_cv_prog_MAKEINFO+:} false; then :
81ecdfbb 10825 $as_echo_n "(cached) " >&6
be01d343
PB
10826else
10827 if test -n "$MAKEINFO"; then
10828 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10829else
c6b750e1
DJ
10830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10831for as_dir in $PATH
10832do
10833 IFS=$as_save_IFS
10834 test -z "$as_dir" && as_dir=.
81ecdfbb 10835 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10837 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 10838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10839 break 2
10840 fi
10841done
81ecdfbb
RW
10842 done
10843IFS=$as_save_IFS
c6b750e1 10844
be01d343
PB
10845fi
10846fi
c6b750e1 10847MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 10848if test -n "$MAKEINFO"; then
81ecdfbb
RW
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10850$as_echo "$MAKEINFO" >&6; }
be01d343 10851else
81ecdfbb
RW
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10853$as_echo "no" >&6; }
be01d343
PB
10854fi
10855
81ecdfbb 10856
c6b750e1 10857 test -n "$MAKEINFO" && break
be01d343
PB
10858done
10859test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10860
10861case " $build_configdirs " in
10862 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10863 *)
10864
10ad8ef3 10865 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
10866 # higher, else we use the "missing" dummy.
10867 if ${MAKEINFO} --version \
10ad8ef3 10868 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
10869 :
10870 else
10871 MAKEINFO="$MISSING makeinfo"
10872 fi
10873 ;;
10874
10875esac
a0da8069 10876
be01d343 10877# FIXME: expect and dejagnu may become build tools?
a0da8069 10878
be01d343
PB
10879for ac_prog in expect
10880do
c6b750e1 10881 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10882set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10884$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10885if ${ac_cv_prog_EXPECT+:} false; then :
81ecdfbb 10886 $as_echo_n "(cached) " >&6
be01d343
PB
10887else
10888 if test -n "$EXPECT"; then
10889 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10890else
c6b750e1
DJ
10891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10892for as_dir in $PATH
10893do
10894 IFS=$as_save_IFS
10895 test -z "$as_dir" && as_dir=.
81ecdfbb 10896 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10898 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 10899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10900 break 2
10901 fi
10902done
81ecdfbb
RW
10903 done
10904IFS=$as_save_IFS
c6b750e1 10905
be01d343
PB
10906fi
10907fi
c6b750e1 10908EXPECT=$ac_cv_prog_EXPECT
be01d343 10909if test -n "$EXPECT"; then
81ecdfbb
RW
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10911$as_echo "$EXPECT" >&6; }
be01d343 10912else
81ecdfbb
RW
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10914$as_echo "no" >&6; }
be01d343 10915fi
a0da8069 10916
81ecdfbb 10917
c6b750e1 10918 test -n "$EXPECT" && break
be01d343
PB
10919done
10920test -n "$EXPECT" || EXPECT="expect"
a0da8069 10921
be01d343
PB
10922case " $configdirs " in
10923 *" expect "*)
10924 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10925 ;;
10926esac
a0da8069 10927
be01d343
PB
10928for ac_prog in runtest
10929do
c6b750e1 10930 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10931set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10933$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10934if ${ac_cv_prog_RUNTEST+:} false; then :
81ecdfbb 10935 $as_echo_n "(cached) " >&6
be01d343
PB
10936else
10937 if test -n "$RUNTEST"; then
10938 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10939else
c6b750e1
DJ
10940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941for as_dir in $PATH
10942do
10943 IFS=$as_save_IFS
10944 test -z "$as_dir" && as_dir=.
81ecdfbb 10945 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10947 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 10948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10949 break 2
10950 fi
10951done
81ecdfbb
RW
10952 done
10953IFS=$as_save_IFS
c6b750e1 10954
be01d343
PB
10955fi
10956fi
c6b750e1 10957RUNTEST=$ac_cv_prog_RUNTEST
be01d343 10958if test -n "$RUNTEST"; then
81ecdfbb
RW
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10960$as_echo "$RUNTEST" >&6; }
be01d343 10961else
81ecdfbb
RW
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963$as_echo "no" >&6; }
be01d343 10964fi
a0da8069 10965
81ecdfbb 10966
c6b750e1 10967 test -n "$RUNTEST" && break
be01d343
PB
10968done
10969test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 10970
be01d343
PB
10971case " $configdirs " in
10972 *" dejagnu "*)
6b89cc21 10973 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
10974 ;;
10975esac
a0da8069
NN
10976
10977
a0da8069 10978# Host tools.
859789af
AC
10979ncn_tool_prefix=
10980test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10981ncn_target_tool_prefix=
10982test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10983
9a819804
AO
10984
10985
10986if test -n "$AR"; then
10987 ac_cv_prog_AR=$AR
10988elif test -n "$ac_cv_prog_AR"; then
10989 AR=$ac_cv_prog_AR
10990fi
10991
10992if test -n "$ac_cv_prog_AR"; then
10993 for ncn_progname in ar; do
10994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10995set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10997$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10998if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 10999 $as_echo_n "(cached) " >&6
9a819804
AO
11000else
11001 if test -n "$AR"; then
11002 ac_cv_prog_AR="$AR" # Let the user override the test.
11003else
11004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11005for as_dir in $PATH
11006do
11007 IFS=$as_save_IFS
11008 test -z "$as_dir" && as_dir=.
81ecdfbb 11009 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11011 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 11012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11013 break 2
11014 fi
11015done
81ecdfbb
RW
11016 done
11017IFS=$as_save_IFS
9a819804
AO
11018
11019fi
11020fi
11021AR=$ac_cv_prog_AR
11022if test -n "$AR"; then
81ecdfbb
RW
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11024$as_echo "$AR" >&6; }
9a819804 11025else
81ecdfbb
RW
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11027$as_echo "no" >&6; }
9a819804
AO
11028fi
11029
81ecdfbb 11030
9a819804
AO
11031 done
11032fi
11033
11034for ncn_progname in ar; do
05cbd757
PB
11035 if test -n "$ncn_tool_prefix"; then
11036 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11037set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11039$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11040if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 11041 $as_echo_n "(cached) " >&6
859789af
AC
11042else
11043 if test -n "$AR"; then
11044 ac_cv_prog_AR="$AR" # Let the user override the test.
11045else
c6b750e1
DJ
11046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047for as_dir in $PATH
11048do
11049 IFS=$as_save_IFS
11050 test -z "$as_dir" && as_dir=.
81ecdfbb 11051 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11053 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11055 break 2
11056 fi
11057done
81ecdfbb
RW
11058 done
11059IFS=$as_save_IFS
c6b750e1 11060
859789af
AC
11061fi
11062fi
c6b750e1 11063AR=$ac_cv_prog_AR
859789af 11064if test -n "$AR"; then
81ecdfbb
RW
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11066$as_echo "$AR" >&6; }
859789af 11067else
81ecdfbb
RW
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11069$as_echo "no" >&6; }
859789af
AC
11070fi
11071
81ecdfbb 11072
05cbd757
PB
11073 fi
11074 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
11075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11076set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11078$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11079if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 11080 $as_echo_n "(cached) " >&6
859789af 11081else
05cbd757
PB
11082 if test -n "$AR"; then
11083 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 11084else
c6b750e1
DJ
11085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11086for as_dir in $PATH
11087do
11088 IFS=$as_save_IFS
11089 test -z "$as_dir" && as_dir=.
81ecdfbb 11090 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11092 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 11093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11094 break 2
11095 fi
11096done
81ecdfbb
RW
11097 done
11098IFS=$as_save_IFS
c6b750e1 11099
859789af
AC
11100fi
11101fi
c6b750e1 11102AR=$ac_cv_prog_AR
05cbd757 11103if test -n "$AR"; then
81ecdfbb
RW
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11105$as_echo "$AR" >&6; }
859789af 11106else
81ecdfbb
RW
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108$as_echo "no" >&6; }
859789af 11109fi
c6b750e1 11110
81ecdfbb 11111
05cbd757
PB
11112 fi
11113 test -n "$ac_cv_prog_AR" && break
11114done
11115
11116if test -z "$ac_cv_prog_AR" ; then
11117 set dummy ar
11118 if test $build = $host ; then
11119 AR="$2"
859789af 11120 else
05cbd757 11121 AR="${ncn_tool_prefix}$2"
859789af 11122 fi
859789af
AC
11123fi
11124
9a819804
AO
11125
11126
11127if test -n "$AS"; then
11128 ac_cv_prog_AS=$AS
11129elif test -n "$ac_cv_prog_AS"; then
11130 AS=$ac_cv_prog_AS
11131fi
11132
11133if test -n "$ac_cv_prog_AS"; then
11134 for ncn_progname in as; do
11135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11136set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11138$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11139if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 11140 $as_echo_n "(cached) " >&6
9a819804
AO
11141else
11142 if test -n "$AS"; then
11143 ac_cv_prog_AS="$AS" # Let the user override the test.
11144else
11145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11146for as_dir in $PATH
11147do
11148 IFS=$as_save_IFS
11149 test -z "$as_dir" && as_dir=.
81ecdfbb 11150 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11152 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 11153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11154 break 2
11155 fi
11156done
81ecdfbb
RW
11157 done
11158IFS=$as_save_IFS
9a819804
AO
11159
11160fi
11161fi
11162AS=$ac_cv_prog_AS
11163if test -n "$AS"; then
81ecdfbb
RW
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11165$as_echo "$AS" >&6; }
9a819804 11166else
81ecdfbb
RW
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168$as_echo "no" >&6; }
9a819804
AO
11169fi
11170
81ecdfbb 11171
9a819804
AO
11172 done
11173fi
11174
11175for ncn_progname in as; do
05cbd757
PB
11176 if test -n "$ncn_tool_prefix"; then
11177 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11178set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11180$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11181if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 11182 $as_echo_n "(cached) " >&6
859789af
AC
11183else
11184 if test -n "$AS"; then
11185 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
11186else
11187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188for as_dir in $PATH
11189do
11190 IFS=$as_save_IFS
11191 test -z "$as_dir" && as_dir=.
81ecdfbb 11192 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11194 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11196 break 2
11197 fi
11198done
81ecdfbb
RW
11199 done
11200IFS=$as_save_IFS
c6b750e1 11201
859789af
AC
11202fi
11203fi
c6b750e1 11204AS=$ac_cv_prog_AS
859789af 11205if test -n "$AS"; then
81ecdfbb
RW
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11207$as_echo "$AS" >&6; }
859789af 11208else
81ecdfbb
RW
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210$as_echo "no" >&6; }
859789af
AC
11211fi
11212
81ecdfbb 11213
05cbd757
PB
11214 fi
11215 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11216 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11217set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11219$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11220if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 11221 $as_echo_n "(cached) " >&6
859789af 11222else
05cbd757
PB
11223 if test -n "$AS"; then
11224 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 11225else
c6b750e1
DJ
11226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11227for as_dir in $PATH
11228do
11229 IFS=$as_save_IFS
11230 test -z "$as_dir" && as_dir=.
81ecdfbb 11231 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11233 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 11234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11235 break 2
11236 fi
11237done
81ecdfbb
RW
11238 done
11239IFS=$as_save_IFS
c6b750e1 11240
859789af
AC
11241fi
11242fi
c6b750e1 11243AS=$ac_cv_prog_AS
05cbd757 11244if test -n "$AS"; then
81ecdfbb
RW
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11246$as_echo "$AS" >&6; }
859789af 11247else
81ecdfbb
RW
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11249$as_echo "no" >&6; }
859789af 11250fi
c6b750e1 11251
81ecdfbb 11252
05cbd757
PB
11253 fi
11254 test -n "$ac_cv_prog_AS" && break
11255done
11256
11257if test -z "$ac_cv_prog_AS" ; then
11258 set dummy as
11259 if test $build = $host ; then
11260 AS="$2"
859789af 11261 else
05cbd757 11262 AS="${ncn_tool_prefix}$2"
859789af 11263 fi
859789af
AC
11264fi
11265
9a819804
AO
11266
11267
11268if test -n "$DLLTOOL"; then
11269 ac_cv_prog_DLLTOOL=$DLLTOOL
11270elif test -n "$ac_cv_prog_DLLTOOL"; then
11271 DLLTOOL=$ac_cv_prog_DLLTOOL
11272fi
11273
11274if test -n "$ac_cv_prog_DLLTOOL"; then
11275 for ncn_progname in dlltool; do
11276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11277set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11279$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11280if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 11281 $as_echo_n "(cached) " >&6
9a819804
AO
11282else
11283 if test -n "$DLLTOOL"; then
11284 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11285else
11286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287for as_dir in $PATH
11288do
11289 IFS=$as_save_IFS
11290 test -z "$as_dir" && as_dir=.
81ecdfbb 11291 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11293 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 11294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11295 break 2
11296 fi
11297done
81ecdfbb
RW
11298 done
11299IFS=$as_save_IFS
9a819804
AO
11300
11301fi
11302fi
11303DLLTOOL=$ac_cv_prog_DLLTOOL
11304if test -n "$DLLTOOL"; then
81ecdfbb
RW
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11306$as_echo "$DLLTOOL" >&6; }
9a819804 11307else
81ecdfbb
RW
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309$as_echo "no" >&6; }
9a819804
AO
11310fi
11311
81ecdfbb 11312
9a819804
AO
11313 done
11314fi
11315
11316for ncn_progname in dlltool; do
05cbd757
PB
11317 if test -n "$ncn_tool_prefix"; then
11318 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11319set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11321$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11322if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 11323 $as_echo_n "(cached) " >&6
859789af
AC
11324else
11325 if test -n "$DLLTOOL"; then
11326 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11327else
c6b750e1
DJ
11328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329for as_dir in $PATH
11330do
11331 IFS=$as_save_IFS
11332 test -z "$as_dir" && as_dir=.
81ecdfbb 11333 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11335 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11337 break 2
11338 fi
11339done
81ecdfbb
RW
11340 done
11341IFS=$as_save_IFS
c6b750e1 11342
859789af
AC
11343fi
11344fi
c6b750e1 11345DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 11346if test -n "$DLLTOOL"; then
81ecdfbb
RW
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11348$as_echo "$DLLTOOL" >&6; }
859789af 11349else
81ecdfbb
RW
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351$as_echo "no" >&6; }
859789af
AC
11352fi
11353
81ecdfbb 11354
05cbd757
PB
11355 fi
11356 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11358set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11360$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11361if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 11362 $as_echo_n "(cached) " >&6
859789af 11363else
05cbd757
PB
11364 if test -n "$DLLTOOL"; then
11365 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 11366else
c6b750e1
DJ
11367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11368for as_dir in $PATH
11369do
11370 IFS=$as_save_IFS
11371 test -z "$as_dir" && as_dir=.
81ecdfbb 11372 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11374 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 11375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11376 break 2
11377 fi
11378done
81ecdfbb
RW
11379 done
11380IFS=$as_save_IFS
c6b750e1 11381
859789af
AC
11382fi
11383fi
c6b750e1 11384DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 11385if test -n "$DLLTOOL"; then
81ecdfbb
RW
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11387$as_echo "$DLLTOOL" >&6; }
859789af 11388else
81ecdfbb
RW
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390$as_echo "no" >&6; }
859789af 11391fi
c6b750e1 11392
81ecdfbb 11393
05cbd757
PB
11394 fi
11395 test -n "$ac_cv_prog_DLLTOOL" && break
11396done
11397
11398if test -z "$ac_cv_prog_DLLTOOL" ; then
11399 set dummy dlltool
11400 if test $build = $host ; then
11401 DLLTOOL="$2"
859789af 11402 else
05cbd757 11403 DLLTOOL="${ncn_tool_prefix}$2"
859789af 11404 fi
859789af
AC
11405fi
11406
9a819804
AO
11407
11408
228cf97d
AM
11409if test -n "$DSYMUTIL"; then
11410 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11411elif test -n "$ac_cv_prog_DSYMUTIL"; then
11412 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11413fi
11414
11415if test -n "$ac_cv_prog_DSYMUTIL"; then
11416 for ncn_progname in dsymutil; do
11417 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11418set dummy ${ncn_progname}; ac_word=$2
11419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11420$as_echo_n "checking for $ac_word... " >&6; }
11421if ${ac_cv_prog_DSYMUTIL+:} false; then :
11422 $as_echo_n "(cached) " >&6
11423else
11424 if test -n "$DSYMUTIL"; then
11425 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11426else
11427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428for as_dir in $PATH
11429do
11430 IFS=$as_save_IFS
11431 test -z "$as_dir" && as_dir=.
11432 for ac_exec_ext in '' $ac_executable_extensions; do
11433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11434 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11436 break 2
11437 fi
11438done
11439 done
11440IFS=$as_save_IFS
11441
11442fi
11443fi
11444DSYMUTIL=$ac_cv_prog_DSYMUTIL
11445if test -n "$DSYMUTIL"; then
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11447$as_echo "$DSYMUTIL" >&6; }
11448else
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11450$as_echo "no" >&6; }
11451fi
11452
11453
11454 done
11455fi
11456
11457for ncn_progname in dsymutil; do
11458 if test -n "$ncn_tool_prefix"; then
11459 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11460set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11462$as_echo_n "checking for $ac_word... " >&6; }
11463if ${ac_cv_prog_DSYMUTIL+:} false; then :
11464 $as_echo_n "(cached) " >&6
11465else
11466 if test -n "$DSYMUTIL"; then
11467 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11468else
11469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11470for as_dir in $PATH
11471do
11472 IFS=$as_save_IFS
11473 test -z "$as_dir" && as_dir=.
11474 for ac_exec_ext in '' $ac_executable_extensions; do
11475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11476 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11478 break 2
11479 fi
11480done
11481 done
11482IFS=$as_save_IFS
11483
11484fi
11485fi
11486DSYMUTIL=$ac_cv_prog_DSYMUTIL
11487if test -n "$DSYMUTIL"; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11489$as_echo "$DSYMUTIL" >&6; }
11490else
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492$as_echo "no" >&6; }
11493fi
11494
11495
11496 fi
11497 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11499set dummy ${ncn_progname}; ac_word=$2
11500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11501$as_echo_n "checking for $ac_word... " >&6; }
11502if ${ac_cv_prog_DSYMUTIL+:} false; then :
11503 $as_echo_n "(cached) " >&6
11504else
11505 if test -n "$DSYMUTIL"; then
11506 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11507else
11508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11509for as_dir in $PATH
11510do
11511 IFS=$as_save_IFS
11512 test -z "$as_dir" && as_dir=.
11513 for ac_exec_ext in '' $ac_executable_extensions; do
11514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11515 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11517 break 2
11518 fi
11519done
11520 done
11521IFS=$as_save_IFS
11522
11523fi
11524fi
11525DSYMUTIL=$ac_cv_prog_DSYMUTIL
11526if test -n "$DSYMUTIL"; then
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11528$as_echo "$DSYMUTIL" >&6; }
11529else
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11531$as_echo "no" >&6; }
11532fi
11533
11534
11535 fi
11536 test -n "$ac_cv_prog_DSYMUTIL" && break
11537done
11538
11539if test -z "$ac_cv_prog_DSYMUTIL" ; then
11540 set dummy dsymutil
11541 if test $build = $host ; then
11542 DSYMUTIL="$2"
11543 else
11544 DSYMUTIL="${ncn_tool_prefix}$2"
11545 fi
11546fi
11547
11548
11549
9a819804
AO
11550if test -n "$LD"; then
11551 ac_cv_prog_LD=$LD
11552elif test -n "$ac_cv_prog_LD"; then
11553 LD=$ac_cv_prog_LD
11554fi
11555
11556if test -n "$ac_cv_prog_LD"; then
11557 for ncn_progname in ld; do
11558 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11559set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11561$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11562if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 11563 $as_echo_n "(cached) " >&6
9a819804
AO
11564else
11565 if test -n "$LD"; then
11566 ac_cv_prog_LD="$LD" # Let the user override the test.
11567else
11568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569for as_dir in $PATH
11570do
11571 IFS=$as_save_IFS
11572 test -z "$as_dir" && as_dir=.
81ecdfbb 11573 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11575 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 11576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11577 break 2
11578 fi
11579done
81ecdfbb
RW
11580 done
11581IFS=$as_save_IFS
9a819804
AO
11582
11583fi
11584fi
11585LD=$ac_cv_prog_LD
11586if test -n "$LD"; then
81ecdfbb
RW
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11588$as_echo "$LD" >&6; }
9a819804 11589else
81ecdfbb
RW
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591$as_echo "no" >&6; }
9a819804
AO
11592fi
11593
81ecdfbb 11594
9a819804
AO
11595 done
11596fi
11597
11598for ncn_progname in ld; do
05cbd757
PB
11599 if test -n "$ncn_tool_prefix"; then
11600 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11601set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11603$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11604if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 11605 $as_echo_n "(cached) " >&6
859789af
AC
11606else
11607 if test -n "$LD"; then
11608 ac_cv_prog_LD="$LD" # Let the user override the test.
11609else
c6b750e1
DJ
11610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611for as_dir in $PATH
11612do
11613 IFS=$as_save_IFS
11614 test -z "$as_dir" && as_dir=.
81ecdfbb 11615 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11617 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11619 break 2
11620 fi
11621done
81ecdfbb
RW
11622 done
11623IFS=$as_save_IFS
c6b750e1 11624
859789af
AC
11625fi
11626fi
c6b750e1 11627LD=$ac_cv_prog_LD
859789af 11628if test -n "$LD"; then
81ecdfbb
RW
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11630$as_echo "$LD" >&6; }
859789af 11631else
81ecdfbb
RW
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11633$as_echo "no" >&6; }
859789af
AC
11634fi
11635
81ecdfbb 11636
05cbd757
PB
11637 fi
11638 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11639 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11640set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11642$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11643if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 11644 $as_echo_n "(cached) " >&6
859789af 11645else
05cbd757
PB
11646 if test -n "$LD"; then
11647 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 11648else
c6b750e1
DJ
11649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11650for as_dir in $PATH
11651do
11652 IFS=$as_save_IFS
11653 test -z "$as_dir" && as_dir=.
81ecdfbb 11654 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11656 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 11657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11658 break 2
11659 fi
11660done
81ecdfbb
RW
11661 done
11662IFS=$as_save_IFS
c6b750e1 11663
859789af
AC
11664fi
11665fi
c6b750e1 11666LD=$ac_cv_prog_LD
05cbd757 11667if test -n "$LD"; then
81ecdfbb
RW
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11669$as_echo "$LD" >&6; }
859789af 11670else
81ecdfbb
RW
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672$as_echo "no" >&6; }
859789af 11673fi
c6b750e1 11674
81ecdfbb 11675
05cbd757
PB
11676 fi
11677 test -n "$ac_cv_prog_LD" && break
11678done
11679
11680if test -z "$ac_cv_prog_LD" ; then
11681 set dummy ld
11682 if test $build = $host ; then
11683 LD="$2"
859789af 11684 else
05cbd757 11685 LD="${ncn_tool_prefix}$2"
859789af 11686 fi
859789af
AC
11687fi
11688
9a819804
AO
11689
11690
11691if test -n "$LIPO"; then
11692 ac_cv_prog_LIPO=$LIPO
11693elif test -n "$ac_cv_prog_LIPO"; then
11694 LIPO=$ac_cv_prog_LIPO
11695fi
11696
11697if test -n "$ac_cv_prog_LIPO"; then
11698 for ncn_progname in lipo; do
11699 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11700set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11702$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11703if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 11704 $as_echo_n "(cached) " >&6
9a819804
AO
11705else
11706 if test -n "$LIPO"; then
11707 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11708else
11709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710for as_dir in $PATH
11711do
11712 IFS=$as_save_IFS
11713 test -z "$as_dir" && as_dir=.
81ecdfbb 11714 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11716 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 11717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11718 break 2
11719 fi
11720done
81ecdfbb
RW
11721 done
11722IFS=$as_save_IFS
9a819804
AO
11723
11724fi
11725fi
11726LIPO=$ac_cv_prog_LIPO
11727if test -n "$LIPO"; then
81ecdfbb
RW
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11729$as_echo "$LIPO" >&6; }
9a819804 11730else
81ecdfbb
RW
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732$as_echo "no" >&6; }
9a819804
AO
11733fi
11734
81ecdfbb 11735
9a819804
AO
11736 done
11737fi
11738
11739for ncn_progname in lipo; do
be01d343
PB
11740 if test -n "$ncn_tool_prefix"; then
11741 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11742set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11745if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 11746 $as_echo_n "(cached) " >&6
be01d343
PB
11747else
11748 if test -n "$LIPO"; then
11749 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11750else
c6b750e1
DJ
11751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752for as_dir in $PATH
11753do
11754 IFS=$as_save_IFS
11755 test -z "$as_dir" && as_dir=.
81ecdfbb 11756 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11758 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11760 break 2
11761 fi
11762done
81ecdfbb
RW
11763 done
11764IFS=$as_save_IFS
c6b750e1 11765
be01d343
PB
11766fi
11767fi
c6b750e1 11768LIPO=$ac_cv_prog_LIPO
be01d343 11769if test -n "$LIPO"; then
81ecdfbb
RW
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11771$as_echo "$LIPO" >&6; }
be01d343 11772else
81ecdfbb
RW
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774$as_echo "no" >&6; }
be01d343
PB
11775fi
11776
81ecdfbb 11777
be01d343
PB
11778 fi
11779 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11781set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11783$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11784if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 11785 $as_echo_n "(cached) " >&6
be01d343
PB
11786else
11787 if test -n "$LIPO"; then
11788 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11789else
c6b750e1
DJ
11790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11791for as_dir in $PATH
11792do
11793 IFS=$as_save_IFS
11794 test -z "$as_dir" && as_dir=.
81ecdfbb 11795 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11797 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 11798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11799 break 2
11800 fi
11801done
81ecdfbb
RW
11802 done
11803IFS=$as_save_IFS
c6b750e1 11804
be01d343
PB
11805fi
11806fi
c6b750e1 11807LIPO=$ac_cv_prog_LIPO
be01d343 11808if test -n "$LIPO"; then
81ecdfbb
RW
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11810$as_echo "$LIPO" >&6; }
be01d343 11811else
81ecdfbb
RW
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813$as_echo "no" >&6; }
be01d343 11814fi
c6b750e1 11815
81ecdfbb 11816
be01d343
PB
11817 fi
11818 test -n "$ac_cv_prog_LIPO" && break
11819done
11820
11821if test -z "$ac_cv_prog_LIPO" ; then
11822 set dummy lipo
11823 if test $build = $host ; then
11824 LIPO="$2"
11825 else
11826 LIPO="${ncn_tool_prefix}$2"
11827 fi
11828fi
11829
9a819804
AO
11830
11831
11832if test -n "$NM"; then
11833 ac_cv_prog_NM=$NM
11834elif test -n "$ac_cv_prog_NM"; then
11835 NM=$ac_cv_prog_NM
11836fi
11837
11838if test -n "$ac_cv_prog_NM"; then
11839 for ncn_progname in nm; do
11840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11841set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11843$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11844if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 11845 $as_echo_n "(cached) " >&6
859789af
AC
11846else
11847 if test -n "$NM"; then
11848 ac_cv_prog_NM="$NM" # Let the user override the test.
11849else
c6b750e1
DJ
11850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11851for as_dir in $PATH
11852do
11853 IFS=$as_save_IFS
11854 test -z "$as_dir" && as_dir=.
81ecdfbb 11855 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11857 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 11858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11859 break 2
11860 fi
11861done
81ecdfbb
RW
11862 done
11863IFS=$as_save_IFS
c6b750e1 11864
859789af
AC
11865fi
11866fi
c6b750e1 11867NM=$ac_cv_prog_NM
859789af 11868if test -n "$NM"; then
81ecdfbb
RW
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11870$as_echo "$NM" >&6; }
859789af 11871else
81ecdfbb
RW
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873$as_echo "no" >&6; }
859789af
AC
11874fi
11875
81ecdfbb 11876
9a819804
AO
11877 done
11878fi
11879
11880for ncn_progname in nm; do
11881 if test -n "$ncn_tool_prefix"; then
11882 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11883set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11886if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 11887 $as_echo_n "(cached) " >&6
859789af 11888else
05cbd757
PB
11889 if test -n "$NM"; then
11890 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 11891else
c6b750e1
DJ
11892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893for as_dir in $PATH
11894do
11895 IFS=$as_save_IFS
11896 test -z "$as_dir" && as_dir=.
81ecdfbb 11897 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11899 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11901 break 2
11902 fi
11903done
81ecdfbb
RW
11904 done
11905IFS=$as_save_IFS
c6b750e1 11906
859789af
AC
11907fi
11908fi
c6b750e1 11909NM=$ac_cv_prog_NM
05cbd757 11910if test -n "$NM"; then
81ecdfbb
RW
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11912$as_echo "$NM" >&6; }
859789af 11913else
81ecdfbb
RW
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915$as_echo "no" >&6; }
859789af 11916fi
c6b750e1 11917
81ecdfbb 11918
05cbd757 11919 fi
9a819804
AO
11920 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11922set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11924$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11925if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 11926 $as_echo_n "(cached) " >&6
9a819804
AO
11927else
11928 if test -n "$NM"; then
11929 ac_cv_prog_NM="$NM" # Let the user override the test.
11930else
11931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11932for as_dir in $PATH
11933do
11934 IFS=$as_save_IFS
11935 test -z "$as_dir" && as_dir=.
81ecdfbb 11936 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11938 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 11939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11940 break 2
11941 fi
11942done
81ecdfbb
RW
11943 done
11944IFS=$as_save_IFS
9a819804
AO
11945
11946fi
11947fi
11948NM=$ac_cv_prog_NM
11949if test -n "$NM"; then
81ecdfbb
RW
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11951$as_echo "$NM" >&6; }
9a819804 11952else
81ecdfbb
RW
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11954$as_echo "no" >&6; }
9a819804
AO
11955fi
11956
81ecdfbb 11957
9a819804
AO
11958 fi
11959 test -n "$ac_cv_prog_NM" && break
11960done
11961
11962if test -z "$ac_cv_prog_NM" ; then
11963 set dummy nm
11964 if test $build = $host ; then
11965 NM="$2"
11966 else
11967 NM="${ncn_tool_prefix}$2"
11968 fi
11969fi
11970
11971
11972
11973if test -n "$RANLIB"; then
11974 ac_cv_prog_RANLIB=$RANLIB
11975elif test -n "$ac_cv_prog_RANLIB"; then
11976 RANLIB=$ac_cv_prog_RANLIB
11977fi
11978
11979if test -n "$ac_cv_prog_RANLIB"; then
11980 for ncn_progname in ranlib; do
11981 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11982set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11984$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11985if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 11986 $as_echo_n "(cached) " >&6
9a819804
AO
11987else
11988 if test -n "$RANLIB"; then
11989 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11990else
11991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11992for as_dir in $PATH
11993do
11994 IFS=$as_save_IFS
11995 test -z "$as_dir" && as_dir=.
81ecdfbb 11996 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11998 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 11999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12000 break 2
12001 fi
12002done
81ecdfbb
RW
12003 done
12004IFS=$as_save_IFS
9a819804
AO
12005
12006fi
12007fi
12008RANLIB=$ac_cv_prog_RANLIB
12009if test -n "$RANLIB"; then
81ecdfbb
RW
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12011$as_echo "$RANLIB" >&6; }
9a819804 12012else
81ecdfbb
RW
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014$as_echo "no" >&6; }
9a819804
AO
12015fi
12016
81ecdfbb 12017
9a819804
AO
12018 done
12019fi
859789af 12020
9a819804 12021for ncn_progname in ranlib; do
05cbd757
PB
12022 if test -n "$ncn_tool_prefix"; then
12023 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12024set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12026$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12027if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 12028 $as_echo_n "(cached) " >&6
859789af
AC
12029else
12030 if test -n "$RANLIB"; then
12031 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12032else
c6b750e1
DJ
12033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12034for as_dir in $PATH
12035do
12036 IFS=$as_save_IFS
12037 test -z "$as_dir" && as_dir=.
81ecdfbb 12038 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12040 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 12041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12042 break 2
12043 fi
12044done
81ecdfbb
RW
12045 done
12046IFS=$as_save_IFS
c6b750e1 12047
859789af
AC
12048fi
12049fi
c6b750e1 12050RANLIB=$ac_cv_prog_RANLIB
859789af 12051if test -n "$RANLIB"; then
81ecdfbb
RW
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12053$as_echo "$RANLIB" >&6; }
859789af 12054else
81ecdfbb
RW
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12056$as_echo "no" >&6; }
859789af
AC
12057fi
12058
81ecdfbb 12059
05cbd757
PB
12060 fi
12061 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
12062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12063set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12065$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12066if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 12067 $as_echo_n "(cached) " >&6
859789af 12068else
05cbd757
PB
12069 if test -n "$RANLIB"; then
12070 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 12071else
c6b750e1
DJ
12072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12073for as_dir in $PATH
12074do
12075 IFS=$as_save_IFS
12076 test -z "$as_dir" && as_dir=.
81ecdfbb 12077 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12079 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 12080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12081 break 2
12082 fi
12083done
81ecdfbb
RW
12084 done
12085IFS=$as_save_IFS
c6b750e1 12086
859789af
AC
12087fi
12088fi
c6b750e1 12089RANLIB=$ac_cv_prog_RANLIB
05cbd757 12090if test -n "$RANLIB"; then
81ecdfbb
RW
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12092$as_echo "$RANLIB" >&6; }
859789af 12093else
81ecdfbb
RW
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095$as_echo "no" >&6; }
859789af 12096fi
c6b750e1 12097
81ecdfbb 12098
859789af 12099 fi
05cbd757
PB
12100 test -n "$ac_cv_prog_RANLIB" && break
12101done
12102
12103if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 12104 RANLIB="true"
859789af
AC
12105fi
12106
9a819804
AO
12107
12108
12109if test -n "$STRIP"; then
12110 ac_cv_prog_STRIP=$STRIP
12111elif test -n "$ac_cv_prog_STRIP"; then
12112 STRIP=$ac_cv_prog_STRIP
12113fi
12114
12115if test -n "$ac_cv_prog_STRIP"; then
12116 for ncn_progname in strip; do
12117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12118set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12120$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12121if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 12122 $as_echo_n "(cached) " >&6
9a819804
AO
12123else
12124 if test -n "$STRIP"; then
12125 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12126else
12127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128for as_dir in $PATH
12129do
12130 IFS=$as_save_IFS
12131 test -z "$as_dir" && as_dir=.
81ecdfbb 12132 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12134 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 12135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12136 break 2
12137 fi
12138done
81ecdfbb
RW
12139 done
12140IFS=$as_save_IFS
9a819804
AO
12141
12142fi
12143fi
12144STRIP=$ac_cv_prog_STRIP
12145if test -n "$STRIP"; then
81ecdfbb
RW
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12147$as_echo "$STRIP" >&6; }
9a819804 12148else
81ecdfbb
RW
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150$as_echo "no" >&6; }
9a819804
AO
12151fi
12152
81ecdfbb 12153
9a819804
AO
12154 done
12155fi
12156
12157for ncn_progname in strip; do
be01d343
PB
12158 if test -n "$ncn_tool_prefix"; then
12159 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12160set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12162$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12163if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 12164 $as_echo_n "(cached) " >&6
be01d343
PB
12165else
12166 if test -n "$STRIP"; then
12167 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12168else
c6b750e1
DJ
12169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12170for as_dir in $PATH
12171do
12172 IFS=$as_save_IFS
12173 test -z "$as_dir" && as_dir=.
81ecdfbb 12174 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12176 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 12177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12178 break 2
12179 fi
12180done
81ecdfbb
RW
12181 done
12182IFS=$as_save_IFS
c6b750e1 12183
be01d343
PB
12184fi
12185fi
c6b750e1 12186STRIP=$ac_cv_prog_STRIP
be01d343 12187if test -n "$STRIP"; then
81ecdfbb
RW
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12189$as_echo "$STRIP" >&6; }
be01d343 12190else
81ecdfbb
RW
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192$as_echo "no" >&6; }
be01d343
PB
12193fi
12194
81ecdfbb 12195
be01d343
PB
12196 fi
12197 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12198 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12199set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12201$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12202if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 12203 $as_echo_n "(cached) " >&6
be01d343
PB
12204else
12205 if test -n "$STRIP"; then
12206 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12207else
c6b750e1
DJ
12208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12209for as_dir in $PATH
12210do
12211 IFS=$as_save_IFS
12212 test -z "$as_dir" && as_dir=.
81ecdfbb 12213 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12215 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 12216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12217 break 2
12218 fi
12219done
81ecdfbb
RW
12220 done
12221IFS=$as_save_IFS
c6b750e1 12222
be01d343
PB
12223fi
12224fi
c6b750e1 12225STRIP=$ac_cv_prog_STRIP
be01d343 12226if test -n "$STRIP"; then
81ecdfbb
RW
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12228$as_echo "$STRIP" >&6; }
be01d343 12229else
81ecdfbb
RW
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12231$as_echo "no" >&6; }
be01d343 12232fi
c6b750e1 12233
81ecdfbb 12234
be01d343
PB
12235 fi
12236 test -n "$ac_cv_prog_STRIP" && break
12237done
12238
12239if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 12240 STRIP="true"
be01d343
PB
12241fi
12242
9a819804
AO
12243
12244
12245if test -n "$WINDRES"; then
12246 ac_cv_prog_WINDRES=$WINDRES
12247elif test -n "$ac_cv_prog_WINDRES"; then
12248 WINDRES=$ac_cv_prog_WINDRES
12249fi
12250
12251if test -n "$ac_cv_prog_WINDRES"; then
12252 for ncn_progname in windres; do
12253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12254set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12256$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12257if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 12258 $as_echo_n "(cached) " >&6
9a819804
AO
12259else
12260 if test -n "$WINDRES"; then
12261 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12262else
12263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12264for as_dir in $PATH
12265do
12266 IFS=$as_save_IFS
12267 test -z "$as_dir" && as_dir=.
81ecdfbb 12268 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12270 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 12271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12272 break 2
12273 fi
12274done
81ecdfbb
RW
12275 done
12276IFS=$as_save_IFS
9a819804
AO
12277
12278fi
12279fi
12280WINDRES=$ac_cv_prog_WINDRES
12281if test -n "$WINDRES"; then
81ecdfbb
RW
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12283$as_echo "$WINDRES" >&6; }
9a819804 12284else
81ecdfbb
RW
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286$as_echo "no" >&6; }
9a819804
AO
12287fi
12288
81ecdfbb 12289
9a819804
AO
12290 done
12291fi
12292
12293for ncn_progname in windres; do
05cbd757
PB
12294 if test -n "$ncn_tool_prefix"; then
12295 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12296set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12298$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12299if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 12300 $as_echo_n "(cached) " >&6
859789af
AC
12301else
12302 if test -n "$WINDRES"; then
12303 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12304else
c6b750e1
DJ
12305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306for as_dir in $PATH
12307do
12308 IFS=$as_save_IFS
12309 test -z "$as_dir" && as_dir=.
81ecdfbb 12310 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12312 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 12313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12314 break 2
12315 fi
12316done
81ecdfbb
RW
12317 done
12318IFS=$as_save_IFS
c6b750e1 12319
859789af
AC
12320fi
12321fi
c6b750e1 12322WINDRES=$ac_cv_prog_WINDRES
859789af 12323if test -n "$WINDRES"; then
81ecdfbb
RW
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12325$as_echo "$WINDRES" >&6; }
859789af 12326else
81ecdfbb
RW
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328$as_echo "no" >&6; }
859789af
AC
12329fi
12330
81ecdfbb 12331
05cbd757
PB
12332 fi
12333 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12334 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12335set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12337$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12338if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 12339 $as_echo_n "(cached) " >&6
859789af 12340else
05cbd757
PB
12341 if test -n "$WINDRES"; then
12342 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 12343else
c6b750e1
DJ
12344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345for as_dir in $PATH
12346do
12347 IFS=$as_save_IFS
12348 test -z "$as_dir" && as_dir=.
81ecdfbb 12349 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12351 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 12352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12353 break 2
12354 fi
12355done
81ecdfbb
RW
12356 done
12357IFS=$as_save_IFS
c6b750e1 12358
859789af
AC
12359fi
12360fi
c6b750e1 12361WINDRES=$ac_cv_prog_WINDRES
05cbd757 12362if test -n "$WINDRES"; then
81ecdfbb
RW
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12364$as_echo "$WINDRES" >&6; }
859789af 12365else
81ecdfbb
RW
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12367$as_echo "no" >&6; }
859789af 12368fi
c6b750e1 12369
81ecdfbb 12370
05cbd757
PB
12371 fi
12372 test -n "$ac_cv_prog_WINDRES" && break
12373done
12374
12375if test -z "$ac_cv_prog_WINDRES" ; then
12376 set dummy windres
12377 if test $build = $host ; then
12378 WINDRES="$2"
859789af 12379 else
05cbd757 12380 WINDRES="${ncn_tool_prefix}$2"
859789af 12381 fi
859789af
AC
12382fi
12383
9a819804
AO
12384
12385
0c24b341
NC
12386if test -n "$WINDMC"; then
12387 ac_cv_prog_WINDMC=$WINDMC
12388elif test -n "$ac_cv_prog_WINDMC"; then
12389 WINDMC=$ac_cv_prog_WINDMC
12390fi
12391
12392if test -n "$ac_cv_prog_WINDMC"; then
12393 for ncn_progname in windmc; do
12394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12395set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12397$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12398if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 12399 $as_echo_n "(cached) " >&6
0c24b341
NC
12400else
12401 if test -n "$WINDMC"; then
12402 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12403else
12404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12405for as_dir in $PATH
12406do
12407 IFS=$as_save_IFS
12408 test -z "$as_dir" && as_dir=.
81ecdfbb 12409 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 12411 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 12412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12413 break 2
12414 fi
12415done
81ecdfbb
RW
12416 done
12417IFS=$as_save_IFS
0c24b341
NC
12418
12419fi
12420fi
12421WINDMC=$ac_cv_prog_WINDMC
12422if test -n "$WINDMC"; then
81ecdfbb
RW
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12424$as_echo "$WINDMC" >&6; }
0c24b341 12425else
81ecdfbb
RW
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12427$as_echo "no" >&6; }
0c24b341
NC
12428fi
12429
81ecdfbb 12430
0c24b341
NC
12431 done
12432fi
12433
12434for ncn_progname in windmc; do
12435 if test -n "$ncn_tool_prefix"; then
12436 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12437set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12439$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12440if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 12441 $as_echo_n "(cached) " >&6
0c24b341
NC
12442else
12443 if test -n "$WINDMC"; then
12444 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12445else
12446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12447for as_dir in $PATH
12448do
12449 IFS=$as_save_IFS
12450 test -z "$as_dir" && as_dir=.
81ecdfbb 12451 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 12453 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 12454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12455 break 2
12456 fi
12457done
81ecdfbb
RW
12458 done
12459IFS=$as_save_IFS
0c24b341
NC
12460
12461fi
12462fi
12463WINDMC=$ac_cv_prog_WINDMC
12464if test -n "$WINDMC"; then
81ecdfbb
RW
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12466$as_echo "$WINDMC" >&6; }
0c24b341 12467else
81ecdfbb
RW
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469$as_echo "no" >&6; }
0c24b341
NC
12470fi
12471
81ecdfbb 12472
0c24b341
NC
12473 fi
12474 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12475 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12476set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12478$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12479if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 12480 $as_echo_n "(cached) " >&6
0c24b341
NC
12481else
12482 if test -n "$WINDMC"; then
12483 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12484else
12485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12486for as_dir in $PATH
12487do
12488 IFS=$as_save_IFS
12489 test -z "$as_dir" && as_dir=.
81ecdfbb 12490 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 12492 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 12493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12494 break 2
12495 fi
12496done
81ecdfbb
RW
12497 done
12498IFS=$as_save_IFS
0c24b341
NC
12499
12500fi
12501fi
12502WINDMC=$ac_cv_prog_WINDMC
12503if test -n "$WINDMC"; then
81ecdfbb
RW
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12505$as_echo "$WINDMC" >&6; }
0c24b341 12506else
81ecdfbb
RW
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12508$as_echo "no" >&6; }
0c24b341
NC
12509fi
12510
81ecdfbb 12511
0c24b341
NC
12512 fi
12513 test -n "$ac_cv_prog_WINDMC" && break
12514done
12515
12516if test -z "$ac_cv_prog_WINDMC" ; then
12517 set dummy windmc
12518 if test $build = $host ; then
12519 WINDMC="$2"
12520 else
12521 WINDMC="${ncn_tool_prefix}$2"
12522 fi
12523fi
12524
12525
12526
9a819804
AO
12527if test -n "$OBJCOPY"; then
12528 ac_cv_prog_OBJCOPY=$OBJCOPY
12529elif test -n "$ac_cv_prog_OBJCOPY"; then
12530 OBJCOPY=$ac_cv_prog_OBJCOPY
12531fi
12532
12533if test -n "$ac_cv_prog_OBJCOPY"; then
12534 for ncn_progname in objcopy; do
12535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12536set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12538$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12539if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 12540 $as_echo_n "(cached) " >&6
9a819804
AO
12541else
12542 if test -n "$OBJCOPY"; then
12543 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12544else
12545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12546for as_dir in $PATH
12547do
12548 IFS=$as_save_IFS
12549 test -z "$as_dir" && as_dir=.
81ecdfbb 12550 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12552 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 12553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12554 break 2
12555 fi
12556done
81ecdfbb
RW
12557 done
12558IFS=$as_save_IFS
9a819804
AO
12559
12560fi
12561fi
228cf97d
AM
12562OBJCOPY=$ac_cv_prog_OBJCOPY
12563if test -n "$OBJCOPY"; then
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12565$as_echo "$OBJCOPY" >&6; }
12566else
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12568$as_echo "no" >&6; }
12569fi
12570
12571
12572 done
12573fi
12574
12575for ncn_progname in objcopy; do
12576 if test -n "$ncn_tool_prefix"; then
12577 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12578set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12580$as_echo_n "checking for $ac_word... " >&6; }
12581if ${ac_cv_prog_OBJCOPY+:} false; then :
12582 $as_echo_n "(cached) " >&6
12583else
12584 if test -n "$OBJCOPY"; then
12585 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12586else
12587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588for as_dir in $PATH
12589do
12590 IFS=$as_save_IFS
12591 test -z "$as_dir" && as_dir=.
12592 for ac_exec_ext in '' $ac_executable_extensions; do
12593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12594 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12596 break 2
12597 fi
12598done
12599 done
12600IFS=$as_save_IFS
12601
12602fi
12603fi
12604OBJCOPY=$ac_cv_prog_OBJCOPY
12605if test -n "$OBJCOPY"; then
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12607$as_echo "$OBJCOPY" >&6; }
12608else
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610$as_echo "no" >&6; }
12611fi
12612
12613
12614 fi
12615 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12617set dummy ${ncn_progname}; ac_word=$2
12618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12619$as_echo_n "checking for $ac_word... " >&6; }
12620if ${ac_cv_prog_OBJCOPY+:} false; then :
12621 $as_echo_n "(cached) " >&6
12622else
12623 if test -n "$OBJCOPY"; then
12624 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12625else
12626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12627for as_dir in $PATH
12628do
12629 IFS=$as_save_IFS
12630 test -z "$as_dir" && as_dir=.
12631 for ac_exec_ext in '' $ac_executable_extensions; do
12632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12633 ac_cv_prog_OBJCOPY="${ncn_progname}"
12634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12635 break 2
12636 fi
12637done
12638 done
12639IFS=$as_save_IFS
12640
12641fi
12642fi
12643OBJCOPY=$ac_cv_prog_OBJCOPY
12644if test -n "$OBJCOPY"; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12646$as_echo "$OBJCOPY" >&6; }
12647else
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649$as_echo "no" >&6; }
12650fi
12651
12652
12653 fi
12654 test -n "$ac_cv_prog_OBJCOPY" && break
12655done
12656
12657if test -z "$ac_cv_prog_OBJCOPY" ; then
12658 set dummy objcopy
12659 if test $build = $host ; then
12660 OBJCOPY="$2"
12661 else
12662 OBJCOPY="${ncn_tool_prefix}$2"
12663 fi
12664fi
12665
12666
12667
12668if test -n "$OBJDUMP"; then
12669 ac_cv_prog_OBJDUMP=$OBJDUMP
12670elif test -n "$ac_cv_prog_OBJDUMP"; then
12671 OBJDUMP=$ac_cv_prog_OBJDUMP
12672fi
12673
12674if test -n "$ac_cv_prog_OBJDUMP"; then
12675 for ncn_progname in objdump; do
12676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12677set dummy ${ncn_progname}; ac_word=$2
12678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12679$as_echo_n "checking for $ac_word... " >&6; }
12680if ${ac_cv_prog_OBJDUMP+:} false; then :
12681 $as_echo_n "(cached) " >&6
12682else
12683 if test -n "$OBJDUMP"; then
12684 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12685else
12686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687for as_dir in $PATH
12688do
12689 IFS=$as_save_IFS
12690 test -z "$as_dir" && as_dir=.
12691 for ac_exec_ext in '' $ac_executable_extensions; do
12692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12693 ac_cv_prog_OBJDUMP="${ncn_progname}"
12694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12695 break 2
12696 fi
12697done
12698 done
12699IFS=$as_save_IFS
12700
12701fi
12702fi
12703OBJDUMP=$ac_cv_prog_OBJDUMP
12704if test -n "$OBJDUMP"; then
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12706$as_echo "$OBJDUMP" >&6; }
9a819804 12707else
81ecdfbb
RW
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12709$as_echo "no" >&6; }
9a819804
AO
12710fi
12711
81ecdfbb 12712
9a819804
AO
12713 done
12714fi
12715
228cf97d 12716for ncn_progname in objdump; do
05cbd757
PB
12717 if test -n "$ncn_tool_prefix"; then
12718 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12719set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12721$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 12722if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 12723 $as_echo_n "(cached) " >&6
859789af 12724else
228cf97d
AM
12725 if test -n "$OBJDUMP"; then
12726 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 12727else
c6b750e1
DJ
12728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12729for as_dir in $PATH
12730do
12731 IFS=$as_save_IFS
12732 test -z "$as_dir" && as_dir=.
81ecdfbb 12733 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 12735 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 12736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12737 break 2
12738 fi
12739done
81ecdfbb
RW
12740 done
12741IFS=$as_save_IFS
c6b750e1 12742
859789af
AC
12743fi
12744fi
228cf97d
AM
12745OBJDUMP=$ac_cv_prog_OBJDUMP
12746if test -n "$OBJDUMP"; then
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12748$as_echo "$OBJDUMP" >&6; }
859789af 12749else
81ecdfbb
RW
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751$as_echo "no" >&6; }
859789af
AC
12752fi
12753
81ecdfbb 12754
05cbd757 12755 fi
228cf97d 12756 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
05cbd757
PB
12757 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12758set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12760$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 12761if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 12762 $as_echo_n "(cached) " >&6
859789af 12763else
228cf97d
AM
12764 if test -n "$OBJDUMP"; then
12765 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 12766else
c6b750e1
DJ
12767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12768for as_dir in $PATH
12769do
12770 IFS=$as_save_IFS
12771 test -z "$as_dir" && as_dir=.
81ecdfbb 12772 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 12774 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 12775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12776 break 2
12777 fi
12778done
81ecdfbb
RW
12779 done
12780IFS=$as_save_IFS
c6b750e1 12781
859789af
AC
12782fi
12783fi
228cf97d
AM
12784OBJDUMP=$ac_cv_prog_OBJDUMP
12785if test -n "$OBJDUMP"; then
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12787$as_echo "$OBJDUMP" >&6; }
859789af 12788else
81ecdfbb
RW
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790$as_echo "no" >&6; }
859789af 12791fi
c6b750e1 12792
81ecdfbb 12793
05cbd757 12794 fi
228cf97d 12795 test -n "$ac_cv_prog_OBJDUMP" && break
05cbd757
PB
12796done
12797
228cf97d
AM
12798if test -z "$ac_cv_prog_OBJDUMP" ; then
12799 set dummy objdump
05cbd757 12800 if test $build = $host ; then
228cf97d 12801 OBJDUMP="$2"
859789af 12802 else
228cf97d 12803 OBJDUMP="${ncn_tool_prefix}$2"
859789af 12804 fi
859789af
AC
12805fi
12806
9a819804
AO
12807
12808
228cf97d
AM
12809if test -n "$OTOOL"; then
12810 ac_cv_prog_OTOOL=$OTOOL
12811elif test -n "$ac_cv_prog_OTOOL"; then
12812 OTOOL=$ac_cv_prog_OTOOL
9a819804
AO
12813fi
12814
228cf97d
AM
12815if test -n "$ac_cv_prog_OTOOL"; then
12816 for ncn_progname in otool; do
9a819804
AO
12817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12818set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12820$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 12821if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 12822 $as_echo_n "(cached) " >&6
9a819804 12823else
228cf97d
AM
12824 if test -n "$OTOOL"; then
12825 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9a819804
AO
12826else
12827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828for as_dir in $PATH
12829do
12830 IFS=$as_save_IFS
12831 test -z "$as_dir" && as_dir=.
81ecdfbb 12832 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 12834 ac_cv_prog_OTOOL="${ncn_progname}"
81ecdfbb 12835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12836 break 2
12837 fi
12838done
81ecdfbb
RW
12839 done
12840IFS=$as_save_IFS
9a819804
AO
12841
12842fi
12843fi
228cf97d
AM
12844OTOOL=$ac_cv_prog_OTOOL
12845if test -n "$OTOOL"; then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12847$as_echo "$OTOOL" >&6; }
9a819804 12848else
81ecdfbb
RW
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850$as_echo "no" >&6; }
9a819804
AO
12851fi
12852
81ecdfbb 12853
9a819804
AO
12854 done
12855fi
12856
228cf97d 12857for ncn_progname in otool; do
05cbd757
PB
12858 if test -n "$ncn_tool_prefix"; then
12859 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12860set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12862$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 12863if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 12864 $as_echo_n "(cached) " >&6
859789af 12865else
228cf97d
AM
12866 if test -n "$OTOOL"; then
12867 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
859789af 12868else
c6b750e1
DJ
12869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870for as_dir in $PATH
12871do
12872 IFS=$as_save_IFS
12873 test -z "$as_dir" && as_dir=.
81ecdfbb 12874 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 12876 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 12877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12878 break 2
12879 fi
12880done
81ecdfbb
RW
12881 done
12882IFS=$as_save_IFS
c6b750e1 12883
859789af
AC
12884fi
12885fi
228cf97d
AM
12886OTOOL=$ac_cv_prog_OTOOL
12887if test -n "$OTOOL"; then
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12889$as_echo "$OTOOL" >&6; }
859789af 12890else
81ecdfbb
RW
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892$as_echo "no" >&6; }
859789af
AC
12893fi
12894
81ecdfbb 12895
05cbd757 12896 fi
228cf97d 12897 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
05cbd757
PB
12898 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12899set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12901$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 12902if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 12903 $as_echo_n "(cached) " >&6
859789af 12904else
228cf97d
AM
12905 if test -n "$OTOOL"; then
12906 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
859789af 12907else
c6b750e1
DJ
12908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909for as_dir in $PATH
12910do
12911 IFS=$as_save_IFS
12912 test -z "$as_dir" && as_dir=.
81ecdfbb 12913 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 12915 ac_cv_prog_OTOOL="${ncn_progname}"
81ecdfbb 12916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12917 break 2
12918 fi
12919done
81ecdfbb
RW
12920 done
12921IFS=$as_save_IFS
c6b750e1 12922
859789af
AC
12923fi
12924fi
228cf97d
AM
12925OTOOL=$ac_cv_prog_OTOOL
12926if test -n "$OTOOL"; then
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12928$as_echo "$OTOOL" >&6; }
859789af 12929else
81ecdfbb
RW
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12931$as_echo "no" >&6; }
859789af 12932fi
c6b750e1 12933
81ecdfbb 12934
05cbd757 12935 fi
228cf97d 12936 test -n "$ac_cv_prog_OTOOL" && break
05cbd757
PB
12937done
12938
228cf97d
AM
12939if test -z "$ac_cv_prog_OTOOL" ; then
12940 set dummy otool
05cbd757 12941 if test $build = $host ; then
228cf97d 12942 OTOOL="$2"
859789af 12943 else
228cf97d 12944 OTOOL="${ncn_tool_prefix}$2"
859789af 12945 fi
859789af
AC
12946fi
12947
a0da8069
NN
12948
12949
b121d7d4
DD
12950if test -n "$READELF"; then
12951 ac_cv_prog_READELF=$READELF
12952elif test -n "$ac_cv_prog_READELF"; then
12953 READELF=$ac_cv_prog_READELF
12954fi
12955
12956if test -n "$ac_cv_prog_READELF"; then
12957 for ncn_progname in readelf; do
12958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12959set dummy ${ncn_progname}; ac_word=$2
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12962if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
12963 $as_echo_n "(cached) " >&6
12964else
12965 if test -n "$READELF"; then
12966 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12967else
12968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12969for as_dir in $PATH
12970do
12971 IFS=$as_save_IFS
12972 test -z "$as_dir" && as_dir=.
12973 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
12975 ac_cv_prog_READELF="${ncn_progname}"
12976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12977 break 2
12978 fi
12979done
12980 done
12981IFS=$as_save_IFS
12982
12983fi
12984fi
12985READELF=$ac_cv_prog_READELF
12986if test -n "$READELF"; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12988$as_echo "$READELF" >&6; }
12989else
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991$as_echo "no" >&6; }
12992fi
12993
12994
12995 done
12996fi
12997
12998for ncn_progname in readelf; do
12999 if test -n "$ncn_tool_prefix"; then
13000 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13001set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13003$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13004if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
13005 $as_echo_n "(cached) " >&6
13006else
13007 if test -n "$READELF"; then
13008 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13009else
13010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13011for as_dir in $PATH
13012do
13013 IFS=$as_save_IFS
13014 test -z "$as_dir" && as_dir=.
13015 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13017 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
13018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13019 break 2
13020 fi
13021done
13022 done
13023IFS=$as_save_IFS
13024
13025fi
13026fi
13027READELF=$ac_cv_prog_READELF
13028if test -n "$READELF"; then
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13030$as_echo "$READELF" >&6; }
13031else
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033$as_echo "no" >&6; }
13034fi
13035
13036
13037 fi
13038 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
13039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13040set dummy ${ncn_progname}; ac_word=$2
13041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13042$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13043if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
13044 $as_echo_n "(cached) " >&6
13045else
13046 if test -n "$READELF"; then
13047 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13048else
13049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13050for as_dir in $PATH
13051do
13052 IFS=$as_save_IFS
13053 test -z "$as_dir" && as_dir=.
13054 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13056 ac_cv_prog_READELF="${ncn_progname}"
13057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13058 break 2
13059 fi
13060done
13061 done
13062IFS=$as_save_IFS
13063
13064fi
13065fi
13066READELF=$ac_cv_prog_READELF
13067if test -n "$READELF"; then
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13069$as_echo "$READELF" >&6; }
13070else
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13072$as_echo "no" >&6; }
13073fi
13074
13075
13076 fi
13077 test -n "$ac_cv_prog_READELF" && break
13078done
13079
13080if test -z "$ac_cv_prog_READELF" ; then
13081 set dummy readelf
13082 if test $build = $host ; then
13083 READELF="$2"
13084 else
13085 READELF="${ncn_tool_prefix}$2"
13086 fi
13087fi
13088
13089
13090
a0da8069
NN
13091
13092
13093
de83289e 13094
6a6859cb 13095GDCFLAGS=${GDCFLAGS-${CFLAGS}}
228cf97d 13096
9e65489a 13097
50ad1254
L
13098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
13099$as_echo_n "checking for -plugin option... " >&6; }
13100
13101plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
13102plugin_option=
13103for plugin in $plugin_names; do
13104 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
13105 if test x$plugin_so = x$plugin; then
13106 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
13107 fi
13108 if test x$plugin_so != x$plugin; then
13109 plugin_option="--plugin $plugin_so"
13110 break
13111 fi
13112done
03c02f31
L
13113if test -n "$ac_tool_prefix"; then
13114 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13115set dummy ${ac_tool_prefix}ar; ac_word=$2
13116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13117$as_echo_n "checking for $ac_word... " >&6; }
13118if ${ac_cv_prog_AR+:} false; then :
13119 $as_echo_n "(cached) " >&6
13120else
13121 if test -n "$AR"; then
13122 ac_cv_prog_AR="$AR" # Let the user override the test.
13123else
13124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125for as_dir in $PATH
13126do
13127 IFS=$as_save_IFS
13128 test -z "$as_dir" && as_dir=.
13129 for ac_exec_ext in '' $ac_executable_extensions; do
13130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13131 ac_cv_prog_AR="${ac_tool_prefix}ar"
13132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13133 break 2
13134 fi
13135done
13136 done
13137IFS=$as_save_IFS
13138
13139fi
13140fi
13141AR=$ac_cv_prog_AR
13142if test -n "$AR"; then
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13144$as_echo "$AR" >&6; }
13145else
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147$as_echo "no" >&6; }
13148fi
13149
13150
13151fi
13152if test -z "$ac_cv_prog_AR"; then
13153 ac_ct_AR=$AR
13154 # Extract the first word of "ar", so it can be a program name with args.
13155set dummy ar; ac_word=$2
13156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13157$as_echo_n "checking for $ac_word... " >&6; }
13158if ${ac_cv_prog_ac_ct_AR+:} false; then :
13159 $as_echo_n "(cached) " >&6
13160else
13161 if test -n "$ac_ct_AR"; then
13162 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13163else
13164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165for as_dir in $PATH
13166do
13167 IFS=$as_save_IFS
13168 test -z "$as_dir" && as_dir=.
13169 for ac_exec_ext in '' $ac_executable_extensions; do
13170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13171 ac_cv_prog_ac_ct_AR="ar"
13172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13173 break 2
13174 fi
13175done
13176 done
13177IFS=$as_save_IFS
13178
13179fi
13180fi
13181ac_ct_AR=$ac_cv_prog_ac_ct_AR
13182if test -n "$ac_ct_AR"; then
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13184$as_echo "$ac_ct_AR" >&6; }
13185else
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13187$as_echo "no" >&6; }
13188fi
13189
13190 if test "x$ac_ct_AR" = x; then
13191 AR=""
13192 else
13193 case $cross_compiling:$ac_tool_warned in
13194yes:)
13195{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13197ac_tool_warned=yes ;;
13198esac
13199 AR=$ac_ct_AR
13200 fi
13201else
13202 AR="$ac_cv_prog_AR"
13203fi
13204
13205if test "${AR}" = "" ; then
13206 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
13207fi
13208touch conftest.c
13209${AR} $plugin_option rc conftest.a conftest.c
13210if test "$?" != 0; then
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
13212$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
13213 plugin_option=
13214fi
13215rm -f conftest.*
50ad1254
L
13216if test -n "$plugin_option"; then
13217 PLUGIN_OPTION="$plugin_option"
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
13219$as_echo "$plugin_option" >&6; }
13220else
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222$as_echo "no" >&6; }
13223fi
13224
13225AR_PLUGIN_OPTION=
13226RANLIB_PLUGIN_OPTION=
13227if test -n "$PLUGIN_OPTION"; then
13228 if $AR --help 2>&1 | grep -q "\--plugin"; then
13229 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13230 fi
13231 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
13232 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13233 fi
13234fi
13235
13236
13237
be01d343 13238# Target tools.
c6b750e1 13239
81ecdfbb
RW
13240# Check whether --with-build-time-tools was given.
13241if test "${with_build_time_tools+set}" = set; then :
13242 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
13243 x/*) ;;
13244 *)
13245 with_build_time_tools=
81ecdfbb
RW
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
13247$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
13248 ;;
13249 esac
859789af 13250else
2429c060 13251 with_build_time_tools=
81ecdfbb
RW
13252fi
13253
859789af 13254
9a819804
AO
13255
13256
13257if test -n "$CC_FOR_TARGET"; then
13258 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13259elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13260 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13261fi
13262
13263if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13264 for ncn_progname in cc gcc; do
13265 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13266set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13268$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13269if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 13270 $as_echo_n "(cached) " >&6
9a819804
AO
13271else
13272 if test -n "$CC_FOR_TARGET"; then
13273 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13274else
13275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13276for as_dir in $PATH
13277do
13278 IFS=$as_save_IFS
13279 test -z "$as_dir" && as_dir=.
81ecdfbb 13280 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13282 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13284 break 2
13285 fi
13286done
81ecdfbb
RW
13287 done
13288IFS=$as_save_IFS
9a819804
AO
13289
13290fi
13291fi
13292CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13293if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13295$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 13296else
81ecdfbb
RW
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298$as_echo "no" >&6; }
9a819804
AO
13299fi
13300
81ecdfbb 13301
9a819804
AO
13302 done
13303fi
13304
13305if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13306 for ncn_progname in cc gcc; do
81ecdfbb
RW
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13308$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13309 if test -x $with_build_time_tools/${ncn_progname}; then
13310 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13312$as_echo "yes" >&6; }
cac3d6c4 13313 break
2429c060 13314 else
81ecdfbb
RW
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13316$as_echo "no" >&6; }
cac3d6c4
CM
13317 fi
13318 done
55db4b87
PB
13319fi
13320
2429c060
PB
13321if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13322 for ncn_progname in cc gcc; do
13323 if test -n "$ncn_target_tool_prefix"; then
13324 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13325set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13327$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13328if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 13329 $as_echo_n "(cached) " >&6
55db4b87
PB
13330else
13331 if test -n "$CC_FOR_TARGET"; then
13332 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13333else
c6b750e1
DJ
13334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13335for as_dir in $PATH
13336do
13337 IFS=$as_save_IFS
13338 test -z "$as_dir" && as_dir=.
81ecdfbb 13339 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13341 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13343 break 2
13344 fi
13345done
81ecdfbb
RW
13346 done
13347IFS=$as_save_IFS
c6b750e1 13348
55db4b87
PB
13349fi
13350fi
c6b750e1 13351CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 13352if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13354$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 13355else
81ecdfbb
RW
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13357$as_echo "no" >&6; }
55db4b87
PB
13358fi
13359
81ecdfbb 13360
2429c060
PB
13361 fi
13362 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13364set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13366$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13367if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 13368 $as_echo_n "(cached) " >&6
55db4b87 13369else
05cbd757
PB
13370 if test -n "$CC_FOR_TARGET"; then
13371 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 13372else
c6b750e1
DJ
13373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13374for as_dir in $PATH
13375do
13376 IFS=$as_save_IFS
13377 test -z "$as_dir" && as_dir=.
81ecdfbb 13378 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13380 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13382 break 2
13383 fi
13384done
81ecdfbb
RW
13385 done
13386IFS=$as_save_IFS
c6b750e1 13387
55db4b87
PB
13388fi
13389fi
c6b750e1 13390CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 13391if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13393$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 13394else
81ecdfbb
RW
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13396$as_echo "no" >&6; }
55db4b87 13397fi
c6b750e1 13398
81ecdfbb 13399
2429c060
PB
13400 fi
13401 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13402 done
13403fi
c6b750e1 13404
05cbd757
PB
13405if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13406 set dummy cc gcc
13407 if test $build = $target ; then
13408 CC_FOR_TARGET="$2"
55db4b87 13409 else
05cbd757 13410 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 13411 fi
d3f5afc4
MS
13412else
13413 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
13414fi
13415
9a819804
AO
13416
13417
13418if test -n "$CXX_FOR_TARGET"; then
13419 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13420elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13421 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13422fi
13423
13424if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13425 for ncn_progname in c++ g++ cxx gxx; do
13426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13427set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13429$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13430if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 13431 $as_echo_n "(cached) " >&6
9a819804
AO
13432else
13433 if test -n "$CXX_FOR_TARGET"; then
13434 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13435else
13436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13437for as_dir in $PATH
13438do
13439 IFS=$as_save_IFS
13440 test -z "$as_dir" && as_dir=.
81ecdfbb 13441 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13443 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 13444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13445 break 2
13446 fi
13447done
81ecdfbb
RW
13448 done
13449IFS=$as_save_IFS
9a819804
AO
13450
13451fi
13452fi
13453CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13454if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13456$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 13457else
81ecdfbb
RW
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13459$as_echo "no" >&6; }
9a819804
AO
13460fi
13461
81ecdfbb 13462
9a819804
AO
13463 done
13464fi
13465
13466if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13467 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13469$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13470 if test -x $with_build_time_tools/${ncn_progname}; then
13471 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13473$as_echo "yes" >&6; }
2429c060
PB
13474 break
13475 else
81ecdfbb
RW
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477$as_echo "no" >&6; }
2429c060
PB
13478 fi
13479 done
13480fi
13481
13482if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13483 for ncn_progname in c++ g++ cxx gxx; do
13484 if test -n "$ncn_target_tool_prefix"; then
13485 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13486set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13488$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13489if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 13490 $as_echo_n "(cached) " >&6
55db4b87
PB
13491else
13492 if test -n "$CXX_FOR_TARGET"; then
13493 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13494else
c6b750e1
DJ
13495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13496for as_dir in $PATH
13497do
13498 IFS=$as_save_IFS
13499 test -z "$as_dir" && as_dir=.
81ecdfbb 13500 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13502 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13504 break 2
13505 fi
13506done
81ecdfbb
RW
13507 done
13508IFS=$as_save_IFS
c6b750e1 13509
55db4b87
PB
13510fi
13511fi
c6b750e1 13512CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 13513if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13515$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 13516else
81ecdfbb
RW
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13518$as_echo "no" >&6; }
55db4b87
PB
13519fi
13520
81ecdfbb 13521
2429c060
PB
13522 fi
13523 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13525set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13527$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13528if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 13529 $as_echo_n "(cached) " >&6
55db4b87 13530else
05cbd757
PB
13531 if test -n "$CXX_FOR_TARGET"; then
13532 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 13533else
c6b750e1
DJ
13534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13535for as_dir in $PATH
13536do
13537 IFS=$as_save_IFS
13538 test -z "$as_dir" && as_dir=.
81ecdfbb 13539 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13541 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 13542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13543 break 2
13544 fi
13545done
81ecdfbb
RW
13546 done
13547IFS=$as_save_IFS
c6b750e1 13548
55db4b87
PB
13549fi
13550fi
c6b750e1 13551CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 13552if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13554$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 13555else
81ecdfbb
RW
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13557$as_echo "no" >&6; }
55db4b87 13558fi
c6b750e1 13559
81ecdfbb 13560
2429c060
PB
13561 fi
13562 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13563 done
13564fi
c6b750e1 13565
05cbd757
PB
13566if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13567 set dummy c++ g++ cxx gxx
13568 if test $build = $target ; then
13569 CXX_FOR_TARGET="$2"
55db4b87 13570 else
05cbd757 13571 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 13572 fi
d3f5afc4
MS
13573else
13574 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
13575fi
13576
9a819804
AO
13577
13578
13579if test -n "$GCC_FOR_TARGET"; then
13580 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13581elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13582 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13583fi
13584
13585if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13586 for ncn_progname in gcc; do
13587 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13588set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13590$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13591if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 13592 $as_echo_n "(cached) " >&6
9a819804
AO
13593else
13594 if test -n "$GCC_FOR_TARGET"; then
13595 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13596else
13597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13598for as_dir in $PATH
13599do
13600 IFS=$as_save_IFS
13601 test -z "$as_dir" && as_dir=.
81ecdfbb 13602 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13604 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13606 break 2
13607 fi
13608done
81ecdfbb
RW
13609 done
13610IFS=$as_save_IFS
9a819804
AO
13611
13612fi
13613fi
13614GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13615if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13617$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 13618else
81ecdfbb
RW
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13620$as_echo "no" >&6; }
9a819804
AO
13621fi
13622
81ecdfbb 13623
9a819804
AO
13624 done
13625fi
13626
13627if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13628 for ncn_progname in gcc; do
81ecdfbb
RW
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13630$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13631 if test -x $with_build_time_tools/${ncn_progname}; then
13632 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13634$as_echo "yes" >&6; }
2429c060
PB
13635 break
13636 else
81ecdfbb
RW
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13638$as_echo "no" >&6; }
2429c060
PB
13639 fi
13640 done
13641fi
13642
13643if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13644 for ncn_progname in gcc; do
13645 if test -n "$ncn_target_tool_prefix"; then
13646 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13647set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13649$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13650if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 13651 $as_echo_n "(cached) " >&6
859789af 13652else
2429c060
PB
13653 if test -n "$GCC_FOR_TARGET"; then
13654 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 13655else
c6b750e1
DJ
13656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13657for as_dir in $PATH
13658do
13659 IFS=$as_save_IFS
13660 test -z "$as_dir" && as_dir=.
81ecdfbb 13661 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13663 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13665 break 2
13666 fi
13667done
81ecdfbb
RW
13668 done
13669IFS=$as_save_IFS
c6b750e1 13670
55db4b87
PB
13671fi
13672fi
c6b750e1 13673GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 13674if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13676$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 13677else
81ecdfbb
RW
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679$as_echo "no" >&6; }
55db4b87
PB
13680fi
13681
81ecdfbb 13682
2429c060
PB
13683 fi
13684 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13686set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13688$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13689if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 13690 $as_echo_n "(cached) " >&6
55db4b87 13691else
05cbd757
PB
13692 if test -n "$GCC_FOR_TARGET"; then
13693 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 13694else
c6b750e1
DJ
13695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13696for as_dir in $PATH
13697do
13698 IFS=$as_save_IFS
13699 test -z "$as_dir" && as_dir=.
81ecdfbb 13700 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13702 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13704 break 2
13705 fi
13706done
81ecdfbb
RW
13707 done
13708IFS=$as_save_IFS
c6b750e1 13709
55db4b87
PB
13710fi
13711fi
c6b750e1 13712GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 13713if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13715$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 13716else
81ecdfbb
RW
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13718$as_echo "no" >&6; }
55db4b87 13719fi
c6b750e1 13720
81ecdfbb 13721
2429c060
PB
13722 fi
13723 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13724 done
13725fi
c6b750e1 13726
05cbd757
PB
13727if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13728 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
13729else
13730 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
13731fi
13732
9a819804
AO
13733
13734
9a819804
AO
13735if test -n "$GFORTRAN_FOR_TARGET"; then
13736 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13737elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13738 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
13739fi
13740
9a819804
AO
13741if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13742 for ncn_progname in gfortran; do
13743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13744set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13746$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13747if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 13748 $as_echo_n "(cached) " >&6
55db4b87 13749else
9a819804
AO
13750 if test -n "$GFORTRAN_FOR_TARGET"; then
13751 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 13752else
c6b750e1
DJ
13753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754for as_dir in $PATH
13755do
13756 IFS=$as_save_IFS
13757 test -z "$as_dir" && as_dir=.
81ecdfbb 13758 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13760 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 13761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13762 break 2
13763 fi
13764done
81ecdfbb
RW
13765 done
13766IFS=$as_save_IFS
c6b750e1 13767
55db4b87
PB
13768fi
13769fi
9a819804
AO
13770GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13771if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13773$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 13774else
81ecdfbb
RW
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13776$as_echo "no" >&6; }
55db4b87 13777fi
c6b750e1 13778
81ecdfbb 13779
2429c060
PB
13780 done
13781fi
c6b750e1 13782
9a819804 13783if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13784 for ncn_progname in gfortran; do
81ecdfbb
RW
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13786$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13787 if test -x $with_build_time_tools/${ncn_progname}; then
13788 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13790$as_echo "yes" >&6; }
2429c060
PB
13791 break
13792 else
81ecdfbb
RW
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13794$as_echo "no" >&6; }
2429c060
PB
13795 fi
13796 done
13797fi
13798
13799if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13800 for ncn_progname in gfortran; do
13801 if test -n "$ncn_target_tool_prefix"; then
13802 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13803set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13805$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13806if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 13807 $as_echo_n "(cached) " >&6
55db4b87 13808else
228cf97d
AM
13809 if test -n "$GFORTRAN_FOR_TARGET"; then
13810 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13811else
13812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813for as_dir in $PATH
13814do
13815 IFS=$as_save_IFS
13816 test -z "$as_dir" && as_dir=.
13817 for ac_exec_ext in '' $ac_executable_extensions; do
13818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13819 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13821 break 2
13822 fi
13823done
13824 done
13825IFS=$as_save_IFS
13826
13827fi
13828fi
13829GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13830if test -n "$GFORTRAN_FOR_TARGET"; then
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13832$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13833else
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13835$as_echo "no" >&6; }
13836fi
13837
13838
13839 fi
13840 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13842set dummy ${ncn_progname}; ac_word=$2
13843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13844$as_echo_n "checking for $ac_word... " >&6; }
13845if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13846 $as_echo_n "(cached) " >&6
13847else
13848 if test -n "$GFORTRAN_FOR_TARGET"; then
13849 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13850else
13851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13852for as_dir in $PATH
13853do
13854 IFS=$as_save_IFS
13855 test -z "$as_dir" && as_dir=.
13856 for ac_exec_ext in '' $ac_executable_extensions; do
13857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13858 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13860 break 2
13861 fi
13862done
13863 done
13864IFS=$as_save_IFS
13865
13866fi
13867fi
13868GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13869if test -n "$GFORTRAN_FOR_TARGET"; then
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13871$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13872else
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13874$as_echo "no" >&6; }
13875fi
13876
13877
13878 fi
13879 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13880 done
13881fi
13882
13883if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13884 set dummy gfortran
13885 if test $build = $target ; then
13886 GFORTRAN_FOR_TARGET="$2"
13887 else
13888 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13889 fi
13890else
13891 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13892fi
13893
13894
13895
13896if test -n "$GOC_FOR_TARGET"; then
13897 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13898elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13899 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13900fi
13901
13902if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13903 for ncn_progname in gccgo; do
13904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13905set dummy ${ncn_progname}; ac_word=$2
13906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13907$as_echo_n "checking for $ac_word... " >&6; }
13908if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13909 $as_echo_n "(cached) " >&6
13910else
13911 if test -n "$GOC_FOR_TARGET"; then
13912 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13913else
13914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13915for as_dir in $PATH
13916do
13917 IFS=$as_save_IFS
13918 test -z "$as_dir" && as_dir=.
13919 for ac_exec_ext in '' $ac_executable_extensions; do
13920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13921 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13923 break 2
13924 fi
13925done
13926 done
13927IFS=$as_save_IFS
13928
13929fi
13930fi
13931GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13932if test -n "$GOC_FOR_TARGET"; then
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13934$as_echo "$GOC_FOR_TARGET" >&6; }
13935else
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13937$as_echo "no" >&6; }
13938fi
13939
13940
13941 done
13942fi
13943
13944if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13945 for ncn_progname in gccgo; do
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13947$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13948 if test -x $with_build_time_tools/${ncn_progname}; then
13949 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13951$as_echo "yes" >&6; }
13952 break
13953 else
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13955$as_echo "no" >&6; }
13956 fi
13957 done
13958fi
13959
13960if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13961 for ncn_progname in gccgo; do
13962 if test -n "$ncn_target_tool_prefix"; then
13963 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13964set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13966$as_echo_n "checking for $ac_word... " >&6; }
13967if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13968 $as_echo_n "(cached) " >&6
13969else
13970 if test -n "$GOC_FOR_TARGET"; then
13971 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
55db4b87 13972else
c6b750e1
DJ
13973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13974for as_dir in $PATH
13975do
13976 IFS=$as_save_IFS
13977 test -z "$as_dir" && as_dir=.
81ecdfbb 13978 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 13980 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13982 break 2
13983 fi
13984done
81ecdfbb
RW
13985 done
13986IFS=$as_save_IFS
c6b750e1 13987
55db4b87
PB
13988fi
13989fi
228cf97d
AM
13990GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13991if test -n "$GOC_FOR_TARGET"; then
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13993$as_echo "$GOC_FOR_TARGET" >&6; }
55db4b87 13994else
81ecdfbb
RW
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13996$as_echo "no" >&6; }
55db4b87
PB
13997fi
13998
81ecdfbb 13999
2429c060 14000 fi
228cf97d 14001 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
2429c060 14002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 14003set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14005$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 14006if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
81ecdfbb 14007 $as_echo_n "(cached) " >&6
55db4b87 14008else
228cf97d
AM
14009 if test -n "$GOC_FOR_TARGET"; then
14010 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
14011else
14012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14013for as_dir in $PATH
14014do
14015 IFS=$as_save_IFS
14016 test -z "$as_dir" && as_dir=.
81ecdfbb 14017 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 14019 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
81ecdfbb 14020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14021 break 2
14022 fi
14023done
81ecdfbb
RW
14024 done
14025IFS=$as_save_IFS
c6b750e1 14026
55db4b87
PB
14027fi
14028fi
228cf97d
AM
14029GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14030if test -n "$GOC_FOR_TARGET"; then
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
14032$as_echo "$GOC_FOR_TARGET" >&6; }
55db4b87 14033else
81ecdfbb
RW
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14035$as_echo "no" >&6; }
55db4b87 14036fi
c6b750e1 14037
81ecdfbb 14038
2429c060 14039 fi
228cf97d 14040 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
2429c060
PB
14041 done
14042fi
c6b750e1 14043
228cf97d
AM
14044if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
14045 set dummy gccgo
05cbd757 14046 if test $build = $target ; then
228cf97d 14047 GOC_FOR_TARGET="$2"
55db4b87 14048 else
228cf97d 14049 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 14050 fi
d3f5afc4 14051else
228cf97d 14052 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
859789af
AC
14053fi
14054
2429c060
PB
14055
14056
228cf97d
AM
14057if test -n "$GDC_FOR_TARGET"; then
14058 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
14059elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14060 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
e552509b
ILT
14061fi
14062
228cf97d
AM
14063if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14064 for ncn_progname in gdc; do
e552509b
ILT
14065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14066set dummy ${ncn_progname}; ac_word=$2
14067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14068$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 14069if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
e552509b
ILT
14070 $as_echo_n "(cached) " >&6
14071else
228cf97d
AM
14072 if test -n "$GDC_FOR_TARGET"; then
14073 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
e552509b
ILT
14074else
14075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14076for as_dir in $PATH
14077do
14078 IFS=$as_save_IFS
14079 test -z "$as_dir" && as_dir=.
14080 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 14082 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
e552509b
ILT
14083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14084 break 2
14085 fi
14086done
14087 done
14088IFS=$as_save_IFS
14089
14090fi
14091fi
228cf97d
AM
14092GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14093if test -n "$GDC_FOR_TARGET"; then
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14095$as_echo "$GDC_FOR_TARGET" >&6; }
e552509b
ILT
14096else
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14098$as_echo "no" >&6; }
14099fi
14100
14101
14102 done
14103fi
14104
228cf97d
AM
14105if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14106 for ncn_progname in gdc; do
e552509b
ILT
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14108$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14109 if test -x $with_build_time_tools/${ncn_progname}; then
228cf97d 14110 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
e552509b
ILT
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14112$as_echo "yes" >&6; }
14113 break
14114 else
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14116$as_echo "no" >&6; }
14117 fi
14118 done
14119fi
14120
228cf97d
AM
14121if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
14122 for ncn_progname in gdc; do
e552509b
ILT
14123 if test -n "$ncn_target_tool_prefix"; then
14124 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14125set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14127$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 14128if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
e552509b
ILT
14129 $as_echo_n "(cached) " >&6
14130else
228cf97d
AM
14131 if test -n "$GDC_FOR_TARGET"; then
14132 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
e552509b
ILT
14133else
14134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14135for as_dir in $PATH
14136do
14137 IFS=$as_save_IFS
14138 test -z "$as_dir" && as_dir=.
14139 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 14141 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
e552509b
ILT
14142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14143 break 2
14144 fi
14145done
14146 done
14147IFS=$as_save_IFS
14148
14149fi
14150fi
228cf97d
AM
14151GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14152if test -n "$GDC_FOR_TARGET"; then
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14154$as_echo "$GDC_FOR_TARGET" >&6; }
e552509b
ILT
14155else
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14157$as_echo "no" >&6; }
14158fi
14159
14160
14161 fi
228cf97d 14162 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
e552509b
ILT
14163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14164set dummy ${ncn_progname}; ac_word=$2
14165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14166$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 14167if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
e552509b
ILT
14168 $as_echo_n "(cached) " >&6
14169else
228cf97d
AM
14170 if test -n "$GDC_FOR_TARGET"; then
14171 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
e552509b
ILT
14172else
14173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14174for as_dir in $PATH
14175do
14176 IFS=$as_save_IFS
14177 test -z "$as_dir" && as_dir=.
14178 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 14180 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
e552509b
ILT
14181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14182 break 2
14183 fi
14184done
14185 done
14186IFS=$as_save_IFS
14187
14188fi
14189fi
228cf97d
AM
14190GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14191if test -n "$GDC_FOR_TARGET"; then
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14193$as_echo "$GDC_FOR_TARGET" >&6; }
e552509b
ILT
14194else
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14196$as_echo "no" >&6; }
14197fi
14198
14199
14200 fi
228cf97d 14201 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
e552509b
ILT
14202 done
14203fi
14204
228cf97d
AM
14205if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14206 set dummy gdc
e552509b 14207 if test $build = $target ; then
228cf97d 14208 GDC_FOR_TARGET="$2"
e552509b 14209 else
228cf97d 14210 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
e552509b
ILT
14211 fi
14212else
228cf97d 14213 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
e552509b
ILT
14214fi
14215
14216
14217
6a6859cb
AM
14218if test -n "$GM2_FOR_TARGET"; then
14219 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
14220elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14221 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14222fi
14223
14224if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14225 for ncn_progname in gm2; do
14226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14227set dummy ${ncn_progname}; ac_word=$2
14228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14229$as_echo_n "checking for $ac_word... " >&6; }
14230if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14231 $as_echo_n "(cached) " >&6
14232else
14233 if test -n "$GM2_FOR_TARGET"; then
14234 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14235else
14236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14237for as_dir in $PATH
14238do
14239 IFS=$as_save_IFS
14240 test -z "$as_dir" && as_dir=.
14241 for ac_exec_ext in '' $ac_executable_extensions; do
14242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14243 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14245 break 2
14246 fi
14247done
14248 done
14249IFS=$as_save_IFS
14250
14251fi
14252fi
14253GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14254if test -n "$GM2_FOR_TARGET"; then
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14256$as_echo "$GM2_FOR_TARGET" >&6; }
14257else
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14259$as_echo "no" >&6; }
14260fi
14261
14262
14263 done
14264fi
14265
14266if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
14267 for ncn_progname in gm2; do
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14269$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14270 if test -x $with_build_time_tools/${ncn_progname}; then
14271 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14273$as_echo "yes" >&6; }
14274 break
14275 else
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14277$as_echo "no" >&6; }
14278 fi
14279 done
14280fi
14281
14282if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
14283 for ncn_progname in gm2; do
14284 if test -n "$ncn_target_tool_prefix"; then
14285 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14286set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14288$as_echo_n "checking for $ac_word... " >&6; }
14289if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14290 $as_echo_n "(cached) " >&6
14291else
14292 if test -n "$GM2_FOR_TARGET"; then
14293 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14294else
14295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14296for as_dir in $PATH
14297do
14298 IFS=$as_save_IFS
14299 test -z "$as_dir" && as_dir=.
14300 for ac_exec_ext in '' $ac_executable_extensions; do
14301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14302 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14304 break 2
14305 fi
14306done
14307 done
14308IFS=$as_save_IFS
14309
14310fi
14311fi
14312GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14313if test -n "$GM2_FOR_TARGET"; then
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14315$as_echo "$GM2_FOR_TARGET" >&6; }
14316else
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14318$as_echo "no" >&6; }
14319fi
14320
14321
14322 fi
14323 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14325set dummy ${ncn_progname}; ac_word=$2
14326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14327$as_echo_n "checking for $ac_word... " >&6; }
14328if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14329 $as_echo_n "(cached) " >&6
14330else
14331 if test -n "$GM2_FOR_TARGET"; then
14332 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14333else
14334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14335for as_dir in $PATH
14336do
14337 IFS=$as_save_IFS
14338 test -z "$as_dir" && as_dir=.
14339 for ac_exec_ext in '' $ac_executable_extensions; do
14340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14341 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14343 break 2
14344 fi
14345done
14346 done
14347IFS=$as_save_IFS
14348
14349fi
14350fi
14351GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14352if test -n "$GM2_FOR_TARGET"; then
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14354$as_echo "$GM2_FOR_TARGET" >&6; }
14355else
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14357$as_echo "no" >&6; }
14358fi
14359
14360
14361 fi
14362 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14363 done
14364fi
14365
14366if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14367 set dummy gm2
14368 if test $build = $target ; then
14369 GM2_FOR_TARGET="$2"
14370 else
14371 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14372 fi
14373else
14374 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14375fi
14376
14377
14378
2429c060
PB
14379cat > conftest.c << \EOF
14380#ifdef __GNUC__
14381 gcc_yay;
14382#endif
14383EOF
14384if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14385 have_gcc_for_target=yes
859789af 14386else
2429c060
PB
14387 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14388 have_gcc_for_target=no
859789af 14389fi
2429c060
PB
14390rm conftest.c
14391
14392
14393
859789af 14394
2429c060
PB
14395if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14396 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14398$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14399 if test -x $with_build_time_tools/ar; then
14400 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14401 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14403$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 14404 else
81ecdfbb
RW
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14406$as_echo "no" >&6; }
3a35eeb3 14407 fi
2429c060
PB
14408 elif test $build != $host && test $have_gcc_for_target = yes; then
14409 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
14410 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14411 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 14412 fi
2429c060 14413fi
c6b750e1 14414if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
14415 # Extract the first word of "ar", so it can be a program name with args.
14416set dummy ar; ac_word=$2
81ecdfbb
RW
14417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14418$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14419if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
81ecdfbb 14420 $as_echo_n "(cached) " >&6
859789af 14421else
c6b750e1
DJ
14422 case $AR_FOR_TARGET in
14423 [\\/]* | ?:[\\/]*)
2429c060
PB
14424 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14425 ;;
2429c060 14426 *)
c6b750e1
DJ
14427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14428for as_dir in $gcc_cv_tool_dirs
14429do
14430 IFS=$as_save_IFS
14431 test -z "$as_dir" && as_dir=.
81ecdfbb 14432 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14434 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 14435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14436 break 2
14437 fi
14438done
81ecdfbb
RW
14439 done
14440IFS=$as_save_IFS
c6b750e1 14441
2429c060
PB
14442 ;;
14443esac
859789af 14444fi
c6b750e1 14445AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 14446if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14448$as_echo "$AR_FOR_TARGET" >&6; }
859789af 14449else
81ecdfbb
RW
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14451$as_echo "no" >&6; }
859789af 14452fi
05cbd757 14453
81ecdfbb 14454
2429c060
PB
14455fi
14456if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
14457
14458
14459if test -n "$AR_FOR_TARGET"; then
14460 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14461elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14462 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14463fi
14464
14465if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14466 for ncn_progname in ar; do
14467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14468set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14470$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14471if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 14472 $as_echo_n "(cached) " >&6
9a819804
AO
14473else
14474 if test -n "$AR_FOR_TARGET"; then
14475 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14476else
14477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14478for as_dir in $PATH
14479do
14480 IFS=$as_save_IFS
14481 test -z "$as_dir" && as_dir=.
81ecdfbb 14482 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 14484 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 14485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
14486 break 2
14487 fi
14488done
81ecdfbb
RW
14489 done
14490IFS=$as_save_IFS
9a819804
AO
14491
14492fi
14493fi
14494AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14495if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14497$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 14498else
81ecdfbb
RW
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14500$as_echo "no" >&6; }
9a819804
AO
14501fi
14502
81ecdfbb 14503
9a819804
AO
14504 done
14505fi
14506
14507if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 14508 for ncn_progname in ar; do
81ecdfbb
RW
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14510$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14511 if test -x $with_build_time_tools/${ncn_progname}; then
14512 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14514$as_echo "yes" >&6; }
2429c060
PB
14515 break
14516 else
81ecdfbb
RW
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14518$as_echo "no" >&6; }
2429c060
PB
14519 fi
14520 done
859789af
AC
14521fi
14522
2429c060
PB
14523if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14524 for ncn_progname in ar; do
14525 if test -n "$ncn_target_tool_prefix"; then
14526 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 14527set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
14528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14529$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14530if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 14531 $as_echo_n "(cached) " >&6
7e0f7140 14532else
2429c060
PB
14533 if test -n "$AR_FOR_TARGET"; then
14534 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 14535else
c6b750e1
DJ
14536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14537for as_dir in $PATH
14538do
14539 IFS=$as_save_IFS
14540 test -z "$as_dir" && as_dir=.
81ecdfbb 14541 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14543 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 14544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14545 break 2
14546 fi
14547done
81ecdfbb
RW
14548 done
14549IFS=$as_save_IFS
c6b750e1 14550
7e0f7140
GK
14551fi
14552fi
c6b750e1 14553AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 14554if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14556$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 14557else
81ecdfbb
RW
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14559$as_echo "no" >&6; }
7e0f7140
GK
14560fi
14561
81ecdfbb 14562
2429c060
PB
14563 fi
14564 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 14566set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14568$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14569if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 14570 $as_echo_n "(cached) " >&6
7e0f7140 14571else
2429c060
PB
14572 if test -n "$AR_FOR_TARGET"; then
14573 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 14574else
c6b750e1
DJ
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=.
81ecdfbb 14580 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14582 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 14583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14584 break 2
14585 fi
14586done
81ecdfbb
RW
14587 done
14588IFS=$as_save_IFS
c6b750e1 14589
7e0f7140
GK
14590fi
14591fi
c6b750e1 14592AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 14593if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14595$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 14596else
81ecdfbb
RW
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14598$as_echo "no" >&6; }
7e0f7140 14599fi
c6b750e1 14600
81ecdfbb 14601
2429c060
PB
14602 fi
14603 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14604 done
14605fi
c6b750e1 14606
2429c060
PB
14607if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14608 set dummy ar
7e0f7140 14609 if test $build = $target ; then
2429c060 14610 AR_FOR_TARGET="$2"
7e0f7140 14611 else
2429c060 14612 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 14613 fi
d3f5afc4
MS
14614else
14615 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
14616fi
14617
3a35eeb3
PB
14618else
14619 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
14620fi
14621
14622
14623
14624
14625if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14626 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14628$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14629 if test -x $with_build_time_tools/as; then
14630 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14631 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14633$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 14634 else
81ecdfbb
RW
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14636$as_echo "no" >&6; }
3a35eeb3 14637 fi
2429c060
PB
14638 elif test $build != $host && test $have_gcc_for_target = yes; then
14639 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
14640 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14641 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
14642 fi
14643fi
c6b750e1 14644if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
14645 # Extract the first word of "as", so it can be a program name with args.
14646set dummy as; ac_word=$2
81ecdfbb
RW
14647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14648$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14649if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
81ecdfbb 14650 $as_echo_n "(cached) " >&6
2429c060 14651else
c6b750e1
DJ
14652 case $AS_FOR_TARGET in
14653 [\\/]* | ?:[\\/]*)
2429c060
PB
14654 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14655 ;;
2429c060 14656 *)
c6b750e1
DJ
14657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14658for as_dir in $gcc_cv_tool_dirs
14659do
14660 IFS=$as_save_IFS
14661 test -z "$as_dir" && as_dir=.
81ecdfbb 14662 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14664 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 14665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14666 break 2
14667 fi
14668done
81ecdfbb
RW
14669 done
14670IFS=$as_save_IFS
c6b750e1 14671
2429c060
PB
14672 ;;
14673esac
14674fi
c6b750e1 14675AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 14676if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14678$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 14679else
81ecdfbb
RW
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14681$as_echo "no" >&6; }
2429c060
PB
14682fi
14683
81ecdfbb 14684
2429c060
PB
14685fi
14686if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
14687
14688
14689if test -n "$AS_FOR_TARGET"; then
14690 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14691elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14692 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14693fi
14694
14695if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14696 for ncn_progname in as; do
14697 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14698set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14700$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14701if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 14702 $as_echo_n "(cached) " >&6
9a819804
AO
14703else
14704 if test -n "$AS_FOR_TARGET"; then
14705 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14706else
14707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14708for as_dir in $PATH
14709do
14710 IFS=$as_save_IFS
14711 test -z "$as_dir" && as_dir=.
81ecdfbb 14712 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 14714 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 14715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
14716 break 2
14717 fi
14718done
81ecdfbb
RW
14719 done
14720IFS=$as_save_IFS
9a819804
AO
14721
14722fi
14723fi
14724AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14725if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14727$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 14728else
81ecdfbb
RW
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14730$as_echo "no" >&6; }
9a819804
AO
14731fi
14732
81ecdfbb 14733
9a819804
AO
14734 done
14735fi
14736
14737if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 14738 for ncn_progname in as; do
81ecdfbb
RW
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14740$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14741 if test -x $with_build_time_tools/${ncn_progname}; then
14742 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14744$as_echo "yes" >&6; }
2429c060
PB
14745 break
14746 else
81ecdfbb
RW
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14748$as_echo "no" >&6; }
2429c060
PB
14749 fi
14750 done
14751fi
14752
14753if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14754 for ncn_progname in as; do
14755 if test -n "$ncn_target_tool_prefix"; then
14756 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14757set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
14758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14759$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14760if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 14761 $as_echo_n "(cached) " >&6
2429c060
PB
14762else
14763 if test -n "$AS_FOR_TARGET"; then
14764 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14765else
c6b750e1
DJ
14766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14767for as_dir in $PATH
14768do
14769 IFS=$as_save_IFS
14770 test -z "$as_dir" && as_dir=.
81ecdfbb 14771 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14773 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 14774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14775 break 2
14776 fi
14777done
81ecdfbb
RW
14778 done
14779IFS=$as_save_IFS
c6b750e1 14780
2429c060
PB
14781fi
14782fi
c6b750e1 14783AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 14784if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14786$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 14787else
81ecdfbb
RW
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14789$as_echo "no" >&6; }
2429c060
PB
14790fi
14791
81ecdfbb 14792
2429c060
PB
14793 fi
14794 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14796set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14798$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14799if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 14800 $as_echo_n "(cached) " >&6
2429c060
PB
14801else
14802 if test -n "$AS_FOR_TARGET"; then
14803 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14804else
c6b750e1
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=.
81ecdfbb 14810 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14812 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 14813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14814 break 2
14815 fi
14816done
81ecdfbb
RW
14817 done
14818IFS=$as_save_IFS
c6b750e1 14819
2429c060
PB
14820fi
14821fi
c6b750e1 14822AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 14823if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14825$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 14826else
81ecdfbb
RW
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14828$as_echo "no" >&6; }
2429c060 14829fi
c6b750e1 14830
81ecdfbb 14831
2429c060
PB
14832 fi
14833 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14834 done
14835fi
c6b750e1 14836
2429c060
PB
14837if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14838 set dummy as
14839 if test $build = $target ; then
14840 AS_FOR_TARGET="$2"
14841 else
14842 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14843 fi
d3f5afc4
MS
14844else
14845 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
14846fi
14847
3a35eeb3
PB
14848else
14849 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
14850fi
14851
14852
14853
14854
14855if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14856 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14858$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14859 if test -x $with_build_time_tools/dlltool; then
14860 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14861 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14863$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 14864 else
81ecdfbb
RW
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14866$as_echo "no" >&6; }
3a35eeb3 14867 fi
2429c060
PB
14868 elif test $build != $host && test $have_gcc_for_target = yes; then
14869 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
14870 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14871 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
14872 fi
14873fi
c6b750e1 14874if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
14875 # Extract the first word of "dlltool", so it can be a program name with args.
14876set dummy dlltool; ac_word=$2
81ecdfbb
RW
14877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14878$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14879if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 14880 $as_echo_n "(cached) " >&6
2429c060 14881else
c6b750e1
DJ
14882 case $DLLTOOL_FOR_TARGET in
14883 [\\/]* | ?:[\\/]*)
2429c060
PB
14884 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14885 ;;
2429c060 14886 *)
c6b750e1
DJ
14887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14888for as_dir in $gcc_cv_tool_dirs
14889do
14890 IFS=$as_save_IFS
14891 test -z "$as_dir" && as_dir=.
81ecdfbb 14892 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14894 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 14895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14896 break 2
14897 fi
14898done
81ecdfbb
RW
14899 done
14900IFS=$as_save_IFS
c6b750e1 14901
2429c060
PB
14902 ;;
14903esac
14904fi
c6b750e1 14905DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 14906if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14908$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 14909else
81ecdfbb
RW
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14911$as_echo "no" >&6; }
2429c060
PB
14912fi
14913
81ecdfbb 14914
2429c060
PB
14915fi
14916if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
14917
14918
14919if test -n "$DLLTOOL_FOR_TARGET"; then
14920 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14921elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14922 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14923fi
14924
14925if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14926 for ncn_progname in dlltool; do
14927 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14928set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14930$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14931if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 14932 $as_echo_n "(cached) " >&6
9a819804
AO
14933else
14934 if test -n "$DLLTOOL_FOR_TARGET"; then
14935 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14936else
14937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14938for as_dir in $PATH
14939do
14940 IFS=$as_save_IFS
14941 test -z "$as_dir" && as_dir=.
81ecdfbb 14942 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 14944 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 14945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
14946 break 2
14947 fi
14948done
81ecdfbb
RW
14949 done
14950IFS=$as_save_IFS
9a819804
AO
14951
14952fi
14953fi
14954DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14955if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14957$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 14958else
81ecdfbb
RW
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14960$as_echo "no" >&6; }
9a819804
AO
14961fi
14962
81ecdfbb 14963
9a819804
AO
14964 done
14965fi
14966
14967if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 14968 for ncn_progname in dlltool; do
81ecdfbb
RW
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14970$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14971 if test -x $with_build_time_tools/${ncn_progname}; then
14972 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14974$as_echo "yes" >&6; }
2429c060
PB
14975 break
14976 else
81ecdfbb
RW
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14978$as_echo "no" >&6; }
2429c060
PB
14979 fi
14980 done
14981fi
14982
14983if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14984 for ncn_progname in dlltool; do
14985 if test -n "$ncn_target_tool_prefix"; then
14986 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14987set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
14988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14989$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14990if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 14991 $as_echo_n "(cached) " >&6
2429c060
PB
14992else
14993 if test -n "$DLLTOOL_FOR_TARGET"; then
14994 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14995else
c6b750e1
DJ
14996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14997for as_dir in $PATH
14998do
14999 IFS=$as_save_IFS
15000 test -z "$as_dir" && as_dir=.
81ecdfbb 15001 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15003 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 15004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15005 break 2
15006 fi
15007done
81ecdfbb
RW
15008 done
15009IFS=$as_save_IFS
c6b750e1 15010
2429c060
PB
15011fi
15012fi
c6b750e1 15013DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 15014if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15016$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 15017else
81ecdfbb
RW
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15019$as_echo "no" >&6; }
2429c060
PB
15020fi
15021
81ecdfbb 15022
2429c060
PB
15023 fi
15024 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
15025 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15026set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15028$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15029if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 15030 $as_echo_n "(cached) " >&6
2429c060
PB
15031else
15032 if test -n "$DLLTOOL_FOR_TARGET"; then
15033 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15034else
c6b750e1
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=.
81ecdfbb 15040 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15042 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 15043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15044 break 2
15045 fi
15046done
81ecdfbb
RW
15047 done
15048IFS=$as_save_IFS
c6b750e1 15049
2429c060
PB
15050fi
15051fi
c6b750e1 15052DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 15053if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15055$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 15056else
81ecdfbb
RW
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15058$as_echo "no" >&6; }
2429c060 15059fi
c6b750e1 15060
81ecdfbb 15061
2429c060 15062 fi
228cf97d
AM
15063 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
15064 done
15065fi
15066
15067if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
15068 set dummy dlltool
15069 if test $build = $target ; then
15070 DLLTOOL_FOR_TARGET="$2"
15071 else
15072 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15073 fi
15074else
15075 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
15076fi
15077
15078else
15079 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
15080fi
15081
15082
15083
15084
15085if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15086 if test -n "$with_build_time_tools"; then
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
15088$as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
15089 if test -x $with_build_time_tools/dsymutil; then
15090 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
15091 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
15093$as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
15094 else
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15096$as_echo "no" >&6; }
15097 fi
15098 elif test $build != $host && test $have_gcc_for_target = yes; then
15099 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
15100 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
15101 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15102 fi
15103fi
15104if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15105 # Extract the first word of "dsymutil", so it can be a program name with args.
15106set dummy dsymutil; ac_word=$2
15107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15108$as_echo_n "checking for $ac_word... " >&6; }
15109if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
15110 $as_echo_n "(cached) " >&6
15111else
15112 case $DSYMUTIL_FOR_TARGET in
15113 [\\/]* | ?:[\\/]*)
15114 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
15115 ;;
15116 *)
15117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15118for as_dir in $gcc_cv_tool_dirs
15119do
15120 IFS=$as_save_IFS
15121 test -z "$as_dir" && as_dir=.
15122 for ac_exec_ext in '' $ac_executable_extensions; do
15123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15124 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15126 break 2
15127 fi
15128done
15129 done
15130IFS=$as_save_IFS
15131
15132 ;;
15133esac
15134fi
15135DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15136if test -n "$DSYMUTIL_FOR_TARGET"; then
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15138$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15139else
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15141$as_echo "no" >&6; }
15142fi
15143
15144
15145fi
15146if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15147
15148
15149if test -n "$DSYMUTIL_FOR_TARGET"; then
15150 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15151elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15152 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15153fi
15154
15155if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15156 for ncn_progname in dsymutil; do
15157 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15158set dummy ${ncn_progname}; ac_word=$2
15159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15160$as_echo_n "checking for $ac_word... " >&6; }
15161if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15162 $as_echo_n "(cached) " >&6
15163else
15164 if test -n "$DSYMUTIL_FOR_TARGET"; then
15165 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15166else
15167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15168for as_dir in $PATH
15169do
15170 IFS=$as_save_IFS
15171 test -z "$as_dir" && as_dir=.
15172 for ac_exec_ext in '' $ac_executable_extensions; do
15173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15174 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15176 break 2
15177 fi
15178done
15179 done
15180IFS=$as_save_IFS
15181
15182fi
15183fi
15184DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15185if test -n "$DSYMUTIL_FOR_TARGET"; then
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15187$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15188else
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15190$as_echo "no" >&6; }
15191fi
15192
15193
15194 done
15195fi
15196
15197if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15198 for ncn_progname in dsymutil; do
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15200$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15201 if test -x $with_build_time_tools/${ncn_progname}; then
15202 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15204$as_echo "yes" >&6; }
15205 break
15206 else
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15208$as_echo "no" >&6; }
15209 fi
15210 done
15211fi
15212
15213if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15214 for ncn_progname in dsymutil; do
15215 if test -n "$ncn_target_tool_prefix"; then
15216 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15217set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15219$as_echo_n "checking for $ac_word... " >&6; }
15220if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15221 $as_echo_n "(cached) " >&6
15222else
15223 if test -n "$DSYMUTIL_FOR_TARGET"; then
15224 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15225else
15226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15227for as_dir in $PATH
15228do
15229 IFS=$as_save_IFS
15230 test -z "$as_dir" && as_dir=.
15231 for ac_exec_ext in '' $ac_executable_extensions; do
15232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15233 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15235 break 2
15236 fi
15237done
15238 done
15239IFS=$as_save_IFS
15240
15241fi
15242fi
15243DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15244if test -n "$DSYMUTIL_FOR_TARGET"; then
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15246$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15247else
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15249$as_echo "no" >&6; }
15250fi
15251
15252
15253 fi
15254 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
15255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15256set dummy ${ncn_progname}; ac_word=$2
15257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15258$as_echo_n "checking for $ac_word... " >&6; }
15259if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15260 $as_echo_n "(cached) " >&6
15261else
15262 if test -n "$DSYMUTIL_FOR_TARGET"; then
15263 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15264else
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=.
15270 for ac_exec_ext in '' $ac_executable_extensions; do
15271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15272 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15274 break 2
15275 fi
15276done
15277 done
15278IFS=$as_save_IFS
15279
15280fi
15281fi
15282DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15283if test -n "$DSYMUTIL_FOR_TARGET"; then
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15285$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15286else
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15288$as_echo "no" >&6; }
15289fi
15290
15291
15292 fi
15293 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
2429c060
PB
15294 done
15295fi
c6b750e1 15296
228cf97d
AM
15297if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15298 set dummy dsymutil
2429c060 15299 if test $build = $target ; then
228cf97d 15300 DSYMUTIL_FOR_TARGET="$2"
2429c060 15301 else
228cf97d 15302 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
2429c060 15303 fi
d3f5afc4 15304else
228cf97d 15305 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
2429c060
PB
15306fi
15307
3a35eeb3 15308else
228cf97d 15309 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
2429c060
PB
15310fi
15311
15312
15313
15314
15315if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15316 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
15318$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15319 if test -x $with_build_time_tools/ld; then
15320 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15321 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
15323$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 15324 else
81ecdfbb
RW
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15326$as_echo "no" >&6; }
3a35eeb3 15327 fi
2429c060
PB
15328 elif test $build != $host && test $have_gcc_for_target = yes; then
15329 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
15330 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15331 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
15332 fi
15333fi
c6b750e1 15334if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
15335 # Extract the first word of "ld", so it can be a program name with args.
15336set dummy ld; ac_word=$2
81ecdfbb
RW
15337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15338$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15339if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
81ecdfbb 15340 $as_echo_n "(cached) " >&6
2429c060 15341else
c6b750e1
DJ
15342 case $LD_FOR_TARGET in
15343 [\\/]* | ?:[\\/]*)
2429c060
PB
15344 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15345 ;;
2429c060 15346 *)
c6b750e1
DJ
15347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15348for as_dir in $gcc_cv_tool_dirs
15349do
15350 IFS=$as_save_IFS
15351 test -z "$as_dir" && as_dir=.
81ecdfbb 15352 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15354 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 15355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15356 break 2
15357 fi
15358done
81ecdfbb
RW
15359 done
15360IFS=$as_save_IFS
c6b750e1 15361
2429c060
PB
15362 ;;
15363esac
15364fi
c6b750e1 15365LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 15366if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15368$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 15369else
81ecdfbb
RW
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15371$as_echo "no" >&6; }
2429c060
PB
15372fi
15373
81ecdfbb 15374
2429c060
PB
15375fi
15376if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
15377
15378
15379if test -n "$LD_FOR_TARGET"; then
15380 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15381elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15382 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15383fi
15384
15385if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15386 for ncn_progname in ld; do
15387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15388set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15390$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15391if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 15392 $as_echo_n "(cached) " >&6
9a819804
AO
15393else
15394 if test -n "$LD_FOR_TARGET"; then
15395 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15396else
15397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15398for as_dir in $PATH
15399do
15400 IFS=$as_save_IFS
15401 test -z "$as_dir" && as_dir=.
81ecdfbb 15402 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 15404 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 15405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
15406 break 2
15407 fi
15408done
81ecdfbb
RW
15409 done
15410IFS=$as_save_IFS
9a819804
AO
15411
15412fi
15413fi
15414LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15415if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15417$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 15418else
81ecdfbb
RW
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15420$as_echo "no" >&6; }
9a819804
AO
15421fi
15422
81ecdfbb 15423
9a819804
AO
15424 done
15425fi
15426
15427if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 15428 for ncn_progname in ld; do
81ecdfbb
RW
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15430$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15431 if test -x $with_build_time_tools/${ncn_progname}; then
15432 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15434$as_echo "yes" >&6; }
2429c060
PB
15435 break
15436 else
81ecdfbb
RW
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15438$as_echo "no" >&6; }
2429c060
PB
15439 fi
15440 done
15441fi
15442
15443if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15444 for ncn_progname in ld; do
15445 if test -n "$ncn_target_tool_prefix"; then
15446 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15447set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
15448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15449$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15450if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 15451 $as_echo_n "(cached) " >&6
2429c060
PB
15452else
15453 if test -n "$LD_FOR_TARGET"; then
15454 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15455else
c6b750e1
DJ
15456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15457for as_dir in $PATH
15458do
15459 IFS=$as_save_IFS
15460 test -z "$as_dir" && as_dir=.
81ecdfbb 15461 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15463 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 15464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15465 break 2
15466 fi
15467done
81ecdfbb
RW
15468 done
15469IFS=$as_save_IFS
c6b750e1 15470
2429c060
PB
15471fi
15472fi
c6b750e1 15473LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 15474if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15476$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 15477else
81ecdfbb
RW
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15479$as_echo "no" >&6; }
2429c060
PB
15480fi
15481
81ecdfbb 15482
2429c060
PB
15483 fi
15484 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15486set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15488$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15489if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 15490 $as_echo_n "(cached) " >&6
2429c060
PB
15491else
15492 if test -n "$LD_FOR_TARGET"; then
15493 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15494else
c6b750e1
DJ
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=.
81ecdfbb 15500 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15502 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 15503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15504 break 2
15505 fi
15506done
81ecdfbb
RW
15507 done
15508IFS=$as_save_IFS
c6b750e1 15509
2429c060
PB
15510fi
15511fi
c6b750e1 15512LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 15513if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15515$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 15516else
81ecdfbb
RW
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15518$as_echo "no" >&6; }
2429c060 15519fi
c6b750e1 15520
81ecdfbb 15521
2429c060
PB
15522 fi
15523 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15524 done
15525fi
c6b750e1 15526
2429c060
PB
15527if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15528 set dummy ld
15529 if test $build = $target ; then
15530 LD_FOR_TARGET="$2"
15531 else
15532 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15533 fi
d3f5afc4
MS
15534else
15535 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
15536fi
15537
3a35eeb3
PB
15538else
15539 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
15540fi
15541
15542
15543
15544
15545if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15546 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15548$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15549 if test -x $with_build_time_tools/lipo; then
15550 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15551 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15553$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 15554 else
81ecdfbb
RW
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15556$as_echo "no" >&6; }
3a35eeb3 15557 fi
2429c060
PB
15558 elif test $build != $host && test $have_gcc_for_target = yes; then
15559 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
15560 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15561 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
15562 fi
15563fi
9a819804
AO
15564if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15565 # Extract the first word of "lipo", so it can be a program name with args.
15566set dummy lipo; ac_word=$2
81ecdfbb
RW
15567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15568$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15569if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 15570 $as_echo_n "(cached) " >&6
9a819804
AO
15571else
15572 case $LIPO_FOR_TARGET in
15573 [\\/]* | ?:[\\/]*)
15574 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15575 ;;
15576 *)
15577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15578for as_dir in $gcc_cv_tool_dirs
15579do
15580 IFS=$as_save_IFS
15581 test -z "$as_dir" && as_dir=.
81ecdfbb 15582 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 15584 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 15585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
15586 break 2
15587 fi
15588done
81ecdfbb
RW
15589 done
15590IFS=$as_save_IFS
9a819804
AO
15591
15592 ;;
15593esac
15594fi
15595LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 15596if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15598$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 15599else
81ecdfbb
RW
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15601$as_echo "no" >&6; }
9a819804
AO
15602fi
15603
81ecdfbb 15604
9a819804
AO
15605fi
15606if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15607
15608
15609if test -n "$LIPO_FOR_TARGET"; then
15610 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15611elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15612 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15613fi
15614
15615if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15616 for ncn_progname in lipo; do
15617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15618set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15620$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15621if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 15622 $as_echo_n "(cached) " >&6
2429c060 15623else
9a819804
AO
15624 if test -n "$LIPO_FOR_TARGET"; then
15625 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15626else
15627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15628for as_dir in $PATH
c6b750e1
DJ
15629do
15630 IFS=$as_save_IFS
15631 test -z "$as_dir" && as_dir=.
81ecdfbb 15632 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 15634 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 15635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15636 break 2
15637 fi
15638done
81ecdfbb
RW
15639 done
15640IFS=$as_save_IFS
c6b750e1 15641
2429c060 15642fi
9a819804
AO
15643fi
15644LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 15645if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15647$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 15648else
81ecdfbb
RW
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15650$as_echo "no" >&6; }
2429c060
PB
15651fi
15652
81ecdfbb 15653
9a819804 15654 done
2429c060 15655fi
9a819804
AO
15656
15657if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 15658 for ncn_progname in lipo; do
81ecdfbb
RW
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15660$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15661 if test -x $with_build_time_tools/${ncn_progname}; then
15662 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15664$as_echo "yes" >&6; }
2429c060
PB
15665 break
15666 else
81ecdfbb
RW
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15668$as_echo "no" >&6; }
2429c060
PB
15669 fi
15670 done
15671fi
15672
15673if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15674 for ncn_progname in lipo; do
15675 if test -n "$ncn_target_tool_prefix"; then
15676 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15677set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
15678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15679$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15680if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 15681 $as_echo_n "(cached) " >&6
2429c060
PB
15682else
15683 if test -n "$LIPO_FOR_TARGET"; then
15684 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15685else
c6b750e1
DJ
15686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15687for as_dir in $PATH
15688do
15689 IFS=$as_save_IFS
15690 test -z "$as_dir" && as_dir=.
81ecdfbb 15691 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15693 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 15694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15695 break 2
15696 fi
15697done
81ecdfbb
RW
15698 done
15699IFS=$as_save_IFS
c6b750e1 15700
2429c060
PB
15701fi
15702fi
c6b750e1 15703LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 15704if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15706$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 15707else
81ecdfbb
RW
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15709$as_echo "no" >&6; }
2429c060
PB
15710fi
15711
81ecdfbb 15712
2429c060
PB
15713 fi
15714 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15716set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15718$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15719if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 15720 $as_echo_n "(cached) " >&6
2429c060
PB
15721else
15722 if test -n "$LIPO_FOR_TARGET"; then
15723 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15724else
c6b750e1
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=.
81ecdfbb 15730 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15732 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 15733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15734 break 2
15735 fi
15736done
81ecdfbb
RW
15737 done
15738IFS=$as_save_IFS
c6b750e1 15739
2429c060
PB
15740fi
15741fi
c6b750e1 15742LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 15743if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15745$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 15746else
81ecdfbb
RW
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15748$as_echo "no" >&6; }
2429c060 15749fi
c6b750e1 15750
81ecdfbb 15751
2429c060
PB
15752 fi
15753 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15754 done
15755fi
c6b750e1 15756
2429c060
PB
15757if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15758 set dummy lipo
15759 if test $build = $target ; then
15760 LIPO_FOR_TARGET="$2"
15761 else
15762 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15763 fi
d3f5afc4
MS
15764else
15765 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
15766fi
15767
3a35eeb3
PB
15768else
15769 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
15770fi
15771
15772
15773
15774
15775if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15776 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15778$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15779 if test -x $with_build_time_tools/nm; then
15780 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15781 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15783$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 15784 else
81ecdfbb
RW
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15786$as_echo "no" >&6; }
3a35eeb3 15787 fi
2429c060
PB
15788 elif test $build != $host && test $have_gcc_for_target = yes; then
15789 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
15790 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15791 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
15792 fi
15793fi
c6b750e1 15794if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
15795 # Extract the first word of "nm", so it can be a program name with args.
15796set dummy nm; ac_word=$2
81ecdfbb
RW
15797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15798$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15799if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
81ecdfbb 15800 $as_echo_n "(cached) " >&6
2429c060 15801else
c6b750e1
DJ
15802 case $NM_FOR_TARGET in
15803 [\\/]* | ?:[\\/]*)
2429c060
PB
15804 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15805 ;;
2429c060 15806 *)
c6b750e1
DJ
15807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15808for as_dir in $gcc_cv_tool_dirs
15809do
15810 IFS=$as_save_IFS
15811 test -z "$as_dir" && as_dir=.
81ecdfbb 15812 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15814 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 15815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15816 break 2
15817 fi
15818done
81ecdfbb
RW
15819 done
15820IFS=$as_save_IFS
c6b750e1 15821
2429c060
PB
15822 ;;
15823esac
15824fi
c6b750e1 15825NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 15826if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15828$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 15829else
81ecdfbb
RW
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15831$as_echo "no" >&6; }
2429c060
PB
15832fi
15833
81ecdfbb 15834
2429c060
PB
15835fi
15836if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
15837
15838
15839if test -n "$NM_FOR_TARGET"; then
15840 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15841elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15842 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15843fi
15844
15845if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15846 for ncn_progname in nm; do
15847 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15848set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15850$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15851if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 15852 $as_echo_n "(cached) " >&6
9a819804
AO
15853else
15854 if test -n "$NM_FOR_TARGET"; then
15855 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15856else
15857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15858for as_dir in $PATH
15859do
15860 IFS=$as_save_IFS
15861 test -z "$as_dir" && as_dir=.
81ecdfbb 15862 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 15864 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 15865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
15866 break 2
15867 fi
15868done
81ecdfbb
RW
15869 done
15870IFS=$as_save_IFS
9a819804
AO
15871
15872fi
15873fi
15874NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15875if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15877$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 15878else
81ecdfbb
RW
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15880$as_echo "no" >&6; }
9a819804
AO
15881fi
15882
81ecdfbb 15883
9a819804
AO
15884 done
15885fi
15886
15887if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 15888 for ncn_progname in nm; do
81ecdfbb
RW
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15890$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15891 if test -x $with_build_time_tools/${ncn_progname}; then
15892 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15894$as_echo "yes" >&6; }
2429c060
PB
15895 break
15896 else
81ecdfbb
RW
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15898$as_echo "no" >&6; }
2429c060
PB
15899 fi
15900 done
15901fi
15902
15903if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15904 for ncn_progname in nm; do
15905 if test -n "$ncn_target_tool_prefix"; then
15906 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 15907set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
15908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15909$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15910if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 15911 $as_echo_n "(cached) " >&6
859789af 15912else
55db4b87
PB
15913 if test -n "$NM_FOR_TARGET"; then
15914 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 15915else
c6b750e1
DJ
15916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15917for as_dir in $PATH
15918do
15919 IFS=$as_save_IFS
15920 test -z "$as_dir" && as_dir=.
81ecdfbb 15921 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15923 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 15924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15925 break 2
15926 fi
15927done
81ecdfbb
RW
15928 done
15929IFS=$as_save_IFS
c6b750e1 15930
859789af
AC
15931fi
15932fi
c6b750e1 15933NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 15934if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15936$as_echo "$NM_FOR_TARGET" >&6; }
859789af 15937else
81ecdfbb
RW
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15939$as_echo "no" >&6; }
859789af
AC
15940fi
15941
81ecdfbb 15942
2429c060
PB
15943 fi
15944 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 15946set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15948$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15949if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 15950 $as_echo_n "(cached) " >&6
859789af 15951else
05cbd757
PB
15952 if test -n "$NM_FOR_TARGET"; then
15953 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 15954else
c6b750e1
DJ
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=.
81ecdfbb 15960 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15962 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 15963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15964 break 2
15965 fi
15966done
81ecdfbb
RW
15967 done
15968IFS=$as_save_IFS
c6b750e1 15969
859789af
AC
15970fi
15971fi
c6b750e1 15972NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 15973if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15975$as_echo "$NM_FOR_TARGET" >&6; }
859789af 15976else
81ecdfbb
RW
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15978$as_echo "no" >&6; }
859789af 15979fi
c6b750e1 15980
81ecdfbb 15981
2429c060
PB
15982 fi
15983 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15984 done
15985fi
c6b750e1 15986
05cbd757
PB
15987if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15988 set dummy nm
15989 if test $build = $target ; then
15990 NM_FOR_TARGET="$2"
859789af 15991 else
05cbd757 15992 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 15993 fi
d3f5afc4
MS
15994else
15995 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
15996fi
15997
3a35eeb3
PB
15998else
15999 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
16000fi
16001
16002
16003
16004
6b91c541
AP
16005if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16006 if test -n "$with_build_time_tools"; then
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
16008$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
16009 if test -x $with_build_time_tools/objcopy; then
16010 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
16011 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
16013$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
16014 else
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16016$as_echo "no" >&6; }
16017 fi
16018 elif test $build != $host && test $have_gcc_for_target = yes; then
16019 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
16020 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
16021 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16022 fi
16023fi
16024if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16025 # Extract the first word of "objcopy", so it can be a program name with args.
16026set dummy objcopy; ac_word=$2
16027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16028$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16029if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
16030 $as_echo_n "(cached) " >&6
16031else
16032 case $OBJCOPY_FOR_TARGET in
16033 [\\/]* | ?:[\\/]*)
16034 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
16035 ;;
16036 *)
16037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16038for as_dir in $gcc_cv_tool_dirs
16039do
16040 IFS=$as_save_IFS
16041 test -z "$as_dir" && as_dir=.
16042 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
16044 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16046 break 2
16047 fi
16048done
16049 done
16050IFS=$as_save_IFS
16051
16052 ;;
16053esac
16054fi
16055OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16056if test -n "$OBJCOPY_FOR_TARGET"; then
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16058$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16059else
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16061$as_echo "no" >&6; }
16062fi
16063
16064
16065fi
16066if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16067
16068
16069if test -n "$OBJCOPY_FOR_TARGET"; then
16070 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16071elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16072 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16073fi
16074
16075if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16076 for ncn_progname in objcopy; do
16077 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16078set dummy ${ncn_progname}; ac_word=$2
16079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16080$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16081if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
16082 $as_echo_n "(cached) " >&6
16083else
16084 if test -n "$OBJCOPY_FOR_TARGET"; then
16085 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16086else
16087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16088for as_dir in $PATH
16089do
16090 IFS=$as_save_IFS
16091 test -z "$as_dir" && as_dir=.
16092 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
16094 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16096 break 2
16097 fi
16098done
16099 done
16100IFS=$as_save_IFS
16101
16102fi
16103fi
16104OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16105if test -n "$OBJCOPY_FOR_TARGET"; then
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16107$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16108else
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16110$as_echo "no" >&6; }
16111fi
16112
16113
16114 done
16115fi
16116
16117if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
16118 for ncn_progname in objcopy; do
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16120$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16121 if test -x $with_build_time_tools/${ncn_progname}; then
16122 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16124$as_echo "yes" >&6; }
16125 break
16126 else
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16128$as_echo "no" >&6; }
16129 fi
16130 done
16131fi
16132
16133if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16134 for ncn_progname in objcopy; do
16135 if test -n "$ncn_target_tool_prefix"; then
16136 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16137set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16139$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16140if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
16141 $as_echo_n "(cached) " >&6
16142else
16143 if test -n "$OBJCOPY_FOR_TARGET"; then
16144 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16145else
16146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16147for as_dir in $PATH
16148do
16149 IFS=$as_save_IFS
16150 test -z "$as_dir" && as_dir=.
16151 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
16153 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16155 break 2
16156 fi
16157done
16158 done
16159IFS=$as_save_IFS
16160
16161fi
16162fi
16163OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16164if test -n "$OBJCOPY_FOR_TARGET"; then
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16166$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16167else
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16169$as_echo "no" >&6; }
16170fi
16171
16172
16173 fi
16174 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
16175 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16176set dummy ${ncn_progname}; ac_word=$2
16177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16178$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16179if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
16180 $as_echo_n "(cached) " >&6
16181else
16182 if test -n "$OBJCOPY_FOR_TARGET"; then
16183 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16184else
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=.
16190 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
16192 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16194 break 2
16195 fi
16196done
16197 done
16198IFS=$as_save_IFS
16199
16200fi
16201fi
16202OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16203if test -n "$OBJCOPY_FOR_TARGET"; then
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16205$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16206else
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16208$as_echo "no" >&6; }
16209fi
16210
16211
16212 fi
16213 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
16214 done
16215fi
16216
16217if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
16218 set dummy objcopy
16219 if test $build = $target ; then
16220 OBJCOPY_FOR_TARGET="$2"
16221 else
16222 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
16223 fi
16224else
16225 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
16226fi
16227
16228else
16229 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16230fi
16231
16232
16233
16234
2429c060
PB
16235if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16236 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
16238$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
16239 if test -x $with_build_time_tools/objdump; then
16240 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
16241 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
16243$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 16244 else
81ecdfbb
RW
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16246$as_echo "no" >&6; }
3a35eeb3 16247 fi
2429c060
PB
16248 elif test $build != $host && test $have_gcc_for_target = yes; then
16249 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
16250 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
16251 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
16252 fi
16253fi
c6b750e1 16254if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
16255 # Extract the first word of "objdump", so it can be a program name with args.
16256set dummy objdump; ac_word=$2
81ecdfbb
RW
16257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16258$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16259if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 16260 $as_echo_n "(cached) " >&6
2429c060 16261else
c6b750e1
DJ
16262 case $OBJDUMP_FOR_TARGET in
16263 [\\/]* | ?:[\\/]*)
2429c060
PB
16264 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16265 ;;
2429c060 16266 *)
c6b750e1
DJ
16267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16268for as_dir in $gcc_cv_tool_dirs
16269do
16270 IFS=$as_save_IFS
16271 test -z "$as_dir" && as_dir=.
81ecdfbb 16272 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16274 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 16275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16276 break 2
16277 fi
16278done
81ecdfbb
RW
16279 done
16280IFS=$as_save_IFS
c6b750e1 16281
2429c060
PB
16282 ;;
16283esac
16284fi
c6b750e1 16285OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 16286if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16288$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 16289else
81ecdfbb
RW
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16291$as_echo "no" >&6; }
2429c060
PB
16292fi
16293
81ecdfbb 16294
2429c060
PB
16295fi
16296if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
16297
16298
16299if test -n "$OBJDUMP_FOR_TARGET"; then
16300 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16301elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16302 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16303fi
16304
16305if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16306 for ncn_progname in objdump; do
16307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16308set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
16309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16310$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16311if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 16312 $as_echo_n "(cached) " >&6
9a819804
AO
16313else
16314 if test -n "$OBJDUMP_FOR_TARGET"; then
16315 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16316else
16317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16318for as_dir in $PATH
16319do
16320 IFS=$as_save_IFS
16321 test -z "$as_dir" && as_dir=.
81ecdfbb 16322 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 16324 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 16325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
16326 break 2
16327 fi
16328done
81ecdfbb
RW
16329 done
16330IFS=$as_save_IFS
9a819804
AO
16331
16332fi
16333fi
16334OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16335if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16337$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 16338else
81ecdfbb
RW
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16340$as_echo "no" >&6; }
9a819804
AO
16341fi
16342
81ecdfbb 16343
9a819804
AO
16344 done
16345fi
16346
16347if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 16348 for ncn_progname in objdump; do
81ecdfbb
RW
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16350$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
16351 if test -x $with_build_time_tools/${ncn_progname}; then
16352 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16354$as_echo "yes" >&6; }
2429c060
PB
16355 break
16356 else
81ecdfbb
RW
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16358$as_echo "no" >&6; }
2429c060
PB
16359 fi
16360 done
16361fi
16362
16363if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16364 for ncn_progname in objdump; do
16365 if test -n "$ncn_target_tool_prefix"; then
16366 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 16367set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
16368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16369$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16370if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 16371 $as_echo_n "(cached) " >&6
5ae72758
DJ
16372else
16373 if test -n "$OBJDUMP_FOR_TARGET"; then
16374 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16375else
c6b750e1
DJ
16376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16377for as_dir in $PATH
16378do
16379 IFS=$as_save_IFS
16380 test -z "$as_dir" && as_dir=.
81ecdfbb 16381 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16383 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 16384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16385 break 2
16386 fi
16387done
81ecdfbb
RW
16388 done
16389IFS=$as_save_IFS
c6b750e1 16390
5ae72758
DJ
16391fi
16392fi
c6b750e1 16393OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 16394if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16396$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 16397else
81ecdfbb
RW
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16399$as_echo "no" >&6; }
5ae72758
DJ
16400fi
16401
81ecdfbb 16402
2429c060
PB
16403 fi
16404 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 16406set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
16407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16408$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16409if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 16410 $as_echo_n "(cached) " >&6
5ae72758
DJ
16411else
16412 if test -n "$OBJDUMP_FOR_TARGET"; then
16413 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16414else
c6b750e1
DJ
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=.
81ecdfbb 16420 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16422 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 16423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16424 break 2
16425 fi
16426done
81ecdfbb
RW
16427 done
16428IFS=$as_save_IFS
c6b750e1 16429
5ae72758
DJ
16430fi
16431fi
c6b750e1 16432OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 16433if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16435$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 16436else
81ecdfbb
RW
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16438$as_echo "no" >&6; }
5ae72758 16439fi
c6b750e1 16440
81ecdfbb 16441
2429c060
PB
16442 fi
16443 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16444 done
16445fi
c6b750e1 16446
5ae72758
DJ
16447if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16448 set dummy objdump
16449 if test $build = $target ; then
16450 OBJDUMP_FOR_TARGET="$2"
16451 else
16452 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16453 fi
d3f5afc4
MS
16454else
16455 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
16456fi
16457
3a35eeb3
PB
16458else
16459 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
16460fi
16461
16462
16463
16464
228cf97d
AM
16465if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16466 if test -n "$with_build_time_tools"; then
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16468$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16469 if test -x $with_build_time_tools/otool; then
16470 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16471 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16473$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16474 else
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16476$as_echo "no" >&6; }
16477 fi
16478 elif test $build != $host && test $have_gcc_for_target = yes; then
16479 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16480 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16481 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16482 fi
16483fi
16484if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16485 # Extract the first word of "otool", so it can be a program name with args.
16486set dummy otool; ac_word=$2
16487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16488$as_echo_n "checking for $ac_word... " >&6; }
16489if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16490 $as_echo_n "(cached) " >&6
16491else
16492 case $OTOOL_FOR_TARGET in
16493 [\\/]* | ?:[\\/]*)
16494 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16495 ;;
16496 *)
16497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16498for as_dir in $gcc_cv_tool_dirs
16499do
16500 IFS=$as_save_IFS
16501 test -z "$as_dir" && as_dir=.
16502 for ac_exec_ext in '' $ac_executable_extensions; do
16503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16504 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16506 break 2
16507 fi
16508done
16509 done
16510IFS=$as_save_IFS
16511
16512 ;;
16513esac
16514fi
16515OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16516if test -n "$OTOOL_FOR_TARGET"; then
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16518$as_echo "$OTOOL_FOR_TARGET" >&6; }
16519else
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16521$as_echo "no" >&6; }
16522fi
16523
16524
16525fi
16526if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16527
16528
16529if test -n "$OTOOL_FOR_TARGET"; then
16530 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16531elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16532 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16533fi
16534
16535if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16536 for ncn_progname in otool; do
16537 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16538set dummy ${ncn_progname}; ac_word=$2
16539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16540$as_echo_n "checking for $ac_word... " >&6; }
16541if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16542 $as_echo_n "(cached) " >&6
16543else
16544 if test -n "$OTOOL_FOR_TARGET"; then
16545 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16546else
16547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16548for as_dir in $PATH
16549do
16550 IFS=$as_save_IFS
16551 test -z "$as_dir" && as_dir=.
16552 for ac_exec_ext in '' $ac_executable_extensions; do
16553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16554 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16556 break 2
16557 fi
16558done
16559 done
16560IFS=$as_save_IFS
16561
16562fi
16563fi
16564OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16565if test -n "$OTOOL_FOR_TARGET"; then
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16567$as_echo "$OTOOL_FOR_TARGET" >&6; }
16568else
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16570$as_echo "no" >&6; }
16571fi
16572
16573
16574 done
16575fi
16576
16577if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16578 for ncn_progname in otool; do
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16580$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16581 if test -x $with_build_time_tools/${ncn_progname}; then
16582 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16584$as_echo "yes" >&6; }
16585 break
16586 else
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16588$as_echo "no" >&6; }
16589 fi
16590 done
16591fi
16592
16593if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16594 for ncn_progname in otool; do
16595 if test -n "$ncn_target_tool_prefix"; then
16596 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16597set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16599$as_echo_n "checking for $ac_word... " >&6; }
16600if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16601 $as_echo_n "(cached) " >&6
16602else
16603 if test -n "$OTOOL_FOR_TARGET"; then
16604 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16605else
16606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16607for as_dir in $PATH
16608do
16609 IFS=$as_save_IFS
16610 test -z "$as_dir" && as_dir=.
16611 for ac_exec_ext in '' $ac_executable_extensions; do
16612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16613 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16615 break 2
16616 fi
16617done
16618 done
16619IFS=$as_save_IFS
16620
16621fi
16622fi
16623OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16624if test -n "$OTOOL_FOR_TARGET"; then
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16626$as_echo "$OTOOL_FOR_TARGET" >&6; }
16627else
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16629$as_echo "no" >&6; }
16630fi
16631
16632
16633 fi
16634 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16636set dummy ${ncn_progname}; ac_word=$2
16637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16638$as_echo_n "checking for $ac_word... " >&6; }
16639if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16640 $as_echo_n "(cached) " >&6
16641else
16642 if test -n "$OTOOL_FOR_TARGET"; then
16643 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_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=.
16650 for ac_exec_ext in '' $ac_executable_extensions; do
16651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16652 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16654 break 2
16655 fi
16656done
16657 done
16658IFS=$as_save_IFS
16659
16660fi
16661fi
16662OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16663if test -n "$OTOOL_FOR_TARGET"; then
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16665$as_echo "$OTOOL_FOR_TARGET" >&6; }
16666else
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16668$as_echo "no" >&6; }
16669fi
16670
16671
16672 fi
16673 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16674 done
16675fi
16676
16677if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16678 set dummy otool
16679 if test $build = $target ; then
16680 OTOOL_FOR_TARGET="$2"
16681 else
16682 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16683 fi
16684else
16685 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16686fi
16687
16688else
16689 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16690fi
16691
16692
16693
16694
2429c060
PB
16695if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16696 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16698$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
16699 if test -x $with_build_time_tools/ranlib; then
16700 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16701 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16703$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 16704 else
81ecdfbb
RW
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16706$as_echo "no" >&6; }
3a35eeb3 16707 fi
2429c060
PB
16708 elif test $build != $host && test $have_gcc_for_target = yes; then
16709 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
16710 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16711 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
16712 fi
16713fi
c6b750e1 16714if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
16715 # Extract the first word of "ranlib", so it can be a program name with args.
16716set dummy ranlib; ac_word=$2
81ecdfbb
RW
16717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16718$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16719if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 16720 $as_echo_n "(cached) " >&6
2429c060 16721else
c6b750e1
DJ
16722 case $RANLIB_FOR_TARGET in
16723 [\\/]* | ?:[\\/]*)
2429c060
PB
16724 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16725 ;;
2429c060 16726 *)
c6b750e1
DJ
16727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16728for as_dir in $gcc_cv_tool_dirs
16729do
16730 IFS=$as_save_IFS
16731 test -z "$as_dir" && as_dir=.
81ecdfbb 16732 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16734 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 16735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16736 break 2
16737 fi
16738done
81ecdfbb
RW
16739 done
16740IFS=$as_save_IFS
c6b750e1 16741
2429c060
PB
16742 ;;
16743esac
16744fi
c6b750e1 16745RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 16746if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16748$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 16749else
81ecdfbb
RW
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16751$as_echo "no" >&6; }
2429c060
PB
16752fi
16753
81ecdfbb 16754
2429c060
PB
16755fi
16756if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
16757
16758
16759if test -n "$RANLIB_FOR_TARGET"; then
16760 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16761elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16762 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16763fi
16764
16765if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16766 for ncn_progname in ranlib; do
16767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16768set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
16769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16770$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16771if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 16772 $as_echo_n "(cached) " >&6
9a819804
AO
16773else
16774 if test -n "$RANLIB_FOR_TARGET"; then
16775 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16776else
16777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16778for as_dir in $PATH
16779do
16780 IFS=$as_save_IFS
16781 test -z "$as_dir" && as_dir=.
81ecdfbb 16782 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 16784 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 16785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
16786 break 2
16787 fi
16788done
81ecdfbb
RW
16789 done
16790IFS=$as_save_IFS
9a819804
AO
16791
16792fi
16793fi
16794RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16795if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16797$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 16798else
81ecdfbb
RW
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16800$as_echo "no" >&6; }
9a819804
AO
16801fi
16802
81ecdfbb 16803
9a819804
AO
16804 done
16805fi
16806
16807if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 16808 for ncn_progname in ranlib; do
81ecdfbb
RW
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16810$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
16811 if test -x $with_build_time_tools/${ncn_progname}; then
16812 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16814$as_echo "yes" >&6; }
2429c060
PB
16815 break
16816 else
81ecdfbb
RW
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16818$as_echo "no" >&6; }
2429c060
PB
16819 fi
16820 done
16821fi
16822
16823if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16824 for ncn_progname in ranlib; do
16825 if test -n "$ncn_target_tool_prefix"; then
16826 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 16827set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
16828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16829$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16830if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 16831 $as_echo_n "(cached) " >&6
859789af 16832else
55db4b87
PB
16833 if test -n "$RANLIB_FOR_TARGET"; then
16834 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 16835else
c6b750e1
DJ
16836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16837for as_dir in $PATH
16838do
16839 IFS=$as_save_IFS
16840 test -z "$as_dir" && as_dir=.
81ecdfbb 16841 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16843 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 16844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16845 break 2
16846 fi
16847done
81ecdfbb
RW
16848 done
16849IFS=$as_save_IFS
c6b750e1 16850
859789af
AC
16851fi
16852fi
c6b750e1 16853RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 16854if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16856$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 16857else
81ecdfbb
RW
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16859$as_echo "no" >&6; }
859789af
AC
16860fi
16861
81ecdfbb 16862
2429c060
PB
16863 fi
16864 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 16866set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
16867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16868$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16869if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 16870 $as_echo_n "(cached) " >&6
859789af 16871else
05cbd757
PB
16872 if test -n "$RANLIB_FOR_TARGET"; then
16873 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 16874else
c6b750e1
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=.
81ecdfbb 16880 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16882 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 16883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16884 break 2
16885 fi
16886done
81ecdfbb
RW
16887 done
16888IFS=$as_save_IFS
c6b750e1 16889
859789af
AC
16890fi
16891fi
c6b750e1 16892RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 16893if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16895$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 16896else
81ecdfbb
RW
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16898$as_echo "no" >&6; }
859789af 16899fi
c6b750e1 16900
81ecdfbb 16901
2429c060
PB
16902 fi
16903 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16904 done
16905fi
c6b750e1 16906
2429c060
PB
16907if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16908 set dummy ranlib
16909 if test $build = $target ; then
16910 RANLIB_FOR_TARGET="$2"
16911 else
16912 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 16913 fi
d3f5afc4
MS
16914else
16915 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 16916fi
05cbd757 16917
3a35eeb3
PB
16918else
16919 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
16920fi
16921
2429c060
PB
16922
16923
16924
b121d7d4
DD
16925if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16926 if test -n "$with_build_time_tools"; then
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16928$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16929 if test -x $with_build_time_tools/readelf; then
16930 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16931 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16933$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16934 else
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16936$as_echo "no" >&6; }
16937 fi
16938 elif test $build != $host && test $have_gcc_for_target = yes; then
16939 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16940 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16941 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16942 fi
16943fi
16944if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16945 # Extract the first word of "readelf", so it can be a program name with args.
16946set dummy readelf; ac_word=$2
16947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16948$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16949if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
16950 $as_echo_n "(cached) " >&6
16951else
16952 case $READELF_FOR_TARGET in
16953 [\\/]* | ?:[\\/]*)
16954 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16955 ;;
16956 *)
16957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16958for as_dir in $gcc_cv_tool_dirs
16959do
16960 IFS=$as_save_IFS
16961 test -z "$as_dir" && as_dir=.
16962 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
16964 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16966 break 2
16967 fi
16968done
16969 done
16970IFS=$as_save_IFS
16971
16972 ;;
16973esac
16974fi
16975READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16976if test -n "$READELF_FOR_TARGET"; then
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16978$as_echo "$READELF_FOR_TARGET" >&6; }
16979else
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16981$as_echo "no" >&6; }
16982fi
16983
16984
16985fi
16986if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16987
16988
16989if test -n "$READELF_FOR_TARGET"; then
16990 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16991elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16992 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16993fi
16994
16995if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16996 for ncn_progname in readelf; do
16997 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16998set dummy ${ncn_progname}; ac_word=$2
16999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17000$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17001if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
17002 $as_echo_n "(cached) " >&6
17003else
17004 if test -n "$READELF_FOR_TARGET"; then
17005 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17006else
17007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17008for as_dir in $PATH
17009do
17010 IFS=$as_save_IFS
17011 test -z "$as_dir" && as_dir=.
17012 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
17014 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17016 break 2
17017 fi
17018done
17019 done
17020IFS=$as_save_IFS
17021
17022fi
17023fi
17024READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17025if test -n "$READELF_FOR_TARGET"; then
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17027$as_echo "$READELF_FOR_TARGET" >&6; }
17028else
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17030$as_echo "no" >&6; }
17031fi
17032
17033
17034 done
17035fi
17036
17037if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
17038 for ncn_progname in readelf; do
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17040$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17041 if test -x $with_build_time_tools/${ncn_progname}; then
17042 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17044$as_echo "yes" >&6; }
17045 break
17046 else
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17048$as_echo "no" >&6; }
17049 fi
17050 done
17051fi
17052
17053if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
17054 for ncn_progname in readelf; do
17055 if test -n "$ncn_target_tool_prefix"; then
17056 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17057set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17059$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17060if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
17061 $as_echo_n "(cached) " >&6
17062else
17063 if test -n "$READELF_FOR_TARGET"; then
17064 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17065else
17066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17067for as_dir in $PATH
17068do
17069 IFS=$as_save_IFS
17070 test -z "$as_dir" && as_dir=.
17071 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
17073 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17075 break 2
17076 fi
17077done
17078 done
17079IFS=$as_save_IFS
17080
17081fi
17082fi
17083READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17084if test -n "$READELF_FOR_TARGET"; then
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17086$as_echo "$READELF_FOR_TARGET" >&6; }
17087else
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17089$as_echo "no" >&6; }
17090fi
17091
17092
17093 fi
17094 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
17095 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17096set dummy ${ncn_progname}; ac_word=$2
17097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17098$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17099if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
17100 $as_echo_n "(cached) " >&6
17101else
17102 if test -n "$READELF_FOR_TARGET"; then
17103 ac_cv_prog_READELF_FOR_TARGET="$READELF_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=.
17110 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
17112 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17114 break 2
17115 fi
17116done
17117 done
17118IFS=$as_save_IFS
17119
17120fi
17121fi
17122READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17123if test -n "$READELF_FOR_TARGET"; then
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17125$as_echo "$READELF_FOR_TARGET" >&6; }
17126else
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17128$as_echo "no" >&6; }
17129fi
17130
17131
17132 fi
17133 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
17134 done
17135fi
17136
17137if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
17138 set dummy readelf
17139 if test $build = $target ; then
17140 READELF_FOR_TARGET="$2"
17141 else
17142 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
17143 fi
17144else
17145 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
17146fi
17147
17148else
17149 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17150fi
17151
17152
17153
17154
2429c060
PB
17155if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17156 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
17158$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
17159 if test -x $with_build_time_tools/strip; then
17160 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
17161 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
17163$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 17164 else
81ecdfbb
RW
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17166$as_echo "no" >&6; }
3a35eeb3 17167 fi
2429c060
PB
17168 elif test $build != $host && test $have_gcc_for_target = yes; then
17169 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
17170 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
17171 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
17172 fi
17173fi
c6b750e1 17174if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
17175 # Extract the first word of "strip", so it can be a program name with args.
17176set dummy strip; ac_word=$2
81ecdfbb
RW
17177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17178$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17179if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 17180 $as_echo_n "(cached) " >&6
2429c060 17181else
c6b750e1
DJ
17182 case $STRIP_FOR_TARGET in
17183 [\\/]* | ?:[\\/]*)
2429c060
PB
17184 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
17185 ;;
2429c060 17186 *)
c6b750e1
DJ
17187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17188for as_dir in $gcc_cv_tool_dirs
17189do
17190 IFS=$as_save_IFS
17191 test -z "$as_dir" && as_dir=.
81ecdfbb 17192 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 17194 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 17195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
17196 break 2
17197 fi
17198done
81ecdfbb
RW
17199 done
17200IFS=$as_save_IFS
c6b750e1 17201
2429c060
PB
17202 ;;
17203esac
17204fi
c6b750e1 17205STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 17206if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17208$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 17209else
81ecdfbb
RW
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17211$as_echo "no" >&6; }
2429c060
PB
17212fi
17213
81ecdfbb 17214
2429c060
PB
17215fi
17216if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
17217
17218
17219if test -n "$STRIP_FOR_TARGET"; then
17220 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17221elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17222 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17223fi
17224
17225if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17226 for ncn_progname in strip; do
17227 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17228set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
17229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17230$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17231if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 17232 $as_echo_n "(cached) " >&6
9a819804
AO
17233else
17234 if test -n "$STRIP_FOR_TARGET"; then
17235 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17236else
17237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17238for as_dir in $PATH
17239do
17240 IFS=$as_save_IFS
17241 test -z "$as_dir" && as_dir=.
81ecdfbb 17242 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 17244 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 17245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
17246 break 2
17247 fi
17248done
81ecdfbb
RW
17249 done
17250IFS=$as_save_IFS
9a819804
AO
17251
17252fi
17253fi
17254STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17255if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17257$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 17258else
81ecdfbb
RW
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17260$as_echo "no" >&6; }
9a819804
AO
17261fi
17262
81ecdfbb 17263
9a819804
AO
17264 done
17265fi
17266
17267if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 17268 for ncn_progname in strip; do
81ecdfbb
RW
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17270$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
17271 if test -x $with_build_time_tools/${ncn_progname}; then
17272 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17274$as_echo "yes" >&6; }
2429c060
PB
17275 break
17276 else
81ecdfbb
RW
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17278$as_echo "no" >&6; }
2429c060
PB
17279 fi
17280 done
17281fi
17282
17283if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17284 for ncn_progname in strip; do
17285 if test -n "$ncn_target_tool_prefix"; then
17286 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 17287set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
17288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17289$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17290if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 17291 $as_echo_n "(cached) " >&6
7e0f7140
GK
17292else
17293 if test -n "$STRIP_FOR_TARGET"; then
17294 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
17295else
17296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17297for as_dir in $PATH
17298do
17299 IFS=$as_save_IFS
17300 test -z "$as_dir" && as_dir=.
81ecdfbb 17301 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 17303 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 17304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
17305 break 2
17306 fi
17307done
81ecdfbb
RW
17308 done
17309IFS=$as_save_IFS
c6b750e1 17310
7e0f7140
GK
17311fi
17312fi
c6b750e1 17313STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 17314if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17316$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 17317else
81ecdfbb
RW
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17319$as_echo "no" >&6; }
7e0f7140
GK
17320fi
17321
81ecdfbb 17322
2429c060
PB
17323 fi
17324 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 17326set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
17327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17328$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17329if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 17330 $as_echo_n "(cached) " >&6
7e0f7140
GK
17331else
17332 if test -n "$STRIP_FOR_TARGET"; then
17333 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17334else
c6b750e1
DJ
17335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17336for as_dir in $PATH
17337do
17338 IFS=$as_save_IFS
17339 test -z "$as_dir" && as_dir=.
81ecdfbb 17340 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 17342 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 17343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
17344 break 2
17345 fi
17346done
81ecdfbb
RW
17347 done
17348IFS=$as_save_IFS
c6b750e1 17349
7e0f7140
GK
17350fi
17351fi
c6b750e1 17352STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 17353if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17355$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 17356else
81ecdfbb
RW
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17358$as_echo "no" >&6; }
7e0f7140 17359fi
c6b750e1 17360
81ecdfbb 17361
2429c060
PB
17362 fi
17363 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17364 done
17365fi
c6b750e1 17366
7e0f7140
GK
17367if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17368 set dummy strip
17369 if test $build = $target ; then
17370 STRIP_FOR_TARGET="$2"
17371 else
17372 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17373 fi
d3f5afc4
MS
17374else
17375 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
17376fi
17377
3a35eeb3
PB
17378else
17379 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
17380fi
17381
17382
17383
17384
17385if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17386 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17388$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
17389 if test -x $with_build_time_tools/windres; then
17390 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17391 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17393$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 17394 else
81ecdfbb
RW
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17396$as_echo "no" >&6; }
3a35eeb3 17397 fi
2429c060
PB
17398 elif test $build != $host && test $have_gcc_for_target = yes; then
17399 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
17400 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17401 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
17402 fi
17403fi
c6b750e1 17404if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
17405 # Extract the first word of "windres", so it can be a program name with args.
17406set dummy windres; ac_word=$2
81ecdfbb
RW
17407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17408$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17409if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 17410 $as_echo_n "(cached) " >&6
2429c060 17411else
c6b750e1
DJ
17412 case $WINDRES_FOR_TARGET in
17413 [\\/]* | ?:[\\/]*)
2429c060
PB
17414 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17415 ;;
2429c060 17416 *)
c6b750e1
DJ
17417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17418for as_dir in $gcc_cv_tool_dirs
17419do
17420 IFS=$as_save_IFS
17421 test -z "$as_dir" && as_dir=.
81ecdfbb 17422 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 17424 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 17425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
17426 break 2
17427 fi
17428done
81ecdfbb
RW
17429 done
17430IFS=$as_save_IFS
c6b750e1 17431
2429c060
PB
17432 ;;
17433esac
17434fi
c6b750e1 17435WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 17436if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17438$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 17439else
81ecdfbb
RW
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17441$as_echo "no" >&6; }
2429c060
PB
17442fi
17443
81ecdfbb 17444
2429c060
PB
17445fi
17446if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
17447
17448
17449if test -n "$WINDRES_FOR_TARGET"; then
17450 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17451elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17452 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17453fi
17454
17455if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17456 for ncn_progname in windres; do
17457 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17458set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
17459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17460$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17461if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 17462 $as_echo_n "(cached) " >&6
9a819804
AO
17463else
17464 if test -n "$WINDRES_FOR_TARGET"; then
17465 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17466else
17467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17468for as_dir in $PATH
17469do
17470 IFS=$as_save_IFS
17471 test -z "$as_dir" && as_dir=.
81ecdfbb 17472 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 17474 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 17475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
17476 break 2
17477 fi
17478done
81ecdfbb
RW
17479 done
17480IFS=$as_save_IFS
9a819804
AO
17481
17482fi
17483fi
17484WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17485if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17487$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 17488else
81ecdfbb
RW
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17490$as_echo "no" >&6; }
9a819804
AO
17491fi
17492
81ecdfbb 17493
9a819804
AO
17494 done
17495fi
17496
17497if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 17498 for ncn_progname in windres; do
81ecdfbb
RW
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17500$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
17501 if test -x $with_build_time_tools/${ncn_progname}; then
17502 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17504$as_echo "yes" >&6; }
2429c060
PB
17505 break
17506 else
81ecdfbb
RW
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17508$as_echo "no" >&6; }
2429c060
PB
17509 fi
17510 done
17511fi
17512
17513if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17514 for ncn_progname in windres; do
17515 if test -n "$ncn_target_tool_prefix"; then
17516 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 17517set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
17518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17519$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17520if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 17521 $as_echo_n "(cached) " >&6
859789af 17522else
55db4b87
PB
17523 if test -n "$WINDRES_FOR_TARGET"; then
17524 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 17525else
c6b750e1
DJ
17526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17527for as_dir in $PATH
17528do
17529 IFS=$as_save_IFS
17530 test -z "$as_dir" && as_dir=.
81ecdfbb 17531 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 17533 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 17534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
17535 break 2
17536 fi
17537done
81ecdfbb
RW
17538 done
17539IFS=$as_save_IFS
c6b750e1 17540
859789af
AC
17541fi
17542fi
c6b750e1 17543WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 17544if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17546$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 17547else
81ecdfbb
RW
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17549$as_echo "no" >&6; }
859789af
AC
17550fi
17551
81ecdfbb 17552
2429c060
PB
17553 fi
17554 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 17556set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
17557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17558$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17559if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 17560 $as_echo_n "(cached) " >&6
859789af 17561else
05cbd757
PB
17562 if test -n "$WINDRES_FOR_TARGET"; then
17563 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 17564else
c6b750e1
DJ
17565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17566for as_dir in $PATH
17567do
17568 IFS=$as_save_IFS
17569 test -z "$as_dir" && as_dir=.
81ecdfbb 17570 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 17572 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 17573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
17574 break 2
17575 fi
17576done
81ecdfbb
RW
17577 done
17578IFS=$as_save_IFS
c6b750e1 17579
859789af
AC
17580fi
17581fi
c6b750e1 17582WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 17583if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17585$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 17586else
81ecdfbb
RW
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17588$as_echo "no" >&6; }
859789af 17589fi
c6b750e1 17590
81ecdfbb 17591
2429c060
PB
17592 fi
17593 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17594 done
17595fi
c6b750e1 17596
05cbd757
PB
17597if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17598 set dummy windres
17599 if test $build = $target ; then
17600 WINDRES_FOR_TARGET="$2"
859789af 17601 else
05cbd757 17602 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 17603 fi
d3f5afc4
MS
17604else
17605 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
17606fi
17607
3a35eeb3
PB
17608else
17609 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
17610fi
17611
852e5f18 17612
0c24b341
NC
17613
17614
17615if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17616 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17618$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
17619 if test -x $with_build_time_tools/windmc; then
17620 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17621 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17623$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 17624 else
81ecdfbb
RW
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17626$as_echo "no" >&6; }
0c24b341
NC
17627 fi
17628 elif test $build != $host && test $have_gcc_for_target = yes; then
17629 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17630 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17631 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17632 fi
17633fi
17634if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17635 # Extract the first word of "windmc", so it can be a program name with args.
17636set dummy windmc; ac_word=$2
81ecdfbb
RW
17637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17638$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17639if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 17640 $as_echo_n "(cached) " >&6
0c24b341
NC
17641else
17642 case $WINDMC_FOR_TARGET in
17643 [\\/]* | ?:[\\/]*)
17644 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17645 ;;
17646 *)
17647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17648for as_dir in $gcc_cv_tool_dirs
17649do
17650 IFS=$as_save_IFS
17651 test -z "$as_dir" && as_dir=.
81ecdfbb 17652 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 17654 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 17655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
17656 break 2
17657 fi
17658done
81ecdfbb
RW
17659 done
17660IFS=$as_save_IFS
0c24b341
NC
17661
17662 ;;
17663esac
17664fi
17665WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 17666if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17668$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 17669else
81ecdfbb
RW
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17671$as_echo "no" >&6; }
0c24b341
NC
17672fi
17673
81ecdfbb 17674
0c24b341
NC
17675fi
17676if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17677
17678
17679if test -n "$WINDMC_FOR_TARGET"; then
17680 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17681elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17682 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17683fi
17684
17685if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17686 for ncn_progname in windmc; do
17687 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17688set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
17689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17690$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17691if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 17692 $as_echo_n "(cached) " >&6
0c24b341
NC
17693else
17694 if test -n "$WINDMC_FOR_TARGET"; then
17695 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17696else
17697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17698for as_dir in $PATH
17699do
17700 IFS=$as_save_IFS
17701 test -z "$as_dir" && as_dir=.
81ecdfbb 17702 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 17704 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 17705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
17706 break 2
17707 fi
17708done
81ecdfbb
RW
17709 done
17710IFS=$as_save_IFS
0c24b341
NC
17711
17712fi
17713fi
17714WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17715if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17717$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 17718else
81ecdfbb
RW
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17720$as_echo "no" >&6; }
0c24b341
NC
17721fi
17722
81ecdfbb 17723
0c24b341
NC
17724 done
17725fi
17726
17727if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17728 for ncn_progname in windmc; do
81ecdfbb
RW
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17730$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
17731 if test -x $with_build_time_tools/${ncn_progname}; then
17732 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17734$as_echo "yes" >&6; }
0c24b341
NC
17735 break
17736 else
81ecdfbb
RW
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17738$as_echo "no" >&6; }
0c24b341
NC
17739 fi
17740 done
17741fi
17742
17743if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17744 for ncn_progname in windmc; do
17745 if test -n "$ncn_target_tool_prefix"; then
17746 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17747set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
17748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17749$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17750if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 17751 $as_echo_n "(cached) " >&6
0c24b341
NC
17752else
17753 if test -n "$WINDMC_FOR_TARGET"; then
17754 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17755else
17756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17757for as_dir in $PATH
17758do
17759 IFS=$as_save_IFS
17760 test -z "$as_dir" && as_dir=.
81ecdfbb 17761 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 17763 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 17764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
17765 break 2
17766 fi
17767done
81ecdfbb
RW
17768 done
17769IFS=$as_save_IFS
0c24b341
NC
17770
17771fi
17772fi
17773WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17774if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17776$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 17777else
81ecdfbb
RW
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17779$as_echo "no" >&6; }
0c24b341
NC
17780fi
17781
81ecdfbb 17782
0c24b341
NC
17783 fi
17784 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17786set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
17787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17788$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17789if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 17790 $as_echo_n "(cached) " >&6
0c24b341
NC
17791else
17792 if test -n "$WINDMC_FOR_TARGET"; then
17793 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17794else
17795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17796for as_dir in $PATH
17797do
17798 IFS=$as_save_IFS
17799 test -z "$as_dir" && as_dir=.
81ecdfbb 17800 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 17802 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 17803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
17804 break 2
17805 fi
17806done
81ecdfbb
RW
17807 done
17808IFS=$as_save_IFS
0c24b341
NC
17809
17810fi
17811fi
17812WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17813if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17815$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 17816else
81ecdfbb
RW
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17818$as_echo "no" >&6; }
0c24b341
NC
17819fi
17820
81ecdfbb 17821
0c24b341
NC
17822 fi
17823 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17824 done
17825fi
17826
17827if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17828 set dummy windmc
17829 if test $build = $target ; then
17830 WINDMC_FOR_TARGET="$2"
17831 else
17832 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17833 fi
17834else
17835 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17836fi
17837
17838else
17839 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17840fi
17841
17842
be01d343
PB
17843RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17844
81ecdfbb
RW
17845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17846$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 17847if test "x${build}" != "x${host}" ; then
2429c060
PB
17848 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17849 # We already found the complete path
b8025f34 17850 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17852$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17853 else
17854 # Canadian cross, just use what we found
81ecdfbb
RW
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17856$as_echo "pre-installed" >&6; }
2429c060 17857 fi
be01d343
PB
17858else
17859 ok=yes
17860 case " ${configdirs} " in
17861 *" binutils "*) ;;
17862 *) ok=no ;;
17863 esac
c6b750e1 17864
be01d343
PB
17865 if test $ok = yes; then
17866 # An in-tree tool is available and we can use it
17867 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17869$as_echo "just compiled" >&6; }
2429c060
PB
17870 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17871 # We already found the complete path
b8025f34 17872 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17874$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
17875 elif test "x$target" = "x$host"; then
17876 # We can use an host tool
17877 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17879$as_echo "host tool" >&6; }
be01d343
PB
17880 else
17881 # We need a cross tool
81ecdfbb
RW
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17883$as_echo "pre-installed" >&6; }
be01d343
PB
17884 fi
17885fi
4b900473 17886
81ecdfbb
RW
17887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17888$as_echo_n "checking where to find the target as... " >&6; }
be01d343 17889if test "x${build}" != "x${host}" ; then
2429c060
PB
17890 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17891 # We already found the complete path
b8025f34 17892 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17894$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17895 else
17896 # Canadian cross, just use what we found
81ecdfbb
RW
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17898$as_echo "pre-installed" >&6; }
2429c060 17899 fi
be01d343
PB
17900else
17901 ok=yes
17902 case " ${configdirs} " in
17903 *" gas "*) ;;
17904 *) ok=no ;;
17905 esac
c6b750e1 17906
be01d343
PB
17907 if test $ok = yes; then
17908 # An in-tree tool is available and we can use it
17909 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17911$as_echo "just compiled" >&6; }
2429c060
PB
17912 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17913 # We already found the complete path
b8025f34 17914 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17916$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
17917 elif test "x$target" = "x$host"; then
17918 # We can use an host tool
17919 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17921$as_echo "host tool" >&6; }
be01d343
PB
17922 else
17923 # We need a cross tool
81ecdfbb
RW
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17925$as_echo "pre-installed" >&6; }
be01d343
PB
17926 fi
17927fi
4b900473 17928
81ecdfbb
RW
17929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17930$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 17931if test "x${build}" != "x${host}" ; then
2429c060
PB
17932 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17933 # We already found the complete path
b8025f34 17934 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17936$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17937 else
17938 # Canadian cross, just use what we found
81ecdfbb
RW
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17940$as_echo "pre-installed" >&6; }
2429c060 17941 fi
be01d343
PB
17942else
17943 ok=yes
17944 case " ${configdirs} " in
17945 *" gcc "*) ;;
17946 *) ok=no ;;
17947 esac
c6b750e1 17948
be01d343
PB
17949 if test $ok = yes; then
17950 # An in-tree tool is available and we can use it
17951 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17953$as_echo "just compiled" >&6; }
2429c060
PB
17954 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17955 # We already found the complete path
b8025f34 17956 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17958$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
17959 elif test "x$target" = "x$host"; then
17960 # We can use an host tool
17961 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17963$as_echo "host tool" >&6; }
be01d343
PB
17964 else
17965 # We need a cross tool
81ecdfbb
RW
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17967$as_echo "pre-installed" >&6; }
be01d343
PB
17968 fi
17969fi
4b900473 17970
81ecdfbb
RW
17971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17972$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 17973if test "x${build}" != "x${host}" ; then
2429c060
PB
17974 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17975 # We already found the complete path
b8025f34 17976 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17978$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17979 else
17980 # Canadian cross, just use what we found
81ecdfbb
RW
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17982$as_echo "pre-installed" >&6; }
2429c060 17983 fi
be01d343
PB
17984else
17985 ok=yes
17986 case " ${configdirs} " in
17987 *" gcc "*) ;;
17988 *) ok=no ;;
17989 esac
17990 case ,${enable_languages}, in
17991 *,c++,*) ;;
17992 *) ok=no ;;
17993 esac
17994 if test $ok = yes; then
17995 # An in-tree tool is available and we can use it
95e43135 17996 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'
81ecdfbb
RW
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17998$as_echo "just compiled" >&6; }
2429c060
PB
17999 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
18000 # We already found the complete path
b8025f34 18001 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
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; }
be01d343
PB
18004 elif test "x$target" = "x$host"; then
18005 # We can use an host tool
18006 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18008$as_echo "host tool" >&6; }
be01d343
PB
18009 else
18010 # We need a cross tool
81ecdfbb
RW
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18012$as_echo "pre-installed" >&6; }
be01d343
PB
18013 fi
18014fi
4b900473 18015
81ecdfbb
RW
18016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
18017$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 18018if test "x${build}" != "x${host}" ; then
2429c060
PB
18019 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
18020 # We already found the complete path
b8025f34 18021 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
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; }
2429c060
PB
18024 else
18025 # Canadian cross, just use what we found
81ecdfbb
RW
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18027$as_echo "pre-installed" >&6; }
2429c060 18028 fi
be01d343
PB
18029else
18030 ok=yes
18031 case " ${configdirs} " in
18032 *" gcc "*) ;;
18033 *) ok=no ;;
18034 esac
18035 case ,${enable_languages}, in
18036 *,c++,*) ;;
18037 *) ok=no ;;
18038 esac
18039 if test $ok = yes; then
18040 # An in-tree tool is available and we can use it
95e43135 18041 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'
81ecdfbb
RW
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18043$as_echo "just compiled" >&6; }
2429c060
PB
18044 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
18045 # We already found the complete path
b8025f34 18046 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18048$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18049 elif test "x$target" = "x$host"; then
18050 # We can use an host tool
18051 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18053$as_echo "host tool" >&6; }
be01d343
PB
18054 else
18055 # We need a cross tool
81ecdfbb
RW
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18057$as_echo "pre-installed" >&6; }
be01d343
PB
18058 fi
18059fi
4b900473 18060
81ecdfbb
RW
18061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
18062$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 18063if test "x${build}" != "x${host}" ; then
2429c060
PB
18064 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
18065 # We already found the complete path
b8025f34 18066 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18068$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18069 else
18070 # Canadian cross, just use what we found
81ecdfbb
RW
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18072$as_echo "pre-installed" >&6; }
2429c060 18073 fi
be01d343
PB
18074else
18075 ok=yes
18076 case " ${configdirs} " in
18077 *" binutils "*) ;;
18078 *) ok=no ;;
18079 esac
c6b750e1 18080
be01d343
PB
18081 if test $ok = yes; then
18082 # An in-tree tool is available and we can use it
18083 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18085$as_echo "just compiled" >&6; }
2429c060
PB
18086 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
18087 # We already found the complete path
b8025f34 18088 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18090$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18091 elif test "x$target" = "x$host"; then
18092 # We can use an host tool
18093 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18095$as_echo "host tool" >&6; }
be01d343
PB
18096 else
18097 # We need a cross tool
81ecdfbb
RW
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18099$as_echo "pre-installed" >&6; }
be01d343
PB
18100 fi
18101fi
4b900473 18102
228cf97d
AM
18103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
18104$as_echo_n "checking where to find the target dsymutil... " >&6; }
18105if test "x${build}" != "x${host}" ; then
18106 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18107 # We already found the complete path
18108 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18110$as_echo "pre-installed in $ac_dir" >&6; }
18111 else
18112 # Canadian cross, just use what we found
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18114$as_echo "pre-installed" >&6; }
18115 fi
18116else
18117 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18118 # We already found the complete path
18119 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18121$as_echo "pre-installed in $ac_dir" >&6; }
18122 elif test "x$target" = "x$host"; then
18123 # We can use an host tool
18124 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18126$as_echo "host tool" >&6; }
18127 else
18128 # We need a cross tool
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18130$as_echo "pre-installed" >&6; }
18131 fi
18132fi
18133
81ecdfbb
RW
18134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
18135$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 18136if test "x${build}" != "x${host}" ; then
2429c060
PB
18137 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18138 # We already found the complete path
b8025f34 18139 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18141$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18142 else
18143 # Canadian cross, just use what we found
81ecdfbb
RW
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18145$as_echo "pre-installed" >&6; }
2429c060 18146 fi
be01d343
PB
18147else
18148 ok=yes
18149 case " ${configdirs} " in
18150 *" gcc "*) ;;
18151 *) ok=no ;;
18152 esac
c6b750e1 18153
be01d343
PB
18154 if test $ok = yes; then
18155 # An in-tree tool is available and we can use it
18156 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18158$as_echo "just compiled" >&6; }
2429c060
PB
18159 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18160 # We already found the complete path
b8025f34 18161 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18163$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18164 elif test "x$target" = "x$host"; then
18165 # We can use an host tool
18166 GCC_FOR_TARGET='$()'
81ecdfbb
RW
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18168$as_echo "host tool" >&6; }
be01d343
PB
18169 else
18170 # We need a cross tool
81ecdfbb
RW
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18172$as_echo "pre-installed" >&6; }
be01d343
PB
18173 fi
18174fi
4b900473 18175
81ecdfbb
RW
18176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
18177$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 18178if test "x${build}" != "x${host}" ; then
2429c060
PB
18179 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18180 # We already found the complete path
b8025f34 18181 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18183$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18184 else
18185 # Canadian cross, just use what we found
81ecdfbb
RW
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18187$as_echo "pre-installed" >&6; }
2429c060 18188 fi
be01d343
PB
18189else
18190 ok=yes
18191 case " ${configdirs} " in
18192 *" gcc "*) ;;
18193 *) ok=no ;;
18194 esac
18195 case ,${enable_languages}, in
18196 *,fortran,*) ;;
18197 *) ok=no ;;
18198 esac
18199 if test $ok = yes; then
18200 # An in-tree tool is available and we can use it
18201 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18203$as_echo "just compiled" >&6; }
2429c060
PB
18204 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18205 # We already found the complete path
b8025f34 18206 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18208$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18209 elif test "x$target" = "x$host"; then
18210 # We can use an host tool
18211 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18213$as_echo "host tool" >&6; }
be01d343
PB
18214 else
18215 # We need a cross tool
81ecdfbb
RW
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18217$as_echo "pre-installed" >&6; }
be01d343
PB
18218 fi
18219fi
4b900473 18220
e552509b
ILT
18221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
18222$as_echo_n "checking where to find the target gccgo... " >&6; }
18223if test "x${build}" != "x${host}" ; then
18224 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18225 # We already found the complete path
18226 ac_dir=`dirname $GOC_FOR_TARGET`
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18228$as_echo "pre-installed in $ac_dir" >&6; }
18229 else
18230 # Canadian cross, just use what we found
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18232$as_echo "pre-installed" >&6; }
18233 fi
18234else
18235 ok=yes
18236 case " ${configdirs} " in
18237 *" gcc "*) ;;
18238 *) ok=no ;;
18239 esac
18240 case ,${enable_languages}, in
18241 *,go,*) ;;
18242 *) ok=no ;;
18243 esac
18244 if test $ok = yes; then
18245 # An in-tree tool is available and we can use it
18246 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18248$as_echo "just compiled" >&6; }
18249 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18250 # We already found the complete path
18251 ac_dir=`dirname $GOC_FOR_TARGET`
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18253$as_echo "pre-installed in $ac_dir" >&6; }
18254 elif test "x$target" = "x$host"; then
18255 # We can use an host tool
18256 GOC_FOR_TARGET='$(GOC)'
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18258$as_echo "host tool" >&6; }
18259 else
18260 # We need a cross tool
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18262$as_echo "pre-installed" >&6; }
18263 fi
18264fi
18265
228cf97d
AM
18266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
18267$as_echo_n "checking where to find the target gdc... " >&6; }
18268if test "x${build}" != "x${host}" ; then
18269 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18270 # We already found the complete path
18271 ac_dir=`dirname $GDC_FOR_TARGET`
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18273$as_echo "pre-installed in $ac_dir" >&6; }
18274 else
18275 # Canadian cross, just use what we found
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18277$as_echo "pre-installed" >&6; }
18278 fi
18279else
18280 ok=yes
18281 case " ${configdirs} " in
18282 *" gcc "*) ;;
18283 *) ok=no ;;
18284 esac
18285 case ,${enable_languages}, in
18286 *,d,*) ;;
18287 *) ok=no ;;
18288 esac
18289 if test $ok = yes; then
18290 # An in-tree tool is available and we can use it
18291 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18293$as_echo "just compiled" >&6; }
18294 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18295 # We already found the complete path
18296 ac_dir=`dirname $GDC_FOR_TARGET`
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18298$as_echo "pre-installed in $ac_dir" >&6; }
18299 elif test "x$target" = "x$host"; then
18300 # We can use an host tool
18301 GDC_FOR_TARGET='$(GDC)'
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18303$as_echo "host tool" >&6; }
18304 else
18305 # We need a cross tool
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18307$as_echo "pre-installed" >&6; }
18308 fi
18309fi
18310
6a6859cb
AM
18311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
18312$as_echo_n "checking where to find the target gm2... " >&6; }
18313if test "x${build}" != "x${host}" ; then
18314 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18315 # We already found the complete path
18316 ac_dir=`dirname $GM2_FOR_TARGET`
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18318$as_echo "pre-installed in $ac_dir" >&6; }
18319 else
18320 # Canadian cross, just use what we found
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18322$as_echo "pre-installed" >&6; }
18323 fi
18324else
18325 ok=yes
18326 case " ${configdirs} " in
18327 *" gcc "*) ;;
18328 *) ok=no ;;
18329 esac
18330 case ,${enable_languages}, in
18331 *,m2,*) ;;
18332 *) ok=no ;;
18333 esac
18334 if test $ok = yes; then
18335 # An in-tree tool is available and we can use it
18336 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18338$as_echo "just compiled" >&6; }
18339 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18340 # We already found the complete path
18341 ac_dir=`dirname $GM2_FOR_TARGET`
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18343$as_echo "pre-installed in $ac_dir" >&6; }
18344 elif test "x$target" = "x$host"; then
18345 # We can use an host tool
18346 GM2_FOR_TARGET='$(GM2)'
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18348$as_echo "host tool" >&6; }
18349 else
18350 # We need a cross tool
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18352$as_echo "pre-installed" >&6; }
18353 fi
18354fi
18355
81ecdfbb
RW
18356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
18357$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 18358if test "x${build}" != "x${host}" ; then
2429c060
PB
18359 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18360 # We already found the complete path
b8025f34 18361 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18363$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18364 else
18365 # Canadian cross, just use what we found
81ecdfbb
RW
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18367$as_echo "pre-installed" >&6; }
2429c060 18368 fi
be01d343
PB
18369else
18370 ok=yes
18371 case " ${configdirs} " in
18372 *" ld "*) ;;
18373 *) ok=no ;;
18374 esac
c6b750e1 18375
be01d343
PB
18376 if test $ok = yes; then
18377 # An in-tree tool is available and we can use it
18378 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18380$as_echo "just compiled" >&6; }
2429c060
PB
18381 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18382 # We already found the complete path
b8025f34 18383 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18385$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18386 elif test "x$target" = "x$host"; then
18387 # We can use an host tool
18388 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18390$as_echo "host tool" >&6; }
be01d343
PB
18391 else
18392 # We need a cross tool
81ecdfbb
RW
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18394$as_echo "pre-installed" >&6; }
be01d343
PB
18395 fi
18396fi
4b900473 18397
81ecdfbb
RW
18398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18399$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 18400if test "x${build}" != "x${host}" ; then
2429c060
PB
18401 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18402 # We already found the complete path
b8025f34 18403 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18405$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18406 else
18407 # Canadian cross, just use what we found
81ecdfbb
RW
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18409$as_echo "pre-installed" >&6; }
2429c060 18410 fi
be01d343 18411else
2429c060
PB
18412 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18413 # We already found the complete path
b8025f34 18414 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18416$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 18417 elif test "x$target" = "x$host"; then
be01d343
PB
18418 # We can use an host tool
18419 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18421$as_echo "host tool" >&6; }
be01d343
PB
18422 else
18423 # We need a cross tool
81ecdfbb
RW
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18425$as_echo "pre-installed" >&6; }
be01d343
PB
18426 fi
18427fi
4b900473 18428
81ecdfbb
RW
18429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18430$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 18431if test "x${build}" != "x${host}" ; then
2429c060
PB
18432 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18433 # We already found the complete path
b8025f34 18434 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18436$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18437 else
18438 # Canadian cross, just use what we found
81ecdfbb
RW
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18440$as_echo "pre-installed" >&6; }
2429c060 18441 fi
be01d343
PB
18442else
18443 ok=yes
18444 case " ${configdirs} " in
18445 *" binutils "*) ;;
18446 *) ok=no ;;
18447 esac
c6b750e1 18448
be01d343
PB
18449 if test $ok = yes; then
18450 # An in-tree tool is available and we can use it
18451 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18453$as_echo "just compiled" >&6; }
2429c060
PB
18454 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18455 # We already found the complete path
b8025f34 18456 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18458$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18459 elif test "x$target" = "x$host"; then
18460 # We can use an host tool
18461 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18463$as_echo "host tool" >&6; }
be01d343
PB
18464 else
18465 # We need a cross tool
81ecdfbb
RW
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18467$as_echo "pre-installed" >&6; }
be01d343
PB
18468 fi
18469fi
4b900473 18470
6b91c541
AP
18471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18472$as_echo_n "checking where to find the target objcopy... " >&6; }
18473if test "x${build}" != "x${host}" ; then
18474 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18475 # We already found the complete path
18476 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18478$as_echo "pre-installed in $ac_dir" >&6; }
18479 else
18480 # Canadian cross, just use what we found
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18482$as_echo "pre-installed" >&6; }
18483 fi
18484else
18485 ok=yes
18486 case " ${configdirs} " in
18487 *" binutils "*) ;;
18488 *) ok=no ;;
18489 esac
18490
18491 if test $ok = yes; then
18492 # An in-tree tool is available and we can use it
18493 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18495$as_echo "just compiled" >&6; }
18496 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18497 # We already found the complete path
18498 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18500$as_echo "pre-installed in $ac_dir" >&6; }
18501 elif test "x$target" = "x$host"; then
18502 # We can use an host tool
1b6c0831 18503 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
6b91c541
AP
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18505$as_echo "host tool" >&6; }
18506 else
18507 # We need a cross tool
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18509$as_echo "pre-installed" >&6; }
18510 fi
18511fi
18512
81ecdfbb
RW
18513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18514$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 18515if test "x${build}" != "x${host}" ; then
2429c060
PB
18516 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18517 # We already found the complete path
b8025f34 18518 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18520$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18521 else
18522 # Canadian cross, just use what we found
81ecdfbb
RW
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18524$as_echo "pre-installed" >&6; }
2429c060 18525 fi
be01d343
PB
18526else
18527 ok=yes
18528 case " ${configdirs} " in
18529 *" binutils "*) ;;
18530 *) ok=no ;;
18531 esac
c6b750e1 18532
be01d343
PB
18533 if test $ok = yes; then
18534 # An in-tree tool is available and we can use it
18535 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
18536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18537$as_echo "just compiled" >&6; }
2429c060
PB
18538 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18539 # We already found the complete path
b8025f34 18540 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18542$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18543 elif test "x$target" = "x$host"; then
18544 # We can use an host tool
18545 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18547$as_echo "host tool" >&6; }
be01d343
PB
18548 else
18549 # We need a cross tool
81ecdfbb
RW
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18551$as_echo "pre-installed" >&6; }
be01d343
PB
18552 fi
18553fi
4b900473 18554
228cf97d
AM
18555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18556$as_echo_n "checking where to find the target otool... " >&6; }
18557if test "x${build}" != "x${host}" ; then
18558 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18559 # We already found the complete path
18560 ac_dir=`dirname $OTOOL_FOR_TARGET`
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18562$as_echo "pre-installed in $ac_dir" >&6; }
18563 else
18564 # Canadian cross, just use what we found
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18566$as_echo "pre-installed" >&6; }
18567 fi
18568else
18569 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18570 # We already found the complete path
18571 ac_dir=`dirname $OTOOL_FOR_TARGET`
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18573$as_echo "pre-installed in $ac_dir" >&6; }
18574 elif test "x$target" = "x$host"; then
18575 # We can use an host tool
18576 OTOOL_FOR_TARGET='$(OTOOL)'
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18578$as_echo "host tool" >&6; }
18579 else
18580 # We need a cross tool
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18582$as_echo "pre-installed" >&6; }
18583 fi
18584fi
18585
81ecdfbb
RW
18586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18587$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 18588if test "x${build}" != "x${host}" ; then
2429c060
PB
18589 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18590 # We already found the complete path
b8025f34 18591 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18593$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18594 else
18595 # Canadian cross, just use what we found
81ecdfbb
RW
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18597$as_echo "pre-installed" >&6; }
2429c060 18598 fi
be01d343
PB
18599else
18600 ok=yes
18601 case " ${configdirs} " in
18602 *" binutils "*) ;;
18603 *) ok=no ;;
18604 esac
c6b750e1 18605
be01d343
PB
18606 if test $ok = yes; then
18607 # An in-tree tool is available and we can use it
18608 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18610$as_echo "just compiled" >&6; }
2429c060
PB
18611 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18612 # We already found the complete path
b8025f34 18613 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18615$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18616 elif test "x$target" = "x$host"; then
18617 # We can use an host tool
18618 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18620$as_echo "host tool" >&6; }
be01d343
PB
18621 else
18622 # We need a cross tool
81ecdfbb
RW
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18624$as_echo "pre-installed" >&6; }
be01d343
PB
18625 fi
18626fi
4b900473 18627
b121d7d4
DD
18628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18629$as_echo_n "checking where to find the target readelf... " >&6; }
18630if test "x${build}" != "x${host}" ; then
18631 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18632 # We already found the complete path
18633 ac_dir=`dirname $READELF_FOR_TARGET`
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18635$as_echo "pre-installed in $ac_dir" >&6; }
18636 else
18637 # Canadian cross, just use what we found
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18639$as_echo "pre-installed" >&6; }
18640 fi
18641else
18642 ok=yes
18643 case " ${configdirs} " in
18644 *" binutils "*) ;;
18645 *) ok=no ;;
18646 esac
18647
18648 if test $ok = yes; then
18649 # An in-tree tool is available and we can use it
18650 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18652$as_echo "just compiled" >&6; }
18653 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18654 # We already found the complete path
18655 ac_dir=`dirname $READELF_FOR_TARGET`
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18657$as_echo "pre-installed in $ac_dir" >&6; }
18658 elif test "x$target" = "x$host"; then
18659 # We can use an host tool
18660 READELF_FOR_TARGET='$(READELF)'
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18662$as_echo "host tool" >&6; }
18663 else
18664 # We need a cross tool
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18666$as_echo "pre-installed" >&6; }
18667 fi
18668fi
18669
81ecdfbb
RW
18670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18671$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 18672if test "x${build}" != "x${host}" ; then
2429c060
PB
18673 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18674 # We already found the complete path
b8025f34 18675 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18677$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18678 else
18679 # Canadian cross, just use what we found
81ecdfbb
RW
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18681$as_echo "pre-installed" >&6; }
2429c060 18682 fi
be01d343
PB
18683else
18684 ok=yes
18685 case " ${configdirs} " in
18686 *" binutils "*) ;;
18687 *) ok=no ;;
18688 esac
c6b750e1 18689
be01d343
PB
18690 if test $ok = yes; then
18691 # An in-tree tool is available and we can use it
9b980aa1 18692 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18694$as_echo "just compiled" >&6; }
2429c060
PB
18695 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18696 # We already found the complete path
b8025f34 18697 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18699$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18700 elif test "x$target" = "x$host"; then
18701 # We can use an host tool
18702 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18704$as_echo "host tool" >&6; }
be01d343
PB
18705 else
18706 # We need a cross tool
81ecdfbb
RW
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18708$as_echo "pre-installed" >&6; }
be01d343
PB
18709 fi
18710fi
4b900473 18711
81ecdfbb
RW
18712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18713$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 18714if test "x${build}" != "x${host}" ; then
2429c060
PB
18715 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18716 # We already found the complete path
b8025f34 18717 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18719$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18720 else
18721 # Canadian cross, just use what we found
81ecdfbb
RW
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18723$as_echo "pre-installed" >&6; }
2429c060 18724 fi
be01d343
PB
18725else
18726 ok=yes
18727 case " ${configdirs} " in
18728 *" binutils "*) ;;
18729 *) ok=no ;;
18730 esac
c6b750e1 18731
be01d343
PB
18732 if test $ok = yes; then
18733 # An in-tree tool is available and we can use it
18734 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18736$as_echo "just compiled" >&6; }
2429c060
PB
18737 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18738 # We already found the complete path
b8025f34 18739 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18741$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18742 elif test "x$target" = "x$host"; then
18743 # We can use an host tool
18744 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18746$as_echo "host tool" >&6; }
be01d343
PB
18747 else
18748 # We need a cross tool
81ecdfbb
RW
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18750$as_echo "pre-installed" >&6; }
be01d343 18751 fi
a0da8069 18752fi
54752a6b 18753
81ecdfbb
RW
18754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18755$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
18756if test "x${build}" != "x${host}" ; then
18757 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18758 # We already found the complete path
18759 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18761$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
18762 else
18763 # Canadian cross, just use what we found
81ecdfbb
RW
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18765$as_echo "pre-installed" >&6; }
0c24b341
NC
18766 fi
18767else
18768 ok=yes
18769 case " ${configdirs} " in
18770 *" binutils "*) ;;
18771 *) ok=no ;;
18772 esac
18773
18774 if test $ok = yes; then
18775 # An in-tree tool is available and we can use it
18776 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18778$as_echo "just compiled" >&6; }
0c24b341
NC
18779 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18780 # We already found the complete path
18781 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
18782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18783$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
18784 elif test "x$target" = "x$host"; then
18785 # We can use an host tool
18786 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18788$as_echo "host tool" >&6; }
0c24b341
NC
18789 else
18790 # We need a cross tool
81ecdfbb
RW
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18792$as_echo "pre-installed" >&6; }
0c24b341
NC
18793 fi
18794fi
18795
54752a6b
NN
18796
18797
be01d343 18798
4b900473 18799
a0da8069
NN
18800# Certain tools may need extra flags.
18801AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18802RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18803NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18804
be01d343
PB
18805# When building target libraries, except in a Canadian cross, we use
18806# the same toolchain as the compiler we just built.
18807COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18808COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18809COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18810if test $host = $build; then
18811 case " $configdirs " in
18812 *" gcc "*)
18813 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18814 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18815 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18816 ;;
18817 esac
18818fi
18819
18820
18821
18822
18823
81ecdfbb
RW
18824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18825$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18826# Check whether --enable-maintainer-mode was given.
18827if test "${enable_maintainer_mode+set}" = set; then :
18828 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
18829else
18830 USE_MAINTAINER_MODE=no
81ecdfbb
RW
18831fi
18832
18833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18834$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
18835
18836
18837if test "$USE_MAINTAINER_MODE" = yes; then
18838 MAINTAINER_MODE_TRUE=
18839 MAINTAINER_MODE_FALSE='#'
18840else
18841 MAINTAINER_MODE_TRUE='#'
18842 MAINTAINER_MODE_FALSE=
c6b750e1 18843fi
3d5e36ae
AO
18844MAINT=$MAINTAINER_MODE_TRUE
18845
1d39f329
NN
18846# ---------------------
18847# GCC bootstrap support
18848# ---------------------
18849
18850# Stage specific cflags for build.
18851stage1_cflags="-g"
18852case $build in
18853 vax-*-*)
18854 case ${GCC} in
18855 yes) stage1_cflags="-g -Wa,-J" ;;
18856 *) stage1_cflags="-g -J" ;;
18857 esac ;;
1d39f329
NN
18858esac
18859
1d89b610 18860
1d39f329 18861
8a0d8a5c 18862# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
18863# Check whether --enable-stage1-checking was given.
18864if test "${enable_stage1_checking+set}" = set; then :
18865 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 18866else
5566c1fa 18867 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
ce6c656d
L
18868 # For --disable-checking or implicit --enable-checking=release, avoid
18869 # setting --enable-checking=gc in the default stage1 checking for LTO
18870 # bootstraps. See PR62077.
ce6c656d
L
18871 case $BUILD_CONFIG in
18872 *lto*)
05a13254
NC
18873 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18874 *)
18875 stage1_checking=--enable-checking=yes,types;;
ce6c656d 18876 esac
05a13254
NC
18877 if test "x$enable_checking" = x && \
18878 test -d ${srcdir}/gcc && \
18879 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18880 stage1_checking=--enable-checking=yes,types,extra
18881 fi
8a0d8a5c 18882else
5566c1fa 18883 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 18884fi
81ecdfbb 18885fi
8a0d8a5c
PB
18886
18887
c6b750e1 18888
81ecdfbb
RW
18889# Enable -Werror in bootstrap stage2 and later.
18890# Check whether --enable-werror was given.
18891if test "${enable_werror+set}" = set; then :
18892 enableval=$enable_werror;
1a6f2dc7
NN
18893case ${enable_werror} in
18894 yes) stage2_werror_flag="--enable-werror-always" ;;
18895 *) stage2_werror_flag="" ;;
1d39f329
NN
18896esac
18897
82033c9b 18898else
82033c9b 18899
bf41f30d
NC
18900if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18901 case $BUILD_CONFIG in
18902 bootstrap-debug)
18903 stage2_werror_flag="--enable-werror-always" ;;
18904 "")
18905 stage2_werror_flag="--enable-werror-always" ;;
18906 esac
18907fi
82033c9b 18908
bf41f30d 18909fi
82033c9b 18910
1b6c0831 18911
1b6c0831 18912
1b6c0831 18913
e8a5fa9c
RW
18914# Specify what files to not compare during bootstrap.
18915
18916compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
6a6859cb
AM
18917compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18918compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18919compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
e8a5fa9c
RW
18920case "$target" in
18921 hppa*64*-*-hpux*) ;;
228cf97d 18922 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
18923esac
18924
18925
81ecdfbb
RW
18926ac_config_files="$ac_config_files Makefile"
18927
c6b750e1 18928cat >confcache <<\_ACEOF
a0da8069
NN
18929# This file is a shell script that caches the results of configure
18930# tests run on this system so they can be shared between configure
c6b750e1
DJ
18931# scripts and configure runs, see configure's option --config-cache.
18932# It is not useful on other systems. If it contains results you don't
18933# want to keep, you may remove or edit it.
a0da8069 18934#
c6b750e1
DJ
18935# config.status only pays attention to the cache file if you give it
18936# the --recheck option to rerun configure.
a0da8069 18937#
c6b750e1
DJ
18938# `ac_cv_env_foo' variables (set or unset) will be overridden when
18939# loading this file, other *unset* `ac_cv_foo' will be assigned the
18940# following values.
18941
18942_ACEOF
18943
a0da8069
NN
18944# The following way of writing the cache mishandles newlines in values,
18945# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 18946# So, we kill variables containing newlines.
a0da8069
NN
18947# Ultrix sh set writes to stderr and can't be redirected directly,
18948# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
18949(
18950 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18951 eval ac_val=\$$ac_var
18952 case $ac_val in #(
18953 *${as_nl}*)
18954 case $ac_var in #(
18955 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18956$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18957 esac
18958 case $ac_var in #(
18959 _ | IFS | as_nl) ;; #(
18960 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18961 *) { eval $ac_var=; unset $ac_var;} ;;
18962 esac ;;
18963 esac
18964 done
18965
c6b750e1 18966 (set) 2>&1 |
81ecdfbb
RW
18967 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18968 *${as_nl}ac_space=\ *)
18969 # `set' does not quote correctly, so add quotes: double-quote
18970 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
18971 sed -n \
18972 "s/'/'\\\\''/g;
18973 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 18974 ;; #(
c6b750e1
DJ
18975 *)
18976 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 18977 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 18978 ;;
81ecdfbb
RW
18979 esac |
18980 sort
18981) |
c6b750e1 18982 sed '
81ecdfbb 18983 /^ac_cv_env_/b end
c6b750e1 18984 t clear
81ecdfbb 18985 :clear
c6b750e1
DJ
18986 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18987 t end
81ecdfbb
RW
18988 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18989 :end' >>confcache
18990if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18991 if test -w "$cache_file"; then
d0ac1c44 18992 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18994$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
18995 if test ! -f "$cache_file" || test -h "$cache_file"; then
18996 cat confcache >"$cache_file"
18997 else
18998 case $cache_file in #(
18999 */* | ?:*)
19000 mv -f confcache "$cache_file"$$ &&
19001 mv -f "$cache_file"$$ "$cache_file" ;; #(
19002 *)
19003 mv -f confcache "$cache_file" ;;
19004 esac
19005 fi
19006 fi
a0da8069 19007 else
81ecdfbb
RW
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19009$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 19010 fi
852e5f18 19011fi
a0da8069 19012rm -f confcache
852e5f18 19013
a0da8069
NN
19014test "x$prefix" = xNONE && prefix=$ac_default_prefix
19015# Let make expand exec_prefix.
19016test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 19017
a0da8069
NN
19018# Transform confdefs.h into DEFS.
19019# Protect against shell expansion while executing Makefile rules.
19020# Protect against Makefile macro expansion.
c6b750e1
DJ
19021#
19022# If the first sed substitution is executed (which looks for macros that
81ecdfbb 19023# take arguments), then branch to the quote section. Otherwise,
c6b750e1 19024# look for a macro that doesn't take arguments.
81ecdfbb
RW
19025ac_script='
19026:mline
19027/\\$/{
19028 N
19029 s,\\\n,,
19030 b mline
19031}
c6b750e1 19032t clear
81ecdfbb
RW
19033:clear
19034s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 19035t quote
81ecdfbb 19036s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 19037t quote
81ecdfbb
RW
19038b any
19039:quote
19040s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19041s/\[/\\&/g
19042s/\]/\\&/g
19043s/\$/$$/g
19044H
19045:any
19046${
19047 g
19048 s/^\n//
19049 s/\n/ /g
19050 p
19051}
19052'
19053DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
19054
19055
19056ac_libobjs=
19057ac_ltlibobjs=
d0ac1c44 19058U=
c6b750e1
DJ
19059for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19060 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
19061 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19062 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19063 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19064 # will be set to the directory where LIBOBJS objects are built.
19065 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19066 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
19067done
19068LIBOBJS=$ac_libobjs
852e5f18 19069
c6b750e1 19070LTLIBOBJS=$ac_ltlibobjs
376a0e54 19071
cac3d6c4 19072
c6b750e1 19073
d0ac1c44 19074: "${CONFIG_STATUS=./config.status}"
81ecdfbb 19075ac_write_fail=0
c6b750e1
DJ
19076ac_clean_files_save=$ac_clean_files
19077ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
19078{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19079$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19080as_write_fail=0
19081cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
19082#! $SHELL
19083# Generated by $as_me.
a0da8069 19084# Run this file to recreate the current configuration.
a0da8069 19085# Compiler output produced by configure, useful for debugging
c6b750e1 19086# configure, is in config.log if it exists.
376a0e54 19087
c6b750e1
DJ
19088debug=false
19089ac_cs_recheck=false
19090ac_cs_silent=false
c6b750e1 19091
81ecdfbb
RW
19092SHELL=\${CONFIG_SHELL-$SHELL}
19093export SHELL
19094_ASEOF
19095cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19096## -------------------- ##
19097## M4sh Initialization. ##
19098## -------------------- ##
19099
19100# Be more Bourne compatible
19101DUALCASE=1; export DUALCASE # for MKS sh
19102if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
19103 emulate sh
19104 NULLCMD=:
81ecdfbb 19105 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
19106 # is contrary to our usage. Disable this feature.
19107 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
19108 setopt NO_GLOB_SUBST
19109else
19110 case `(set -o) 2>/dev/null` in #(
19111 *posix*) :
19112 set -o posix ;; #(
19113 *) :
19114 ;;
19115esac
c6b750e1 19116fi
c6b750e1 19117
81ecdfbb
RW
19118
19119as_nl='
19120'
19121export as_nl
19122# Printing a long string crashes Solaris 7 /usr/bin/printf.
19123as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19124as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19125as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19126# Prefer a ksh shell builtin over an external printf program on Solaris,
19127# but without wasting forks for bash or zsh.
19128if test -z "$BASH_VERSION$ZSH_VERSION" \
19129 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19130 as_echo='print -r --'
19131 as_echo_n='print -rn --'
19132elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19133 as_echo='printf %s\n'
19134 as_echo_n='printf %s'
19135else
19136 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19137 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19138 as_echo_n='/usr/ucb/echo -n'
19139 else
19140 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19141 as_echo_n_body='eval
19142 arg=$1;
19143 case $arg in #(
19144 *"$as_nl"*)
19145 expr "X$arg" : "X\\(.*\\)$as_nl";
19146 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19147 esac;
19148 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19149 '
19150 export as_echo_n_body
19151 as_echo_n='sh -c $as_echo_n_body as_echo'
19152 fi
19153 export as_echo_body
19154 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
19155fi
19156
81ecdfbb
RW
19157# The user is always right.
19158if test "${PATH_SEPARATOR+set}" != set; then
19159 PATH_SEPARATOR=:
19160 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19161 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19162 PATH_SEPARATOR=';'
19163 }
19164fi
19165
19166
19167# IFS
19168# We need space, tab and new line, in precisely that order. Quoting is
19169# there to prevent editors from complaining about space-tab.
19170# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19171# splitting by setting IFS to empty value.)
19172IFS=" "" $as_nl"
19173
19174# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 19175as_myself=
81ecdfbb
RW
19176case $0 in #((
19177 *[\\/]* ) as_myself=$0 ;;
19178 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19179for as_dir in $PATH
19180do
19181 IFS=$as_save_IFS
19182 test -z "$as_dir" && as_dir=.
19183 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19184 done
19185IFS=$as_save_IFS
19186
19187 ;;
19188esac
19189# We did not find ourselves, most probably we were run as `sh COMMAND'
19190# in which case we are not to be found in the path.
19191if test "x$as_myself" = x; then
19192 as_myself=$0
19193fi
19194if test ! -f "$as_myself"; then
19195 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19196 exit 1
19197fi
c6b750e1 19198
81ecdfbb
RW
19199# Unset variables that we do not need and which cause bugs (e.g. in
19200# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19201# suppresses any "Segmentation fault" message there. '((' could
19202# trigger a bug in pdksh 5.2.14.
19203for as_var in BASH_ENV ENV MAIL MAILPATH
19204do eval test x\${$as_var+set} = xset \
19205 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19206done
c6b750e1
DJ
19207PS1='$ '
19208PS2='> '
19209PS4='+ '
19210
19211# NLS nuisances.
81ecdfbb
RW
19212LC_ALL=C
19213export LC_ALL
19214LANGUAGE=C
19215export LANGUAGE
19216
19217# CDPATH.
19218(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19219
19220
d0ac1c44
SM
19221# as_fn_error STATUS ERROR [LINENO LOG_FD]
19222# ----------------------------------------
81ecdfbb
RW
19223# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19224# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 19225# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
19226as_fn_error ()
19227{
d0ac1c44
SM
19228 as_status=$1; test $as_status -eq 0 && as_status=1
19229 if test "$4"; then
19230 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19231 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c6b750e1 19232 fi
d0ac1c44 19233 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
19234 as_fn_exit $as_status
19235} # as_fn_error
19236
19237
19238# as_fn_set_status STATUS
19239# -----------------------
19240# Set $? to STATUS, without forking.
19241as_fn_set_status ()
19242{
19243 return $1
19244} # as_fn_set_status
19245
19246# as_fn_exit STATUS
19247# -----------------
19248# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19249as_fn_exit ()
19250{
19251 set +e
19252 as_fn_set_status $1
19253 exit $1
19254} # as_fn_exit
19255
19256# as_fn_unset VAR
19257# ---------------
19258# Portably unset VAR.
19259as_fn_unset ()
19260{
19261 { eval $1=; unset $1;}
19262}
19263as_unset=as_fn_unset
19264# as_fn_append VAR VALUE
19265# ----------------------
19266# Append the text in VALUE to the end of the definition contained in VAR. Take
19267# advantage of any shell optimizations that allow amortized linear growth over
19268# repeated appends, instead of the typical quadratic growth present in naive
19269# implementations.
19270if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19271 eval 'as_fn_append ()
19272 {
19273 eval $1+=\$2
19274 }'
19275else
19276 as_fn_append ()
19277 {
19278 eval $1=\$$1\$2
19279 }
19280fi # as_fn_append
19281
19282# as_fn_arith ARG...
19283# ------------------
19284# Perform arithmetic evaluation on the ARGs, and store the result in the
19285# global $as_val. Take advantage of shells that can avoid forks. The arguments
19286# must be portable across $(()) and expr.
19287if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19288 eval 'as_fn_arith ()
19289 {
19290 as_val=$(( $* ))
19291 }'
19292else
19293 as_fn_arith ()
19294 {
19295 as_val=`expr "$@" || test $? -eq 1`
19296 }
19297fi # as_fn_arith
19298
c6b750e1 19299
81ecdfbb
RW
19300if expr a : '\(a\)' >/dev/null 2>&1 &&
19301 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
19302 as_expr=expr
19303else
19304 as_expr=false
19305fi
19306
81ecdfbb 19307if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
19308 as_basename=basename
19309else
19310 as_basename=false
19311fi
19312
81ecdfbb
RW
19313if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19314 as_dirname=dirname
19315else
19316 as_dirname=false
19317fi
c6b750e1 19318
81ecdfbb 19319as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
19320$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19321 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
19322 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19323$as_echo X/"$0" |
19324 sed '/^.*\/\([^/][^/]*\)\/*$/{
19325 s//\1/
19326 q
19327 }
19328 /^X\/\(\/\/\)$/{
19329 s//\1/
19330 q
19331 }
19332 /^X\/\(\/\).*/{
19333 s//\1/
19334 q
19335 }
19336 s/.*/./; q'`
c6b750e1 19337
c6b750e1
DJ
19338# Avoid depending upon Character Ranges.
19339as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19340as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19341as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19342as_cr_digits='0123456789'
19343as_cr_alnum=$as_cr_Letters$as_cr_digits
19344
81ecdfbb
RW
19345ECHO_C= ECHO_N= ECHO_T=
19346case `echo -n x` in #(((((
19347-n*)
19348 case `echo 'xy\c'` in
19349 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19350 xy) ECHO_C='\c';;
19351 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19352 ECHO_T=' ';;
19353 esac;;
19354*)
19355 ECHO_N='-n';;
c6b750e1
DJ
19356esac
19357
81ecdfbb
RW
19358rm -f conf$$ conf$$.exe conf$$.file
19359if test -d conf$$.dir; then
19360 rm -f conf$$.dir/conf$$.file
c6b750e1 19361else
81ecdfbb
RW
19362 rm -f conf$$.dir
19363 mkdir conf$$.dir 2>/dev/null
c6b750e1 19364fi
81ecdfbb
RW
19365if (echo >conf$$.file) 2>/dev/null; then
19366 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 19367 as_ln_s='ln -s'
81ecdfbb
RW
19368 # ... but there are two gotchas:
19369 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19370 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 19371 # In both cases, we have to default to `cp -pR'.
81ecdfbb 19372 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 19373 as_ln_s='cp -pR'
81ecdfbb
RW
19374 elif ln conf$$.file conf$$ 2>/dev/null; then
19375 as_ln_s=ln
19376 else
d0ac1c44 19377 as_ln_s='cp -pR'
c6b750e1 19378 fi
c6b750e1 19379else
d0ac1c44 19380 as_ln_s='cp -pR'
c6b750e1 19381fi
81ecdfbb
RW
19382rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19383rmdir conf$$.dir 2>/dev/null
19384
19385
19386# as_fn_mkdir_p
19387# -------------
19388# Create "$as_dir" as a directory, including parents if necessary.
19389as_fn_mkdir_p ()
19390{
19391
19392 case $as_dir in #(
19393 -*) as_dir=./$as_dir;;
19394 esac
19395 test -d "$as_dir" || eval $as_mkdir_p || {
19396 as_dirs=
19397 while :; do
19398 case $as_dir in #(
19399 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19400 *) as_qdir=$as_dir;;
19401 esac
19402 as_dirs="'$as_qdir' $as_dirs"
19403 as_dir=`$as_dirname -- "$as_dir" ||
19404$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19405 X"$as_dir" : 'X\(//\)[^/]' \| \
19406 X"$as_dir" : 'X\(//\)$' \| \
19407 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19408$as_echo X"$as_dir" |
19409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19410 s//\1/
19411 q
19412 }
19413 /^X\(\/\/\)[^/].*/{
19414 s//\1/
19415 q
19416 }
19417 /^X\(\/\/\)$/{
19418 s//\1/
19419 q
19420 }
19421 /^X\(\/\).*/{
19422 s//\1/
19423 q
19424 }
19425 s/.*/./; q'`
19426 test -d "$as_dir" && break
19427 done
19428 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 19429 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 19430
c6b750e1 19431
81ecdfbb 19432} # as_fn_mkdir_p
c6b750e1 19433if mkdir -p . 2>/dev/null; then
81ecdfbb 19434 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
19435else
19436 test -d ./-p && rmdir ./-p
19437 as_mkdir_p=false
19438fi
19439
d0ac1c44
SM
19440
19441# as_fn_executable_p FILE
19442# -----------------------
19443# Test if FILE is an executable regular file.
19444as_fn_executable_p ()
19445{
19446 test -f "$1" && test -x "$1"
19447} # as_fn_executable_p
19448as_test_x='test -x'
19449as_executable_p=as_fn_executable_p
c6b750e1
DJ
19450
19451# Sed expression to map a string onto a valid CPP name.
19452as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19453
19454# Sed expression to map a string onto a valid variable name.
19455as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19456
19457
c6b750e1 19458exec 6>&1
81ecdfbb
RW
19459## ----------------------------------- ##
19460## Main body of $CONFIG_STATUS script. ##
19461## ----------------------------------- ##
19462_ASEOF
19463test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19464
19465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19466# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 19467# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
19468# values after options handling.
19469ac_log="
c6b750e1 19470This file was extended by $as_me, which was
d0ac1c44 19471generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
19472
19473 CONFIG_FILES = $CONFIG_FILES
19474 CONFIG_HEADERS = $CONFIG_HEADERS
19475 CONFIG_LINKS = $CONFIG_LINKS
19476 CONFIG_COMMANDS = $CONFIG_COMMANDS
19477 $ $0 $@
19478
81ecdfbb
RW
19479on `(hostname || uname -n) 2>/dev/null | sed 1q`
19480"
19481
c6b750e1
DJ
19482_ACEOF
19483
81ecdfbb
RW
19484case $ac_config_files in *"
19485"*) set x $ac_config_files; shift; ac_config_files=$*;;
19486esac
c6b750e1 19487
c6b750e1 19488
c6b750e1 19489
81ecdfbb
RW
19490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19491# Files that config.status was made for.
19492config_files="$ac_config_files"
c6b750e1 19493
81ecdfbb 19494_ACEOF
c6b750e1 19495
81ecdfbb 19496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 19497ac_cs_usage="\
81ecdfbb
RW
19498\`$as_me' instantiates files and other configuration actions
19499from templates according to the current configuration. Unless the files
19500and actions are specified as TAGs, all are instantiated by default.
c6b750e1 19501
81ecdfbb 19502Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
19503
19504 -h, --help print this help, then exit
81ecdfbb 19505 -V, --version print version number and configuration settings, then exit
d0ac1c44 19506 --config print configuration, then exit
81ecdfbb
RW
19507 -q, --quiet, --silent
19508 do not print progress messages
c6b750e1
DJ
19509 -d, --debug don't remove temporary files
19510 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
19511 --file=FILE[:TEMPLATE]
19512 instantiate the configuration file FILE
c6b750e1
DJ
19513
19514Configuration files:
19515$config_files
19516
81ecdfbb 19517Report bugs to the package provider."
c6b750e1 19518
81ecdfbb
RW
19519_ACEOF
19520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 19521ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
c6b750e1
DJ
19522ac_cs_version="\\
19523config.status
d0ac1c44
SM
19524configured by $0, generated by GNU Autoconf 2.69,
19525 with options \\"\$ac_cs_config\\"
c6b750e1 19526
d0ac1c44 19527Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
19528This config.status script is free software; the Free Software Foundation
19529gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
19530
19531ac_pwd='$ac_pwd'
19532srcdir='$srcdir'
19533INSTALL='$INSTALL'
8e957354 19534AWK='$AWK'
81ecdfbb 19535test -n "\$AWK" || AWK=awk
c6b750e1
DJ
19536_ACEOF
19537
81ecdfbb
RW
19538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19539# The default lists apply if the user does not specify any file.
c6b750e1
DJ
19540ac_need_defaults=:
19541while test $# != 0
a0da8069 19542do
c6b750e1 19543 case $1 in
d0ac1c44 19544 --*=?*)
81ecdfbb
RW
19545 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19546 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
19547 ac_shift=:
19548 ;;
d0ac1c44
SM
19549 --*=)
19550 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19551 ac_optarg=
19552 ac_shift=:
19553 ;;
81ecdfbb 19554 *)
c6b750e1
DJ
19555 ac_option=$1
19556 ac_optarg=$2
19557 ac_shift=shift
19558 ;;
c6b750e1
DJ
19559 esac
19560
19561 case $ac_option in
19562 # Handling of the options.
a0da8069 19563 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 19564 ac_cs_recheck=: ;;
81ecdfbb
RW
19565 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19566 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
19567 --config | --confi | --conf | --con | --co | --c )
19568 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 19569 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
19570 debug=: ;;
19571 --file | --fil | --fi | --f )
19572 $ac_shift
81ecdfbb
RW
19573 case $ac_optarg in
19574 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 19575 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
19576 esac
19577 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 19578 ac_need_defaults=false;;
81ecdfbb
RW
19579 --he | --h | --help | --hel | -h )
19580 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
19581 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19582 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19583 ac_cs_silent=: ;;
19584
19585 # This is an error.
d0ac1c44 19586 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 19587Try \`$0 --help' for more information." ;;
c6b750e1 19588
81ecdfbb
RW
19589 *) as_fn_append ac_config_targets " $1"
19590 ac_need_defaults=false ;;
c6b750e1 19591
376a0e54 19592 esac
c6b750e1 19593 shift
376a0e54
CM
19594done
19595
c6b750e1 19596ac_configure_extra_args=
376a0e54 19597
c6b750e1
DJ
19598if $ac_cs_silent; then
19599 exec 6>/dev/null
19600 ac_configure_extra_args="$ac_configure_extra_args --silent"
19601fi
376a0e54 19602
c6b750e1 19603_ACEOF
81ecdfbb 19604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 19605if \$ac_cs_recheck; then
d0ac1c44 19606 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
19607 shift
19608 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19609 CONFIG_SHELL='$SHELL'
19610 export CONFIG_SHELL
19611 exec "\$@"
c6b750e1
DJ
19612fi
19613
19614_ACEOF
81ecdfbb
RW
19615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19616exec 5>>config.log
19617{
19618 echo
19619 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19620## Running $as_me. ##
19621_ASBOX
19622 $as_echo "$ac_log"
19623} >&5
c6b750e1 19624
81ecdfbb
RW
19625_ACEOF
19626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
19627#
19628# INIT-COMMANDS
19629#
19630extrasub_build="$extrasub_build"
19631 extrasub_host="$extrasub_host"
19632 extrasub_target="$extrasub_target"
19633
81ecdfbb 19634_ACEOF
c6b750e1 19635
81ecdfbb 19636cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 19637
81ecdfbb 19638# Handling of arguments.
c6b750e1
DJ
19639for ac_config_target in $ac_config_targets
19640do
81ecdfbb
RW
19641 case $ac_config_target in
19642 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19643
d0ac1c44 19644 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
19645 esac
19646done
19647
81ecdfbb 19648
c6b750e1
DJ
19649# If the user did not use the arguments to specify the items to instantiate,
19650# then the envvar interface is used. Set only those that are not.
19651# We use the long form for the default assignment because of an extremely
19652# bizarre bug on SunOS 4.1.3.
19653if $ac_need_defaults; then
19654 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19655fi
19656
19657# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 19658# simply because there is no reason against having it here, and in addition,
c6b750e1 19659# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
19660# Hook for its removal unless debugging.
19661# Note that there is a small window in which the directory will not be cleaned:
19662# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
19663$debug ||
19664{
d0ac1c44 19665 tmp= ac_tmp=
81ecdfbb 19666 trap 'exit_status=$?
d0ac1c44
SM
19667 : "${ac_tmp:=$tmp}"
19668 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
19669' 0
19670 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 19671}
c6b750e1
DJ
19672# Create a (secure) tmp directory for tmp files.
19673
19674{
81ecdfbb 19675 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 19676 test -d "$tmp"
c6b750e1
DJ
19677} ||
19678{
81ecdfbb
RW
19679 tmp=./conf$$-$RANDOM
19680 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
19681} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19682ac_tmp=$tmp
81ecdfbb
RW
19683
19684# Set up the scripts for CONFIG_FILES section.
19685# No need to generate them if there are no CONFIG_FILES.
19686# This happens for instance with `./config.status config.h'.
19687if test -n "$CONFIG_FILES"; then
19688
19689if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19690 ac_cs_awk_getline=:
19691 ac_cs_awk_pipe_init=
19692 ac_cs_awk_read_file='
19693 while ((getline aline < (F[key])) > 0)
19694 print(aline)
19695 close(F[key])'
19696 ac_cs_awk_pipe_fini=
19697else
19698 ac_cs_awk_getline=false
19699 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19700 ac_cs_awk_read_file='
19701 print "|#_!!_#|"
19702 print "cat " F[key] " &&"
19703 '$ac_cs_awk_pipe_init
19704 # The final `:' finishes the AND list.
19705 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19706fi
19707ac_cr=`echo X | tr X '\015'`
19708# On cygwin, bash can eat \r inside `` if the user requested igncr.
19709# But we know of no other shell where ac_cr would be empty at this
19710# point, so we can use a bashism as a fallback.
19711if test "x$ac_cr" = x; then
19712 eval ac_cr=\$\'\\r\'
19713fi
19714ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19715if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 19716 ac_cs_awk_cr='\\r'
81ecdfbb
RW
19717else
19718 ac_cs_awk_cr=$ac_cr
19719fi
19720
d0ac1c44 19721echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
19722_ACEOF
19723
19724# Create commands to substitute file output variables.
c6b750e1 19725{
81ecdfbb 19726 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d0ac1c44 19727 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
81ecdfbb
RW
19728 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19729 echo "_ACAWK" &&
19730 echo "_ACEOF"
19731} >conf$$files.sh &&
19732. ./conf$$files.sh ||
d0ac1c44 19733 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 19734rm -f conf$$files.sh
c6b750e1 19735
81ecdfbb
RW
19736{
19737 echo "cat >conf$$subs.awk <<_ACEOF" &&
19738 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19739 echo "_ACEOF"
19740} >conf$$subs.sh ||
d0ac1c44
SM
19741 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19742ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
19743ac_delim='%!_!# '
19744for ac_last_try in false false false false false :; do
19745 . ./conf$$subs.sh ||
d0ac1c44 19746 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
19747
19748 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19749 if test $ac_delim_n = $ac_delim_num; then
19750 break
19751 elif $ac_last_try; then
d0ac1c44 19752 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
19753 else
19754 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19755 fi
19756done
19757rm -f conf$$subs.sh
19758
19759cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 19760cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 19761_ACEOF
81ecdfbb
RW
19762sed -n '
19763h
19764s/^/S["/; s/!.*/"]=/
19765p
19766g
19767s/^[^!]*!//
19768:repl
19769t repl
19770s/'"$ac_delim"'$//
19771t delim
19772:nl
19773h
d0ac1c44 19774s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
19775t more1
19776s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19777p
19778n
19779b repl
19780:more1
19781s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19782p
19783g
19784s/.\{148\}//
19785t nl
19786:delim
19787h
d0ac1c44 19788s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
19789t more2
19790s/["\\]/\\&/g; s/^/"/; s/$/"/
19791p
19792b
19793:more2
19794s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19795p
19796g
19797s/.\{148\}//
19798t delim
19799' <conf$$subs.awk | sed '
19800/^[^""]/{
19801 N
19802 s/\n//
19803}
19804' >>$CONFIG_STATUS || ac_write_fail=1
19805rm -f conf$$subs.awk
19806cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19807_ACAWK
d0ac1c44 19808cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
19809 for (key in S) S_is_set[key] = 1
19810 FS = "\a"
19811 \$ac_cs_awk_pipe_init
19812}
19813{
19814 line = $ 0
19815 nfields = split(line, field, "@")
19816 substed = 0
19817 len = length(field[1])
19818 for (i = 2; i < nfields; i++) {
19819 key = field[i]
19820 keylen = length(key)
19821 if (S_is_set[key]) {
19822 value = S[key]
19823 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19824 len += length(value) + length(field[++i])
19825 substed = 1
19826 } else
19827 len += 1 + keylen
19828 }
19829 if (nfields == 3 && !substed) {
19830 key = field[2]
19831 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19832 \$ac_cs_awk_read_file
19833 next
19834 }
19835 }
19836 print line
19837}
19838\$ac_cs_awk_pipe_fini
19839_ACAWK
19840_ACEOF
19841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19842if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19843 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19844else
19845 cat
d0ac1c44
SM
19846fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19847 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb
RW
19848_ACEOF
19849
d0ac1c44
SM
19850# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19851# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
19852# trailing colons and then remove the whole line if VPATH becomes empty
19853# (actually we leave an empty line to preserve line numbers).
19854if test "x$srcdir" = x.; then
d0ac1c44
SM
19855 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19856h
19857s///
19858s/^/:/
19859s/[ ]*$/:/
19860s/:\$(srcdir):/:/g
19861s/:\${srcdir}:/:/g
19862s/:@srcdir@:/:/g
19863s/^:*//
81ecdfbb 19864s/:*$//
d0ac1c44
SM
19865x
19866s/\(=[ ]*\).*/\1/
19867G
19868s/\n//
81ecdfbb
RW
19869s/^[^=]*=[ ]*$//
19870}'
19871fi
c6b750e1 19872
81ecdfbb
RW
19873cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19874fi # test -n "$CONFIG_FILES"
c6b750e1 19875
c6b750e1 19876
81ecdfbb
RW
19877eval set X " :F $CONFIG_FILES "
19878shift
19879for ac_tag
19880do
19881 case $ac_tag in
19882 :[FHLC]) ac_mode=$ac_tag; continue;;
19883 esac
19884 case $ac_mode$ac_tag in
19885 :[FHL]*:*);;
d0ac1c44 19886 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
19887 :[FH]-) ac_tag=-:-;;
19888 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19889 esac
19890 ac_save_IFS=$IFS
19891 IFS=:
19892 set x $ac_tag
19893 IFS=$ac_save_IFS
19894 shift
19895 ac_file=$1
19896 shift
252b5132 19897
81ecdfbb
RW
19898 case $ac_mode in
19899 :L) ac_source=$1;;
19900 :[FH])
19901 ac_file_inputs=
19902 for ac_f
19903 do
19904 case $ac_f in
d0ac1c44 19905 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
19906 *) # Look for the file first in the build tree, then in the source tree
19907 # (if the path is not absolute). The absolute path cannot be DOS-style,
19908 # because $ac_f cannot contain `:'.
19909 test -f "$ac_f" ||
19910 case $ac_f in
19911 [\\/$]*) false;;
19912 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19913 esac ||
d0ac1c44 19914 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
19915 esac
19916 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19917 as_fn_append ac_file_inputs " '$ac_f'"
19918 done
c6b750e1 19919
81ecdfbb
RW
19920 # Let's still pretend it is `configure' which instantiates (i.e., don't
19921 # use $as_me), people would be surprised to read:
19922 # /* config.h. Generated by config.status. */
19923 configure_input='Generated from '`
19924 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19925 `' by configure.'
19926 if test x"$ac_file" != x-; then
19927 configure_input="$ac_file. $configure_input"
19928 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19929$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 19930 fi
81ecdfbb
RW
19931 # Neutralize special characters interpreted by sed in replacement strings.
19932 case $configure_input in #(
19933 *\&* | *\|* | *\\* )
19934 ac_sed_conf_input=`$as_echo "$configure_input" |
19935 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19936 *) ac_sed_conf_input=$configure_input;;
19937 esac
cac3d6c4 19938
81ecdfbb 19939 case $ac_tag in
d0ac1c44
SM
19940 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19941 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
19942 esac
19943 ;;
a0da8069 19944 esac
252b5132 19945
81ecdfbb 19946 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
19947$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19948 X"$ac_file" : 'X\(//\)[^/]' \| \
19949 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
19950 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19951$as_echo X"$ac_file" |
19952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19953 s//\1/
19954 q
19955 }
19956 /^X\(\/\/\)[^/].*/{
19957 s//\1/
19958 q
19959 }
19960 /^X\(\/\/\)$/{
19961 s//\1/
19962 q
19963 }
19964 /^X\(\/\).*/{
19965 s//\1/
19966 q
19967 }
19968 s/.*/./; q'`
19969 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 19970 ac_builddir=.
252b5132 19971
81ecdfbb
RW
19972case "$ac_dir" in
19973.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19974*)
19975 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19976 # A ".." for each directory in $ac_dir_suffix.
19977 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19978 case $ac_top_builddir_sub in
19979 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19980 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19981 esac ;;
19982esac
19983ac_abs_top_builddir=$ac_pwd
19984ac_abs_builddir=$ac_pwd$ac_dir_suffix
19985# for backward compatibility:
19986ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
19987
19988case $srcdir in
81ecdfbb 19989 .) # We are building in place.
c6b750e1 19990 ac_srcdir=.
81ecdfbb
RW
19991 ac_top_srcdir=$ac_top_builddir_sub
19992 ac_abs_top_srcdir=$ac_pwd ;;
19993 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 19994 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
19995 ac_top_srcdir=$srcdir
19996 ac_abs_top_srcdir=$srcdir ;;
19997 *) # Relative name.
19998 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19999 ac_top_srcdir=$ac_top_build_prefix$srcdir
20000 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 20001esac
81ecdfbb 20002ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 20003
252b5132 20004
81ecdfbb
RW
20005 case $ac_mode in
20006 :F)
20007 #
20008 # CONFIG_FILE
20009 #
c6b750e1
DJ
20010
20011 case $INSTALL in
20012 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 20013 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 20014 esac
81ecdfbb 20015_ACEOF
252b5132 20016
81ecdfbb
RW
20017cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20018# If the template does not know about datarootdir, expand it.
20019# FIXME: This hack should be removed a few years after 2.60.
20020ac_datarootdir_hack=; ac_datarootdir_seen=
20021ac_sed_dataroot='
20022/datarootdir/ {
20023 p
20024 q
20025}
20026/@datadir@/p
20027/@docdir@/p
20028/@infodir@/p
20029/@localedir@/p
20030/@mandir@/p'
20031case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20032*datarootdir*) ac_datarootdir_seen=yes;;
20033*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20035$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 20036_ACEOF
81ecdfbb
RW
20037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20038 ac_datarootdir_hack='
20039 s&@datadir@&$datadir&g
20040 s&@docdir@&$docdir&g
20041 s&@infodir@&$infodir&g
20042 s&@localedir@&$localedir&g
20043 s&@mandir@&$mandir&g
20044 s&\\\${datarootdir}&$datarootdir&g' ;;
20045esac
20046_ACEOF
20047
20048# Neutralize VPATH when `$srcdir' = `.'.
20049# Shell code in configure.ac might set extrasub.
20050# FIXME: do we really want to maintain this feature?
20051cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20052ac_sed_extra="$ac_vpsub
c6b750e1
DJ
20053$extrasub
20054_ACEOF
81ecdfbb 20055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
20056:t
20057/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
20058s|@configure_input@|$ac_sed_conf_input|;t t
20059s&@top_builddir@&$ac_top_builddir_sub&;t t
20060s&@top_build_prefix@&$ac_top_build_prefix&;t t
20061s&@srcdir@&$ac_srcdir&;t t
20062s&@abs_srcdir@&$ac_abs_srcdir&;t t
20063s&@top_srcdir@&$ac_top_srcdir&;t t
20064s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20065s&@builddir@&$ac_builddir&;t t
20066s&@abs_builddir@&$ac_abs_builddir&;t t
20067s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20068s&@INSTALL@&$ac_INSTALL&;t t
20069$ac_datarootdir_hack
20070"
20071eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20072if $ac_cs_awk_getline; then
d0ac1c44 20073 $AWK -f "$ac_tmp/subs.awk"
81ecdfbb 20074else
d0ac1c44
SM
20075 $AWK -f "$ac_tmp/subs.awk" | $SHELL
20076fi \
20077 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
20078
20079test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
20080 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20081 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20082 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 20083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 20084which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 20085$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 20086which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 20087
d0ac1c44 20088 rm -f "$ac_tmp/stdin"
81ecdfbb 20089 case $ac_file in
d0ac1c44
SM
20090 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20091 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 20092 esac \
d0ac1c44 20093 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 20094 ;;
c148b4cb 20095
c148b4cb 20096
c148b4cb 20097
81ecdfbb
RW
20098 esac
20099
06a51eac
RW
20100
20101 case $ac_file$ac_mode in
20102 "Makefile":F) sed "$extrasub_build" Makefile |
20103 sed "$extrasub_host" |
20104 sed "$extrasub_target" > mf$$
20105 mv -f mf$$ Makefile ;;
20106
20107 esac
81ecdfbb
RW
20108done # for ac_tag
20109
20110
20111as_fn_exit 0
c6b750e1 20112_ACEOF
c6b750e1
DJ
20113ac_clean_files=$ac_clean_files_save
20114
81ecdfbb 20115test $ac_write_fail = 0 ||
d0ac1c44 20116 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 20117
c6b750e1
DJ
20118
20119# configure is writing to config.log, and then calls config.status.
20120# config.status does its own redirection, appending to config.log.
20121# Unfortunately, on DOS this fails, as config.log is still kept open
20122# by configure, so config.status won't be able to write to it; its
20123# output is simply discarded. So we exec the FD to /dev/null,
20124# effectively closing config.log, so it can be properly (re)opened and
20125# appended to by config.status. When coming back to configure, we
20126# need to make the FD available again.
20127if test "$no_create" != yes; then
20128 ac_cs_success=:
20129 ac_config_status_args=
20130 test "$silent" = yes &&
20131 ac_config_status_args="$ac_config_status_args --quiet"
20132 exec 5>/dev/null
20133 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20134 exec 5>>config.log
20135 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20136 # would make configure fail if this is the last instruction.
d0ac1c44 20137 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
20138fi
20139if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20141$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 20142fi
c148b4cb 20143